* { box-sizing: border-box; }
:root {
    --ink: #111114;
    --muted: #65656b;
    --paper: #f7f7f4;
    --white: #ffffff;
    --line: rgba(17,17,20,.16);
    --blue: #0039a6;
    --blue-dark: #001d58;
    --red: #d52b1e;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
html { scroll-behavior: smooth; }
body { margin: 0; padding-top: 76px; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(circle at 5% 5%, rgba(0,57,166,.1), transparent 28rem), radial-gradient(circle at 95% 8%, rgba(213,43,30,.09), transparent 30rem), var(--paper); }
a { color: inherit; }
button { font: inherit; }
.hidden { display: none !important; }
.eyebrow, .section-label, .panel-label { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }

.game-header { position: fixed; inset: 0 0 auto; z-index: 100; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 12px clamp(18px,4vw,64px); border-bottom: 1px solid var(--line); background: rgba(247,247,244,.94); backdrop-filter: blur(18px); box-shadow: 0 8px 28px rgba(0,0,0,.04); }
.game-header::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #fff 0 33.33%, var(--blue) 33.33% 66.66%, var(--red) 66.66%); }
.wordmark { font-size: 18px; font-weight: 690; letter-spacing: -.03em; text-decoration: none; }
.game-title { display: grid; gap: 3px; text-align: center; }
.game-title span { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.game-title strong { color: var(--red); font-size: 13px; }
.pace { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: #414147; font-size: 13px; text-align: right; }
.pace span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #999; }
.pace span.active { background: var(--red); box-shadow: 0 0 0 5px rgba(213,43,30,.1); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .35; } }

.game-shell { width: min(1500px,100%); margin: auto; }
.game-intro { min-height: 690px; display: grid; grid-template-columns: 1.55fr 1fr; align-content: center; gap: 40px 7vw; padding: clamp(72px,10vw,150px) clamp(20px,6vw,90px); border-bottom: 1px solid var(--line); }
.game-intro .eyebrow { grid-column: 1 / -1; }
.game-intro h1 { margin: 0; color: var(--ink); font-size: clamp(88px,15vw,210px); font-weight: 570; letter-spacing: -.085em; line-height: .78; }
.intro-copy { align-self: end; padding-bottom: 12px; }
.intro-copy p { max-width: 520px; margin: 0 0 22px; font-size: clamp(20px,2.2vw,31px); font-weight: 470; letter-spacing: -.035em; line-height: 1.12; }
.intro-copy p:last-child { color: var(--muted); font-size: clamp(16px,1.4vw,20px); line-height: 1.45; }

.arena, .negotiation-section, .history-section { padding: clamp(72px,9vw,132px) clamp(20px,5vw,76px); border-bottom: 1px solid var(--line); }
.arena-heading { display: grid; grid-template-columns: minmax(150px,.7fr) 2fr; align-items: start; gap: 40px; margin-bottom: 56px; }
.arena-heading h2, .section-intro h2 { margin: -10px 0 0; font-size: clamp(50px,7vw,104px); font-weight: 560; letter-spacing: -.065em; line-height: .95; }
.arena-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(330px,.75fr); align-items: start; gap: clamp(26px,4vw,64px); }
.table-column { min-width: 0; }

.player-strip { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--line); background: rgba(255,255,255,.66); transition: border-color .3s ease, background .3s ease, transform .3s ease; }
.player-strip.active-player { border-color: var(--blue); background: white; transform: translateX(4px); box-shadow: inset 4px 0 var(--blue); }
.player-identity { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 4px 10px; }
.player-identity span { grid-column: 1 / -1; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.player-identity strong { font-size: 24px; letter-spacing: -.03em; }
.player-identity small { color: var(--red); font-size: 13px; font-weight: 720; }
.player-identity small.positive { color: var(--blue); }
.seat-meta { display: grid; grid-template-columns: auto auto; align-items: center; justify-items: end; gap: 6px 9px; text-align: right; }
.seat-meta > span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.seat-meta .player-state, .seat-meta > strong { grid-column: 1 / -1; max-width: 490px; font-size: 13px; line-height: 1.4; }
.dealer-button { display: inline-grid; width: 29px; height: 29px; place-items: center; border: 2px solid var(--red); border-radius: 50%; background: white; color: var(--blue); font-family: var(--mono); font-size: 12px; box-shadow: 0 5px 12px rgba(0,0,0,.1); }

.dealer-console { min-height: 86px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 20px; border-inline: 1px solid var(--line); background: white; }
.dealer-console strong { display: block; margin-top: 5px; font-size: 15px; line-height: 1.35; }
.dealer-avatar { display: grid; grid-template-columns: auto auto; align-items: center; gap: 7px; }
.dealer-head { width: 36px; height: 36px; border: 2px solid var(--blue-dark); border-radius: 50% 50% 44% 44%; background: linear-gradient(#e6c6af 0 48%, #171719 49%); }
.deck-stack { position: relative; width: 31px; height: 14px; }
.deck-stack i { position: absolute; inset: 0; border: 1px solid white; border-radius: 2px; background: repeating-linear-gradient(45deg,var(--red) 0 3px,#fff 3px 4px); box-shadow: 0 0 0 1px var(--red); }
.deck-stack i:nth-child(2) { translate: 2px -2px; }.deck-stack i:nth-child(3) { translate: 4px -4px; }
.integrity { display: grid; justify-items: end; gap: 4px; }
.integrity span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.integrity b { color: var(--blue); font-size: 18px; }

.felt { position: relative; min-height: 670px; display: grid; grid-template-rows: 1fr auto 1fr; align-items: center; gap: 26px; padding: 48px clamp(18px,4vw,52px); overflow: hidden; border: 10px solid var(--red); background: radial-gradient(circle at 50% 43%, #2863cb 0, var(--blue) 52%, var(--blue-dark) 100%); box-shadow: inset 0 0 0 6px rgba(255,255,255,.22), 0 30px 70px rgba(0,57,166,.2); }
.felt::after { content: "POKER ONE"; position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; color: rgba(255,255,255,.07); font-size: clamp(46px,8vw,102px); font-weight: 730; letter-spacing: -.065em; white-space: nowrap; pointer-events: none; }
.felt-seat, .table-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 10px; }
.felt-seat > span { color: rgba(255,255,255,.68); font-family: var(--mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.table-center { gap: 16px; }
.pot { display: grid; justify-items: center; color: white; }
.pot span { color: rgba(255,255,255,.65); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pot strong { font-size: 32px; }
.card-row { display: flex; justify-content: center; gap: 10px; max-width: 100%; }
.playing-card, .card-slot { width: clamp(54px,6vw,82px); aspect-ratio: .7; border-radius: 8px; }
.playing-card { position: relative; display: flex; align-items: center; justify-content: center; color: #161519; background: #fbfaf7; box-shadow: 0 8px 20px rgba(0,0,0,.24); transform-origin: 50% -180%; animation: card-deal .55s cubic-bezier(.2,.8,.2,1) both; }
.playing-card span { position: absolute; top: 8px; left: 9px; font-weight: 750; }.playing-card b { font-size: clamp(25px,3.5vw,44px); }.playing-card.red { color: #c4232e; }
.playing-card.card-back { border: 3px solid #f7f5ef; background: repeating-linear-gradient(45deg,#1a3269 0 6px,#e8e5dd 6px 8px); }
.card-slot { border: 1px dashed rgba(255,255,255,.28); }
.card-row .playing-card:nth-child(2) { animation-delay: .08s; }.board .playing-card:nth-child(3) { animation-delay: .14s; }.board .playing-card:nth-child(4) { animation-delay: .2s; }.board .playing-card:nth-child(5) { animation-delay: .26s; }
@keyframes card-deal { from { opacity: 0; transform: translateY(-50px) rotate(-7deg) scale(.8); } to { opacity: 1; transform: none; } }
.action-flash { position: absolute; inset: 50% auto auto 50%; z-index: 8; translate: -50% -50%; padding: 12px 20px; border: 2px solid white; background: var(--red); color: white; font-size: clamp(18px,2vw,27px); font-weight: 750; opacity: 0; pointer-events: none; white-space: nowrap; }
.action-flash.show { animation: action-pop 1.8s ease both; }
@keyframes action-pop { 0% { opacity: 0; transform: scale(.72); } 18%,72% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.chip-flight { display: none; }
.table-status { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-top: 0; background: white; }
.table-status div { min-width: 0; display: grid; gap: 6px; padding: 17px 20px; border-right: 1px solid var(--line); }
.table-status div:last-child { border: 0; }
.table-status span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }
.table-status strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.3; }

.analysis-panel { min-width: 0; padding: clamp(26px,3vw,42px); background: linear-gradient(150deg,#063b9d,var(--blue-dark) 76%); color: white; box-shadow: 0 26px 70px rgba(0,57,166,.18); }
.analysis-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.analysis-header h2 { margin: 8px 0 0; font-size: clamp(42px,4vw,65px); font-weight: 560; letter-spacing: -.055em; }
.analysis-panel .panel-label, .selected-move-block span, .metric-heading span, .metric-grid span, .analysis-panel .empty, .candidate span, .rate-note { color: rgba(255,255,255,.65); }
.state-pill { padding: 7px 10px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.match-goal { display: grid; gap: 5px; margin: 28px 0; padding: 16px 18px; border-left: 3px solid var(--red); background: rgba(255,255,255,.08); }
.match-goal span { color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }.match-goal strong { font-size: 18px; }.match-goal small { color: rgba(255,255,255,.64); line-height: 1.4; }
.selected-move-block { display: grid; gap: 5px; margin: 34px 0; }.selected-move-block span, .metric-heading span, .metric-grid span { font-family: var(--mono); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }.selected-move-block strong { font-size: clamp(44px,5vw,72px); font-weight: 560; letter-spacing: -.055em; text-transform: capitalize; }.selected-move-block small { color: rgba(255,255,255,.68); }
.metric-heading { display: flex; justify-content: space-between; }.meter { height: 5px; margin-top: 10px; background: rgba(255,255,255,.16); }.meter div { width: 0; height: 100%; background: var(--red); transition: width .4s ease; }
.metric-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 28px; border-block: 1px solid rgba(255,255,255,.18); }
.metric-grid div { min-width: 0; display: grid; gap: 8px; padding: 18px 8px; border-right: 1px solid rgba(255,255,255,.18); }.metric-grid div:last-child { border: 0; }.metric-grid strong { font-size: 20px; }
.panel-section { margin-top: 34px; }.panel-section h3 { margin: 0 0 18px; font-size: 14px; }.candidate { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.15); text-transform: capitalize; }.candidate span { font-family: var(--mono); font-size: 12px; }
.panel-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 38px; }.panel-actions button { min-height: 50px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: white; cursor: pointer; }.panel-actions button:last-child { background: white; color: var(--blue); }.rate-note { margin: 14px 0 0; font-size: 12px; text-align: center; }

.section-intro { display: grid; grid-template-columns: minmax(160px,.7fr) 1.5fr; gap: 28px 40px; margin-bottom: 52px; }
.section-intro h2 { grid-column: 2; }
.section-intro > p:last-child { grid-column: 2; max-width: 720px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }
.neutrality-banner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-bottom: 20px; padding: 19px 22px; border: 1px solid rgba(0,57,166,.3); background: rgba(0,57,166,.06); }
.neutrality-banner span { padding: 7px 10px; background: var(--blue); color: white; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.neutrality-banner.compromised { border-color: rgba(213,43,30,.42); background: rgba(213,43,30,.07); }.neutrality-banner.compromised span { background: var(--red); }
.chat-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: white; }
.chat-channel { min-width: 0; min-height: 360px; }.chat-channel + .chat-channel { border-left: 1px solid var(--line); }
.chat-channel header { display: flex; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 10px; letter-spacing: .09em; }.chat-channel header b { color: var(--red); }
.chat-thread { display: grid; align-content: start; gap: 18px; max-height: 520px; overflow-y: auto; padding: 24px; }
.empty-chat { color: var(--muted); font-size: 14px; }
.chat-exchange { display: grid; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.chat-exchange:last-child { border: 0; }.chat-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }.message { max-width: 88%; margin: 0; padding: 11px 13px; font-size: 14px; line-height: 1.45; }.message.player { justify-self: end; background: var(--blue); color: white; }.message.dealer { background: #eeeeea; }.chat-result { color: var(--muted); font-size: 11px; font-weight: 700; }.chat-result.accepted { color: var(--red); }

.history-section { min-height: 560px; }
.history-list { display: grid; border-top: 1px solid var(--ink); }
.history-item { display: grid; grid-template-columns: .7fr 1.5fr auto; gap: 30px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }.history-item span { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.history-item strong { font-size: clamp(18px,2vw,26px); font-weight: 540; }.history-item em { color: var(--blue); font-style: normal; font-weight: 700; }
.empty { color: var(--muted); }

.game-footer { position: static; display: flex; justify-content: space-between; gap: 28px; padding: 42px clamp(20px,5vw,76px); border-top: 7px solid var(--red); background: var(--blue); color: white; font-size: 14px; font-weight: 650; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 980px) {
    .game-intro { min-height: 600px; }
    .arena-grid { grid-template-columns: 1fr; }
    .analysis-panel { margin-top: 18px; }
    .felt { min-height: 640px; }
}
@media (max-width: 720px) {
    body { padding-top: 68px; }
    .game-header { min-height: 68px; grid-template-columns: 1fr auto; padding-inline: 16px; }
    .game-title { display: none; }
    .game-intro { min-height: auto; grid-template-columns: 1fr; padding-block: 90px; }
    .game-intro .eyebrow { grid-column: 1; }.intro-copy { padding: 0; }
    .arena-heading, .section-intro { grid-template-columns: 1fr; gap: 24px; }
    .arena-heading h2, .section-intro h2, .section-intro > p:last-child { grid-column: 1; }
    .felt { min-height: 560px; padding-inline: 12px; border-width: 7px; }
    .playing-card, .card-slot { width: clamp(46px,13.4vw,68px); }.card-row { gap: 5px; }
    .dealer-console { grid-template-columns: auto 1fr; }.dealer-console .integrity { grid-column: 1 / -1; grid-template-columns: 1fr auto; justify-items: start; width: 100%; padding-top: 8px; border-top: 1px solid var(--line); }.dealer-console .integrity b { justify-self: end; }
    .table-status { grid-template-columns: 1fr; }.table-status div { border-right: 0; border-bottom: 1px solid var(--line); }
    .player-strip { align-items: flex-start; padding-inline: 14px; }.seat-meta > strong { max-width: 210px; }
    .chat-grid { grid-template-columns: 1fr; }.chat-channel + .chat-channel { border-left: 0; border-top: 1px solid var(--line); }
    .history-item { grid-template-columns: 1fr auto; gap: 8px 18px; }.history-item strong { grid-column: 1 / -1; grid-row: 2; }.history-item em { grid-column: 2; grid-row: 1; }
    .game-footer { flex-direction: column; }
}
@media (max-width: 430px) {
    .pace strong { max-width: 145px; }.player-identity strong { font-size: 20px; }.seat-meta { max-width: 52%; }.panel-actions { grid-template-columns: 1fr; }
}
