/* La table et la Main partagent un seul tapis. */
.game-surface { --felt-light:#32614c; --felt-dark:#1a4035; color:#fff6e6; background:radial-gradient(ellipse at 50% 30%,var(--felt-light),var(--felt-dark)); border:8px solid #39463b; border-radius:16px; box-shadow:0 12px 28px #283f3220,inset 0 0 0 1px #b6ad7640; padding-bottom:14px; }
.felt-red { --felt-light:#8a3d45; --felt-dark:#512932; }
.felt-blue { --felt-light:#365e86; --felt-dark:#213b58; }
.felt-pink { --felt-light:#8a4b70; --felt-dark:#583049; }
.felt-orange { --felt-light:#91532d; --felt-dark:#593722; }
.game-surface .game-table { display:grid; grid-template-columns:minmax(0,1fr) minmax(190px,.85fr) minmax(0,1fr); gap:24px 20px; height:auto; min-height:440px; padding:24px; border:0; border-radius:0; background:none; box-shadow:none; overflow:visible; }
.game-table::before { display:none; }
.game-table .seat,.game-table .seat.north,.game-table .seat.west,.game-table .seat.east { position:static; transform:none; width:100%; min-width:0; max-width:300px; justify-self:center; }
.game-table .seat.north { grid-column:2; grid-row:1; }
.game-table .seat.west { grid-column:1; grid-row:1/4; align-self:center; }
.game-table .seat.east { grid-column:3; grid-row:1/4; align-self:center; }
.game-table .table-center { position:static; transform:none; width:auto; grid-column:2; grid-row:2; justify-self:center; align-self:center; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; }
.game-table .table-center .forest-symbol { display:none; }
.game-table .table-center .center-title { font-size:13px; margin:0; }
.game-table .table-center .indicators { flex-direction:row; margin:0; gap:5px; }
.game-table .table-center .pot { width:100%; margin:0; }
.game-table .own-discards { position:static; transform:none; width:auto; grid-column:2; grid-row:3; justify-self:center; text-align:center; }
.game-surface .seat-title { background:#0003; }
.game-surface .seat-title small,.game-surface .discard-label,.game-surface .own-discards>span,.game-surface .indicators>span,.game-surface .pot,.game-surface .table-center>strong small { color:#f2e9dc; }
.game-surface .discard-label { text-transform:none; font-size:11px; letter-spacing:0; }
.game-surface .own-discards>span:not(.kami-stick) { font:11px Arial,sans-serif; letter-spacing:0; }
.game-surface .discards { --discard-width:34px; --discard-gap:4px; display:grid; grid-template-columns:repeat(6,var(--discard-width)); grid-auto-rows:48px; align-content:start; gap:5px var(--discard-gap); width:calc(6 * var(--discard-width) + 5 * var(--discard-gap) + 26px); margin:0 auto; max-height:207px; overflow-x:hidden; overflow-y:auto; scrollbar-gutter:stable; padding:4px; text-align:left; }
.game-surface .discards .card.small { width:var(--discard-width); height:48px; flex-shrink:0; }
.game-surface .card.small .corner { top:4px; left:4px; font-size:12px; }
.game-surface .card.small .corner small { font-size:10px; margin-top:1px; }
.game-surface .card.small .pip { font-size:18px; left:5px; top:20px; }
.game-surface .own-discards .discards { min-height:56px; max-height:108px; }
.game-surface .seat.north .discards { max-height:108px; }
.game-surface .player-zone { margin:8px 24px 0; padding:16px 12px 8px; border-top:1px solid #ffffff35; }
.game-surface .player-heading { margin-bottom:8px; }
.game-surface .status { margin-bottom:10px; }
.game-surface .actions { margin:12px 0 10px; }
.player-utilities { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:10px; margin-top:8px; }
.player-utilities .table-tools { margin:0; }
.player-utilities button { font-size:10px; padding:8px 13px; }
.game-surface .player-heading .eyebrow,.game-surface .position-badge,.game-surface .status,.game-surface .drawn-label { color:#fff4df; }
.game-surface .position-badge { border-color:#ffffff70; }
.game-surface .status-dot { background:#d8c28a; }
.game-surface .timer { background:#0003; }
.game-surface .secondary { background:#fff5e9; color:#334b3d; border-color:#fff2dc; }
.game-surface .primary { background:#efe0bb; color:#233c30; border-color:#efe0bb; }
.game-surface .primary:hover { background:#fff2cd; }
.game-surface .own-groups span { color:#fff4df; }
.game-surface .hand-card.locked { opacity:.72; cursor:default; }
.game-surface .hand-card.locked:hover { transform:none; }
.kami-lock-note { margin:0 0 17px; font:12px/1.5 Arial,sans-serif; color:#fff0d2; }
.kami-stick,.game-surface .own-discards>.kami-stick { display:block; width:64px; height:9px; line-height:7px; background:#fff8e7; border:1px solid #d4c6a7; border-radius:2px; box-shadow:0 2px 4px #0005; margin:7px auto 9px; text-align:center; }
.kami-stick>span { display:inline; font-size:7px; line-height:7px; color:#ad302d; }
.card.capturable { outline:3px solid #ffe4a1; outline-offset:1px; box-shadow:0 0 0 6px #2b231e70,0 0 17px #ffe8aa70; }
.capture-offer { display:flex; flex-direction:row; align-items:center; gap:10px; margin-top:4px; }
.capture-offer>span { font:12px Arial,sans-serif; color:#fff3ca; }
.capture-offer .card.small { width:42px; height:59px; }
.capture-offer .small .pip { top:28px; }
.brand small { letter-spacing:.3px; line-height:1.5; max-width:335px; }
.display-controls { margin:12px 0 0; padding:12px 16px; border:1px solid #c9d0bc; border-radius:6px; font:12px Arial,sans-serif; }
.display-controls summary { cursor:pointer; }
.display-options { display:flex; flex-wrap:wrap; gap:20px; padding-top:15px; }
.display-options label { display:flex; gap:12px; align-items:center; }
.display-options select { padding:7px; font:inherit; background:#fffdf4; border:1px solid #b6c1ad; border-radius:4px; }
.card-flight { animation-duration:var(--flight-duration,750ms); }
.result-dialog { width:min(760px,calc(100% - 28px)); max-height:90dvh; border:1px solid #acb99e; border-radius:12px; padding:0; background:#fdfbf3; color:#203e34; box-shadow:0 20px 80px #0005; }
.result-dialog::backdrop { background:#102c27bd; }
.result-dialog-content { padding:26px; }
.result-dialog-header { display:flex; align-items:center; justify-content:space-between; gap:16px; border-bottom:1px solid #d0d8c7; padding-bottom:15px; }
.result-dialog h2 { font-size:25px; margin:0; font-weight:400; }
.result-dialog h3 { font-size:18px; margin:23px 0 12px; font-weight:400; }
.win-source { font:14px Arial,sans-serif; }
.winning-hand { display:flex; flex-wrap:wrap; gap:7px; padding:5px 0 9px; }
.winning-hand .card { width:48px; height:71px; }
.winning-hand .corner { font-size:16px; left:5px; top:5px; }
.winning-hand .pip { font-size:23px; top:24px; }
.score-lines { margin:0; font:14px/1.5 Arial,sans-serif; }
.score-lines>div { display:flex; justify-content:space-between; gap:20px; padding:7px 0; border-bottom:1px solid #dce2d2; }
.score-lines dd { margin:0; font-variant-numeric:tabular-nums; }
.score-total { font-size:21px; font-weight:bold; }
.payment-table { width:100%; border-collapse:collapse; font:13px/1.5 Arial,sans-serif; }
.payment-table th,.payment-table td { padding:10px 12px; border:1px solid #d3dacb; text-align:left; }
.payment-table th { background:#e8eddf; }
.payment-table td:last-child,.payment-table th:last-child { text-align:right; }
.result-dialog-footer { display:flex; justify-content:flex-end; margin-top:25px; }
.final-summary { font:13px/1.7 Arial,sans-serif; margin-top:22px; }
.result-reopen { margin:8px 10px; }
@media(max-width:1000px) {
  .app-shell { padding:0 20px; }
  .game-surface .game-table { gap:22px 12px; padding:20px 12px; grid-template-columns:minmax(0,1fr) 180px minmax(0,1fr); }
  .game-surface .discards { --discard-width:30px; --discard-gap:3px; grid-auto-rows:44px; }
  .game-surface .discards .card.small { height:44px; }
  .game-surface .card.small .pip { top:18px; font-size:16px; }
  .brand small { max-width:255px; }
  .session-meta { display:none; }
}
@media(max-width:760px) {
  .game-surface .game-table { grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 12px; }
  .game-table .seat.north { grid-column:1/3; grid-row:1; }
  .game-table .seat.west { grid-column:1; grid-row:2; }
  .game-table .seat.east { grid-column:2; grid-row:2; }
  .game-table .table-center { grid-column:1/3; grid-row:3; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:12px; }
  .table-center .forest-symbol { display:none; }
  .game-table .own-discards { grid-column:1/3; grid-row:4; }
  .table-center .indicators { flex-direction:row; margin:0; }
  .table-center .pot { margin:0; }
  .capture-offer { flex-direction:row; margin:0; }
  .game-surface .player-zone { margin:8px 12px 0; padding:20px 0 12px; }
  .game-surface .discards { max-height:150px; }
}
@media(max-width:480px) {
  .app-shell { padding:0 10px; }
  .topbar { height:auto; min-height:90px; gap:15px; padding:15px 0; }
  .brand { gap:8px; font-size:22px; letter-spacing:4px; }
  .brand small { max-width:180px; font-size:9px; }
  .brand-mark { font-size:34px; }
  .ui-language { font-size:10px; }
  .game-surface { border-width:5px; }
  .game-surface .game-table { display:flex; flex-direction:column; gap:25px; padding:20px 12px; }
  .game-table .seat.north,.game-table .seat.west,.game-table .seat.east { width:100%; max-width:260px; align-self:center; }
  .game-surface .discards { --discard-width:34px; grid-auto-rows:48px; }
  .game-surface .discards .card.small { height:48px; }
  .game-surface .card.small .pip { top:21px; }
  .game-table .own-discards { align-self:center; }
  .game-surface .player-heading { gap:12px; }
  .game-surface .hand-card.just-drawn { margin-left:13px; }
  .result-dialog-content { padding:18px; }
  .payment-table th,.payment-table td { padding:8px; }
}
@media(min-width:481px) and (max-width:600px) {
  .game-surface .game-table { display:flex; flex-direction:column; }
  .game-table .seat.north,.game-table .seat.west,.game-table .seat.east { align-self:center; }
  .game-table .own-discards { align-self:center; }
}
@media(prefers-reduced-motion:reduce) { .card-flight { animation:none; } }
