/* Game surface and game-specific controls only. */
.highlow-shell,.play-area,.card-table{
  overscroll-behavior:none;
  touch-action:manipulation;
}
.card,.number-card{
  touch-action:manipulation;
}
:root{--orb-size:clamp(34px,10vw,44px);}
[role=button]{-webkit-tap-highlight-color:transparent}
.tube:focus-visible{outline:3px solid #fff1b8;outline-offset:2px}
.premium-stage{position:relative;isolation:isolate;min-height:500px;overflow:hidden;border:1px solid #7b622f;border-radius:25px;padding:7px 5px 16px;background:linear-gradient(180deg,#111827dd,#06090fef),radial-gradient(circle at 50% 20%,#7891bd55,transparent 48%);box-shadow:inset 0 1px #fff3,inset 0 -40px 80px #0008,0 22px 60px #000b}
.premium-stage:before{content:"";position:absolute;z-index:-1;inset:0;background:repeating-linear-gradient(105deg,transparent 0 84px,#ffffff05 86px 87px,transparent 89px 170px),linear-gradient(90deg,#0007,transparent 13% 87%,#0007)}
.premium-stage:after{content:"";position:absolute;z-index:-1;right:8%;bottom:5px;left:8%;height:24px;border-radius:50%;background:#dcbf7244;filter:blur(16px)}
.stage-glow{position:absolute;z-index:-1;width:210px;height:210px;border-radius:50%;filter:blur(60px);opacity:.28}
.stage-glow-left{top:18%;left:-100px;background:#00d9ff}
.stage-glow-right{right:-110px;bottom:10%;background:#a84fff}
.board{position:relative;z-index:2;display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));align-content:center;gap:18px 2px;min-height:469px;padding:5px 1px 2px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.board.is-locked{pointer-events:none}
.tube-shelf{position:absolute;z-index:0;top:calc(var(--shelf-position) * 100% - 14px);right:.75%;left:.75%;height:20px;background:linear-gradient(180deg,transparent 0,#17120a12 18%,#39281738 62%,#120d087d 100%);clip-path:polygon(4% 0,96% 0,100% 100%,0 100%);pointer-events:none}
.tube-shelf:after{content:"";position:absolute;right:0;bottom:0;left:0;height:1px;background:linear-gradient(90deg,transparent,#8c6b37 10%,#e0bc6d 50%,#8c6b37 90%,transparent);box-shadow:0 2px 5px #000b,0 0 5px #d0a5572e}
.tube{position:relative;z-index:1;display:flex;width:100%;height:198px;min-width:0;align-items:flex-end;justify-content:center;border:0;padding:0;background:none;cursor:pointer;filter:drop-shadow(0 10px 10px #0009);transition:transform .2s}
.tube:before{content:"";position:absolute;z-index:0;bottom:1px;width:82%;height:14px;border:1px solid #82652f;border-radius:50%;background:linear-gradient(180deg,#9a7432 0,#453018 38%,#170f09 76%,#050403 100%);box-shadow:inset 0 2px #f5dc8c88,0 5px 0 #070503,0 10px 13px #000c}
.tube-art{position:absolute;z-index:3;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;transition:filter .2s,transform .25s cubic-bezier(.2,.8,.2,1)}
.balls{position:absolute;z-index:2;right:20%;bottom:19px;left:20%;display:flex;height:calc(var(--capacity) * (var(--orb-size) - 3px));flex-direction:column-reverse;align-items:center;justify-content:flex-start;pointer-events:none}
.orb{position:relative;display:block;width:var(--orb-size);height:var(--orb-size);flex:0 0 var(--orb-size);margin-top:-3px;filter:drop-shadow(0 5px 4px #0008);transition:transform .23s cubic-bezier(.18,.82,.2,1.25),filter .2s,opacity .12s}
.orb img{display:block;width:100%;height:100%;object-fit:contain;filter:var(--colour-filter);user-select:none}
.orb:after{content:"";position:absolute;right:16%;bottom:7%;left:16%;height:12%;border-radius:50%;background:#001a;filter:blur(4px)}
.colour-0{--colour-filter:grayscale(1) sepia(1) saturate(6) hue-rotate(310deg) brightness(.95)}
.colour-1{--colour-filter:grayscale(1) sepia(1) saturate(5) hue-rotate(350deg) brightness(1.08)}
.colour-2{--colour-filter:grayscale(1) sepia(1) saturate(5.5) hue-rotate(24deg) brightness(1.14)}
.colour-3{--colour-filter:grayscale(1) sepia(1) saturate(5) hue-rotate(78deg) brightness(.96)}
.colour-4{--colour-filter:grayscale(1) sepia(1) saturate(5) hue-rotate(138deg) brightness(1.02)}
.colour-5{--colour-filter:grayscale(1) sepia(1) saturate(6) hue-rotate(184deg) brightness(.86)}
.colour-6{--colour-filter:grayscale(1) sepia(1) saturate(5.5) hue-rotate(232deg) brightness(.96)}
.colour-7{--colour-filter:grayscale(1) sepia(1) saturate(5) hue-rotate(282deg) brightness(1.06)}
.tube.is-selected .orb:last-child{z-index:2;transform:translateY(-15px) scale(1.05);filter:drop-shadow(0 0 12px #ffe18f)}
.tube.is-selected:after,.tube.can-receive:after{content:"";position:absolute;z-index:4;top:8px;width:42%;height:9px;border-radius:50%;border:2px solid #9df4ff;box-shadow:0 0 12px #39dbff,inset 0 0 8px #39dbff;animation:target-pulse 1.15s ease-in-out infinite}
.tube-number{position:absolute;z-index:5;bottom:-9px;display:grid;width:23px;height:23px;place-items:center;border:1px solid #80662f;border-radius:50%;background:#090c12;color:#d8c488;font:700 10px Arial,sans-serif;box-shadow:0 3px 8px #000}
.arrival-orb{transform-origin:center;transition:none!important;will-change:transform,opacity}
.move-sheen{position:absolute;z-index:0;right:4%;bottom:15px;left:4%;height:1px;background:linear-gradient(90deg,transparent,#efcf78aa,transparent);box-shadow:0 0 22px #efcf78}
.result-orbit{position:relative;display:grid;width:88px;height:88px;margin:6px auto 12px;place-items:center}
.result-orbit:before{content:"";position:absolute;inset:5px;border:1px solid #ffe29c;border-radius:50%;box-shadow:0 0 22px #ffd65d;animation:orbit 2.2s linear infinite}
.result-orbit img{width:70px;height:70px}
@keyframes target-pulse{50%{opacity:.5;transform:scale(.88)}}
@keyframes orbit{to{transform:rotate(360deg)}}
@media(min-width:700px){:root{--orb-size:48px;}
.premium-stage{min-height:540px}
.board{min-height:504px;gap:20px 8px;padding:10px 16px}
.tube{height:225px}
.balls{bottom:22px}
.tube-number{bottom:-7px}}
@media(min-width:900px) and (orientation:landscape){.premium-stage{min-height:430px}
.board{grid-template-columns:repeat(var(--tube-count),minmax(70px,1fr));min-height:399px;gap:8px}
.tube-shelf{display:none}
.tube{height:275px}
.balls{bottom:26px}}
@media(max-width:370px){:root{--orb-size:36px;}
.premium-stage{min-height:465px}
.board{gap:12px 0;min-height:439px}
.tube{height:181px}
.balls{bottom:17px}}
@media(orientation:landscape) and (max-height:700px){.premium-stage{min-height:330px}
.board{grid-template-columns:repeat(var(--tube-count),1fr);min-height:324px}
.tube{height:230px}}
.solution-stop{position:absolute;z-index:10;top:9px;right:9px;width:36px;height:36px;background:#080b11e8;box-shadow:inset 0 1px #fff2,0 5px 18px #000c}
.poker-table{--table-height:clamp(260px,calc(100svh - 405px),620px);container-type:inline-size;width:100%;height:var(--table-height);display:grid;grid-template-rows:minmax(0,.2fr) minmax(0,.4fr) minmax(0,.4fr);gap:6px;margin:auto;padding:8px 6px;position:relative;border:1px solid #a6884c;border-radius:14px;background:#053632 url('assets/table.webp?v=20261004-poker-opening-half-second-24') center/cover;box-shadow:inset 0 0 30px #001a1966,0 8px 18px #0008;isolation:isolate}
.seat{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:0;position:relative}
.seat-identity{display:flex;flex:0 0 20px;align-items:center;justify-content:center;gap:7px;font-size:14px;color:#fffaed;line-height:20px}
.seat-identity strong{font-variant-numeric:tabular-nums;color:#ffe6a1}
.dealer{display:grid;place-items:center;width:18px;height:18px;border:1px solid #ebcf85;border-radius:50%;background:#f3e5c0;color:#171714;font:700 10px Arial}
.seat.active .seat-identity:before{content:'▸';color:#a2f5ce}
.seat.folded .seat-cards{opacity:.35}
.seat-cards{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:0}
.playing-card{display:block;flex:0 0 auto;position:relative;aspect-ratio:7/10;border-radius:10px;box-shadow:0 3px 6px #0008;background:#fffdf7 url('assets/deck-refined.webp?v=20261004-poker-opening-half-second-24');background-size:1300% 400%;overflow:hidden}
.seat-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px) * .4),calc((100cqw - 112px) / 2 * 10 / 7));width:auto}
.opponent-seat .playing-card{height:min(100px,max(22px,calc((var(--table-height) - 32px) * .2)))}
.playing-card.facedown{background:url('assets/back-premium.webp?v=20261004-poker-opening-half-second-24') center/100% 100%}
.playing-card.slot{background:#06332d77;border:1px solid #c9d5bc45;box-shadow:inset 0 2px 6px #0006}
.playing-card.winning{outline:2px solid #ffe288;outline-offset:1px}
.shared-area{display:flex;align-items:center;justify-content:center;min-height:0}
.community-cards{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:0}
.community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px) * .4),calc((100cqw - 12px) / 3 * 10 / 7));width:auto}
.poker-table.is-showdown{grid-template-rows:repeat(3,minmax(0,1fr))}
.is-showdown .seat-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 112px) / 2 * 10 / 7))}
.is-showdown .community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 12px) / 3 * 10 / 7))}
.pot-display{display:none}
.chip-pile{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;font-size:13px;color:#fff7d3;font-variant-numeric:tabular-nums;position:absolute;right:0;top:50%;width:44px;transform:translateY(-50%)}
.chip-pile img{height:22px;width:22px}
.chip-pile .pile-icon{position:relative;display:block;height:25px;width:26px}
.pile-icon img{position:absolute;left:0;top:0}
.pile-icon img:nth-child(2){top:3px}
.pile-icon img:nth-child(3){top:6px}
.hand-feedback{display:flex;align-items:center;justify-content:center;min-height:30px;padding:4px 0;text-align:center;font-size:13px;color:#ffebba;line-height:1.3}
.bet-controls{border-top:1px solid #6a5836;padding:5px 2px 2px}
.bet-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;color:#d7cab3}
.bet-heading output{font-size:17px;font-weight:700;color:#ffe8ad;min-width:45px;text-align:right}
#bet{width:100%;height:20px;margin:1px 0;accent-color:#e4c46f;touch-action:pan-x}
.chip-choices{display:flex;justify-content:center;align-items:center;gap:13px}
.chip-choice{position:relative;width:42px;height:42px;flex:0 0 42px;border:0;padding:0;background:none;cursor:pointer;filter:drop-shadow(0 2px 2px #000a)}
.chip-choice img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.chip-choice span{position:absolute;inset:0;display:grid;place-items:center;color:#10131c;font:700 13px Arial;pointer-events:none}
.red-chip img{filter:hue-rotate(135deg)}
.dark-chip img{filter:grayscale(1) brightness(.7)}
.bet-shortcut{min-height:42px;border:1px solid #917642;border-radius:8px;padding:6px 12px;background:#0b121a;color:#ffe4a0;cursor:pointer}
.poker-actions{display:grid;grid-template-columns:.85fr 1.15fr 1.25fr .8fr;gap:6px;margin-top:6px}
.poker-actions .primary-button,.poker-actions .secondary-button{min-width:0;min-height:44px;margin:0;padding:8px 3px;font-size:13px}
.chip-choice:focus-visible,.bet-shortcut:focus-visible,#bet:focus-visible{outline:3px solid #fff1b8;outline-offset:3px}
.round-status{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.result-piece{display:block;margin:0 auto 12px;object-fit:contain}
.playing-card.is-new{animation:deal-card .25s ease-out}
@keyframes deal-card{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.reduced-motion .playing-card{animation:none!important}
.poker-table,.hand-feedback,.chip-choices{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
@media(min-width:600px){.poker-table{padding-inline:12px}
.seat-identity{font-size:16px}
.poker-actions .primary-button,.poker-actions .secondary-button{font-size:15px}}
.preview-capture .bet-controls,.preview-capture .poker-actions,.preview-capture .hand-feedback{display:none}
.seat.active .seat-cards{filter:drop-shadow(0 0 3px #7de5ad88)}
.poker-actions{grid-template-columns:1fr 1fr 1.2fr}
.poker-table{--opponent-row:max(106px,calc((var(--table-height) - 32px) * .2));grid-template-rows:var(--opponent-row) repeat(2,minmax(0,1fr))}
.opponent-seat{padding-top:74px}
.opponent-speech{position:absolute;z-index:8;top:0;left:50%;transform:translateX(-50%);width:max-content;max-width:min(310px,calc(100% - 30px));border:1px solid #c6a75d;border-radius:12px;padding:10px 18px;background:linear-gradient(135deg,#fff8e6,#eadcc1);box-shadow:0 4px 12px #0007,inset 0 1px #fff;color:#181b20;font:500 18px/1.2 Arial,sans-serif;text-align:center;pointer-events:none;-webkit-user-select:none;user-select:none}
.opponent-speech:after{content:'';position:absolute;left:50%;bottom:-6px;width:10px;height:10px;background:#efdfc4;border-right:1px solid #c6a75d;border-bottom:1px solid #c6a75d;transform:translateX(-50%) rotate(45deg)}
.opponent-speech[hidden]{display:none}
.opponent-seat .playing-card{height:min(100px,calc(var(--opponent-row) - 74px))}
.human-seat .playing-card,.community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px - var(--opponent-row)) * .5),calc((100cqw - 112px) / 2 * 10 / 7))}
.community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px - var(--opponent-row)) * .5),calc((100cqw - 12px) / 3 * 10 / 7))}
.is-showdown .human-seat .playing-card,.is-showdown .community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 112px) / 2 * 10 / 7))}
.is-showdown .community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 12px) / 3 * 10 / 7))}
.is-showdown .opponent-seat .playing-card{height:min(190px,calc((var(--table-height) - 32px) / 3 - 74px),calc((100cqw - 112px) / 2 * 10 / 7))}
.preview-capture .opponent-speech{display:none}
.chip-choices{gap:7px}
.speech-replay{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:0;border-radius:5px;background:transparent;box-shadow:none;color:#e6ddcc;font:normal 18px Arial,sans-serif;cursor:pointer}
.speech-replay:focus-visible{outline:2px solid #fff1b8;outline-offset:2px}
.hand-complete .bet-heading,.hand-complete #bet{display:none}
.speech-replay{height:44px;min-height:44px;border:1px solid #917642;border-radius:8px;background:#0b121a;box-shadow:none;color:#e6ddcc;font:normal 17px Arial,sans-serif}
.bet-shortcut{min-height:44px}
.poker-table.is-showdown{--opponent-row:max(106px,calc((var(--table-height) - 32px) * .45));grid-template-rows:var(--opponent-row) repeat(2,minmax(0,1fr))}
.is-showdown .opponent-seat .playing-card{height:min(190px,calc(var(--opponent-row) - 74px),calc((100cqw - 112px) / 2 * 10 / 7))}
.is-showdown .human-seat .playing-card{height:min(190px,calc((var(--table-height) - 32px - var(--opponent-row)) * .5),calc((100cqw - 112px) / 2 * 10 / 7))}
.is-showdown .community-cards .playing-card{height:min(190px,calc((var(--table-height) - 32px - var(--opponent-row)) * .5),calc((100cqw - 12px) / 3 * 10 / 7))}
.poker-table{grid-template-rows:minmax(0,.24fr) minmax(0,.38fr) minmax(0,.38fr)}
.opponent-seat{padding-top:0}
.opponent-speech{top:4px}
.opponent-seat .playing-card{height:min(180px,calc((var(--table-height) - 32px) * .24),calc((100cqw - 64px) / 2 * 10 / 7))}
.human-seat .playing-card{height:min(240px,calc((var(--table-height) - 32px) * .38),calc((100cqw - 64px) / 2 * 10 / 7))}
.community-cards .playing-card{height:min(240px,calc((var(--table-height) - 32px) * .38),calc((100cqw - 12px) / 3 * 10 / 7))}
.poker-table.is-showdown{grid-template-rows:repeat(3,minmax(0,1fr))}
.is-showdown .seat-cards .playing-card{height:min(240px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 64px) / 2 * 10 / 7))}
.is-showdown .community-cards .playing-card{height:min(240px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 12px) / 3 * 10 / 7))}
.poker-table{overflow:hidden;perspective:1000px}
.playing-card.is-dealing{animation:card-throw .85s cubic-bezier(.12,.72,.18,1) both;will-change:transform}
@keyframes card-throw{0%{transform:translate(-60cqw,-130px) rotate(-24deg) scale(.94);opacity:0}10%{opacity:1}72%{transform:translate(4px,2px) rotate(1.5deg) scale(1)}100%{transform:translate(0,0) rotate(0) scale(1);opacity:1}}
.playing-card.is-revealing{animation:card-flip .65s ease-in-out both;will-change:transform;transform-style:preserve-3d}
.playing-card.is-revealing:after{content:'';position:absolute;inset:0;border-radius:inherit;background:url('assets/back-premium.webp?v=20261004-poker-opening-half-second-24') center/100% 100%;animation:card-flip-back .65s linear both}
@keyframes card-flip{0%{transform:rotateY(0)}49%{transform:rotateY(90deg)}50%{transform:rotateY(90deg)}100%{transform:rotateY(0)}}
@keyframes card-flip-back{0%,49%{opacity:1}50%,100%{opacity:0}}
.reduced-motion .playing-card.is-dealing,.reduced-motion .playing-card.is-revealing,.reduced-motion .playing-card.is-revealing:after{animation:none!important}
.reduced-motion .playing-card.is-revealing:after{display:none}
@media(prefers-reduced-motion:reduce){.playing-card.is-dealing,.playing-card.is-revealing,.playing-card.is-revealing:after{animation:none!important}
.playing-card.is-revealing:after{display:none}}
#human-bet{--chip-from-x:-55px;--chip-from-y:130px}
#opponent-bet{--chip-from-x:-35px;--chip-from-y:-130px}
.pile-icon.is-landing{animation:chip-landing .7s cubic-bezier(.12,.74,.18,1) both;will-change:transform;filter:drop-shadow(0 3px 3px #0008)}
@keyframes chip-landing{0%{transform:translate(var(--chip-from-x),var(--chip-from-y)) rotate(-25deg);opacity:0}12%{opacity:1}72%{transform:translate(3px,2px) rotate(3deg)}100%{transform:translate(0,0) rotate(0);opacity:1}}
.reduced-motion .pile-icon.is-landing{animation:none!important}
@media(prefers-reduced-motion:reduce){.pile-icon.is-landing{animation:none!important}}
.playing-card,.playing-card.facedown{border-radius:12px;overflow:hidden}
.playing-card.facedown{background-color:transparent;background-clip:padding-box}
.playing-card.is-revealing:after{border-radius:inherit}
.chip-pile{display:grid;grid-template-columns:repeat(2,26px);align-items:center;justify-content:center;gap:24px 2px;width:54px;pointer-events:none}
.chip-stack{position:relative;display:block;width:26px;height:26px}
.chip-token{position:absolute;display:block;left:0;width:26px;height:26px;filter:drop-shadow(0 2px 2px #0009)}
.chip-token img{position:absolute;inset:0;top:0!important;left:0!important;width:26px;height:26px}
.chip-value{position:absolute;inset:0;display:grid;place-items:center;font:bold 8px Arial,sans-serif;color:#111827}
.chip-value-50 img{filter:hue-rotate(135deg)}
.chip-value-100 img{filter:grayscale(1) brightness(.48)}
.chip-value-100 .chip-value{color:#fff;text-shadow:0 1px 1px #000}
.chip-value-5 img{filter:grayscale(1) brightness(1.15)}
.chip-token.is-landing{animation:chip-landing .7s cubic-bezier(.12,.74,.18,1) both;will-change:transform}
.reduced-motion .chip-token.is-landing{animation:none!important}
@media(prefers-reduced-motion:reduce){.chip-token.is-landing{animation:none!important}}
.chip-token.is-collecting{animation:chip-payout .75s cubic-bezier(.4,0,.22,1) both;will-change:transform}
@keyframes chip-payout{0%{transform:translate(0,0) rotate(0);opacity:1}85%{opacity:1}100%{transform:translate(var(--win-x),var(--win-y)) rotate(18deg);opacity:0}}
.reduced-motion .chip-token.is-collecting{animation:none!important;opacity:0}
@media(prefers-reduced-motion:reduce){.chip-token.is-collecting{animation:none!important;opacity:0}}
.shared-area{position:relative;padding-inline:44px}
.shared-area .chip-pile{top:auto;bottom:0;transform:none;grid-template-columns:repeat(2,13px);width:39px;gap:16px 0;z-index:3}
.shared-area #opponent-bet{left:2px;right:auto}
.shared-area #human-bet{right:2px;left:auto}
.shared-area .community-cards .playing-card,.is-showdown .shared-area .community-cards .playing-card{height:min(240px,calc((var(--table-height) - 32px) * .38),calc((100cqw - 100px) / 3 * 10 / 7))}
.is-showdown .shared-area .community-cards .playing-card{height:min(240px,calc((var(--table-height) - 32px) / 3),calc((100cqw - 100px) / 3 * 10 / 7))}
.shared-area .chip-pile{top:50%;bottom:auto;transform:translateY(-50%)}
.shared-area .chip-pile[style]{transform:none}

.hand-actions{display:grid;gap:6px;margin-top:6px}
.hand-actions>button{width:100%;min-height:44px;margin:0}

.entry-view{padding:22px 0}.entry-copy{text-align:center}.entry-copy h2{font-size:clamp(24px,7vw,36px)}.entry-copy p,.mode-note{color:var(--muted);line-height:1.55}.name-field{display:grid;gap:8px;max-width:390px;margin:20px auto}.entry-actions{display:grid;gap:12px;max-width:390px;margin:auto}.primary-action,.secondary-action{display:grid;grid-template-columns:34px 1fr;gap:4px 10px;padding:16px;text-align:left;border:1px solid #ab8e51;border-radius:14px;background:#171a23;color:var(--ivory);min-height:76px}.primary-action{background:linear-gradient(140deg,#f1d58c,#bd974c);color:#15120c}.primary-action>span,.secondary-action>span{grid-row:1/3;font-size:26px}.entry-actions small{font-size:12px}.entry-error{color:#f0a496}.login-note{text-align:center;line-height:1.5;font-size:13px}.players{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:0}.players .player-stat{display:grid;align-content:center;text-align:center;padding:9px 6px;min-width:0;border-right:1px solid #a88b4b40}.players .player-stat.active{background:#e0bd7014}.player-heading{font-size:10px;color:var(--muted);letter-spacing:.06em}.players .player-name-row>strong{font-size:clamp(17px,4.5vw,21px);line-height:1.25;white-space:normal;overflow-wrap:anywhere}.players small{font-size:14px;line-height:1.4;color:var(--muted)}.players .player-stat:last-child{border-right:0}.mini-piece{display:inline-block;width:12px;height:12px;margin-right:3px;vertical-align:middle;background:none center/contain no-repeat}.mini-piece.dark{background-image:none}.turn-panel{position:relative;display:grid;align-items:center;height:calc(2.8em + 20px);min-height:0;padding:10px 2px;text-align:center;font-size:17px;line-height:1.4}.strategy-stage{margin-top:8px}.room-rule-label{display:block;text-align:center;font-size:11px;color:var(--muted);margin:8px 0}.moving-point{position:absolute;z-index:12;display:grid;place-items:center;pointer-events:none}.point .piece[hidden]{display:none}.point.is-capture .stone{filter:drop-shadow(0 0 5px #ee977c)}.point.last-to .stone{filter:drop-shadow(0 0 4px #eac16b)}.point.last-from:after{content:'';position:absolute;inset:1%;border:2px dashed #bdccd8;border-radius:50%;pointer-events:none}.point.last-capture:after{content:'×';position:absolute;inset:1%;display:grid;place-items:center;border:2px dashed #c99494;border-radius:50%;color:#e0acac;font-size:26px;pointer-events:none}.owner-room-code,.guest-room-controls{padding:14px 0;margin-bottom:14px;border-bottom:1px solid #a88b4b50}.owner-code-value{text-align:center;display:grid;gap:8px}.owner-code-value strong{font-size:28px;letter-spacing:.2em}.owner-code-actions,.room-dialog-actions{display:flex;gap:8px;margin-top:12px}.room-dialog-actions>*{flex:1}.connection{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.connection i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8dcc98;margin-right:6px}.connection.offline i{background:#d99574}.room-rematch-panel{text-align:center;padding:10px}.sound-mixer{display:grid;gap:8px;margin:12px 0}.sound-row{display:grid;grid-template-columns:minmax(0,1fr) 48px auto;align-items:center;gap:6px;padding:9px 0;border-bottom:1px solid #a88b4b40}.sound-row>span{font-size:13px}.sound-row input{grid-column:1/3}.sound-row output{font-size:12px}.sound-row button{grid-column:3;grid-row:1/3;min-height:38px}.reaction-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:12px 0}.reaction-choice{min-height:54px;border:1px solid #a88b4b50;border-radius:10px;background:#141820;font-size:28px}.reaction-choice.selected{border-color:#e7c578;background:#30291b}.reaction-toast{position:fixed;z-index:45;top:80px;left:50%;transform:translateX(-50%);padding:12px 18px;border:1px solid #a88b4b;border-radius:18px;background:#171c25;pointer-events:none;font-size:36px}.reaction-toast:after{content:'';position:absolute;left:45%;bottom:-7px;width:12px;height:12px;background:#171c25;border-right:1px solid #a88b4b;border-bottom:1px solid #a88b4b;transform:rotate(45deg)}.reaction-emoji{display:inline-block}.reaction-duration{display:grid;gap:8px}.reaction-duration>span{display:flex;justify-content:space-between;align-items:center;gap:6px}.turn-reminder{position:absolute;z-index:8;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:12px 20px;background:#191e27;border:1px solid #e7c578;border-radius:18px;color:#f1d58c;font-size:22px;font-weight:400;line-height:1.3;box-shadow:0 8px 22px #0009;pointer-events:none}.code-input{text-transform:uppercase;font-size:26px;letter-spacing:.15em;text-align:center}.ad-reservation{display:none}.setting-help{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1px solid #a88b4b80;background:#171c25;color:#f1d58c;font-style:italic}.info-block summary{cursor:pointer;padding:12px 0;color:var(--ivory);font-weight:700}.info-block{border-top:1px solid #a88b4b40}.info-block p{line-height:1.55;color:var(--muted)}

@media(prefers-reduced-motion:reduce){.moving-point,.reaction-emoji{animation:none}}

.sound-label{display:flex;align-items:center;gap:7px;min-width:0}.sound-row .sound-label>.setting-help{min-height:25px;flex:0 0 25px}.sound-row>input[type=range]{grid-column:1/3}.sound-row>button[data-sound-preview]{grid-column:3;grid-row:1/3}.sound-row>output{grid-column:2;grid-row:1}.quiet-button{min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ivory)}.entry-view input,.entry-view select,form input,form select{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ivory);padding:10px 12px}form label{display:grid;gap:8px;margin:14px 0}.room-dialog-actions .danger-button{margin-top:0}.info-play-button{width:100%;margin:12px 0}.info-block{color:var(--ivory)}

.nine-mens-morris .board-point:disabled{opacity:1;cursor:default}.reaction-toast.is-showing .reaction-emoji{animation:live-reaction .7s ease-in-out 2}.reduced-motion .reaction-emoji{animation:none!important}@keyframes live-reaction{0%,100%{transform:scale(1) rotate(0)}35%{transform:translateY(-5px) scale(1.08) rotate(-5deg)}65%{transform:scale(1.05) rotate(5deg)}}

.sound-mixer>.setting-help-bubble{margin:0 0 8px}.setting-help-bubble p{margin:0}.setting-help:focus-visible{outline:2px solid var(--gold-light);outline-offset:2px}

.setting-help{width:44px;height:44px;flex:0 0 44px;border:0;background:radial-gradient(circle,#1a2230 0 13px,#80662f 13px 14px,transparent 14px);font:italic bold 18px Georgia,serif}.sound-row .sound-label>.setting-help{min-height:44px;flex:0 0 44px}

/* Two readable player cells; gameplay counts remain internal. */
.players .player-stat{gap:5px;padding:12px 8px}.players .player-heading{font-size:14px;line-height:1.3;letter-spacing:.04em}.players .mini-piece{width:16px;height:16px;margin-right:6px}

.players .player-name-row{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0}.players .player-name-row>strong{min-width:0;flex:0 1 auto}.players .player-name-row .player-heading{flex:0 0 auto;font-size:13px;white-space:nowrap}.players .player-name-row .mini-piece{display:inline-block;width:24px;height:24px;flex:0 0 24px;margin:0;background-size:contain}.players small.is-present,.players small.is-absent{color:var(--gold-light)}.players small[id$="-status"]{color:var(--gold-light)}.players small[id$="-status"]:after{content:"";display:inline-block;width:10px;height:10px;margin-left:7px;vertical-align:baseline;border:1px solid #6a2020;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffb3ad,#f3544a 45%,#9d2923);box-shadow:0 0 5px #f3544a66,inset 0 0 2px #fff5}.players small.is-present:after{border-color:#245b33;background:radial-gradient(circle at 35% 30%,#cbffd4,#5ade7c 45%,#267b3b);box-shadow:0 0 5px #5ade7c66,inset 0 0 2px #fff5}.room-rules{margin:12px 0 18px;padding:12px 0;border-block:1px solid var(--line)}.room-rules h3{margin:0 0 10px;font-size:16px;color:var(--gold-light)}.room-rules>strong{font-size:15px;color:var(--ivory)}.room-rules p{margin:8px 0 0;color:var(--muted);line-height:1.5}

/* A constant two-line status area keeps the board in place. */
#turn-message{display:-webkit-box;width:100%;max-height:2.8em;margin:0;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.4}.turn-reminder:after{content:"";position:absolute;left:50%;bottom:-7px;width:12px;height:12px;transform:translateX(-50%) rotate(45deg);border-right:1px solid #e7c578;border-bottom:1px solid #e7c578;background:#191e27}

/* Server status, room actions, then four independently collapsible sections. */
#info-dialog .info-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}#info-dialog .info-status-row .connection{margin:0}#info-dialog .info-status-row .info-entry-close{margin-left:auto}#info-dialog .info-room-actions{margin-bottom:18px}
#info-dialog.game-content .info-block>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;margin:0;padding:12px 0;list-style:none;color:var(--page-heading);font-family:var(--page-font);font-size:var(--page-heading-size);font-weight:700;line-height:1.3;cursor:pointer;overflow-wrap:anywhere}
#info-dialog.game-content .info-block>summary::-webkit-details-marker{display:none}#info-dialog.game-content .info-block>summary::marker{content:""}
#info-dialog.game-content .info-block>summary::after{content:"";display:block;flex:0 0 12px;width:12px;height:12px;margin:0 6px 5px 0;border-right:3px solid currentColor;border-bottom:3px solid currentColor;transform:rotate(45deg)}
#info-dialog.game-content .info-block[open]>summary{margin-bottom:8px}#info-dialog.game-content .info-block[open]>summary::after{transform:rotate(225deg);margin-bottom:0}
#info-dialog .room-rules{margin:0;padding:0;border-bottom:0}#info-dialog .room-rules[open]{padding-bottom:14px}#info-dialog.game-content .info-block>summary:focus-visible{outline:2px solid var(--gold-light);outline-offset:2px;border-radius:4px}

/* Equally sized room-code actions with legible wrapping on phones. */
#info-dialog .owner-code-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:10px}#info-dialog .owner-code-actions>button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:48px;margin:0;padding:12px 10px;font:inherit;font-size:15px;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}#info-dialog .owner-code-actions>button:disabled{opacity:.65;cursor:wait}#info-dialog .copy-code-status{margin:8px 0 0;font-size:14px;line-height:1.45;color:var(--ivory)}#info-dialog .copy-code-status:empty{display:none}#info-dialog .copy-code-manual input{width:100%;min-height:44px;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel);color:var(--ivory);font-size:20px;text-align:center;letter-spacing:.12em;user-select:text;-webkit-user-select:text}

.players .mini-piece{position:static;background:none}.players .mini-piece:after{content:"●";font-size:24px;color:#6fc5ff}.players .mini-piece.dark:after{color:#e1bd65}.online-board-stage{width:100%;max-width:760px;margin:8px auto 0}.online-game-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}.online-game-actions>button{flex:1;min-height:44px;margin:0}.online-game-actions select,.online-raise input{min-height:44px;background:var(--panel);color:var(--ivory);border:1px solid var(--line);border-radius:8px;padding:8px;max-width:100%}.online-raise{display:grid;gap:5px}.online-raise input{width:110px}.online-fleet-views{display:flex;gap:8px;margin-bottom:12px}.online-fleet-views>button{flex:1;margin:0}.spot.is-target:after{animation:none}.online-halma,.online-hare{aspect-ratio:1}.online-board-stage>.ludo-board{position:relative;aspect-ratio:1}.online-ludo-die{position:absolute;left:40%;top:40%;width:20%;height:20%;z-index:9;pointer-events:none}.online-cloud .board,.online-cloud .routes{inset:0;width:100%;height:100%}.online-cloud-token{position:absolute;width:14%;height:14%;object-fit:contain;transform:translate(-50%,-58%);filter:drop-shadow(0 4px 3px #000a);z-index:5;pointer-events:none;transition:left .55s ease,top .55s ease}.online-cloud.no-motion .online-cloud-token{transition:none}.online-cloud-die{width:70px;height:70px}.online-board-stage>.poker-table{--table-height:clamp(340px,65vw,620px);max-width:760px}.online-board-stage .board-plinth{width:100%;max-width:100%}.online-board-stage .no-motion *{animation:none!important;transition:none!important}

.players .mini-piece{background:url('assets/chip.webp') center/contain no-repeat!important}.players .mini-piece.dark{background-image:url('assets/chip.webp')!important}.players .mini-piece:after{content:none}

.online-board-stage .online-halma{position:relative;width:100%;aspect-ratio:1}.online-board-stage .online-hare{position:relative;width:100%;height:100%}.online-board-stage .piece-layer{position:absolute;inset:0;pointer-events:none;z-index:8}.online-board-stage .piece-layer>button{pointer-events:auto}.online-ludo-die{z-index:9}.online-cloud .routes{overflow:visible}.online-fleet-views .secondary-button:focus-visible{outline:2px solid var(--gold-light)}
