/* Neon party arena. Decoration stays outside the answer and board surfaces. */
:root{--lime:#61f3ff;--purple:#c3a0ff;--peach:#ff97d5;--blue:#81c8ff;--muted:#b6b9d4;--line:#353655;--panel:#171b32;color:#f5f5ff;background:#090d20}
body{background:radial-gradient(ellipse at 95% 8%,#ec2cbb22,transparent 35%),radial-gradient(ellipse at 0 22%,#00d7ff16,transparent 38%),#090d20}
header{border-color:#737ba32b}.brand{letter-spacing:-1.5px}.brand-icon{background:#62f4ff;color:#08162d;box-shadow:0 0 22px #29e8ff40;transform:rotate(-6deg);border-radius:10px}.brand-dot{color:#ff75ca;text-shadow:0 0 15px #ff3bb4}
.hero{position:relative;isolation:isolate;gap:72px;padding:84px 0 78px}.hero:before{content:'';position:absolute;z-index:-1;inset:0 -25px;background:linear-gradient(125deg,transparent 16%,#32e5ff00 16.2%,#32e5ff55 16.4%,transparent 16.7%),linear-gradient(55deg,transparent 81%,#ff42bd55 81.3%,transparent 81.6%);pointer-events:none;opacity:.65;mask-image:linear-gradient(transparent,#000 25%,#000 75%,transparent)}
.hero h1{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:950;font-size:clamp(48px,5.5vw,78px);line-height:1.02;letter-spacing:-3px;text-transform:uppercase}.hero h1 em{font-style:normal;color:#6df4ff;text-shadow:0 0 35px #06d9ff35}.hero .eyebrow{color:#ff92d6;letter-spacing:2.5px;display:flex;align-items:center;gap:12px}.hero .eyebrow:before{content:'';width:24px;height:3px;background:#ff69cb;box-shadow:0 0 12px #ff3fbe}.lead{color:#c4c8e1}.benefits{color:#c7cce1;gap:18px}
.entry-panel{position:relative;background:linear-gradient(155deg,#1d2141,#10152d);border:1px solid #6583bd;border-radius:22px;box-shadow:-8px 0 30px #24d5ff16,10px 0 45px #e739bc20,0 24px 60px #0005;padding:32px}.entry-panel:before,html[lang="fr"] .entry-panel:before{content:'';position:absolute;top:-2px;left:22px;right:22px;height:3px;background:linear-gradient(90deg,#42edff,#ac74ff,#ff55c6);border-radius:10px;transform:none;box-shadow:0 0 20px #9f6aff80;padding:0}.entry-panel:after{content:'';position:absolute;inset:8px;border:1px solid #a88eff20;border-radius:15px;pointer-events:none}.entry-panel h2{font-size:27px}.panel-tabs{background:#090f25;border:1px solid #3c466d;border-radius:12px}.panel-tabs button.active{color:#f1fcff;background:#263253;box-shadow:inset 0 -2px #65efff}
input,select{background-color:#0d142c;border-color:#515d86;color:#f5f6ff}input::placeholder{color:#a2acca}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#ff9bde}
.primary{color:#071526;background:#69f2ff;border:1px solid #a1f9ff;box-shadow:0 4px 22px #2bdbff24}.primary:hover{background:#9cf8ff;box-shadow:0 0 25px #2bdbff40}.secondary{background:#29304d;border-color:#59668b;color:#f4f5ff}.quiet{border-color:#454e73;color:#c5cce6;background:#12193166}.quiet:hover:not(:disabled){background:#2b3250}
.box,.stage{background:#151b31;border-color:#394463;border-radius:18px}.stage{box-shadow:0 14px 40px #0003}.stage-top{background:linear-gradient(100deg,#1d2c48,#24203d);border-bottom-color:#516086}.stage-body{background:#151b31}.stage-body>button[data-manual]{margin-top:20px}.timer,.room-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.room-code{color:#7ef3ff;letter-spacing:4px}.timer{background:#0b1528;border:1px solid #5b91a8;color:#a0f9ff;border-radius:9px;font-variant-numeric:tabular-nums}.room-head .eyebrow{color:#ff99d7}
.game-filters{padding:22px;background:#11182ed9;border:1px solid #354260;border-radius:16px;margin-bottom:24px}.game-filters>.chips{margin-top:0}.game-filters label{margin-top:16px}.game-filter-note{font-size:13px;color:#b5bfd9;line-height:1.6;margin:14px 0 0}.chip{background:#172039;border-color:#435277;color:#cbd5ec;border-radius:9px}.chip.selected{background:#263b56;border-color:#64e9ff;color:#a9f8ff;box-shadow:inset 0 0 15px #28c8ee12}.chip small{margin-left:6px;opacity:.8}
.game-card{background:#151c33;border:1px solid #3c4668;border-radius:17px;transition:transform .18s,border-color .18s,box-shadow .18s}.game-card:hover{transform:translateY(-4px);border-color:#62d9f0;box-shadow:0 10px 30px #00d4ff12}.game-art{height:140px;color:#66f1ff;background:radial-gradient(ellipse at center,#18e5ff1c,transparent 65%),linear-gradient(140deg,#0e2940,#14162f);border-bottom:1px solid #3c718a;isolation:isolate}.game-art.purple{color:#cdadff;background:radial-gradient(ellipse,#a951ff30,transparent 70%),#21163b;border-bottom-color:#69508c}.game-art.peach{color:#ff9cda;background:radial-gradient(ellipse,#ff29b52a,transparent 70%),#2c1533;border-bottom-color:#854574}.game-art.blue{color:#8ddcff;background:radial-gradient(ellipse,#2979ff30,transparent 70%),#122543;border-bottom-color:#3d688e}.game-art:before{width:96px;height:96px;transform:rotate(45deg);border:1px solid currentColor;border-radius:12px;opacity:.45;box-shadow:0 0 24px currentColor}.game-art:after{width:122px;height:122px;transform:rotate(45deg);border:1px solid currentColor;border-radius:12px;opacity:.16}.library-icon{width:62px;height:62px;position:relative;z-index:1;filter:drop-shadow(0 0 8px #ffffff30)}.art-symbol{font-size:57px;text-shadow:0 0 18px currentColor;transform:none;z-index:1}.mini-tiles{transform:rotate(-5deg);z-index:1}.mini-tiles b{font-size:25px;border-color:#ffbce5;background:#311b42;box-shadow:0 0 12px #ff65cb30;color:#ffd0ed}
.game-copy{padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.game-copy h3{line-height:1.25;font-size:21px}.game-copy p{margin:0;min-height:0;color:#bec8e2}.game-copy .eyebrow{color:#93e6f7;font-size:10px;margin:0;line-height:1.6;letter-spacing:1.5px}.game-copy .micro{text-align:left}.game-copy details{color:#c6cee5}.game-copy summary{color:#edf0ff}.game-copy .quiet{margin-top:5px}.game-status{font-size:11px;padding:5px 9px;border:1px solid #8271a9;border-radius:6px;color:#dfc5ff;background:#ae66ed0c}.game-status.pending{border-style:dashed}.empty-library{grid-column:1/-1;border:1px dashed #6e77a1;padding:32px;border-radius:12px;line-height:1.7;color:#c1cbe5}
.pick{background:#11192f;border-color:#465276}.pick.selected{background:#2bd5ff0b;border-color:#60e8ff;box-shadow:inset 3px 0 #60e8ff}.pick .pick-icon{background:#153c4c;color:#7cf5ff}.pick .pick-icon.purple{background:#352451;color:#d4b1ff}.pick .pick-icon.blue{background:#1b3454;color:#9cd9ff}.pick .pick-icon.peach{background:#492443;color:#ffa5de}.pick small{line-height:1.5}.pick:disabled{opacity:.65}.avatar{background:#c2a4ff;color:#1b1731}.ready{color:#86e8bc}
.answer{background:#202a43;border-color:#536582;color:#f7f8ff}.answer b{color:#a9e8ff;border-color:#587591}.answer:hover:not(:disabled){background:#2c3d59;border-color:#82d8ed}.answer.chosen{background:#243f51;border-color:#71eaff}.answer.right{background:#183d33;border-color:#80e0ae}.result{background:#142e2a;border-color:#58aa84}.solution{color:#9aefbf}.result p{color:#cee2db}.private-note{background:#22243d;border-color:#c2a2ef}.strategy-goal,.game-goal{color:#d4dbee}.how{background:linear-gradient(110deg,#172940,#271b3e);border-color:#49537e;border-radius:16px}.how-steps b{color:#ff9fda}.trophy{color:#ffb5e4;text-shadow:0 0 35px #ff45bc50}.finished h1{color:#f6f2ff}.podium{box-shadow:0 0 45px #a768ff12}dialog{background:#151b32;color:#f4f5ff;border-color:#6c6c9d}.game-manual{color:#e6e9f7}footer{color:#aab5d0;border-color:#333e5c}
.mobile-category{display:none}@media(max-width:1000px){.hero{gap:36px}.hero h1{font-size:57px}}
@media(max-width:700px){.hero{padding:38px 0 44px;gap:34px}.hero h1{font-size:clamp(40px,10.8vw,58px);letter-spacing:-1.7px;line-height:1.05}.hero:before{inset:0 -8px;opacity:.4}.entry-panel{padding:25px}.game-art{height:120px}.game-copy{padding:18px}.game-filters{padding:16px}.mobile-category{display:block}.mobile-category label{margin-top:0}.game-filters>.chips{display:none}.benefits{line-height:1.6;gap:10px 15px}.game-grid{gap:15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}.game-card:hover{transform:none}}

/* Keep game names readable on narrow phones. */
@media(max-width:480px){.pick-grid{grid-template-columns:1fr}.pick{align-items:center;padding:12px;gap:12px}.pick>span:not(.pick-icon){min-width:0}.pick strong,.pick small{overflow-wrap:normal;word-break:normal}.pick .pick-icon{width:36px;height:36px;flex-shrink:0}.pick small{line-height:1.45}.pick-check{display:block}}

.lobby-disclosure>summary{cursor:pointer;font-weight:750;line-height:1.5;padding:14px 0;color:#e5f5ff}.lobby-disclosure{border-top:1px solid var(--line)}.selected-games{line-height:1.7;color:#a5f2ff;margin-bottom:8px}.lobby-invite .box{padding:18px 24px;margin-bottom:20px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}.lobby-invite .share{gap:16px}.lobby-invite .qr{width:72px;height:72px}.lobby-invite .full{width:auto;margin:0}.lobby-invite .share-url{margin:0;overflow-wrap:anywhere}.lobby-launch details{border-top:0}.lobby-layout .box h2{font-size:22px}.lobby-disclosure .box{margin:12px 0}.selected-games:empty{display:none}
@media(max-width:700px){.lobby-invite .box{gap:12px;padding:16px}.lobby-invite .share-url{display:none}.lobby-invite .full{flex:1;font-size:13px;padding:12px}.lobby-invite .qr{width:56px;height:56px}.lobby-invite .room-code{font-size:20px;letter-spacing:2px}.lobby-invite .subtle{margin:0 0 6px}.lobby-layout{display:flex;flex-direction:column}.lobby-layout>section,.lobby-layout>aside{width:100%}.lobby-layout .box{padding:20px}.lobby-layout .game-filters{margin-top:12px}.lobby-layout .pick-grid{grid-template-columns:1fr}.lobby-layout .pick strong{font-size:15px}}

.feedback-invite{margin:42px 0 20px;padding:24px;border:1px solid #48547b;border-radius:18px;background:linear-gradient(120deg,#182c40,#271c3c);display:flex;align-items:center;justify-content:space-between;gap:24px}.feedback-invite h2{margin:0 0 10px;font-size:23px}.feedback-invite p{color:#c4cce2;line-height:1.6}.feedback-actions{display:flex;gap:12px;flex-wrap:wrap}.feedback-invite .feedback-actions{flex-shrink:0}#feedback-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:24px;border-radius:18px}#feedback-dialog::backdrop{background:#030615c9}#feedback-dialog textarea{width:100%;resize:vertical;font:inherit;line-height:1.6;padding:12px;color:#f5f6ff;background:#0d142c;border:1px solid #657198;border-radius:10px}#feedback-dialog .micro{text-align:left}.feedback-rating{border:0;padding:0;margin:20px 0;display:flex;gap:8px;flex-wrap:wrap}.feedback-rating legend{font-weight:700;margin-bottom:12px}.feedback-rating label{position:relative;margin:0;flex:1;min-width:48px}.feedback-rating input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.feedback-rating span{display:block;text-align:center;padding:13px 5px;border:1px solid #647091;border-radius:8px}.feedback-rating input:checked+span{background:#254957;color:#adf7ff;border-color:#61f3ff}.feedback-rating input:focus-visible+span{outline:3px solid #ff9bde;outline-offset:2px}
@media(max-width:700px){.feedback-invite{display:block;padding:20px}.feedback-invite .feedback-actions{flex-direction:column}#feedback-dialog{padding:18px}.feedback-rating{gap:5px}.feedback-rating label{min-width:40px}}

.pick-limit-note{padding:14px;border:1px solid #eeb8e0;border-radius:10px;background:#44223c;color:#ffe1f7;line-height:1.6}
/* Crooked Cops: private dossiers and a legible, pannable transit board. */
.cops-heading,.cops-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.cops-heading h3{margin:0}.cops-heading strong{color:#e8ff77}.cops-phase{padding:12px 16px;background:#153b46;border-left:3px solid #57f0db;border-radius:8px}.cops-role{border:1px solid #a990ff;background:#211d38;padding:14px;border-radius:12px}.cops-role summary{font-weight:700;cursor:pointer}.cops-controls{border:1px solid #4d607c;padding:14px;border-radius:12px;margin:16px 0;background:#101b2d}.cops-controls form{margin:0}.cops-panel .strategy-form{display:grid;gap:10px}.cops-panel input,.cops-panel select{width:100%;min-height:44px;box-sizing:border-box}.cops-panel button{min-height:44px;white-space:normal}.cops-map{width:100%;max-height:65vh;overflow:auto;border:1px solid #546585;background:#0c1227;border-radius:12px;overscroll-behavior:contain;touch-action:pan-x pan-y}.cops-map svg{display:block;width:100%;min-width:660px;height:auto}.cops-map.zoomed svg{width:1800px;max-width:none}.cops-node{cursor:pointer}.cops-node:hover circle,.cops-node:focus circle,.cops-node.selected circle{stroke:#fff;stroke-width:5}.cops-node:focus{outline:none}.cops-panel details{margin-top:14px;padding:12px;border:1px solid #4d607c;border-radius:10px}.cops-panel summary{cursor:pointer;min-height:32px}.cops-panel .micro{font-size:.85rem;line-height:1.55}.cops-chat-log{max-height:240px;overflow:auto;overflow-wrap:anywhere}.cops-results{margin-top:18px;padding:16px;border:1px solid #57f0db;border-radius:12px}.cops-panel li{margin:8px 0;overflow-wrap:anywhere}.cops-brief{padding:12px 0}.cops-panel .eyebrow{font-size:.7rem;letter-spacing:.1em}.cops-panel{min-width:0}.cops-panel p{overflow-wrap:anywhere}@media(max-width:540px){.cops-heading h3{font-size:1.4rem}.cops-map{max-height:55vh}.cops-board-head h4{font-size:1rem}.cops-controls{padding:12px}.cops-panel .strategy-form button{width:100%}}
/* Keep the full chase board close to the controls on small screens. */
.game-dp_crooked_cops .stage-body>h2,.game-dp_crooked_cops .stage-body>.strategy-intro{display:none}.room-grid:has(.game-dp_crooked_cops){grid-template-columns:minmax(0,1fr)}.room-grid:has(.game-dp_crooked_cops)>aside{display:none}.game-dp_crooked_cops .stage-body{padding:18px}.game-dp_crooked_cops .cops-panel{max-width:1200px;margin:auto}.cops-heading [data-turn-deadline]{font-variant-numeric:tabular-nums;color:#57f0db}.cops-map:not(.zoomed) svg{min-width:0}.game-dp_crooked_cops .cops-controls{max-width:650px;margin:16px auto}.cops-panel .cops-role,.cops-panel .cops-brief{max-width:900px;margin-left:auto;margin-right:auto}
.game-dp_crooked_cops .stage-body>.strategy-goal{display:none}
.grass-scroll{overflow:auto;max-height:72vh;border:1px solid #6d55b0;border-radius:14px;background:#0e1425;margin:12px 0}.grass-board{display:block;width:100%;min-width:360px;touch-action:pan-x pan-y}.grass-scroll.zoomed .grass-board{min-width:960px}.grass-board g[data-grass-cell]{cursor:pointer}.grass-board text{pointer-events:none}.grass-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.grass-fields label{min-width:0}.grass-fields input,.grass-fields select{width:100%;min-width:0}.grass-rack{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:8px}.grass-tile{border:1px solid #52627d;border-radius:10px;padding:8px;color:#b9f45e;text-align:center}.grass-tile svg{height:68px;display:block;width:100%}.grass-tile button{font-size:.75rem;padding:6px}.grass-tile b{font-size:.8rem}.grass-scores{display:flex;gap:8px;overflow:auto;padding:8px 0}.grass-scores>div{min-width:140px;border-left:4px solid;padding:8px;background:#171c31;border-radius:8px}.grass-scores span{display:block;font-size:.8rem}.grass-controls{margin:14px 0}.grass-panel details{margin-top:16px}.grass-panel .strategy-form{margin:10px 0}@media(max-width:600px){.grass-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.grass-rack{grid-template-columns:repeat(3,minmax(0,1fr))}.grass-scroll{max-height:60vh}.grass-scores>div{min-width:125px}}

.game-dp_grass .stage-body>h2,.game-dp_grass .stage-body>.strategy-intro,.game-dp_grass .stage-body>.strategy-goal{display:none}.room-grid:has(.game-dp_grass){grid-template-columns:minmax(0,1fr)}.room-grid:has(.game-dp_grass)>aside{display:none}.game-dp_grass .stage-body{padding:16px}.grass-board{min-width:0}.grass-scroll.zoomed .grass-board{min-width:960px}.grass-controls{max-width:650px;margin:14px auto}
.grass-scores>.grass-seat-0{border-color:#70e4ff}.grass-scores>.grass-seat-1{border-color:#ff78bb}.grass-scores>.grass-seat-2{border-color:#b9f45e}.grass-scores>.grass-seat-3{border-color:#ffd168}.grass-scores>.grass-seat-4{border-color:#c5a0ff}.grass-scores>.grass-seat-5{border-color:#ff9773}.grass-scores>.grass-seat-6{border-color:#8af0c9}.grass-scores>.grass-seat-7{border-color:#f493ff}.grass-scores>.grass-seat-8{border-color:#b4c5db}/* Unknown: readable original boards and physical cube nets. */
.unknown-panel{max-width:100%;min-width:0}.unknown-scroll{overflow:auto;max-height:65vh;border:1px solid #6974a7;border-radius:14px;background:#101528;padding:12px}.unknown-scroll svg{display:block;width:100%;max-height:none}.unknown-moves{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.unknown-moves .strategy-form{margin:0}.unknown-players{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0}.unknown-players article{padding:12px;border:1px solid #536184;border-radius:12px;background:#172039}.unknown-net{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;max-width:240px}.unknown-net span{display:grid;place-items:center;min-height:35px;border-radius:4px;font-size:12px;font-weight:700}.unknown-panel select{max-width:100%;width:100%}.unknown-panel details{margin:12px 0}.unknown-panel li{margin:.6em 0}
.unknown-scroll .unknown-board{min-width:700px}.unknown-scroll.overview .unknown-board{min-width:0}.unknown-net span{color:#101724}.unknown-face-red{background:#ee405d}.unknown-face-yellow{background:#ffcf45}.unknown-face-blue{background:#4285ff}.unknown-face-green{background:#39bd79}.unknown-face-purple{background:#b964ee}.unknown-face-white{background:#f0f4ff}.game-dp_unknown .stage-body>h2,.game-dp_unknown .stage-body>.strategy-intro,.game-dp_unknown .stage-body>.strategy-goal{display:none}.room-grid:has(.game-dp_unknown){grid-template-columns:minmax(0,1fr)}.room-grid:has(.game-dp_unknown)>aside{display:none}.game-dp_unknown .stage-body{padding:16px}.unknown-panel .unknown-players{text-align:left}

.race-board{display:block;width:100%;max-width:600px;margin:1rem auto}.race-panel .strategy-form{display:grid;gap:.65rem;margin:1rem 0}.race-panel label{display:grid;gap:.35rem}.race-panel select{width:100%;max-width:100%;min-width:0}.race-panel>button{margin:.3rem}.race-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.3rem}.race-panel details{margin:.8rem 0}.race-panel p{overflow-wrap:anywhere}

/* Shared progress remains compact on narrow phones. */
.group-progress{margin:0 0 1rem;padding:.75rem;border:1px solid #455476;border-radius:12px;text-align:left;background:#111b32}
.group-progress>p{margin:0 0 .5rem;font-weight:700}.group-seats{display:flex;gap:.5rem;flex-wrap:wrap}.group-seat{padding:.4rem .6rem;border:1px solid #465775;border-radius:10px;overflow-wrap:anywhere;max-width:100%}.group-seat small{display:block;color:#b8c9de}.group-seat.active{border-color:#5ce8d0}.clock-readout{display:flex;align-items:flex-end;flex-direction:column}.clock-readout>small{font-size:.7rem;color:#c6d4e6}.group-break{max-width:800px;margin:0 auto}.group-break>button{margin-top:.7rem}
.cube-view{height:300px;position:relative;perspective:850px;overflow:hidden;touch-action:pan-y;cursor:grab;background:radial-gradient(ellipse at 50% 78%,#59438133,transparent 65%);border-radius:20px}
.cube-world{position:absolute;left:50%;top:50%;transform-style:preserve-3d}
.solid-cube{position:absolute;width:28px;height:28px;transform-style:preserve-3d}
.cube-face{position:absolute;inset:0;border:1px solid #342650;backface-visibility:hidden;background:#b89aef}
.cube-face.front{transform:translateZ(14px);background:#a982de}.cube-face.back{transform:rotateY(180deg) translateZ(14px)}
.cube-face.left{transform:rotateY(-90deg) translateZ(14px);background:#8361bb}.cube-face.right{transform:rotateY(90deg) translateZ(14px);background:#9d77cf}
.cube-face.top{transform:rotateX(90deg) translateZ(14px);background:#e1cdff}.cube-face.bottom{transform:rotateX(-90deg) translateZ(14px);background:#62468f}
.cube-pause{display:block;margin:0 auto;min-height:44px}
.intro-details{margin:20px 0}.intro-details summary,.play-help summary,.standings summary,.group-progress summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:650}
.ready-dock{margin-top:24px}.quick-goal{font-size:1.15rem;line-height:1.5}.play-help{margin-top:24px;border-top:1px solid #ffffff18}.play-help[open]{display:flex;flex-wrap:wrap;gap:8px}.play-help summary{width:100%}
.group-progress{padding:0 12px;margin-bottom:12px}.group-progress p{margin:0}.group-seats{padding-bottom:12px}
@media(max-width:640px){
 body.in-match header{padding-top:12px;padding-bottom:12px;gap:8px}body.in-match header .brand{font-size:1.1rem}
 body.in-match .room-head{margin:12px 0;align-items:center}body.in-match .room-head .eyebrow,body.in-match .room-head .connection{display:none}
 body.in-match .room-head h1{font-size:1.35rem;margin:0}body.in-match .room-code{font-size:.8rem}
 body.in-match .stage-top{padding:12px 16px}body.in-match .stage-body{padding:16px}body.in-match .stage-body>h2{font-size:1.3rem;margin:12px 0 20px}
 body.in-match .clock-readout small{font-size:.65rem}body.in-match .timer{font-size:1rem;padding:8px 10px}
 body.in-match .next-game{display:none}body.in-match footer{margin-top:20px}body.in-match .answers .answer{min-height:56px}
 body.in-match .group-progress summary{font-size:.85rem}body.in-match .standings{padding:8px 16px}
}

body.in-match .feedback-invite{display:none}

@media(max-width:640px){body.in-match header{flex-direction:row;flex-wrap:nowrap}body.in-match header nav{width:auto;margin-left:auto}body.in-match header [data-manual-index]{display:none}body.in-match header select{min-height:40px;padding:8px}body.in-match .quiz-illustration{max-height:100px}body.in-match .cube-view{height:260px}}

.game-dp_cubes .strategy-form{background:transparent;padding:0;margin-top:12px}.game-dp_cubes .strategy-form fieldset{grid-template-columns:1fr 1fr;align-items:center}.game-dp_cubes .strategy-form label{grid-column:1/-1;margin:0}.game-dp_cubes .strategy-form input{margin:0;min-width:0}.game-dp_cubes .strategy-form button{margin:0;padding:10px}.game-dp_cubes .cube-view{height:225px}.game-dp_cubes .strategy-panel>p{font-size:.85rem}

.face-example{display:flex;gap:8px;align-items:start}.face-example figure{flex:1;min-width:0;margin:0;padding:6px;border:1px solid #ffffff20;border-radius:12px}.face-example .montage-face{width:100%;height:auto}.face-example figcaption{font-size:.7rem}.face-example figure:last-child{border-color:#72f1f5;color:#72f1f5}

/* Compact, touch-first party controls. */
.poll-choices{border:0;padding:0;margin:0 0 20px;min-width:0}.poll-choices legend{font-weight:750;margin-bottom:10px}.poll-choices>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.poll-choices label{position:relative;cursor:pointer;margin:0}.poll-choices input{position:absolute;opacity:0;width:1px;height:1px}.poll-choices span{display:flex;align-items:center;justify-content:center;min-height:52px;padding:8px;border:2px solid #526074;border-radius:12px;text-align:center}.poll-choices input:checked+span{border-color:#a9efcf;background:#24443b;color:#fff}.poll-choices input:focus-visible+span{outline:3px solid #fff;outline-offset:2px}
.order-picked{list-style:none;padding:0;display:grid;gap:6px;margin:12px 0}.order-picked li{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 10px;border:1px solid #526074;border-radius:10px}.order-picked li b{color:#a9efcf}.order-picked .empty{opacity:.55;border-style:dashed}.game-order .answers{grid-template-columns:1fr 1fr;gap:8px}.game-order .answer{min-height:54px;padding:10px;font-size:14px}.game-order .answer:disabled{display:none}.word-key{display:flex;justify-content:center;gap:10px;font-size:12px;margin:12px 0}.word-clues{margin-top:14px}.game-word .word-grid{gap:5px;margin:12px auto}.game-word .word-row{gap:5px}.game-word .letter{width:42px;height:42px;font-size:22px}.game-word .letter-tracker .letter{width:26px;height:30px;font-size:14px}
#poll-form{padding:0;border:0;background:transparent;display:block;margin:12px 0}#poll-form .poll-choices label{padding:0;display:block;font-size:14px;line-height:1.3}#poll-form .poll-choices{margin:0 0 16px;padding:0}#poll-form .poll-choices span{min-height:48px;padding:6px}#poll-form button{margin:0}.game-order .order-picked li{min-height:38px;padding:5px 10px}.game-order .stage-body>h2,.game-poll .stage-body>h2,.game-word .stage-body>h2{font-size:20px;margin:14px 0}.game-order [data-order-submit]{width:100%;margin-top:8px}

.sortable-order li{min-height:68px!important;background:#202d48;position:relative;gap:10px!important}.sortable-order li>span{flex:1}.order-handle{touch-action:none;cursor:grab;font-size:28px!important;min-width:44px;padding:6px!important}.order-up{padding:6px!important;min-width:36px}.sortable-order .dragging{z-index:2;box-shadow:0 12px 24px #0008;outline:2px solid #81eddf}.sortable-order .drop-target:not(.dragging){border:2px dashed #81eddf}.game-flags .flag{display:block;width:100%;max-width:270px;height:155px;object-fit:contain;margin:16px auto}.game-truth .answers{grid-template-columns:1fr 1fr}.game-truth .answer{justify-content:center;min-height:100px;font-size:22px}.game-truth .answer b{display:none}.game-flags .answer{min-height:56px}.game-truth .stage-body>h2{font-size:24px;line-height:1.4;margin:28px 0}

.game-maps .round-media{height:190px;width:100%;object-fit:contain;margin:12px auto}.game-maps .stage-body>h2,.game-clues .stage-body>h2,.game-tv_clues .stage-body>h2{font-size:21px;margin:16px 0}.clue-progress{font-size:13px;color:#a9efcf;margin:10px 0}.game-clues .clues,.game-tv_clues .clues{padding:0;list-style:none;counter-reset:hint;margin:10px 0 18px;display:grid;gap:8px}.game-clues .clues li,.game-tv_clues .clues li{counter-increment:hint;border-left:3px solid #81eddf;background:#202d48;border-radius:8px;padding:10px 12px;font-size:15px;line-height:1.4;margin:0}.clues li:before{content:counter(hint) ' · ';font-weight:700;color:#a9efcf}.game-maps .answer,.game-clues .answer,.game-tv_clues .answer{min-height:54px;padding:10px 12px}

.game-game_clues .stage-body>h2,.game-song_clues .stage-body>h2,.game-quotes .stage-body>h2{font-size:21px;margin:18px 0;line-height:1.45}.game-game_clues .clues,.game-song_clues .clues{padding:0;list-style:none;counter-reset:hint;margin:10px 0 18px;display:grid;gap:8px}.game-game_clues .clues li,.game-song_clues .clues li{counter-increment:hint;border-left:3px solid #81eddf;background:#202d48;border-radius:8px;padding:10px 12px;font-size:15px;line-height:1.4;margin:0}.game-game_clues .answer,.game-song_clues .answer,.game-quotes .answer{min-height:56px;padding:10px 12px}

.quote-card{background:#202d48;border-radius:14px;padding:16px;margin:16px 0}.quote-card blockquote{margin:10px 0;font-size:24px;line-height:1.4;font-weight:650;color:#b9ffdb}

.game-frames .round-media,.game-barcode .round-media{display:block;width:100%;height:190px;object-fit:contain;margin:12px auto;background:#080e20;border-radius:12px}.game-barcode .round-media{height:165px}.game-frames .stage-body>h2,.game-barcode .stage-body>h2,.game-songs .stage-body>h2{font-size:21px;line-height:1.4;margin:16px 0}.game-frames .answer,.game-barcode .answer,.game-songs .answer{min-height:54px;padding:10px 12px}.compact-audio{padding:12px!important;margin:14px 0!important}.compact-audio .music-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.compact-audio .music-play{min-height:52px;flex:1}.compact-audio .audio-clock{font-size:13px}.compact-audio .audio-seek{width:100%;margin:14px 0 0}.compact-audio .micro{font-size:12px;margin:8px 0}.media-inspector{max-height:65vh;overflow:auto;overscroll-behavior:contain}.media-inspector img{display:block;width:100%;height:auto;max-width:none}.media-inspector.zoomed img{width:180%;max-width:none}

.media-open{display:block;padding:0;width:100%;border:0;background:transparent;color:inherit;margin:8px 0 16px}.media-open .round-media{margin:0}.media-open>span{display:block;text-align:right;font-size:12px;padding:5px}.compact-audio .music-controls{display:grid;grid-template-columns:1fr 1fr;gap:8px}.compact-audio .music-play{width:auto;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px}.compact-audio .play-label{white-space:nowrap}.compact-audio .audio-clock{grid-column:1/-1;text-align:right}

.game-settings-card{border:1px solid #454b70;border-radius:14px;margin:12px 0;background:#141d35}.game-settings-card summary{padding:16px;font-weight:700;cursor:pointer}.game-settings-card summary span{font-size:.8rem;color:#adbef0;margin-left:8px}.game-settings-body{padding:0 16px 16px}.game-settings-body select{width:100%;max-width:100%;min-height:46px}.game-settings-body .chips{margin-top:12px}.game-settings-body .chip{white-space:normal;text-align:left;min-height:44px}

.rectangle-board{width:100%;max-width:360px;margin:18px auto;gap:3px!important;padding:5px;background:#7e90bb;border-radius:12px}.rectangle-board .strategy-cell{min-width:0;min-height:42px;aspect-ratio:1;background:#182540;font-size:clamp(18px,5vw,26px);color:#fff;border-radius:4px}.rectangle-board .blank-cell{color:#9facc4;background:#202c44}.strategy-panel[data-kind="rectangles"] .strategy-target{font-size:24px;font-weight:800;color:#73edff}

.rectangle-scores{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;font-size:13px}.rectangle-scores span{padding:6px 10px;border-radius:8px;background:#26324d}.rectangle-heading{display:flex;align-items:center;justify-content:space-between;margin-top:16px;gap:10px}.rectangle-heading>span:last-child{font-size:12px}.rectangle-board{max-width:280px;margin:12px auto}.strategy-panel[data-kind="rectangles"]>p{font-size:14px;margin:12px 0}

/* Cooperative word and memory games: full-width mobile boards and short summaries. */
.memory-scene.scene-portrait{min-width:0;width:100%;max-width:400px;height:auto;margin:12px auto;display:block;border-radius:14px}
.scene-study-head,.tower-heading,.tower-progress{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.scene-study-head{padding:10px 12px;background:var(--panel,#172b36);border-radius:10px}.tower-heading h3{margin:0}.tower-progress{font-size:.85rem;margin:12px 0}.tower-letters{justify-content:flex-start;gap:6px;margin-bottom:18px}.tower-letters b{min-width:38px;padding:7px;font-size:1.15rem}.tower-letters small{font-size:.7rem}.tower-form{display:flex;flex-direction:column;align-items:stretch;gap:8px}.tower-form input{width:100%;text-transform:uppercase}.tower-form .micro{margin:0}.tower-team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.tower-person{padding:10px;border:1px solid #41505c;border-radius:10px;min-width:0}.tower-person span{display:block;font-size:.75rem;overflow-wrap:anywhere}.tower-person strong{display:block;font-size:.9rem;margin-top:5px;overflow-wrap:anywhere}.tower-person.built{border-color:#69bda2;background:#18352f}.tower-help{margin-top:16px}.tower-help summary{min-height:44px;cursor:pointer}

.game-dp_scene .stage-top .clock-readout,.game-dp_word_tower .stage-top .clock-readout{display:none}
/* Mobile card tables: clear turn, private hand and deliberate confirmation. */
.card-game-status,.match-stacks{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0}
.card-game-status{padding:12px;border-radius:12px;background:#eaf6f3;color:#163c35}
.card-game-status span,.match-stacks span{font-size:.9rem}
.match-stacks span{padding:8px 10px;border:1px solid #cbd8d4;border-radius:10px}
.comparison-cards,.choice-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}
.comparison-cards>div{display:grid;gap:8px;text-align:center;padding:14px 8px;border:1px solid #cbd8d4;border-radius:14px;background:#fff;color:#173c35}
.comparison-cards b{font-size:2.6rem}.comparison-cards small{overflow-wrap:anywhere}
.card-pick-form fieldset{border:0;padding:0;margin:0;min-width:0}.card-pick-form legend{font-weight:700;margin:10px 0}
.number-card-picker{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.number-card-picker label,.choice-radio{position:relative;display:block;cursor:pointer;margin:0}
.number-card-picker input,.choice-radio input{position:absolute;opacity:0;width:1px;height:1px}
.number-card-picker span,.choice-radio span{display:grid;place-items:center;min-height:48px;border:2px solid #b9cbc6;border-radius:10px;background:white;color:#173c35;padding:8px;text-align:center}
.number-card-picker span{font-size:1.4rem;font-weight:800}
.number-card-picker input:checked+span,.choice-radio input:checked+span{background:#173c35;color:#fff;border-color:#173c35}
.number-card-picker input:focus-visible+span,.choice-radio input:focus-visible+span{outline:3px solid #d18521;outline-offset:2px}
.card-secondary,.stake-details{margin:12px 0;padding:10px 12px;border:1px solid #cbd8d4;border-radius:12px}
.card-secondary summary,.stake-details summary{min-height:28px;cursor:pointer;font-weight:650}
.colour-hand{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.colour-card{display:grid;place-items:center;min-height:50px;padding:8px;border:2px solid currentColor;border-radius:9px;font-size:.85rem;font-weight:750;background:#fff}
.colour-red{color:#a51e36}.colour-yellow{color:#785800}.colour-blue{color:#154fa3}.colour-green{color:#1d6841}.colour-purple{color:#7836a0}.colour-rainbow{color:#3b4051;background:linear-gradient(120deg,#ffeded,#fff6cf,#e1f6ff)}
.claim-card,.result-note,.round-result-card{display:grid;gap:6px;padding:14px;border-radius:12px;background:#f2f5f4;margin:12px 0;color:#173c35}
.claim-card strong{font-size:1.3rem}.claim-card span{font-size:.9rem}
.card-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.card-fields label{min-width:0}.card-fields input,.card-fields select{width:100%;min-width:0}
.turn-notice{font-weight:650}.compact-card-form h4{margin:8px 0}
/* Each game owns a stable emblem, from the catalogue to its room and rules. */
.game-emblem{width:48px;height:48px;object-fit:contain;flex:0 0 auto;vertical-align:middle;display:inline-block}
.game-art .game-emblem{width:88px;height:88px;position:relative;z-index:1;filter:drop-shadow(0 4px 12px #0006)}
.game-art:has(.game-emblem):before,.game-art:has(.game-emblem):after{display:none}
.pick-icon:has(.game-emblem){background:#10182d;border:1px solid #59617b;border-radius:12px;width:52px;height:52px;display:grid;place-items:center}
.pick-icon .game-emblem{width:42px;height:42px}
.game-heading{display:flex;align-items:center;gap:12px}.game-heading span{min-width:0;overflow-wrap:anywhere}
.game-local-name{font-size:.85rem!important;color:#c8c1dd!important;margin-top:-6px!important}
.game-settings-card>summary:has(.game-emblem){display:flex;align-items:center;gap:10px}
.game-settings-card>summary .game-emblem{width:32px;height:32px}.game-setting-title{flex:1;min-width:0}
.manual-entry:has(.game-emblem){display:flex;align-items:center;gap:10px}.manual-entry>span{flex:1;text-align:left}.manual-entry .game-emblem{width:36px;height:36px}
.manual-emblem{text-align:center}.manual-emblem .game-emblem{width:80px;height:80px}
.result-history .game-emblem{width:28px;height:28px;margin-right:8px}
@media(max-width:380px){.game-heading{gap:8px}.game-heading .game-emblem{width:38px;height:38px}.game-settings-card>summary{flex-wrap:wrap}}
.game-intro{max-width:620px;margin:24px auto}.game-intro .intro-actions{display:grid;gap:10px;margin:24px 0}.game-intro .chips{gap:6px}.game-intro .chip{font-size:.8rem}.auto-next{padding:14px 18px;border:1px solid #56788b;border-radius:12px;background:#122a3c;color:#a0f9ff;font-weight:650;text-align:center}.auto-advancing [data-strategy-op="ready"]{display:none}
/* Keep the countdown in the document flow and pinned above long game content. */
body.in-match .stage{overflow:visible}
body.in-match .stage-top{position:sticky;top:0;z-index:20;border-radius:16px 16px 0 0;box-shadow:0 5px 14px #0004;padding-top:max(12px,env(safe-area-inset-top))}
body.in-match .stage-top .clock-readout{display:flex;align-items:center;gap:8px}
@media(max-width:640px){
 .game-intro{margin:12px auto}.game-intro .game-heading{font-size:1.5rem}
 body.in-match .stage-top{gap:8px;padding-inline:12px}
 body.in-match .stage-top .clock-readout small{display:none}
 body.in-match .stage-top .eyebrow{margin:0}
 .game-card .game-copy>p:not(.game-local-name):not(.eyebrow):not(.micro){display:none}
 .game-card .game-copy>details{display:none}
 .game-card .game-copy{padding:16px}.game-card .game-copy h3{margin:6px 0 12px}
}

/* A viewport-level clock survives scrolling beyond the game panel. */
/* A reserved top rail: gameplay scrolls below it, never underneath it. */
.match-clock{position:fixed;inset:0 0 auto;height:calc(44px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);z-index:90;display:flex;align-items:center;justify-content:center;background:#090d20;border-bottom:1px solid #353655;color:#a0f9ff;pointer-events:none;user-select:none}
.match-clock[hidden]{display:none}.match-clock strong{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums;font-size:1rem;line-height:1.3;white-space:nowrap;padding:4px 14px;background:#142139;border:1px solid #426176;border-radius:9px}
body.has-visible-clock{overflow:hidden}
body.has-visible-clock .site-shell{position:fixed;inset:calc(44px + env(safe-area-inset-top)) 0 0;height:auto;overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-top:16px;padding-bottom:max(20px,env(safe-area-inset-bottom))}
body.has-match-clock .stage-top{position:static;box-shadow:none}
body.has-match-clock .stage-top .clock-readout{display:none}

.room-split{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;border:1px solid #446375;border-radius:12px;margin-top:12px}.room-split p{flex-basis:100%;margin:0}.room-split span{flex:1;padding:8px;background:#1c3042;border-radius:8px}.poll-outcome-label{display:block;font-size:.85rem;font-weight:400;line-height:1.4;margin-bottom:8px}

.game-poll .poll-results{margin:10px 0}.game-poll .poll-results p{padding:7px 10px;margin:4px 0;font-size:.85rem;line-height:1.3}.game-poll .poll-results .micro{padding:0;background:none}.game-poll .result{padding:16px;margin-top:14px}.game-poll .result .solution{font-size:1.35rem;line-height:1.35}

.clue-stakes{padding:10px 12px;border:1px solid #5b91a8;border-radius:10px;line-height:1.5;font-size:.85rem}.clue-stakes strong{color:#a0f9ff}.clue-recap{padding:12px;background:#1c3042;border-radius:12px}.clue-recap p{margin:6px 0}.clue-review{margin:14px 0}.game-clues .result .solution,.game-tv_clues .result .solution,.game-game_clues .result .solution,.game-song_clues .result .solution{font-size:1.45rem;line-height:1.4}

.word-progress{display:flex;gap:6px;overflow-x:auto;padding:4px 0 8px}.word-progress>span{flex:1 0 80px;max-width:140px;background:#1c3042;border:1px solid #526074;border-radius:10px;padding:8px;font-size:.8rem}.word-progress b,.word-progress small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.word-progress small{margin-top:4px}.word-progress .solved{border-color:#91e4b2;color:#b5f3c8}.flag-recap{padding:10px;background:#1c3042;border-radius:12px}.flag-recap p{margin:6px 0}.game-word .word-grid[aria-label]{margin:10px auto}.game-word .word-row .letter{width:38px;height:38px;font-size:20px}

.game-maps .map-open{width:100%;margin:12px 0}.game-maps .map-open .round-media{display:block;max-height:210px;min-height:150px;width:100%;object-fit:contain;margin:0;padding:12px}.recognition-recap{padding:10px 12px;background:#1c3042;border-radius:12px}.recognition-recap p{margin:6px 0}.quote-recap{margin:16px 0;font-size:1.2rem;line-height:1.5}.source-details{margin:14px 0;font-size:.8rem}.game-maps .result .solution,.game-quotes .result .solution{font-size:1.4rem;line-height:1.4}
.game-maps .map-open .round-media{background:#101d31;border:1px solid #526074}
.tabletop h3{margin:8px 0;font-size:1.3rem}
.tabletop .pick-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.tabletop .pick-cards button{min-height:68px;font-size:1.65rem;font-weight:800;border:2px solid #53617b;background:#1b2941;color:#fff;border-radius:12px}
.tabletop .pick-cards button small{display:block;font-size:.7rem}
.tabletop .pick-cards button.selected,.tabletop .strategy-cell.selected{border-color:#c9f46a;background:#33492b;box-shadow:inset 0 0 0 2px #c9f46a}
.tabletop .pick-cards button:disabled:not(.selected){opacity:.35}
.tabletop .pair-choice{grid-template-columns:repeat(2,minmax(0,1fr))}
.tabletop .pair-players{display:grid;gap:5px;margin:12px 0}
.tabletop .pair-players>div{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;gap:8px;padding:7px 10px;border-radius:7px;background:#1b2941;font-size:.85rem}
.tabletop .pair-players span{overflow-wrap:anywhere}
.tabletop .table-modes{display:flex;gap:8px;margin:12px 0}
.tabletop .table-modes button{flex:1;min-height:44px;font-size:.85rem;background:#1b2941;color:#fff;border:1px solid #53617b;border-radius:9px;padding:8px}
.tabletop .table-modes button:disabled{opacity:.4}
.tabletop .table-modes [aria-pressed=true]{border-color:#c9f46a;color:#c9f46a}
.tabletop .strategy-cell.legal-target{border:2px dashed #c9f46a;background:#273f37}
.tabletop .strategy-cell{min-height:58px}
.tabletop details{margin:12px 0;font-size:.85rem}
.tabletop [data-table-status]{min-height:2.5em}
.reveal-picks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.reveal-picks>div{display:grid;gap:6px;padding:9px 4px;background:#1b2941;color:#fff;border:2px solid transparent;border-radius:10px;text-align:center}
.reveal-picks .winner{border-color:#c9f46a}
.reveal-picks b{font-size:1.7rem}
.reveal-picks small{overflow-wrap:anywhere}

.duel-panel h3{margin:10px 0;font-size:1.25rem}.duel-panel .micro{min-height:2.5em}.duel-panel details{margin:14px 0;font-size:.85rem}.duel-panel>.primary{margin:8px 0}.duel-scores{display:flex;justify-content:space-between;gap:12px}.duel-scores span,.duel-board-status{display:grid;gap:4px}.duel-scores small,.duel-board-status small{font-size:.78rem;color:#c6cada}.duel-board-status{margin:12px 0}.duel-board{position:relative;width:100%;aspect-ratio:1;margin:10px auto 18px;background:#101d31;border-radius:14px}.duel-board>svg{position:absolute;width:100%;height:100%;inset:0;fill:none;stroke:#7794ac;stroke-width:.8;pointer-events:none}.duel-point{position:absolute;transform:translate(-50%,-50%);width:32px;height:32px;min-height:0;padding:0;border:2px solid #6a7892;border-radius:50%;background:#192b42;color:#fff;font-size:24px;line-height:1;display:grid;place-items:center}.bagh-touch .duel-point{width:40px;height:40px;font-size:24px}.duel-point:disabled{opacity:1;cursor:default}.duel-point.own{color:#66efff}.duel-point.legal-target{border-color:#c9f46a;box-shadow:0 0 0 1px #c9f46a}.duel-point.selected{background:#426043;border-color:white;box-shadow:0 0 0 3px #c9f46a}.duel-point:focus-visible{outline:3px solid #fff;outline-offset:3px}
.morris-touch .point-0{left:8%;top:8%}
.morris-touch .point-1{left:50%;top:8%}
.morris-touch .point-2{left:92%;top:8%}
.morris-touch .point-3{left:92%;top:50%}
.morris-touch .point-4{left:92%;top:92%}
.morris-touch .point-5{left:50%;top:92%}
.morris-touch .point-6{left:8%;top:92%}
.morris-touch .point-7{left:8%;top:50%}
.morris-touch .point-8{left:22%;top:22%}
.morris-touch .point-9{left:50%;top:22%}
.morris-touch .point-10{left:78%;top:22%}
.morris-touch .point-11{left:78%;top:50%}
.morris-touch .point-12{left:78%;top:78%}
.morris-touch .point-13{left:50%;top:78%}
.morris-touch .point-14{left:22%;top:78%}
.morris-touch .point-15{left:22%;top:50%}
.morris-touch .point-16{left:36%;top:36%}
.morris-touch .point-17{left:50%;top:36%}
.morris-touch .point-18{left:64%;top:36%}
.morris-touch .point-19{left:64%;top:50%}
.morris-touch .point-20{left:64%;top:64%}
.morris-touch .point-21{left:50%;top:64%}
.morris-touch .point-22{left:36%;top:64%}
.morris-touch .point-23{left:36%;top:50%}
.bagh-touch .point-0{left:10%;top:10%}
.bagh-touch .point-1{left:30%;top:10%}
.bagh-touch .point-2{left:50%;top:10%}
.bagh-touch .point-3{left:70%;top:10%}
.bagh-touch .point-4{left:90%;top:10%}
.bagh-touch .point-5{left:10%;top:30%}
.bagh-touch .point-6{left:30%;top:30%}
.bagh-touch .point-7{left:50%;top:30%}
.bagh-touch .point-8{left:70%;top:30%}
.bagh-touch .point-9{left:90%;top:30%}
.bagh-touch .point-10{left:10%;top:50%}
.bagh-touch .point-11{left:30%;top:50%}
.bagh-touch .point-12{left:50%;top:50%}
.bagh-touch .point-13{left:70%;top:50%}
.bagh-touch .point-14{left:90%;top:50%}
.bagh-touch .point-15{left:10%;top:70%}
.bagh-touch .point-16{left:30%;top:70%}
.bagh-touch .point-17{left:50%;top:70%}
.bagh-touch .point-18{left:70%;top:70%}
.bagh-touch .point-19{left:90%;top:70%}
.bagh-touch .point-20{left:10%;top:90%}
.bagh-touch .point-21{left:30%;top:90%}
.bagh-touch .point-22{left:50%;top:90%}
.bagh-touch .point-23{left:70%;top:90%}
.bagh-touch .point-24{left:90%;top:90%}

.cube-controls{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.cube-controls .cube-pause{margin:0}.cube-controls button{font-size:.8rem;padding:8px 12px;min-height:44px}.cube-view:active{cursor:grabbing}.cube-view:focus-visible{outline:2px solid #73edff;outline-offset:2px}
.rectangle-board.cols-6 .strategy-cell{min-height:30px;font-size:clamp(16px,4.8vw,24px)}

[data-kind="knight"] .strategy-board{gap:3px;background:#090f22;padding:3px;border-radius:10px}[data-kind="knight"] .strategy-cell{padding:0;border-radius:4px;background:#20334d}[data-kind="knight"] .strategy-cell.dark-square{background:#141d32}[data-kind="knight"] .strategy-cell span{font-size:clamp(11px,3.4vw,18px)}[data-kind="knight"] .strategy-cell.own{background:#654691;border-color:#d8c2ff;opacity:1}[data-kind="knight"] .strategy-cell.own span{font-size:24px}[data-kind="knight"] .strategy-cell.reachable{border-color:#75dbe8;box-shadow:inset 0 0 0 1px #75dbe8}

.hex-touch,.wall-touch{width:100%;height:100%;min-height:0;padding:0;border:2px solid transparent;background:transparent;border-radius:8px;cursor:pointer}
.hex-touch[aria-pressed="true"]{border-color:#c4f56b;background:#c4f56b33}
.hex-touch:focus-visible,.wall-touch:focus-visible{outline:3px solid #c4f56b;outline-offset:-4px}

.pyramid-touch{width:100%;height:100%;min-height:0;padding:2px 5px;border:3px solid transparent;background:transparent;border-radius:9px;cursor:pointer;text-align:right;display:flex;align-items:flex-start;justify-content:flex-end;font-size:12px;font-weight:800;color:#c4f56b}
.pyramid-touch[aria-pressed="true"]{border-color:#c4f56b;background:#c4f56b22}
.pyramid-touch:focus-visible{outline:3px solid white;outline-offset:-6px}

[data-kind="pyramid"] .strategy-form{padding:12px;gap:10px}
[data-kind="pyramid"] #pyramid-answer{padding:10px;min-height:40px}

.secret-clues{margin-top:16px}.secret-clue{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #ffffff22}.secret-clue small{display:block;color:#bdc6e2;margin-top:4px}.secret-clue strong{font-size:1.4rem;color:#c4f56b}

/* Shared mobile and desktop experience */
.play-home{
  gap:48px;
  align-items:start;
  padding-block:36px
}
.play-home h1{
  font-size:clamp(30px,4vw,54px);
  letter-spacing:-1.5px;
  line-height:1.12;
  margin:8px 0 16px
}
.play-home .eyebrow{
  margin-bottom:8px
}
.play-home .lead{
  max-width:520px;
  margin-bottom:20px
}
.home-paths{
  display:grid;
  gap:10px
}
.home-path{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  border:1px solid #53617b;
  border-radius:14px;
  padding:16px;
  background:#141d32;
  color:#fff;
  min-height:58px
}
.home-path strong{
  font-size:1rem
}
.home-path small{
  color:#c1c9dc
}
.home-path.selected{
  border-color:#62e9f8;
  background:#173440;
  box-shadow:inset 3px 0 #62e9f8
}
.public-entry{
  margin-top:10px
}
.home-extras{
  margin:0 0 32px;
  border-bottom:1px solid #ffffff25;
  padding:16px 0
}
.home-extras summary{
  cursor:pointer;
  padding:10px 0
}
.play-home .entry-panel{
  box-shadow:none
}
.play-home .entry-panel h2{
  font-size:1.35rem;
  margin-top:0
}
.entry-panel input,.entry-panel select{
  min-height:48px
}
.invite-strip{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  padding:12px 0;
  border-block:1px solid #ffffff25;
  margin-bottom:16px
}
.invite-strip>span{
  margin-right:auto
}
.invite-strip .room-code{
  font-size:1.25rem;
  letter-spacing:2px
}
.invite-strip summary{
  cursor:pointer;
  padding:12px
}
.invite-strip .qr{
  display:block;
  width:120px;
  height:120px;
  margin:8px
}
.lobby-steps{
  display:flex;
  gap:14px;
  list-style:none;
  padding:0;
  margin:20px 0;
  color:#8aeeec;
  font-size:.85rem
}
.lobby-steps li{
  flex:1
}
.shared-pick{
  padding:12px 0;
  border-bottom:1px solid #ffffff20
}
.shared-pick:last-child{
  border:0
}
.shared-pick>div{
  display:flex;
  gap:8px;
  justify-content:space-between
}
.shared-pick small{
  color:#8aeeec
}
.shared-pick p{
  font-size:.85rem;
  line-height:1.5;
  margin:5px 0;
  color:#c4ccdf
}
.lobby-roster summary{
  cursor:pointer;
  padding:6px 0
}
.lobby-layout aside .shared-picks{
  order:-1
}
.lobby-layout .box{
  box-shadow:none
}
.lobby-launch .primary{
  margin-top:12px
}
.group-progress{
  margin:0 0 12px
}
.group-seats{
  display:flex;
  gap:6px;
  overflow-x:auto;
  padding:6px 0
}
.group-seat{
  flex:0 0 auto;
  padding:6px 9px!important;
  font-size:.75rem!important
}
.group-seat small{
  display:block
}
.stage-game-name{
  color:#e3e9f7
}
.shared-result{
  padding:18px;
  background:linear-gradient(130deg,#183444,#252039);
  border:1px solid #5dbdc7;
  border-radius:16px;
  margin-bottom:18px;
  text-align:left
}
.shared-result h2{
  font-size:1.45rem!important;
  margin:6px 0 16px!important
}
.shared-result h3{
  font-size:1rem
}
.score-changes{
  list-style:none;
  padding:0;
  margin:12px 0
}
.score-changes li{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 6px;
  border-bottom:1px solid #ffffff20;
  animation:score-in .35s ease-out
}
.score-changes small{
  display:block;
  font-size:.72rem;
  color:#bacbd9;
  margin-top:4px
}
.score-changes .is-you{
  background:#62e9f80c
}
.score-total{
  text-align:right;
  font-weight:750;
  font-variant-numeric:tabular-nums
}
.word-entry{
  margin:12px auto 0;
  max-width:520px
}
.word-keyboard{
  display:grid;
  gap:6px
}
.keyboard-row{
  display:flex;
  gap:4px;
  justify-content:center
}
.keyboard-row button{
  min-width:0;
  flex:1;
  max-width:48px;
  min-height:48px;
  padding:4px 0;
  border:1px solid #66748e;
  border-radius:7px;
  background:#344158;
  color:#fff;
  font:inherit;
  font-size:.85rem;
  font-weight:750;
  touch-action:manipulation
}
.keyboard-row .key-wide{
  flex:1.8;
  max-width:76px;
  font-size:.7rem
}
.keyboard-row .correct{
  background:#27684e;
  border-color:#7bd8a8
}
.keyboard-row .present{
  background:#785d1d;
  border-color:#f0ce74
}
.keyboard-row .absent{
  background:#171e2c;
  color:#8e9aaa;
  border-color:#333f53
}
.word-goal{
  font-size:.85rem;
  margin:6px 0 12px;
  color:#ced8e8
}
.word-entry-status{
  font-size:.7rem;
  margin:5px 0;
  color:#a9bbd0
}
.word-row .filled{
  border-color:#72e8ef
}
.word-key{
  font-size:.7rem;
  gap:10px
}
.word-key span:nth-child(1){
  color:#89d5aa
}
.word-key span:nth-child(2){
  color:#efd284
}
.word-key span:nth-child(3){
  color:#a6afbd
}
.game-word .stage-body{
  padding:16px
}
.game-word .word-progress{
  margin:0
}
.game-word .word-row .letter{
  width:42px;
  height:42px
}
.game-word .word-grid{
  gap:5px
}
.game-word .play-help{
  margin-top:12px
}
.stage-game-name{
  display:inline
}
.in-match .stage-top{
  padding:12px 16px
}
.in-match .stage-top .eyebrow{
  letter-spacing:.06em
}
.in-match .round-info{
  display:none
}
@keyframes score-in{
  from{
  opacity:0;
  transform:translateY(8px)
}
to{
  opacity:1;
  transform:translateY(0)
}

}
@media(prefers-reduced-motion:reduce){
  .score-changes li{
  animation:none
}

}
@media(min-width:701px){
  .lobby-layout aside{
  position:sticky;
  top:16px;
  align-self:start
}
.in-match .room-grid>aside{
  position:sticky;
  top:16px;
  align-self:start
}
.in-match .standings{
  display:block
}
.play-home .entry-panel{
  position:sticky;
  top:20px
}

}
@media(max-width:700px){
  .play-home{
  gap:20px;
  padding:22px 0
}
.play-home h1{
  font-size:32px;
  letter-spacing:-1px
}
.play-home .lead{
  font-size:14px;
  line-height:1.5;
  margin:8px 0 16px
}
.play-home .eyebrow{
  display:none
}
.home-path{
  padding:12px;
  min-height:52px
}
.home-path small{
  font-size:.72rem
}
.play-home .entry-panel{
  padding:18px
}
.lobby-steps{
  gap:6px;
  font-size:.72rem
}
.lobby-layout aside{
  display:contents
}
.lobby-layout{
  display:flex;
  flex-direction:column
}
.lobby-layout .shared-picks{
  order:-1;
  margin-bottom:12px
}
.lobby-layout .shared-pick{
  padding:8px 0
}
.room-head h1{
  font-size:24px
}
.room-head{
  margin:18px 0
}
.room-head .subtle{
  font-size:.85rem
}
.invite-strip{
  gap:6px
}
.invite-strip .secondary{
  padding:10px
}
.invite-strip summary{
  font-size:.8rem;
  padding:8px
}
.game-word .word-row .letter{
  width:38px;
  height:38px
}
.keyboard-row button{
  min-height:46px
}
.group-seats{
  max-width:100%
}
.in-match .room-head{
  margin:10px 0
}
.in-match .room-head h1{
  font-size:18px
}
.in-match .room-head .eyebrow,.in-match .room-head>div:last-child{
  display:none
}
.in-match .stage-body{
  padding:14px 12px
}
.shared-result{
  padding:14px
}
.score-changes li{
  gap:6px;
  font-size:.85rem
}
.stage-body>h2{
  font-size:1.3rem
}
.home-extras{
  margin-bottom:20px
}
.home-extras .community-actions{
  display:flex;
  flex-direction:column
}

}


/* Keep secondary navigation from taking the first phone screen. */
@media(max-width:700px){
  body:not(.in-match) header{
  flex-direction:row;
  flex-wrap:nowrap;
  min-height:70px;
  height:70px;
  padding-block:10px;
  gap:12px
}
body:not(.in-match) header nav{
  width:auto;
  margin-left:auto
}
body:not(.in-match) header [data-manual-index],body:not(.in-match) header #library-link{
  display:none
}
body:not(.in-match) header select{
  min-height:44px;
  padding:8px
}
.public-lobby summary,.reward-summary summary{
  cursor:pointer;
  min-height:44px;
  padding:10px 0
}
.lobby-layout .public-lobby{
  order:3
}
.play-home .entry-panel{
  scroll-margin-top:12px
}

}


.word-entry-status.entry-error{
  color:#ffd0b5;
  min-height:20px
}
.lobby-disclosure#lobby-games{
  margin-top:18px
}
.public-lobby summary,.reward-summary summary{
  cursor:pointer;
  padding:10px 0;
  min-height:44px
}

/* The stage already names the game; avoid a duplicate heading on phones. */
@media(max-width:700px){
 body.in-match .room-head{display:none}
 body.in-match header{height:56px;min-height:56px;padding-block:6px}
 body.in-match .stage{margin-top:10px}
}

/* Tried letters are always visible, including while waiting after a solve. */
.tried-letters{margin:10px 0;text-align:left}
.tried-label{display:block;font-size:.72rem;color:#c4ccdf;margin-bottom:5px}
.tried-letters>div{display:flex;flex-wrap:wrap;gap:4px}
.tried-letter{display:inline-grid;place-items:center;width:25px;height:28px;border:1px solid #66748e;border-radius:5px;font-size:.8rem;font-weight:750}
.tried-letter.correct{background:#27684e;border-color:#7bd8a8;color:#fff}
.tried-letter.present{background:#785d1d;border-color:#f0ce74;color:#fff}
.tried-letter.absent{background:#171e2c;border-color:#53617b;color:#bec8d6}
.tried-empty{font-size:.72rem;color:#a9bbd0}

/* Lobby shell: content scrolls in its own row; actions never overlap it. */
body.in-lobby{overflow:hidden}
body.in-lobby .site-shell{height:100dvh;display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
body.in-lobby header{flex:none;height:76px;min-height:76px}
body.in-lobby #app{flex:1;min-height:0;display:flex;flex-direction:column}
body.in-lobby footer,body.in-lobby .feedback-invite{display:none}
.lobby-app{flex:1;min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}
.lobby-top{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 0}
.lobby-top h1{font-size:1.6rem;margin:0 0 5px;letter-spacing:-.5px}
.lobby-top>div>span{font-size:.8rem;color:#b5c3d9}
.lobby-top .room-code{font-size:.85rem;letter-spacing:2px}
.lobby-top button{min-height:44px}
.lobby-nav{display:flex;gap:6px;padding:5px;background:#111a2e;border:1px solid #34425e;border-radius:14px;margin-bottom:14px}
.lobby-nav button{flex:1;border:0;border-radius:10px;background:transparent;color:#b8c6db;min-height:46px;padding:8px;font:inherit;font-weight:700}
.lobby-nav button[aria-pressed=true]{background:#274052;color:#adf7fa;box-shadow:0 1px 6px #0004}
.lobby-nav button span{display:inline-block;font-size:.75rem;padding:2px 6px;margin-left:4px;background:#ffffff14;border-radius:12px}
.lobby-workspace{min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-padding:12px;padding:0 2px 18px;display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-content:start;align-items:start}
.lobby-pane{min-width:0}
.lobby-pane[hidden]{display:none!important}
.lobby-pane-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 16px}
.lobby-pane-title h2{font-size:1.2rem;margin:0}
.lobby-pane-title p{font-size:.85rem;color:#b4c3d8;margin:6px 0 0}
.selected-game-list{display:grid;gap:10px}
.selected-game-item{position:relative;border:1px solid #425471;border-radius:13px;background:#172237}
.selected-game-item .game-settings-card{margin:0;border:0;background:transparent}
.selected-game-item .game-settings-card summary{padding-right:48px;min-height:66px}
.selected-game-item .game-settings-card summary .game-setting-title{font-size:1rem}
.selected-game-item .remove-pick{position:absolute;right:6px;top:10px;width:40px;height:44px;padding:0;border:0;background:transparent;color:#aabbd0;font-size:1.5rem}
.lobby-app #lobby-games{margin-top:16px;border:1px dashed #60738d;border-radius:13px;padding:0 14px}
.lobby-app #lobby-games>summary{min-height:50px;padding:15px 0;color:#97eff4;cursor:pointer;font-weight:700}
.lobby-app .game-filters{padding:12px;margin-bottom:12px}
.lobby-app .game-filter-note{display:none}
.lobby-app .pick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
.lobby-app .shared-picks{padding:16px;margin:0 0 14px;box-shadow:none}
.lobby-app .shared-picks h2{font-size:1.1rem;margin:0 0 8px}
.lobby-app .shared-pick>div{align-items:center}
.lobby-app .shared-pick p{font-size:.85rem}
.lobby-desktop-group{position:sticky;top:0}
.lobby-workspace[data-view=group],.lobby-workspace[data-view=settings]{grid-template-columns:1fr}
.lobby-workspace:not([data-view=games]) .lobby-desktop-group{display:none}
#lobby-panel-group .shared-picks{max-width:800px}
#lobby-panel-settings{max-width:800px;width:100%}
.lobby-app #lobby-settings{padding:16px;border:1px solid #425471;border-radius:13px;background:#172237}
.lobby-app #lobby-advanced{margin:12px 0;padding:16px;border:1px solid #425471;border-radius:13px}
.lobby-leave{margin:10px 0}
.lobby-action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#101b2e;border-top:1px solid #4c647f;padding:14px 16px max(14px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0}
.lobby-ready-status{min-width:0}
.lobby-ready-status strong{display:block;font-size:.95rem;color:#9cf0da}
.lobby-ready-status small{display:block;margin-top:4px;color:#b4c3d8;font-size:.75rem}
.lobby-actions{display:flex;gap:8px;align-items:center}
.lobby-actions button{min-height:48px;white-space:nowrap}
@media(max-width:800px){
 body.in-lobby .site-shell{padding-inline:14px}
 body.in-lobby header{height:62px;min-height:62px;padding-block:8px}
 .lobby-top{padding:12px 0}
 .lobby-top h1{font-size:1.25rem}
 .lobby-top button{padding:10px 14px}
 .lobby-nav{margin-bottom:10px;gap:3px}
 .lobby-nav button{font-size:.85rem;min-height:44px;padding:7px 4px}
 .lobby-workspace{display:block;padding-bottom:16px}
 .lobby-desktop-group{display:none}
 .lobby-pane-title{margin:6px 0 14px}
 .lobby-pane-title p{font-size:.78rem}
 .selected-game-item .game-settings-card summary{padding-left:12px;gap:8px;min-height:62px}
 .selected-game-item .game-setting-title{font-size:.9rem!important}
 .lobby-action-bar{padding:10px 10px max(10px,env(safe-area-inset-bottom));gap:8px}
 .lobby-ready-status strong{font-size:.85rem}
 .lobby-ready-status small{font-size:.68rem;line-height:1.3;max-width:140px}
 .lobby-actions{gap:4px}
 .lobby-actions button{padding:10px 12px;font-size:.85rem}
 .lobby-actions .quiet{padding:6px;font-size:.75rem}
 .lobby-app .pick-grid{grid-template-columns:1fr}
 .lobby-app .pick{align-items:center}
 .lobby-app .pick-check{display:block;margin-left:auto}
}

.lobby-nav button{display:flex;align-items:center;justify-content:center;gap:4px}.lobby-nav button span{margin-left:0;flex:none}

/* Arrival: choose one path before showing its form. */
.arrival-home{grid-template-columns:minmax(0,1fr) minmax(340px,480px);align-items:center;gap:72px;padding:52px 0 32px}
.arrival-home .home-path{justify-content:flex-start;padding:18px;min-height:88px;gap:16px;text-align:left}
.arrival-home .home-path>span:nth-child(2){flex:1;min-width:0}
.arrival-home .home-path strong,.arrival-home .home-path small{display:block}
.arrival-home .home-path strong{font-size:1.08rem;margin-bottom:5px}
.arrival-home .home-path small{font-size:.82rem;line-height:1.35}
.arrival-home .arrival-join{background:#173b49;border-color:#65eaf5}
.arrival-home .arrival-host{background:#252440;border-color:#8170ab}
.arrival-home .arrival-arrow{font-size:22px;color:#91eff7}
.arrival-icon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:#ffffff0b;color:#8ff1fa}
.arrival-icon svg{width:25px;height:25px}
.arrival-free{text-align:center;margin:16px 0 0;color:#b4c2db}
.arrival-preview{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px;max-width:460px}
.arrival-preview>div{display:flex;align-items:center;gap:9px;border:1px solid #5a5579;border-radius:12px;background:#191e36;padding:14px;font-size:.82rem}
.arrival-preview>div svg{width:28px;height:28px}
.arrival-preview p{font-size:.85rem;line-height:1.6;color:#b4c2db;max-width:320px}
.arrival-home .arrival-back{padding:8px 0;margin-bottom:16px;min-height:44px}
.arrival-home .entry-panel:before,.arrival-home .entry-panel:after{display:none}
.arrival-home .entry-panel{border:1px solid #53617b;background:#141d32;border-radius:18px}
.arrival-secondary{margin:0 0 24px}
.arrival-library,.arrival-secondary .home-extras{border:1px solid #344159;border-radius:14px;margin:12px 0;padding:0 16px;background:#11182a}
.arrival-library>summary,.arrival-secondary .home-extras>summary{cursor:pointer;min-height:56px;align-content:center;padding:12px 0;font-weight:600;font-size:.9rem}
.arrival-library>summary .pill{margin-left:10px;padding:3px 8px;font-size:.75rem}
.arrival-library .game-grid{padding-bottom:16px}
.arrival-secondary .entry-policy{text-align:center;color:#adbbd5;margin-top:20px}
.at-home .feedback-invite{margin-top:28px}
@media(max-width:800px){
 .arrival-home{grid-template-columns:1fr;gap:20px;padding:24px 0 12px}
 .arrival-home h1{font-size:36px;letter-spacing:-1.3px;margin:0 0 10px;line-height:1.08}
 .arrival-home .lead{font-size:14px;line-height:1.5;margin:0;max-width:330px}
 .arrival-home .eyebrow,.arrival-preview{display:none}
 .arrival-home .home-path{min-height:74px;padding:13px;gap:12px}
 .arrival-home .home-path strong{font-size:1rem;margin-bottom:3px}
 .arrival-home .home-path small{font-size:.76rem}
 .arrival-home .home-paths{gap:9px}
 .arrival-icon{width:38px;height:38px;flex-basis:38px}
 .arrival-form .home-intro{display:none}
 .arrival-form{padding-top:14px}
 .arrival-home .entry-panel{padding:18px}
 .arrival-secondary .home-extras>summary{font-size:.83rem}
 .arrival-free{font-size:.72rem;margin-top:12px}
 .arrival-secondary{margin-top:8px}
}
.room-chat{min-width:0;border:1px solid #3e5365;border-radius:16px;background:#122334;padding:16px;text-align:left}
.chat-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px;flex-wrap:wrap}.chat-heading h2{font-size:1.1rem;margin:0}.chat-heading>span{font-size:.72rem;color:#acbfcd}
.chat-messages{max-height:340px;min-height:120px;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-gutter:stable}
.chat-message{position:relative;padding:10px 34px 10px 12px;margin:0 0 10px;border-radius:12px;background:#20374a;overflow-wrap:anywhere}.chat-message.mine{background:#214239;border-left:2px solid #c4f56b}.chat-byline{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;font-size:.82rem}.chat-byline time{color:#a7bac9;font-size:.68rem;margin-left:auto}.chat-message p{font-size:.95rem;margin:6px 0 0;line-height:1.45;white-space:pre-wrap}.chat-message-menu{position:absolute;right:3px;top:2px}.chat-message-menu summary{padding:10px 6px;cursor:pointer;list-style:none}.chat-message-menu[open]{position:relative;right:auto;top:auto}.chat-message-menu div{display:flex;flex-wrap:wrap;gap:6px}.chat-message-menu button,.chat-member button{font-size:.8rem;padding:8px;min-height:44px;border:1px solid #526879;background:#162a39;color:#eef7fa;border-radius:8px}.chat-report-count{display:block;color:#ffd083;font-size:.75rem;margin-top:6px}
.chat-compose{display:flex;gap:8px;margin:12px 0 4px}.chat-compose input{min-width:0;flex:1;margin:0;font:inherit;font-size:16px;background:#091928;color:white;border:1px solid #71899a;border-radius:10px;padding:12px}.chat-compose button{flex:none;padding:10px 14px;min-height:44px}.chat-empty{color:#adbfcd;font-size:.92rem;padding:16px 4px}.chat-controls>summary{font-size:.8rem;cursor:pointer;padding:10px 0;color:#bcd0dc}.chat-member{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-top:1px solid #344b5d;padding:8px 0}.chat-member>span{flex:1;overflow-wrap:anywhere;min-width:70px}.chat-controls .micro{line-height:1.5}.chat-controls a{color:#bde989}
.lobby-workspace[data-view=chat]{grid-template-columns:1fr}.lobby-desktop-group .room-chat{margin-top:16px}.between-chat{max-width:720px;margin:18px auto}.between-chat>summary{cursor:pointer;background:#1b3545;border:1px solid #476274;border-radius:12px;padding:14px 18px;font-weight:700}.between-chat[open]>summary{margin-bottom:8px}.between-chat [data-chat-unread]:not(:empty){border-radius:12px;background:#c4f56b;color:#102820;padding:2px 8px;margin-left:8px}
.ad-break{max-width:720px;margin:0 auto;text-align:center}.ad-demo{padding:24px 16px;border-radius:20px;background:radial-gradient(ellipse at top,#375a44,#102820 75%);border:1px solid #5e8056}.ad-demo img{width:100px;height:100px;object-fit:contain;animation:ad-breathe 2.5s ease-in-out infinite}.ad-demo h1{font-size:clamp(1.6rem,5vw,2.6rem);margin:14px 0;line-height:1.15}.ad-demo p{color:#d7e8cf}.ad-break progress{width:100%;height:8px;accent-color:#c4f56b}.ad-seats{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin:16px 0}.ad-seats span{padding:7px 10px;background:#1b3545;border-radius:20px;font-size:.8rem}.ad-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
@keyframes ad-breathe{50%{transform:scale(1.06)}}@media(prefers-reduced-motion:reduce){.ad-demo img{animation:none}}
@media(max-width:700px){.room-chat{padding:12px}.chat-messages{max-height:32dvh}.chat-compose{gap:6px}.chat-compose button{padding:10px}.lobby-nav{flex-wrap:nowrap}.lobby-nav button{font-size:.78rem;padding:7px 3px}.lobby-nav button span{padding:2px 4px}.between-chat{margin:14px 0}.ad-break{padding:18px}.ad-demo{padding:18px 12px}.ad-demo img{width:74px;height:74px}}
