:root {
  color-scheme: dark;
  --ink: #f7fbff;
  --muted: #aabbd0;
  --navy-950: #03101d;
  --navy-900: #061827;
  --navy-800: #0a2438;
  --navy-700: #12334a;
  --panel: rgba(9, 31, 48, 0.92);
  --line: rgba(167, 199, 221, 0.18);
  --teal: #44e0c1;
  --teal-dark: #118d79;
  --gold: #ffd260;
  --purple: #a987ff;
  --red: #ff6f73;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  --card-w: 86px;
  --card-h: 122px;
  --mini-w: 42px;
  --mini-h: 60px;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; background: var(--navy-950); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(48, 133, 161, 0.25), transparent 32rem),
    radial-gradient(circle at 95% 5%, rgba(128, 82, 210, 0.18), transparent 30rem),
    linear-gradient(145deg, #071b2d 0%, #03101d 72%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; }

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.site-header.compact { min-height: 72px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(68, 224, 193, 0.5);
  border-radius: 14px;
  color: var(--navy-950);
  background: linear-gradient(145deg, #7cf1da, #25bfa3);
  box-shadow: 0 8px 24px rgba(68, 224, 193, 0.2);
  font-size: 18px;
  font-weight: 950;
}

.brand > span:last-child { display: grid; }
.brand strong { font-size: 17px; letter-spacing: 0.01em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; }

.header-meta { display: flex; gap: 18px; color: var(--muted); font-size: 12px; }
.header-meta span + span { padding-left: 18px; border-left: 1px solid var(--line); }

.menu-main { padding: 58px 0 42px; }

.menu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: clamp(32px, 7vw, 92px);
  min-height: 390px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-hero h1,
.dealer-screen h1,
.score-screen h1,
.pause-card h1 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.menu-hero h1 span { color: var(--gold); }

.menu-hero > div:first-child > p:not(.eyebrow) {
  max-width: 670px;
  margin: 24px 0 0;
  color: #c3d1df;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c5d9e9;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 750;
}

.hero-card-stack { position: relative; height: 290px; min-width: 320px; }

.showcase-card {
  position: absolute;
  top: 38px;
  left: 50%;
  width: 164px;
  height: 226px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 5px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  box-shadow: var(--shadow);
  color: white;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.showcase-card b { font-size: 32px; letter-spacing: -0.04em; }
.showcase-card span { font-size: 15px; }
.gray-card { background: #7b8998; transform: translateX(-95%) rotate(-13deg); }
.purple-card { background: #7747c9; transform: translateX(-52%) rotate(1deg); z-index: 2; }
.party-card { background: radial-gradient(circle at 68% 28%, #b985ff 0 8%, transparent 9%), radial-gradient(circle at 40% 55%, #7a4bd1 0 12%, transparent 13%), #eef4f8; color: #17283a; transform: translateX(-6%) rotate(13deg); z-index: 3; }

.setup-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.35fr;
  gap: 16px;
  align-items: stretch;
}

.setup-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(17, 49, 71, 0.92), rgba(5, 24, 39, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.section-number { position: absolute; top: 24px; right: 24px; color: rgba(255, 255, 255, 0.18); font-size: 14px; font-weight: 900; letter-spacing: 0.12em; }
.setup-card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.025em; }
.setup-card > p { min-height: 42px; margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.choice-grid { display: grid; gap: 8px; }
.player-choices { grid-template-columns: repeat(5, 1fr); }
.choice-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  font-weight: 850;
}
.choice-button:hover, .choice-button.selected { border-color: var(--teal); background: rgba(68, 224, 193, 0.14); color: var(--teal); }
.selection-caption { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--muted); font-size: 11px; }
.selection-caption strong { color: var(--ink); font-size: 13px; }

.deal-choices { display: grid; gap: 8px; }
.deal-button {
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}
.deal-button strong { font-size: 13px; }
.deal-button span { color: var(--muted); font-size: 10px; }
.deal-button:hover, .deal-button.selected { border-color: var(--gold); background: rgba(255, 210, 96, 0.1); }

.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.status-pill { padding: 6px 9px; border-radius: 99px; color: var(--gold); background: rgba(255, 210, 96, 0.12); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.status-pill.ready { color: var(--teal); background: rgba(68, 224, 193, 0.13); }
.ai-setup label { display: block; margin: 12px 0 6px; color: #c9d8e5; font-size: 11px; font-weight: 800; }
.ai-setup input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(2, 12, 21, 0.65);
}
.key-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 9px 0 3px; }
.key-actions span { width: 100%; color: var(--muted); font-size: 10px; }
.storage-note { display: block; margin-top: 8px; color: #7f97aa; font-size: 9px; line-height: 1.45; }
.small-button, .text-button {
  padding: 9px 12px;
  border-radius: 9px;
  color: #c8d8e5;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.primary-small { color: #05231e; background: var(--teal); }
.text-button { color: var(--muted); background: transparent; text-decoration: underline; text-underline-offset: 3px; }

.launch-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.launch-button {
  min-width: 260px;
  padding: 17px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-radius: 14px;
  color: #05130f;
  background: linear-gradient(135deg, #7af1d8, #35d2b4);
  box-shadow: 0 12px 30px rgba(68, 224, 193, 0.2);
  cursor: pointer;
  font-weight: 900;
}
.launch-button span { font-size: 21px; }
.launch-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.continue-button { color: #211900; background: linear-gradient(135deg, #ffe89c, var(--gold)); box-shadow: 0 12px 30px rgba(255, 210, 96, 0.16); }
.compact-launch { min-width: 230px; }

.game-links { display: flex; justify-content: center; gap: 28px; margin-top: 42px; }
.game-links a { color: var(--muted); font-size: 12px; text-underline-offset: 4px; }

footer { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); color: #71889d; font-size: 11px; }
footer a { color: #a7bdcf; }

.dealer-screen, .score-screen { padding: 54px 0 70px; text-align: center; }
.dealer-screen > p:not(.eyebrow), .score-screen > p:not(.eyebrow) { max-width: 620px; margin: 18px auto 30px; color: var(--muted); line-height: 1.6; }
.dealer-screen h1, .score-screen h1 { font-size: clamp(38px, 5vw, 62px); }
.dealer-grid { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 14px; margin: 38px 0 28px; }
.dealer-draw { min-width: 112px; padding: 14px 12px; display: grid; justify-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 16px; background: rgba(9, 31, 48, 0.75); }
.dealer-draw > strong { font-size: 13px; }
.dealer-draw > span { color: var(--muted); font-size: 12px; font-weight: 850; }
.dealer-winner { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255, 210, 96, 0.15); }
.dealer-result { width: min(520px, 100%); margin: 0 auto 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dealer-result div { padding: 16px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.dealer-result span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; }
.dealer-result strong { color: var(--gold); font-size: 18px; }

.game-shell { width: min(1540px, calc(100% - 24px)); margin: 0 auto; padding-bottom: 32px; }
.game-topbar { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.round-mark { display: flex; align-items: baseline; gap: 6px; }
.round-mark span, .round-mark small { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; }
.round-mark strong { color: var(--gold); font-size: 30px; }
.turn-summary { display: grid; justify-items: center; gap: 3px; }
.turn-summary span { color: var(--teal); font-size: 11px; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
.turn-summary strong { font-size: 13px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.deck-count { color: var(--muted); font-size: 11px; }
.menu-icon { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: rgba(255, 255, 255, 0.05); cursor: pointer; font-weight: 800; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; padding-top: 16px; }
.table-zone { min-width: 0; }
.opponent-rail { min-height: 170px; display: flex; gap: 10px; overflow-x: auto; padding: 3px 3px 12px; scrollbar-color: var(--navy-700) transparent; }
.opponent { flex: 0 0 230px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5, 24, 39, 0.72); transition: 160ms ease; }
.opponent.active { border-color: var(--gold); background: rgba(255, 210, 96, 0.08); box-shadow: 0 0 24px rgba(255, 210, 96, 0.09); }
.opponent-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.avatar, .talk-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 29px; height: 29px; border-radius: 9px; color: #061813; background: var(--teal); font-size: 11px; font-weight: 950; }
.opponent-heading > div { display: grid; min-width: 0; }
.opponent-heading strong { font-size: 12px; }
.opponent-heading small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.play-surface { padding: 15px; border: 1px solid rgba(68, 224, 193, 0.17); border-radius: 20px; background: radial-gradient(circle at center, rgba(20, 111, 89, 0.33), rgba(3, 27, 35, 0.86)); box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.2); }
.piles { min-height: 174px; display: flex; align-items: center; justify-content: center; gap: clamp(24px, 6vw, 70px); }
.pile, .held-card { display: grid; justify-items: center; gap: 6px; }
.pile > span, .held-card > span { color: #adc2d2; font-size: 9px; font-weight: 900; letter-spacing: 0.14em; }
.pile small, .held-card small { color: #89a2b4; font-size: 9px; }
.table-logo { display: grid; justify-items: center; align-content: center; width: 110px; height: 110px; border: 1px solid rgba(68, 224, 193, 0.22); border-radius: 50%; color: rgba(227, 250, 245, 0.45); }
.table-logo span { font-size: 8px; font-weight: 900; letter-spacing: 0.25em; }
.table-logo strong { color: rgba(68, 224, 193, 0.6); font-size: 42px; line-height: 0.9; }
.empty-card { width: var(--card-w); height: var(--card-h); display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 11px; }

.message-bar { min-height: 52px; padding: 10px 15px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; border-radius: 13px; color: #c3d4e2; background: rgba(2, 14, 22, 0.55); text-align: center; font-size: 13px; line-height: 1.4; }
.message-bar.attention { color: #fff5ce; background: rgba(255, 210, 96, 0.11); box-shadow: inset 0 0 0 1px rgba(255, 210, 96, 0.2); }
.quick-move { flex: 0 0 auto; padding: 7px 9px; border-radius: 8px; color: var(--navy-950); background: var(--gold); cursor: pointer; font-size: 10px; font-weight: 900; }
.skip-flip { background: var(--teal); }

.human-board { margin-top: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(7, 27, 43, 0.86); }
.human-board.active { border-color: rgba(68, 224, 193, 0.58); box-shadow: 0 0 28px rgba(68, 224, 193, 0.08); }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.board-heading .eyebrow { margin-bottom: 2px; }
.board-heading h2 { margin: 0; font-size: 21px; }
.score-stack { display: flex; gap: 8px; }
.score-stack span { padding: 7px 10px; border-radius: 9px; color: var(--muted); background: rgba(255, 255, 255, 0.045); font-size: 10px; }
.score-stack strong { color: var(--ink); font-size: 13px; }
.next-arrow { margin: 14px auto 0; padding: 12px 17px; display: flex; align-items: center; gap: 30px; border-radius: 10px; color: #061711; background: var(--teal); cursor: pointer; font-weight: 900; }

.card-grid { display: grid; grid-template-columns: repeat(4, var(--card-w)); justify-content: center; gap: 8px; }
.mini-grid { grid-template-columns: repeat(4, var(--mini-w)); gap: 3px; }
.card {
  position: relative;
  width: var(--card-w);
  height: var(--card-h);
  padding: 9px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid #e9eef2;
  border-radius: 12px;
  color: #152534;
  background: #f6f3e9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  user-select: none;
}
.card.mini-card { width: var(--mini-w); height: var(--mini-h); padding: 3px; border-width: 1.5px; border-radius: 6px; }
button.card { appearance: none; font: inherit; }
.card.clickable { cursor: pointer; transition: transform 120ms ease, box-shadow 120ms ease; }
.card.clickable:hover { z-index: 3; transform: translateY(-5px); box-shadow: 0 9px 18px rgba(0, 0, 0, 0.4); }
.card.matched { box-shadow: 0 0 0 3px var(--teal), 0 7px 15px rgba(0, 0, 0, 0.35); }
.card-back { color: var(--gold); background: repeating-linear-gradient(45deg, #071c30 0 8px, #0b2b46 8px 16px); border-color: #7ea0b9; }
.back-logo { padding: 9px 5px; border: 1px solid rgba(255, 210, 96, 0.45); border-radius: 7px; font-size: 9px; font-weight: 800; line-height: 1.25; letter-spacing: 0.09em; text-align: center; }
.back-logo b { font-size: 11px; }
.mini-card .back-logo { padding: 3px 1px; font-size: 5px; }
.mini-card .back-logo b { font-size: 6px; }
.corner { position: absolute; top: 4px; left: 5px; font-size: 10px; font-weight: 950; }
.corner-bottom { top: auto; left: auto; right: 5px; bottom: 4px; transform: rotate(180deg); }
.mini-card .corner { top: 1px; left: 2px; font-size: 6px; }
.mini-card .corner-bottom { top: auto; left: auto; right: 2px; bottom: 1px; }
.card-name { max-width: 100%; font-size: 8px; font-weight: 950; line-height: 1.1; text-align: center; text-transform: uppercase; }
.mini-card .card-name { font-size: 4.5px; }
.target-value { margin-top: 5px; font-size: 26px; font-weight: 950; }
.mini-card .target-value { font-size: 13px; }
.card-icon { margin-bottom: 6px; font-size: 27px; font-weight: 950; }
.mini-card .card-icon { margin-bottom: 2px; font-size: 13px; }
.balls { width: 60px; margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.ball { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset -2px -2px 2px rgba(0, 0, 0, 0.25); }
.mini-card .balls { width: 34px; margin-top: 2px; gap: 1px; }
.mini-card .ball { width: 4px; height: 4px; }
.ball-red { background: #e43f46; } .ball-orange { background: #f39232; } .ball-yellow { background: #f4cf3c; }
.ball-green { background: #42a96b; } .ball-blue { background: #3c83d1; } .ball-purple { background: #8351c8; } .ball-pink { background: #f06ca7; }
.target-screen { position: relative; width: 55px; height: 42px; margin-bottom: 7px; display: grid; place-items: center; overflow: hidden; border: 3px solid #293b49; border-radius: 5px; color: white; background: #101b28; }
.target-screen i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #8e55dc; }
.target-screen i:nth-child(1) { top: 4px; left: 7px; } .target-screen i:nth-child(2) { top: 5px; right: 6px; } .target-screen i:nth-child(3) { bottom: 4px; left: 16px; } .target-screen i:nth-child(4) { right: 13px; bottom: 5px; }
.target-screen b { z-index: 2; font-size: 5px; text-align: center; }
.mini-card .target-screen { width: 27px; height: 21px; margin-bottom: 2px; border-width: 1px; }
.mini-card .target-screen i { width: 4px; height: 4px; }
.attempt-art { display: grid; place-items: center; gap: 3px; margin-bottom: 3px; font-size: 21px; font-weight: 950; }
.attempt-art small { font-size: 6px; font-weight: 900; line-height: 1.15; text-align: center; text-transform: uppercase; }
.mini-card .attempt-art { gap: 0; margin: 0; font-size: 10px; }
.mini-card .attempt-art small { display: none; }

.target-gray { color: white; background: #6f7c87; } .target-purple { color: white; background: #7446c8; }
.target-white { background: white; } .target-blue { color: white; background: #287bc4; }
.target-brown { color: white; background: #86552f; } .target-green { color: white; background: #3b9854; }
.target-yellow { background: #f3d552; } .target-red { color: white; background: #d94b50; }
.hole-red { background: #ef777a; } .hole-orange { background: #f5a24e; } .hole-yellow { background: #f5d85f; }
.hole-green { background: #63bd78; } .hole-blue { background: #70a9df; } .hole-purple { color: white; background: #9870d8; }
.hole-pink { background: #f49bc1; } .hole-white { background: white; } .hole-gray { color: white; background: #89949d; }
.hole-black { color: white; background: #20262d; } .hole-brown { color: white; background: #966849; }

.table-talk { min-height: 670px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: rgba(5, 24, 39, 0.84); }
.talk-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.talk-heading .eyebrow { margin-bottom: 3px; font-size: 8px; }
.talk-heading h2 { margin: 0; font-size: 17px; }
.live-dot { padding: 5px 7px; border-radius: 99px; color: var(--teal); background: rgba(68, 224, 193, 0.12); font-size: 8px; font-weight: 900; }
.talk-feed { display: grid; gap: 2px; padding-top: 8px; }
.talk-item { padding: 11px 2px; display: grid; grid-template-columns: 30px 1fr; gap: 9px; border-bottom: 1px solid rgba(167, 199, 221, 0.09); }
.talk-item.llm .talk-avatar { color: #1c1032; background: var(--purple); }
.talk-name { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 900; }
.talk-name span { padding: 2px 5px; border-radius: 99px; color: #d9ccff; background: rgba(169, 135, 255, 0.14); font-size: 7px; }
.talk-item p { margin: 4px 0; color: #e8f1f7; font-size: 12px; line-height: 1.4; }
.talk-item small { display: block; color: #7f97aa; font-size: 9px; line-height: 1.35; }

.score-table-wrap { overflow-x: auto; margin: 30px 0 22px; }
.score-table { width: 100%; min-width: 540px; border-collapse: collapse; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 27, 43, 0.8); }
.score-table th, .score-table td { padding: 11px 12px; border: 1px solid var(--line); font-size: 12px; }
.score-table thead th { color: var(--gold); background: rgba(255, 255, 255, 0.045); }
.score-table .total-row { color: var(--teal); font-weight: 950; background: rgba(68, 224, 193, 0.07); }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; text-align: left; }
.result-card { padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 27, 43, 0.75); }
.result-card > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.result-card h2 { margin: 0; font-size: 17px; }
.result-card > div > strong { color: var(--gold); font-size: 26px; }
.result-card ul { margin: 13px 0 0; padding: 0; list-style: none; }
.result-card li { padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); border-top: 1px solid rgba(167, 199, 221, 0.08); font-size: 10px; }
.result-card li.bonus { color: var(--teal); font-weight: 850; }
.ranking { width: min(560px, 100%); margin: 24px auto; padding: 20px; border: 1px solid rgba(255, 210, 96, 0.3); border-radius: 18px; background: rgba(255, 210, 96, 0.06); }
.ranking h2 { margin: 0 0 12px; }
.ranking div { padding: 8px 4px; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; border-top: 1px solid var(--line); text-align: left; }
.ranking div > span { color: var(--gold); font-weight: 900; }
.score-actions { margin-top: 25px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; }

.pause-screen { min-height: 100vh; padding: 24px; display: grid; place-items: center; }
.pause-card { width: min(520px, 100%); padding: clamp(28px, 6vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(150deg, #102f45, #061724); box-shadow: var(--shadow); text-align: center; }
.pause-card h1 { font-size: clamp(34px, 7vw, 54px); }
.pause-card > p:not(.eyebrow) { margin: 18px 0 25px; color: var(--muted); line-height: 1.6; }
.pause-actions { display: grid; justify-items: stretch; gap: 10px; }
.pause-actions .launch-button { width: 100%; }
.recovery-button { padding: 13px; border: 1px solid var(--line); border-radius: 11px; color: #d9e6ee; background: rgba(255, 255, 255, 0.05); cursor: pointer; font-weight: 800; }
.recovery-button:hover { border-color: var(--gold); }

noscript { display: block; padding: 40px; text-align: center; }

@media (max-width: 1080px) {
  .setup-grid { grid-template-columns: 1fr 1fr; }
  .ai-setup { grid-column: 1 / -1; }
  .game-layout { grid-template-columns: 1fr; }
  .table-talk { min-height: 0; }
  .talk-feed { grid-template-columns: repeat(2, 1fr); }
  .talk-item { border-right: 1px solid rgba(167, 199, 221, 0.09); }
}

@media (max-width: 760px) {
  :root { --card-w: 68px; --card-h: 96px; --mini-w: 36px; --mini-h: 51px; }
  .page-shell, .game-shell { width: min(100% - 18px, 1240px); }
  .site-header { min-height: 72px; }
  .header-meta { display: none; }
  .menu-main { padding-top: 32px; }
  .menu-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-card-stack { display: none; }
  .setup-grid { grid-template-columns: 1fr; margin-top: 38px; }
  .ai-setup { grid-column: auto; }
  .launch-row { display: grid; }
  .launch-button { width: 100%; min-width: 0; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
  .game-topbar { grid-template-columns: auto 1fr auto; }
  .turn-summary { justify-items: start; }
  .turn-summary strong, .deck-count { display: none; }
  .round-mark small { display: none; }
  .opponent { flex-basis: 202px; }
  .piles { gap: 18px; }
  .table-logo { width: 75px; height: 75px; }
  .table-logo strong { font-size: 30px; }
  .human-board { padding: 12px 6px; }
  .board-heading { padding: 0 7px; }
  .score-stack { display: grid; gap: 3px; }
  .card-grid { gap: 5px; }
  .talk-feed { grid-template-columns: 1fr; }
  .dealer-grid { gap: 8px; }
  .dealer-draw { min-width: 88px; padding: 10px 7px; }
}

@media (max-width: 390px) {
  :root { --card-w: 61px; --card-h: 88px; }
  .setup-card { padding: 22px; }
  .player-choices { grid-template-columns: repeat(3, 1fr); }
  .piles { gap: 10px; }
  .table-logo { width: 58px; height: 58px; }
  .table-logo span { display: none; }
  .card-grid { gap: 4px; }
  .score-stack span { padding: 5px 7px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
