:root{color-scheme:dark;--bg:#081717;--felt:#153936;--ink:#f5f5e9;--muted:#a5bbb3;--lime:#d4ffb1;--orange:#ffb47d;--line:#ffffff1b;font-family:Inter,system-ui,"Microsoft YaHei",sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 18%,#193632,var(--bg) 70%);color:var(--ink);min-height:100svh}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:0;touch-action:manipulation}button:disabled{cursor:default;opacity:.36}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:3px}a{color:var(--lime);text-decoration:none}button,button::before{transition:background .15s,transform .15s,box-shadow .15s}[hidden]{display:none!important}.shell{max-width:970px;margin:auto;padding:24px 28px max(20px,env(safe-area-inset-bottom))}.masthead{display:flex;align-items:center;gap:22px;margin-bottom:25px}.back{color:var(--muted);font-size:13px;white-space:nowrap}.brand{flex:1}.brand>span{font:10px/1.5 monospace;letter-spacing:2.5px;color:var(--muted)}h1{font-size:26px;letter-spacing:-1px;margin:4px 0 0}h1 span{color:var(--lime);margin-left:3px}.quiet{background:transparent;color:var(--muted);min-height:44px;padding:8px 13px;font-size:13px;border-radius:9px}.quiet:hover{background:#ffffff0a;color:var(--ink)}.table-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.table-tag{font-size:12px;letter-spacing:1px;color:var(--muted)}.clock{display:flex;align-items:center;gap:9px;font:14px monospace;color:var(--muted)}.clock .quiet{font-size:20px;min-height:32px;padding:3px 9px}.table{position:relative;overflow:hidden;border:1px solid #42625a;background:radial-gradient(ellipse at center,#245347 0%,#143a33 75%);border-radius:25px;box-shadow:inset 0 0 0 7px #09242144,0 14px 55px #0003;min-height:422px;padding:23px 30px 16px}.table::before{content:"♠";font-family:Georgia,serif;font-size:260px;line-height:1;position:absolute;left:50%;top:53%;transform:translate(-50%,-50%);color:#c9ecd603;pointer-events:none}.opponent{display:flex;align-items:center;gap:13px}.opponent img{width:58px;height:58px;border-radius:50%;object-fit:cover;object-position:center;border:1px solid #ffffff32;background:#ffb47d20}.seat-name{font-weight:700;font-size:16px}.seat-name span{font-size:10px;vertical-align:middle;font-weight:500;padding:3px 6px;background:#ffe1bf17;color:#ffcca0;border-radius:5px;margin-left:5px}.opponent p{font-size:12px;color:#b8cdbf;margin:7px 0 0}.cards-left{margin-left:auto;text-align:right;display:flex;align-items:baseline;gap:6px}.cards-left strong{font:34px Georgia,serif;color:var(--orange)}.cards-left span{font-size:11px;color:#a6beb1}.card-backs{display:flex;justify-content:center;height:37px;margin:8px 0 12px}.card-back{height:34px;width:23px;background:repeating-linear-gradient(45deg,#a5c7ad10 0px,#a5c7ad10 1px,transparent 1px,transparent 5px),#21473e;border:1px solid #799985;border-radius:4px;margin-left:-5px;transform:rotate(-3deg)}.card-back:first-child{margin-left:0}.table-center{display:flex;flex-direction:column;align-items:center;position:relative;gap:8px}.played-zone{min-height:84px;width:100%;display:flex;flex-direction:column;align-items:center;gap:6px;opacity:.6}.played-zone.current{opacity:1}.zone-label{font-size:10px;letter-spacing:1px;color:#c2d5c6;min-height:15px}.played-cards{display:flex;justify-content:center;min-height:57px;align-items:center;width:100%}.played-cards:empty::before{content:"—";color:#a3cbb044}.turn-message{border:1px solid #ffffff1a;background:#092b2390;padding:9px 22px;border-radius:30px;color:var(--lime);font-size:13px;text-align:center;min-width:180px}.table-bottom{margin-top:15px;display:flex;justify-content:space-between;gap:8px;color:#9ab7a6;font-size:10px}.cover{position:absolute;inset:0;background:radial-gradient(ellipse at 72% 10%,#285845ee,#0e302af7 75%);display:flex;align-items:flex-start;flex-direction:column;justify-content:center;padding:28px 48px;z-index:5}.cover::after{content:"♣";position:absolute;right:45px;top:80px;color:#b6ee9510;font:240px Georgia,serif;pointer-events:none}.kicker{font-size:10px;letter-spacing:1.6px;text-transform:uppercase;color:var(--lime)}h2{font-size:34px;line-height:1.25;letter-spacing:-1px;margin:12px 0 8px}.cover p{font-size:13px;line-height:1.7;color:#adc6b6;margin:0 0 13px}.cover small{font-size:10px;color:#9bb7a7;margin-top:12px}.profile-choice{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:10px;margin:0 0 5px;z-index:1}.profile-choice button{background:transparent;border-radius:6px;padding:9px 26px;color:var(--muted);font-size:12px}.profile-choice button.selected{background:#d4ffb11c;color:var(--lime)}.cover .profile-hint{font-size:10px;margin:1px 0 10px}.primary{background:var(--lime);color:#143527;border-radius:10px;min-height:46px;padding:12px 23px;display:flex;justify-content:space-between;gap:35px;font-weight:700;font-size:14px}.primary:hover:not(:disabled){background:#e1ffc9}.primary:active:not(:disabled){transform:translateY(1px)}.cover .primary{min-width:225px;z-index:1}.cover .error{font-size:12px;color:#ffc1a0;margin-top:10px}.cover progress{width:225px;height:5px;margin-top:13px;accent-color:var(--lime)}.compact{align-items:center;text-align:center;background:#102e28f5}.compact::after{display:none}.compact h2{font-size:38px}.compact .quiet{margin-top:7px}.result-record{font-size:12px;color:var(--orange);margin:0 0 25px}.hand-panel{padding-top:21px}.hand-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.hand-heading strong{font-size:13px}.hand-heading strong span{color:var(--lime);margin-left:6px;font-variant-numeric:tabular-nums}.hand-heading>span{font-size:11px;color:var(--muted)}.hand{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:5px;min-height:86px;align-items:start}.card{background:#f7f5e9;color:#163833;border-radius:8px;min-width:0;height:85px;padding:6px 7px 5px;text-align:left;box-shadow:0 3px 0 #bebdad;position:relative;display:flex;flex-direction:column;justify-content:space-between;border:2px solid transparent;user-select:none}.card .rank{font:700 25px/1 Georgia,serif;letter-spacing:-1px}.card .suit{font:22px/1 Georgia,serif;align-self:flex-end}.card.red{color:#b44337}.card.selected{transform:translateY(-10px);border-color:var(--lime);background:#efffdc;box-shadow:0 0 0 2px #abff6060,0 3px 0 #8eb07a}.card:disabled{opacity:1;cursor:default}.card.ghost{background:repeating-linear-gradient(45deg,#acd1bb0a 0,#acd1bb0a 1px,transparent 1px,transparent 6px),#15342d;border:1px solid #5c756750;box-shadow:none}.card.mini{height:56px;width:37px;min-width:28px;max-width:37px;border-radius:5px;padding:4px;box-shadow:0 2px 0 #c7c6b5;margin-left:3px;flex-shrink:1}.card.mini:first-child{margin-left:0}.card.mini .rank{font-size:17px}.card.mini .suit{font-size:15px}.pass-label{color:#cad9c2;font-size:15px;letter-spacing:3px}.actions{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:19px}.secondary{min-height:46px;background:#ffffff09;border:1px solid #ffffff22;border-radius:10px;padding:10px 20px;font-size:13px}.secondary:hover:not(:disabled){background:#ffffff13}.play{min-width:140px;justify-content:center}.hand-hint{font-size:11px;line-height:1.6;color:#92ada0;text-align:center;margin:13px 0 0}footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:17px;padding-top:5px;gap:10px}footer>span{font-size:10px;color:#84a397}footer .quiet{font-size:11px;padding-right:0}.urgent{color:#ffb47d!important;animation:pulse 1.3s ease-in-out infinite}@keyframes pulse{50%{opacity:.55}}dialog{position:fixed;background:#142d29;color:var(--ink);border:1px solid #628072;border-radius:20px;max-width:min(590px,calc(100vw - 30px));max-height:85svh;padding:30px 32px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#031412b8;backdrop-filter:blur(5px)}dialog h2{font-size:28px}dialog p,dialog li{font-size:13px;line-height:1.85;color:#bbcec0}dialog ol{padding-left:21px}dialog li{margin-bottom:8px}dialog .footnote{font-size:11px;color:#8eae9a}.close{position:absolute;right:11px;top:9px;background:transparent;color:var(--muted);width:40px;height:40px;font-size:25px}.table.thinking .opponent img{box-shadow:0 0 0 4px #d4ffb10d}.table.your-turn{border-color:#8bb779}
@media(min-width:1000px){.shell{padding-top:32px}.table{min-height:440px}.table-center{gap:11px}.hand{gap:7px}.card{height:93px}.cover{padding-left:70px}.cover::after{right:70px;font-size:290px;top:60px}}
@media(max-width:640px){.shell{padding:14px 14px max(12px,env(safe-area-inset-bottom))}.masthead{gap:13px;margin-bottom:15px}.brand>span{font-size:8px;letter-spacing:2px}h1{font-size:22px}.back{font-size:11px}.masthead>.quiet{padding:7px 9px}.table-tag{font-size:10px}.table-top{margin-bottom:8px}.table{border-radius:19px;padding:16px 16px 12px;min-height:371px}.opponent img{height:44px;width:44px}.opponent{gap:9px}.opponent p{font-size:10px;max-width:195px}.seat-name{font-size:14px}.cards-left{gap:4px}.cards-left strong{font-size:27px}.cards-left span{font-size:9px}.card-backs{margin:6px 0 5px;height:32px}.card-back{height:27px;width:19px}.played-zone{min-height:73px}.played-cards{min-height:48px}.card.mini{height:48px;max-width:30px;min-width:19px;width:30px;padding:3px;margin-left:2px}.card.mini .rank{font-size:15px}.card.mini .suit{font-size:12px}.turn-message{font-size:12px;padding:8px 15px}.table-center{gap:6px}.table-bottom{margin-top:12px;font-size:9px}.cover{padding:23px 28px}.cover::after{right:13px;top:65px;font-size:200px}h2{font-size:29px;margin-top:9px}.cover p{font-size:12px;margin-bottom:10px}.profile-choice button{padding:8px 23px}.cover small{font-size:9px}.cover .primary{min-height:44px}.hand-panel{padding-top:17px}.hand-heading{margin-bottom:16px}.hand-heading>span{font-size:10px}.hand{grid-template-columns:repeat(7,minmax(0,1fr));gap:13px 5px;min-height:135px}.card{height:65px;border-radius:6px;padding:5px}.card .rank{font-size:22px}.card .suit{font-size:18px}.card.selected{transform:translateY(-6px)}.actions{gap:6px;margin-top:16px}.secondary{padding:10px 14px;font-size:12px}.actions .quiet{padding:8px 10px}.play{min-width:110px}.hand-hint{font-size:10px;margin-top:10px}.hand-panel{position:relative}.compact h2{font-size:32px}footer{margin-top:12px}footer>span{font-size:9px}dialog{padding:25px 22px}.hand .card{min-height:44px}}
@media(max-width:360px){.shell{padding-left:10px;padding-right:10px}.table{padding-left:12px;padding-right:12px}.opponent p{max-width:150px}.hand{grid-template-columns:repeat(6,minmax(0,1fr))}.card{padding:4px}.card .rank{font-size:20px}.actions{gap:4px}.secondary{padding:10px 12px}.play{min-width:100px}.hand-heading strong{font-size:12px}.hand-heading>span{font-size:9px}.cards-left span{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before{transition:none!important;animation:none!important}}

/* The final hand stays readable before and inside the result panel. */
.played-zone.winning{opacity:1}.played-zone.winning .card{box-shadow:0 2px 0 #c7c6b5,0 0 14px #d4ffb145}.result-last-play{margin:6px 0 14px;max-width:100%}#resultPanel{animation:result-arrive .25s ease-out}@keyframes result-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:640px){#resultPanel{padding:18px 24px;justify-content:flex-start;overflow-y:auto}#resultPanel h2{margin:8px 0 6px}#resultPanel .result-record{margin-bottom:12px}#resultPanel .result-last-play{margin:4px 0 10px}}


/* The table and hand form the main play area; the opponent stays in a side rail. */
.shell{max-width:2000px;width:100%;padding:18px clamp(18px,2.3vw,48px) max(14px,env(safe-area-inset-bottom))}
.masthead{margin-bottom:16px;gap:20px}.brand>span{display:block;font-size:9px;line-height:1.2}h1{font-size:25px;line-height:1.12}
.poker-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(270px,24vw,420px);grid-template-areas:"board observer" "hand observer" "footer footer";gap:14px 22px;align-items:start}
.play-area{grid-area:board;min-width:0;position:relative;z-index:0}.table-top{margin-bottom:8px}.table{height:clamp(420px,calc(100svh - 340px),630px);min-height:420px;padding:22px 32px 17px;border-radius:24px;display:flex;flex-direction:column}
.opponent img{display:none}.opponent{gap:10px}.opponent p{font-size:12px;margin-top:6px}.cards-left strong{font-size:32px}.seat-name{font-size:16px}.card-backs{height:29px;margin:8px 0 0}.card-back{height:27px;width:20px}
.table-center{margin:12px 0 0;gap:14px;flex:1;justify-content:center}.played-zone{min-height:116px;gap:8px}.played-cards{min-height:91px;gap:5px;container-type:inline-size}.card.mini{height:90px;width:64px;min-width:0;max-width:64px;flex:0 1 64px;padding:5px;margin-left:0;border-width:1px;border-radius:7px}.card.mini .rank{font-size:clamp(18px,3.4cqw,28px)}.card.mini .suit{font-size:clamp(16px,3cqw,25px)}.zone-label{font-size:12px}.turn-message{padding:10px 24px;font-size:14px}.table-bottom{margin-top:13px;font-size:11px}
.cover{padding:30px clamp(32px,5vw,90px)}.cover::after{right:10%;font-size:300px;top:60px}.cover h2{font-size:clamp(36px,3.5vw,54px)}.cover p{font-size:14px}.cover .profile-hint{font-size:11px}.cover small{font-size:11px}.cover .primary{min-width:255px;min-height:49px}.cover .error{max-width:100%;line-height:1.6}.compact h2{font-size:38px}.result-record{margin-bottom:16px}#resultPanel{padding:24px 30px;justify-content:center}.result-last-play{margin:5px 0 14px}
.observer-rail{grid-area:observer;min-width:0;display:flex;flex-direction:column;gap:14px;margin-top:32px}
.rival-window{min-width:0;position:relative;display:flex;flex-direction:column;border:1px solid #385249;border-radius:18px;overflow:hidden;background:#0b2420}
.rival-window-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 15px;background:#122b25;border-bottom:1px solid #ffffff12;flex:0 0 57px}.rival-eyebrow{display:block;font:8px/1.2 monospace;letter-spacing:1.6px;color:#8eaa9b}.rival-window h2{font-size:16px;letter-spacing:0;margin:5px 0 0}.rival-window-head .quiet{font-size:11px;min-height:30px;padding:5px 9px}
.rival-content{height:clamp(265px,28vw,355px);display:flex;min-height:0}.rival-stage{position:relative;flex:1;min-width:0;min-height:0;background:#0a2020}.rival-stage canvas{display:block;width:100%;height:100%;position:absolute;inset:0}.rival-stage>img{position:absolute;inset:9px 0 28px;width:100%;height:calc(100% - 37px);object-fit:contain}.rival-mood{position:absolute;bottom:10px;left:10px;right:10px;margin:0;text-align:center;color:#d6dfcb;font-size:12px;line-height:1.6;text-shadow:0 2px 10px #000;pointer-events:none}
.rival-neural{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "map" "stats" "hint";gap:10px;padding:14px 15px;border:1px solid #354f41;border-radius:17px;background:radial-gradient(ellipse at 50% 40%,#153327,#10271f)}
.neural-heading{grid-area:heading;display:flex;align-items:center;justify-content:space-between;gap:8px}.neural-heading strong{font-size:12px;color:#d6e9ca;white-space:nowrap}.neural-heading>span{font-size:10px;line-height:1.4;color:#a9c2a5;text-align:right}
#pokerNeuralCanvas{grid-area:map;display:block;width:100%;height:clamp(112px,14svh,155px);align-self:center;margin:0}.neural-stats{grid-area:stats;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.neural-stats>div{display:flex;flex-direction:column;gap:5px;min-width:0}.neural-stats span{font-size:9px;color:#a7beaa;white-space:nowrap}.neural-stats b{font:12px monospace;color:#d9ffc1;font-variant-numeric:tabular-nums;white-space:nowrap}.rival-neural>p{grid-area:hint;font-size:10px;line-height:1.5;color:#9db09a;margin:0}
.hand-panel{grid-area:hand;min-width:0;padding:12px 17px 9px;margin:0;background:#10292080;border:1px solid #ffffff15;border-radius:17px}.hand-heading{margin:0 0 16px}.hand-heading strong{font-size:14px}.hand-heading>span{font-size:11px}.hand{grid-template-columns:repeat(13,minmax(0,1fr));justify-content:center;gap:6px;min-height:91px;max-width:1200px;margin:auto}.hand .card{height:91px;padding:6px}.hand .rank{font-size:27px}.hand .suit{font-size:22px}.actions{margin-top:13px;gap:10px}.hand-hint{margin-top:8px;font-size:11px}footer{grid-area:footer;margin:0;padding-top:0;min-width:0}footer>span{font-size:11px}
.rival-window.collapsed .rival-content{display:none}.rival-window.collapsed .rival-window-head{border-bottom:0}
.played-cards:has(.card:nth-child(9)) .card.mini{padding:3px}.played-cards:has(.card:nth-child(9)) .rank{font-size:clamp(12px,3.2cqw,25px)}.played-cards:has(.card:nth-child(9)) .suit{font-size:clamp(11px,2.8cqw,22px)}
@media(min-width:1700px){.poker-layout{gap:16px 26px}.hand .card{height:100px}.hand{min-height:100px;gap:8px}.hand .rank{font-size:30px}.hand .suit{font-size:26px}}
@media(min-width:901px) and (max-width:1150px){.poker-layout{grid-template-columns:minmax(0,1fr) 260px;gap:12px 16px}.shell{padding:16px 18px}.table{padding:18px 22px 14px}.hand{gap:4px}.hand .rank{font-size:23px}.hand .card{padding:4px}.cover h2{font-size:36px}.rival-content{height:265px}}
@media(max-width:900px){
 .shell{padding:12px 14px max(12px,env(safe-area-inset-bottom))}.masthead{margin-bottom:12px;gap:13px}h1{font-size:22px}.brand>span{font-size:8px}.back{font-size:11px}
 .poker-layout{grid-template-columns:minmax(0,1fr);grid-template-areas:"observer" "board" "hand" "footer";gap:10px}.observer-rail{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:8px;margin-top:0;align-items:stretch}
 .rival-window{border-radius:13px}.rival-window-head{height:30px;flex:0 0 30px;padding:3px 9px;gap:4px}.rival-eyebrow{display:none}.rival-window h2{font-size:11px;margin:0}.rival-window-head .quiet{min-height:24px;padding:2px 4px;font-size:10px}.rival-content{height:105px}.rival-mood{font-size:10px;bottom:4px;line-height:1.3}
 .rival-neural{border-radius:13px;padding:7px 9px;gap:4px;grid-template-areas:"heading" "map" "stats"}.neural-heading strong{font-size:10px}.neural-heading>span{font-size:8px}#pokerNeuralCanvas{height:68px}.neural-stats{gap:3px}.neural-stats>div{gap:2px}.neural-stats span{font-size:7px}.neural-stats b{font-size:9px}.rival-neural>p{display:none}.observer-rail:has(.rival-window.collapsed){grid-template-columns:minmax(0,1fr)}.rival-window.collapsed{height:32px}.observer-rail:has(.rival-window.collapsed) .rival-neural{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-areas:"map heading" "map stats";height:82px;column-gap:10px} .observer-rail:has(.rival-window.collapsed) #pokerNeuralCanvas{height:64px}
 .table{height:auto;min-height:310px;padding:14px 16px 12px;border-radius:18px}.table:has(#startPanel:not([hidden])){min-height:374px}.opponent p{display:none}.seat-name{font-size:14px}.cards-left strong{font-size:24px}.card-backs{height:18px;margin:3px 0}.card-back{height:17px;width:13px}.table-center{margin-top:6px;gap:6px}.played-zone{min-height:76px;gap:4px}.played-cards{min-height:54px;gap:2px}.card.mini{height:54px;width:37px;max-width:37px;padding:3px;border-radius:5px}.card.mini .rank{font-size:17px}.card.mini .suit{font-size:14px}.played-cards:has(.card:nth-child(9)) .card.mini{padding:2px}.zone-label{font-size:10px}.turn-message{font-size:12px;padding:8px 14px}.table-bottom{font-size:9px;margin-top:9px}.table-tag{font-size:11px}.cover{padding:22px 28px}.cover::after{font-size:210px;right:20px}.cover h2{font-size:31px}.cover p{font-size:12px}.cover .profile-hint{font-size:10px}.cover small{font-size:9px}.cover .primary{min-width:225px;min-height:44px}#resultPanel{padding:16px 20px;justify-content:flex-start;overflow-y:auto}#resultPanel h2{font-size:29px;margin:7px 0 5px}#resultPanel .result-record{margin-bottom:10px}#resultPanel .result-last-play{margin:3px 0 9px}
 .hand-panel{padding:13px 12px 9px;border-radius:15px}.hand-heading{margin-bottom:15px}.hand-heading strong{font-size:13px}.hand-heading>span{font-size:10px}.hand{grid-template-columns:repeat(7,minmax(0,70px));gap:11px 6px;min-height:132px}.hand .card{height:61px;padding:4px 5px}.hand .rank{font-size:23px}.hand .suit{font-size:18px}.actions{gap:6px;margin-top:13px}.hand-hint{font-size:10px;margin-top:8px}footer>span{font-size:9px}
}
@media(max-width:380px){.shell{padding-left:10px;padding-right:10px}.hand-panel{padding-left:9px;padding-right:9px}.hand{gap:11px 4px}.hand .card{padding:4px}.hand .rank{font-size:21px}.rival-window-head{padding-left:6px;padding-right:6px}.rival-window h2{font-size:10px}.neural-stats b{font-size:8px}.actions{gap:4px}.actions .quiet{padding-left:7px;padding-right:7px}.secondary{padding-left:10px;padding-right:10px}.play{min-width:98px}}

/* v3.9: full-height observer panels and a compact, title-free playing surface. */
.shell{max-width:none;width:100%;height:100svh;padding:10px clamp(12px,1.1vw,24px) max(9px,env(safe-area-inset-bottom))}
.poker-layout{height:100%;grid-template-columns:minmax(0,1fr) clamp(290px,26vw,490px);grid-template-rows:32px minmax(340px,1fr) auto 24px;grid-template-areas:"toolbar toolbar" "board observer" "hand observer" "footer observer";gap:9px 16px;align-items:stretch}
.table-toolbar{grid-area:toolbar;display:flex;align-items:center;gap:16px;min-width:0}.table-toolbar .back{font-size:12px}.table-tag{font-size:11px;letter-spacing:.5px}.toolbar-actions{display:flex;align-items:center;gap:10px;margin-left:auto}.table-toolbar .quiet{min-height:30px;padding:4px 9px;font-size:12px}.clock{font-size:13px;gap:7px}.clock .quiet{font-size:20px;min-height:28px}.language-picker{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:14px}.language-picker select{font:inherit;font-size:12px;color:var(--ink);background:#15312b;border:1px solid #ffffff20;border-radius:7px;padding:5px 7px;max-width:120px}.language-picker select:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.play-area{min-height:0}.table{height:100%;min-height:0;padding:16px 25px 12px;border-radius:20px}.opponent p{font-size:12px;margin-top:4px}.cards-left strong{font-size:31px}.seat-name{font-size:17px}.seat-name b{font-weight:700}.seat-name span{font-size:11px}.card-backs{height:22px;margin:4px 0 0;flex:none}.card-back{height:21px;width:17px}.table-center{margin:5px 0 0;gap:8px;min-height:0}.played-zone{min-height:0;gap:7px;flex:1;justify-content:center}.played-cards{min-height:0;gap:5px}.played-zone .played-cards{min-height:clamp(70px,12svh,132px)}.card.mini{height:clamp(70px,12svh,132px);width:clamp(49px,8svh,91px);max-width:91px;flex-basis:91px;padding:6px;border-radius:8px}.card.mini .rank{font-size:clamp(22px,3.4cqw,39px)}.card.mini .suit{font-size:clamp(19px,3cqw,32px)}.zone-label{font-size:clamp(11px,.9vw,15px)}.turn-message{padding:9px 22px;font-size:clamp(12px,1vw,17px);flex:none;max-width:100%}.table-bottom{margin-top:8px;font-size:11px;flex:none}
.cover{padding:28px clamp(28px,4.5vw,92px)}.cover::after{right:8%;font-size:clamp(200px,24vw,450px);top:12%}.cover h2{font-size:clamp(36px,4vw,68px);line-height:1.18;max-width:650px;margin:15px 0}.cover p{font-size:clamp(13px,1.1vw,18px);max-width:600px;line-height:1.7}.cover .kicker{font-size:clamp(10px,.85vw,14px)}.profile-choice button{padding:10px 29px;font-size:14px}.cover .profile-hint{font-size:12px;margin:3px 0 16px}.cover small{font-size:11px;max-width:100%;line-height:1.5}.cover .primary{min-width:250px;min-height:48px;font-size:16px;white-space:normal}.cover .error{max-width:100%;line-height:1.6;font-size:12px}.compact h2{font-size:44px}
#resultPanel{display:grid;grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);gap:28px;align-items:center;justify-content:stretch;padding:clamp(24px,4vw,78px);text-align:left}.result-summary{min-width:0}.result-summary h2{font-size:clamp(38px,4.5vw,76px);line-height:1.15;margin:16px 0}.result-summary p{font-size:clamp(13px,1.15vw,19px);line-height:1.7;margin-bottom:18px}.result-record{font-size:clamp(11px,.9vw,15px);line-height:1.7;margin:0 0 20px}.result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}.result-actions .primary{min-width:min(260px,100%)}.result-actions .quiet{padding:8px 0;text-align:left;min-height:36px;margin:0;font-size:13px}.result-final{min-width:0;padding:26px 18px;border:1px solid #d4ffb121;border-radius:18px;background:#20493865;text-align:center}.result-final .zone-label{display:block;font-size:clamp(12px,1vw,16px);line-height:1.6;margin-bottom:24px}.result-last-play{margin:0;min-height:clamp(130px,23svh,245px);gap:6px}.result-last-play .card.mini{height:clamp(130px,23svh,245px);max-width:165px;width:165px;flex-basis:165px;padding:10px}.result-last-play .card.mini .rank{font-size:clamp(28px,11cqw,63px)}.result-last-play .card.mini .suit{font-size:clamp(23px,9cqw,53px)}.result-last-play:has(.card:nth-child(5)){flex-wrap:wrap}.result-last-play:has(.card:nth-child(5)) .card.mini{flex:0 1 calc((100% - 30px)/6);max-width:90px;height:clamp(86px,14svh,145px);padding:5px}.result-last-play:has(.card:nth-child(5)) .card.mini .rank{font-size:clamp(15px,4cqw,29px)}.result-last-play:has(.card:nth-child(5)) .card.mini .suit{font-size:clamp(13px,3.5cqw,25px)}
.observer-rail{min-height:0;display:grid;grid-template-rows:minmax(0,1.1fr) minmax(0,1fr);gap:10px;align-self:stretch;margin-top:0}.rival-window{min-height:0;border-radius:17px}.rival-window-head{gap:9px;padding:8px 14px;flex:0 0 41px}.rival-window h2{font-size:14px;margin:0}.rival-window-head .quiet{font-size:11px;min-height:26px;padding:3px 8px}.rival-content{height:auto;flex:1;min-height:0}.rival-mood{font-size:13px}.rival-neural{min-height:0;grid-template-rows:auto minmax(0,1fr) auto auto;gap:11px}.neural-heading strong{font-size:13px}.neural-heading>span{font-size:11px}#pokerNeuralCanvas{height:100%;min-height:0;align-self:stretch}.neural-stats{gap:7px}.neural-stats>div{gap:6px}.neural-stats span{font-size:10px;line-height:1.35;white-space:normal}.neural-stats b{font-size:13px}.rival-neural>p{font-size:10px}
.hand-panel{padding:10px 14px 7px;border-radius:15px}.hand-heading{margin:0 0 13px;min-height:18px}.hand-heading strong>span:first-child{color:var(--ink);margin-left:0}.hand-heading>span{max-width:65%;text-align:right;line-height:1.5}.hand{justify-content:start;gap:5px;min-height:clamp(70px,10svh,110px);max-width:none;margin:0}.hand .card{height:clamp(70px,10svh,110px);padding:6px}.hand .rank{font-size:clamp(23px,2vw,37px)}.hand .suit{font-size:clamp(19px,1.7vw,30px)}.actions{margin-top:10px;gap:9px}.hand-hint{margin:7px 0 0;font-size:10px;min-height:16px}.actions .primary,.actions .secondary{min-height:42px}footer{padding:0;border-top:0;align-items:center}footer>span{font-size:10px}footer .quiet{font-size:10px;min-height:24px;padding:2px 0}.observer-rail:has(.rival-window.collapsed){grid-template-rows:41px minmax(0,1fr)}.poker-layout[data-phase="result"]{grid-template-rows:32px minmax(340px,1fr) 0px 24px}.poker-layout[data-phase="result"] .hand-panel{display:none}
.played-zone .played-cards:has(.card:nth-child(9)) .card.mini{padding:4px}.played-zone .played-cards:has(.card:nth-child(9)) .rank{font-size:clamp(15px,3cqw,33px)}.played-zone .played-cards:has(.card:nth-child(9)) .suit{font-size:clamp(13px,2.7cqw,29px)}
@media(min-width:901px) and (max-width:1150px){.poker-layout{grid-template-columns:minmax(0,1fr) 270px;gap:8px 12px}.table{padding:13px 18px 10px}.hand{gap:4px}.hand .card{padding:4px}.hand .rank{font-size:23px}.hand .suit{font-size:20px}.cover{padding:25px 30px}.cover h2{font-size:37px}.cover p{font-size:13px}.neural-heading strong{font-size:11px}.neural-heading>span{font-size:9px}.neural-stats span{font-size:9px}.neural-stats b{font-size:11px}#resultPanel{grid-template-columns:minmax(0,1fr);gap:22px;padding:25px 30px}.result-summary h2{font-size:38px}.result-final{padding:16px}.result-last-play,.result-last-play .card.mini{height:130px;min-height:130px}.result-final .zone-label{margin-bottom:14px}}
@media(min-width:901px) and (max-height:700px){.shell{height:auto;min-height:100svh}.poker-layout{height:auto;grid-template-rows:32px 390px auto 24px}.poker-layout[data-phase="result"]{grid-template-rows:32px 500px 0px 24px}}
@media(max-width:900px){
 .shell{height:auto;min-height:100svh;padding:8px 10px max(10px,env(safe-area-inset-bottom))}.poker-layout,.poker-layout[data-phase="result"]{height:auto;grid-template-columns:minmax(0,1fr);grid-template-rows:auto;grid-template-areas:"toolbar" "observer" "board" "hand" "footer";gap:9px}.table-toolbar{gap:8px;min-height:31px;flex-wrap:wrap}.table-toolbar .table-tag{display:none}.table-toolbar .back{font-size:11px}.toolbar-actions{gap:3px}.table-toolbar .quiet{font-size:11px;padding:4px 6px}.language-picker{gap:2px}.language-picker select{font-size:11px;padding:4px;max-width:90px}.clock{font-size:11px;gap:1px}.clock .quiet{font-size:18px}
 .observer-rail,.observer-rail:has(.rival-window.collapsed){grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:142px;gap:8px}.rival-window{border-radius:12px}.rival-window-head{height:30px;flex:0 0 30px;padding:3px 8px;gap:4px}.rival-window h2{font-size:10px}.rival-window-head .quiet{min-height:24px;padding:2px 4px;font-size:10px}.rival-mood{font-size:9px;bottom:5px;line-height:1.3}.rival-neural{border-radius:12px;padding:7px 9px;gap:5px;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"heading" "map" "stats"}.neural-heading strong{font-size:10px}.neural-heading>span{font-size:8px}.neural-stats{gap:3px}.neural-stats>div{gap:2px}.neural-stats span{font-size:7px}.neural-stats b{font-size:9px}.rival-neural>p{display:none}#pokerNeuralCanvas{height:100%}.observer-rail:has(.rival-window.collapsed){grid-template-columns:minmax(0,1fr);grid-template-rows:31px 85px}.observer-rail:has(.rival-window.collapsed) .rival-neural{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto auto;grid-template-areas:"map heading" "map stats";height:auto;column-gap:10px}.observer-rail:has(.rival-window.collapsed) #pokerNeuralCanvas{height:100%}
 .table{height:310px;min-height:310px;padding:12px 14px 10px;border-radius:17px}.table:has(#startPanel:not([hidden])){height:382px;min-height:382px}.seat-name{font-size:14px}.seat-name span{font-size:10px}.cards-left strong{font-size:24px}.card-backs{height:18px;margin:3px 0}.card-back{height:17px;width:13px}.table-center{margin-top:5px;gap:6px}.played-zone{gap:4px}.played-zone .played-cards{min-height:53px}.played-cards{gap:2px}.card.mini{height:53px;width:37px;max-width:37px;padding:3px;border-radius:5px}.card.mini .rank{font-size:17px}.card.mini .suit{font-size:14px}.played-zone .played-cards:has(.card:nth-child(9)) .card.mini{padding:2px}.played-zone .played-cards:has(.card:nth-child(9)) .rank{font-size:clamp(12px,3.5cqw,16px)}.played-zone .played-cards:has(.card:nth-child(9)) .suit{font-size:clamp(10px,3cqw,14px)}.zone-label{font-size:10px}.turn-message{font-size:11px;padding:7px 11px}.table-bottom{font-size:9px;margin-top:7px;line-height:1.5}.cover{padding:22px 25px}.cover::after{font-size:190px;right:10px}.cover h2{font-size:30px;margin:10px 0;max-width:100%}.cover p{font-size:12px;line-height:1.65;margin-bottom:10px}.cover .profile-hint{font-size:10px;margin:3px 0 12px}.cover .kicker{font-size:9px}.cover small{font-size:9px}.profile-choice button{padding:8px 23px;font-size:12px}.cover .primary{min-width:min(225px,100%);min-height:44px;font-size:13px}.compact h2{font-size:29px}
 .poker-layout[data-phase="result"] .table{height:auto;min-height:460px}#resultPanel{position:relative;inset:auto;display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:18px 12px;overflow:visible;background:none;text-align:center}.table:has(#resultPanel:not([hidden]))>.opponent,.table:has(#resultPanel:not([hidden]))>.card-backs,.table:has(#resultPanel:not([hidden]))>.table-center,.table:has(#resultPanel:not([hidden]))>.table-bottom{display:none}.result-summary{display:contents}.result-summary h2{font-size:32px;margin:0}.result-summary>p{margin:0;font-size:12px}.result-summary .kicker{order:-3}.result-summary h2{order:-2}.result-summary>p{order:-1}.result-final{order:0;padding:15px 10px}.result-record{order:1;font-size:11px;margin:0}.result-actions{order:2;justify-content:center;gap:3px;flex-direction:column}.result-actions .primary{width:100%}.result-actions .quiet{text-align:center;font-size:12px}.result-final .zone-label{font-size:11px;margin-bottom:12px}.result-last-play{min-height:90px;gap:3px}.result-last-play .card.mini{height:96px;width:66px;max-width:66px;flex-basis:66px;padding:5px}.result-last-play .card.mini .rank{font-size:29px}.result-last-play .card.mini .suit{font-size:25px}.result-last-play:has(.card:nth-child(5)) .card.mini{height:72px;min-height:0;max-width:45px;padding:3px;flex-basis:calc((100% - 15px)/6)}.result-last-play:has(.card:nth-child(5)) .card.mini .rank{font-size:20px}.result-last-play:has(.card:nth-child(5)) .card.mini .suit{font-size:17px}
 .hand-panel{padding:12px 10px 8px;border-radius:14px}.hand-heading{margin-bottom:13px}.hand-heading strong{font-size:12px;white-space:nowrap}.hand-heading>span{font-size:9px;max-width:62%}.hand{grid-template-columns:repeat(7,minmax(0,1fr));gap:11px 5px;min-height:129px}.hand .card{height:59px;padding:4px 5px}.hand .rank{font-size:23px}.hand .suit{font-size:18px}.actions{gap:6px;margin-top:12px}.actions .primary{font-size:13px}.actions .secondary{font-size:12px;padding:9px 12px}.actions .quiet{font-size:12px;padding:8px}.play{min-width:100px}.hand-hint{font-size:9px;line-height:1.6;margin-top:7px}footer>span,footer .quiet{font-size:9px}
}
@media(max-width:380px){.shell{padding-left:8px;padding-right:8px}.table-toolbar .back{font-size:10px}.table-toolbar{gap:4px}.language-picker>span{display:none}.table-toolbar .quiet{padding-left:4px;padding-right:4px}.hand-panel{padding-left:8px;padding-right:8px}.hand{gap:10px 4px}.hand .card{padding:4px}.hand .rank{font-size:21px}.rival-window-head{padding-left:5px;padding-right:5px}.rival-window h2{font-size:9px}.neural-stats b{font-size:8px}.actions{gap:4px}.actions .quiet{padding-left:6px;padding-right:6px}.actions .secondary{padding-left:9px;padding-right:9px}.play{min-width:92px}}

/* Standalone card product: compact music controls and a translated first paint. */
.i18n-pending body{visibility:hidden}.table-mark{font:22px/1 Georgia,serif;color:var(--lime)}
.music-control{position:relative;color:var(--muted);z-index:20}.music-control summary{list-style:none;cursor:pointer;width:30px;height:30px;display:grid;place-items:center;border-radius:7px;font-size:19px;user-select:none}.music-control summary::-webkit-details-marker{display:none}.music-control summary:hover,.music-control[open] summary{background:#ffffff0a;color:var(--ink)}.music-control summary:focus-visible{outline:2px solid var(--orange);outline-offset:2px}.music-control[data-sound="playing"] summary{color:var(--lime)}.music-control[data-sound="off"] summary{text-decoration:line-through;opacity:.55}.music-control[data-sound="blocked"] summary{color:var(--orange)}
.music-popover{position:absolute;right:0;top:calc(100% + 8px);width:225px;padding:16px;border:1px solid #4c7162;border-radius:13px;background:#112d26;box-shadow:0 12px 40px #0007;display:flex;flex-direction:column;gap:14px;font-size:12px}.music-switch,.music-volume-label{display:flex;align-items:center;justify-content:space-between;gap:15px}.music-switch{color:var(--ink);font-weight:600}.music-switch input{accent-color:var(--lime);width:17px;height:17px;margin:0;cursor:pointer}.music-volume-label{font-size:11px}.music-popover input[type="range"]{accent-color:var(--lime);width:100%;height:18px;margin:0;cursor:pointer}.music-popover small{font-size:10px;color:var(--muted)}.music-popover output{font-variant-numeric:tabular-nums;color:var(--ink)}
@media(max-width:900px){.table-mark{font-size:20px}.music-control summary{width:28px;height:28px;font-size:18px}.music-popover{right:-105px;width:216px}.toolbar-actions{margin-left:auto}.language-picker select{max-width:91px}}

/* On phones the playable table comes first; long plays keep six readable cards per row. */
@media(max-width:900px){
 .poker-layout,.poker-layout[data-phase="result"]{grid-template-areas:"toolbar" "board" "hand" "observer" "footer"}
 .table{height:auto;min-height:310px}.table-center{margin-top:9px;gap:9px}.played-zone{min-height:0;gap:5px}.played-zone .played-cards{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:5px;max-width:365px;min-height:72px;margin:0 auto}
 .played-zone .played-cards .card.mini,.played-zone .played-cards:has(.card:nth-child(9)) .card.mini{flex:0 0 calc((100% - 25px)/6);height:72px;width:50px;max-width:50px;min-width:0;margin:0;padding:4px}
 .played-zone .played-cards .card.mini .rank{font-size:clamp(20px,6cqw,26px);line-height:1}.played-zone .played-cards .card.mini .suit{font-size:clamp(17px,5cqw,23px);line-height:1}
 .table-bottom{margin-top:9px}.observer-rail{margin-top:0}
}

/* Source link stays compact beside the music control. */
.github-link{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;color:var(--muted);border-radius:7px}.github-link:hover{background:#ffffff0a;color:var(--lime)}.github-link:focus-visible{outline:2px solid var(--orange);outline-offset:2px}@media(max-width:900px){.github-link{flex-basis:28px;width:28px;height:28px}.github-link svg{width:18px;height:18px}}
