/* 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}
