/* 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}
.game-ad-secondary{flex-shrink:0}
body.has-game-anchor{--board-anchor:62px}
body:has(.game-ad-secondary:not([hidden])){--board-banner:122px}
.strategy-stage{min-height:0!important;padding:12px 10px 16px}
.turn-strip{display:flex;align-items:center;justify-content:center;gap:10px;max-width:700px;margin:0 auto 12px;min-height:30px;color:#e0d3b6;font-size:12px;line-height:1.4;text-align:center}
.turn-strip img{object-fit:contain;filter:drop-shadow(0 2px 2px #000)}
.strategy-board{position:relative;isolation:isolate;width:100%;max-width:650px;aspect-ratio:1;margin:auto;border-radius:10px;background:#24282e url('assets/board.webp?v=20261004-premium-chess-1') center/cover;box-shadow:0 12px 24px #0008;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.strategy-board:after{content:'';position:absolute;inset:0;border:1px solid #a8864c;border-radius:10px;pointer-events:none}
.strategy-board.human-turn:after{box-shadow:0 0 9px #71e79430}
.strategy-board.computer-turn:after{box-shadow:0 0 9px #ed786830}
.board-tracks{position:absolute;inset:0;pointer-events:none}
.board-tracks svg{display:block;width:100%;height:100%;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round}
.track-shadow{stroke:#120c08}
.track-brass{stroke:#bd9554}
.track-light{stroke:#fff2bf99}
.board-points{position:absolute;inset:0}
.checkers .board-points{inset:5.4%;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}
.board-point{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:0;background:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;overflow:visible}
.nine-mens-morris .board-point{position:absolute;width:9.5%;height:9.5%;transform:translate(-50%,-50%);border-radius:50%}
.nine-mens-morris .board-point:before{content:'';position:absolute;inset:35%;border-radius:50%;background:radial-gradient(circle,#0b0705 10%,#684726 70%);box-shadow:inset 0 2px 2px #0009,0 1px #fff3}
.stone{display:block;position:relative;z-index:2;width:86%;height:86%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 3px 2px #000b)}
.board-point.is-selected .stone{filter:drop-shadow(0 3px 2px #000b) drop-shadow(0 0 5px #fff0a8);transform:scale(1.05)}
.board-point.is-target:after{content:'';position:absolute;z-index:3;inset:27%;border:2px solid #fff0a6;border-radius:50%;box-shadow:0 0 8px #f9d57655;pointer-events:none}
.board-point.is-last .stone{filter:drop-shadow(0 3px 2px #000b) drop-shadow(0 0 3px #eac16b99)}
.board-point:focus-visible{outline:2px solid #fff0a6;outline-offset:-2px;z-index:5}
.board-point[aria-disabled=true]{cursor:default}
.board-point.is-light{cursor:default}
.king-crown{position:absolute;z-index:4;inset:29%;background:linear-gradient(145deg,#fff9d3,#5c3410);clip-path:polygon(0 15%,23% 40%,50% 0,77% 40%,100% 15%,88% 85%,12% 85%);filter:drop-shadow(0 1px 1px #000);pointer-events:none}
.reserve-count{max-width:650px;margin:12px auto 0;color:#c9bd9f;font-size:12px;text-align:center;line-height:1.4}
.round-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.result-piece{display:block;object-fit:contain;margin:0 auto 14px;filter:drop-shadow(0 5px 7px #000b)}
@media(min-width:600px){.strategy-board{max-width:min(100%,max(240px,calc(100svh - 300px - var(--board-anchor) - var(--board-banner) - env(safe-area-inset-bottom))))}
.strategy-stage{padding:16px 14px}
.turn-strip{font-size:14px}}
@media(min-width:1024px),(orientation:landscape) and (max-height:540px){body.has-game-anchor{--board-anchor:0px}}
@media(hover:hover) and (pointer:fine){.board-point:not([aria-disabled=true]):not(.is-light):hover:after{content:'';position:absolute;inset:22%;border:1px solid #ffe5a0;border-radius:50%;pointer-events:none}}
.preview-capture .turn-strip,.preview-capture .reserve-count{display:none}
.preview-capture .strategy-board{max-width:100%}
.reduced-motion .stone{transition:none}
.strategy-stage{padding:0;border:0;border-radius:0;background:none;box-shadow:none}
.strategy-stage:before,.strategy-stage:after{display:none}
.strategy-board.checkers{max-width:100%;border-radius:0;background-size:100%;box-shadow:none;overflow:hidden}
.strategy-board.checkers:after{display:none}
.checkers .board-points{inset:1%}
.checkers .king-crown.is-human{inset:26%;background:#080808;filter:none}
@media(min-width:600px){.strategy-board.checkers{max-width:min(100%,max(240px,calc(100svh - 210px - var(--board-anchor) - var(--board-banner) - env(safe-area-inset-bottom))))}}
.piece-visual{position:relative;display:grid;place-items:center;width:86%;height:86%;z-index:2;pointer-events:none}
.piece-visual .stone{width:100%;height:100%}
.piece-visual .king-crown{inset:22%}
.checkers .piece-visual .king-crown.is-human{inset:22%}
.chess .board-points{inset:1%;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}
.strategy-board.chess{max-width:100%;border-radius:0;box-shadow:none;background-size:100% 100%;overflow:hidden}
.strategy-board.chess:after{display:none}
.chess .piece-visual{width:96%;height:96%}
.chess .stone{width:100%;height:100%;filter:drop-shadow(0 2px 1px #0009)}
.chess .board-point.is-check{box-shadow:inset 0 0 0 2px #eb7868}
.chess .board-point.is-origin{background:#ffd96a16}
.chess .board-point.is-last{background:#ffd96a22}
.promotion-options{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.promotion-options button{display:grid;place-items:center;border:1px solid #947841;border-radius:10px;padding:4px;background:#0b0e15;color:#f5e7c7;font-size:11px}
.promotion-options img{width:100%;aspect-ratio:1;object-fit:contain;pointer-events:none}
@media(min-width:600px){.strategy-board.chess{max-width:min(100%,max(240px,calc(100svh - 220px - max(80px,calc(var(--board-anchor) + var(--board-banner))) - env(safe-area-inset-bottom))))}}
.classic-piece{font-family:"Times New Roman","Apple Symbols",Georgia,serif;font-variant-emoji:textdisplay:grid;place-items:center;line-height:1;pointer-events:none;user-select:none;-webkit-user-select:none}
.classic-piece.is-white{color:#f7eed9;text-shadow:-1px -1px 0 #4a3828,1px -1px 0 #4a3828,-1px 1px 0 #4a3828,1px 1px 0 #4a3828,0 2px 2px #0007}
.classic-piece.is-black{color:#101114;text-shadow:0 1px 0 #ffffff2b,0 2px 2px #0008}
.chess .piece-visual{container-type:inline-size}
.chess .classic-piece{width:100%;height:100%;font-size:clamp(26px,8vw,80px);font-size:84cqw}
.promotion-options button{container-type:inline-size}
.promotion-options .classic-piece{width:100%;aspect-ratio:1;font-size:64px;font-size:80cqw}
#result-piece{width:80px;height:80px;display:grid;place-items:center}
#result-piece img{width:100%;height:100%;object-fit:contain}
#result-piece .classic-piece{width:100%;height:100%;font-size:64px}

.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:url('assets/piece-w-k.webp') center/contain no-repeat}.mini-piece.dark{background-image:url('assets/piece-b-k.webp')}.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{background-image:url('assets/piece-w-k.webp')}.players .mini-piece.dark{background-image:url('assets/piece-b-k.webp')}

.online-board-stage{width:100%;margin:8px auto 0}.online-board-stage>.strategy-board,.online-board-stage>.board-frame{max-width:100%;width:100%}.online-backgammon-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.online-backgammon-actions>button{min-width:0;min-height:44px;margin:0}.online-move-options{display:grid;gap:10px}.online-move-options>button{margin:0;min-height:44px}.board-point:disabled{opacity:1}.cell.is-winner .mark{animation:none}.online-board-stage .moving-point{position:absolute;z-index:12;pointer-events:none}.online-board-stage .moving-point .piece{width:100%;height:100%}@media(min-width:700px){.online-board-stage{max-width:760px}}

.online-board-stage .moving-point{left:0;top:0}.online-board-stage .moving-point .piece{position:relative;display:grid;place-items:center}.online-board-stage .moving-point .stone{max-width:100%;max-height:100%;object-fit:contain}
