/* Batak / Spades: oyun kağıdı, masa, el, ihale pencereleri (style.css'teki ortak dile ek) */
.round-info { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Oyun kağıdı ---------- */
.card { position: relative; display: inline-flex; flex: none; width: var(--card-w, 56px); height: calc(var(--card-w, 56px) * 1.42); border-radius: 8px; background: linear-gradient(180deg, #fffdf8, #f2ecdd); border: 1px solid #b9a47c; box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(0, 0, 0, .45); color: #1d140c; user-select: none; -webkit-user-select: none; font: 800 calc(var(--card-w, 56px) * .34) system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.card.red { color: #c0392b; }
.card b { position: absolute; left: 6%; top: 4%; line-height: 1; font-weight: 900; }
.card i { position: absolute; left: 7%; top: calc(4% + 1.05em); font-style: normal; font-size: .72em; line-height: 1; }
.card em { position: absolute; right: 8%; bottom: 4%; font-style: normal; font-size: 1.25em; line-height: 1; opacity: .9; }
.card.back { background: linear-gradient(135deg, #7a4a24, #4a2a12); border-color: #2a1308; }
.card.back::before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(212, 169, 79, .5); border-radius: 5px; background: repeating-linear-gradient(45deg, rgba(212, 169, 79, .12) 0 4px, transparent 4px 8px); }
.card.back b, .card.back i, .card.back em { display: none; }

/* ---------- Masa ---------- */
.table { position: relative; flex: 1; min-height: 0; margin: 0 6px; border-radius: 14px; display: grid; grid-template-columns: minmax(60px, 1fr) minmax(0, 4fr) minmax(60px, 1fr); grid-template-rows: auto 1fr auto; padding: 8px 12px; gap: 4px;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, #2c8a5a 0%, #1f6a44 45%, #154a30 100%); box-shadow: inset 0 0 90px rgba(0, 0, 0, .45), 0 10px 30px rgba(0, 0, 0, .5); }
.opp { display: flex; align-items: center; gap: 8px; z-index: 1; min-width: 0; }
.opp.top { grid-column: 2; grid-row: 1; justify-self: center; flex-direction: column; gap: 4px; }
.opp.left { grid-column: 1; grid-row: 2; flex-direction: column; justify-self: start; }
.opp.right { grid-column: 3; grid-row: 2; flex-direction: column; justify-self: end; }
.opp-hand { display: flex; gap: 0; }
.opp-hand.h .card.back { width: 14px; height: 26px; border-radius: 3px; box-shadow: none; margin-right: -4px; }
.opp-hand.v { flex-direction: column; } .opp-hand.v .card.back { width: 26px; height: 14px; border-radius: 3px; box-shadow: none; margin-bottom: -4px; }
.opp-hand .card.back::before { inset: 2px; }
.trick-wrap { grid-column: 2; grid-row: 2; position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.trick { position: relative; width: min(260px, 80%); aspect-ratio: 1 / 1; max-height: 100%; }
.tslot { position: absolute; width: 34%; aspect-ratio: 1 / 1.42; display: flex; align-items: center; justify-content: center; }
.tslot .card { width: 100%; height: 100%; --card-w: 100%; font-size: clamp(14px, 4vmin, 24px); transition: transform .35s ease-in, opacity .35s; }
.tslot.t0 { left: 33%; bottom: 0; } .tslot.t2 { left: 33%; top: 0; } .tslot.t3 { left: 0; top: 30%; } .tslot.t1 { right: 0; top: 30%; }
.tslot .card.to-bottom { transform: translateY(160%) scale(.5); opacity: 0; } .tslot .card.to-top { transform: translateY(-160%) scale(.5); opacity: 0; }
.tslot .card.to-left { transform: translateX(-220%) scale(.5); opacity: 0; } .tslot .card.to-right { transform: translateX(220%) scale(.5); opacity: 0; }
.team-line { font-size: 12px; font-weight: 700; color: #e9f5ea; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .3); }
.bottom-mid { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: end; min-width: 0; }
.status-line { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--cream); text-align: center; flex-wrap: wrap; min-height: 24px; }
.seat-box { display: flex; align-items: center; z-index: 1; min-width: 0; }
.avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none; z-index: 2; display: grid; place-items: center; font: 800 18px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); background: var(--av, #c2402f); box-shadow: 0 0 0 3px #f4e7c8, 0 4px 10px rgba(0, 0, 0, .5); }
.avatar::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid transparent; opacity: 0; transition: opacity .25s; }
.seat-box.active .avatar { box-shadow: 0 0 0 3px #b8ffbf, 0 0 18px rgba(140, 255, 160, .6); }
.seat-box.active .avatar::after { opacity: 1; border-color: #8dff9b transparent transparent transparent; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.plate { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 4px 12px 4px 26px; margin-left: -20px; border-radius: 10px; min-height: 40px; background: linear-gradient(180deg, rgba(10, 60, 30, .85), rgba(5, 35, 18, .9)); border: 1px solid rgba(140, 255, 160, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 4px 10px rgba(0, 0, 0, .35); color: #f4e7c8; }
.plate .nm { font-weight: 700; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.plate .ptag { margin-left: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 1px 6px; border-radius: 999px; background: rgba(243, 217, 143, .25); color: #f3d98f; }
.plate .row { display: flex; align-items: baseline; gap: 6px; font-size: 11px; color: #c9e6cf; }
.plate .sc { font: 800 14px var(--serif); color: var(--gold-light); }
.plate .bid { padding: 1px 7px; border-radius: 999px; background: rgba(0, 0, 0, .35); font-weight: 700; color: #fff; }
.seat-box.bidder .plate .bid { background: var(--gold); color: #2b1a06; }
.seat-box.active .plate { border-color: #8dff9b; box-shadow: 0 0 14px rgba(140, 255, 160, .35), inset 0 1px 0 rgba(255, 255, 255, .1); }
.seat-box.s0 .plate .nm { color: #b8ffbf; }
.hand-area { padding: 4px 8px 8px; }
.hand-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 6px; }
.tools { display: flex; gap: 6px; }
.tool { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 4px 14px 4px 10px; border-radius: 10px; cursor: pointer; font: 800 13px system-ui, sans-serif; letter-spacing: .4px; text-transform: uppercase; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(180deg, rgba(30, 30, 30, .92), rgba(10, 10, 10, .92)); color: #f4e7c8; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.tool .icon { width: 16px; height: 16px; } .tool.gold { background: linear-gradient(180deg, #f6dc92, #c99a40); color: #2b1a06; border-color: #f3d98f; } .tool.gold .icon { filter: brightness(.2); }
.hand { display: flex; justify-content: center; align-items: flex-end; padding: 12px 12px 8px; border-radius: 8px; background: linear-gradient(180deg, #a66a32, #8a5424 50%, #7a4a20); border: 1px solid #a56a33; box-shadow: inset 0 2px 4px rgba(255, 255, 255, .15), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 10px 24px rgba(0, 0, 0, .5); min-height: 100px; --card-w: clamp(44px, 7vw, 64px); }
.hand .card { margin-left: calc(var(--card-w) * -0.42); cursor: default; transition: transform .12s; opacity: .85; }
.hand .card:first-child { margin-left: 0; }
.hand .card.legal { opacity: 1; cursor: pointer; box-shadow: inset 0 1px 0 #fff, 0 0 0 3px rgba(141, 255, 155, .85), 0 0 12px rgba(141, 255, 155, .5); z-index: 1; }
.hand .card.legal:hover { transform: translateY(-10px); }
.hand .card.hinted { box-shadow: inset 0 1px 0 #fff, 0 0 0 3px #6fd3ff, 0 0 16px #6fd3ff; z-index: 2; }
.card.fly { box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
.fair-badge { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 10px; border-radius: 999px; cursor: pointer; font-size: 12px; font-weight: 700; color: #b8ffbf; background: rgba(40, 110, 60, .35); border: 1px solid rgba(111, 207, 127, .5); }
.fair-badge .icon { width: 15px; height: 15px; } .fair-badge.verified { background: rgba(40, 140, 70, .6); } .fair-badge.failed { color: #ffb3a7; background: rgba(140, 40, 30, .5); }
.fair-details { margin-top: 10px; font-size: 13px; text-align: left; } .fair-details summary { cursor: pointer; color: var(--gold-light); font-weight: 600; }
.score-table small { color: var(--muted); font-size: 12px; }
.rec { color: var(--muted); font-size: 13px; margin: 0 0 8px; } .coach-report h3 { margin: 8px 0 2px; }
.last-move { font-size: 12px; color: var(--muted); } .last-move:empty { display: none; }
/* İhale ve koz pencereleri */
.bid-card { max-width: 460px; }
.coach-sug { font-weight: 700; color: var(--gold-light); }
.bid-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.bid-btn { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--cream); font: 800 18px system-ui, sans-serif; cursor: pointer; }
.bid-btn.pass, .bid-btn.nil { grid-column: span 2; font-size: 15px; }
.bid-btn.sug { box-shadow: 0 0 0 2px var(--gold-light), 0 0 14px rgba(243, 217, 143, .5); }
.bid-btn:hover { filter: brightness(1.2); }
.suit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.suit-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; border-radius: 14px; border: 1px solid var(--line); background: #fffdf8; color: #1d140c; cursor: pointer; font: 700 13px system-ui, sans-serif; }
.suit-btn i { font-style: normal; font-size: 32px; line-height: 1.1; } .suit-btn.red { color: #c0392b; }
.suit-btn.sug { box-shadow: 0 0 0 3px var(--gold-light); }
@media (max-width: 700px) {
  .table { padding: 6px; gap: 2px; grid-template-columns: minmax(40px, 1fr) minmax(0, 5fr) minmax(40px, 1fr); }
  .avatar { width: 36px; height: 36px; font-size: 15px; } .plate { min-height: 32px; padding: 2px 9px 2px 22px; margin-left: -16px; } .plate .nm { font-size: 11px; max-width: 80px; }
  .opp.left .plate, .opp.right .plate { display: none; }
  .opp-hand.h .card.back { width: 10px; height: 18px; } .opp-hand.v .card.back { width: 18px; height: 10px; }
  .hand { padding: 8px 6px 6px; min-height: 84px; --card-w: clamp(40px, 11.5vw, 54px); } .hand .card { margin-left: calc(var(--card-w) * -0.5); }
  .fair-badge span { display: none; } .tool { min-height: 34px; font-size: 12px; }
  .status-line { font-size: 12px; } .trick { width: min(200px, 90%); }
  .bid-grid { grid-template-columns: repeat(4, 1fr); }
}
