:root{color-scheme:dark;--bg:#080f1d;--panel:#101d31;--panel2:#14243b;--line:#283b56;--ink:#e9eef8;--muted:#9fb1ca;--gold:#e0be83;--teal:#64d5b0;--red:#e38390;--blue:#9bbaed}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink)}body{background:radial-gradient(ellipse 100% 34% at 50% 0,#192843 0,transparent 70%),#080f1d}button,input,textarea{font:inherit}button{cursor:pointer}.shell{max-width:880px;margin:auto;min-height:100vh;padding:0 17px 20px}.top{height:74px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #24334a}.brand{border:0;background:none;color:#f7e5c5;letter-spacing:.18em;font-weight:900;font-size:21px;padding:0;white-space:nowrap}.brand-o{color:var(--gold);font-size:23px}.brand small{font-size:9px;letter-spacing:.14em;display:inline-block;color:var(--muted);margin-left:8px;vertical-align:middle}.top-right{display:flex;align-items:center;gap:9px}.pill{font-size:10px;letter-spacing:.08em;color:#b6c7df;border:1px solid #40506a;padding:7px 9px;border-radius:100px;white-space:nowrap}.live-dot{width:6px;height:6px;border-radius:50%;background:#d9ad6b;display:inline-block;margin-right:4px}.quiet{background:#1b2c43;border:1px solid #394b65;color:#d9e3f3;border-radius:11px;min-height:36px;min-width:36px}.hero{padding:40px 3px 22px}.eyebrow{color:var(--gold);font-size:10px;font-weight:800;letter-spacing:.18em}.hero h1{font-size:clamp(29px,6vw,47px);margin:10px 0;line-height:1.08;letter-spacing:-.04em}.hero p{color:var(--muted);font-size:14px;max-width:570px;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:15px 0 28px}.game-card{min-height:184px;text-align:left;padding:19px;background:linear-gradient(145deg,#192c45,#101b2b);border:1px solid #33465f;border-radius:19px;position:relative;transition:transform .15s,border-color .15s}.game-card:hover,.game-card:focus-visible{transform:translateY(-2px);border-color:#ad956a;outline:0}.game-card .symbol{display:block;font-size:30px;margin-bottom:17px}.game-card strong{display:block;font-size:17px;color:#f6e9d4}.game-card .micro{display:block;font-size:11px;color:#aabbd2;margin-top:7px;line-height:1.4}.game-card .number{position:absolute;top:15px;right:16px;color:#8ea3bb;font-size:11px}.muted{color:var(--muted)}.gamehead{display:flex;align-items:center;gap:13px;margin:24px 0 15px}.back{border:1px solid #40536d;background:#14253a;color:#e0e8f3;border-radius:11px;min-width:41px;min-height:41px;font-size:21px}.gamehead h1{font-size:clamp(23px,5vw,30px);margin:0;letter-spacing:-.02em}.gamehead p{color:var(--muted);font-size:12px;margin:5px 0 0}.gamebox{background:#101e31;border:1px solid #30435f;border-radius:19px;padding:20px;margin-bottom:14px}.gamebox.flat{padding:13px}.gamebox h2{font-size:15px;margin:0 0 12px;color:#e8d0a2}.bar{display:flex;gap:9px;flex-wrap:wrap;align-items:center;justify-content:space-between}.label{font-size:11px;color:var(--muted);letter-spacing:.04em}.status{font-size:12px;color:#e3c48a;font-weight:700}.big-emoji{text-align:center;font-size:clamp(48px,11vw,76px);padding:25px 0}.buttons{display:flex;gap:9px;flex-wrap:wrap;margin:13px 0}.btn{border:1px solid #53647b;border-radius:11px;background:#203450;color:#e8eff9;padding:12px 16px;min-height:44px;font-weight:700;font-size:13px}.btn.primary{background:#e0bc80;color:#111e2e;border-color:#e0bc80}.btn.secondary{background:#16263d}.btn:disabled{cursor:not-allowed;opacity:.45}.btn:focus-visible,input:focus-visible{outline:2px solid #e0bc80;outline-offset:2px}.btn.wide{width:100%}.inputs{display:flex;gap:9px;flex-wrap:wrap}.field{width:100%;border:1px solid #4c607b;background:#09182a;color:#fff;padding:13px 14px;border-radius:11px;min-height:47px;outline:none}.field::placeholder{color:#8195b0}.field:focus{border-color:#dfbd84}.inputrow{display:flex;gap:9px}.inputrow .field{flex:1;min-width:0}.inputrow .btn{flex:none}.duo{display:grid;grid-template-columns:1fr 1fr;gap:10px}.player{background:#152841;border:1px solid #304b69;border-radius:13px;padding:14px}.player b{font-size:13px}.player p{font-size:12px;color:#b4c5df;line-height:1.5}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{display:flex;justify-content:center;align-items:center;min-height:50px;min-width:35px;font-size:23px;font-weight:850;background:#213653;color:#f5ebda;border:1px solid #5c718b;border-radius:10px}.tiles{display:flex;justify-content:center;gap:5px;flex-wrap:wrap;margin:16px 0}.tile.green{background:#174c3b;border-color:#47c596;color:#aef8d8}.tile.red{background:#6e3041;border-color:#d77a8c}.tile.gold{border-color:#d9b77a;color:#f5d9a1}.options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.option{background:#1d3049;border:1px solid #455a77;border-radius:13px;min-height:63px;color:#f1f5fb;font-weight:700}.option.picked{border-color:#e0bd82;background:#334056}.meter{height:12px;background:linear-gradient(90deg,#277fae,#3ab4a4,#e5bd6e,#c46d78);border-radius:100px;position:relative;margin:22px 0 26px}.needle{width:3px;height:32px;background:#fff;position:absolute;top:-10px;box-shadow:0 0 5px #fff;transform:translateX(-50%)}input[type=range]{width:100%;accent-color:#e6c388}.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.chip{background:#1a2d48;border:1px solid #38516e;color:#dae8f7;border-radius:8px;padding:9px 11px;font-weight:750}.chip:disabled{opacity:.45}.chip.selected{background:#2b594d;border-color:#63caa2}.notice{border-left:3px solid #e0bd82;background:#1a2b41;padding:11px 13px;color:#d0dfef;border-radius:3px 10px 10px 3px;font-size:12px;line-height:1.5;margin:11px 0}.notice.success{border-color:#5dd5a6}.notice.danger{border-color:#df8290}.history{display:flex;flex-direction:column;gap:7px}.history .item{display:flex;gap:9px;align-items:center;background:#17283e;border:1px solid #30435b;border-radius:9px;padding:10px 12px;font-size:12px}.history .item b{color:#f2d6a3}.history .item span{color:#b8c9df}.log{margin-top:11px;font-size:12px;line-height:1.5}.score{color:#e5cb94;font-weight:750}.subtle{font-size:12px;color:#9eafc6;line-height:1.65}.divider{height:1px;background:#30445c;margin:14px 0}footer{text-align:center;font-size:10px;letter-spacing:.08em;color:#7f91a9;padding:28px 0}.last{background:#18283f;border:1px solid #42546b;color:#e5c48e;padding:12px;border-radius:12px;font-size:12px}.modebar{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px}.modebar button{flex:1;white-space:nowrap}.kbd{font-size:11px;color:#a6b9d1}.shake{animation:shake .3s}@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(5px)}75%{transform:translateX(-5px)}}@media(max-width:680px){.cards{grid-template-columns:repeat(2,1fr)}.shell{padding:0 12px 16px}.gamebox{padding:15px}.top{height:66px}.hero{padding-top:29px}.game-card{padding:15px;min-height:159px}.game-card .symbol{font-size:27px;margin-bottom:13px}.game-card strong{font-size:15px}}@media(max-width:360px){.cards{gap:8px}.game-card{padding:12px;min-height:147px}.game-card strong{font-size:14px}.btn{padding:11px 10px}.tile{min-width:29px;font-size:20px}}

/* Shared two-phone dev room */
#roomPanel{margin:10px 0 18px}.lab-net{background:#101f35;border:1px solid #344966;border-radius:14px;padding:13px;color:#d7e5f9}.lab-net-row{display:flex;flex-wrap:wrap;gap:9px;align-items:center;justify-content:space-between}.lab-net-row+.lab-net-row{margin-top:11px}.lab-net .field{flex:1;min-width:175px}.lab-net .btn{font-size:13px;padding:10px}.lab-net .micro{margin:9px 0 0}.remote-wait{border-color:#b59655!important}

/* Two-person visual and timing games */
.sketch-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;max-width:220px;margin:14px auto}.sketch-cell{aspect-ratio:1;border:1px solid #51668a;border-radius:6px;background:#101c31;padding:0;min-width:0}.sketch-cell.lit{background:#eccb8b;border-color:#ffe6ac;box-shadow:0 0 8px #c79b5970}.sketch-cell:disabled{opacity:1}.sketch-cell:not(:disabled):active{transform:scale(.94)}.silent-hand{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0}.silent-card{background:linear-gradient(145deg,#152b48,#1e3654);border:1px solid #7590b6;color:#fff;border-radius:12px;min-width:54px;min-height:66px;display:inline-flex;align-items:center;justify-content:center;font-size:22px;font-weight:750;padding:8px}.silent-card.mistake{border-color:#ea7e84;color:#ffbcbf}.silent-card:disabled{opacity:.8}.gamebox .duo .player{min-width:0}.gamebox .duo .player .sketch-grid{width:100%}@media(max-width:420px){.sketch-grid{gap:3px}.silent-card{min-width:48px;min-height:60px}}

/* Guess My Ranking: accessible touch-friendly sorting */
.rank-topic{font-size:19px!important;margin:21px 0 12px!important}.rank-list{display:grid;gap:8px;margin:16px 0}.rank-row{display:flex;align-items:center;gap:11px;background:#192b43;border:1px solid #35506e;padding:9px 10px;border-radius:12px;margin:7px 0;min-height:50px}.rank-number{color:#e7c38a;min-width:20px;font-weight:850}.rank-row strong{flex:1;font-size:12px}.rank-buttons{display:flex;gap:5px}.rank-buttons button{background:#304665;color:#f8ecd4;border:1px solid #61728c;min-width:41px;min-height:41px;border-radius:9px;font-size:20px}.rank-buttons button:disabled{opacity:.28}.gamebox .duo .player .rank-row{padding:6px;min-height:36px;font-size:11px}.gamebox .duo .player .rank-row strong{font-size:11px}
/* CLOSER Mix and Bluff: larger mobile tap targets and readable free-text entry. */
#app textarea.field{display:block;width:100%;box-sizing:border-box;min-height:72px;resize:vertical;padding:12px;line-height:1.45;margin:7px 0 14px;}
#app select.field{display:block;width:100%;box-sizing:border-box;min-height:48px;margin:7px 0 14px;}
#app [data-bluff-guess],#app [data-bluff-submit],#app [data-mix-next],#app [data-mix-stop],#app [data-mix-start]{min-height:48px;touch-action:manipulation;}
#app [data-mix-next]:disabled{opacity:.55;cursor:not-allowed;}
@media(max-width:430px){#app .gamebox .buttons{display:flex;flex-wrap:wrap;gap:8px;}#app [data-bluff-guess]{flex:1;min-width:90px;}#app textarea.field{font-size:16px;}}

/* In-game guidance and optional challenge controls — existing theme preserved */
#app .duo-how{margin:12px 0 8px;background:#101c30;border:1px solid #3e5877;border-radius:12px;padding:0 13px}
#app .duo-how summary{min-height:44px;list-style:none;display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#dce8f8;font-size:13px;font-weight:700;touch-action:manipulation}
#app .duo-how summary::-webkit-details-marker{display:none}
#app .duo-how summary span{color:#e7ca94;transition:transform .18s}
#app .duo-how[open] summary span{transform:rotate(180deg)}
#app .duo-how-body{border-top:1px solid #334a66;color:#cfd9e9;padding:10px 0 12px;font-size:13px;line-height:1.6}
#app .duo-how-body ol{margin:0;padding-left:21px}
#app .duo-how-body li{margin:5px 0}
#app .duo-how-body p{color:#e8c88e;margin:10px 0 0}
#app .duo-now{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#f2f4fa;font-size:13px;margin:12px 0}
#app .duo-now small{background:#22364f;padding:5px 9px;border-radius:99px;color:#e7ca94;font-size:11px;font-weight:650}
#app .duo-small{display:inline-block;margin:9px 0;min-height:38px;padding:7px 12px;border-radius:10px;border:1px solid #4c7095;background:#192c43;color:#e6cc98;cursor:pointer;touch-action:manipulation}
#app .duo-blind{display:none!important}
#app .duo-cover p{filter:blur(9px);user-select:none;pointer-events:none}
#app .duo-result{margin:16px 0 6px;padding:11px 13px;border-left:3px solid #e7ca94;border-radius:6px;background:#192b42;color:#f2dfb8;font-size:13px;line-height:1.5}
@media(max-width:460px){#app .duo-how-body{font-size:13px}#app .duo-now{font-size:12px}}

/* Mobile mirror drawing */
#app .duo-sketch-mobile .sketch-grid{width:100%;max-width:330px;gap:6px;margin:14px auto;touch-action:manipulation}
#app .duo-sketch-mobile .sketch-cell{min-height:36px;border-radius:8px}
@media(max-width:650px){#app .duo-sketch-mobile{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}#app .duo-sketch-mobile .player{padding:13px}}

/* Optional co-op countdown — consistent with Midnight Sapphire */
#app .duo-clock-box{border:1px solid #3e5877;border-radius:12px;background:#101c30;padding:12px;margin:13px 0;display:grid;gap:8px}
#app .duo-clock-header{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#e7eff9;font-size:13px}
#app .duo-clock-header strong{font-size:17px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
#app .duo-clock-header .duo-clock-expired{color:#ffb9ae}
#app .duo-clock-buttons{display:flex;flex-wrap:wrap;gap:7px}
#app .duo-clock-buttons .duo-small{margin:0;min-height:37px;flex:1 1 75px;padding:7px 9px}
#app .duo-clock-buttons .duo-clock-selected{background:#364a63;border-color:#e5c68f;color:#fff}
#app .duo-clock-box p.micro{margin:0;color:#aebed1;font-size:12px;line-height:1.4}
@media(max-width:420px){#app .duo-clock-box{padding:10px}#app .duo-clock-buttons .duo-small{min-width:0;font-size:12px}}

/* Emoji Enigma quality pass — existing Midnight Sapphire style retained */
#app .emoji-feedback{margin:14px 0;padding:12px 14px;background:#172e43;border-left:3px solid #dfc58f;border-radius:8px;color:#edf4fb;font-size:14px;line-height:1.55}
#app .emoji-feedback strong{color:#f1d7a8}
#app .emoji-feedback p{margin:6px 0 0;color:#ccd9e9}
#app .option.emoji-correct{border-color:#78c5aa;background:#183f3c;color:#f2fff7}
#app .option.emoji-incorrect{border-color:#c57d7d;background:#4a2c37;color:#fff0f0}
#app .option:focus-visible{outline:2px solid #f1d7a8;outline-offset:3px}
@media(max-width:390px){#app .options{gap:8px}#app .options .option{font-size:13px;padding:8px}}

#app .emoji-categories{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0 4px;align-items:stretch}
#app .emoji-category{flex:1 1 115px;min-height:44px;padding:9px 12px;margin:0;border-color:#3c5470;background:#172a42;color:#d7e4f4;white-space:normal;line-height:1.2}
#app .emoji-category.emoji-category-current{border-color:#dec08d;background:#30445e;color:#fff}
#app .emoji-category small{font-weight:500;color:#a8bcd6;margin-left:4px}
#app .emoji-instruction{font-size:12px;text-align:center;color:#b0c2dc;margin:0 0 12px}
#app .emoji-sentence .options{grid-template-columns:minmax(0,1fr);gap:8px}
#app .emoji-sentence .options .option{min-height:53px;padding:12px 14px;text-align:left;line-height:1.38;font-weight:650;font-size:14px;overflow-wrap:break-word}
#app .emoji-sentence .big-emoji{font-size:clamp(38px,9.5vw,65px);padding:24px 2px 16px;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:360px){#app .emoji-categories{gap:5px}#app .emoji-category{padding:9px 5px;font-size:11px;flex-basis:95px}#app .emoji-sentence .options .option{font-size:13px}}

/* Missing Emoji: an optional clue-completion mode */
#app .emoji-modebar{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 10px}
#app .emoji-modebar button{flex:1 1 120px;min-height:43px;white-space:normal}
#app .emoji-missing .big-emoji{font-size:clamp(36px,10vw,64px);text-align:center;line-height:1.4;padding:18px 0 10px}
#app .emoji-missing-prompt{text-align:center;max-width:470px;margin:0 auto 15px;color:#e5ecf4;font-size:15px;line-height:1.45;font-weight:600}
#app .emoji-missing .options{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#app .emoji-missing .option{font-size:15px;min-height:60px;white-space:normal;line-height:1.35;overflow-wrap:break-word;padding:11px}
@media(max-width:365px){#app .emoji-missing .option{font-size:13px;padding:8px 7px}#app .emoji-missing-prompt{font-size:14px}}

/* Emoji Translator + Split-Brain; keep Midnight Sapphire visual system */
#app .emoji-modebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 10px}
#app .emoji-modebar button{width:100%;font-size:12px;line-height:1.25;padding:10px 7px;white-space:normal;min-height:43px}
#app .emoji-coop .emoji-role-line{font-size:13px;color:#cad8e8;margin:12px 0 18px;text-align:center}
#app .emoji-private-prompt{background:#122d40;border:1px solid #48647b;border-radius:13px;padding:17px;text-align:center;margin:12px 0}
#app .emoji-private-prompt span,#app .emoji-duo-shared span{display:block;font-size:11px;letter-spacing:.06em;color:#a5b8d0;margin-bottom:10px}
#app .emoji-private-prompt strong{font-size:20px;line-height:1.45;color:#f1e6c8;overflow-wrap:break-word}
#app .emoji-form-label{font-size:13px;font-weight:650;color:#dceaf8;display:block;margin:10px 0 7px}
#app .emoji-duo-textarea{width:100%;display:block;min-height:90px;resize:vertical;font-size:17px;padding:12px;line-height:1.5;border-radius:10px}
#app .emoji-palette{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:5px;margin:10px 0}
#app .emoji-palette-btn{padding:5px 1px;min-height:35px;border:1px solid #3e5875;border-radius:8px;background:#24334d;font-size:21px;line-height:1.2}
#app .emoji-palette-btn:focus-visible{outline:2px solid #ecc68d}
#app .emoji-duo-wait{padding:22px 12px;text-align:center;color:#ccdced;background:#12263b;border-radius:12px;line-height:1.5}
#app .emoji-duo-wait p{margin:8px 0 0}
#app .emoji-duo-shared{padding:18px 12px;text-align:center;border:1px solid #46617a;border-radius:12px;background:#14273b;margin:10px 0}
#app .emoji-duo-shared strong{font-size:clamp(25px,8vw,40px);letter-spacing:.06em;line-height:1.4;word-break:break-word}
#app .emoji-duo-reveal-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}
#app .emoji-duo-reveal-grid>div{padding:12px;background:#20324b;border:1px solid #4b5d73;border-radius:10px;min-width:0}
#app .emoji-duo-reveal-grid small{color:#c0d2e3;display:block;margin-bottom:5px}
#app .emoji-duo-reveal-grid p{font-size:14px;color:#fff;margin:0;overflow-wrap:break-word;line-height:1.45}
#app .emoji-split-half{text-align:center;max-width:400px;background:#162e42;border:1px solid #476680;border-radius:14px;margin:12px auto;padding:22px 12px}
#app .emoji-split-half small{display:block;color:#b9cde0;font-size:12px;margin-bottom:10px}
#app .emoji-split-half strong{font-size:clamp(50px,12vw,80px);line-height:1.45}
#app .emoji-split-options{display:grid;grid-template-columns:1fr!important;gap:9px}
#app .emoji-split-options .option{text-align:left;font-size:15px;line-height:1.4;padding:13px 15px;overflow-wrap:break-word}
#app .emoji-duo-feedback{border:1px solid #5d7b83;border-radius:12px;background:#14343b;padding:13px;margin:12px 0}
#app .emoji-duo-feedback strong{font-size:17px;color:#f8e7c5}
#app .emoji-duo-feedback p{font-size:13px;color:#d9e7eb;line-height:1.5;margin:8px 0 0}
@media(max-width:390px){#app .emoji-palette{grid-template-columns:repeat(6,minmax(0,1fr))}#app .emoji-duo-reveal-grid{grid-template-columns:1fr}#app .emoji-private-prompt strong{font-size:18px}}

/* Spectrum audit: responsive dial, accessible feedback and clear two-player roles */
#app .spectrum-modes{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
#app .spectrum-modes .btn{flex:1 1 140px;min-height:44px;white-space:normal;line-height:1.25;padding:10px 8px}
#app .spectrum-extremes{font-size:clamp(17px,4.8vw,25px);line-height:1.35;text-align:center;margin:18px 0 15px;overflow-wrap:break-word}
#app .spectrum-extremes span{color:#e2c491}
#app .spectrum-subtitle{text-align:center;color:#b8c9e1;font-size:12px;margin:10px 0}
#app .spectrum-clue{background:#152c44;border:1px solid #3d536c;border-radius:12px;padding:14px;margin:13px 0;text-align:center}
#app .spectrum-clue small,#app .spectrum-private-target small{display:block;color:#adc2d7;font-size:11px;letter-spacing:.06em;margin-bottom:8px}
#app .spectrum-clue strong{font-size:clamp(16px,4.8vw,22px);line-height:1.4;overflow-wrap:break-word}
#app .spectrum-private-target{border:1px solid #d6bb86;background:#2b3244;border-radius:14px;padding:18px;text-align:center;margin:15px 0;color:#f6ebd6}
#app .spectrum-private-target strong{font-size:46px;display:block;margin:5px 0 8px}
#app .spectrum-private-target p{font-size:13px;line-height:1.5;margin:0}
#app .spectrum-wait{background:#152a3d;padding:19px 15px;border-radius:11px;text-align:center;color:#cbdbea;font-size:14px;line-height:1.55}
#app .spectrum-slider-label{display:block;font-size:13px;text-align:center;color:#c4d5e8;margin:12px 0 6px}
#app .spectrum-meter{position:relative;margin-top:23px;margin-bottom:22px}
#app .spectrum-target{background:#f5bd72!important;top:-11px!important;height:37px!important;box-shadow:0 0 0 2px #283547}
#app .spectrum-guess-needle{background:#83c7e8!important;z-index:1}
#app .spectrum-scale{gap:7px;align-items:center}
#app .spectrum-scale .label{font-size:11px;max-width:40%;line-height:1.3}
#app .spectrum-scale strong{color:#f2dcaa;font-variant-numeric:tabular-nums}
#app .spectrum-reveal{border:1px solid #507c79;background:#18363d;padding:15px;margin-top:15px;border-radius:12px;line-height:1.48}
#app .spectrum-reveal strong{color:#f7e5b7;font-size:17px}
#app .spectrum-reveal p{font-size:13px;margin:8px 0 0;color:#d7e6ea}
#app .spectrum-reflection{font-size:13px;color:#c3d1e0;text-align:center;padding:8px 0}
#app .spectrum-game input[type=range]{width:100%;min-height:40px;touch-action:pan-y}
@media(max-width:360px){#app .spectrum-scale .label{font-size:10px}#app .spectrum-private-target strong{font-size:39px}#app .spectrum-modes .btn{font-size:12px}}

/* Spectrum cooperative modes: three protected, independently rated experiences. */
#app .spectrum-all-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 16px}
#app .spectrum-all-modes .btn{margin:0;min-height:44px;padding:10px 7px;font-size:12px;white-space:normal;line-height:1.25}
#app .spectrum-all-modes .btn:last-child:nth-child(odd){grid-column:1/-1}
#app .spectrum-all-modes .btn:disabled{opacity:.53}
#app .spectrum-compare .spectrum-clue{margin-top:12px}
#app .spectrum-compare .spectrum-subtitle{font-size:13px;line-height:1.4}
#app .spectrum-pole-labels{display:flex;gap:8px;justify-content:space-between;align-items:center;color:#dbe4ef;font-size:13px;font-weight:700;padding:10px 1px;margin:5px 0 13px}
#app .spectrum-pole-labels span{max-width:47%;overflow-wrap:break-word}
#app .spectrum-pole-labels span:last-child{text-align:right}
#app .spectrum-ready-pills{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin:16px 0}
#app .spectrum-ready-pills span{font-size:12px;min-width:115px;text-align:center;border-radius:20px;padding:7px 10px;border:1px solid #56667d;background:#1a2940;color:#d2dceb}
#app .spectrum-ready-pills span.is-ready{border-color:#67bba0;background:#18433c;color:#e0fff2}
#app .spectrum-private-note{text-align:center;margin-top:7px;color:#aebdd0;font-size:12px}
#app .spectrum-comparison-track{height:68px;position:relative;background:linear-gradient(90deg,#244966,#52738f);border:1px solid #7392aa;margin:19px 7px 22px;border-radius:10px}
#app .spectrum-comparison-p1,#app .spectrum-comparison-p2{position:absolute;top:10px;height:46px;width:3px;transform:translateX(-50%);border-radius:3px}
#app .spectrum-comparison-p1{background:#e7c68f}
#app .spectrum-comparison-p2{background:#8fe1da}
#app .spectrum-comparison-p1 span,#app .spectrum-comparison-p2 span{position:absolute;bottom:50px;left:50%;transform:translateX(-50%);font-size:12px;font-weight:bold;padding:2px 6px;border-radius:6px;background:#23334a;color:#f6f3ee}
#app .spectrum-debate-options{display:grid;grid-template-columns:1fr;gap:12px;margin:17px 0}
#app .spectrum-debate-option{min-height:88px;text-align:left;line-height:1.5;font-size:15px;border:1px solid #576f8e;border-radius:12px;background:#1c2d49;color:#edf3fb;padding:15px;overflow-wrap:break-word}
#app .spectrum-debate-option small{display:block;font-size:11px;letter-spacing:.04em;color:#e0c28f;margin-bottom:6px}
#app .spectrum-debate-option.is-chosen{border-color:#e2c68a;background:#2e4057}
#app .spectrum-debate-option:disabled{opacity:.75}
#app .spectrum-debate-option:focus-visible{outline:2px solid #f1d7a8;outline-offset:3px}
#app .spectrum-compare input[type=range]{width:100%;min-height:46px}
@media(max-width:360px){#app .spectrum-all-modes .btn{font-size:11px;padding:9px 5px}#app .spectrum-debate-option{font-size:14px}}

/* Mind Meld — focused 2-phone turn flow, flexible retries, transparent history */
#app .meld-game .bar{margin-bottom:10px}
#app .meld-seed{margin:12px auto 8px;padding:10px 14px;border:1px solid #466078;border-radius:12px;background:#16283d;text-align:center}
#app .meld-seed small{font-size:10px;letter-spacing:.065em;color:#b7c6d8;display:block;margin-bottom:5px}
#app .meld-seed strong{color:#e7d6ac;font-size:14px;letter-spacing:.04em;overflow-wrap:break-word}
#app .meld-prompt{margin:8px 0 14px;padding:16px 13px;border:1px solid #55738a;border-radius:14px;background:linear-gradient(145deg,#162c43,#1b3650);text-align:center;min-height:95px}
#app .meld-prompt small{color:#b6c8dc;font-size:11px;letter-spacing:.065em;display:block;margin-bottom:10px}
#app .meld-prompt h2{font-size:clamp(20px,5.8vw,27px);color:#f4ead2;line-height:1.38;margin:0;overflow-wrap:break-word}
#app .meld-plus{display:inline-block;color:#77b5d3;padding:0 8px;font-weight:400}
#app .meld-instruction{font-size:14px;text-align:center;line-height:1.55;margin:12px auto;max-width:580px}
#app .meld-input label{display:block;color:#e0ebf8;font-size:13px;font-weight:600;margin-bottom:7px}
#app .meld-input .inputrow{display:flex;gap:8px;flex-wrap:wrap}
#app .meld-input .inputrow .field{flex:2 1 150px;min-width:0}
#app .meld-input .inputrow .btn{flex:1 1 125px;min-width:0;min-height:44px}
#app .meld-privacy{line-height:1.5;margin-top:8px;color:#b0bfd2}
#app .meld-waiting{background:#142b42;border:1px solid #46637e;border-radius:12px;padding:22px 16px;text-align:center;line-height:1.5}
#app .meld-waiting strong{font-size:16px;color:#e7d9b9;display:block;margin-bottom:8px}
#app .meld-waiting p{font-size:13px;color:#d0dfed;margin:0}
#app .meld-reveal{background:#172c42;border:1px solid #4c6980;border-radius:12px;padding:15px 12px;margin:12px 0}
#app .meld-reveal.meld-success{border-color:#5bb59c;background:#153831}
#app .meld-reveal>strong{font-size:18px;color:#f2e4bc;line-height:1.45;display:block;text-align:center}
#app .meld-reveal>p{font-size:13px;color:#d3e1ea;line-height:1.5;text-align:center;margin:11px 0 0}
#app .meld-answer-pair{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0 7px}
#app .meld-answer-pair>div{background:#223b54;border:1px solid #4c6681;border-radius:9px;padding:11px 8px;overflow-wrap:break-word;text-align:center}
#app .meld-answer-pair small{display:block;color:#a9c0d6;font-size:10px;margin-bottom:6px}
#app .meld-answer-pair span{font-size:17px;color:#fff;font-weight:700;line-height:1.45}
#app .meld-chain-history{margin:16px 0;border-top:1px solid #4b5e70;padding-top:13px}
#app .meld-chain-history summary{font-size:13px;color:#b8d5ee;cursor:pointer;padding:8px}
#app .meld-game .buttons{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}
#app .meld-game .buttons .btn{flex:1 1 165px;min-height:43px}
@media(max-width:355px){#app .meld-prompt h2{font-size:19px}#app .meld-answer-pair span{font-size:14px}#app .meld-game .buttons .btn{font-size:12px}}

/* Mind Meld Cooperative Modes — compact mobile layout, private prompts and banned word panel */
#app .meld-modebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:7px 0 15px}
#app .meld-modebar .btn{width:100%;min-height:54px;line-height:1.2;white-space:normal;padding:9px 5px;font-size:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}
#app .meld-modebar .btn small{font-size:10px;font-weight:450;opacity:.75}
#app .meld-modebar .btn:disabled{opacity:.52}
#app .meld-theme{display:inline-block;color:#a7bfd8;border:1px solid #4b6881;border-radius:15px;padding:3px 9px;font-size:10px;margin-top:7px}
#app .meld-forbidden{padding:13px;margin:11px 0;border:1px solid #d1a16c;background:#362f31;border-radius:12px;text-align:center;line-height:1.4}
#app .meld-forbidden>span{display:block;color:#eed3ad;font-size:10px;letter-spacing:.085em;font-weight:700;margin-bottom:4px}
#app .meld-forbidden strong{display:block;font-size:22px;color:#fff5df;overflow-wrap:break-word}
#app .meld-forbidden small{color:#e0c6c1;font-size:12px;display:block;margin-top:4px}
#app .meld-pair-reveal{margin:10px 0;padding:10px;text-align:center;border-radius:10px;background:#1a3c49;border:1px solid #557b81}
#app .meld-pair-reveal small{color:#b5d7d7;letter-spacing:.04em;font-size:10px;display:block;margin-bottom:5px}
#app .meld-pair-reveal span{font-weight:700;font-size:15px;color:#f4f6e8}
#app .meld-forbidden .meld-prompt{border-color:#d1a16c}
#app .meld-echo .meld-prompt{background:linear-gradient(145deg,#17344c,#263a60)}
#app .meld-crossroads .meld-prompt{background:linear-gradient(145deg,#172b45,#253b59)}
#app .meld-forbidden .meld-seed strong{font-size:13px}
#app .meld-game .meld-seed{margin-top:13px}
#app .meld-game .meld-seed small{line-height:1.4}
#app .meld-game .meld-answer-pair{overflow:hidden}
@media(max-width:360px){#app .meld-modebar .btn{font-size:11px;padding:8px 4px;min-height:52px}#app .meld-modebar .btn small{font-size:10px}#app .meld-forbidden strong{font-size:20px}}

/* Double Meaning: deliberate progressive clue discovery and cooperative result feedback */
#app .double-game .bar{margin-bottom:10px}
#app .double-title{text-align:center;font-size:clamp(19px,5.5vw,26px);line-height:1.25;margin:13px 0 7px;color:#f3e6c8}
#app .double-intro{text-align:center;font-size:13px;line-height:1.55;margin:5px 0 14px;color:#bdcde0}
#app .double-clues{display:grid;grid-template-columns:1fr;gap:11px;margin:13px 0}
#app .double-clue{border:1px solid #54718b;background:#1a3047;border-radius:12px;padding:16px;min-height:94px}
#app .double-clue small{font-size:10px;letter-spacing:.08em;color:#e1c89c;display:block;margin-bottom:9px;font-weight:700}
#app .double-clue p{font-size:clamp(14px,4vw,17px);line-height:1.5;margin:0;overflow-wrap:break-word;color:#eef4fa}
#app .double-clue2{background:#1e3852}
#app .double-locked{border-style:dashed;background:#17283c}
#app .double-locked p{color:#adc2d6;font-style:italic;font-size:13px}
#app .double-hint-button{display:flex;margin:10px 0}
#app .double-hint-button .btn{flex:1;min-height:43px}
#app .double-entry{margin:17px 0 8px}
#app .double-entry label{font-size:13px;font-weight:650;display:block;color:#dbe7f6;margin-bottom:8px}
#app .double-entry .inputrow{display:flex;gap:8px;flex-wrap:wrap}
#app .double-entry .inputrow .field{flex:2 1 160px;min-width:0}
#app .double-entry .inputrow .btn{flex:1 1 130px;min-height:44px}
#app .double-reveal{border:1px solid #508d89;border-radius:12px;background:#15383b;text-align:center;padding:15px;margin:15px 0}
#app .double-reveal small{display:block;color:#b5ddd2;font-size:11px;letter-spacing:.075em;margin-bottom:6px}
#app .double-reveal strong{display:block;font-size:clamp(25px,6.5vw,33px);color:#fff1c4;overflow-wrap:break-word}
#app .double-reveal p{font-size:13px;color:#d6e9e6;line-height:1.5;margin:9px 0 0}
#app .double-theme{font-size:11px;color:#efd19c;display:inline-block;margin:9px 0 0;border:1px solid #82917b;border-radius:15px;padding:4px 10px}
#app .double-buttons{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
#app .double-buttons .btn{flex:1 1 135px;min-height:43px}
#app .double-mix-note{text-align:center;color:#b5cbdf;line-height:1.5;padding:9px}
@media(max-width:360px){#app .double-clue{padding:13px}#app .double-title{font-size:19px}#app .double-buttons .btn{font-size:12px}}

/* Double Meaning: separate Phrase Bridge game mode */
#app .double-modebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:6px 0 16px}
#app .double-modebar .btn{width:100%;min-height:53px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;line-height:1.25;padding:9px 8px;font-size:13px;white-space:normal}
#app .double-modebar .btn small{font-size:11px;font-weight:450;opacity:.76}
#app .double-modebar .btn:disabled{opacity:.48}
#app .double-bridge .double-intro{margin-bottom:17px}
#app .bridge-pair{display:flex;flex-direction:column;gap:4px;margin:12px 0}
#app .bridge-puzzle{background:linear-gradient(135deg,#16283f,#243b56);border:1px solid #55738a;border-radius:13px;min-height:105px;padding:14px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px}
#app .bridge-puzzle small{font-size:10px;letter-spacing:.09em;color:#c5d3e1;font-weight:750}
#app .bridge-part{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;min-width:0;font-size:clamp(18px,5.2vw,25px);font-weight:750;color:#f5eaca;line-height:1.45}
#app .bridge-part span{overflow-wrap:break-word;word-break:normal}
#app .bridge-part span:empty{display:none}
#app .bridge-part .bridge-blank{display:inline-flex;align-items:center;justify-content:center;width:78px;min-height:38px;border-radius:8px;border:1px dashed #a9c8df;background:#142a42;color:#c9a87a;font-size:20px;letter-spacing:.02em}
#app .bridge-connector{display:flex;align-items:center;justify-content:center;height:23px;flex-shrink:0}
#app .bridge-connector span{color:#81b9d4;font-size:20px;font-weight:900}
#app .bridge-topic{font-size:11px;color:#aebfd2;text-align:center;margin:7px 0 18px}
#app .bridge-letter{background:#223b53;border:1px solid #637c91;border-radius:10px;padding:12px;text-align:center;color:#dce9f6;margin:11px 0;font-size:14px}
#app .bridge-letter b{color:#f6db9b;font-size:19px;margin-left:6px}
#app .bridge-reveal{margin-top:18px}
#app .bridge-solutions{display:grid;grid-template-columns:1fr;gap:7px;margin:13px 0}
#app .bridge-solutions div{background:#1e4444;border:1px solid #467b77;border-radius:9px;color:#edfff3;padding:10px 8px;font-size:16px;line-height:1.45}
#app .bridge-solutions b{color:#ffe5a6;font-weight:900;text-transform:uppercase}
@media(max-width:360px){
 #app .double-modebar .btn{font-size:12px;min-height:49px;padding:7px 5px}
 #app .bridge-puzzle{padding:12px 7px;min-height:96px}
 #app .bridge-part{font-size:18px;gap:6px}
 #app .bridge-part .bridge-blank{width:64px;min-height:35px}
}

/* Letter Heist — cooperative vault with six slots, turn trays, and clear recovery */
#app .heist-game .bar{margin-bottom:9px}
#app .heist-title{text-align:center;font-size:clamp(19px,5.8vw,27px);color:#f3e5c8;line-height:1.25;margin:14px 0 10px}
#app .heist-clue{border:1px solid #496c8a;border-radius:12px;background:#1b324a;text-align:center;font-size:clamp(15px,4.2vw,18px);line-height:1.5;color:#e9f1fa;min-height:75px;display:flex;align-items:center;justify-content:center;padding:16px 12px;margin:14px 0}
#app .heist-tiles{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:19px 0 9px}
#app .heist-slot{background:#172a44;border:1px solid #526985;border-radius:9px;min-width:0;height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#bad0e2}
#app .heist-slot small{font-size:9px;opacity:.64}
#app .heist-slot span{font-size:clamp(17px,5.2vw,24px);font-weight:800;color:#b5c7d9}
#app .heist-slot.filled{background:#31445b;border-color:#9cbbd0}
#app .heist-slot.filled span{color:#ffedc0}
#app .heist-slot.revealed{border-color:#78bba8;background:#19473e}
#app .heist-progress{font-size:12px;line-height:1.5;color:#b7c9dd;text-align:center;margin:8px 0 16px}
#app .heist-players{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}
#app .heist-player{border:1px solid #4d607b;background:#172a42;border-radius:12px;padding:12px 8px}
#app .heist-player.heist-active{border-color:#cfb77b;background:#283a50}
#app .heist-player-label{text-align:center;display:flex;flex-direction:column;gap:5px;margin-bottom:10px}
#app .heist-player-label b{font-size:12px;letter-spacing:.02em;color:#e6edf6}
#app .heist-player-label small{font-size:10px;color:#f0d4a0;font-weight:600;letter-spacing:.035em}
#app .heist-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#app .heist-letter{display:flex;align-items:center;justify-content:center;min-height:49px;border:1px solid #7a96b1;border-radius:9px;background:#314b68;color:#fff2cd;font-size:clamp(18px,5vw,22px);font-weight:800;padding:4px;touch-action:manipulation}
#app .heist-letter:not(:disabled):active{transform:scale(.96)}
#app .heist-letter:disabled{opacity:.33}
#app .heist-instructions{color:#b7c9dc;line-height:1.5;font-size:12px;text-align:center;padding:3px 3px 11px}
#app .heist-hint-action .btn{width:100%;min-height:43px}
#app .heist-hint{padding:12px;border:1px solid #677c95;border-radius:10px;text-align:center;background:#1e3d50;color:#e0ebf5;font-size:13px}
#app .heist-hint b{font-size:18px;color:#f9db98}
#app .heist-feedback,#app .heist-result{margin:13px 0;padding:15px 12px;border:1px solid #8b7962;background:#3b3032;border-radius:12px;line-height:1.5;font-size:13px;color:#f6e7dd;text-align:center}
#app .heist-feedback strong{font-size:17px;display:block;margin:4px 0;color:#ffe7a8;letter-spacing:.07em}
#app .heist-feedback p,#app .heist-result p{margin:7px 0 0;line-height:1.5}
#app .heist-result{border-color:#66a991;background:#194337;color:#dff8e8}
#app .heist-result strong{font-size:17px;color:#ffecb7}
#app .heist-result.heist-revealed{background:#263d4a;border-color:#77a6ba}
#app .heist-history{margin:12px 0}
#app .heist-history summary{font-size:12px;color:#c9ddf2;cursor:pointer;padding:9px}
#app .heist-history p{line-height:1.7;color:#e6f0f6;font-size:13px;overflow-wrap:break-word}
#app .heist-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0 4px}
#app .heist-actions .btn{min-height:45px;white-space:normal;font-size:13px;line-height:1.35;padding:9px 6px}
#app .heist-actions .btn:last-child:nth-child(odd){grid-column:1/-1}
@media(max-width:360px){
 #app .heist-tiles{gap:4px}
 #app .heist-slot{height:55px;border-radius:7px}
 #app .heist-slot span{font-size:18px}
 #app .heist-players{gap:6px}
 #app .heist-player{padding:10px 5px}
 #app .heist-letter{min-height:45px;font-size:19px}
 #app .heist-actions .btn{font-size:12px}
}

/* Letter Heist: clear feedback when the same word is arranged with duplicate tiles */
#app .heist-repeat{margin:12px 0;padding:11px 12px;background:#3a302e;border:1px solid #caa878;border-radius:10px;color:#fbe9cb;text-align:center;font-size:13px;line-height:1.5}

/* Word Forge: cooperative progress, clear turn handoff, guided Relay and compact mobile layout */
#app .forge-game .forge-modebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:6px 0 15px}
#app .forge-game .forge-modebar .btn{min-height:47px;font-size:13px;padding:9px 5px;white-space:normal}
#app .forge-game .bar{margin-bottom:10px}
#app .forge-scorebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0 15px}
#app .forge-scorebar>div{border:1px solid #4a6884;background:#172d45;border-radius:12px;min-height:74px;padding:11px 4px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
#app .forge-scorebar small{font-size:10px;letter-spacing:.035em;color:#afc2d4;font-weight:600}
#app .forge-scorebar strong{font-size:clamp(16px,4.4vw,20px);color:#f3e5c0}
#app .forge-turn{background:#1d3853;border:1px solid #5d7d96;border-radius:12px;text-align:center;padding:15px 10px;margin:13px 0}
#app .forge-turn b{display:block;color:#f4e6c0;font-size:14px;margin-bottom:5px}
#app .forge-turn span{font-size:13px;color:#cadbea;line-height:1.45}
#app .forge-fragment{padding:13px 12px;text-align:center;background:#162a42;border:1px solid #526b84;border-radius:13px;margin:13px 0}
#app .forge-fragment>small{font-size:10px;letter-spacing:.07em;font-weight:700;color:#aac5d8}
#app .forge-fragment>p{margin:12px 0 2px;font-size:13px;line-height:1.55;color:#d4e0ed}
#app .forge-entry{margin:15px 0}
#app .forge-entry label{display:block;font-size:13px;color:#dbe7f5;font-weight:650;margin:7px 0}
#app .forge-entry .inputrow{display:flex;gap:8px;flex-wrap:wrap}
#app .forge-entry .inputrow .field{flex:2 1 145px;min-width:0}
#app .forge-entry .inputrow .btn{flex:1 1 105px;min-width:0;min-height:44px}
#app .forge-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
#app .forge-actions .btn{flex:1 1 200px;min-height:44px}
#app .forge-relay-cue{background:linear-gradient(145deg,#19304a,#243c57);border:1px solid #6c8c9f;border-radius:13px;padding:19px 12px;text-align:center;margin:14px 0 10px}
#app .forge-relay-cue small{font-size:10px;color:#bdd2df;letter-spacing:.08em;display:block}
#app .forge-relay-cue strong{font-size:clamp(23px,6.3vw,32px);color:#fff0c6;overflow-wrap:break-word;line-height:1.45;display:block;margin:8px 0}
#app .forge-relay-cue p{margin:4px 0 0;color:#d1e4f1;font-size:13px;line-height:1.45}
#app .forge-relay-cue p b{color:#ffe3a2;font-size:18px}
#app .forge-relay-seed{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px dashed #5b718b;background:#152c40;border-radius:9px;padding:11px 13px}
#app .forge-relay-seed small{font-size:10px;letter-spacing:.04em;color:#b6cede}
#app .forge-relay-seed b{color:#f3db9d;letter-spacing:.045em;font-size:14px}
#app .forge-progress{font-size:13px;color:#bad3e4;text-align:center;margin:13px 0}
#app .forge-outcome{border:1px solid #5b9a8c;background:#1b423b;border-radius:13px;padding:16px 13px;text-align:center;margin:15px 0}
#app .forge-outcome strong{display:block;font-size:19px;color:#fff0c2}
#app .forge-outcome p{font-size:14px;line-height:1.55;color:#d4f1e8;margin:9px 0}
#app .forge-outcome small{color:#b0d7ce;font-size:12px}
#app .forge-feedback{border:1px solid #4f7890;border-radius:10px;background:#1d3949;padding:12px;text-align:center;color:#e3ecf5;line-height:1.45;font-size:13px;margin:12px 0}
#app .forge-history{border-top:1px solid #49677c;margin:16px 0;padding-top:12px}
#app .forge-history summary{color:#bcd6e9;font-size:13px;padding:8px;cursor:pointer}
#app .forge-new-round .btn{min-height:44px;width:100%}
#app .forge-dictionary-note{font-size:11px;color:#a9bfce;text-align:center;line-height:1.5;margin:13px 0 3px}
@media(max-width:350px){
 #app .forge-game .forge-modebar .btn{font-size:12px;min-height:43px}
 #app .forge-scorebar>div{min-height:69px;padding:9px 2px}
 #app .forge-scorebar small{font-size:9px}
 #app .forge-scorebar strong{font-size:15px}
 #app .forge-relay-cue strong{font-size:23px}
 #app .forge-relay-seed{flex-wrap:wrap;gap:5px}
}

/* Word Forge extended modes: three distinct cooperative challenges */
#app .forge-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:7px 0 17px}
#app .forge-mode-grid .btn{padding:9px 4px;min-height:46px;white-space:normal;font-size:12px;line-height:1.25;overflow-wrap:break-word}
#app .forge-double-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}
#app .forge-double-controls .btn{min-height:49px;white-space:normal;font-size:13px}
#app .forge-mission{border:1px solid #6c84a0;background:linear-gradient(155deg,#1a3049,#273e55);border-radius:13px;text-align:center;padding:19px 12px;margin:16px 0}
#app .forge-mission small{font-size:10px;letter-spacing:.08em;color:#d4c7a1;display:block;margin-bottom:8px}
#app .forge-mission strong{font-size:clamp(20px,5vw,26px);color:#fff0c5;display:block;line-height:1.3}
#app .forge-mission p{font-size:14px;color:#d6e5f3;line-height:1.55;margin:11px 0 0}
#app .forge-destination-head{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);align-items:center;gap:5px;margin:16px 0 12px}
#app .forge-destination-head>div:not(.forge-destination-arrow){border:1px solid #637e93;background:#1b334a;border-radius:11px;min-height:88px;padding:12px 4px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;overflow-wrap:anywhere;text-align:center}
#app .forge-destination-head small{font-size:10px;color:#b8cbdc;letter-spacing:.04em}
#app .forge-destination-head strong{font-size:clamp(14px,4.2vw,21px);color:#ffebba;line-height:1.35}
#app .forge-destination-head .forge-destination-arrow{text-align:center;font-size:23px;color:#b7d0e3;font-weight:900}
#app .forge-route-list{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:14px 0}
#app .forge-route-list span{font-size:12px;background:#1d4350;border:1px solid #46758a;border-radius:8px;padding:7px;color:#e7f5ff;font-weight:650;overflow-wrap:break-word}
#app .forge-route-list b{color:#dcbf88;font-size:14px}
#app .forge-quest .forge-actions .btn,#app .forge-destination .forge-actions .btn{flex:1 1 135px;min-height:44px;white-space:normal;font-size:12px}
@media(max-width:350px){#app .forge-mode-grid{gap:5px}#app .forge-mode-grid .btn{font-size:11px;padding:8px 2px;min-height:44px}
#app .forge-destination-head{grid-template-columns:minmax(0,1fr) 19px minmax(0,1fr)}
#app .forge-destination-head strong{font-size:14px}#app .forge-destination-head .forge-destination-arrow{font-size:17px}}

/* Word Parasite — cooperative word-extension, feedback, and chain scoring */
#app .parasite-game .bar{margin-bottom:8px}
#app .parasite-title{text-align:center;color:#f5e6c6;font-size:clamp(20px,5.8vw,27px);line-height:1.25;margin:15px 0 7px}
#app .parasite-subtitle{text-align:center;font-size:13px;color:#bfd2e2;line-height:1.6;margin:7px 0 15px}
#app .parasite-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
#app .parasite-stats>div{border:1px solid #58758e;background:#192d44;border-radius:11px;padding:12px 6px;min-height:71px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}
#app .parasite-stats small{font-size:10px;letter-spacing:.045em;color:#bad2e5;font-weight:650}
#app .parasite-stats strong{font-size:clamp(18px,5vw,23px);color:#f7e4b3}
#app .parasite-word-box{margin:16px 0 7px;border:1px solid #6b8aa0;background:linear-gradient(145deg,#192d49,#263f55);border-radius:13px;padding:23px 11px;text-align:center;overflow:hidden}
#app .parasite-word-box small{font-size:10px;color:#bfd4e4;letter-spacing:.09em;font-weight:750}
#app .parasite-word-box strong{display:block;font-size:clamp(24px,7vw,37px);letter-spacing:.04em;color:#fff0bc;overflow-wrap:anywhere;margin:12px 0;line-height:1.3}
#app .parasite-word-meta{color:#c8d8e7;font-size:12px;line-height:1.5}
#app .parasite-progress{color:#c3d9e8;font-size:12px;line-height:1.5;text-align:center;margin:10px 0 17px}
#app .parasite-entry{margin:18px 0 10px}
#app .parasite-entry label{display:block;font-size:13px;font-weight:680;color:#e4edf6;margin:0 0 8px}
#app .parasite-entry .inputrow{display:flex;gap:8px;flex-wrap:wrap}
#app .parasite-entry .inputrow .field{flex:2 1 155px;min-width:0}
#app .parasite-entry .inputrow .btn{flex:1 1 105px;min-height:44px}
#app .parasite-entry>p{font-size:12px;color:#bcd0e1;line-height:1.55;margin:9px 0}
#app .parasite-hint-button .btn{width:100%;min-height:43px}
#app .parasite-hint{border:1px solid #7b8291;border-radius:10px;background:#2e3948;padding:13px;text-align:center;color:#dceaf2;font-size:13px;line-height:1.6;margin:10px 0}
#app .parasite-hint b{color:#ffe0a1;font-size:15px;overflow-wrap:anywhere}
#app .parasite-result{border-radius:13px;border:1px solid #5d9d84;background:#194037;text-align:center;padding:18px 12px;margin:16px 0}
#app .parasite-result strong{font-size:20px;color:#ffebbc}
#app .parasite-result p{color:#e3f4ec;line-height:1.55;font-size:14px;margin:8px 0}
#app .parasite-result small{color:#b5dacf;font-size:12px;line-height:1.45}
#app .parasite-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:16px 0 9px}
#app .parasite-controls .btn{min-height:46px;line-height:1.4;font-size:13px;padding:9px 6px;white-space:normal}
#app .parasite-controls .btn:only-child{grid-column:1/-1}
#app .parasite-history{border-top:1px solid #4c647b;padding:11px 0;margin:15px 0}
#app .parasite-history summary{font-size:13px;color:#bfd7e8;cursor:pointer;padding:8px}
#app .parasite-disclaimer{color:#aabecd;text-align:center;font-size:11px;line-height:1.5;margin:12px 0}
@media(max-width:360px){
 #app .parasite-title{font-size:20px}
 #app .parasite-stats{gap:6px}
 #app .parasite-stats small{font-size:9px}
 #app .parasite-stats strong{font-size:18px}
 #app .parasite-word-box{padding:18px 8px}
 #app .parasite-word-box strong{font-size:25px}
 #app .parasite-controls .btn{font-size:12px}
}

/* Word Mutation: true shortest route, collaborative hints, persistent progress */
#app .mutation-game .bar{margin-bottom:10px}
#app .mutation-title{font-size:clamp(19px,5.8vw,27px);line-height:1.3;color:#f7e6c2;text-align:center;margin:14px 0 7px}
#app .mutation-subtitle{font-size:13px;color:#bfd1e3;line-height:1.55;text-align:center;margin:7px 0 14px}
#app .mutation-endpoints{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px;align-items:center;margin:13px 0}
#app .mutation-endpoints>div:not(.mutation-route-arrow){background:#192d47;border:1px solid #5e7792;border-radius:12px;padding:12px 6px;min-height:79px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
#app .mutation-endpoints small{font-size:10px;letter-spacing:.06em;color:#b1cadc}
#app .mutation-endpoints strong{font-size:clamp(17px,5.2vw,24px);letter-spacing:.055em;color:#fff0c7;overflow-wrap:anywhere}
#app .mutation-route-arrow{text-align:center;color:#acbed5;font-size:23px;font-weight:900}
#app .mutation-scores{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
#app .mutation-scores>div{background:#192d43;border:1px solid #4f6d85;border-radius:11px;min-height:69px;text-align:center;padding:11px 4px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px}
#app .mutation-scores small{font-size:10px;color:#bbcfde;letter-spacing:.025em;font-weight:650}
#app .mutation-scores strong{font-size:clamp(17px,4.7vw,23px);color:#f7e3b8}
#app .mutation-current{border:1px solid #638198;background:linear-gradient(140deg,#193047,#284157);border-radius:12px;text-align:center;padding:18px 12px;margin:14px 0 8px}
#app .mutation-current small{display:block;color:#bdd3e1;font-size:10px;letter-spacing:.09em;font-weight:700}
#app .mutation-current strong{display:block;font-size:clamp(23px,6.5vw,33px);color:#ffedb6;letter-spacing:.075em;line-height:1.3;margin:10px 0}
#app .mutation-current p{color:#d1deeb;font-size:12px;line-height:1.5;margin:6px 0 0}
#app .mutation-route-info{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;font-size:11px;color:#b9cfe1;margin:11px 0 14px}
#app .mutation-route-info span{border:1px solid #4a657d;border-radius:8px;padding:6px 8px;line-height:1.35}
#app .mutation-route-info b{color:#e7f3fc}
#app .mutation-entry{margin:14px 0}
#app .mutation-entry label{display:block;color:#dae6f2;font-size:13px;font-weight:650;margin-bottom:7px}
#app .mutation-entry .inputrow{display:flex;gap:8px;flex-wrap:wrap}
#app .mutation-entry .inputrow .field{flex:2 1 150px;min-width:0}
#app .mutation-entry .inputrow .btn{flex:1 1 106px;min-height:44px}
#app .mutation-hint-area{margin:13px 0}
#app .mutation-hint-area>.btn{width:100%;min-height:44px}
#app .mutation-hint-result{background:#2b3b48;border:1px solid #b3996c;color:#f7e8c9;padding:13px;border-radius:10px;line-height:1.55;font-size:13px;text-align:center;margin:10px 0}
#app .mutation-deadend{border:1px solid #bb8873;border-radius:11px;background:#443235;padding:14px;color:#fff0e4;font-size:13px;line-height:1.5;margin:14px 0}
#app .mutation-feedback{border:1px solid #517a8f;background:#1e394c;color:#dcecf6;border-radius:10px;padding:12px;text-align:center;font-size:13px;line-height:1.5;margin:12px 0}
#app .mutation-result{border:1px solid #619b89;background:#1b4038;border-radius:13px;padding:17px 13px;text-align:center;margin:14px 0}
#app .mutation-result strong{display:block;font-size:18px;color:#fff2c1}
#app .mutation-result p{font-size:13px;color:#d7efe3;line-height:1.5;margin:9px 0}
#app .mutation-result .mutation-earned{font-size:24px;color:#ffe5a5;font-weight:800}
#app .mutation-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}
#app .mutation-controls .btn{min-height:44px;padding:8px 6px;font-size:13px;line-height:1.4;white-space:normal}
#app .mutation-controls .btn:only-child{grid-column:1/-1}
#app .mutation-controls .btn:last-child:nth-child(odd){grid-column:1/-1}
#app .mutation-history{border-top:1px solid #516980;padding-top:12px;margin:14px 0}
#app .mutation-history summary{font-size:13px;color:#d0e4f1;cursor:pointer;padding:8px}
#app .mutation-note{text-align:center;font-size:11px;color:#a8bfd2;line-height:1.5;margin:11px 0 3px}
@media(max-width:350px){
 #app .mutation-endpoints{gap:4px;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)}
 #app .mutation-endpoints strong{font-size:17px}
 #app .mutation-scores{gap:5px}
 #app .mutation-scores small{font-size:9px}
 #app .mutation-scores strong{font-size:17px}
 #app .mutation-controls .btn{font-size:12px}
}

/* Word Collision: private choices, cooperative matches, streaks and results */
#app .collision-game .bar{margin-bottom:11px}
#app .collision-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}
#app .collision-stats>div{border:1px solid #57718b;background:#182d44;border-radius:12px;min-height:75px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:10px 4px}
#app .collision-stats small{font-size:10px;letter-spacing:.055em;color:#c0d2e1;font-weight:700}
#app .collision-stats strong{font-size:clamp(20px,5.5vw,27px);color:#ffedbd}
#app .collision-prompt{border:1px solid #688199;background:linear-gradient(145deg,#182e48,#283e59);border-radius:14px;padding:24px 15px;margin:18px 0 16px;text-align:center}
#app .collision-prompt>small{font-size:10px;letter-spacing:.09em;color:#bcd2e4;font-weight:750;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}
#app .collision-theme{font-size:10px;letter-spacing:.01em;color:#f8e3b2;background:#354052;border:1px solid #746c5c;border-radius:99px;padding:3px 8px;text-transform:none}
#app .collision-prompt h2{font-size:clamp(21px,5.8vw,30px);line-height:1.3;color:#ffefc7;margin:13px 0 10px;overflow-wrap:break-word}
#app .collision-prompt p{font-size:13px;line-height:1.5;color:#d0e0ed;margin:6px 0 0}
#app .collision-entry{margin:17px 0}
#app .collision-entry label{display:block;font-size:13px;color:#e2eefa;font-weight:680;margin:0 0 9px}
#app .collision-entry .inputrow{display:flex;gap:9px;flex-wrap:wrap}
#app .collision-entry .inputrow .field{flex:2 1 142px;min-width:0}
#app .collision-entry .inputrow .btn{flex:1 1 120px;min-height:46px}
#app .collision-entry p{font-size:12px;color:#bfd4e4;line-height:1.5;margin:10px 0}
#app .collision-wait{background:#1b3449;border:1px solid #6783a1;border-radius:12px;text-align:center;padding:19px 14px;margin:18px 0}
#app .collision-wait strong{font-size:17px;color:#f7e5bf;display:block}
#app .collision-wait p{font-size:13px;color:#c5dcf0;line-height:1.5;margin:8px 0 0}
#app .collision-pass{background:#333b46;border:1px solid #8f815f;border-radius:11px;padding:12px 14px;color:#f0dfc5;font-size:13px;line-height:1.55;margin:13px 0}
#app .collision-outcome{border:1px solid #7896ac;background:#1a334d;border-radius:14px;padding:19px 12px;text-align:center;margin:18px 0}
#app .collision-outcome.is-hit{background:#20423c;border-color:#77aa98}
#app .collision-outcome>strong{font-size:clamp(17px,5vw,23px);letter-spacing:.03em;color:#f8e6be;display:block}
#app .collision-outcome>p{font-size:13px;line-height:1.5;color:#d4e9e9;margin:9px 0}
#app .collision-answer-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:18px 0 10px}
#app .collision-answer-pair>div{background:#19334a;border:1px solid #63849b;border-radius:12px;display:flex;min-height:88px;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:11px 5px;overflow:hidden}
#app .collision-answer-pair small{color:#bed3e3;font-size:10px;font-weight:650;letter-spacing:.07em}
#app .collision-answer-pair b{color:#fff2cf;font-size:clamp(16px,5.2vw,22px);line-height:1.4;overflow-wrap:anywhere}
#app .collision-outcome .collision-streak{font-size:12px;color:#c5e6df}
#app .collision-actions .btn{min-height:47px;width:100%;margin:12px 0}
#app .collision-history{border-top:1px solid #506b82;margin:17px 0;padding-top:12px}
#app .collision-history summary{font-size:13px;color:#cbddec;cursor:pointer;padding:9px}
#app .collision-history ol{list-style:none;margin:8px 0;padding:0;display:flex;flex-direction:column;gap:6px}
#app .collision-history li{display:flex;gap:12px;align-items:center;justify-content:space-between;background:#172e44;border:1px solid #486378;border-radius:9px;padding:9px 11px;font-size:12px}
#app .collision-history li b{color:#e2c99f;font-size:10px;flex-shrink:0}
#app .collision-history li span{color:#d3e6f3;text-align:right;overflow-wrap:anywhere}
#app .collision-note{color:#adc4d7;font-size:11px;text-align:center;line-height:1.6;margin:15px 0 4px}
@media(max-width:350px){#app .collision-stats{gap:5px}#app .collision-stats small{font-size:9px}#app .collision-stats strong{font-size:20px}
#app .collision-prompt{padding:19px 10px}#app .collision-prompt h2{font-size:21px}
#app .collision-answer-pair{gap:6px}#app .collision-answer-pair b{font-size:16px}}

#app .collision-feedback{border:1px solid #c39d7d;border-radius:10px;background:#3e3135;color:#ffe8de;font-size:13px;line-height:1.5;text-align:center;padding:12px;margin:12px 0}

/* Mirror Sketch - secure turn-taking, accessible pixel board and accuracy review */
#app .mirror-game .bar{margin-bottom:11px;align-items:center}
#app .mirror-title{text-align:center;color:#f7e7c1;font-size:clamp(21px,5.7vw,29px);line-height:1.25;margin:16px 0 7px}
#app .mirror-subtitle{text-align:center;color:#bfcee0;line-height:1.6;font-size:13px;margin:6px 0 15px}
#app .mirror-scorebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
#app .mirror-scorebar>div{border:1px solid #536d85;background:#1a3046;border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:72px;gap:7px;padding:10px 4px;text-align:center}
#app .mirror-scorebar small{font-size:10px;color:#b9cddd;font-weight:700;letter-spacing:.02em}
#app .mirror-scorebar b{font-size:clamp(19px,5.2vw,25px);color:#f8e3b1}
#app .mirror-panel{border:1px solid #617c95;border-radius:13px;background:linear-gradient(150deg,#172c44,#1b3651);padding:18px 13px;margin:17px 0 10px;min-width:0;text-align:center}
#app .mirror-panel h3{margin:1px 0 15px;color:#f5e4c0;font-size:16px}
#app .mirror-canvas{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:min(100%,270px);max-width:270px;gap:6px;margin:12px auto;min-width:0}
#app .mirror-cell{appearance:none;position:relative;aspect-ratio:1;border:1.5px solid #66809a;border-radius:9px;background:#10253a;color:#b3c5d6;box-sizing:border-box;min-width:0;min-height:0;padding:0;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent;transition:border-color 80ms,background 80ms}
#app .mirror-cell.lit{background:#e9c47a;border-color:#ffe6ae;box-shadow:inset 0 0 0 1px #f8dc9d}
#app .mirror-cell:not(:disabled):focus-visible{outline:3px solid #95d5ff;outline-offset:2px}
#app .mirror-cell:not(:disabled):active{transform:scale(.96)}
#app .mirror-cell:disabled{opacity:1}
#app .mirror-cell-coordinate{position:absolute;bottom:3px;right:4px;font-size:9px;line-height:1;color:#b6c9dc;opacity:.62}
#app .mirror-cell.lit .mirror-cell-coordinate{color:#4d3821;opacity:.7}
#app .mirror-help{font-size:13px;line-height:1.55;color:#cedeea;margin:12px auto;max-width:460px}
#app .mirror-progress{font-size:12px;color:#b8d1e5;margin:10px 0 2px}
#app .mirror-private{border:1px dashed #536c81;border-radius:10px;background:#1c3142;color:#d5e3ef;padding:28px 14px;font-size:13px;line-height:1.6}
#app .mirror-wait{background:#243b50;border:1px solid #6a849d;border-radius:12px;padding:17px 13px;text-align:center;margin:15px 0}
#app .mirror-wait strong{display:block;color:#fbe9bf;font-size:16px}
#app .mirror-wait p{font-size:13px;line-height:1.5;color:#d1dfea;margin:8px 0}
#app .mirror-wait span{font-size:11px;color:#afc9dc;display:block;margin-top:8px}
#app .mirror-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}
#app .mirror-actions .btn{flex:1 1 130px;min-height:46px;white-space:normal;font-size:13px}
#app .mirror-result{border:1px solid #689b8a;background:#1b403a;border-radius:13px;text-align:center;padding:19px 10px;margin:16px 0}
#app .mirror-result>strong{display:block;font-size:20px;color:#ffe9b9}
#app .mirror-result p{color:#d6ebdf;margin:9px 0;font-size:13px}
#app .mirror-score-number{color:#fff0bf;font-size:clamp(24px,7vw,35px);font-weight:800}
#app .mirror-detail-stats{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:10px 0 0;color:#c8e0d5;font-size:12px}
#app .mirror-detail-stats b{color:#ffebc1;font-size:14px}
#app .mirror-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:15px}
#app .mirror-compare .mirror-panel{margin:0;padding:12px 8px}
#app .mirror-compare .mirror-panel h3{font-size:13px;margin:4px 0 9px}
#app .mirror-compare .mirror-canvas{gap:3px}
#app .mirror-compare .mirror-cell{border-radius:5px}
#app .mirror-cell.mirror-hit{background:#459a80;border-color:#8ad8ae;box-shadow:inset 0 0 0 1px #bbf5d0}
#app .mirror-cell.mirror-extra{background:#bc6a73;border-color:#f7a8b0;box-shadow:inset 0 0 0 1px #ffd0cd}
#app .mirror-cell.mirror-missed{background:#6b5633;border:2px dashed #f5c36d;box-shadow:inset 0 0 0 1px #bd9656}
#app .mirror-legend{display:flex;gap:13px;flex-wrap:wrap;justify-content:center;font-size:12px;color:#c5d8e8;margin:13px 0}
#app .mirror-legend span{display:inline-flex;align-items:center;gap:6px}
#app .mirror-legend-dot{display:inline-block;width:13px;height:13px;border-radius:3px}
#app .mirror-legend-dot.mirror-hit{background:#459a80;border:1px solid #8ad8ae}
#app .mirror-legend-dot.mirror-extra{background:#bc6a73;border:1px solid #f7a8b0}
#app .mirror-legend-dot.mirror-missed{background:#6b5633;border:2px dashed #f5c36d}
#app .mirror-footer{font-size:11px;color:#acbfd0;text-align:center;line-height:1.55;margin:13px 0}
@media(max-width:630px){#app .mirror-compare{grid-template-columns:minmax(0,1fr);gap:11px}#app .mirror-compare .mirror-canvas{width:min(100%,270px);gap:6px}#app .mirror-compare .mirror-cell{border-radius:8px}}
@media(max-width:350px){#app .mirror-scorebar{gap:6px}#app .mirror-scorebar small{font-size:9px}#app .mirror-scorebar b{font-size:19px}
#app .mirror-panel{padding:13px 8px}#app .mirror-canvas{width:min(100%,250px);gap:5px}#app .mirror-actions .btn{font-size:12px}}

/* Mirror Sketch cooperative modes: Midnight Sapphire, compact Android drawing UI */
#app .mirror-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 17px}
#app .mirror-mode-grid .btn{font-size:12px;min-height:47px;line-height:1.3;padding:9px 7px;white-space:normal;overflow-wrap:break-word}
#app .mirror-extra-game .bar{margin-bottom:11px}
#app .mirror-extra-game .mirror-title{font-size:clamp(21px,6vw,27px);color:#f6e6c3;text-align:center;margin:12px 0 6px}
#app .mirror-extra-game .mirror-subtitle{font-size:13px;line-height:1.6;text-align:center;color:#c7d6e7;margin:7px 0 14px}
#app .mirror-extra-private,#app .mirror-extra-board{border:1px solid #526d8a;background:#192e47;border-radius:14px;padding:16px 10px;margin:15px 0}
#app .mirror-extra-private h3,#app .mirror-extra-board h3{font-size:15px;text-align:center;color:#f6e6bb;margin:0 0 10px}
#app .mirror-extra-private p,#app .mirror-extra-board p{font-size:13px;line-height:1.55;text-align:center;color:#c6dae9;margin:9px 0}
#app .mirror-extra-private .mirror-canvas,#app .mirror-extra-board .mirror-canvas{width:min(100%,300px);margin:13px auto 10px}
#app .mirror-clue-cell{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden}
#app .mirror-clue-cell.mirror-unknown{background:#253a54;border:1px dashed #6e83a1;color:#c6d7e8}
#app .mirror-clue-cell.mirror-known-empty{background:#172638;border:1px solid #536980}
#app .mirror-clue-cell.mirror-known.lit{background:#f4dba0;border:1px solid #ffe7b1}
#app .mirror-question{font-size:clamp(16px,4.5vw,21px);font-weight:750;line-height:1;color:#b8cddd}
#app .mirror-clue-cell .mirror-cell-coordinate{font-size:9px;opacity:.72;pointer-events:none}
#app .mirror-symmetry-canvas .mirror-cell.mirror-fixed{border-color:#91a9c0;background:#20384e}
#app .mirror-symmetry-canvas .mirror-cell.mirror-fixed.lit{background:#acbdd2;color:#1b334a}
#app .mirror-symmetry-canvas .mirror-cell.mirror-unfilled{border-color:#7a9fc5;background:#223850}
#app .mirror-symmetry-canvas .mirror-cell.mirror-unfilled.lit{background:#f1d9a5}
#app .mirror-extra-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0}
#app .mirror-extra-actions .btn{font-size:13px;line-height:1.4;padding:10px 7px;white-space:normal;min-height:47px}
#app .mirror-extra-actions .btn:only-child,#app .mirror-extra-actions .btn:last-child:nth-child(odd){grid-column:1/-1}
#app .mirror-extra-hint{background:#20344e;border:1px solid #617e98;color:#d2e4f2;padding:13px;border-radius:11px;font-size:13px;line-height:1.55;text-align:center;margin:13px 0}
#app .mirror-extra-hint b{color:#ffe5af}
#app .mirror-extra-progress{font-size:12px;color:#c4d8e8;text-align:center;line-height:1.45;margin:10px 0}
#app .mirror-rotation-instruction{border:1px solid #718c9d;background:linear-gradient(150deg,#213d58,#2a4253);border-radius:13px;padding:19px 12px;margin:15px 0;text-align:center}
#app .mirror-rotation-instruction small{display:block;color:#c7dbea;font-size:10px;letter-spacing:.055em;font-weight:700}
#app .mirror-rotation-instruction strong{display:block;font-size:clamp(31px,8vw,42px);font-weight:800;color:#ffebb8;line-height:1.3;margin:9px 0}
#app .mirror-rotation-instruction .mirror-rule{font-size:clamp(17px,4.8vw,23px);line-height:1.4}
#app .mirror-rotation-instruction p{color:#dce7f0;font-size:13px;line-height:1.5;margin:6px 0}
#app .mirror-extra-game .mirror-result{margin:16px 0}
#app .mirror-extra-game .mirror-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}
#app .mirror-extra-game .mirror-compare .mirror-panel{min-width:0;padding:10px 6px}
#app .mirror-extra-game .mirror-compare .mirror-panel h3{font-size:12px;line-height:1.35;text-align:center;margin:4px 0 9px}
#app .mirror-extra-game .mirror-compare .mirror-canvas{width:100%;margin:0 auto}
#app .mirror-extra-game .mirror-compare .mirror-cell{font-size:8px}
@media(max-width:350px){
 #app .mirror-mode-grid{gap:6px}
 #app .mirror-mode-grid .btn{font-size:11px;padding:8px 4px;min-height:45px}
 #app .mirror-extra-private,#app .mirror-extra-board{padding:12px 7px}
 #app .mirror-extra-game .mirror-compare{gap:6px}
 #app .mirror-extra-game .mirror-compare .mirror-panel{padding:7px 3px}
 #app .mirror-extra-game .mirror-compare .mirror-panel h3{font-size:11px}
 #app .mirror-extra-actions .btn{font-size:12px}
}


/* Ranking game: thumb-friendly controls and clear outcome comparisons. */
#app .rank-list .rank-row strong{font-size:14px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
#app .rank-list .rank-row{min-height:60px;gap:8px}
#app .rank-buttons button{min-height:46px;min-width:46px;touch-action:manipulation}
#app .rank-buttons button:focus-visible,#app [data-rank-undo]:focus-visible{outline:2px solid #f4cb8e;outline-offset:2px}
#app .rank-edit-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:3px 0 14px}
#app .rank-progress{margin:13px 0 5px}
#app .rank-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
#app .rank-stats>div{padding:10px 5px;border-radius:10px;background:#192b43;text-align:center;border:1px solid #35506e}
#app .rank-stats small{font-size:10px;display:block;color:#adc2db;line-height:1.25;margin-bottom:5px}
#app .rank-stats strong{font-size:18px;color:#f2dcaa}
#app .rank-accuracy{font-size:14px;min-width:17px;text-align:center;font-weight:700}
#app .rank-accuracy.exact{color:#a7e1bb}
#app .rank-accuracy.close{color:#e9cb9c}
#app .rank-footnote{font-size:11px;opacity:.85}
#app .gamebox .duo .player .rank-row strong{overflow-wrap:anywhere;line-height:1.25}
@media(max-width:370px){#app .rank-list .rank-row{gap:5px;padding:7px}#app .rank-buttons{gap:3px}#app .rank-buttons button{min-height:44px;min-width:44px}}


/* Guess My Ranking: three distinct, private multiplayer modes */
#app .rank-mode-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:5px 0 12px}
#app .rank-mode-pill{min-height:46px;background:#162a44;color:#e4eefb;border:1px solid #5b718f;border-radius:10px;padding:8px 5px;font-size:12px;font-weight:700;touch-action:manipulation}
#app .rank-mode-pill.selected{background:#364d69;color:#fae1af;border-color:#d6ba80}
#app .rank-mode-pill:disabled:not(.selected){opacity:.55}
#app .rank-current{padding:13px;background:#1e344e;border:1px solid #6e83a0;border-radius:11px;margin:12px 0}
#app .rank-current small{font-size:10px;color:#bcd3ef}
#app .rank-current h3{font-size:21px;color:#f2dfb0;margin:6px 0}
#app .rank-current p{font-size:12px;margin:0}
#app .rank-blind-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:12px 0}
#app .rank-blind-slot{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;min-height:83px;padding:6px 3px;border:1px dashed #7f98ba;border-radius:9px;background:#213750;color:#f7e7c2;touch-action:manipulation;overflow-wrap:anywhere}
#app .rank-blind-slot:disabled{opacity:.8}
#app .rank-blind-slot.filled{background:#405473;border-style:solid}
#app .rank-blind-slot strong{font-size:10px;text-align:center;max-width:100%;overflow-wrap:anywhere;line-height:1.2}
#app .rank-sprint-list{display:grid;gap:7px;margin:14px 0}
#app .rank-sprint-row{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#192b43;border:1px solid #35506e;border-radius:11px;padding:8px;min-height:52px}
#app .rank-sprint-row strong{flex:1;font-size:13px;overflow-wrap:anywhere}
#app .rank-sprint-picks{display:flex;gap:5px}
#app .rank-pick{min-width:52px;min-height:44px;background:#2a425e;color:#e9f1ff;border:1px solid #7186a4;border-radius:9px;font-weight:700;font-size:12px;touch-action:manipulation}
#app .rank-pick.selected{background:#ebd098;color:#1e2b41;border-color:#f5dcaa}
#app .rank-mode-nav button:focus-visible,#app .rank-blind-slot:focus-visible,#app .rank-pick:focus-visible{outline:2px solid #f5d29c;outline-offset:2px}
#app .rank-progress{display:flex;gap:8px;color:#d4e3f7;font-size:12px;flex-wrap:wrap}
@media(max-width:370px){#app .rank-blind-grid{gap:3px}#app .rank-blind-slot{min-height:83px;padding:5px 2px}#app .rank-sprint-row{padding:6px 5px}#app .rank-sprint-row strong{font-size:12px}#app .rank-pick{min-width:46px;padding:5px}}


/* Bluff Your Partner: privacy-aware authoring, deliberate guessing, and reveal. */
#app .bluff-spark{background:#182c47;border:1px solid #587295;border-radius:12px;padding:12px;margin:10px 0 17px}
#app .bluff-spark small{font-size:10px;letter-spacing:.04em;color:#b6cbe6;font-weight:700}
#app .bluff-spark p{margin:7px 0 10px;color:#f8e0b0;font-size:16px;line-height:1.4;font-weight:750}
#app .bluff-spark .btn{min-height:44px}
#app .bluff-scoreboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:13px 0 8px}
#app .bluff-scoreboard>div{padding:10px 3px;background:#182a41;border:1px solid #334f72;border-radius:10px;text-align:center}
#app .bluff-scoreboard small{display:block;font-size:9px;line-height:1.3;color:#adbfda;min-height:25px}
#app .bluff-scoreboard strong{font-size:18px;color:#f3e2b4}
#app .bluff-choice-list{display:grid;gap:9px;margin:14px 0}
#app .bluff-card{width:100%;min-height:63px;padding:11px;display:flex;align-items:flex-start;gap:10px;
 background:#1b2b44;border:1px solid #4c6483;border-radius:12px;color:#eef3fa;
 font-size:14px;line-height:1.45;text-align:left;overflow-wrap:anywhere}
#app .bluff-answer{cursor:pointer;touch-action:manipulation}
#app .bluff-answer.selected{background:#344d69;border:2px solid #eccb93;padding:10px}
#app .bluff-number{display:inline-flex;flex-shrink:0;min-width:25px;height:25px;align-items:center;justify-content:center;
 background:#344a65;color:#f5dfb4;border-radius:8px;font-weight:850;font-size:12px}
#app .bluff-false{border-color:#e6bf7a;background:#33425d}
#app .bluff-tag{font-size:10px;padding:4px 5px;border:1px solid #bda56e;border-radius:7px;color:#ffe1a5;
 font-weight:700;margin-left:auto;white-space:nowrap;align-self:center}
#app .bluff-tag.guess{border-color:#86bdd1;color:#b8e0ef}
#app .bluff-followup,#app .bluff-story-note{padding:12px 13px;border:1px solid #435c7d;background:#192c45;border-radius:11px;margin:14px 0}
#app .bluff-followup strong,#app .bluff-story-note strong{font-size:12px;color:#f1dcae}
#app .bluff-followup p,#app .bluff-story-note p{font-size:13px;margin:8px 0 0;line-height:1.5;overflow-wrap:anywhere}
#app .bluff-recovery{padding:12px;border:1px dashed #b9a178;border-radius:11px;margin-top:14px}
#app .bluff-recovery p{font-size:12px}
#app [data-bluff-submit],#app [data-bluff-lock],#app [data-bluff-spark],#app [data-action="bluff-next"]{min-height:48px;touch-action:manipulation}
#app textarea.bluff-statement{font-size:16px}
#app .bluff-answer:focus-visible,#app [data-bluff-lock]:focus-visible{outline:2px solid #f8dba1;outline-offset:3px}
@media(max-width:385px){#app .bluff-scoreboard small{font-size:8px}#app .bluff-scoreboard strong{font-size:15px}
 #app .bluff-card{padding:9px;font-size:12px;gap:7px;flex-wrap:wrap}
 #app .bluff-tag{font-size:9px}}


/* CLOSER room chat: fixed overlay, independent of game rendering. */
#closer-chat{--closer-chat-keyboard:0px;position:relative;z-index:11000;display:none;font-family:inherit}
#closer-chat.closer-chat-visible{display:block}
#closer-chat .closer-chat-backdrop{display:none;position:fixed;inset:0;background:rgba(2,8,20,.43);z-index:11000}
#closer-chat.closer-chat-open .closer-chat-backdrop{display:block}
#closer-chat-fab{position:fixed;right:17px;bottom:calc(17px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard));
 z-index:11002;width:57px;height:57px;border-radius:19px;border:1px solid #d2b47b;
 background:linear-gradient(145deg,#25446a,#132a4d);box-shadow:0 5px 25px #0008;
 color:#f9e5bb;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;
 touch-action:manipulation;transition:transform .18s ease, box-shadow .18s ease}
#closer-chat-fab:active{transform:scale(.94)}
#closer-chat-fab:focus-visible,#closer-chat-x:focus-visible,
#closer-chat-send:focus-visible{outline:3px solid #f5d89b;outline-offset:3px}
#closer-chat .closer-chat-count{position:absolute;top:-8px;right:-7px;min-width:22px;
 height:22px;border-radius:999px;background:#e8c58a;color:#111d33;font-size:11px;font-weight:850;
 padding:3px 4px;line-height:16px;text-align:center;border:2px solid #0e1a30}
#closer-chat-sheet{display:none;position:fixed;right:17px;
 bottom:calc(82px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard));
 z-index:11001;width:min(390px,calc(100vw - 24px));
 height:min(510px,calc(100dvh - 105px - var(--closer-chat-keyboard)));
 min-height:235px;max-height:calc(100dvh - 105px - var(--closer-chat-keyboard));
 border:1px solid #647e9b;border-radius:18px;
 background:linear-gradient(175deg,#142740,#0b1729);box-shadow:0 16px 70px #000b;
 color:#f4f1e9;overflow:hidden;flex-direction:column}
#closer-chat.closer-chat-open #closer-chat-sheet{display:flex}
#closer-chat .closer-chat-header{display:flex;align-items:center;justify-content:space-between;gap:9px;
 padding:13px 14px;border-bottom:1px solid #344b68;background:#1c3350;flex-shrink:0}
#closer-chat .closer-chat-header strong{display:block;font-size:16px;color:#ffe2ad}
#closer-chat .closer-chat-header small{display:block;color:#b5c4d7;font-size:11px;margin-top:3px}
#closer-chat-x{border:1px solid #617c9c;border-radius:10px;background:#293e5c;color:#f4eedf;
 font-size:23px;line-height:1;width:42px;height:42px;cursor:pointer}
#closer-chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
 display:flex;flex-direction:column;gap:10px;padding:13px 11px 16px;scrollbar-width:thin}
#closer-chat-log:empty::before{content:'No messages yet. Say hello to your partner!';display:block;
 margin:auto;text-align:center;color:#9fb4ce;font-size:13px;max-width:195px}
#closer-chat .closer-chat-row{display:flex;width:100%}
#closer-chat .closer-chat-row.mine{justify-content:flex-end}
#closer-chat .closer-chat-row.theirs{justify-content:flex-start}
#closer-chat .closer-chat-bubble{max-width:87%;padding:9px 11px;border-radius:13px;
 background:#293c57;border:1px solid #455d7a;overflow-wrap:anywhere}
#closer-chat .closer-chat-row.mine .closer-chat-bubble{background:#334b66;border-color:#9c8460;
 border-bottom-right-radius:4px}
#closer-chat .closer-chat-row.theirs .closer-chat-bubble{border-bottom-left-radius:4px}
#closer-chat .closer-chat-meta{display:block;color:#f3d69e;font-size:10px;margin-bottom:4px}
#closer-chat .closer-chat-bubble p{font-size:13px;line-height:1.45;white-space:pre-wrap;margin:0;color:#f5f6f8}
#closer-chat-feedback{margin:0;padding:0 12px;color:#ffbdad;font-size:12px}
#closer-chat-feedback:empty{display:none}
#closer-chat .closer-chat-compose{padding:9px 10px;display:flex;gap:8px;align-items:flex-end;
 border-top:1px solid #334c6d;flex-shrink:0}
#closer-chat-input{box-sizing:border-box;flex:1;min-width:0;min-height:47px;max-height:108px;
 resize:vertical;background:#20334c;color:#fff;border:1px solid #59718b;border-radius:11px;
 outline:none;padding:11px 10px;font-size:16px;line-height:1.35;font-family:inherit}
#closer-chat-input:focus{border-color:#e9d2a1}
#closer-chat-send{min-width:64px;height:47px;padding:0 9px;border:none;border-radius:10px;
 background:#e3c18b;color:#17253b;font-size:13px;font-weight:800;cursor:pointer;touch-action:manipulation}
#closer-chat-send:disabled{opacity:.48;cursor:default}
#closer-chat .closer-chat-privacy{padding:0 13px 9px;margin:0;color:#9fb2c7;font-size:10px;line-height:1.4;flex-shrink:0}
#closer-chat.closer-chat-paused #closer-chat-fab{opacity:.42;filter:grayscale(.7);cursor:not-allowed}
#closer-chat.closer-chat-open #closer-chat-fab{background:linear-gradient(145deg,#3c5876,#243952)}
@media(max-width:600px){
 #closer-chat-fab{width:55px;height:55px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard))}
 #closer-chat-sheet{right:10px;left:10px;width:auto;
  bottom:calc(76px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard));
  height:min(520px,calc(100dvh - 98px - var(--closer-chat-keyboard)));
  max-height:calc(100dvh - 98px - var(--closer-chat-keyboard))}
}
@media(prefers-reduced-motion:reduce){#closer-chat-fab{transition:none}}


/* Chat UX refresh: stable bottom scrolling, keyboard-safe sizing, accessible latest jump. */
#closer-chat-log{overflow-anchor:none;scroll-behavior:auto;scroll-padding-bottom:12px}
#closer-chat .closer-chat-row{flex:0 0 auto;min-height:min-content}
#closer-chat-sheet{height:min(510px,calc(var(--closer-chat-usable-height,100dvh) - 105px));
 max-height:calc(var(--closer-chat-usable-height,100dvh) - 105px);min-height:0}
#closer-chat-input{resize:none;overflow-y:auto;min-height:47px;max-height:112px}
#closer-chat-latest:not([hidden]){display:block;position:absolute;bottom:124px;left:50%;transform:translateX(-50%);
 z-index:1;max-width:calc(100% - 32px);white-space:nowrap;border-radius:999px;padding:9px 15px;
 border:1px solid #bfa978;background:#283f5c;box-shadow:0 3px 18px #0008;
 color:#ffe7b7;font-size:12px;font-weight:750;cursor:pointer;touch-action:manipulation}
#closer-chat-latest:focus-visible{outline:2px solid #ffe1aa;outline-offset:3px}
#closer-chat .closer-chat-count{box-shadow:0 2px 12px #0009;display:flex;align-items:center;justify-content:center;
 min-width:24px;height:24px;line-height:1}
#closer-chat .closer-chat-count[hidden]{display:none}
#closer-chat-fab{box-shadow:0 6px 28px #000a,0 0 0 2px #e8c58a19}
#closer-chat .closer-chat-privacy{line-height:1.3}
#closer-chat .closer-chat-header{flex-shrink:0}
@media(max-width:600px){
 #closer-chat-sheet{height:min(520px,calc(var(--closer-chat-usable-height,100dvh) - 100px));
  max-height:calc(var(--closer-chat-usable-height,100dvh) - 100px);min-height:0}
 #closer-chat-latest:not([hidden]){bottom:115px}
}
@media(max-height:480px){
 #closer-chat .closer-chat-privacy{display:none}
 #closer-chat .closer-chat-header{padding:7px 11px}
 #closer-chat .closer-chat-compose{padding:6px 8px}
}


/* Swipe-to-reply and quoted messages. Scoped to the floating room chat. */
#closer-chat-reply-preview[hidden]{display:none}
#closer-chat-reply-preview{padding:9px 10px;margin:0 10px 0;
 border-top:1px solid #46607d;border-left:3px solid #f3d29c;
 background:#223956;border-radius:9px 9px 0 0;display:flex;align-items:center;gap:9px;
 min-width:0;flex-shrink:0}
#closer-chat-reply-preview .closer-chat-reply-copy{display:flex;flex-direction:column;
 gap:3px;min-width:0;flex:1}
#closer-chat-reply-who{font-weight:750;font-size:11px;color:#f9dba1}
#closer-chat-reply-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#cfdae8;font-size:12px}
#closer-chat-reply-cancel{height:34px;width:34px;border-radius:10px;
 border:1px solid #647f9b;background:#324862;color:#fff;cursor:pointer;font-size:22px;flex-shrink:0}
#closer-chat .closer-chat-row{touch-action:pan-y;align-items:flex-end}
#closer-chat .closer-chat-bubble{transition:transform .16s ease;will-change:transform}
#closer-chat .closer-chat-row.closer-chat-swiping .closer-chat-bubble{transition:none}
#closer-chat .closer-chat-bubble p{overflow-wrap:anywhere}
#closer-chat .closer-chat-reply-btn{flex:0 0 32px;width:32px;height:34px;
 margin:0 0 3px 6px;border:1px solid #476380;background:#1c324a;color:#ffe0aa;
 border-radius:10px;font-size:19px;cursor:pointer;touch-action:manipulation;
 display:flex;align-items:center;justify-content:center}
#closer-chat .closer-chat-reply-btn:focus-visible,
#closer-chat .closer-chat-quote:focus-visible,
#closer-chat-reply-cancel:focus-visible{outline:2px solid #ffe2aa;outline-offset:2px}
#closer-chat .closer-chat-bubble{max-width:calc(100% - 39px)}
#closer-chat .closer-chat-quote{display:flex;flex-direction:column;gap:3px;width:100%;
 border:0;border-left:3px solid #e1b879;border-radius:5px;
 background:#172b42;text-align:left;padding:7px 9px;margin:1px 0 9px;
 color:#bfcddd;cursor:pointer;min-width:0}
#closer-chat .closer-chat-quote small{font-size:10px;font-weight:800;color:#f2ce8c}
#closer-chat .closer-chat-quote span{font-size:11px;overflow:hidden;display:-webkit-box;
 -webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere;line-height:1.4}
#closer-chat .closer-chat-highlight .closer-chat-bubble{outline:2px solid #f3ce91;outline-offset:2px}
#closer-chat .closer-chat-reply-btn:hover{background:#2b4766}
#closer-chat .closer-chat-privacy{font-size:10px}
@media(max-width:370px){
 #closer-chat .closer-chat-reply-btn{flex-basis:30px;width:30px;margin-left:4px}
}


/* Mind Meld: shared answer-submission state without leaking private answers. */
#app .meld-answer-progress{margin:14px 0 16px;padding:12px;border:1px solid #405e7a;
 border-radius:14px;background:linear-gradient(145deg,#11243a,#172d46)}
#app .meld-lock-title{display:flex;align-items:center;justify-content:space-between;gap:7px;
 font-size:10px;font-weight:850;letter-spacing:.075em;color:#e7d09f;margin-bottom:9px;line-height:1.4}
#app .meld-lock-title span{font-size:9px;font-weight:650;letter-spacing:.02em;color:#a5bfd4;text-align:right}
#app .meld-lock-players{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
#app .meld-lock-player{display:flex;flex-direction:column;gap:8px;padding:11px 9px;min-width:0;
 border:1px solid #405776;border-radius:12px;background:#192b42}
#app .meld-lock-name{display:flex;flex-wrap:wrap;align-items:center;gap:5px;
 color:#e0ebfa;font-size:12px;font-weight:800;line-height:1.25}
#app .meld-lock-name small{font-size:9px;color:#afc5de;letter-spacing:.04em;font-weight:650}
#app .meld-lock-player strong{font-size:12px;font-weight:800;line-height:1.4;letter-spacing:.005em}
#app .meld-lock-player.meld-lock-ready{border-color:#4e9f8d;background:#183c3b}
#app .meld-lock-player.meld-lock-ready strong{color:#99f0c7}
#app .meld-lock-player.meld-lock-choosing{border-color:#aa8a59;background:#3a3040}
#app .meld-lock-player.meld-lock-choosing strong{color:#f4d598}
#app .meld-lock-player.meld-lock-waiting strong{color:#aebed3}
#app .meld-lock-message{font-size:12px;line-height:1.5;color:#c8d8e9;margin:9px 2px 0}
@media(max-width:375px){
 #app .meld-answer-progress{padding:9px}
 #app .meld-lock-player{padding:9px 7px}
 #app .meld-lock-player strong{font-size:11px}
 #app .meld-lock-title span{font-size:8px}
}


/* Room chat composer: single wide text field with compact send action. */
#closer-chat .closer-chat-compose{
 display:grid;
 grid-template-columns:minmax(0,1fr) 66px;
 align-items:end;
 gap:8px;
 padding:10px 11px;
}
#closer-chat .closer-chat-compose #closer-chat-input{
 display:block;
 width:100%;
 min-width:0;
 box-sizing:border-box;
 border-radius:13px;
 padding:11px 13px;
 font-size:16px;
 line-height:1.35;
 background:#1b304a;
 border:1px solid #5b7390;
}
#closer-chat .closer-chat-compose #closer-chat-input::placeholder{
 color:#aebdd0;
 opacity:1;
}
#closer-chat .closer-chat-compose #closer-chat-send{
 display:flex;
 align-items:center;
 justify-content:center;
 width:66px;
 min-width:0;
 box-sizing:border-box;
 height:47px;
 margin:0;
 border-radius:12px;
 font-size:14px;
}
#closer-chat .closer-chat-compose #closer-chat-input:focus-visible{
 outline:2px solid #e2c58f;
 outline-offset:1px;
}
@media(max-width:340px){
 #closer-chat .closer-chat-compose{grid-template-columns:minmax(0,1fr) 60px;gap:7px;padding:8px}
 #closer-chat .closer-chat-compose #closer-chat-send{width:60px}
}


/* Mind Meld Classic: random no-repeat deck and progress */
#app .meld-shuffle-meter{display:flex;align-items:center;flex-wrap:wrap;gap:6px 13px;
 border:1px solid #4b627c;background:#16293f;border-radius:11px;padding:10px 12px;
 margin:10px 0 14px;color:#c8d9ea;line-height:1.4}
#app .meld-shuffle-meter span{font-size:10px;font-weight:800;letter-spacing:.075em;color:#e3c58d}
#app .meld-shuffle-meter strong{font-size:12px;color:#f4e6c9}
#app .meld-shuffle-meter small{font-size:11px;color:#b4c9d8}
#app .meld-shuffle-loading{border:1px solid #4c6988;border-radius:14px;
 padding:34px 15px;text-align:center;background:#183149;margin:12px 0;color:#f3e2bf}
#app .meld-shuffle-loading strong{font-size:17px;display:block}
#app .meld-shuffle-loading p{font-size:12px;color:#b8cde1;margin:9px 0 0}
#app .meld-deck-complete{border:1px solid #b59660;background:#322f31;border-radius:12px;
 padding:15px;color:#f4daa2;font-size:13px;line-height:1.55;text-align:center;flex:1}
@media(max-width:430px){
 #app .meld-shuffle-meter{gap:4px 9px;padding:9px 10px}
 #app .meld-shuffle-meter span{font-size:9px}
 #app .meld-shuffle-meter small{flex-basis:100%}
}


/* Two-player cooperative Double Meaning / Phrase Bridge */
#app .double-team-panel{margin:15px 0;padding:13px;border:1px solid #465f7e;
 background:linear-gradient(145deg,#142940,#192f48);border-radius:14px;display:flex;flex-direction:column;gap:11px}
#app .double-team-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;
 font-size:11px;font-weight:850;letter-spacing:.09em;color:#f2d39b}
#app .double-team-heading small{font-size:9px;font-weight:650;letter-spacing:.015em;color:#b7c7da}
#app .double-team-proposal{border:1px solid #8b745b;background:#2c3143;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:7px;min-width:0}
#app .double-team-proposal small{font-size:10px;font-weight:800;color:#e6c58c;letter-spacing:.06em}
#app .double-team-proposal strong{font-size:22px;letter-spacing:.035em;overflow-wrap:anywhere;color:#fff3dd}
#app .double-team-proposal p,#app .double-team-tip,#app .double-team-wait{font-size:12px;line-height:1.5;color:#c9d6e7;margin:0}
#app .double-team-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#app .double-team-actions button{flex:1;min-width:112px;min-height:44px}
#app .double-team-entry{margin:0}
#app .double-team-entry label{display:block;font-size:12px;font-weight:680;color:#dce6f1;margin-bottom:8px}
#app .double-team-entry .inputrow{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
#app .double-team-entry #entry{flex:1 1 155px;min-width:0;font-size:16px;min-height:47px}
#app .double-team-entry [data-double-team=propose]{min-height:47px;flex:0 1 auto}
#app .double-team-note{color:#f3d09b;font-size:12px;margin:0;line-height:1.5}
#app .double-team-approved{margin:10px 0;color:#95e4c4;font-size:12px;font-weight:750}
#app .double-game .double-team-panel .double-team-tip{color:#aebfd6;font-size:11px}
#app .double-team-wait{padding:14px 5px}
@media(max-width:410px){
 #app .double-team-panel{padding:11px}
 #app .double-team-entry .inputrow{flex-direction:column}
 #app .double-team-entry #entry,#app .double-team-entry [data-double-team=propose]{width:100%;flex:none}
 #app .double-team-actions button{min-width:105px;font-size:12px}
}


/* Concise instruction bar with optional accessible, local-only practice */
#app .duo-guidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;margin:11px 0 7px}
#app .duo-guidebar>.duo-how{margin:0;min-width:0}
#app .duo-tutorial-launch{min-height:44px;max-width:134px;border:1px solid #88714d;
 border-radius:12px;background:#23364e;color:#f4dda7;font-size:12px;font-weight:750;
 padding:0 12px;white-space:nowrap;touch-action:manipulation;cursor:pointer}
#app .duo-tutorial-launch:focus-visible{outline:2px solid #f3d393;outline-offset:2px}
#app .duo-how-body{font-size:12.5px;line-height:1.55}
#app .duo-how-body ol{padding-left:20px}
#app .duo-how-body li{margin:4px 0}
#app .mutation-title{font-size:clamp(19px,5.3vw,25px);margin:9px 0 4px}
#app .mutation-subtitle{font-size:12px;line-height:1.4;margin:4px 0 9px}
#app .mutation-current{padding:13px 10px;margin:10px 0 8px}
#app .mutation-current strong{margin:6px 0 2px}
#app .mutation-current p{display:none}
#app .mutation-endpoints{margin:9px 0}
#app .mutation-route-info{margin:9px 0}
#app .mutation-note,#app .parasite-disclaimer,#app .collision-note,#app .mirror-footer{display:none}
#app .mutation-game .duo-clock-box [data-mut-note]{display:none}
#app .heist-instructions{font-size:12px;line-height:1.4}
@media(max-width:520px){
 #app .mutation-entry .inputrow{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
 #app .mutation-entry .inputrow .field,#app .mutation-entry .inputrow .btn{width:100%;min-height:46px;min-width:0}
 #app .mutation-entry .inputrow .btn{min-height:48px}
 #app .duo-tutorial-launch{padding:0 9px;font-size:11px}
}
body.duo-tutorial-open{overflow:hidden}
.duo-tutorial-overlay{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;
 padding:12px;background:rgba(4,10,20,.88);overflow-y:auto;overscroll-behavior:contain}
.duo-tutorial-dialog{width:min(100%,470px);max-height:calc(100dvh - 24px);overflow-y:auto;
 border:1px solid #527391;border-radius:18px;background:linear-gradient(160deg,#1b304b,#101c30);
 color:#e8eef8;box-shadow:0 15px 42px #020611;padding:18px;display:flex;flex-direction:column;gap:12px}
.duo-tutorial-header{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#e6cb92;
 font-size:11px;letter-spacing:.07em;font-weight:850}
.duo-tutorial-close{width:43px;height:43px;display:grid;place-items:center;border:1px solid #698098;border-radius:11px;
 background:#263c55;color:#fff;font-size:27px;font-weight:400;cursor:pointer}
.duo-tutorial-dialog h2{font-size:23px;color:#ffedc5;line-height:1.2;margin:0}
.duo-tutorial-dialog h3{font-size:16px;color:#f2f6fc;line-height:1.4;margin:3px 0 7px}
.duo-tutorial-dialog p{font-size:12px;color:#bdcddf;line-height:1.5;margin:0}
.duo-tutorial-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
.duo-tutorial-steps span{height:5px;border-radius:9px;background:#48617c}
.duo-tutorial-steps .done{background:#6fd2b0}
.duo-tutorial-steps .current{background:#e3bd78}
.duo-tutorial-exercise{border:1px solid #4b6380;border-radius:13px;padding:13px;background:#15263d}
.duo-tutorial-exercise small{font-size:11px;color:#e1bf85;font-weight:800}
.duo-tutorial-options{display:grid;grid-template-columns:1fr;gap:8px;margin-top:10px}
.duo-tutorial-option{background:#20374f;border:1px solid #647d99;color:#eaf0fa;
 min-height:47px;border-radius:12px;padding:11px;font-size:14px;font-weight:650;
 text-align:left;cursor:pointer;touch-action:manipulation}
.duo-tutorial-option:focus-visible{outline:2px solid #f4cc8a;outline-offset:2px}
.duo-tutorial-option.duo-tutorial-right{border-color:#69c8a1;color:#c2f9df;background:#1c443e}
.duo-tutorial-option:disabled{opacity:.68;cursor:default}
.duo-tutorial-option.duo-tutorial-right:disabled{opacity:1}
.duo-tutorial-feedback{border-radius:9px;background:#46333b;border:1px solid #aa7484;
 color:#f6c8ca;font-size:12px;line-height:1.45;padding:10px 12px}
.duo-tutorial-feedback.success{background:#193d38;border-color:#68bba1;color:#c5f3dc}
.duo-tutorial-next{min-height:47px;width:100%}
.duo-tutorial-dialog .duo-tutorial-foot{text-align:center;font-size:10px;color:#96aec5}
@media(max-height:590px){
 .duo-tutorial-overlay{align-items:flex-start}
 .duo-tutorial-dialog{max-height:none}
}

/* One Is Lying: readable four-choice cooperative trivia */
#app .liar-game .liar-options{grid-template-columns:minmax(0,1fr);gap:9px;margin:12px 0 15px!important}
#app .liar-game .liar-options .option{display:flex;align-items:flex-start;gap:11px;line-height:1.47;min-height:53px;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:12px 14px;font-size:13px}
#app .liar-game .liar-options .option strong{flex:0 0 22px;color:#efd298;font-size:14px}
#app .liar-game .liar-options .option.picked{border-color:#e0be81}
@media(min-width:650px){#app .liar-game .liar-options .option{font-size:14px}}


/* Mini Golf Duo / premium top-down garden course */
#app .golf-game{background:#11243b;border-color:#416381;overflow:hidden}
#app .golf-heading{text-align:center;margin:12px auto 14px}
#app .golf-heading h2{font-size:22px;color:#ffebbc;letter-spacing:.01em;margin:0 0 5px}
#app .golf-heading p{color:#bacad8;font-size:12px;margin:0}
#app .golf-score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 13px}
#app .golf-score>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:#1b334d;border:1px solid #4c6784;border-radius:12px;min-height:68px;padding:8px 3px}
#app .golf-score small{color:#a9c1d5;font-size:9px;font-weight:800;letter-spacing:.035em;text-align:center}
#app .golf-score strong{font-size:21px;color:#ffe2a5;font-weight:850}
#app .golf-board-frame{position:relative;margin:auto;max-width:450px;width:100%;line-height:0;border:2px solid #506f66;border-radius:18px;background:#82b34d;box-shadow:0 7px 22px #050d1988;overflow:hidden}
#app #golfCanvas{display:block;aspect-ratio:3/5;width:100%;height:auto;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
#app #golfCanvas:active{cursor:grabbing}
#app .golf-board-label{position:absolute;top:11px;left:50%;transform:translateX(-50%);padding:7px 10px;background:#1d412cbb;border:1px solid #e7f3c555;border-radius:18px;color:#fff6d9;font-weight:800;font-size:10px;letter-spacing:.04em;line-height:1;pointer-events:none;white-space:nowrap}
#app .golf-status{margin:13px 0 8px;min-height:45px;display:grid;place-items:center;border:1px solid #476682;background:#1b334e;color:#b5cbdc;border-radius:11px;text-align:center;padding:10px;font-size:12px;letter-spacing:.015em;font-weight:750}
#app .golf-status.active{border-color:#a88b55;color:#f6dfac}
#app .golf-power{display:grid;grid-template-columns:auto minmax(0,1fr) 42px;align-items:center;gap:10px;margin:7px 0 12px;color:#b3c9db;font-size:10px;font-weight:800}
#app .golf-power-track{width:100%;height:10px;border-radius:14px;background:#35495e;overflow:hidden;border:1px solid #647b88}
#app .golf-power-track span{display:block;height:100%;width:0;transition:width .065s ease;background:linear-gradient(90deg,#78dcac,#ebdb84,#f28371)}
#app .golf-power b{text-align:right;font-size:12px;color:#ffdf9e}
#app .golf-short-tip{font-size:11px;line-height:1.55;color:#aebfd0;text-align:center;margin:5px auto 11px;max-width:420px}
#app .golf-progress{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px;max-width:450px;margin:0 auto}
#app .golf-progress span{text-align:center;border-radius:7px;border:1px solid #47627b;background:#192b3f;color:#8ca5b8;padding:6px 0;font-size:11px;font-weight:850}
#app .golf-progress .current{background:#b8894b;color:#161f2f;border-color:#e9c98c}
#app .golf-progress .done{background:#244f46;color:#b9f3cd;border-color:#498b71}
#app .golf-actionrow{display:flex;justify-content:center;gap:8px;margin:9px auto}
#app .golf-next{min-height:48px;max-width:340px;flex:1}
@media(max-width:400px){#app .golf-game{padding:12px}#app .golf-heading h2{font-size:19px}#app .golf-score small{font-size:8px}#app .golf-score strong{font-size:19px}}


/* Mini Golf Duo polish — HUD, tap targets, overlays and two visual moods. */
#app .golf-game{padding:13px;--golf-fg:#ffe9b8;--golf-muted:#b4c8d6;border-color:#43698a;background:linear-gradient(180deg,#162f46 0%,#0e2031 78%)}
#app .golf-game.golf-night{background:linear-gradient(180deg,#0c1e3a,#091529);border-color:#5076a7}
#app .golf-headbar{margin:0;min-height:31px;align-items:center}
#app .golf-headbar .label{font-size:11px;letter-spacing:.035em;font-weight:900}
#app .golf-headbar .label span{color:#9fbacb}
#app .golf-headbar .status{font-size:11px;font-weight:900;padding:5px 9px;background:#26452e;border:1px solid #80ac76;color:#e4f6c8;border-radius:12px}
#app .golf-heading{margin:8px 0 10px}
#app .golf-heading h2{font-size:clamp(20px,5.3vw,26px);line-height:1.1;margin:2px 0 10px;color:var(--golf-fg);letter-spacing:.005em}
#app .golf-tools{display:grid;grid-template-columns:1.22fr 1fr 1fr;gap:6px;max-width:470px;margin:auto}
#app .golf-tool{font:750 10.5px/1.25 inherit;font-size:11px;font-weight:750;min-height:43px;min-width:0;padding:7px 5px;border:1px solid #53718a;border-radius:10px;background:#223c50;color:#cbdae6;cursor:pointer;touch-action:manipulation}
#app .golf-tool[aria-pressed="true"]{border-color:#e3bf80;background:#324a52;color:#ffe6b7}
#app .golf-tool:focus-visible{outline:2px solid #ffdc98;outline-offset:2px}
#app .golf-score{gap:5px;margin:2px 0 10px}
#app .golf-score>div{min-height:58px;padding:7px 2px;background:#1b354a;border-radius:11px}
#app .golf-score small{font-size:9px;letter-spacing:.03em}
#app .golf-score strong{font-size:21px}
#app .golf-score em{font-size:12px;font-style:normal;color:#bdd2df}
#app .golf-status{min-height:40px;padding:8px 9px;margin:0 0 9px;font-size:11.5px;line-height:1.35;border-radius:10px}
#app .golf-status.active{background:#223e3a;border-color:#90c195;color:#f6e9b8}
#app .golf-board-frame{border:2px solid #6c9778;border-radius:16px;box-shadow:0 8px 19px #030b1988,0 0 0 3px #638e5a28}
#app .golf-night .golf-board-frame{border-color:#668bb4;box-shadow:0 8px 20px #020a1f99,0 0 0 3px #75a3d528}
#app .golf-board-label{top:8px;font-size:9px;background:#1a4638af;padding:6px 10px}
#app .golf-fx{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) scale(.95);opacity:0;pointer-events:none;border-radius:15px;background:rgba(15,40,42,.82);border:1px solid #edcf95;color:#ffe9b5;font-size:17px;font-weight:900;line-height:1.2;letter-spacing:.025em;white-space:nowrap;text-shadow:0 2px 7px #162c26;padding:12px 18px;transition:opacity .2s ease,transform .2s ease}
#app .golf-fx.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
#app .golf-power{margin:10px 0 9px}
#app .golf-short-tip{margin:6px 0 11px;font-size:10px;line-height:1.4}
#app .golf-progress{gap:3px}
#app .golf-progress span{padding:5px 0;font-size:10px}
#app .golf-next{min-height:47px}
@media(max-width:380px){#app .golf-game{padding:9px}#app .golf-tool{font-size:10px;min-height:43px}#app .golf-score small{font-size:8px}#app .golf-board-label{font-size:8px}}
@media(prefers-reduced-motion:reduce){#app .golf-fx{transition:none}}


/* Extra-small screens: retain room status and Help, collapse the redundant header subtitle. */
@media(max-width:370px){
 .top .brand small{display:none}
 .top .brand{font-size:19px;letter-spacing:.12em;flex-shrink:1;min-width:0}
 .top .brand-o{font-size:20px}
 .top-right{gap:5px;flex-shrink:0}
 .top-right .pill{font-size:9px;padding:6px 7px}
}


/* Wider close-up course and always-visible overview switch. */
#app .golf-game .golf-board-frame{
  width:calc(100% + 16px);max-width:560px;margin-left:-8px;margin-right:-8px;
  box-sizing:border-box;
}
#app .golf-view-button{
 position:absolute;bottom:11px;right:11px;z-index:3;
 background:rgba(15,47,44,.88);color:#ffe7b7;
 border:1px solid rgba(244,222,171,.88);
 border-radius:999px;padding:9px 12px;min-height:43px;
 font-size:11px;line-height:1;font-weight:900;
 letter-spacing:.015em;box-shadow:0 3px 12px rgba(13,40,35,.35);
 cursor:pointer;touch-action:manipulation;
}
#app .golf-view-button[aria-pressed="true"]{
 background:rgba(25,43,74,.92);border-color:#9cc3e0;color:#e0f1ff;
}
#app .golf-view-button:focus-visible{outline:2px solid #fff0b2;outline-offset:2px}
@media(max-width:380px){
 #app .golf-game .golf-board-frame{width:calc(100% + 12px);margin-left:-6px;margin-right:-6px}
 #app .golf-view-button{padding:8px 10px;font-size:10px}
}


/* Mini Golf obstacle course / nine themed gardens */
#app .golf-hole-story{margin:-4px auto 9px!important;color:#bdd8c9!important;font-size:11px!important;line-height:1.35!important;max-width:420px}
#app .golf-game .golf-heading{margin:8px 0 9px}
#app .golf-game .golf-heading h2{margin:2px 0 8px}
#app .golf-game .golf-board-frame{background:#83a94f}
#app .golf-game .golf-short-tip{color:#c5d5d4}


/* Mini Golf World Adventure: fifteen stages, five environments */
#app .golf-world-banner{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;margin:4px 0 7px;border-radius:11px;border:1px solid #658c99;background:linear-gradient(90deg,#2f5c55,#1a3f57);color:#e8f5da}
#app .golf-world-banner span{font-size:12px;font-weight:900;letter-spacing:.015em}
#app .golf-world-banner small{font-size:9px;font-weight:850;color:#c8e3e4;text-align:right}
#app .golf-progress{grid-template-columns:repeat(15,minmax(0,1fr));gap:2px}
#app .golf-progress span{font-size:9px;padding:6px 0;border-radius:5px;min-width:0}
#app .golf-world-legend{font-size:9px;color:#b9d0d7;text-align:center;margin:9px 0 5px}
#app .golf-game .golf-board-frame{background:#144466}
#app .golf-game .golf-score{margin-bottom:9px}
@media(max-width:365px){#app .golf-world-banner{padding:7px 8px}#app .golf-world-banner span{font-size:10px}#app .golf-world-banner small{font-size:8px}#app .golf-progress span{font-size:8px}}


/* Recovery actions stay visible above the long course on mobile. */
#app .golf-actionrow-top{margin:0 0 12px;padding:0}
#app .golf-actionrow-top .golf-next{width:100%;min-height:47px;font-weight:850}
#app .golf-game .golf-power{margin-top:11px}


/* Mini Golf aiming v8: a stationary top power HUD, no finger-to-ball drag tether. */
#app .golf-board-frame{position:relative}
#app .golf-aim-hud{
 position:absolute;left:50%;top:10px;transform:translateX(-50%);
 z-index:5;pointer-events:none;box-sizing:border-box;
 display:grid;grid-template-columns:auto minmax(36px,1fr) auto;align-items:center;
 gap:9px;width:min(286px,calc(100% - 24px));
 min-height:41px;padding:9px 12px;
 background:rgba(13,39,49,.9);border:1px solid rgba(191,218,204,.67);
 border-radius:13px;box-shadow:0 5px 15px rgba(5,25,34,.25);
 color:#f2f7eb;font-variant-numeric:tabular-nums;transition:border-color .15s ease,box-shadow .15s ease;
}
#app .golf-aim-hud.is-aiming{border-color:#ffe09b;box-shadow:0 0 0 2px rgba(249,209,123,.15),0 5px 15px rgba(5,25,34,.3)}
#app .golf-aim-hud .golf-aim-title{font-weight:900;font-size:10px;letter-spacing:.075em;color:#dce5d4}
#app .golf-aim-hud .golf-power-track{
 height:9px;box-sizing:border-box;min-width:0;width:100%;border-radius:50px;
 background:rgba(7,26,34,.88);border:1px solid rgba(203,226,215,.27);overflow:hidden;
}
#app .golf-aim-hud #golfPowerFill{
 display:block;height:100%;min-width:0;width:0;
 border-radius:50px;background:linear-gradient(90deg,#8adbb2,#f4d689);
 box-shadow:0 0 8px rgba(237,217,130,.35);transition:none;
}
#app .golf-aim-hud[data-level="high"] #golfPowerFill{background:linear-gradient(90deg,#f5c66a,#f4896f)}
#app .golf-aim-hud #golfPowerText{font-weight:950;font-size:14px;min-width:39px;text-align:right;color:#ffe3a5}
#app .golf-board-label{top:auto!important;bottom:16px!important;left:13px!important;right:auto!important;transform:none!important;pointer-events:none}
@media(max-width:380px){
 #app .golf-aim-hud{top:8px;min-height:38px;padding:7px 10px;gap:7px;width:min(267px,calc(100% - 24px))}
 #app .golf-aim-hud .golf-aim-title{font-size:9px}
 #app .golf-aim-hud #golfPowerText{font-size:13px}
}
@media(prefers-reduced-motion:reduce){#app .golf-aim-hud{transition:none}}


/* Art pass: contextual two-world score banner without obscuring the playing field. */
#app .golf-world-banner[data-world-theme="0"]{
 background:linear-gradient(108deg,#2c6048,#244d41 60%,#193b49);
 border-color:rgba(164,215,154,.48);box-shadow:inset 0 1px 0 rgba(235,255,198,.15)
}
#app .golf-world-banner[data-world-theme="1"]{
 background:linear-gradient(108deg,#125777,#153F60 60%,#173955);
 border-color:rgba(123,213,227,.53);box-shadow:inset 0 1px 0 rgba(190,244,247,.12)
}
#app .golf-world-banner[data-world-theme="1"] small{color:#D0EFF5}
#app .golf-world-banner[data-world-theme="0"] small{color:#D9F1D1}
#app .golf-game .golf-board-frame{box-shadow:0 12px 30px rgba(7,30,40,.25),inset 0 0 0 1px rgba(206,229,211,.22)}
#app .golf-game .golf-heading h2{letter-spacing:.008em}


/* Five-world art release: material-specific banners and nonblocking completion ribbon */
#app .golf-world-banner[data-world-theme="2"]{background:linear-gradient(106deg,#5E2E29,#35232F 63%,#241F32);border-color:rgba(255,151,77,.58)}
#app .golf-world-banner[data-world-theme="3"]{background:linear-gradient(106deg,#4C615F,#3A515B 63%,#273F50);border-color:rgba(197,215,200,.57)}
#app .golf-world-banner[data-world-theme="4"]{background:linear-gradient(106deg,#30316E,#17274E 62%,#143C56);border-color:rgba(159,208,244,.57)}
#app .golf-world-banner[data-world-theme="2"] small{color:#FFD8B0}
#app .golf-world-banner[data-world-theme="3"] small{color:#E3EAD8}
#app .golf-world-banner[data-world-theme="4"] small{color:#C8EFF3}
#app .golf-clear-ribbon{position:absolute;top:63px;left:50%;z-index:4;transform:translateX(-50%);width:max-content;max-width:calc(100% - 30px);pointer-events:none;
 text-align:center;white-space:nowrap;padding:9px 14px;border:1px solid rgba(242,232,181,.82);border-radius:999px;
 background:linear-gradient(120deg,rgba(22,56,56,.95),rgba(37,79,72,.96));color:#FFF3C7;font-size:11px;line-height:1.2;letter-spacing:.04em;font-weight:900;
 box-shadow:0 5px 18px rgba(8,30,40,.43),inset 0 1px 0 rgba(255,255,255,.15);
 animation:golf-clear-appear .28s ease-out both}
#app .golf-world-banner[data-world-theme="4"] ~ .golf-heading .golf-tool[aria-pressed="true"]{border-color:rgba(147,232,242,.55)}
@keyframes golf-clear-appear{from{opacity:0;transform:translate(-50%,9px) scale(.95)}to{opacity:1;transform:translate(-50%,0) scale(1)}}
@media(max-width:380px){#app .golf-clear-ribbon{top:57px;font-size:10px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){#app .golf-clear-ribbon{animation:none}}


/* Verified team scores and browser-local practice history */
#app .golf-records-panel{margin:10px 0 0;overflow:hidden;border:1px solid rgba(139,182,180,.45);border-radius:13px;background:rgba(19,47,57,.72)}
#app .golf-records-toggle{display:block;width:100%;min-height:44px;padding:11px 13px;text-align:left;font-weight:850;font-size:12px;color:#E9F6E9;background:transparent;border:0;cursor:pointer}
#app .golf-records-content{padding:1px 13px 12px;color:#E8F4E9;font-size:11px}
#app .golf-records-info{margin:3px 0 10px;color:#BED8D2;line-height:1.45}
#app .golf-records-list{margin:0;padding-left:20px}
#app .golf-records-list li{padding:7px 0;border-bottom:1px solid rgba(162,190,189,.18)}
#app .golf-records-list li:last-child{border:0}
#app .golf-records-list span{margin-left:8px;color:#B8D2D0;font-size:10px}
#app .golf-records-error{color:#FFD8AA}
#app .golf-records-toggle:focus-visible{outline:2px solid #F5DE91;outline-offset:-3px}
#app .vault-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #30435f;padding:10px 0}#app .vault-row b{min-width:100px;font-size:18px;letter-spacing:.17em}#app .vault-lights{display:flex;gap:5px}#app .vault-light{height:12px;width:12px;display:inline-block;border-radius:50%;border:1px solid #7389a3}#app .vault-light.hit{background:#51cda2}#app .vault-light.miss{background:#ad5267}#app .vault-row small{margin-left:auto}#app .golf-camera-actions{display:flex;justify-content:center;margin:9px auto 3px}#app .golf-camera-actions button{min-height:42px;min-width:135px;border-radius:999px}
/* CLOSER Midnight Sapphire – streamlined Room + Game Lab home, 2026-11-18 */
:root{--gold:#e9c486}
.top{min-height:69px;height:auto;padding:13px 0;gap:8px}
.top .brand{font-size:clamp(17px,4.7vw,22px);letter-spacing:.115em}
.top .brand small{font-size:9px;margin-left:6px;letter-spacing:.10em}
.top .pill{padding:8px 10px;border-radius:24px;letter-spacing:.06em}
.shell{max-width:880px;padding-left:clamp(14px,4vw,22px);padding-right:clamp(14px,4vw,22px)}
#roomPanel{margin-top:16px}
#roomPanel .lab-room-modern{padding:20px;border-radius:20px;border:1px solid #395575;background:linear-gradient(155deg,#13253e,#0f1d32 78%);box-shadow:0 12px 32px #02091235;display:grid;gap:16px}
#roomPanel .lab-room-header{display:flex;align-items:flex-start;gap:12px;margin:0;justify-content:space-between}
#roomPanel .lab-room-heading{display:flex;flex-direction:column;gap:5px;min-width:0}
#roomPanel .lab-room-heading small{color:#a4bad5;font-size:10px;letter-spacing:.14em;font-weight:800}
#roomPanel .lab-room-heading strong{color:#f1f5ff;font-size:clamp(19px,5vw,25px);line-height:1.18;font-weight:800;letter-spacing:-.025em}
#roomPanel .lab-room-partner{color:#b4c7df;font-size:13px;line-height:1.4}
#roomPanel .lab-room-status{display:flex;gap:6px;align-items:center;color:#d9ebf2;font-size:12px;white-space:nowrap;padding:7px 10px;border-radius:25px;background:#18324a;border:1px solid #355c66}
#roomPanel .lab-status-dot{width:7px;height:7px;border-radius:50%;background:#69d4a7;box-shadow:0 0 0 3px #69d4a723}
#roomPanel .lab-status-dot.offline{background:#efb47d}
#roomPanel .lab-room-actions{margin:0;display:flex;flex-direction:column;gap:12px}
#roomPanel .lab-room-action-primary{display:grid;grid-template-columns:1.3fr 1.1fr .85fr;gap:8px}
#roomPanel .lab-room-action-secondary{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:8px;padding-top:11px;border-top:1px solid #2c4662}
#roomPanel .lab-room-actions .btn{width:100%;min-width:0;min-height:43px;margin:0;padding:9px 8px;border-radius:11px;border-color:#526c88;font-size:12px;line-height:1.25;font-weight:750}
#roomPanel .lab-room-actions .btn.primary{background:linear-gradient(150deg,#f4d497,#dcb171);color:#102037;border-color:#f7dbab}
#roomPanel .lab-room-actions .btn:not(.primary){background:#1a2e47;color:#e5edf9}
#roomPanel .lab-room-actions .btn:focus-visible{outline:2px solid #efc980;outline-offset:2px}
#roomPanel .lab-room-feedback{background:#423c305c;color:#f4d8a6!important;border:1px solid #93774c79;border-radius:10px;padding:10px 12px;margin:0!important;font-size:12px;line-height:1.45}
#roomPanel .lab-room-modern > .micro{margin:0;font-size:12px;line-height:1.5}
#app .hero{padding:34px 2px 20px}
#app .hero .eyebrow{letter-spacing:.17em;color:#e7c083}
#app .hero h1{font-size:clamp(31px,7.5vw,46px);line-height:1.07;letter-spacing:-.045em;margin:13px 0 15px;color:#f1f4fd}
#app .hero p{max-width:520px;font-size:14px;color:#aebfd6;line-height:1.55;margin:0 0 19px}
#app .hero>.btn{margin:0 10px 10px 0!important;min-height:48px;border-radius:13px;padding:12px 18px;font-weight:760;font-size:13px;box-shadow:none}
#app .hero>.btn.primary{background:#ebc78b;color:#15243a;border-color:#f1d49d}
#app .hero>.btn.secondary{background:#1d314c;color:#e7f0ff;border-color:#4d6583}
#app .hero+.notice{max-width:840px;font-size:12px;line-height:1.5;border-radius:11px;padding:12px 14px;background:#172a42;border-left:3px solid #e6c083;margin:0 0 22px}
#app .cards{gap:12px}
#app .game-card{border-radius:16px;background:linear-gradient(145deg,#1a2c45,#102035);border-color:#344b68}
#app .game-card:focus-visible{outline:2px solid #e7c389;outline-offset:2px}
/* Ranking reveal – visual overhaul, all server-provided values untouched */
#app .rank-stats-polished{gap:8px;margin:17px 0}
#app .rank-stats-polished>div{border-radius:13px;border:1px solid #3c5574;background:linear-gradient(155deg,#1b304b,#16263c);padding:14px 7px;min-height:80px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#app .rank-stats-polished small{font-size:9px;letter-spacing:.04em;color:#b5c6da;margin-bottom:7px;line-height:1.4}
#app .rank-stats-polished strong{font-size:clamp(16px,4.3vw,23px);color:#f0d39b;line-height:1.15}
#app .rank-reveal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
#app .rank-reveal-grid>.rank-result-column{padding:0;border:0;background:none;display:grid;gap:12px;min-width:0}
#app .rank-result-card{padding:12px;border:1px solid #3a5473;border-radius:15px;background:linear-gradient(145deg,#1a304b,#12243b);min-width:0}
#app .rank-result-card.rank-predicted{background:linear-gradient(155deg,#182b43,#102137)}
#app .rank-result-card .rank-result-title{font-size:clamp(12px,3.6vw,16px);margin:0 0 12px;line-height:1.3;display:flex;align-items:center;gap:7px;color:#f1f4fd}
#app .rank-result-card.rank-actual .rank-result-title:before{content:'♛';color:#ebc78b;font-size:19px}
#app .rank-result-card.rank-predicted .rank-result-title:before{content:'◎';color:#ebc78b;font-size:19px}
#app .rank-result-card>.rank-row{min-height:42px;padding:7px 8px;margin:0 0 6px;border-radius:11px;border:1px solid #405979;background:#1b314c;display:flex;gap:8px;align-items:center;box-shadow:none}
#app .rank-result-card>.rank-row:last-child{margin-bottom:0}
#app .rank-result-card .rank-number{font-size:13px;font-weight:800;min-width:13px;color:#f3ce8d}
#app .rank-result-card .rank-row strong{font-size:12px;line-height:1.35;flex:1;min-width:0;color:#eaf1fb;overflow-wrap:break-word;word-break:normal}
#app .rank-result-card .rank-accuracy{min-width:13px;font-size:14px}
#app .rank-result-summary{border:1px solid #385b67;border-left:3px solid #dbba7c;padding:15px;border-radius:13px;margin:17px 0 13px;background:linear-gradient(120deg,#1c334c,#14273c);font-size:13px;line-height:1.75}
#app .rank-result-summary b{color:#f4dbad}
#app .rank-result-summary .rank-footnote{display:block;margin-top:6px;font-size:11px;color:#aec2d7;line-height:1.5}
#app .rank-result-note{font-size:13px;line-height:1.6;color:#e4eefa;background:#11243a;padding:12px 15px;border-radius:12px;border:1px solid #344c69}
@media(max-width:530px){
 #app .hero>.btn{width:100%;margin:0 0 9px!important}
 #roomPanel .lab-room-modern{padding:15px 13px;gap:13px}
 #roomPanel .lab-room-header{align-items:flex-start;flex-wrap:wrap}
 #roomPanel .lab-room-action-primary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #roomPanel .lab-room-action-primary [data-net=copy]{grid-column:1 / -1}
 #roomPanel .lab-room-action-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #roomPanel .lab-room-action-secondary [data-net=diagnostics]{grid-column:1 / -1}
 #roomPanel .lab-room-actions .btn{font-size:12px}
 #app .rank-reveal-grid{gap:8px}
 #app .rank-result-card{padding:9px}
 #app .rank-result-card>.rank-row{gap:5px;padding:7px 6px}
 #app .rank-result-card .rank-row strong{font-size:11px}
}
@media(max-width:355px){
 .top .brand{font-size:15px}
 .top .brand small{display:none}
 #app .rank-reveal-grid{grid-template-columns:minmax(0,1fr)}
 #app .rank-result-card .rank-row strong{font-size:13px}
}
@media(prefers-reduced-motion:reduce){#roomPanel .lab-room-modern *,#app .rank-reveal-grid *{transition:none!important}}

/* CLOSER concise copy, 18 November 2026 */
#app .hero .eyebrow:empty{display:none}#app .hero{padding-top:24px}#app .hero h1{margin-top:0}#app .hero+.notice{font-size:11.5px;padding:9px 12px;margin-bottom:14px;color:#b4c6d9}#app .game-card .micro{line-height:1.4;max-width:22ch}#roomPanel .lab-net:not(.lab-room-modern){padding:15px 14px;border-radius:17px}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:first-child{gap:3px;flex-direction:column;align-items:flex-start;justify-content:flex-start}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:first-child span:first-child{font-size:15px;font-weight:750;line-height:1.3}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:first-child span:nth-child(2){font-size:12px;color:#91adc9}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:stretch}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2) [data-net=create]{grid-column:1/-1;width:100%}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2) #joinRoom{min-width:0;width:100%;grid-column:1}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2) [data-net=join]{grid-column:2;min-width:106px}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2) .btn{border-radius:12px;min-height:47px}@media(max-width:360px){#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2){grid-template-columns:minmax(0,1fr)}#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2) #joinRoom,#roomPanel .lab-net:not(.lab-room-modern)>.lab-net-row:nth-child(2) [data-net=join]{grid-column:1}}

/* Shared game-mode layout — separate compact setup from play */
#app .lab-game-setup{
 background:linear-gradient(150deg,#172b44,#102035);
 border:1px solid #385372;border-radius:17px;
 padding:14px 14px 12px;margin:0 0 13px;
}
#app .lab-setup-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}
#app .lab-setup-heading>span:first-child{font-size:10px;font-weight:850;letter-spacing:.14em;color:#eac78c}
#app .lab-setup-caption{font-size:11px;color:#9eafc7;white-space:nowrap}
#app .lab-setup-group + .lab-setup-group{margin-top:13px;padding-top:12px;border-top:1px solid #2c4260}
#app .lab-setup-label{font-size:12px;color:#c2d2e6;font-weight:740;margin:0 0 8px}
#app .lab-game-setup .modebar,
#app .lab-game-setup .emoji-categories,
#app .lab-game-setup .rank-mode-nav,
#app .lab-game-setup .mirror-mode-grid{margin:0!important;padding:0}
#app .lab-game-setup .modebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;overflow:visible}
#app .lab-game-setup button{width:100%;min-width:0;min-height:41px;border-radius:11px;font-size:12px;padding:8px 7px;line-height:1.3;white-space:normal}
#app .lab-game-setup .btn.primary,
#app .lab-game-setup [aria-pressed="true"]{background:#dfbd83;color:#17253a;border-color:#edcc95}
#app .lab-game-setup .btn.secondary,
#app .lab-game-setup [aria-pressed="false"]{background:#1b304a;border-color:#405a78;color:#e3edfa}
#app .lab-game-setup button:disabled{opacity:.55;cursor:not-allowed}
#app .lab-game-setup button small{display:inline;color:inherit;opacity:.75;font-size:10px;margin-left:4px}
#app .lab-game-setup .emoji-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#app .lab-game-setup .emoji-category{flex:none;min-height:46px;word-break:normal;overflow-wrap:break-word;font-size:11px}
#app .lab-game-setup .emoji-category small{display:block;margin:3px 0 0;font-size:10px}
#app .lab-game-setup .rank-mode-nav,
#app .lab-game-setup .mirror-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#app .lab-play-panel{border-color:#3b5575;background:linear-gradient(160deg,#11243b,#0e1c30)}
#app .lab-play-panel .lab-puzzle-meta{padding-bottom:12px;border-bottom:1px solid #293e57}
#app .lab-play-panel .big-emoji{padding:26px 0 18px}
#app .lab-play-panel .options{margin-top:12px}
#app .lab-play-panel [data-action="emoji-hide"]{font-size:12px}
@media(min-width:620px){
 #app .lab-game-setup .modebar{grid-template-columns:repeat(4,minmax(0,1fr))}
 #app .lab-game-setup .forge-modebar{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:360px){
 #app .lab-game-setup{padding:12px 10px}
 #app .lab-game-setup button{font-size:11px;padding:7px 4px}
 #app .lab-game-setup .emoji-category{font-size:10px}
 #app .lab-setup-caption{font-size:10px}
}


/* Game Lab visual system v2: compact settings + focused content, no gameplay state changes */
#app .gamehead{gap:11px;margin:17px 0 15px;min-width:0}
#app .gamehead>div{min-width:0;flex:1}
#app .gamehead h1{font-size:clamp(20px,5.2vw,28px);line-height:1.2}
#app .gamehead p{font-size:11px;line-height:1.4;margin-top:4px}
#app .gamehead .quiet{align-self:center;min-width:38px;font-size:12px;padding:7px}
#app .lab-play-panel{background:linear-gradient(155deg,#142740,#0e1d31 80%);border:1px solid #38516e;border-radius:18px;box-shadow:0 12px 24px #020a1830;padding:clamp(13px,3.7vw,20px);margin-bottom:12px}
#app .lab-play-panel>.bar:first-child,
#app .lab-play-panel>.lab-game-meta{padding-bottom:11px;border-bottom:1px solid #2c415b;margin-bottom:14px}
#app .lab-play-panel .bar .label{font-size:10px;letter-spacing:.055em;line-height:1.45}
#app .lab-play-panel .bar .status{font-size:11px;line-height:1.45}
#app .lab-play-panel>.buttons{margin-top:17px;padding-top:11px;border-top:1px solid #253952}
#app .lab-play-panel .buttons .btn{min-height:43px;border-radius:11px;font-size:12px}
#app .lab-play-panel .notice{border-radius:11px;line-height:1.55;font-size:12px}
#app .lab-play-panel .inputrow{gap:9px}
#app .lab-play-panel .field{border-radius:11px;min-height:43px}
#app .lab-play-panel .inputrow .btn{border-radius:11px;min-height:43px}
#app .lab-play-panel h2{letter-spacing:-.01em;line-height:1.35}
#app .lab-play-panel .subtle,#app .lab-play-panel .micro{line-height:1.55}
#app .lab-game-setup{padding:13px 13px 12px}
#app .lab-game-setup .modebar{margin:0!important}
#app .lab-game-setup .golf-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0;padding:0}
#app .lab-game-setup .golf-tool{min-width:0;width:100%;height:auto;min-height:43px;padding:9px 6px;font-size:11px;white-space:normal}
#app .lab-game-setup .forge-modebar{grid-template-columns:repeat(2,minmax(0,1fr))}
#app .lab-game-setup .modebar [aria-pressed="true"]{box-shadow:inset 0 0 0 1px #f5d49c24}
#app .lab-game-setup .modebar button:focus-visible,
#app .lab-game-setup .golf-tool:focus-visible{outline:2px solid #ecd093;outline-offset:2px}
#app .lab-play-panel .heist-result,#app .lab-play-panel .heist-feedback,
#app .lab-play-panel .collision-prompt,#app .lab-play-panel .parasite-word-box,
#app .lab-play-panel .mutation-current{border-radius:13px}
#app .lab-play-panel .heist-result,#app .lab-play-panel .collision-prompt{margin-top:12px}
#app .lab-play-panel .parasite-stats,#app .lab-play-panel .mutation-scores,
#app .lab-play-panel .collision-stats,#app .lab-play-panel .golf-score{gap:7px}
#app .lab-play-panel .parasite-stats>div,#app .lab-play-panel .mutation-scores>div,
#app .lab-play-panel .collision-stats>div,#app .lab-play-panel .golf-score>div{border-radius:11px}
#app .lab-play-panel .silent-hand{gap:8px}
#app .lab-golf-play .golf-tools{display:none}
#app .lab-game-setup .golf-tools{display:grid}
@media(max-width:390px){
 #app .gamehead{gap:8px}
 #app .gamehead h1{font-size:20px}
 #app .lab-game-setup .golf-tool{font-size:10px}
 #app .lab-play-panel .bar .status{font-size:10px}
}
@media(max-width:330px){
 #app .gamehead h1{font-size:18px}
 #app .lab-game-setup .golf-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Compact accessible modes — hiding settings never removes game actions */
#app .lab-game-setup-compact{padding:0;overflow:hidden;border-radius:15px}
#app .lab-setup-toggle{width:100%;border:0;background:transparent;color:#f0f3fc;display:flex;align-items:center;gap:12px;justify-content:space-between;text-align:left;min-height:60px;padding:12px 15px;cursor:pointer}
#app .lab-setup-toggle:hover{background:#23385250}
#app .lab-setup-toggle:focus-visible{outline:2px solid #f0cf97;outline-offset:-3px}
#app .lab-settings-summary{display:grid;gap:3px;min-width:0;line-height:1.25}
#app .lab-settings-summary strong{font-size:13px;font-weight:780;letter-spacing:.005em}
#app .lab-settings-summary small{font-size:11px;color:#acc2db;overflow-wrap:anywhere}
#app .lab-settings-chevron{color:#e5c087;font-size:20px;line-height:1}
#app .lab-setup-body{padding:0 13px 13px;border-top:1px solid #324967}
#app .lab-setup-body[hidden]{display:none!important}
#app .lab-setup-group:first-child{padding-top:12px}
#app .lab-play-panel .option:focus-visible,#app .lab-play-panel .btn:focus-visible,#app .lab-game-setup button:focus-visible{outline:2px solid #f4d39b;outline-offset:2px}
#app .lab-play-panel .option,#app .lab-play-panel .btn{touch-action:manipulation}
#app .lab-play-panel .option{overflow-wrap:anywhere;min-height:48px}
#app .lab-play-panel .gamebox{min-width:0}
#app .lab-play-panel input,#app .lab-play-panel textarea{font-size:16px}
@media(max-width:360px){
 #app .lab-setup-toggle{min-height:56px;padding:10px 12px}
 #app .lab-settings-summary strong{font-size:12px}
 #app .lab-settings-summary small{font-size:10px}
 #app .lab-play-panel{padding:12px}
}
@media(prefers-reduced-motion:reduce){
 #app .lab-setup-toggle,#app .lab-play-panel *,#app .lab-game-setup *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}

#app .emoji-team-message{margin:10px 0 13px;background:#1c3448;border:1px solid #47746c;border-radius:12px;padding:12px 14px;color:#deede9;line-height:1.45}#app .emoji-team-message strong{font-size:13px}#app .emoji-team-message p{font-size:12px;color:#b9d4d1;margin:5px 0 0}#app .emoji-team-message button{margin-top:10px;min-height:40px;font-size:12px}#app [data-emoji-team-vote].picked{border-color:#edcb93;background:#2f4158}#app [data-emoji-team-vote]:disabled{opacity:.8}
#app .golf-board-frame{transition:border-color .2s ease,box-shadow .2s ease}#app .golf-board-frame[data-world-theme="0"]{border-color:#71976b;box-shadow:0 8px 23px #030c1888,0 0 0 2px #8abb7a16}#app .golf-board-frame[data-world-theme="1"]{border-color:#5eb4c8;box-shadow:0 8px 23px #030c1888,0 0 0 2px #74d6e63b,0 0 24px #48bce42b}#app .golf-board-frame[data-world-theme="2"]{border-color:#cb8b66;box-shadow:0 8px 23px #030c1888,0 0 0 2px #efab6533,0 0 23px #ea803d21}#app .golf-board-frame[data-world-theme="3"]{border-color:#92a9b0;box-shadow:0 8px 23px #030c1888,0 0 0 2px #aec6d433}#app .golf-board-frame[data-world-theme="4"]{border-color:#8ba1d9;box-shadow:0 8px 23px #030c1888,0 0 0 2px #b3b6f63b,0 0 25px #7786e72b}@media(prefers-reduced-motion:reduce){#app .golf-board-frame{transition:none!important}}

/* CLOSER v1.2 Spectrum and room chat design pass — role-specific colors, accessible scale */
#closer-chat{
 --chat-you-bg:linear-gradient(145deg,#483f35 0%,#383941 65%,#303947 100%);
 --chat-you-line:#dcb878;
 --chat-partner-bg:linear-gradient(145deg,#204b79 0%,#193b62 60%,#183351 100%);
 --chat-partner-line:#70b9ed;
}
#closer-chat-sheet{border:1px solid #526f96;background:linear-gradient(169deg,#12243d,#0a182d 82%);box-shadow:0 18px 62px #000a,0 0 0 1px #c9e4ff0b}
#closer-chat .closer-chat-header{background:linear-gradient(115deg,#1b3453,#152a47);border-bottom:1px solid #405a76}
#closer-chat .closer-chat-header strong{font-size:17px;letter-spacing:-.015em;color:#f2ddba}
#closer-chat .closer-chat-header small:not(.closer-chat-typing){color:#b2c5da}
#closer-chat .closer-chat-typing:not([hidden]){display:inline-flex;align-items:center;gap:7px;margin-top:6px;padding:5px 9px;border:1px solid #46678c;border-radius:999px;background:#213b5b;color:#d9e9f9}
#closer-chat .closer-chat-typing:not([hidden])::before{content:"•••";color:#d7bf8f;letter-spacing:3px;font-weight:800}
#closer-chat-log{gap:12px;padding:14px 12px 18px;background:linear-gradient(155deg,#0b1a30,#09162a)}
#closer-chat .closer-chat-row{gap:2px}
#closer-chat .closer-chat-bubble{position:relative;max-width:calc(100% - 41px);padding:10px 12px 11px;border-radius:16px;box-shadow:0 4px 14px #020b1c45;min-width:0}
#closer-chat .closer-chat-row.mine .closer-chat-bubble{background:var(--chat-you-bg);border:1px solid var(--chat-you-line);border-bottom-right-radius:5px;box-shadow:0 4px 18px #040a194c,inset 0 1px #f3d2a02b}
#closer-chat .closer-chat-row.theirs .closer-chat-bubble{background:var(--chat-partner-bg);border:1px solid var(--chat-partner-line);border-bottom-left-radius:5px;box-shadow:0 4px 18px #040a194c,inset 0 1px #b4e2ff25}
#closer-chat .closer-chat-row.mine .closer-chat-meta{color:#f1d39c}
#closer-chat .closer-chat-row.theirs .closer-chat-meta{color:#a2ddff}
#closer-chat .closer-chat-bubble p{color:#f6f8fc;font-size:13px;line-height:1.48}
#closer-chat .closer-chat-reply-btn{flex-basis:29px;width:29px;height:32px;margin-left:3px;border-radius:9px;border-color:#496585;background:#172b46;font-size:16px;color:#d8dfe9;opacity:.84}
#closer-chat .closer-chat-reply-btn:focus-visible{opacity:1;outline:2px solid #f3d59d}
#closer-chat .closer-chat-compose{gap:8px;padding:11px;border-top:1px solid #365475;background:#10243d}
#closer-chat .closer-chat-compose #closer-chat-input{min-height:46px;border:1px solid #6884aa;border-radius:13px;background:#1c324f;color:#f1f5fc;padding:11px 12px}
#closer-chat .closer-chat-compose #closer-chat-input:focus-visible{border-color:#e9c38b;outline:2px solid #e9c38b55;outline-offset:1px}
#closer-chat .closer-chat-compose #closer-chat-send{min-width:68px;min-height:46px;border:1px solid #f4d69e;border-radius:12px;background:linear-gradient(155deg,#f4d99d,#deb87c);color:#17233a;box-shadow:inset 0 1px #fff7da8a;font-weight:800}
#closer-chat .closer-chat-privacy{background:#10243d;padding:0 12px 10px;color:#a8bdd5}
#closer-chat .closer-chat-quote{border-left-color:#8fb9e6;background:#12274199}
#closer-chat .closer-chat-row.mine .closer-chat-quote{border-left-color:#e7c484}
#app .spectrum-compare .spectrum-subtitle{font-size:13px;line-height:1.4;text-align:center;color:#c1d3e5;margin:5px 0 16px}
#app .spectrum-compare .spectrum-clue{background:linear-gradient(158deg,#203855,#122640);border:1px solid #627da0;box-shadow:inset 0 1px #e3effb16,0 8px 24px #030a192b;border-radius:17px;padding:18px 16px;margin:14px 0 19px}
#app .spectrum-compare .spectrum-clue small{color:#d7b983;font-size:10px;letter-spacing:.045em;line-height:1.55}
#app .spectrum-compare .spectrum-clue strong{display:block;color:#f5f2e9;font-size:clamp(18px,5.6vw,25px);line-height:1.35;letter-spacing:-.02em;font-weight:750;overflow-wrap:anywhere}
#app .spectrum-compare .spectrum-pole-labels{margin:13px 0 9px;gap:12px;font-weight:750;color:#e4ebf4;font-size:13px}
#app .spectrum-comparison{margin:0 0 17px}
#app .spectrum-compare .spectrum-comparison-track{position:relative;height:66px;margin:38px 10px 12px;border:1px solid #83aec5;border-radius:17px;background:linear-gradient(100deg,#185478 0%,#246183 38%,#385b77 65%,#253b60 100%);box-shadow:inset 0 2px 13px #07132f85,0 6px 20px #06101d44,0 0 0 1px #b1d7ef17}
#app .spectrum-comparison-ticks{position:absolute;inset:19px 13px;pointer-events:none;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),#c5e3fa48 calc(20% - 1px),#c5e3fa48 20%);opacity:.75}
#app .spectrum-comparison-gap{position:absolute;top:0;bottom:0;background:#f5d79f18;border-inline:1px solid #f8dfad35;pointer-events:none}
#app .spectrum-comparison-p1,#app .spectrum-comparison-p2{position:absolute;top:6px;height:54px;width:4px;transform:translateX(-50%);border-radius:999px;z-index:2}
#app .spectrum-comparison-p1{background:#f4d08c;box-shadow:0 0 12px #ffdb8db3}
#app .spectrum-comparison-p2{background:#77e2d7;box-shadow:0 0 12px #79f5e7a8}
#app .spectrum-comparison-p1::after,#app .spectrum-comparison-p2::after{content:"";position:absolute;width:9px;height:9px;left:50%;bottom:-4px;transform:translateX(-50%);border-radius:50%;background:inherit;box-shadow:inherit}
#app .spectrum-comparison-p1 span,#app .spectrum-comparison-p2 span{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);min-width:25px;text-align:center;font-size:12px;font-weight:850;padding:5px 6px;border-radius:11px 11px 7px 7px;background:#f3d297;color:#1b2b41;box-shadow:0 3px 10px #040b1f55}
#app .spectrum-comparison-p2 span{background:#7de4da;color:#142f42}
#app .spectrum-comparison-track.is-close .spectrum-comparison-p2 span{bottom:calc(100% + 35px)}
#app .spectrum-comparison-track.is-close{margin-top:57px}
#app .spectrum-player-key{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 15px;margin:12px 8px 5px}
#app .spectrum-player-key span{display:inline-flex;align-items:center;gap:6px;color:#cfdeee;font-size:12px}
#app .spectrum-player-key strong{color:#f0f5fb;font-variant-numeric:tabular-nums}
#app .spectrum-player-key i{display:inline-block;width:9px;height:9px;border-radius:50%}
#app .spectrum-key-1{background:#f3cc8a;box-shadow:0 0 0 2px #f3cc8a25}
#app .spectrum-key-2{background:#7de0d6;box-shadow:0 0 0 2px #7de0d625}
#app .spectrum-result-card{border:1px solid #b9a27b;border-radius:16px;background:linear-gradient(160deg,#213447,#172d3d);box-shadow:inset 0 1px #f3d5a423,0 8px 24px #020b162e;margin:17px 0 14px;padding:17px 15px}
#app .spectrum-result-card .spectrum-result-headline{display:block;color:#f3d6a2;font-size:clamp(16px,4.7vw,21px);line-height:1.35;margin:0 0 13px}
#app .spectrum-result-scores{display:flex;flex-wrap:wrap;gap:8px}
#app .spectrum-result-scores span{display:inline-block;padding:7px 10px;background:#274357;border:1px solid #4d6b7f;border-radius:9px;font-size:12px;color:#dceaf3}
#app .spectrum-result-scores b{font-variant-numeric:tabular-nums;color:#fff}
#app .spectrum-result-stats{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
#app .spectrum-result-stats span{font-size:11px;color:#c6d9e5;background:#0f2a39;border:1px solid #39586a;border-radius:8px;padding:7px 9px}
#app .spectrum-result-stats b{color:#ecd09a}
#app .spectrum-result-card p.spectrum-result-question{font-size:12px;color:#d0e0e7;line-height:1.55;padding-top:12px;border-top:1px solid #4c6474;margin-top:13px}
#app .spectrum-compare .buttons .btn.primary{min-height:46px;border-radius:12px;font-weight:800}
#app .spectrum-compare .spectrum-slider-label{font-size:12px;line-height:1.5}
#app .spectrum-compare input[type=range]{accent-color:#eac58a;touch-action:pan-x}
@media(max-width:360px){
 #closer-chat .closer-chat-bubble{padding:9px 10px}
 #app .spectrum-compare .spectrum-clue{padding:15px 12px}
 #app .spectrum-compare .spectrum-comparison-track{margin-inline:6px}
 #app .spectrum-result-card{padding:13px 11px}
 #app .spectrum-result-stats span{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 #closer-chat .closer-chat-bubble{transition:none!important}
 #app .spectrum-comparison-track *{transition:none!important;animation:none!important}
}


/* Final Spectrum interaction polish: 0–100 scale, readable private marker and touch input */
#app .spectrum-game .spectrum-meter{height:56px;margin:12px 8px 13px;border:1px solid #7c9db7;border-radius:15px;background:linear-gradient(95deg,#1c5675,#39657f 56%,#314764);box-shadow:inset 0 3px 12px #0a1d3390,0 6px 18px #030a1830;overflow:visible;position:relative}
#app .spectrum-game .spectrum-meter::before{content:"";pointer-events:none;position:absolute;inset:12px 10px;opacity:.55;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(20% - 1px),#d1e7f84a calc(20% - 1px),#d1e7f84a 20%)}
#app .spectrum-game .spectrum-meter .needle{z-index:2;width:5px;border-radius:999px;box-shadow:0 0 10px #79d5f880;transform:translateX(-50%)}
#app .spectrum-game .spectrum-meter .spectrum-target{width:5px;background:#f0ca87;box-shadow:0 0 10px #ebc17c9a;z-index:3}
#app .spectrum-game .spectrum-slider-label{display:block;margin:12px 0 4px;color:#c8d8e8;font-size:12px}
#app .spectrum-game input[type="range"]{width:100%;accent-color:#e6c087;min-height:44px;cursor:pointer}
#app .spectrum-compare .spectrum-private-note{font-size:11px;color:#aebed1;text-align:center;margin:8px 0 0}
#app .spectrum-compare .spectrum-pole-labels span{max-width:46%;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:350px){#app .spectrum-player-key{gap:6px}#app .spectrum-player-key span{font-size:11px}#app .spectrum-compare .spectrum-comparison-track{height:58px}}


/* The Spectrum concise content: keep one clear question, concise turn feedback */
#app .spectrum-compare .spectrum-compact-header{margin:0 0 12px;padding-bottom:11px}
#app .spectrum-compact-header .label{text-transform:none;letter-spacing:.01em;font-size:12px;color:#e7ce9c;font-weight:780}
#app .spectrum-compact-header .status{font-size:11px;color:#afc4d9;white-space:nowrap}
#app .spectrum-compare .spectrum-debate-question{padding:16px 14px;margin:12px 0 16px}
#app .spectrum-compare .spectrum-debate-question small{font-size:10px;letter-spacing:.09em;color:#d3bd96}
#app .spectrum-compare .spectrum-debate-question strong{font-size:clamp(21px,5.9vw,27px);line-height:1.2}
#app .spectrum-compare .spectrum-pole-labels{margin:14px 0 12px}
#app .spectrum-compare .spectrum-debate-options{gap:9px;margin:12px 0}
#app .spectrum-compare .spectrum-debate-option{min-height:76px;padding:13px 15px;font-size:14px;line-height:1.35;background:#203451;border-color:#536e8e}
#app .spectrum-compare .spectrum-debate-option small{font-size:10px;margin-bottom:5px;color:#e2c38d}
#app .spectrum-compare .spectrum-ready-pills{margin-top:12px}
#app .spectrum-compare .spectrum-subtitle{font-size:12px;margin:7px 0 13px;color:#b9cbdf}
#app .spectrum-compare .spectrum-debate-option:focus-visible{outline:2px solid #edce94;outline-offset:2px}
@media(max-width:360px){#app .spectrum-compare .spectrum-debate-option{padding:11px 12px;min-height:70px}#app .spectrum-compare .spectrum-debate-question{padding:13px 12px}}

/* A typing hint is only visible while the other player is actively typing. */
#closer-chat .closer-chat-typing[hidden]{display:none!important}


/* CLOSER chat — warm gold + rose pink, clear contrast on Midnight Sapphire. */
#closer-chat{
 --chat-partner-bg:linear-gradient(145deg,#663657 0%,#542d50 54%,#3c2847 100%);
 --chat-partner-line:#f4a4d1;
}
#closer-chat .closer-chat-row.theirs .closer-chat-bubble{
 background:var(--chat-partner-bg);
 border:1px solid var(--chat-partner-line);
 border-bottom-left-radius:5px;
 box-shadow:0 5px 18px #13071c50,inset 0 1px 0 #ffd0ed25;
}
#closer-chat .closer-chat-row.theirs .closer-chat-meta{
 color:#ffd0e9;
 font-weight:700;
}
#closer-chat .closer-chat-row.mine .closer-chat-meta{
 color:#f3d297;
 font-weight:700;
}
#closer-chat .closer-chat-row.theirs .closer-chat-quote{
 background:#442d4c;
 border-left:3px solid #f1a4d0;
 color:#fce7f4;
}
#closer-chat .closer-chat-row.theirs .closer-chat-quote small{color:#ffd1e9}
#closer-chat .closer-chat-bubble{
 max-width:min(85%,calc(100% - 43px));
 min-width:0;
 overflow-wrap:anywhere;
 word-break:normal;
}
#closer-chat .closer-chat-bubble p{
 white-space:pre-wrap;
 overflow-wrap:anywhere;
 word-break:break-word;
 line-height:1.52;
}
#closer-chat .closer-chat-reply-btn{
 flex:0 0 30px;
 width:30px;
 height:34px;
 margin-left:3px;
 align-self:center;
 background:#17283e;
 border:1px solid #47617f;
 border-radius:11px;
 color:#bed1e6;
 font-size:17px;
 opacity:.82;
}
#closer-chat .closer-chat-row.theirs .closer-chat-reply-btn{
 color:#f3b9dc;
 border-color:#855878;
 background:#34283f;
}
#closer-chat .closer-chat-reply-btn:hover,
#closer-chat .closer-chat-reply-btn:focus-visible{
 opacity:1;
 outline-offset:2px;
}
#closer-chat .closer-chat-header{border-bottom-color:#48607b}
#closer-chat .closer-chat-typing:not([hidden]){
 border-color:#745571;
 background:#3c304c;
 color:#fbd3e9;
}
#closer-chat .closer-chat-typing:not([hidden])::before{color:#efa9ce}
#closer-chat .closer-chat-row.mine .closer-chat-bubble{
 background:var(--chat-you-bg);
 border-color:var(--chat-you-line);
}
@media(max-width:360px){
 #closer-chat .closer-chat-bubble{max-width:min(86%,calc(100% - 37px));padding:10px 11px}
 #closer-chat .closer-chat-reply-btn{flex-basis:27px;width:27px;height:32px;font-size:15px}
}


/* v1.3 — distinct Mini Golf shot feedback and compact cooperative Mix journey */
#app .golf-fx-hazard{background:linear-gradient(135deg,#17485d,#244b6a);border:1px solid #83cade;color:#f6f8ff;box-shadow:0 6px 22px #02091588}
#app .golf-fx-cup{background:linear-gradient(135deg,#395b36,#254c4a);border:1px solid #d8cb80;color:#fff6d9;box-shadow:0 0 22px #e8c67b5e,0 8px 22px #030c1d}
#app .golf-fx-shot{background:#25384f;border-color:#7192ac;color:#f3f7fd}
#app .mix-progress{background:linear-gradient(152deg,#152a43,#111e35);border:1px solid #58789e!important;padding:15px;border-radius:17px}
#app .mix-head{margin:0 0 13px;padding:0 0 11px;border-bottom:1px solid #344b66;align-items:center}
#app .mix-head strong{color:#f4d59d;font-size:14px;letter-spacing:.025em}
#app .mix-head .status{color:#c6d5e8;font-size:11px}
#app .mix-timeline{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:9px 0 15px}
#app .mix-step{display:grid;place-items:center;height:32px;border-radius:10px;border:1px solid #415877;background:#182b45;color:#9fb4d0;font-size:12px;font-weight:800}
#app .mix-step.done{background:#2d5149;border-color:#79bc9d;color:#d6ffeb}
#app .mix-step.current{background:#e8c38a;border-color:#ffe0a6;color:#19253a;box-shadow:0 0 0 2px #d5b37b25}
#app .mix-current{font-size:12px;line-height:1.5;color:#cfdaeb;margin:0 0 12px}
#app .mix-score-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 13px;margin:0 0 12px;border:1px solid #435e7d;border-radius:12px;background:#152942;color:#c5d8ed;font-size:12px}
#app .mix-score-line strong{color:#f4d399;font-size:18px;font-variant-numeric:tabular-nums}
#app .mix-score-line small{color:#b8cbe0;font-size:11px}
#app .mix-results{display:grid;gap:6px;margin:10px 0 15px}
#app .mix-result-row{display:flex;justify-content:space-between;gap:8px;padding:9px 11px;background:#1b304c;border:1px solid #3c5574;border-radius:9px;color:#dbe6f3;font-size:11px}
#app .mix-result-row strong{color:#f5d69a;font-variant-numeric:tabular-nums}
#app .mix-progress>.buttons{margin:10px 0 0}
#app .mix-progress>.buttons .btn{min-height:43px;border-radius:11px}
@media(max-width:360px){#app .mix-progress{padding:12px}#app .mix-timeline{gap:6px}#app .mix-step{height:29px}}
@media(prefers-reduced-motion:reduce){#app .golf-fx{animation:none!important;transition:none!important}}


/* CLOSER homepage design pass — restrained Midnight Sapphire, no game/server changes */
#roomPanel{margin-top:13px}
#roomPanel .lab-room-modern{
 padding:18px;gap:13px;border-radius:19px;
 background:linear-gradient(150deg,#142741,#101f36 76%);
 border-color:#48627e;box-shadow:0 10px 27px #010a192c
}
#roomPanel .lab-room-header{flex-wrap:nowrap;gap:10px;align-items:flex-start}
#roomPanel .lab-room-heading small{display:flex;align-items:center;gap:7px;font-size:10px;color:#9fb9d4}
#roomPanel .lab-room-lock{display:inline-grid;place-items:center;border:1px solid #526a87;background:#1b3451;border-radius:7px;width:22px;height:22px;color:#f1d39a;font-size:16px;line-height:1}
#roomPanel .lab-room-heading strong{font-size:clamp(19px,5vw,24px)}
#roomPanel .lab-room-status{font-size:11px;padding:7px 9px;flex-shrink:0}
#roomPanel .lab-room-actions{gap:10px}
#roomPanel .lab-room-action-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#roomPanel .lab-room-action-primary [data-net=copy]{grid-column:1/-1;min-height:49px;font-size:15px}
#roomPanel .lab-room-action-secondary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding-top:11px}
#roomPanel .lab-room-action-secondary .btn{min-height:39px;font-size:11px;font-weight:650;padding:8px 5px;background:#14283f;border-color:#3a5571}
#roomPanel .lab-room-actions .btn{transition:transform .15s ease,border-color .15s ease,background-color .15s ease}
#roomPanel .lab-room-actions .btn:not(:disabled):active{transform:scale(.975)}
#roomPanel [data-net=copy]::before{content:"🔗 ";font-size:14px}
#roomPanel [data-net=rotate]::before{content:"＋ ";font-weight:800}
#roomPanel [data-net=refresh]::before{content:"↻ ";font-size:17px}
#roomPanel [data-net=diagnostics]::before{content:"⌁ "}
#roomPanel [data-net=leave]::before{content:"↪ "}
#roomPanel [data-net=close]::before{content:"× "}
#roomPanel .lab-room-feedback{padding:9px 11px;margin:0;font-size:11px;line-height:1.4}
#app .lab-home-hero{padding:26px 3px 18px;text-align:left}
#app .lab-home-hero .eyebrow{display:block;font-size:10px;letter-spacing:.19em;font-weight:800;color:#d3b57f;margin-bottom:9px}
#app .lab-home-hero h1{font-size:clamp(30px,8vw,51px);line-height:1.06;letter-spacing:-.045em;max-width:19ch;margin:0 0 11px}
#app .lab-home-hero>p{font-size:13px;color:#b5c8dd;margin:0}
#app .lab-home-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:19px}
#app .lab-home-actions .btn{width:100%;min-height:49px;margin:0!important;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;font-weight:780;transition:transform .17s ease,filter .17s ease,border-color .17s ease;box-shadow:none}
#app .lab-home-actions .btn:not(:disabled):active{transform:scale(.98)}
#app .lab-home-mix{background:linear-gradient(125deg,#f0d298,#dcb77b);border-color:#efd49d;color:#102037}
#app .lab-home-mix small{font-size:11px;color:#4b3e32;margin-left:4px}
#app .lab-home-surprise{background:#1c304b;border-color:#517294}
#app .lab-home-featured{margin:16px 0 20px}
#app .lab-featured-heading,#app .lab-catalog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
#app .lab-featured-heading h2,#app .lab-catalog-head h2{font-size:16px;letter-spacing:-.02em;margin:0;color:#eaf0fa}
#app .lab-featured-heading a{font-size:11px;color:#e8ca92;text-decoration:none;white-space:nowrap;padding:6px}
#app .lab-catalog-head span{font-size:11px;color:#a5bed8}
#app .lab-featured-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
#app .lab-featured-card{border:1px solid #476583;border-radius:14px;background:linear-gradient(145deg,#1b304b,#14253c);color:#eef2fa;min-height:116px;min-width:0;padding:12px 6px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer;text-align:center;transition:transform .18s ease,border-color .18s ease,background-color .18s ease}
#app .lab-featured-symbol{display:grid;place-items:center;font-size:30px;width:49px;height:49px;border-radius:14px;background:#1c3956;box-shadow:inset 0 1px #b9d8ef27}
#app .lab-featured-card strong{font-size:11px;line-height:1.3;max-width:12ch}
#app .lab-featured-card[data-theme=golf]{background:linear-gradient(145deg,#173e3e,#172a3d)}
#app .lab-featured-card[data-theme=golf] .lab-featured-symbol{background:#24534b}
#app .lab-featured-card[data-theme=spectrum]{background:linear-gradient(145deg,#29304c,#17283d)}
#app .lab-featured-card[data-theme=spectrum] .lab-featured-symbol{background:#353b62}
#app .lab-featured-card[data-theme=meld]{background:linear-gradient(145deg,#392b4b,#1b263c)}
#app .lab-featured-card[data-theme=meld] .lab-featured-symbol{background:#4a3057}
#app .lab-featured-card:focus-visible,#app .game-card:focus-visible{outline:2px solid #f0d29e;outline-offset:2px}
#app .lab-featured-card:not(:disabled):active{transform:scale(.97)}
#app .lab-game-catalog{gap:10px;margin-top:0}
#app .lab-game-catalog .game-card{position:relative;overflow:hidden;min-width:0;min-height:148px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;padding:13px;border-radius:15px;background:linear-gradient(150deg,#1c2f48,#122239);border:1px solid #3c5574;transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}
#app .lab-game-catalog .game-card .symbol{display:grid;place-items:center;font-size:25px;width:43px;height:43px;line-height:1;border-radius:12px;background:#263c58;margin:3px 0 4px}
#app .lab-game-catalog .game-card strong{font-size:13px;line-height:1.22;letter-spacing:-.01em}
#app .lab-game-catalog .game-card .micro{font-size:11px;line-height:1.35;color:#aec3d9}
#app .lab-game-catalog .game-card .number{color:#d9bd89;font-size:10px}
#app .lab-game-catalog .game-card[data-theme=golf] .symbol,#app .lab-game-catalog .game-card[data-theme=heist] .symbol{background:#244c48}
#app .lab-game-catalog .game-card[data-theme=meld] .symbol,#app .lab-game-catalog .game-card[data-theme=mirror] .symbol{background:#433356}
#app .lab-game-catalog .game-card[data-theme=spectrum] .symbol,#app .lab-game-catalog .game-card[data-theme=ranking] .symbol{background:#303c63}
#app .lab-game-catalog .game-card[data-theme=emoji] .symbol,#app .lab-game-catalog .game-card[data-theme=bluff] .symbol{background:#544043}
@media(hover:hover) and (pointer:fine){
 #app .lab-featured-card:hover{transform:translateY(-3px);border-color:#c9b98c}
 #app .lab-game-catalog .game-card:hover{transform:translateY(-3px);border-color:#7798bb;box-shadow:0 8px 24px #030b1c65}
 #app .lab-home-actions .btn:hover{filter:brightness(1.07)}
}
@media(min-width:600px){#app .lab-home-actions{grid-template-columns:1fr 1fr}#app .lab-home-hero h1 br{display:none}#app .lab-featured-card{min-height:130px}#roomPanel .lab-room-action-primary{grid-template-columns:1.4fr 1fr 1fr}#roomPanel .lab-room-action-primary [data-net=copy]{grid-column:auto}}
@media(max-width:360px){#roomPanel .lab-room-modern{padding:13px;gap:11px}#roomPanel .lab-room-action-secondary{grid-template-columns:repeat(3,minmax(0,1fr))}#roomPanel .lab-room-action-secondary .btn{font-size:10px;min-height:42px}#roomPanel .lab-room-status{font-size:10px;padding:6px 7px}#app .lab-featured-grid{gap:7px}#app .lab-featured-card{min-height:106px;padding:10px 3px}#app .lab-featured-card strong{font-size:10px}#app .lab-game-catalog .game-card{padding:11px;min-height:142px}}
@media(prefers-reduced-motion:no-preference){#app .lab-featured-card,#app .lab-game-catalog .game-card{animation:labHomeRise .36s both}#app .lab-featured-card:nth-child(2),#app .lab-game-catalog .game-card:nth-child(2){animation-delay:.05s}#app .lab-featured-card:nth-child(3),#app .lab-game-catalog .game-card:nth-child(3){animation-delay:.09s}@keyframes labHomeRise{from{opacity:.72;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){#app .lab-featured-card,#app .lab-game-catalog .game-card,#app .lab-home-actions .btn,#roomPanel .lab-room-actions .btn{animation:none!important;transition:none!important}}


/* Room-action layout final guard: prevent legacy responsive rules from stretching diagnostics. */
#roomPanel .lab-room-modern .lab-room-actions{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0}
#roomPanel .lab-room-modern .lab-room-action-primary,
#roomPanel .lab-room-modern .lab-room-action-secondary{width:100%;min-width:0;max-width:none;align-self:stretch;justify-self:stretch}
#roomPanel .lab-room-modern .lab-room-action-primary [data-net=copy]{grid-column:1/-1;width:100%}
#roomPanel .lab-room-modern .lab-room-action-secondary [data-net=diagnostics]{grid-column:auto}


/* Double Meaning 1.4 — four concise modes, crisp private clue cards. */
#app .dm14-modes,.double-modebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
#app .dm14-mode,#app .double-modebar .btn{border:1px solid #47627d;border-radius:12px;padding:10px;min-height:64px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-align:center;background:#1b2d48;color:#dce9f6}
#app .dm14-mode span{font-size:20px;color:#e8c58e}
#app .dm14-mode b{font-size:12px}
#app .dm14-mode small,#app .double-modebar .btn small{font-size:10px;color:#b1c6dc}
#app .dm14-mode.selected{border-color:#e8c58e;background:#3c3950;box-shadow:inset 0 1px #e6cb9833}
#app .dm14-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:8px 0 15px}
#app .dm14-overline{font-size:10px;color:#dfc28e;letter-spacing:.12em;font-weight:800}
#app .dm14-head h2{font-size:23px;margin:5px 0 5px;letter-spacing:-.025em}
#app .dm14-head p{font-size:12px;line-height:1.5;color:#b6c8da;margin:0}
#app .dm14-round{white-space:nowrap;border:1px solid #46627f;background:#1b2f4c;border-radius:9px;padding:7px 9px;font-size:11px;color:#d2e3f6}
#app .dm14-score{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;padding:12px;background:#142a40;border:1px solid #3e5876;border-radius:12px;color:#b9cfe4;margin-bottom:13px}
#app .dm14-score b{color:#f2d498;font-size:15px}
#app .dm14-clue-grid{display:grid;gap:10px}
#app .dm14-clue{border:1px solid #6483a6;border-radius:14px;padding:16px 14px;background:linear-gradient(145deg,#1c3755,#1b2c48);min-height:99px}
#app .dm14-clue:nth-child(2){background:linear-gradient(145deg,#342d50,#1c3048);border-color:#79668f}
#app .dm14-clue span{display:block;color:#ebca94;font-size:10px;letter-spacing:.09em;font-weight:800}
#app .dm14-clue p{font-size:16px;line-height:1.42;color:#f6f7fb;margin:9px 0 0}
#app .dm14-clue.locked{border-style:dashed;opacity:.85}
#app .dm14-clue.locked p{color:#c6d6e7;font-size:13px}
#app .dm14-entry{margin:15px 0 10px}
#app .dm14-entry label{display:block;font-size:12px;color:#c6daed;margin-bottom:7px}
#app .dm14-input-row{display:flex;gap:8px}
#app .dm14-input-row input{min-width:0;flex:1;min-height:47px;font-size:16px;border:1px solid #6f8db0}
#app .dm14-input-row .btn{min-height:47px;flex:0 0 auto;padding:10px 14px}
#app .dm14-proposal,#app .dm14-reveal{border:1px solid #9c825b;border-radius:13px;background:#263a48;padding:15px;margin:13px 0}
#app .dm14-proposal small,#app .dm14-reveal small{font-size:10px;color:#e5c891;letter-spacing:.1em;font-weight:800}
#app .dm14-proposal strong,#app .dm14-reveal strong{display:block;font-size:27px;color:#f6d9a1;margin:7px 0}
#app .dm14-proposal p,#app .dm14-reveal p{color:#d0e0e9;font-size:12px}
#app .dm14-actions,.dm14-help{display:flex;gap:8px;margin-top:13px;flex-wrap:wrap}
#app .dm14-actions .btn,#app .dm14-help .btn{min-height:43px;flex:1}
#app .dm14-next{min-height:47px;width:100%;margin-top:12px}
#app .dm14-hint{border-left:3px solid #e7c78e;background:#2a3245;padding:9px 12px;font-size:12px;margin:10px 0}
#app .dm14-message{color:#d8dfed;font-size:12px;margin-top:12px}
#app .dm14-error{color:#ffbbbf;font-size:12px}
#app .dm14-footer{font-size:11px;color:#a3bbd5;margin-top:15px}
#app .double-game .double-intro{font-size:12px}
#app .double-game .double-clues{gap:10px}
#app .double-game .double-clue{min-height:100px;border-radius:14px;padding:15px}
#app .double-game .double-clue p{font-size:15px;line-height:1.48}
#app .double-game .double-reveal{border-radius:15px}
#app .double-game .double-entry input{font-size:16px;min-height:47px}
#app .double-classic-bonus{margin:12px 0}
#app .double-classic-bonus .btn{min-height:44px}
@media(max-width:355px){#app .dm14-mode b{font-size:11px}#app .dm14-head h2{font-size:20px}#app .dm14-score{font-size:10px}#app .dm14-clue p{font-size:14px}#app .dm14-input-row .btn{padding:9px 10px}}
@media(prefers-reduced-motion:no-preference){#app .dm14-reveal{animation:dm14Reveal .24s ease-out}@keyframes dm14Reveal{from{opacity:.65;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){#app .dm14-game *,#app .double-game *{animation:none!important;transition:none!important}}


/* Two-player Mini Golf: independent scores, familiar sapphire style */
#app .golf-duo-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 10px}
#app .golf-duo-mode{min-height:75px;min-width:0;border:1px solid #4b6885;border-radius:13px;background:#192f49;color:#eef4f9;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:8px;text-align:center}
#app .golf-duo-mode b{font-size:12px;line-height:1.3}
#app .golf-duo-mode small{font-size:10px;color:#b7c8dd;line-height:1.3}
#app .golf-duo-mode.selected{background:#323e50;border-color:#e6c48b;box-shadow:inset 0 1px #ffffff1a}
#app .golf-duo-mode:disabled{opacity:.55}
#app .golf-duo-scoreboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
#app .golf-duo-player{padding:11px;display:flex;flex-direction:column;gap:6px;border:1px solid #a58961;background:#393c45;border-radius:13px}
#app .golf-duo-player.partner{background:#432d48;border-color:#cb8dbb}
#app .golf-duo-player small{color:#f0d099;font-size:10px;font-weight:800}
#app .golf-duo-player.partner small{color:#ffd0ea}
#app .golf-duo-player strong{color:#fff;font-size:23px;font-variant-numeric:tabular-nums}
#app .golf-duo-player em{font-size:10px;color:#bed1df;font-style:normal;font-weight:500}
#app .golf-duo-player span{font-size:11px;color:#dce5ee}
#app .golf-duo-hint{font-size:11px;color:#b8cbdc;line-height:1.5;margin:9px 0}
#app .golf-duo-result{border:1px solid #d5b681;border-radius:11px;background:#263949;color:#f6daa6;padding:13px;margin:10px 0}
#app .golf-duo-result strong{font-size:17px}
#app .golf-duo-result p{color:#d7e6ee;font-size:12px}
#app .golf-duo-next{width:100%;min-height:45px;margin:8px 0}
#app .golf-duo-exit{display:block;margin:12px auto 5px;color:#b2c5d9;background:transparent;border:0;font-size:11px;min-height:38px;cursor:pointer}
#app .golf-duo-error{color:#ffbec5;font-size:12px}
@media(max-width:350px){#app .golf-duo-mode b{font-size:11px}#app .golf-duo-player{padding:9px}}
@media(prefers-reduced-motion:reduce){#app .golf-duo-mode,#app .golf-duo-player{transition:none!important;animation:none!important}}

#app .dm14-round{text-transform:capitalize;font-variant-numeric:tabular-nums}
#app .golf-duo-player.mine{border-color:#e4c18c}
#app .golf-duo-player.partner{border-color:#eaa4ce}

/* v1.5 connected room identities and player self-edit */
#roomPanel .lab-room-modern .lab-room-heading strong{font-size:clamp(17px,4.7vw,22px);line-height:1.25}
#roomPanel .closer-player-identities{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;width:100%;margin:3px 0 1px}
#roomPanel .closer-player-chip{display:flex;align-items:center;gap:8px;min-width:0;padding:10px 9px;border-radius:12px;background:linear-gradient(145deg,#283b51,#1b3045);border:1px solid #826a4f}
#roomPanel .closer-player-chip.partner{background:linear-gradient(145deg,#3a304b,#222f45);border-color:#946a8c}
#roomPanel .closer-player-avatar{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:9px;background:#66513e;color:#ffe3ae;font-weight:850;font-size:12px}
#roomPanel .closer-player-chip.partner .closer-player-avatar{background:#64425d;color:#ffe0f1}
#roomPanel .closer-player-copy{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
#roomPanel .closer-player-copy small{font-size:9px;letter-spacing:.05em;color:#c4cfe0;font-weight:800}
#roomPanel .closer-player-copy b{color:#f0f4fb;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
#roomPanel .closer-player-dot{width:7px;height:7px;flex:0 0 7px;border-radius:100%;background:#7290ac}
#roomPanel .closer-player-dot.online{background:#8bdeb2;box-shadow:0 0 0 3px #8bdeb21a}
#roomPanel .closer-player-dot.offline{background:#8fa0b5}
#roomPanel .closer-room-name-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 1px;font-size:11px;color:#bbcee1}
#roomPanel .closer-room-name-row strong{color:#f1d7a4}
#roomPanel .closer-name-edit{border:1px solid #617b9b;background:#1d3450;border-radius:9px;color:#d9e5f7;font-weight:700;font-size:11px;min-height:36px;padding:7px 10px;cursor:pointer}
#roomPanel .closer-room-name-notice{font-size:11px;color:#b4e3cb;margin:0}
.closer-name-dialog-open{overflow:hidden}
.closer-name-overlay{position:fixed;inset:0;z-index:11000;display:grid;place-items:center;padding:18px;background:#050a16c9}
.closer-name-dialog{width:min(390px,100%);border:1px solid #607f9d;background:#142840;color:#ecf3f9;border-radius:19px;box-shadow:0 18px 65px #0009;padding:18px;max-height:90dvh;overflow:auto}
.closer-name-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:start}
.closer-name-dialog-head small{font-size:10px;color:#d8b982;letter-spacing:.13em}
.closer-name-dialog-head h2{font-size:21px;margin:5px 0}
.closer-name-close{background:#2b405c;border:1px solid #537391;color:#e2eefb;border-radius:10px;width:35px;height:35px;font-size:21px}
.closer-name-dialog p{font-size:12px;color:#bbcee3;line-height:1.45}
.closer-name-dialog label{display:block;color:#dbecfb;font-size:12px;margin:16px 0 8px}
.closer-name-dialog .field{width:100%;min-height:48px;font-size:16px}
.closer-name-actions{display:flex;justify-content:stretch;gap:9px;margin-top:14px}
.closer-name-actions .btn{flex:1;min-height:44px}
.closer-name-dialog .closer-name-error{color:#ffbecb}
#app details.duo-how{border:1px solid #486784;border-radius:12px;overflow:hidden;background:#182d45;margin-top:12px;margin-bottom:10px}
#app details.duo-how summary{min-height:42px;display:flex;align-items:center;gap:8px;font-size:12px;font-weight:800;cursor:pointer;padding:10px 12px;color:#eff4fc}
#app .duo-guide-icon{font-size:17px}
#app .duo-guide-hint{font-size:10px;font-weight:500;color:#adc5de;margin-left:auto}
#app .duo-how-body{padding:4px 13px 13px}
#app .duo-guide-goal{margin:0 0 12px;line-height:1.5;color:#f0f2f9;font-size:12px}
#app .duo-guide-goal strong{display:block;color:#dfc48f;font-size:10px;letter-spacing:.09em;margin-bottom:3px}
#app .duo-how-body ol{padding-left:22px;margin:9px 0 12px}
#app .duo-how-body li{line-height:1.48;padding-left:3px;margin:0 0 9px;font-size:12px;color:#dde9f5}
#app .duo-guide-foot{padding:9px 11px;border-radius:10px;background:#223a53;border-left:3px solid #e5c48b;font-size:11px;color:#d5e4f2}
@media(max-width:360px){#roomPanel .closer-player-identities{gap:6px}#roomPanel .closer-player-chip{padding:8px 6px;gap:5px}#roomPanel .closer-player-avatar{flex-basis:23px;width:23px;height:23px}#roomPanel .closer-player-copy b{font-size:11px}#roomPanel .closer-player-copy small{font-size:8px}}
@media(prefers-reduced-motion:reduce){.closer-name-overlay *,#app .duo-how *{animation:none!important;transition:none!important}}


#app .golf-duo-history{border:1px solid #4c6684;background:#162d44;border-radius:12px;margin:12px 0;overflow:hidden}
#app .golf-duo-history summary{padding:12px;font-size:12px;color:#e0d0b0;font-weight:750;cursor:pointer;min-height:43px}
#app .golf-duo-history-wrap{padding:0 9px 11px;overflow-x:auto}
#app .golf-duo-history table{width:100%;border-collapse:collapse;font-size:11px;color:#e9f0f9;font-variant-numeric:tabular-nums}
#app .golf-duo-history th,#app .golf-duo-history td{text-align:center;padding:8px 5px;border-bottom:1px solid #385269}
#app .golf-duo-history thead th{color:#b9cee2;font-size:10px;max-width:115px;overflow-wrap:anywhere}
#app .golf-duo-history .best{font-weight:850;color:#e8d19c}
#app .golf-duo-history tfoot th,#app .golf-duo-history tfoot td{font-size:12px;font-weight:850;color:#f0d099;border-bottom:0}
@media(prefers-reduced-motion:no-preference){#app .golf-duo-result{animation:closerResultEnter .28s ease-out both}@keyframes closerResultEnter{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}


#app .closer-guide-catalog-btn{border:1px solid #56718b;background:#20364e;color:#e9ca94;font-size:11px;font-weight:750;border-radius:10px;min-height:38px;padding:8px 11px;cursor:pointer}
.closer-guide-open{overflow:hidden}
.closer-guide-overlay{position:fixed;inset:0;z-index:12000;background:#070b17d8;display:grid;place-items:center;padding:12px}
.closer-guide-dialog{background:#10233b;border:1px solid #607a99;color:#eff4fb;border-radius:18px;max-height:94dvh;overflow:auto;width:min(570px,100%);padding:15px;box-shadow:0 20px 75px #030616cf}
.closer-guide-head{display:flex;align-items:start;justify-content:space-between;gap:10px}
.closer-guide-head small{color:#d8bb84;font-size:10px;font-weight:800;letter-spacing:.09em}
.closer-guide-head h2{font-size:21px;margin:5px 0 12px}
.closer-guide-head>button{border:1px solid #536e8f;background:#213a54;color:#f3f7fc;font-size:21px;width:36px;height:36px;border-radius:9px;cursor:pointer;flex-shrink:0}
.closer-guide-tabs{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;padding:4px 0 10px;margin:0 0 12px;scrollbar-width:thin}
.closer-guide-tab{white-space:nowrap;flex:0 0 auto;scroll-snap-align:start;border:1px solid #41627e;border-radius:9px;padding:8px 9px;min-height:37px;color:#d6e4f2;background:#203853;font-size:11px}
.closer-guide-tab.selected{background:#423d4d;border-color:#e3c18a;color:#f5e8d2}
.closer-guide-detail{padding:13px;background:#192f48;border:1px solid #405d79;border-radius:13px}
.closer-guide-detail>b{display:block;font-size:10px;letter-spacing:.09em;color:#dfc48f;margin:0 0 7px}
.closer-guide-detail p{font-size:13px;line-height:1.48;margin:0 0 16px}
.closer-guide-detail ol{margin:0 0 12px;padding-left:23px}
.closer-guide-detail li{padding:0 0 8px 2px;margin:0 0 5px;font-size:12px;line-height:1.5}
.closer-guide-detail .closer-guide-note{font-size:11px;color:#c9dce9;line-height:1.55;border-left:3px solid #ddbd80;background:#263f58;padding:10px;border-radius:7px}
.closer-guide-footer{color:#a6bfd4;font-size:10px;margin:10px 4px 0}
@media(prefers-reduced-motion:reduce){.closer-guide-overlay *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* v1.5 game identity: subtle accent rails rather than heavy neon cards. */
#app[data-active-game="golf"] .gamebox{border-color:#517f76}
#app[data-active-game="golf"] .gamebox .bar .label{color:#bde5d3}
#app[data-active-game="double"] .gamebox{border-color:#687fa1}
#app[data-active-game="double"] .gamebox .bar .label{color:#d0ddf3}
#app[data-active-game="mirror"] .gamebox{border-color:#70869b}
#app[data-active-game="mirror"] .gamebox .bar .label{color:#d3e5f4}
#app[data-active-game="spectrum"] .gamebox{border-color:#7875a4}
#app[data-active-game="spectrum"] .gamebox .bar .label{color:#e3d8ff}
#app[data-active-game="meld"] .gamebox{border-color:#8b78a1}
#app[data-active-game="meld"] .gamebox .bar .label{color:#ead8fa}
#app[data-active-game="emoji"] .gamebox{border-color:#9c7486}
#app[data-active-game="emoji"] .gamebox .bar .label{color:#f3d4e2}
#app[data-active-game="code"] .gamebox,#app[data-active-game="heist"] .gamebox{border-color:#9c855d}
#app[data-active-game="code"] .gamebox .bar .label,#app[data-active-game="heist"] .gamebox .bar .label{color:#f1d4a1}
#app[data-active-game="silent"] .gamebox{border-color:#698ba3}
#app[data-active-game="forge"] .gamebox,#app[data-active-game="mutation"] .gamebox{border-color:#5b8597}
#app .gamebox button:not(:disabled):active{transform:scale(.985)}
@media(prefers-reduced-motion:reduce){#app .gamebox button{transition:none!important;animation:none!important}}


/* v1.6 game discovery and low-distraction shared game header. */
#app .lab-discovery-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:13px 0 17px}
#app .lab-game-search-label{color:#b9cee2;font-size:11px;font-weight:750}
#app .lab-game-search{font-size:16px;min-height:45px;width:100%;border:1px solid #577594;border-radius:12px;padding:10px 14px;background:#162c46;color:#eef5fb}
#app .lab-game-search:focus-visible{outline:2px solid #e7ca93;outline-offset:2px}
#app .lab-filter-row{display:flex;gap:7px;overflow-x:auto;scrollbar-width:thin;padding:1px 0 4px;max-width:100%;overscroll-behavior-x:contain}
#app .lab-filter-btn{white-space:nowrap;flex-shrink:0;background:#203750;color:#d5e2f1;border:1px solid #4f6d88;padding:8px 10px;border-radius:10px;min-height:37px;font-size:11px;font-weight:750}
#app .lab-filter-btn.selected{background:#423d49;color:#f3dbad;border-color:#d1b77d}
#app .lab-game-count{font-size:11px;color:#b3c8df;margin:2px 0 0}
#app .lab-game-catalog [hidden]{display:none!important}
#app .lab-game-context{background:linear-gradient(125deg,#192f4a,#1c2e46);border:1px solid #496887;border-radius:13px;display:flex;align-items:center;gap:9px;padding:11px 12px;margin:4px 0 12px;min-width:0}
#app .lab-context-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#2d4056;font-size:19px}
#app .lab-context-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
#app .lab-context-title{font-size:12px;font-weight:850;color:#f0f4fa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app .lab-context-turn{font-size:11px;color:#bed0e2;overflow-wrap:anywhere;line-height:1.25}
#app .lab-context-players{max-width:41%;min-width:0;display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}
#app .lab-context-names{font-size:10px;color:#d6e1f0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%}
#app .lab-context-status{border-radius:999px;background:#2e435c;border:1px solid #547391;color:#d2e0ee;font-size:9px;font-weight:850;letter-spacing:.025em;padding:4px 7px;white-space:nowrap}
#app .lab-context-status.both{background:#294d46;border-color:#638f7e;color:#baecd3}
#app .lab-context-status.waiting{background:#454044;border-color:#806e63;color:#f0d7ae}
#app .gamebox input:not(:disabled):focus-visible,#app .gamebox textarea:not(:disabled):focus-visible,#app .gamebox button:not(:disabled):focus-visible{outline:2px solid #e4c995;outline-offset:2px}
#app .gamebox button:not(:disabled){-webkit-tap-highlight-color:transparent}
#app .gamebox .btn:active:not(:disabled){transform:scale(.985)}
#app .lab-featured-card:not(:disabled):active,#app .game-card:not(:disabled):active{transform:scale(.987)}
@media(max-width:350px){#app .lab-game-context{padding:9px;gap:7px}#app .lab-context-icon{height:30px;width:30px;flex-basis:30px;font-size:17px}#app .lab-context-title{font-size:11px}#app .lab-context-turn{font-size:10px}#app .lab-context-players{max-width:43%}#app .lab-context-names{font-size:9px}#app .lab-context-status{font-size:8px;padding:3px 6px}}
@media(prefers-reduced-motion:reduce){#app .game-card,#app .lab-featured-card,#app .gamebox button{transition:none!important;animation:none!important}}


/* Hot & Cold becomes a first-class, embedded Game Lab mode. */
#app .lab-home-featured .lab-featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
#app .lab-hc-joined{padding:15px}
#app .lab-hc-heading{display:flex;gap:12px;align-items:center;margin:3px 0 14px}
#app .lab-hc-symbol{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;background:#243c5a;border:1px solid #5c83a9;border-radius:14px;font-size:24px}
#app .lab-hc-heading small{font-size:10px;font-weight:850;letter-spacing:.1em;color:#d5bd8b}
#app .lab-hc-heading h2{font-size:22px;color:#f1f5fb;letter-spacing:-.4px;margin:4px 0}
#app .lab-hc-heading p{font-size:12px;color:#b9cde4;line-height:1.45;margin:0}
#app .lab-hc-topline{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;color:#d6e3f1;font-size:10px;background:#1d3451;border-radius:10px;padding:10px 12px;margin:0 0 11px;border:1px solid #42617e}
#app .lab-hc-stage{background:#0d1e33;border:1px solid #56728e;border-radius:14px;overflow:hidden}
#app .lab-hc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#1b3048;padding:8px 11px;min-height:43px;color:#d1dfed;font-size:11px;font-weight:750}
#app .lab-hc-toolbar button{border:1px solid #617d98;background:#263e59;border-radius:9px;color:#e6eef8;min-height:33px;font-size:11px;font-weight:750;padding:6px 9px;white-space:nowrap}
#app .lab-hc-frame{display:block;width:100%;height:min(780px,76dvh);min-height:480px;border:0;background:#0d1e33}
#app .lab-hc-stage.expanded .lab-hc-frame{height:calc(100dvh - 115px);min-height:580px}
#app .lab-hc-help,#app .lab-hc-honesty{font-size:11px;line-height:1.5;color:#b8cee2;background:#1b304a;border:1px solid #3f5e7d;border-radius:10px;padding:10px 12px;margin:12px 0 4px}
#app .lab-hc-honesty{background:transparent;border:0;color:#98b8d3;margin:4px 0 0;padding:8px 2px}
@media(max-width:650px){#app .lab-home-featured .lab-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#app .lab-hc-heading h2{font-size:19px}}
@media(max-width:350px){#app .lab-hc-joined{padding:9px}#app .lab-hc-heading{gap:8px}#app .lab-hc-heading small{font-size:9px}#app .lab-hc-frame{min-height:510px}}


#app .double-sync-state{padding:36px 16px;min-height:240px;border:1px solid #51728e;background:linear-gradient(135deg,#1c304d,#172943);border-radius:14px;margin:13px 0;text-align:center;color:#e5edf7}
#app .double-sync-state h2{font-size:21px;margin:13px 0 8px}
#app .double-sync-state p{font-size:12px;color:#bdcfe2;line-height:1.55;margin:10px auto 16px;max-width:290px}
#app .double-sync-state button{min-height:42px}
#app .double-sync-spinner{font-size:31px;color:#e5c38e;display:inline-block;animation:closer-sync-spin 1.7s linear infinite}
@keyframes closer-sync-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#app .double-sync-spinner{animation:none}}


#closer-chat .closer-chat-game-events{background:#1a344c;border-bottom:1px solid #58738d;padding:10px 12px;max-height:185px;overflow-y:auto}
#closer-chat .closer-chat-game-events>strong{font-size:10px;letter-spacing:.08em;color:#e8ca96;display:block;margin:0 0 7px}
#closer-chat .closer-game-event{font-size:11px;line-height:1.45;margin:5px 0;color:#e1ecf6;background:#294258;border-left:3px solid #7595ae;border-radius:7px;padding:8px 9px;overflow-wrap:anywhere}
#closer-chat .closer-game-event.solved{color:#d4f6e4;background:#26463e;border-color:#8cdbb6}
#closer-chat .closer-game-event.proposal{color:#fff0d0;background:#4c4140;border-color:#e0c08a}
#closer-chat .closer-game-event.hint{border-color:#baabdf}
#closer-chat-fab.has-game-activity{box-shadow:0 0 0 3px #e6bf8580,0 8px 20px #0005!important}
.closer-chat-game-peek{position:fixed;bottom:calc(94px + env(safe-area-inset-bottom,0px));right:12px;z-index:9500;max-width:min(285px,calc(100vw - 70px));border:1px solid #e2be86;background:#263d50;color:#f7ead7;border-radius:12px;font-size:11px;line-height:1.45;font-weight:700;padding:10px 12px;box-shadow:0 6px 24px #0009;text-align:left}
.closer-chat-game-peek[hidden]{display:none!important}
@media(max-width:360px){.closer-chat-game-peek{max-width:min(260px,calc(100vw - 74px));right:8px}}
@media(prefers-reduced-motion:reduce){.closer-chat-game-peek{animation:none!important}}

#app .double-bonus-bridge{width:100%;min-height:44px;margin:10px 0 14px;border-color:#bb9d6f;background:#293d51;color:#f0dab1;font-size:12px;font-weight:750}

#app .dm14-bridge-answers{display:grid;gap:7px;margin:13px auto;max-width:360px}
#app .dm14-bridge-answers span{display:block;padding:9px 10px;border-radius:9px;background:#1b3c45;color:#e8f5ee;font-size:13px}
#app .dm14-bridge-answers b{color:#f7d594}


/* v1.8 - Notable, readable room chat and high-contrast unread indicator */
#closer-chat-fab{
 width:124px!important;min-width:124px;height:58px!important;border-radius:17px!important;
 right:14px!important;bottom:calc(13px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard))!important;
 gap:9px!important;padding:6px 12px 6px 8px!important;justify-content:flex-start!important;
 background:linear-gradient(145deg,#294d72 0%,#122e50 100%)!important;
 border:2px solid #e5c289!important;
 box-shadow:0 7px 25px #0009,0 0 0 3px #b28f5a2e!important;
 overflow:visible;isolation:isolate;
}
#closer-chat-fab .closer-chat-ico{
 flex:0 0 36px;display:grid;place-items:center;font-size:23px;
 width:36px;height:36px;border-radius:12px;
 background:#39597a;box-shadow:inset 0 1px 2px #b6d9fa28;
}
#closer-chat-fab .closer-chat-fab-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:2px}
#closer-chat-fab .closer-chat-fab-copy strong{font-size:12px;letter-spacing:.055em;font-weight:900;color:#ffe6b5;line-height:1.15}
#closer-chat-fab .closer-chat-fab-copy small{font-size:9px;font-weight:700;line-height:1.1;color:#c1d7eb;max-width:65px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#closer-chat-fab.has-unread{
 border-color:#f0c27a!important;
 box-shadow:0 0 0 4px #ecbd6a50,0 6px 28px #000b!important;
}
#closer-chat .closer-chat-count,#closer-chat-fab .closer-chat-count{
 position:absolute!important;top:-15px!important;right:-11px!important;
 display:flex;align-items:center;justify-content:center;
 height:34px!important;min-width:34px!important;
 padding:0 6px!important;line-height:1!important;
 font-size:14px!important;font-weight:950!important;letter-spacing:-.015em;
 border-radius:999px!important;
 background:#ffcd82!important;color:#132039!important;
 border:3px solid #0e1d31!important;box-shadow:0 2px 16px #ffb04d85,0 3px 9px #000a!important;
 font-variant-numeric:tabular-nums;
}
#closer-chat .closer-chat-count[hidden]{display:none!important}
#closer-chat-fab.has-chat-messages .closer-chat-count{background:#eec9a0!important}
#closer-chat.closer-chat-open #closer-chat-fab{background:#274360!important}
#closer-chat .closer-chat-header{gap:8px;padding:14px 13px 12px;background:linear-gradient(120deg,#213c58,#1a314b);border-bottom:1px solid #536c85}
#closer-chat .closer-chat-header > div{min-width:0;flex:1}
#closer-chat .closer-chat-header strong{font-size:17px;letter-spacing:-.02em;color:#f7e2ba}
#closer-chat .closer-chat-header small{font-size:11px;line-height:1.3;color:#c2d2e1;overflow-wrap:anywhere;max-width:280px}
#closer-chat .closer-chat-header-presence{display:inline-flex;align-items:center;gap:4px;margin-top:8px;
 padding:5px 9px;font-size:10px;font-weight:850;letter-spacing:.04em;color:#edcba5;
 border:1px solid #977b63;border-radius:999px;background:#3a404b}
#closer-chat .closer-chat-header-presence.both-online{color:#c4f3dc;border-color:#548d75;background:#23483c}
#closer-chat-sheet{border:1.5px solid #738da9;border-radius:19px;background:linear-gradient(165deg,#182e49,#0b1b2f);
 box-shadow:0 18px 70px #000c,0 0 0 2px #a5c0d11a}
#closer-chat-log{padding:16px 13px 18px;gap:12px}
#closer-chat .closer-chat-bubble{max-width:89%;padding:11px 13px;border-radius:15px;box-shadow:0 3px 10px #0003;background:#203c56;border-color:#5a7490}
#closer-chat .closer-chat-row.mine .closer-chat-bubble{background:linear-gradient(145deg,#334e68,#2d435e);border-color:#ab936c}
#closer-chat .closer-chat-meta{font-size:11px;font-weight:750;color:#f2d8a8;margin-bottom:6px}
#closer-chat .closer-chat-bubble p{font-size:14px;line-height:1.53;letter-spacing:.005em}
#closer-chat .closer-chat-compose{padding:12px 11px 8px;gap:8px;background:#162a41;border-top:1px solid #506c87}
#closer-chat-input{background:#101f34;border:1.5px solid #66819e;border-radius:13px;padding:12px;font-size:16px}
#closer-chat-input:focus{border-color:#f3cd95;box-shadow:0 0 0 2px #f3cd952e}
#closer-chat-send{border-radius:12px;min-width:70px;min-height:48px;font-size:13px;box-shadow:0 4px 9px #0005;background:#e9c58c}
#closer-chat .closer-chat-privacy{background:#162a41;padding:0 13px 10px;font-size:10px}
#closer-chat .closer-chat-game-events{background:#1d3750;border-bottom:1px solid #617b96;max-height:170px}
#closer-chat .closer-chat-game-events>strong{color:#f3d69e;font-size:11px}
#closer-chat .closer-game-event{font-size:12px;line-height:1.48;padding:9px 10px;border-radius:10px}
.closer-chat-game-peek{right:15px;bottom:calc(90px + env(safe-area-inset-bottom,0px));max-width:min(260px,calc(100vw - 50px));font-size:11px;border-radius:13px}
#closer-chat-fab:focus-visible,#closer-chat-input:focus-visible{outline:3px solid #ffe1a1;outline-offset:3px}
@media(min-width:601px){#closer-chat-sheet{bottom:calc(86px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard));height:min(575px,calc(var(--closer-chat-usable-height,100dvh) - 110px));max-height:calc(var(--closer-chat-usable-height,100dvh) - 110px)}}
@media(max-width:600px){
 #closer-chat-fab{width:115px!important;min-width:115px!important;height:56px!important;right:11px!important;padding:6px 8px!important;gap:7px!important}
 #closer-chat-fab .closer-chat-fab-copy small{font-size:8.5px;max-width:57px}
 #closer-chat-sheet{bottom:calc(78px + env(safe-area-inset-bottom) + var(--closer-chat-keyboard));height:min(600px,calc(var(--closer-chat-usable-height,100dvh) - 99px));max-height:calc(var(--closer-chat-usable-height,100dvh) - 99px)}
 #closer-chat .closer-chat-header{padding:11px 12px 10px}
 #closer-chat-log{padding:13px 10px 17px}
}
@media(max-width:360px){
 #closer-chat-fab{width:106px!important;min-width:106px!important;right:9px!important;gap:5px!important}
 #closer-chat-fab .closer-chat-ico{flex-basis:33px;width:33px;height:33px;font-size:21px}
 #closer-chat-fab .closer-chat-fab-copy small{max-width:53px;font-size:8px}
 #closer-chat .closer-chat-count{right:-8px!important}
 #closer-chat .closer-chat-header strong{font-size:15px}
}
@media(max-height:510px){#closer-chat .closer-chat-header-presence{margin-top:3px}#closer-chat-log{padding:8px 11px}#closer-chat .closer-chat-header{padding:7px 11px}}
@media(prefers-reduced-motion:reduce){#closer-chat-fab{transition:none!important}}


/* Make the last action reachable behind the floating chat dock */
body.closer-chat-present #app[data-active-game]:not([data-active-game=""]){padding-bottom:94px}
@keyframes closer-chat-notify-pop{0%{transform:scale(1)}32%{transform:scale(1.075)}70%{transform:scale(.98)}100%{transform:scale(1)}}
#closer-chat-fab.closer-chat-new-arrival{animation:closer-chat-notify-pop .55s ease-out 1}
@media(prefers-reduced-motion:reduce){#closer-chat-fab.closer-chat-new-arrival{animation:none}}

#app .lab-home-featured .lab-featured-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:650px){#app .lab-home-featured .lab-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Cooperative Hangman — Midnight Sapphire & gold */
#app .hm-shell{color:#e7eef8;min-width:0}
#app .hm-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}
#app .hm-logo{height:43px;width:43px;flex:0 0 43px;display:grid;place-items:center;background:#264561;border:1px solid #6685a0;border-radius:12px;font-size:21px}
#app .hm-heading-text{flex:1;min-width:0}
#app .hm-heading-text small{font-size:9px;font-weight:850;letter-spacing:.11em;color:#e7c68f}
#app .hm-heading h2{font-size:23px;letter-spacing:-.045em;color:#f7f1e5;margin:3px 0 0}
#app .hm-heading em{font-style:normal;font-size:10px;font-weight:850;letter-spacing:.07em;color:#e1c08a;border:1px solid #7c674d;border-radius:6px;padding:3px 5px;vertical-align:middle}
#app .hm-round{border-radius:999px;background:#2b4259;color:#e9ce9f;border:1px solid #6a839b;padding:7px 11px;font-size:11px;font-weight:800;white-space:nowrap}
#app .hm-score{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 15px}
#app .hm-score>div{background:#1a344f;border:1px solid #4d6e88;border-radius:11px;padding:12px 9px;display:flex;flex-direction:column;gap:6px}
#app .hm-score small{color:#b4cbdc;font-size:9px;font-weight:850;letter-spacing:.07em}
#app .hm-score strong{color:#f1d292;font-size:24px;font-variant-numeric:tabular-nums;line-height:1}
#app .hm-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,.55fr);gap:10px;margin:0 0 14px;align-items:end}
#app .hm-modebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#app .hm-mode{display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0;min-height:51px;padding:8px 4px;border-radius:10px;border:1px solid #526f8c;background:#243b56;color:#e0eaf5}
#app .hm-mode b{font-size:12px}#app .hm-mode small{color:#b7c7d8;font-size:9px}
#app .hm-mode.active{background:#4c433e;border-color:#dbb679;color:#ffe8bc}#app .hm-mode.active small{color:#f1d5aa}
#app .hm-category{display:flex;flex-direction:column;gap:6px;font-weight:850;font-size:10px;color:#d6c39e}
#app .hm-category select{font-size:14px;height:49px;padding:8px 10px;border-radius:10px;background:#1c3550;color:#f1f5fb;border:1px solid #66849e;width:100%}
#app .hm-stage{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(0,1.2fr);gap:11px;margin-bottom:16px}
#app .hm-art,#app .hm-puzzle{background:linear-gradient(150deg,#1e3853,#102840);border:1px solid #57738e;border-radius:14px;padding:13px;min-width:0}
#app .hm-art-head{display:flex;justify-content:space-between;gap:6px;font-size:10px}
#app .hm-art-head b{color:#dcc391;font-size:10px;letter-spacing:.04em}
#app .hm-art-head span{color:#bad0e0;font-variant-numeric:tabular-nums}
#app .hm-drawing{display:block;width:min(100%,272px);height:auto;max-height:222px;margin:4px auto}
#app .hm-risk{height:9px;background:#12253a;border-radius:8px;border:1px solid #55748f;overflow:hidden}
#app .hm-risk i{display:block;height:100%;background:linear-gradient(90deg,#cca770,#e78f79);transition:width .24s ease}
#app .hm-tries{display:block;text-align:center;color:#c0d2e1;font-size:10px;margin-top:8px}
#app .hm-puzzle{display:flex;flex-direction:column;justify-content:center;gap:10px}
#app .hm-clue-top{display:flex;align-items:center;justify-content:space-between;gap:7px;flex-wrap:wrap}
#app .hm-clue-top span{background:#2b4b61;border:1px solid #608598;border-radius:999px;padding:6px 10px;font-size:11px;color:#d8edf5;font-weight:850}
#app .hm-clue-top b{font-size:10px;color:#d5bd93;letter-spacing:.06em}
#app .hm-clue{margin:3px 0;font-size:14px;line-height:1.45;color:#e3edf4;text-align:center}
#app .hm-tiles{display:flex;gap:4px;min-height:53px;align-items:flex-end;justify-content:center;flex-wrap:wrap}
#app .hm-tile{display:grid;place-items:center;min-width:25px;width:clamp(25px,3.1vw,33px);height:41px;font-size:22px;color:#ffe2a4;font-weight:900;border-bottom:3px solid #d9b884;font-family:ui-monospace,monospace}
#app .hm-tile.locked{color:transparent;background:#29465d70;border-bottom-color:#819ab2}
#app .hm-tile.shown{background:#2c4b5b;border-radius:6px 6px 2px 2px}
#app .hm-space{width:15px;height:38px}
#app .hm-status{padding:10px 12px;background:#26445a;border:1px solid #587e92;border-radius:10px;text-align:center;font-size:12px;line-height:1.42;color:#e8f1f8}
#app .hm-join-note{padding:12px;background:#4c453c;border:1px solid #ae926b;border-radius:10px;color:#ffe8bf;font-size:12px;line-height:1.5;text-align:center}
#app .hm-answer{padding:13px 10px;border-radius:11px;border:1px solid #75b399;background:#254940;text-align:center}
#app .hm-answer.lost{background:#483b43;border-color:#b18b8b}
#app .hm-answer small{font-size:10px;font-weight:850;letter-spacing:.09em;color:#cce6da}
#app .hm-answer strong{display:block;color:#ffe3b4;font-size:25px;line-height:1.25;margin:6px 0;overflow-wrap:anywhere}
#app .hm-answer p{margin:0;font-size:11px;color:#e1e9df}
#app .hm-keyhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 9px}
#app .hm-keyhead strong{color:#e6ca98;font-size:10px;letter-spacing:.06em}
#app .hm-keyhead small{color:#b7cbdc;font-size:10px}
#app .hm-keyboard{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px;margin-bottom:14px}
#app .hm-letter{height:45px;min-width:0;border:1px solid #64809d;border-radius:9px;background:#29445e;color:#f2f7fc;font-size:14px;font-weight:850;touch-action:manipulation}
#app .hm-letter:not(:disabled):active{transform:scale(.95)}
#app .hm-letter.hit{background:#255044;color:#c4f4df;border-color:#70a991}
#app .hm-letter.hint{background:#5a4b36;color:#ffe4b7;border-color:#d5b67c}
#app .hm-letter.miss{background:#3a3543;color:#9f9db0;border-color:#6a6072;text-decoration:line-through}
#app .hm-letter:disabled{opacity:.87;cursor:default}
#app .hm-controls{border:1px solid #536e88;border-radius:12px;background:#1a314a;padding:12px;display:grid;gap:12px}
#app .hm-recent>b{font-size:10px;color:#e0bf8b;letter-spacing:.07em}
#app .hm-recent>div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
#app .hm-history-token{display:inline-flex;gap:5px;align-items:center;padding:6px 8px;border-radius:8px;background:#274357;border:1px solid #638098;font-weight:850;font-size:13px}
#app .hm-history-token small{font-size:9px;color:#c1d3e1;font-weight:650}
#app .hm-history-token.hit{border-color:#6aa68e;background:#26483f}
#app .hm-history-token.miss{border-color:#8a7080;background:#3d3643}
#app .hm-buttons{display:flex;gap:9px;flex-wrap:wrap}
#app .hm-buttons button{flex:1 1 155px;display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;min-height:51px;font-size:12px}
#app .hm-buttons button small{font-size:10px;opacity:.8}
#app .hm-next{background:#e9c58c!important;color:#162943!important}
#app .hm-footer{color:#acc5d8;font-size:10px;line-height:1.5;text-align:center;margin:12px 4px 0}
#app .hm-error{background:#4b343d;border:1px solid #ca8884;color:#ffe2d8;padding:11px;border-radius:9px;font-size:12px}
#app .hm-loading{min-height:215px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#f1e7d7;font-size:16px;padding:28px 16px}
#app .hm-loading p{font-size:12px;color:#b9cfdf}
@media(max-width:850px){#app .hm-keyboard{grid-template-columns:repeat(9,minmax(0,1fr))}}
@media(max-width:650px){#app .hm-stage{grid-template-columns:1fr}#app .hm-art{padding:10px 12px}#app .hm-drawing{max-height:187px;width:min(100%,243px)}#app .hm-settings{grid-template-columns:1fr}#app .hm-category select{height:43px}#app .hm-keyboard{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}#app .hm-letter{height:45px}#app .hm-puzzle{min-height:190px}#app .hm-tile{width:clamp(24px,6.8vw,32px)}}
@media(max-width:360px){#app .hm-heading h2{font-size:21px}#app .hm-heading-text small{font-size:8px}#app .hm-logo{height:39px;width:39px;flex-basis:39px}#app .hm-score strong{font-size:21px}#app .hm-score small{font-size:8px}#app .hm-score>div{padding:10px 6px}#app .hm-tile{min-width:22px;width:23px;height:37px;font-size:20px}#app .hm-space{width:12px}#app .hm-tiles{gap:3px}}
@media(prefers-reduced-motion:reduce){#app .hm-risk i{transition:none}}


#app .hm-turn-banner{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:13px 15px;border-radius:12px;background:#243f53;border:2px solid #7490a9;color:#dce8f6}
#app .hm-turn-banner .hm-turn-light{font-size:17px;color:#adbdca}
#app .hm-turn-banner strong{font-size:14px;font-weight:900;letter-spacing:.05em}
#app .hm-turn-banner small{flex:1 1 100%;padding-left:26px;color:#c6d8e4;font-size:11px;font-weight:650}
#app .hm-turn-banner.my-turn{background:linear-gradient(120deg,#3e4d42,#25463d);border-color:#90d5b4;box-shadow:0 0 0 3px #86d1aa18}
#app .hm-turn-banner.my-turn .hm-turn-light{color:#98eac4}
#app .hm-turn-banner.my-turn strong{color:#cbffe7}
#app .hm-turn-banner.partner-turn{background:#26354b;border-color:#5d7a96}
#app .hm-turn-banner.partner-turn strong{color:#f6d49b}
#app .hm-letter:not(:disabled){border-color:#c6ae83;box-shadow:inset 0 1px #e2d7c533}
#app .hm-letter:disabled:not(.hit):not(.miss):not(.hint){opacity:.57}

/* Shared Double Meaning UX */
#app .double-mode-intro{min-height:200px;margin:12px 0 5px;padding:25px 17px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:11px;border:1px solid #466785;border-radius:16px;background:linear-gradient(140deg,#1a304d,#13243a)}
#app .double-mode-intro>span{font-size:42px;color:#e7c48d;line-height:1}
#app .double-mode-intro h2{font-size:22px;margin:0}
#app .double-mode-intro p{color:#d5e2f0;font-size:13px;line-height:1.6;margin:0;max-width:325px}
#app .double-mode-intro small{color:#97b1ca;font-size:11px}
#app .dm14-team-status{margin:7px 0 12px;padding:11px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:11px;background:#1d344c;border:1px solid #547792}
#app .dm14-team-status span{white-space:nowrap;font-size:10px;color:#86e2c2;font-weight:850;letter-spacing:.04em}
#app .dm14-team-status strong{font-size:12px;color:#e7effa;line-height:1.4;text-align:right}
#app .dm14-round{border:1px solid #e4c18b!important;background:#393b51!important;color:#ffe2ab!important;font-weight:850!important;font-size:12px!important;border-radius:10px;padding:9px 11px}
#app .dm14-mode{min-height:70px!important;touch-action:manipulation}
#app .dm14-mode.selected{border-width:2px!important;box-shadow:0 0 0 2px #d3ab6b22!important}
#closer-chat .closer-game-event.solved{font-size:13px!important;font-weight:800;border-left-width:5px;padding:11px 12px}
#closer-chat .closer-game-event.proposal{font-size:12px;font-weight:750;border-left-width:5px}
@media(max-width:380px){#app .dm14-team-status{flex-direction:column;align-items:flex-start}#app .dm14-team-status strong{text-align:left}}

/* CLOSER Phase 1 — shared game-first layout v1.7. No gameplay controls are removed. */
#lab-room-quick[hidden],#lab-room-quick .lab-room-quick-invite[hidden]{display:none!important}
#lab-room-quick{display:flex;gap:8px;margin:9px 0 8px;min-width:0;align-items:stretch}
#lab-room-quick .lab-room-quick-main{flex:1;min-width:0;display:flex;align-items:center;gap:9px;text-align:left;border:1px solid #4d6581;border-radius:12px;background:linear-gradient(140deg,#192d46,#15263b);color:#ebf1fb;padding:8px 10px;min-height:48px}
#lab-room-quick .lab-room-quick-icon{display:grid;place-items:center;font-size:19px;color:#bf9c69;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#25354e}
#lab-room-quick.partner-online .lab-room-quick-icon{color:#8be0b5;background:#1e4942}
#lab-room-quick .lab-room-quick-label{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
#lab-room-quick .lab-room-quick-label b{font-size:12px;line-height:1.2;font-weight:850}
#lab-room-quick .lab-room-quick-status{font-size:11px;color:#bbcce1;line-height:1.3;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#lab-room-quick.partner-online .lab-room-quick-status{color:#9fe4c6}
#lab-room-quick.warning .lab-room-quick-status{color:#ffc88f}
#lab-room-quick .lab-room-quick-chevron{color:#ecd1a5;font-size:18px;flex:none}
#lab-room-quick .lab-room-quick-invite{align-self:stretch;border:1px solid #b69a6c;background:#342f38;color:#f2dcba;border-radius:12px;padding:9px 11px;font-size:12px;font-weight:800;min-width:94px;touch-action:manipulation}
body.lab-in-game:not(.lab-room-open) #roomPanel{display:none!important}
body.lab-in-game #roomPanel{margin:0 0 9px}
#lab-room-quick button:focus-visible,#app .back:focus-visible,#app .lab-setup-toggle:focus-visible{outline:2px solid #ffe5ab;outline-offset:2px}
body.lab-in-game #app .lab-game-context{display:flex;align-items:center;min-height:41px;padding:8px 11px;gap:8px;margin:5px 0 10px;border-radius:11px;background:#152b43;border-color:#3b5774}
body.lab-in-game #app .lab-context-icon,body.lab-in-game #app .lab-context-title{display:none}
body.lab-in-game #app .lab-context-copy{gap:0;flex:1}
body.lab-in-game #app .lab-context-turn{font-size:12px;color:#d9e7f7;font-weight:700;line-height:1.3}
body.lab-in-game #app .lab-context-players{flex:none;max-width:45%}
body.lab-in-game #app .lab-context-names{display:none}
body.lab-in-game #app .lab-context-status{font-size:10px;letter-spacing:.02em;font-weight:850;white-space:nowrap}
body.lab-in-game #app .lab-game-setup-compact{margin:0 0 9px;border-radius:11px}
body.lab-in-game #app .lab-setup-toggle{min-height:46px;padding:7px 11px}
body.lab-in-game #app .lab-settings-summary strong{font-size:12px}
body.lab-in-game #app .lab-settings-summary small{font-size:10px}
body.lab-in-game #app .lab-settings-chevron{font-size:16px}
body.lab-in-game #app .gamehead{margin:9px 0 8px;gap:9px}
body.lab-in-game #app .gamehead h1{font-size:clamp(19px,5vw,24px);line-height:1.16;letter-spacing:-.025em}
body.lab-in-game #app .gamehead p{margin:3px 0 0;font-size:11px}
body.lab-in-game #app .gamehead .back{min-width:42px;min-height:42px}
body.lab-in-game #app .gamehead .quiet{min-height:40px;min-width:40px}
body.lab-in-game #app .lab-play-panel{box-shadow:0 8px 18px #020a182b}
body.lab-in-game #app .lab-play-panel .field{font-size:max(16px,1em)}
body.lab-in-game #app .duo-how summary{touch-action:manipulation}
body.lab-in-game #app .lab-play-panel .btn:not(.hm-letter){min-height:43px}
@media(max-width:650px){
 body.lab-in-game .shell{padding-left:12px;padding-right:12px}
 body.lab-in-game .top{height:55px}
 body.lab-in-game .brand{font-size:18px;letter-spacing:.11em}
 body.lab-in-game .brand-o{font-size:20px}
 body.lab-in-game .brand small{font-size:8px;margin-left:4px}
 body.lab-in-game .top-right .pill{font-size:9px;padding:5px}
 body.lab-in-game #app .gamehead p{display:none}
 body.lab-in-game #app .gamehead{margin:7px 0}
 body.lab-in-game #app .lab-play-panel{padding:clamp(11px,3.5vw,15px);border-radius:15px}
 body.lab-in-game #app .duo-how summary{font-size:12px}
 body.lab-in-game #app .duo-now{margin-top:8px;margin-bottom:8px}
 body.lab-in-game #app .lab-play-panel>.bar:first-child,body.lab-in-game #app .lab-play-panel>.lab-game-meta{padding-bottom:8px;margin-bottom:10px}
 #lab-room-quick{margin:7px 0}
}
@media(max-width:360px){
 body.lab-in-game .brand small{display:none}
 #lab-room-quick .lab-room-quick-invite{min-width:78px;padding:7px 8px;font-size:11px}
 body.lab-in-game #app .lab-context-status{font-size:9px}
 body.lab-in-game #app .lab-context-turn{font-size:11px}
}
@media(prefers-reduced-motion:reduce){#lab-room-quick button{transition:none}}

/* Game Lab home: one catalogue, no Featured Games strip */
#app .lab-home-hero{padding:16px 2px 9px}
#app .lab-home-hero h1{font-size:clamp(28px,7.5vw,43px);margin-bottom:9px}
#app .lab-home-hero>p{font-size:12px;max-width:44ch;line-height:1.5}
#app .lab-home-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:13px}
#app .lab-home-actions .btn{min-height:46px;font-size:12px;padding:9px 8px;line-height:1.25}
#app .lab-catalog-head{margin-top:14px;margin-bottom:8px}
#app .lab-catalog-head h2{font-size:19px}
#app .lab-discovery-controls{margin:8px 0 12px;gap:7px}
#app .lab-game-search-label{font-size:11px}
#app .lab-game-catalog{gap:9px}
#app .lab-game-catalog .game-card{min-height:132px;padding:12px;touch-action:manipulation}
#app .lab-game-catalog .game-card .symbol{margin:0 0 4px}
#app .lab-no-games[hidden]{display:none!important}
#app .lab-no-games{margin:14px 0;padding:15px;border-radius:11px;text-align:center;color:#d9e7f4;background:#1b3049;border:1px solid #4b6883;font-size:13px}
@media(max-width:350px){#app .lab-home-actions .btn{font-size:11px;min-height:48px}#app .lab-game-catalog .game-card{padding:10px;min-height:130px}}
/* Chat readability, status hierarchy, and compact expandable game updates */
#closer-chat .closer-chat-game-events{padding:7px 10px 9px;max-height:158px;overflow-y:auto;background:linear-gradient(150deg,#1b324b,#162a3f)}
#closer-chat .closer-chat-activity-toggle{width:100%;padding:6px 4px;min-height:34px;border:0;background:none;display:flex;gap:9px;align-items:center;justify-content:space-between;color:#f5d9a4;text-align:left}
#closer-chat .closer-chat-activity-toggle span{font-size:10px;font-weight:850;letter-spacing:.065em;white-space:nowrap}
#closer-chat .closer-chat-activity-toggle small{font-size:10px;font-weight:750;color:#d6e5f7;text-align:right;line-height:1.3}
#closer-chat .closer-chat-activity-toggle:focus-visible{outline:2px solid #f7d395;border-radius:7px}
#closer-chat .closer-chat-game-events .closer-game-event{margin:4px 0 0;line-height:1.5;font-size:12px;padding:8px 10px}
#closer-chat .closer-chat-game-events .closer-game-event.proposal{border-left-width:5px;font-weight:780}
#closer-chat .closer-chat-game-events .closer-game-event.solved{border-left-width:5px;font-weight:850}
#closer-chat .closer-chat-privacy{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:0 10px 9px}
#closer-chat-charcount{color:#e6d2a9;white-space:nowrap;min-width:45px;text-align:right;font-variant-numeric:tabular-nums}
#closer-chat .closer-chat-header{padding:11px 13px}
#closer-chat .closer-chat-header strong{font-size:17px}
#closer-chat .closer-chat-bubble p{font-size:13px;line-height:1.54}
#closer-chat .closer-chat-meta{font-size:10px;letter-spacing:.01em}
#closer-chat #closer-chat-send{min-width:68px;font-weight:850}
#closer-chat .closer-chat-row .closer-chat-reply-btn{min-height:36px;min-width:36px}
@media(max-height:500px){#closer-chat .closer-chat-game-events{max-height:86px}#closer-chat .closer-chat-privacy>span:first-child{display:none}}
@media(prefers-reduced-motion:reduce){#closer-chat .closer-chat-bubble{transition:none}}

/* Single-catalogue home: surface playable game cards sooner on small screens */
@media(max-width:650px){
 body:not(.lab-in-game) .top{height:61px}
 body:not(.lab-in-game) #roomPanel{margin:7px 0 7px}
 body:not(.lab-in-game) #roomPanel .lab-net{padding:10px;border-radius:12px}
 body:not(.lab-in-game) #roomPanel .lab-net-row+.lab-net-row{margin-top:7px}
 body:not(.lab-in-game) #roomPanel .lab-net-row:has([data-net="create"]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body:not(.lab-in-game) #roomPanel [data-net="create"]{grid-column:1;grid-row:1;min-height:42px}
 body:not(.lab-in-game) #roomPanel [data-net="join"]{grid-column:2;grid-row:1;min-height:42px}
 body:not(.lab-in-game) #roomPanel #joinRoom{grid-column:1/-1;grid-row:2;min-width:0;width:100%;min-height:43px}
 body:not(.lab-in-game) #app .lab-home-hero{padding:9px 0 3px}
 body:not(.lab-in-game) #app .lab-home-hero .eyebrow{margin-bottom:5px}
 body:not(.lab-in-game) #app .lab-home-hero h1{font-size:clamp(27px,7vw,36px);line-height:1.05;margin-bottom:6px}
 body:not(.lab-in-game) #app .lab-home-hero>p{font-size:12px;line-height:1.4}
 body:not(.lab-in-game) #app .lab-home-actions{margin-top:9px}
 body:not(.lab-in-game) #app .lab-catalog-head{margin-top:10px;margin-bottom:6px}
 body:not(.lab-in-game) #app .lab-discovery-controls{margin:5px 0 9px;gap:5px}
 body:not(.lab-in-game) #app .lab-game-search-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 body:not(.lab-in-game) #app .lab-filter-row{padding-bottom:2px}
 body:not(.lab-in-game) #app .lab-game-count{margin:0}
}

/* Home refresh v82 — calmer hierarchy, no featured shelf, compact shared room */
body:not(.lab-in-game) .shell{max-width:920px}
body:not(.lab-in-game) #roomPanel .lab-net{position:relative;background:linear-gradient(130deg,#152940,#102238);border-color:#46627f;box-shadow:0 8px 24px #0003}
body:not(.lab-in-game) #roomPanel .lab-net-row:first-child{align-items:center;gap:5px}
body:not(.lab-in-game) #roomPanel .lab-net-row:first-child>span:first-child{font-size:12px;color:#b9d1e7;letter-spacing:.035em}
body:not(.lab-in-game) #roomPanel .lab-net-row:first-child>span:first-child b{color:#f0d19c}
body:not(.lab-in-game) #roomPanel .lab-net-row:first-child>span:last-child{font-size:11px;color:#b1c9dd}
body:not(.lab-in-game) #roomPanel .lab-net-row.lab-lobby-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions .btn{width:100%;min-width:0;min-height:44px;font-size:13px;font-weight:800;border-radius:11px}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions #joinRoom{grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box;min-height:42px;font-size:16px}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions #joinRoom[hidden]{display:none!important}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions [data-net="join"]{border-color:#6984a3}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions [data-net="join"][aria-expanded="true"]{background:#26415d;border-color:#dbb77c}
body:not(.lab-in-game) #app .lab-home-hero{margin:0;padding:17px 0 8px;max-width:none}
body:not(.lab-in-game) #app .lab-home-hero .eyebrow{font-size:10px;color:#d6bc8b;letter-spacing:.16em;margin-bottom:5px}
body:not(.lab-in-game) #app .lab-home-hero h1{font-size:clamp(25px,5.5vw,34px);line-height:1.16;font-weight:860;letter-spacing:-.035em;max-width:none;margin:0 0 5px}
body:not(.lab-in-game) #app .lab-home-hero h1 span{color:#dfc18e;margin-left:.35em}
body:not(.lab-in-game) #app .lab-home-hero>p{font-size:12px;color:#b6c9df;max-width:none;line-height:1.48}
body:not(.lab-in-game) #app .lab-home-actions{margin-top:12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body:not(.lab-in-game) #app .lab-home-actions .btn{min-height:43px;border-radius:10px;font-size:12px;padding:8px 7px}
body:not(.lab-in-game) #app .lab-home-actions .btn small{font-size:10px;opacity:.78}
body:not(.lab-in-game) #app .lab-catalog-head{margin:18px 0 9px}
body:not(.lab-in-game) #app .lab-catalog-head h2{font-size:17px;font-weight:850}
body:not(.lab-in-game) #app .closer-guide-catalog-btn{padding:8px 11px;min-height:37px;border-radius:10px;font-size:11px}
body:not(.lab-in-game) #app .lab-discovery-controls{margin:7px 0 10px;gap:7px}
body:not(.lab-in-game) #app .lab-game-search{border-radius:10px;min-height:42px;padding:9px 12px}
body:not(.lab-in-game) #app .lab-game-count[hidden]{display:none!important}
body:not(.lab-in-game) #app .lab-game-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
body:not(.lab-in-game) #app .lab-game-catalog .game-card{min-height:123px;padding:11px 12px;gap:4px;border-radius:14px;justify-content:flex-start}
body:not(.lab-in-game) #app .lab-game-catalog .game-card .symbol{width:36px;height:36px;font-size:21px;border-radius:10px;margin:0 0 5px}
body:not(.lab-in-game) #app .lab-game-catalog .game-card .number{font-size:11px;letter-spacing:.06em}
body:not(.lab-in-game) #app .lab-game-catalog .game-card strong{font-size:13px;line-height:1.17;min-height:0}
body:not(.lab-in-game) #app .lab-game-catalog .game-card .micro{font-size:11px;line-height:1.3;max-width:100%}
body:not(.lab-in-game) #app .lab-game-catalog .game-card:focus-visible{outline:2px solid #efcf94;outline-offset:2px}
#app .lab-double-solo-intro{margin:12px 0 4px;padding:11px 12px;background:#1a2b43;border:1px solid #4b6b8c;border-radius:12px;display:flex;flex-wrap:wrap;align-items:center;gap:9px;justify-content:space-between}
#app .lab-double-solo-intro strong{font-size:12px;color:#e6d2b2}
#app .lab-double-solo-intro>div{display:flex;gap:7px;flex-wrap:wrap}
#app .lab-double-solo-intro .btn{min-height:38px;font-size:11px}
#app .lab-double-local-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 12px}
#app .lab-double-local-modes .btn{min-height:43px;font-size:11px;padding:7px}
@media(max-width:680px){body:not(.lab-in-game) #roomPanel{margin:6px 0}body:not(.lab-in-game) #roomPanel .lab-net{padding:10px}body:not(.lab-in-game) #app .lab-home-hero{padding:11px 0 5px}body:not(.lab-in-game) #app .lab-catalog-head{margin:13px 0 6px}body:not(.lab-in-game) #app .lab-home-actions{margin-top:9px}body:not(.lab-in-game) #app .lab-discovery-controls{margin:5px 0 8px;gap:5px}body:not(.lab-in-game) #app .lab-home-hero h1{font-size:clamp(25px,6.7vw,32px)} }
@media(max-width:370px){body:not(.lab-in-game) #app .lab-home-hero h1 span{display:block;margin-left:0}body:not(.lab-in-game) #app .lab-game-catalog .game-card{min-height:117px;padding:10px}body:not(.lab-in-game) #app .lab-game-catalog .game-card strong{font-size:12px}body:not(.lab-in-game) #app .lab-game-catalog .game-card .micro{font-size:10px}}
@media(min-width:750px){body:not(.lab-in-game) #app .lab-game-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}body:not(.lab-in-game) #app .lab-game-catalog .game-card{min-height:128px}}

/* Recoverable, room-private game timeline inside chat */
#closer-chat .closer-chat-round-history[hidden]{display:none!important}
#closer-chat .closer-chat-round-history{flex:0 0 auto;background:#14283c;border-bottom:1px solid #415b78;max-height:175px;overflow:hidden}
#closer-chat .closer-chat-round-history summary{display:flex;align-items:center;gap:8px;min-height:39px;padding:8px 12px;cursor:pointer;list-style:none;user-select:none;color:#e5d3ac}
#closer-chat .closer-chat-round-history summary::-webkit-details-marker{display:none}
#closer-chat .closer-chat-round-history summary>span:first-child{font-size:10px;letter-spacing:.065em;font-weight:850;white-space:nowrap}
#closer-chat .closer-chat-history-count{flex:1;text-align:right;font-size:10px;color:#b8cede}
#closer-chat .closer-chat-history-chevron{font-size:15px;color:#ecc58b}
#closer-chat .closer-chat-round-history[open] .closer-chat-history-chevron{transform:rotate(180deg)}
#closer-chat .closer-chat-round-history summary:focus-visible{outline:2px solid #ecd69d;outline-offset:-3px}
#closer-chat .closer-chat-round-history-list{display:flex;flex-direction:column;gap:6px;max-height:130px;overflow-y:auto;overscroll-behavior:contain;padding:0 10px 10px}
#closer-chat .closer-chat-history-event{display:grid;gap:3px;background:#1d344b;border-left:3px solid #7794b0;border-radius:6px;padding:8px 9px}
#closer-chat .closer-chat-history-event>span{font-size:11px;line-height:1.4;color:#e7f0f8;overflow-wrap:anywhere}
#closer-chat .closer-chat-history-event>small{font-size:10px;color:#a8bed3}
@media(max-height:500px){#closer-chat .closer-chat-round-history{max-height:115px}#closer-chat .closer-chat-round-history-list{max-height:70px}}

/* Private persistent-game-update indicator */
#closer-chat .closer-chat-history-count{font-variant-numeric:tabular-nums}
#closer-chat-fab.has-game-activity .closer-chat-count:not([hidden]){background:#e5c48d;color:#132842;border:1px solid #fff0cd}

/* v85 recovery affordance stays separate from join/create, never steals a player seat */
body:not(.lab-in-game) #roomPanel .lab-lobby-actions [data-net="resume"]{grid-column:1/-1;background:#243a50;border-color:#b49a6c;color:#f4dfbf;min-height:41px;font-weight:780}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions [data-net="resume"]:focus-visible{outline:2px solid #f2d59a;outline-offset:2px}

/* Game Lab v87: either connected player may select a game; preserve deliberate server-managed round controls */
#app .lab-game-catalog .game-card:not(:disabled){touch-action:manipulation}
#app .lab-game-catalog .game-card:focus-visible{outline:2px solid #f7d397;outline-offset:2px}

/* v90: mutually confirmed game/mode switching, legible on small Android screens */
#lab-switch-prompt[hidden]{display:none!important}
#lab-switch-prompt{position:fixed;top:max(65px,env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(calc(100vw - 22px),480px);max-height:min(68dvh,370px);overflow-y:auto;z-index:900;box-sizing:border-box;padding:15px 16px;border:1px solid #e7c68d;border-radius:16px;background:linear-gradient(150deg,#213854,#12253c);box-shadow:0 18px 50px #000b;color:#f3f6ff;display:grid;gap:8px}
#lab-switch-prompt .lab-switch-tag{font-size:10px;letter-spacing:.1em;color:#ecd1a1;font-weight:850}
#lab-switch-prompt strong{font-size:16px;line-height:1.22}
#lab-switch-prompt p{font-size:12px;line-height:1.55;color:#d3dfed;margin:0}
#lab-switch-prompt .lab-switch-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:4px}
#lab-switch-prompt .lab-switch-actions .btn{flex:1;min-width:120px;min-height:45px;font-size:12px}
#lab-switch-prompt button:focus-visible{outline:2px solid #fff2c2;outline-offset:2px}
@media(max-width:360px){#lab-switch-prompt{padding:11px;top:60px}#lab-switch-prompt .lab-switch-actions .btn{min-width:100px}}
@media(prefers-reduced-motion:reduce){#lab-switch-prompt button{transition:none}}

/* Linked Hot & Cold private session: no second invite step */
#app .lab-hc-help{font-size:12px;line-height:1.5;border-left:3px solid #dfc28e;padding:9px 12px;background:#1b314b;border-radius:7px}

/* v97 small-screen chat dock: avoid covering game cards when no new messages */
@media(max-width:650px){
 #closer-chat-fab:not(.has-unread){width:59px!important;min-width:59px!important;height:59px!important;right:11px!important;padding:7px!important;border-radius:18px!important;justify-content:center!important;gap:0!important}
 #closer-chat-fab:not(.has-unread) .closer-chat-fab-copy{display:none!important}
 #closer-chat-fab:not(.has-unread) .closer-chat-ico{flex:0 0 41px!important;width:41px!important;height:41px!important;font-size:24px!important}
 #closer-chat-fab.has-unread{width:112px!important;min-width:112px!important;height:57px!important;right:11px!important;padding:6px 10px 6px 6px!important;gap:7px!important}
 #closer-chat-fab.has-unread .closer-chat-fab-copy small{display:none!important}
 #closer-chat-fab.has-unread .closer-chat-fab-copy strong{font-size:11px!important}
 #closer-chat-fab .closer-chat-count{min-width:32px!important;height:32px!important;font-size:14px!important}
}
@media(max-width:360px){#closer-chat-fab.has-unread{width:104px!important;min-width:104px!important}}

/* v98: finished Code Vault choice actions stay legible beside rematch */
#app .cv-finished-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:13px 0}
#app .cv-finished-actions>.btn{min-height:45px;padding:11px 14px;border-radius:11px}
#app .cv-finished-actions>.subtle{margin:0}
@media(max-width:370px){#app .cv-finished-actions>.btn{flex:1 1 135px}}

/* v99: make shared Emoji mode and skip approvals accessible on compact phones */
#app .emoji-team-message[role="status"]{border-left:3px solid #e6c58e;padding:10px 12px;border-radius:9px}
#lab-switch-prompt .lab-switch-actions button{touch-action:manipulation}

/* v101 Spectrum: calm, legible turn statuses for small phones */
#app .spectrum-game .spectrum-wait{border-left:3px solid #a9c8ee;padding:12px 14px;line-height:1.5;border-radius:9px}
#app .spectrum-game .spectrum-ready-pills span.is-ready{font-weight:750}
#app .spectrum-game .spectrum-subtitle{line-height:1.5}
@media(max-width:390px){#app .spectrum-all-modes .btn{min-height:44px}}

/* v102: keep private chat open and the composer visible when Android keyboard appears. */
#closer-chat.closer-chat-keyboard-open #closer-chat-sheet{
 position:fixed!important;top:calc(var(--closer-chat-vv-top,0px) + 6px)!important;bottom:auto!important;
 height:calc(var(--closer-chat-usable-height,100dvh) - 12px)!important;
 max-height:calc(var(--closer-chat-usable-height,100dvh) - 12px)!important;
 min-height:0!important;overflow:hidden!important;
}
#closer-chat.closer-chat-keyboard-open #closer-chat-fab{display:none!important}
#closer-chat.closer-chat-keyboard-open .closer-chat-game-events,
#closer-chat.closer-chat-keyboard-open .closer-chat-round-history,
#closer-chat.closer-chat-keyboard-open .closer-chat-privacy{display:none!important}
#closer-chat.closer-chat-keyboard-open #closer-chat-log{min-height:0!important;flex:1 1 auto!important;overflow-y:auto!important}
#closer-chat.closer-chat-keyboard-open .closer-chat-compose{flex-shrink:0!important;padding:7px 9px!important}
#closer-chat.closer-chat-keyboard-open #closer-chat-input{font-size:16px!important;min-height:44px!important}
#app .meld-deck-note{font-size:12px;line-height:1.45;color:#c1d4e7;margin:10px 0}
@media(max-width:600px){
 #closer-chat.closer-chat-keyboard-open #closer-chat-sheet{left:8px!important;right:8px!important;width:auto!important;border-radius:13px!important}
 #closer-chat.closer-chat-keyboard-open .closer-chat-header{padding:7px 11px!important}
}

/* v103 Double Meaning: distinguish approved revealed letters from optional hints. */
#app .dm14-hint{display:inline-flex;align-items:center;gap:7px;margin:8px 8px 4px 0;padding:9px 12px;border-radius:11px;border:1px solid #667fa3;background:#1b3453;color:#f6e2bd;font-size:13px;line-height:1.3}
#app .dm14-hint b{font-size:17px;letter-spacing:.06em;color:#fff1cd}
@media(max-width:390px){#app .dm14-modes{grid-template-columns:repeat(3,minmax(0,1fr))}#app .dm14-modes .dm14-mode{min-width:0}}

/* v104 — compact room chat header, direct player status, clearer game activity */
#closer-chat .closer-chat-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:9px 11px!important;min-height:0!important}
#closer-chat .closer-chat-heading{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:2px}
#closer-chat .closer-chat-heading strong{display:block;font-size:16px;line-height:1.24;margin:0}
#closer-chat .closer-chat-heading small{display:block;font-size:10.5px;line-height:1.3;margin:0;color:#bdcede;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#closer-chat .closer-chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;min-width:0}
#closer-chat .closer-chat-header-presence{display:inline-flex;align-items:center;margin:0!important;padding:6px 8px;font-size:9px;line-height:1.1;letter-spacing:.015em;white-space:nowrap;flex-shrink:0;gap:4px}
#closer-chat #closer-chat-x{position:relative;display:grid;place-items:center;flex:0 0 36px;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;margin:0;padding:0;border-radius:10px;font-size:23px;line-height:1;font-weight:500}
#closer-chat #closer-chat-x::after{content:'';position:absolute;inset:-4px}
#closer-chat .closer-chat-game-events{max-height:205px;padding:9px 11px 11px;background:linear-gradient(145deg,#1f3c58,#152d46);border-bottom:1px solid #6689a8}
#closer-chat .closer-chat-game-events.has-important-event{border-bottom-color:#c8a467}
#closer-chat .closer-chat-activity-toggle{padding:5px 2px 8px;min-height:34px;gap:7px}
#closer-chat .closer-chat-activity-toggle .closer-chat-activity-title{font-size:11px;font-weight:900;letter-spacing:.075em;color:#ffdc98}
#closer-chat .closer-chat-game-events.has-important-event .closer-chat-activity-title::after{content:' •';color:#ffcf72;font-size:13px}
#closer-chat .closer-chat-activity-toggle small{font-size:10px;color:#d5e3f3;font-weight:720}
#closer-chat .closer-chat-game-events .closer-game-event{display:flex;flex-direction:column;gap:5px;margin:3px 0 0;padding:10px 12px;border-radius:10px;background:#2b4865;border:1px solid #526f8a;border-left:4px solid #88afd2;box-shadow:0 3px 10px #07182c25;overflow-wrap:anywhere}
#closer-chat .closer-chat-game-events .closer-game-event .closer-game-event-label{display:block;font-size:9px;font-weight:900;letter-spacing:.105em;color:#c7e2fc;line-height:1.3}
#closer-chat .closer-chat-game-events .closer-game-event p{font-size:13px;line-height:1.4;color:#f6faff;margin:0;font-weight:650}
#closer-chat .closer-chat-game-events .closer-game-event.is-latest{box-shadow:0 0 0 1px #8fb3cf55,0 5px 17px #0516274d}
#closer-chat .closer-chat-game-events .closer-game-event.proposal{background:#453c36;border-color:#987954;border-left:5px solid #f4c46e}
#closer-chat .closer-chat-game-events .closer-game-event.proposal .closer-game-event-label{color:#ffe1a7}
#closer-chat .closer-chat-game-events .closer-game-event.hint{background:#3b4153;border-color:#80798a;border-left:5px solid #efc47c}
#closer-chat .closer-chat-game-events .closer-game-event.hint .closer-game-event-label{color:#f5d6a9}
#closer-chat .closer-chat-game-events .closer-game-event.solved{background:#25493e;border-color:#4d8a74;border-left:5px solid #80deae}
#closer-chat .closer-chat-game-events .closer-game-event.solved .closer-game-event-label{color:#baf0d2}
#closer-chat .closer-chat-game-events .closer-game-event.result{background:#30435d;border-left:4px solid #9ab6d2}
#closer-chat .closer-chat-game-events .closer-game-event:not(.is-latest){padding:8px 10px;opacity:.86}
@media(max-width:400px){#closer-chat .closer-chat-header{padding:8px 10px!important;gap:5px!important}#closer-chat .closer-chat-header-actions{gap:6px}#closer-chat .closer-chat-heading small{font-size:10px}#closer-chat .closer-chat-header-presence{font-size:8.5px;padding:5px 6px}#closer-chat #closer-chat-x{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;flex-basis:34px}#closer-chat .closer-chat-game-events .closer-game-event p{font-size:12px}}
@media(max-height:500px){#closer-chat .closer-chat-game-events{max-height:110px}}
@media(prefers-reduced-motion:reduce){#closer-chat .closer-chat-game-events .closer-game-event{transition:none}}

/* v108: tighter chat close control and smaller activity panel. */
#closer-chat #closer-chat-x{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex:0 0 30px!important;font-size:19px!important;line-height:1!important;border-radius:9px!important}
#closer-chat #closer-chat-x::after{inset:-7px!important}
#closer-chat .closer-chat-header{padding:8px 10px!important;gap:6px!important}
#closer-chat .closer-chat-game-events{padding:6px 9px 7px!important;max-height:164px!important}
#closer-chat .closer-chat-activity-toggle{padding:2px 1px 5px!important;min-height:27px!important;gap:5px!important}
#closer-chat .closer-chat-activity-toggle .closer-chat-activity-title{font-size:10px!important;letter-spacing:.065em!important}
#closer-chat .closer-chat-activity-toggle small{font-size:9px!important}
#closer-chat .closer-chat-game-events .closer-game-event{gap:3px!important;margin-top:2px!important;padding:8px 9px!important;border-radius:9px!important}
#closer-chat .closer-chat-game-events .closer-game-event:not(.is-latest){padding:6px 8px!important}
#closer-chat .closer-chat-game-events .closer-game-event .closer-game-event-label{font-size:8.5px!important;letter-spacing:.07em!important}
#closer-chat .closer-chat-game-events .closer-game-event p{font-size:12px!important;line-height:1.32!important}
@media(max-width:400px){#closer-chat #closer-chat-x{width:29px!important;height:29px!important;min-width:29px!important;min-height:29px!important;flex-basis:29px!important;font-size:18px!important}#closer-chat .closer-chat-game-events{padding:5px 8px 7px!important}#closer-chat .closer-chat-game-events .closer-game-event p{font-size:11.5px!important}}
@media(max-height:500px){#closer-chat .closer-chat-game-events{max-height:102px!important}}

/* v109: separate collapsible Double Meaning game-mode selector. */
#app .double-game-modes{display:block;margin:2px 0 13px;border:1px solid #4b6884;border-radius:13px;background:#152b43;overflow:hidden;color:#e8effb}
#app .double-game-modes>summary{display:flex;align-items:center;gap:10px;padding:11px 14px;min-height:49px;cursor:pointer;list-style:none;touch-action:manipulation;user-select:none}
#app .double-game-modes>summary::-webkit-details-marker{display:none}
#app .double-game-modes>summary::marker{content:''}
#app .double-game-modes>summary:focus-visible{outline:2px solid #e6c48e;outline-offset:-3px}
#app .double-game-modes .double-mode-summary-icon{display:grid;place-items:center;flex:0 0 26px;height:26px;border-radius:8px;background:#29435d;color:#e8c58e;font-size:18px;line-height:1}
#app .double-game-modes>summary strong{font-size:14px;line-height:1.25;font-weight:750;color:#f0e2ca}
#app .double-game-modes>summary small{margin-left:auto;font-size:11px;color:#afc4d9;white-space:nowrap}
#app .double-game-modes .double-mode-chevron{font-size:20px;line-height:1;color:#e6c58e;transition:transform .15s ease}
#app .double-game-modes[open] .double-mode-chevron{transform:rotate(180deg)}
#app .double-game-modes .double-mode-body{padding:0 11px 10px;border-top:1px solid #395873}
#app .double-game-modes .dm14-modes,#app .double-game-modes .double-modebar{margin:10px 0 0;gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}
#app .double-game-modes .dm14-mode{min-height:58px!important;padding:7px 8px!important;gap:2px}
#app .double-game-modes .dm14-mode span{font-size:17px;line-height:1.1}
#app .double-game-modes .dm14-mode b{font-size:12px;line-height:1.3}
#app .double-game-modes .dm14-mode small{font-size:10px;line-height:1.25}
#app .double-game-modes .double-modebar .btn{min-height:55px;padding:7px 9px;line-height:1.3}
#app .dm14-game .dm14-head{margin-top:7px}
#app .dm14-game .dm14-score{justify-content:space-between;gap:16px}
@media(min-width:560px){#app .double-game-modes .dm14-modes,#app .double-game-modes .double-modebar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:390px){#app .double-game-modes>summary{padding:9px 11px;gap:8px;min-height:46px}#app .double-game-modes .double-mode-body{padding:0 8px 8px}#app .double-game-modes .dm14-modes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#app .double-game-modes .double-mode-chevron{transition:none}}

/* v110: compact Double Meaning title, no repeated captions or teammate banner */
#app .dm14-game .dm14-head{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:6px 0 10px;padding:0}
#app .dm14-game .dm14-head h2{font-size:18px!important;font-weight:750;line-height:1.28;letter-spacing:-.02em;margin:0!important}
#app .dm14-game .dm14-head .dm14-round{flex:0 0 auto;max-width:58%;white-space:normal;text-align:center;font-size:11px!important;line-height:1.3;padding:7px 8px!important}
#app .dm14-game .dm14-score{margin-top:0;margin-bottom:12px}
@media(max-width:390px){#app .dm14-game .dm14-head h2{font-size:17px!important}#app .dm14-game .dm14-head .dm14-round{font-size:10px!important;padding:6px 7px!important}}

/* v111 — Midnight Sapphire with a romantic rose Meaning 2 and tighter mobile gameplay. */
#app .dm14-game .dm14-clue-grid{gap:11px}
#app .dm14-game .dm14-clue{position:relative;overflow:hidden;min-height:106px;padding:15px 16px 17px;border-radius:15px;border:1px solid #547a9d;background:linear-gradient(132deg,#1f3e5d 0%,#1b3452 60%,#1b2e49 100%);box-shadow:inset 3px 0 0 #709fca,0 5px 14px #06142722}
#app .dm14-game .dm14-clue span{display:inline-flex;align-items:center;width:fit-content;background:#294c6c;border-radius:7px;padding:5px 8px;color:#d7eafc;font-size:10px;line-height:1.2;font-weight:850;letter-spacing:.095em}
#app .dm14-game .dm14-clue p{margin:13px 0 0;color:#f6f8fe;font-size:16px;line-height:1.52;letter-spacing:.002em;font-weight:450;overflow-wrap:break-word}
#app .dm14-game .dm14-clue.meaning-two:not(.locked){background:linear-gradient(132deg,#563249 0%,#60394f 49%,#3d304a 100%);border:1px solid #ca87ab;box-shadow:inset 3px 0 0 #f1a0c4,0 6px 18px #1d11263b}
#app .dm14-game .dm14-clue.meaning-two:not(.locked)::after{content:'';position:absolute;right:-38px;top:-58px;width:150px;height:150px;border-radius:50%;background:radial-gradient(circle,#e59bbc22 0%,transparent 72%);pointer-events:none}
#app .dm14-game .dm14-clue.meaning-two:not(.locked) span{position:relative;z-index:1;background:#7b4866;color:#ffe1ef}
#app .dm14-game .dm14-clue.meaning-two:not(.locked) p{position:relative;z-index:1;color:#fff2f8}
#app .dm14-game .dm14-clue.locked{border-style:dashed;box-shadow:none}
#app .dm14-game .dm14-score{display:flex;align-items:center;min-height:58px;justify-content:space-between;gap:12px;padding:11px 14px;margin:8px 0 13px;background:linear-gradient(135deg,#19334f,#1c3048);border:1px solid #486b8b;border-radius:13px;font-size:11px;letter-spacing:.025em}
#app .dm14-game .dm14-score b{font-size:20px;line-height:1;color:#f6d194;font-weight:800;margin-left:4px}
#app .dm14-game .dm14-score .dm14-live-status{color:#e4c68c;font-size:11px;font-weight:650;letter-spacing:0;text-align:right}
#app .dm14-game .dm14-entry{margin:13px 0 10px}
#app .dm14-game .dm14-entry label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;border:0!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;overflow:hidden!important;white-space:nowrap!important}
#app .dm14-game .dm14-input-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:stretch}
#app .dm14-game .dm14-input-row input{border:1px solid #688db2;background:#071e35;color:#f7f5fa;border-radius:12px;min-width:0;min-height:49px;padding:12px 14px;font-size:16px;outline-offset:2px}
#app .dm14-game .dm14-input-row input:focus{outline:2px solid #e2c28c;border-color:#edcc9c}
#app .dm14-game .dm14-input-row .btn{border-radius:12px;min-height:49px;padding:10px 15px;white-space:nowrap;font-weight:750}
#app .dm14-game .dm14-help{gap:9px;margin-top:11px}
#app .dm14-game .dm14-help .btn{border-radius:11px;min-height:42px;font-size:12px;padding:9px 10px}
#app .dm14-game .dm14-proposal{border-left:4px solid #e3b783;border-radius:13px}
@media(max-width:390px){#app .dm14-game .dm14-clue{padding:13px 13px 15px;min-height:95px}#app .dm14-game .dm14-clue p{font-size:15px;line-height:1.47;margin-top:11px}#app .dm14-game .dm14-score{padding:10px 12px;min-height:53px}#app .dm14-game .dm14-input-row .btn{padding:9px 11px;font-size:13px}}
@media(prefers-reduced-motion:reduce){#app .dm14-game .dm14-clue,#app .dm14-game .dm14-input-row *{transition:none!important}}

/* v112 Letter Heist cooperative visual polish */
#app .heist-game .heist-title{font-size:21px;line-height:1.25;margin:11px 0 8px}
#app .heist-game .heist-clue{padding:13px;min-height:64px;background:linear-gradient(140deg,#223e58,#182d47);font-size:15px;line-height:1.45}
#app .heist-game .heist-turn-notice{padding:10px 11px;margin:12px 0 7px;background:#1c3551;color:#d7e9fa;border:1px solid #557893;border-radius:11px;text-align:center;font-size:12px;font-weight:700}
#app .heist-game .heist-turn-notice.my-turn{background:#423746;border-color:#e5bc81;color:#ffebc6}
#app .heist-game .heist-tiles{margin:10px 0 8px}
#app .heist-game .heist-slot{height:53px}
#app .heist-game .heist-players{gap:8px;margin:10px 0}
#app .heist-game .heist-player{padding:10px 7px;min-width:0;border-radius:12px}
#app .heist-game .heist-player.heist-blue{background:linear-gradient(135deg,#1e3f59,#182d46);border-color:#5b84a5}
#app .heist-game .heist-player.heist-pink{background:linear-gradient(135deg,#613f56,#392c45);border-color:#b57a9c}
#app .heist-game .heist-player.heist-pink .heist-letter{background:#684760;border-color:#ae819f;color:#ffe8f7}
#app .heist-game .heist-player.heist-mine{box-shadow:inset 0 0 0 1px #f0ce9777}
#app .heist-game .heist-player.heist-active{border-color:#f5d190;box-shadow:0 0 0 2px #f0cf9160}
#app .heist-game .heist-player-label{gap:3px;margin-bottom:8px}
#app .heist-game .heist-player-label b{font-size:11px}
#app .heist-game .heist-player-label small{font-size:9px}
#app .heist-game .heist-instructions{padding:3px 2px 8px;font-size:11px}
#app .heist-game .heist-vote-info{padding:10px 12px;margin:8px 0;border:1px solid #c7a273;border-left:4px solid #edc280;border-radius:10px;background:#453b38;color:#ffe7c0;font-size:12px;line-height:1.4;font-weight:650}
#app .heist-game .heist-actions{display:flex;gap:8px;flex-wrap:wrap}
#app .heist-game .heist-actions .btn{flex:1 1 132px;min-height:43px;border-radius:10px;font-size:12px;padding:9px 11px}
@media(max-width:400px){#app .heist-game .heist-title{font-size:19px}#app .heist-game .heist-clue{font-size:14px;padding:11px}#app .heist-game .heist-slot{height:48px}#app .heist-game .heist-player{padding:9px 6px}#app .heist-game .heist-players{gap:6px}}
@media(prefers-reduced-motion:reduce){#app .heist-game *{transition:none!important}}

/* v114 Word Forge: compact mode dropdown and consensus */
#app .forge-mode-picker{display:block;margin:0 0 12px;border:1px solid #506d89;border-radius:13px;overflow:hidden;background:#172e47}
#app .forge-mode-picker>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 13px;cursor:pointer;list-style:none;color:#f7e3c0}
#app .forge-mode-picker>summary::-webkit-details-marker{display:none}
#app .forge-mode-picker>summary::marker{content:''}
#app .forge-mode-picker>summary strong{font-size:14px}
#app .forge-mode-picker>summary small{margin-left:auto;color:#adc7df;font-size:11px}
#app .forge-mode-picker>summary .forge-mode-chevron{color:#e9c17e;font-size:20px;transition:transform .15s}
#app .forge-mode-picker[open] .forge-mode-chevron{transform:rotate(180deg)}
#app .forge-mode-picker .forge-mode-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px;border-top:1px solid #3d5f7d}
#app .forge-mode-picker .forge-mode-body .btn{font-size:12px;min-height:44px;padding:8px 6px;white-space:normal;line-height:1.25;border-radius:9px}
#app .forge-consent{margin:10px 0;padding:12px;border:1px solid #d3aa77;border-left:4px solid #ffcc87;border-radius:12px;background:linear-gradient(130deg,#45363d,#2d384e);color:#fff1d9}
#app .forge-consent b{font-size:12px;color:#ffe09a}
#app .forge-consent p{font-size:12px;line-height:1.4;margin:7px 0}
#app .forge-consent-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#app .forge-consent-actions .btn{min-height:40px;border-radius:10px;padding:8px 12px;font-size:12px}
#app .forge-consent-actions small{font-size:11px;color:#efd5b8}
#app .forge-game .forge-turn{padding:10px;margin:10px 0;font-size:12px}
#app .forge-game .forge-turn b{font-size:13px;margin-bottom:4px}
#app .forge-game .forge-turn span{font-size:11px}
#app .forge-game .forge-scorebar{margin:9px 0;gap:7px}
#app .forge-game .forge-scorebar>div{min-height:61px;padding:9px 5px}
#app .forge-game .forge-scorebar small{font-size:9px}
#app .forge-game .forge-scorebar strong{font-size:15px}
#app .forge-game .forge-entry .btn,#app .forge-game .forge-actions .btn{min-height:43px;border-radius:10px;font-size:12px}
@media(min-width:600px){#app .forge-mode-picker .forge-mode-body{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:390px){#app .forge-mode-picker>summary{padding:9px 10px;min-height:46px}#app .forge-mode-picker .forge-mode-body{gap:6px;padding:8px}#app .forge-consent-actions .btn{flex:1 1 100px}}
@media(prefers-reduced-motion:reduce){#app .forge-mode-picker>summary .forge-mode-chevron{transition:none}}

/* v115 Forge players and recovery buttons */
#app .forge-game .forge-turn.forge-p1{background:linear-gradient(145deg,#1c3d59,#1b304e);border-color:#668fae}
#app .forge-game .forge-turn.forge-p2{background:linear-gradient(145deg,#603d53,#3e304d);border-color:#b17e9f}
#app .forge-game .forge-turn.forge-p2 b{color:#ffd9ec}
#app .forge-game .forge-turn.forge-p2 span{color:#f4dfea}
#app .forge-mode-picker>summary:focus-visible{outline:2px solid #edc88d;outline-offset:-2px}
#app .forge-game .forge-actions .btn{white-space:normal}

/* v118 Word Parasite: compact sapphire and rose, clearer shared approvals */
#app .parasite-game .parasite-title{font-size:19px;line-height:1.3;margin:7px 0 8px}
#app .parasite-game .bar{display:flex;justify-content:space-between;align-items:center;gap:8px}
#app .parasite-game .bar .label,#app .parasite-game .bar .status{font-size:10px;line-height:1.4}
#app .parasite-game .parasite-turn-notice{margin:9px 0 12px;padding:10px;border:1px solid #6689ab;border-radius:11px;text-align:center;font-size:12px;font-weight:700;background:linear-gradient(135deg,#1d415d,#1f324e);color:#e8f4ff}
#app .parasite-game .parasite-turn-notice.parasite-player-pink{background:linear-gradient(135deg,#613d53,#3c304a);border-color:#c18caa;color:#ffe2f0}
#app .parasite-game .parasite-stats{gap:8px;margin:10px 0}
#app .parasite-game .parasite-stats>div{min-height:60px;padding:9px 7px;border-radius:11px}
#app .parasite-game .parasite-stats small{font-size:9px}
#app .parasite-game .parasite-stats strong{font-size:16px}
#app .parasite-game .parasite-word-box{margin:11px 0;padding:17px 13px;border:1px solid #6485a3;border-radius:15px;background:linear-gradient(135deg,#26415c,#20324b)}
#app .parasite-game .parasite-word-box strong{font-size:26px;line-height:1.25;letter-spacing:.06em;overflow-wrap:anywhere;color:#ffe3af}
#app .parasite-game .parasite-word-meta{font-size:11px;margin-top:8px}
#app .parasite-game .parasite-entry{margin:12px 0}
#app .parasite-game .parasite-entry label{font-size:11px}
#app .parasite-game .parasite-entry p{margin:6px 1px;font-size:11px;line-height:1.4;color:#b0c9df}
#app .parasite-game .parasite-entry .inputrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#app .parasite-game .parasite-entry input{min-width:0;min-height:47px;font-size:16px;border-radius:11px}
#app .parasite-game .parasite-entry .btn{min-height:47px;border-radius:11px;padding:9px 13px}
#app .parasite-game .parasite-hint{background:#473a50;border:1px solid #b885a6;color:#ffe3ee;border-radius:11px;padding:11px 13px;font-size:12px;line-height:1.5}
#app .parasite-game .parasite-hint-button .btn{min-height:42px;border-radius:10px;font-size:12px}
#app .parasite-game .parasite-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#app .parasite-game .parasite-controls .btn{flex:1 1 130px;min-height:44px;font-size:12px;padding:9px 11px;border-radius:10px;white-space:normal}
#app .parasite-game .parasite-approval{padding:12px;margin:10px 0;background:linear-gradient(135deg,#483a40,#343849);border:1px solid #e1b685;border-left:4px solid #f2c88c;border-radius:12px;color:#ffe9cd}
#app .parasite-game .parasite-approval b{font-size:12px;color:#ffe0ad}
#app .parasite-game .parasite-approval p{font-size:12px;line-height:1.4;margin:6px 0 10px}
#app .parasite-game .parasite-approval-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#app .parasite-game .parasite-approval-actions .btn{min-height:41px;padding:8px 12px;border-radius:10px;font-size:12px}
#app .parasite-game .parasite-approval-actions small{font-size:11px;color:#e7d0b2}
#app .parasite-game .parasite-note{font-size:12px;margin:8px 0;color:#eacdad}
@media(max-width:390px){#app .parasite-game .parasite-title{font-size:18px}#app .parasite-game .parasite-word-box strong{font-size:24px}#app .parasite-game .parasite-stats strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){#app .parasite-game *{transition:none!important}}

/* Mutation v117: sapphire and rose, compact Android game area */
#app .mutation-game .bar{display:flex;justify-content:space-between;align-items:center;gap:8px}
#app .mutation-game .bar .label,#app .mutation-game .bar .status{font-size:10px;line-height:1.4}
#app .mutation-game .mutation-title{font-size:20px;line-height:1.25;margin:10px 0 8px}
#app .mutation-game .mutation-turn-indicator{margin:9px 0 11px;padding:10px;border:1px solid #688eae;border-radius:11px;text-align:center;font-size:12px;font-weight:750;background:linear-gradient(135deg,#1f405e,#1c3451);color:#e7f2ff}
#app .mutation-game .mutation-turn-indicator.mutation-rose{background:linear-gradient(135deg,#644056,#3d304b);border-color:#c58fae;color:#ffe4f2}
#app .mutation-game .mutation-endpoints{margin:10px 0;gap:7px}
#app .mutation-game .mutation-endpoints>div:not(.mutation-route-arrow){min-height:68px;padding:11px 6px;border-radius:12px}
#app .mutation-game .mutation-endpoints small{font-size:9px}
#app .mutation-game .mutation-endpoints strong{font-size:19px;line-height:1.25;overflow-wrap:anywhere}
#app .mutation-game .mutation-scores{gap:7px;margin:10px 0}
#app .mutation-game .mutation-scores>div{padding:9px 5px;min-height:63px;border-radius:11px}
#app .mutation-game .mutation-scores small{font-size:9px;line-height:1.2}
#app .mutation-game .mutation-scores strong{font-size:17px}
#app .mutation-game .mutation-current{margin:10px 0;padding:13px;background:linear-gradient(140deg,#23415b,#203750);border-color:#698eab;border-radius:13px}
#app .mutation-game .mutation-current strong{font-size:25px;margin:8px 0}
#app .mutation-game .mutation-route-info{margin:8px 0;gap:6px}
#app .mutation-game .mutation-route-info span{font-size:10px}
#app .mutation-game .duo-clock-box{padding:11px;margin:10px 0;border-radius:12px}
#app .mutation-game .duo-clock-header b{font-size:12px}
#app .mutation-game .duo-clock-header strong{font-size:14px}
#app .mutation-game .mutation-clock-note{margin:6px 0 9px;color:#b6cede;font-size:11px;line-height:1.4}
#app .mutation-game .duo-clock-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
#app .mutation-game .duo-clock-buttons .duo-small{min-width:0;min-height:39px;font-size:11px;padding:7px 4px;border-radius:9px}
#app .mutation-game .mutation-entry{margin:10px 0}
#app .mutation-game .mutation-entry label{font-size:11px}
#app .mutation-game .mutation-entry .inputrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#app .mutation-game .mutation-entry input{min-width:0;min-height:47px;font-size:16px;border-radius:11px}
#app .mutation-game .mutation-entry .btn{min-height:47px;padding:9px 14px;font-size:12px;border-radius:11px}
#app .mutation-game .mutation-hint-area{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:10px 0}
#app .mutation-game .mutation-hint-area .btn{min-height:40px;font-size:12px;border-radius:10px}
#app .mutation-game .mutation-hint-area>small{font-size:10px;line-height:1.4;color:#b5cadb}
#app .mutation-game .mutation-hint-result{flex-basis:100%;margin:3px 0}
#app .mutation-game .mutation-controls{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
#app .mutation-game .mutation-controls .btn{min-height:43px;flex:1 1 125px;padding:9px 11px;font-size:12px;border-radius:10px;white-space:normal}
#app .mutation-game .mutation-approval{margin:10px 0;padding:12px;border:1px solid #e7ba84;border-left:4px solid #f4c687;border-radius:12px;background:linear-gradient(125deg,#493940,#32394d);color:#ffe8cd}
#app .mutation-game .mutation-approval b{font-size:12px;color:#ffe2ad}
#app .mutation-game .mutation-approval p{font-size:12px;line-height:1.4;margin:7px 0 10px}
#app .mutation-game .mutation-approval-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#app .mutation-game .mutation-approval-actions .btn{min-height:40px;font-size:12px;padding:8px 11px;border-radius:10px}
#app .mutation-game .mutation-approval-actions small{font-size:11px;color:#dfc8aa}
#app .mutation-game .mutation-history-player.blue{color:#b8deff}
#app .mutation-game .mutation-history-player.rose{color:#ffc0e0}
#app .mutation-game .mutation-notice{margin:8px 0;font-size:12px;color:#eed1ab}
@media(max-width:390px){#app .mutation-game .mutation-title{font-size:19px}#app .mutation-game .mutation-endpoints strong{font-size:17px}#app .mutation-game .mutation-scores strong{font-size:15px}#app .mutation-game .mutation-current strong{font-size:23px}}
@media(prefers-reduced-motion:reduce){#app .mutation-game *{transition:none!important}}

/* Phrase Bridge · Game 05 standalone */
#app .phrase-alone{background:linear-gradient(145deg,#13243b,#1b2a43);overflow:hidden}
#app .phrase-alone h2{font-size:20px;line-height:1.3;margin:10px 0 5px;color:#fff1e5}
#app .phrase-alone .pb-top{display:flex;justify-content:space-between;gap:9px;font-size:10px;letter-spacing:.08em;font-weight:700;color:#c5d8e8}
#app .phrase-alone .pb-top span:last-child{color:#f0c4db;text-align:right}
#app .phrase-alone .pb-sub{font-size:12px;color:#bfd1e0;line-height:1.5;margin:0 0 12px}
#app .phrase-alone .pb-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0 13px}
#app .phrase-alone .pb-stats>div{border:1px solid #456581;border-radius:11px;background:#263b52;padding:8px 5px;min-height:61px;display:flex;flex-direction:column;align-items:center;justify-content:center}
#app .phrase-alone .pb-stats small{font-size:9px;color:#b2cadc}
#app .phrase-alone .pb-stats strong{font-size:18px;color:#ffe1ac;margin-top:4px}
#app .phrase-alone .pb-clues{display:grid;gap:9px}
#app .phrase-alone .pb-clue{border:1px solid;border-radius:13px;min-height:106px;display:flex;flex-direction:column;justify-content:center;gap:12px;padding:13px}
#app .phrase-alone .pb-blue{background:linear-gradient(135deg,#254c6b,#203951);border-color:#7daacc}
#app .phrase-alone .pb-pink{background:linear-gradient(135deg,#643a52,#3d304a);border-color:#c68da9}
#app .phrase-alone .pb-clue>small{color:#e4f0fc;font-size:10px;letter-spacing:.12em;font-weight:750}
#app .phrase-alone .pb-pink>small{color:#ffdeee}
#app .phrase-alone .pb-words{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:10px;text-align:center;color:#fff3ec;font-size:18px;line-height:1.35;font-weight:800;overflow-wrap:anywhere}
#app .phrase-alone .pb-empty{border-bottom:3px solid #f0d1aa;min-width:45px;text-align:center;padding:0 12px 3px;color:#f5d5a7}
#app .phrase-alone .pb-answer{padding:4px 9px;border-radius:8px;background:#f6dfad;color:#294250;font-size:16px;overflow-wrap:anywhere}
#app .phrase-alone .pb-entry{margin:13px 0}
#app .phrase-alone .pb-entry>label{display:block;font-size:11px;font-weight:650;color:#c7d9e7;margin-bottom:7px}
#app .phrase-alone .pb-inputrow{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
#app .phrase-alone .pb-inputrow input{min-width:0;min-height:47px;font-size:16px;border-radius:10px}
#app .phrase-alone .pb-inputrow .btn{min-height:47px;min-width:86px;border-radius:10px;padding:9px 13px;font-size:12px}
#app .phrase-alone .pb-hints{display:flex;gap:7px;flex-wrap:wrap;margin:9px 0}
#app .phrase-alone .pb-hints span{background:#3a4049;border:1px solid #c9aa79;border-radius:9px;padding:8px 10px;color:#ffe0ac;font-size:11px}
#app .phrase-alone .pb-feedback{font-size:12px;line-height:1.5;color:#fce0b5;background:#354153;border-radius:9px;padding:10px;margin:10px 0}
#app .phrase-alone .pb-feedback.pb-good{background:#2b5247;color:#dcf9e9}
#app .phrase-alone .pb-result{background:#4d3d4a;border:1px solid #b98eaa;border-radius:12px;padding:13px;margin:12px 0;color:#ffeaed}
#app .phrase-alone .pb-result.pb-win{background:#2d5148;border-color:#8cbe9d;color:#e0fce7}
#app .phrase-alone .pb-result strong{font-size:13px}#app .phrase-alone .pb-result p{font-size:12px;color:#e0e7e9;margin:6px 0 0}
#app .phrase-alone .pb-actions{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}
#app .phrase-alone .pb-actions .btn{min-height:43px;flex:1 1 120px;padding:9px 11px;border-radius:10px;font-size:12px}
#app .phrase-alone .pb-how{margin:12px 0;border:1px solid #4c6885;border-radius:11px;background:#26374b;padding:0 11px}
#app .phrase-alone .pb-how summary{list-style:none;display:flex;justify-content:space-between;padding:12px 0;cursor:pointer;font-weight:700;font-size:12px;color:#e6f0fa}
#app .phrase-alone .pb-how summary::-webkit-details-marker{display:none}
#app .phrase-alone .pb-how p{font-size:12px;line-height:1.58;color:#c8d8e5;margin:4px 0 10px}
@media(max-width:390px){#app .phrase-alone h2{font-size:19px}#app .phrase-alone .pb-words{font-size:16px}#app .phrase-alone .pb-clue{min-height:97px;padding:11px}#app .phrase-alone .pb-answer{font-size:14px}}
@media(prefers-reduced-motion:reduce){#app .phrase-alone *{transition:none!important}}

/* Mini Golf v126: smoother touch-pan, gentle putt controls and clear terrain cues. */
#app .golf-board-frame{overscroll-behavior:contain}
#app #golfCanvas{touch-action:none;-webkit-tap-highlight-color:transparent}
#app .golf-short-tip{max-width:390px;line-height:1.55;color:#c0d0de}
#app .golf-status.active{border-color:#8fb6aa;box-shadow:0 0 0 1px rgba(149,216,185,.12)}
@media(prefers-reduced-motion:reduce){#app .golf-game .golf-power-track span{transition:none}}

/* Mini Golf v129: small-screen precision controls and clear hazard cues */
#app .golf-fine-shell{margin:10px 0 8px;border:1px solid #587c94;border-radius:12px;background:linear-gradient(135deg,#1e354d,#23394c);overflow:hidden}
#app .golf-fine-toggle{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:0;color:#eaf1fb;padding:12px 13px;font-size:13px;font-weight:700;min-height:46px;touch-action:manipulation}
#app .golf-fine-toggle>span:first-child{white-space:nowrap}
#app .golf-fine-toggle small{color:#b0cde0;font-size:11px;font-weight:450;flex:1}
#app .golf-fine-toggle>span:last-child{color:#e9cbad;font-size:17px}
#app .golf-fine-toggle[aria-expanded="true"]{border-bottom:1px solid #4d6a81}
#app .golf-fine-panel{padding:12px 12px 13px}
#app .golf-fine-panel[hidden]{display:none!important}
#app .golf-fine-panel>p{margin:0 0 12px;font-size:11px;line-height:1.5;color:#c5d8e4}
#app .golf-fine-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0;padding:7px 0;border-bottom:1px solid #3c566b}
#app .golf-fine-row>span{font-size:12px;font-weight:650;min-width:70px;color:#e7eff8}
#app .golf-fine-adjust{display:grid;grid-template-columns:62px 55px 62px;align-items:center;gap:6px}
#app .golf-fine-adjust button{border:1px solid #7c9cb5;background:#2c4a66;border-radius:9px;color:#f0f6ff;font-weight:700;font-size:12px;min-height:42px;touch-action:manipulation}
#app .golf-fine-adjust strong{text-align:center;font-size:13px;color:#f6dbaa;font-variant-numeric:tabular-nums}
#app .golf-fine-footer{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-top:12px}
#app .golf-fine-footer .btn{min-height:45px;font-size:12px;border-radius:10px;padding:9px 8px}
#app .golf-fine-note{display:block;color:#b7cedc;font-size:10px;line-height:1.5;margin:10px 0 0}
#app .golf-hazard-key{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 9px}
#app .golf-hazard-key span{display:inline-block;border:1px solid #71868b;background:#2a3e4c;color:#d4e8ec;font-size:10px;border-radius:20px;padding:6px 9px;line-height:1.35}
#app .golf-fine-shell button:focus-visible{outline:2px solid #f1d2a3;outline-offset:2px}
@media(max-width:390px){#app .golf-fine-toggle small{font-size:10px}#app .golf-fine-adjust{grid-template-columns:53px 47px 53px;gap:5px}#app .golf-fine-adjust button{min-height:43px;font-size:11px}#app .golf-fine-row>span{min-width:62px}}

/* Mini Golf v131: premium framing and lightweight, readable scorecard */
#app .golf-game .golf-board-frame{border-color:rgba(170,213,191,.73);
 box-shadow:0 15px 35px rgba(4,17,28,.42),0 3px 12px rgba(8,27,38,.3),
 inset 0 1px 0 rgba(255,250,226,.17)}
#app .golf-game .golf-board-frame[data-world-theme="1"]{border-color:rgba(119,213,236,.75)}
#app .golf-game .golf-board-frame[data-world-theme="2"]{border-color:rgba(240,149,93,.76)}
#app .golf-game .golf-board-frame[data-world-theme="3"]{border-color:rgba(207,222,190,.76)}
#app .golf-game .golf-board-frame[data-world-theme="4"]{border-color:rgba(169,168,239,.78)}
#app .golf-game .golf-world-banner{box-shadow:0 5px 14px rgba(7,20,34,.23),inset 0 1px 0 rgba(255,255,255,.12)}
#app .golf-game .golf-recap{margin:9px 0 12px;padding:12px;border:1px solid rgba(226,195,137,.6);
 border-radius:12px;background:linear-gradient(110deg,#2d4c48,#273d52 68%,#28374d);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.13);color:#f9efd2}
#app .golf-game .golf-recap-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;line-height:1.4}
#app .golf-game .golf-recap-head strong{font-weight:850}
#app .golf-game .golf-recap-head b{color:#ffe0a1;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}
#app .golf-game .golf-recap-chips{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
#app .golf-game .golf-recap-chips span{padding:6px 9px;font-size:10px;line-height:1.35;
 background:rgba(7,29,36,.31);border:1px solid rgba(168,206,187,.24);
 border-radius:15px;max-width:100%;overflow-wrap:anywhere}
@media(max-width:365px){#app .golf-game .golf-recap{padding:10px}#app .golf-game .golf-recap-head{font-size:12px}}


.try-card{display:flex;flex-direction:column;min-width:0}.try-card>.game-card{width:100%;flex:1;border-radius:12px 12px 0 0!important}
.try-button{border:1px solid #6686a3;border-top:0;border-radius:0 0 10px 10px;min-height:39px;padding:8px;background:#2a4660;color:#dff4ff;font-size:11px;font-weight:750}
.try-head{margin-left:auto;border:1px solid #8aadaf;border-radius:8px;padding:8px;background:#305c58;color:#edfff5;font-size:11px;font-weight:700}
.try-modal-open{overflow:hidden!important}
.try-overlay{position:fixed;z-index:99999;inset:0;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);background:#0c1927}
.try-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;background:#18344b;color:#e7f7ff;border-bottom:1px solid #567c91;gap:8px;min-height:53px}
.try-bar div{display:flex;flex-direction:column;gap:3px}.try-bar b{font-size:12px}.try-bar small{font-size:10px;color:#c4d8eb}
.try-close{min-width:43px;min-height:38px;background:#385875;color:white;border:1px solid #7393a9;border-radius:8px;font-size:17px}
.try-frame{width:100%;flex:1;min-height:0;border:0;background:#11253b}
.try-solo-page #roomPanel,.try-solo-page #lab-room-quick{display:none!important}
.try-badge,.try-intro{display:flex;justify-content:space-between;align-items:center;gap:9px;background:#30584b;color:#e5ffeb;border:1px solid #86b79e;border-radius:10px;padding:11px;margin:10px 0;font-size:12px}
#app .try-demo{background:linear-gradient(145deg,#1b314a,#273e50)}
#app .try-demo h2{font-size:20px;color:#ffebce}
#app .try-demo p{font-size:12px;color:#d6e6f1;line-height:1.55}
#app .try-demo .micro{font-size:11px;color:#b9d4e2}
.try-stats,.try-row{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:12px 0}
.try-stats span{padding:9px;background:#2d4d64;border:1px solid #6e93a9;border-radius:9px;font-size:11px;color:#ffe2b0}
.try-input{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.try-input input{min-width:0;flex:1 1 150px;font-size:16px}
.try-letters{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:12px 0}
.try-letters button{min-height:40px;padding:5px 0;font-size:11px}
.try-switches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0}
.try-switches span,.try-switches button{min-height:46px;text-align:center;border:1px solid #7293aa;border-radius:8px;background:#2b4a5e;color:#fff;padding:11px 3px;font-size:11px}
.try-switches .on{background:#398169}
.try-feedback{background:#315843;border:1px solid #a5c999;color:#f5ffe9;border-radius:9px;padding:10px;margin:12px 0}
.try-digits{display:flex;gap:5px;margin:7px 0}.try-digits span{min-width:33px;padding:8px;border-radius:7px;background:#834953;color:#fff;text-align:center}
.try-digits .good{background:#3a8668}
.try-tower{height:200px;position:relative;margin:13px 0;background:#284a56;border-radius:10px;overflow:hidden}
.try-tower span{position:absolute;left:11%;height:13px;background:#7ac3af;border-radius:3px}
.try-dice{display:flex;gap:7px;margin:10px 0}.try-dice b{display:grid;place-items:center;width:44px;height:44px;background:#f4e6cf;color:#213d4e;border-radius:9px;font-size:20px}
.try-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:255px;margin:10px 0}
.try-grid span,.try-grid button{min-height:42px;border:1px solid #6e96b2;background:#314c64;border-radius:6px;display:grid;place-items:center;color:#fff;padding:0}
.try-grid .on{background:#c990b8}
.try-rank{display:flex;gap:5px;align-items:center;padding:7px 0;border-bottom:1px solid #4f6c7d}
.try-rank span{flex:1;font-size:12px}.try-rank button{min-width:37px;min-height:37px;padding:7px}
.try-choice{margin:6px 0}.try-choice button{width:100%;text-align:left}
.try-heat{display:flex;justify-content:space-between;margin:6px 0;padding:9px;background:#2d5167;border-radius:8px}
#app .try-demo details{padding:12px 0;margin-top:18px;border-top:1px solid #577188;font-size:12px;color:#d9eaf4}
@media(max-width:340px){.try-bar{padding:9px}.try-bar small{font-size:9px}}
\n.try-card[hidden]{display:none!important}\n
/* Mini Bowling Duo — polished small-screen bowling alley */
.bw-shell{padding:13px!important;background:linear-gradient(145deg,#171a2c,#121928)!important;border:1px solid #45475f!important;border-radius:17px!important;color:#f0edf9!important;box-shadow:0 10px 36px #080b172d}
.bw-game{color:#f0edf9;font-family:inherit;font-size:13px}
.bw-game *{box-sizing:border-box}
.bw-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 9px}
.bw-head small{display:block;color:#b5abcb;font-weight:850;letter-spacing:.14em;font-size:9px}
.bw-head h2{font-size:20px;color:#f4eefa;margin:3px 0 0;font-weight:900;line-height:1.2}
.bw-bubble{color:#e8d6fe;background:#352c4d;border:1px solid #8973aa88;border-radius:999px;padding:6px 11px;font-size:10px;font-weight:850;white-space:nowrap}
.bw-stats{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;background:#222238;border:1px solid #4a435f;border-radius:11px;padding:8px 11px;font-size:10px;color:#d8cee9;font-weight:800}
.bw-stats strong{font-size:21px;color:#ffe0ac;margin-left:7px;font-weight:900;font-variant-numeric:tabular-nums}
.bw-board{position:relative;width:100%;height:clamp(325px,117vw,510px);background:#1e2334;border:2px solid #655b87;border-radius:16px;overflow:hidden;isolation:isolate;box-shadow:0 9px 22px #0505128f,inset 0 1px 0 #b1a5ec4a;touch-action:none}
.bw-board:after{content:"";pointer-events:none;position:absolute;inset:8px;border:1px solid #ffffff13;border-radius:10px}
.bw-svg{display:block;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair}
.bw-game[data-bw-can="0"] .bw-svg{cursor:default}
.bw-sub{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:10px;color:#c7b8df;margin:10px 3px 8px;font-weight:650}
.bw-frames{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:9px 0 10px}
.bw-frame{min-width:0;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;background:#26243b;border:1px solid #4c4866;border-radius:9px;padding:6px 3px;min-height:47px;color:#d3cde2}
.bw-frame small{font-size:9px;color:#afa9c0;line-height:1;font-weight:700}
.bw-frame b{font-size:13px;font-weight:900;white-space:nowrap;color:#f7ecdd}
.bw-frame.active{border-color:#e8c28b;background:#4b3e52;box-shadow:0 0 10px #e7bf7830}
.bw-result{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 11px;border:1px solid #7a688b;border-radius:9px;background:#3b2e51;margin:8px 0 10px}
.bw-result strong{color:#ffe0ab;font-size:14px}
.bw-result span{color:#e4d8f2;font-size:11px}
.bw-controls{display:flex;flex-direction:column;gap:10px}
.bw-aim-row{display:flex;align-items:center;gap:12px;padding:9px 10px;border:1px solid #4c4967;border-radius:10px;background:#25233e}
.bw-aim-row label{font-size:12px;font-weight:850;color:#ebd7f8;flex:0 0 auto}
.bw-aim{min-width:0;flex:1;accent-color:#dfb5fc;cursor:ew-resize;touch-action:pan-y;height:22px}
.bw-power{font-size:10px;font-weight:750;color:#d3c2e6;white-space:nowrap}
.bw-buttons{display:flex;align-items:center;gap:12px;margin-top:1px}
.bw-buttons small{font-size:11px;color:#d0c4de;line-height:1.4}
.bw-go{background:linear-gradient(115deg,#e8b9fc,#d3a4ea)!important;color:#282038!important;border:1px solid #ffe5ff!important;font-size:16px!important;min-height:46px;padding:10px 22px;border-radius:12px;font-weight:900;cursor:pointer;touch-action:manipulation;box-shadow:0 5px 14px #9b6fc83c}
.bw-go:hover{filter:brightness(1.07)}
.bw-go:active{transform:translateY(1px)}
.bw-go:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.4)}
.bw-finish{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px;margin:12px 0;background:linear-gradient(125deg,#3d3155,#2b2d41);border:1px solid #9b83b6;border-radius:12px}
.bw-finish strong{font-size:19px;color:#ffe2a9}
.bw-finish p{font-size:12px;color:#e5d8ee;margin:0}
.bw-help{margin:12px 1px 0;border-top:1px solid #4d4765;padding-top:9px;color:#cfbfdf;font-size:11px}
.bw-help summary{cursor:pointer;font-weight:800;color:#e5d3f4;font-size:11px}
.bw-help p{line-height:1.5;margin:8px 0}
.bw-pin-hit{opacity:1}
.bw-hit .bw-pin-hit path{transform-origin:center bottom;transform-box:fill-box;animation:bwTopple .32s ease-in forwards}
.bw-hit .bw-pin-hit ellipse{opacity:.1}
.bw-hit{box-shadow:0 0 0 2px var(--bw-glow),0 9px 22px #0505128f}
@keyframes bwTopple{0%{transform:rotate(0deg);opacity:1}80%{transform:translate(9px,8px) rotate(65deg);opacity:.7}100%{transform:translate(14px,14px) rotate(84deg);opacity:0}}
.try-demo:has(.bw-game){background:#151a2b;color:#f3f0fb;border-color:#514e72}
.try-demo:has(.bw-game)>small,.try-demo:has(.bw-game)>h2,.try-demo:has(.bw-game)>p.micro,.try-demo:has(.bw-game)>.try-stats{display:none}
.try-demo:has(.bw-game)>.try-row{display:none}
@media(max-width:390px){
 .bw-shell{padding:9px!important}
 .bw-head h2{font-size:17px}
 .bw-bubble{font-size:9px;padding:6px 8px}
 .bw-board{height:clamp(320px,116vw,445px);border-radius:13px}
 .bw-scoreline{font-size:10px}
 .bw-aim-row{gap:8px}
 .bw-power{font-size:9px}
 .bw-buttons small{font-size:10px}
 .bw-go{min-height:43px;padding:9px 15px;font-size:14px!important}
 .bw-frame{min-height:42px}
 .bw-frame b{font-size:11px}
}
@media(prefers-reduced-motion:reduce){.bw-hit .bw-pin-hit path{animation:none!important}.bw-go:active{transform:none}}

/* Bowling v211 — dimensional lane / responsive arcade polish */
.bw-shell{
 padding:12px!important;
 background:radial-gradient(ellipse at 100% 0%,#48305d63,transparent 46%),
 radial-gradient(ellipse at 0% 38%,#29436451,transparent 58%),
 linear-gradient(158deg,#101626,#1b2034 64%,#1d182c)!important;
 border:1px solid #67577c!important;border-radius:20px!important;
 box-shadow:inset 0 1px 0 #c1b6ed30,0 15px 34px #06061563!important;
}
.bw-game{color:#f6f0fc}
.bw-head{margin:1px 0 10px;gap:6px}
.bw-head small{color:#ada7ca;letter-spacing:.18em;font-size:9px;font-weight:800}
.bw-head h2{color:#fff5f2;font-size:22px;font-weight:950;letter-spacing:-.025em;text-shadow:0 2px 9px #06071474}
.bw-head-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.bw-sound{padding:7px 9px;min-height:31px;cursor:pointer;touch-action:manipulation;border-radius:9px;
 font-size:10px;font-weight:750;color:#c9c2e2;background:#262a3e;border:1px solid #655778;box-shadow:none}
.bw-sound[aria-pressed="true"]{color:#fbecd0;border-color:#ceb38b;background:#4b3d49}
.bw-bubble{padding:7px 10px;font-size:10px;font-weight:900;border-radius:9px;
 background:linear-gradient(140deg,#423754,#2c344a);color:#e4d4fa;
 border-color:#8d79aa99;box-shadow:inset 0 1px 0 #f5d1ff28}
.bw-stats{background:linear-gradient(102deg,#28213c,#1b2d40);border:1px solid #665b82;
 box-shadow:inset 0 1px 0 #ffffff17;margin:9px 0 11px;border-radius:14px;
 padding:10px 12px;gap:8px;min-height:72px}
.bw-stat-score{display:flex;align-items:center;gap:10px;min-width:0}
.bw-stat-score small{display:block;line-height:1.15;color:#d0b9ea;letter-spacing:.07em;font-size:9px;max-width:56px}
.bw-stat-score strong{font-size:33px;color:#ffe6ad;letter-spacing:-.04em;line-height:1;
 font-variant-numeric:tabular-nums;text-shadow:0 2px 10px #ffcf8535}
.bw-stat-turn{display:flex;flex-direction:column;gap:4px;text-align:right;min-width:0}
.bw-stat-turn strong{font-size:12px;color:#edddff;letter-spacing:.025em;line-height:1.3}
.bw-stat-turn small{font-size:9px;color:#b6c7d9;font-weight:600;line-height:1.4}
.bw-board{height:clamp(365px,132vw,535px);border-radius:19px;overflow:hidden;
 border:2px solid #746491;background:linear-gradient(#17192e,#13182c);touch-action:none;
 box-shadow:0 19px 28px #05071588,0 0 21px #a584fb22,inset 0 1px 0 #dbbcff49}
.bw-board:before{content:"";pointer-events:none;position:absolute;z-index:1;inset:0;
 background:linear-gradient(120deg,#dfebff10,transparent 27%,transparent 80%,#e9a4ff0a);
 border-radius:inherit}
.bw-board:after{inset:8px;border-color:#ffffff17;border-radius:13px;z-index:2}
.bw-svg{transform:translateZ(0);overflow:hidden}
.bw-world,.bw-pin-body{will-change:transform}
.bw-lane-indicator{position:absolute;z-index:3;bottom:12px;left:12px;
 display:flex;gap:7px;align-items:center;background:#151b2cbd;color:#f0ddff;
 padding:7px 9px;border:1px solid #a194d950;border-radius:9px;
 font-size:9px;font-weight:800;letter-spacing:.09em;pointer-events:none;
 backdrop-filter:blur(6px)}
.bw-lane-indicator i{width:6px;height:6px;border-radius:50%;background:var(--bw-glow);box-shadow:0 0 8px var(--bw-glow)}
.bw-hero-feedback{pointer-events:none;position:absolute;inset:25% 0 auto;z-index:5;
 display:flex;justify-content:center;opacity:0;transform:translateY(20px) scale(.85);transition:none}
.bw-hero-feedback strong{font-size:clamp(26px,10vw,40px);font-weight:1000;line-height:1;
 color:#fff2cf;letter-spacing:.035em;text-shadow:0 2px 1px #452442,0 5px 12px #090c25,
 0 0 25px #ffd394a0;white-space:nowrap}
.bw-hit .bw-hero-feedback{opacity:1;transform:translateY(0) scale(1);transition:transform .28s cubic-bezier(.17,.9,.3,1.2),opacity .15s}
.bw-hit{box-shadow:0 0 0 1px var(--bw-glow),0 0 26px #dcb0ff4d,0 19px 29px #05071588}
.bw-hit .bw-sparks{filter:drop-shadow(0 0 7px var(--bw-glow))}
.bw-pin-shadow{filter:blur(.8px)}
.bw-sub{font-size:10px;font-weight:650;color:#d0c1df;margin:10px 4px 8px}
.bw-frames{gap:6px;margin:10px 0}
.bw-frame{border:1px solid #594d72;background:linear-gradient(150deg,#313048,#26283f);
 min-height:52px;border-radius:10px;box-shadow:inset 0 1px 0 #fff2fb1a}
.bw-frame small{font-size:9px;color:#b5adc8}
.bw-frame b{font-size:14px;color:#f7eeda}
.bw-frame.active{background:linear-gradient(120deg,#5c4963,#403a56);border-color:#dfbf8e;
 box-shadow:0 0 13px #edca8b29,inset 0 1px 0 #fff2fa37}
.bw-result{padding:11px 12px;background:linear-gradient(110deg,#44354e,#2e344d);
 border:1px solid #856a9b;border-radius:12px;box-shadow:inset 0 1px 0 #f8e3ff19}
.bw-result strong{font-size:15px;color:#ffe3af;font-weight:950}
.bw-result span{font-size:11px;color:#dbd4e5}
.bw-controls{margin-top:10px;gap:11px}
.bw-aim-row{border:1px solid #5e5477;background:linear-gradient(120deg,#28283f,#23263d);
 border-radius:13px;padding:10px;gap:11px;min-height:61px}
.bw-aim-row label{font-size:12px;color:#f3ddf8}
.bw-aim{accent-color:#d6acef;min-width:32px}
.bw-power-box{display:flex;flex-direction:column;align-items:end;gap:6px;min-width:77px}
.bw-power-box .bw-power{color:#e6d2ec;font-size:10px;white-space:nowrap}
.bw-meter{width:76px;height:6px;border-radius:99px;background:#121729;border:1px solid #68617c;overflow:hidden}
.bw-meter-fill{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#81dddc,#deb7ec,#f6ce8a);
 box-shadow:0 0 8px #d2baff;transition:width .08s linear}
.bw-buttons{gap:12px}
.bw-go{background:linear-gradient(118deg,#f6d5a4,#e9b9db)!important;color:#332440!important;
 border:1px solid #ffe9d0!important;box-shadow:0 5px 16px #d69fac36,inset 0 1px 0 #fff8fa;
 border-radius:12px;font-size:15px!important;font-weight:950!important}
.bw-buttons small{font-size:10px;color:#c6bed9}
.bw-playback .bw-go{opacity:.66}
.bw-finish{background:radial-gradient(ellipse at 100% 0%,#d0a0c13b,transparent 65%),linear-gradient(120deg,#44344f,#2d3045);
 border-color:#bd9bc8;border-radius:13px;padding:13px}
.bw-finish strong{font-size:22px;color:#ffe1a9}
.bw-help{margin-top:11px;font-size:11px;color:#cac0dd}
.bw-help summary{font-size:11px;color:#cfc7ed}
.try-demo:has(.bw-game){background:#161b2e;border-color:#514e72}
@media(max-width:390px){
 .bw-shell{padding:9px!important;border-radius:16px!important}
 .bw-head h2{font-size:19px}
 .bw-head-actions{gap:5px}
 .bw-sound{min-height:28px;padding:6px 7px;font-size:9px}
 .bw-bubble{padding:6px 8px;font-size:9px}
 .bw-stats{padding:9px 10px;min-height:64px}
 .bw-stat-score strong{font-size:28px}
 .bw-stat-turn strong{font-size:11px}
 .bw-stat-turn small{font-size:9px}
 .bw-board{height:clamp(345px,129vw,492px);border-radius:15px}
 .bw-frame{min-height:46px}
 .bw-frame b{font-size:12px}
 .bw-aim-row{padding:9px 8px;gap:6px}
 .bw-power-box{min-width:65px}
 .bw-meter{width:66px}
 .bw-lane-indicator{font-size:8px}
}
@media(prefers-reduced-motion:reduce){
 .bw-hero-feedback,.bw-meter-fill{transition:none!important}
 .bw-world,.bw-pin-body{will-change:auto}
}

/* Bowling v217: shot replay and legible outcome feedback */
.bw-result{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:11px;row-gap:3px;align-items:center}
.bw-result strong{grid-column:1;grid-row:1;font-size:15px;line-height:1.25}
.bw-result span{grid-column:1;grid-row:2;font-size:11px;line-height:1.4}
.bw-replay{grid-column:2;grid-row:1 / span 2;align-self:center;white-space:nowrap;
 color:#f4d9fc;background:linear-gradient(145deg,#473b5a,#343a52);border:1px solid #9986bb;
 border-radius:10px;padding:9px 11px;min-height:35px;font:inherit;font-size:11px;font-weight:850;
 cursor:pointer;touch-action:manipulation;box-shadow:inset 0 1px 0 #ffecff24;transition:filter .15s}
.bw-replay:hover{filter:brightness(1.14)}
.bw-replay:disabled{opacity:.45;cursor:default}
.bw-game .bw-guide{stroke-linecap:round;stroke-linejoin:round}
.bw-game.bw-playback .bw-guide{opacity:.10!important}
.bw-game.bw-playback .bw-ball-start{opacity:0}
.bw-game .bw-lane-indicator{transition:opacity .15s ease}
.bw-game.bw-playback .bw-lane-indicator{opacity:.35}
.bw-game.bw-playback .bw-replay{pointer-events:none}
@media(max-width:390px){
 .bw-result{column-gap:7px}
 .bw-replay{padding:8px 9px;font-size:10px;min-height:33px}
}
@media(prefers-reduced-motion:reduce){.bw-replay,.bw-lane-indicator{transition:none!important}}

/* Bowling v219 — quick finale, replayability, readable streaks */
.bw-match-stats{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:7px;margin:5px 0 6px}
.bw-match-stats span{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;
 background:#1e2036a6;border:1px solid #9f85b657;padding:9px 3px 8px;border-radius:9px;
 color:#d4c8e6;font-size:11px;font-weight:700}
.bw-match-stats b{font-size:19px;line-height:1;color:#ffe2ad;font-variant-numeric:tabular-nums}
.bw-finish p{font-size:12px;color:#ded1e7;line-height:1.5}
.bw-hero-feedback.bw-streak strong{font-size:clamp(22px,7.2vw,31px);white-space:nowrap;letter-spacing:0}
@media(max-width:355px){
 .bw-match-stats{gap:4px}
 .bw-match-stats span{font-size:10px;padding:8px 2px}
 .bw-match-stats b{font-size:17px}
}

/* Bowling v222 — result reveal follows impact instead of preceding it */
.bw-game .bw-result{transition:opacity .18s ease,transform .22s ease}
.bw-playback:not(.bw-impact-revealed) .bw-result{
 opacity:0;transform:translateY(5px);pointer-events:none
}
.bw-playback.bw-impact-revealed .bw-result{opacity:1;transform:translateY(0)}
.bw-stat-score strong{transition:color .2s ease}
.bw-impact-revealed .bw-stat-score strong{color:#ffefcb}
@media(prefers-reduced-motion:reduce){
 .bw-game .bw-result,.bw-stat-score strong{transition:none!important}
}


/* Bowling v227 — scene depth and precise SVG collision presentation */
.bw-board.bw-hit .bw-pin-hit .bw-pin-body path{
 animation:none!important;transform:none!important;
}
.bw-pin-body{transform-origin:center bottom;transform-box:fill-box;filter:drop-shadow(0 .6px .45px #1a10164a)}
.bw-pin-deck{filter:drop-shadow(0 2px 1.5px #16111b38)}
.bw-deep-gutters{filter:drop-shadow(0 1px 1.5px #090b1d82)}
.bw-pinsetter{filter:drop-shadow(0 2px 2px #070b15ad)}
.bw-moving-shadow,.bw-ball-reflection{pointer-events:none}
.bw-world{will-change:transform}
.bw-pin-hit .bw-pin-shadow{transition:opacity .1s linear}
.bw-board.bw-hit{box-shadow:0 0 0 1px var(--bw-glow),0 0 22px #dcb0ff3b,0 19px 29px #05071588}
@media(max-width:390px){
 .bw-board{box-shadow:0 12px 19px #05071588,0 0 12px #a584fb1a,inset 0 1px 0 #dbbcff49}
}
@media(prefers-reduced-motion:reduce){
 .bw-world{will-change:auto}
 .bw-pin-hit .bw-pin-shadow{transition:none}
}
.nm-shell{padding:12px!important;color:#faf5ff!important;background:radial-gradient(circle at 85% 0%,#7259b635,transparent 42%),linear-gradient(150deg,#17182d,#101d2d)!important;border:1px solid #686082!important;border-radius:19px!important;box-shadow:0 14px 34px #0608188b,inset 0 1px 0 #ffffff1f!important}
.nm-shell *{box-sizing:border-box}.nm-game{font-family:inherit;font-size:12px;color:#f7f3ff}
.nm-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.nm-header small{font-size:9px;letter-spacing:.13em;color:#bfb3d7;font-weight:800}.nm-header h2{font-size:21px;font-weight:950;margin:3px 0 0;line-height:1.2;color:#fff8f5}
.nm-level{font-size:9px;font-weight:900;color:#ffdfaf;white-space:nowrap;padding:8px 10px;border:1px solid #957a98;border-radius:10px;background:linear-gradient(130deg,#40304a,#2a2b41)}
.nm-stats{display:grid;grid-template-columns:1fr 1fr minmax(92px,1.1fr);gap:7px;margin-bottom:12px}
.nm-stats>div{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:4px;background:linear-gradient(155deg,#282d46,#202338);border:1px solid #595575;border-radius:11px;padding:10px;box-shadow:inset 0 1px 0 #ffffff16}
.nm-stats small{font-size:8px;letter-spacing:.09em;font-weight:800;color:#bcb2d4}.nm-stats strong{font-size:24px;line-height:1.1;color:#ffe2b2;font-weight:950;font-variant-numeric:tabular-nums}
.nm-stats .nm-turn{flex-direction:row;align-items:center;gap:6px;background:#292d3f}.nm-turn-light{width:7px;height:7px;flex:none;border-radius:50%;background:#8b8ca5}.nm-turn.my-turn .nm-turn-light{background:#89f4d6;box-shadow:0 0 9px #86ffe2}.nm-stats .nm-turn b{font-size:10px;font-weight:850;line-height:1.5;color:#e1d9eb}
.nm-goal{border:1px solid #585779;background:linear-gradient(100deg,#24243d,#242d46);border-radius:11px;padding:9px 11px 10px;margin-bottom:11px}
.nm-goal-text{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:9px;color:#e1d7ed;font-size:11px;font-weight:700}
.nm-goal-text b{font-size:19px;font-weight:950;color:#f8d39f}.nm-goal-text span+span{font-size:9px;color:#aaa6c5}
.nm-progress{height:6px;overflow:hidden;border-radius:99px;background:#0e1226;box-shadow:inset 0 1px 2px #0008}
.nm-progress span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#53cee1,#a899ed,#ffd6a0);box-shadow:0 0 10px #bba0ff91;transition:width .24s ease}
.nm-stage-dots{display:flex;justify-content:space-between;margin:9px 2px 0;gap:6px}.nm-stage-dot{display:flex;align-items:center;justify-content:center;flex:1;max-width:49px;height:22px;border-radius:7px;background:#22263b;border:1px solid #5c5b7b;font-size:10px;font-weight:850;color:#8f90af}.nm-stage-dot.done{background:#21494a;color:#b8f5df;border-color:#3e8c86}.nm-stage-dot.here{background:#635079;color:#ffe6bf;border-color:#cab0ca}
.nm-board-wrap{position:relative;padding:11px 10px 12px;border:2px solid #706680;border-radius:16px;background:linear-gradient(160deg,#27364a,#181d32 60%,#14192c);box-shadow:0 11px 27px #050816b2,inset 0 1px 0 #c9b9e83a;overflow:hidden;isolation:isolate}
.nm-board-shine{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 50% 0%,#dfd4fb18,transparent 54%),linear-gradient(110deg,#a7d7ff0b,transparent 35%,#f4d5ff0b)}
.nm-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.nm-column{display:flex;flex-direction:column;gap:4px;align-items:stretch;min-width:0;margin:0;padding:3px 2px 6px;border:1px solid #77708958;border-radius:10px;background:linear-gradient(90deg,#0c1324,#1f283a 32%,#161d32 72%,#0b1121);cursor:pointer;touch-action:manipulation;color:#dfdbec;box-shadow:inset 0 1px 2px #0009;transition:border-color .13s ease,transform .13s ease}
.nm-column.nm-ready:hover{border-color:#e2c5a7;background:linear-gradient(90deg,#142638,#27384b 32%,#273248 72%,#111d31)}.nm-column.nm-ready:active{transform:translateY(2px)}.nm-column.nm-ready:focus-visible{outline:2px solid #e6cbaa;outline-offset:2px}.nm-column:disabled{cursor:default;opacity:.84}
.nm-col-top{text-align:center;font-size:17px;line-height:15px;color:#a19cb8;font-weight:900;opacity:.5}.nm-column.nm-ready .nm-col-top{color:#ffd8b0;opacity:1}
.nm-cells{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));gap:5px;min-height:320px}
.nm-slot{display:flex;align-items:center;justify-content:center;position:relative;min-height:0;overflow:visible;border-radius:7px;background:linear-gradient(145deg,#181e2d,#0f1526);box-shadow:inset 0 1.5px 3px #0008,0 1px 0 #ffffff08;border:1px solid #ffffff0d}
.nm-slot:has(.nm-tile){border-color:transparent;box-shadow:none;background:transparent}.nm-empty{display:block;width:48%;height:1px;background:#5560752b}
.nm-col-footer{height:19px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:850;color:#9d9cb6}.nm-column.nm-ready .nm-col-footer{color:#e4d0ef}
.nm-board-front{position:absolute;bottom:0;left:6%;right:6%;height:7px;border-radius:7px 7px 0 0;background:linear-gradient(#6574888a,#20283e);pointer-events:none;box-shadow:0 1px 3px #050812}
.nm-tile{--face:#4c97d6;--light:#a2e1ff;--shade:#20598e;position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:43px;border-radius:8px;overflow:hidden;background:radial-gradient(circle at 24% 15%,var(--light),transparent 56%),linear-gradient(142deg,var(--face),var(--shade));box-shadow:inset 0 2px 0 #ffffff76,inset 3px 0 0 #ffffff24,inset -3px -3px 0 #1113263f,0 4px 0 #090d1ca8,0 7px 5px #07091663;border:1px solid #ffffff3d;transform:translateY(-2px)}
.nm-tile b{position:relative;z-index:1;color:#fff;text-shadow:0 2px 3px #080a2888;font-size:19px;font-weight:950;letter-spacing:-.07em;font-variant-numeric:tabular-nums}
.nm-tile i{position:absolute;pointer-events:none;left:10%;right:10%;top:9%;height:15%;border-radius:100%;background:#ffffff29;filter:blur(3px)}
.nm-v2{--face:#4b97cf;--shade:#245080;--light:#9ce2ff}.nm-v4{--face:#8b65d3;--shade:#573d96;--light:#d4abff}.nm-v8{--face:#e49b43;--shade:#97612d;--light:#ffe0a0}.nm-v16{--face:#dd646c;--shade:#8b344b;--light:#ffb0ac}.nm-v32{--face:#3aaeab;--shade:#236777;--light:#b5f3db}.nm-v64{--face:#d85aaa;--shade:#833879;--light:#ffbce8}.nm-v128{--face:#bd9d4a;--shade:#897040;--light:#fff7af}.nm-v256{--face:#5d80dc;--shade:#374a93;--light:#d5d9ff}.nm-v512,.nm-v1024,.nm-v2048{--face:#58b489;--shade:#287359;--light:#ccffcf}
.nm-slot .nm-v128 b,.nm-slot .nm-v256 b,.nm-slot .nm-v512 b{font-size:14px}
.nm-next-area{display:flex;align-items:center;gap:12px;margin:11px 0 5px;background:#252638;border:1px solid #59546c;border-radius:12px;padding:9px 11px}
.nm-coming{display:flex;gap:9px;align-items:center;min-width:137px}.nm-coming small{color:#aaa8c3;font-size:9px;line-height:1.5;font-weight:900;max-width:50px}.nm-preview{width:52px;height:50px;min-height:50px;flex:none}
.nm-tip{min-width:0;display:flex;flex-direction:column;gap:4px}.nm-tip strong{font-size:11px;color:#f8e5d3;font-weight:850}.nm-tip span{font-size:10px;color:#bfc2d7;line-height:1.4}
.nm-last{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;margin:9px 0;border:1px solid #8c7bb3;border-radius:10px;background:linear-gradient(110deg,#383354,#252d44);color:#ffecbf;font-size:12px}.nm-last span{font-weight:900}.nm-last strong{font-size:11px;color:#cfece9;font-weight:850}
.nm-finish{display:flex;flex-direction:column;align-items:center;gap:8px;margin:10px 0;padding:12px;border:1px solid #b4a0bc;border-radius:12px;background:radial-gradient(ellipse at top,#ae76a83b,transparent 60%),#2a3045;text-align:center}.nm-finish strong{font-size:20px;color:#ffe4b1;line-height:1.25}.nm-finish span{font-size:11px;color:#e0d4e8;line-height:1.4}.nm-finish.nm-lost{border-color:#aa7388}
.nm-next{min-height:42px;padding:8px 22px;border:1px solid #ffefd6;border-radius:10px;background:linear-gradient(125deg,#ffe6b5,#ecbacc);color:#33253d;font-size:13px;font-weight:950;cursor:pointer;touch-action:manipulation}.nm-next:disabled{opacity:.44;cursor:not-allowed}
.nm-how{border-top:1px solid #4d4c65;margin:13px 2px 0;padding-top:9px;font-size:11px;color:#c5c0d5}.nm-how summary{font-weight:850;color:#dad2ea;cursor:pointer}.nm-how p{line-height:1.5;margin:8px 0}
.nm-just-dropped .nm-col-top{animation:nm-arrow .32s ease both}.nm-merged{animation:nm-merge-pop .4s cubic-bezier(.2,1.4,.55,1) both}
.nm-float{position:absolute;z-index:7;transform:translateX(-50%);font-size:17px;font-weight:950;color:#fff2bd;text-shadow:0 2px 5px #21132a,0 0 13px #fbc984;pointer-events:none;animation:nm-score-float .72s ease both}
.nm-chain-burst{box-shadow:0 0 0 1px #f2d6a7,0 0 26px #dba8f04b,0 11px 25px #05081699}.nm-stage-victory .nm-board-shine{background:radial-gradient(ellipse at 50% 45%,#ffe69f30,transparent 75%)}
@keyframes nm-merge-pop{0%{transform:translateY(-5px) scale(.78)}62%{transform:translateY(-2px) scale(1.12)}100%{transform:translateY(-2px) scale(1)}}
@keyframes nm-score-float{0%{opacity:0;transform:translate(-50%,12px) scale(.8)}30%{opacity:1}100%{opacity:0;transform:translate(-50%,-28px) scale(1.2)}}
@keyframes nm-arrow{0%{transform:translateY(-6px)}70%{transform:translateY(2px)}100%{transform:translateY(0)}}
.try-demo:has(.nm-game){background:#111729;border-color:#514e72}.try-demo:has(.nm-game)>small,.try-demo:has(.nm-game)>h2,.try-demo:has(.nm-game)>p.micro,.try-demo:has(.nm-game)>.try-stats{display:none}
@media(max-width:390px){.nm-shell{padding:8px!important}.nm-header h2{font-size:18px}.nm-level{font-size:9px;padding:7px}.nm-stats{gap:5px}.nm-stats>div{padding:8px 6px}.nm-stats strong{font-size:20px}.nm-stats .nm-turn b{font-size:9px}.nm-board-wrap{padding:7px 6px 11px}.nm-grid{gap:4px}.nm-column{padding:2px 1px 5px}.nm-cells{gap:4px;min-height:282px}.nm-tile{min-height:40px;border-radius:7px}.nm-tile b{font-size:17px}.nm-coming{min-width:119px}.nm-coming small{font-size:8px}.nm-preview{width:45px;height:44px;min-height:44px}.nm-tip span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.nm-merged,.nm-float,.nm-just-dropped .nm-col-top{animation:none!important}.nm-progress span,.nm-column{transition:none!important}}

.nm-enter{animation:nm-block-drop .34s cubic-bezier(.22,1.05,.34,1) both}
@keyframes nm-block-drop{0%{opacity:.48;transform:translateY(-135px) scale(.89)}66%{opacity:1;transform:translateY(5px) scale(1.03)}100%{transform:translateY(-2px) scale(1)}}
@media(prefers-reduced-motion:reduce){.nm-enter{animation:none!important}}

.nm-column.nm-combo-ready{border-color:#dbc18c!important;box-shadow:inset 0 0 0 1px #ebd09c5b,0 0 15px #f5ce7f21}.nm-column.nm-combo-ready .nm-col-top{color:#ffe8bd!important;font-weight:900}.nm-column.nm-combo-ready .nm-col-top b{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:23px;padding:0 5px;background:#665038;border:1px solid #edbe78;border-radius:8px;color:#ffe4a9;font-size:11px}.nm-column:focus-visible{outline:3px solid #e7d29b;outline-offset:3px}

/* Word Chain mobile arcade */
.wc-shell{padding:12px!important;border:1px solid #5d7b83!important;border-radius:18px!important;color:#ecf3ef;background:radial-gradient(ellipse at 90% 0%,#3b686858,transparent 50%),linear-gradient(150deg,#122234,#1c3041 68%,#17283a)!important;box-shadow:0 14px 28px #050a1560,inset 0 1px 0 #ffffff22}
.wc-game{display:flex;flex-direction:column;gap:12px}
.wc-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.wc-top small{display:block;font-size:9px;color:#a9cbc8;letter-spacing:.14em;font-weight:800}
.wc-top h2{font-size:22px;color:#f9f2de;font-weight:950;letter-spacing:-.03em;margin:2px 0 0}
.wc-round{font-size:10px;font-weight:800;color:#e9e6ce;background:#304c55;padding:8px;border:1px solid #789392;border-radius:9px;white-space:nowrap}
.wc-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.wc-stats>div{background:linear-gradient(140deg,#2a4352,#263648);border:1px solid #6b8795;border-radius:12px;padding:10px 12px}
.wc-stats small{color:#b7ced0;display:block;font-size:10px;font-weight:700;letter-spacing:.04em}
.wc-stats strong{color:#f3e6b7;font-size:25px;font-weight:950;font-variant-numeric:tabular-nums}
.wc-stats em{font-size:13px;color:#abc4c6;font-style:normal}
.wc-progress{height:7px;background:#102232;border-radius:20px;overflow:hidden;border:1px solid #587786}
.wc-progress>span{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#8fc9b3,#e4d09d);transition:width .25s}
.wc-hero{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:205px;padding:14px;background:radial-gradient(circle at 50% 52%,#64847756,transparent 55%),linear-gradient(140deg,#284459,#263745);border:1px solid #82978f;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff21,0 8px 18px #09112150}
.wc-turn-dot{position:absolute;top:15px;left:14px;width:7px;height:7px;border-radius:50%;background:#afdac0;box-shadow:0 0 8px #add6be}
.wc-hero>span{font-size:11px;font-weight:850;letter-spacing:.11em;color:#e3e9d6}
.wc-hero>small{font-size:10px;color:#b7c9cf}
.wc-letter{display:flex;align-items:center;justify-content:center;margin:11px auto 10px;width:100px;height:100px;font-size:62px;font-weight:1000;line-height:1;color:#fdf1c8;background:linear-gradient(145deg,#618b83,#354b61);border:1px solid #a1c3ad;border-radius:26px;text-shadow:1px 3px 0 #21374c;box-shadow:0 10px 0 #1e3440,0 14px 19px #05102074,inset 0 2px 2px #f0f7e03d}
.wc-letter-caption{font-size:9px;letter-spacing:.12em;font-weight:750;color:#b5cbd3}
.wc-actions{padding:12px;background:#203448;border:1px solid #678494;border-radius:13px}
.wc-play>label{display:block;color:#d7e3e0;font-size:11px;font-weight:800;margin-bottom:8px}
.wc-entry-row{display:flex;gap:7px}
.wc-input{min-width:0;width:0;flex:1;padding:11px 12px;background:#f3f4e9;color:#1a3748;border:2px solid #b7d3c9;border-radius:10px;font:inherit;font-size:16px;font-weight:820;outline:none}
.wc-input:focus{border-color:#85b8a5;box-shadow:0 0 0 3px #92cbb247}
.wc-input::placeholder{color:#889ba1;font-size:12px;font-weight:600}
.wc-submit,.wc-next{background:linear-gradient(120deg,#e7dab1,#b6ded1)!important;color:#263b47!important;border:1px solid #f4e5c2!important;border-radius:10px;font-size:12px;font-weight:920;padding:10px 11px;cursor:pointer;white-space:nowrap;box-shadow:0 4px 0 #566f74;touch-action:manipulation}
.wc-submit:active,.wc-next:active{transform:translateY(3px);box-shadow:0 1px 0 #566f74}
.wc-error{min-height:15px;color:#ffceb7;font-size:11px;margin:7px 2px 0}
.wc-action-foot{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.wc-rescue{padding:9px 11px;background:#32495c;border:1px solid #8097a5;border-radius:9px;color:#e6eded;font-size:11px;font-weight:800;cursor:pointer}
.wc-rescue span{opacity:.75;font-size:10px;margin-left:4px}
.wc-rescue:disabled,.wc-submit:disabled{opacity:.45;cursor:not-allowed}
.wc-wait{font-size:12px;color:#bcd2d9;padding:10px 4px}
.wc-trail-heading{display:flex;justify-content:space-between;align-items:center;gap:5px}
.wc-trail-heading b{font-size:10px;letter-spacing:.09em;color:#d9e8e1}
.wc-trail-heading span{font-size:10px;color:#afc6ca}
.wc-trail{display:flex;gap:8px;overflow-x:auto;padding:6px 2px 12px;scroll-snap-type:x proximity}
.wc-word{flex:none;display:flex;flex-direction:column;gap:7px;min-width:112px;max-width:162px;scroll-snap-align:end;padding:9px 11px;background:linear-gradient(135deg,#334b59,#233647);border:1px solid #758d93;border-radius:11px;box-shadow:inset 0 1px 0 #ffffff15}
.wc-word.wc-seed{background:linear-gradient(130deg,#4b4e57,#333e49);border-color:#92918b}
.wc-word.wc-me{background:linear-gradient(130deg,#34544d,#293e41);border-color:#9bc7b0}
.wc-word.wc-them{background:linear-gradient(130deg,#60455d,#40384e);border-color:#c79eb5}
.wc-word.wc-current{box-shadow:0 0 0 1px #eed9b39e,0 7px 12px #0c1b265e}
.wc-word-label{color:#bbcece;font-size:9px;letter-spacing:.06em;font-weight:800}
.wc-word strong{font-size:16px;color:#f7f3e9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wc-word-tail{align-self:flex-end;display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:#f2e1b8;border-radius:7px;font-size:12px;color:#263849;font-weight:950}
.wc-arrived{animation:wc-slide .36s cubic-bezier(.2,1,.3,1)}
@keyframes wc-slide{from{opacity:.35;transform:translateY(-13px) scale(.9)}to{opacity:1;transform:none}}
.wc-help{font-size:11px;color:#cadcdb;margin-top:2px}
.wc-help summary{cursor:pointer;color:#dfebe5;font-weight:800}
.wc-help p{line-height:1.6}
@media(max-width:370px){.wc-shell{padding:9px!important}.wc-top h2{font-size:19px}.wc-entry-row{gap:5px}.wc-submit{padding:9px;font-size:11px}.wc-hero{min-height:180px}.wc-letter{width:87px;height:87px;font-size:54px}.wc-word{min-width:101px}}
@media(prefers-reduced-motion:reduce){.wc-arrived{animation:none!important}.wc-progress>span{transition:none!important}}

.golf-game .golf-board-frame{border-width:2px!important;border-radius:20px!important;box-shadow:0 20px 28px #06121b88,0 4px 0 #12232e,0 0 0 1px #c4ebcf24,inset 0 2px 0 #f2ffe548!important}.golf-game .golf-world-banner{box-shadow:inset 0 1px 0 #ffffff1f,0 6px 13px #0a15253a;border-radius:11px}.golf-game .golf-score{box-shadow:inset 0 1px 0 #ffffff15,0 5px 12px #09152230}.bw-board{box-shadow:0 20px 29px #05071596,0 4px 0 #1e2535,0 0 20px #a584fb24,inset 0 2px 0 #e8d8ff55!important}@media(max-width:390px){.golf-game .golf-board-frame{border-radius:16px!important;box-shadow:0 12px 20px #06121b7c,0 3px 0 #12232e,inset 0 1px 0 #f2ffe548!important}}
/* Bowling v252 - ball dynamics and hook controls */
.bw-curve-row{display:flex;align-items:center;gap:9px;margin:9px 0 3px;padding:7px 3px;min-width:0}.bw-curve-row label{font-size:12px;font-weight:800;color:#d4dded;min-width:39px}.bw-curve{width:100%;min-width:0;flex:1;accent-color:#ddc7a0;touch-action:pan-x}.bw-curve-value{font-size:10px;font-weight:700;color:#dbcda8;min-width:70px;text-align:right}.bw-gutter-warning{pointer-events:none;filter:drop-shadow(0 1px 2px #0b0a12)}@media(max-width:375px){.bw-curve-row{gap:6px}.bw-curve-value{min-width:62px;font-size:9px}}


/* Photo Puzzle v258 — tactile mobile jigsaw */
.pp-shell{padding:12px!important;border-radius:19px!important;border:1px solid #698c87!important;color:#e5f1ea;background:radial-gradient(ellipse at 5% 0%,#3966575b,transparent 55%),linear-gradient(145deg,#142638,#202e41 68%,#172d3b)!important;box-shadow:0 13px 30px #0714226c,inset 0 1px 0 #ffffff26}
.pp-shell *{box-sizing:border-box}
.pp-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pp-title small{display:block;font-size:9px;letter-spacing:.14em;font-weight:900;color:#a5cebe}
.pp-title h2{font-size:23px;letter-spacing:-.045em;font-weight:950;color:#f6edcb;margin:3px 0}
.pp-title p{font-size:11px;color:#bcd3d1;margin:3px 0 12px}
.pp-title>span{white-space:nowrap;border-radius:9px;background:#2b4a53;border:1px solid #668e8e;padding:8px;font-size:10px;font-weight:850;color:#dce9e1}
.pp-config{border:1px solid #607d84;border-radius:12px;background:#203848;padding:11px;margin-bottom:11px}
.pp-config>label,.pp-filetext{display:block;font-size:11px;color:#d9e6df;font-weight:850;margin-bottom:7px}
.pp-link{display:flex;gap:6px;min-width:0}
.pp-link input{flex:1;min-width:0;width:0;background:#f6f2e6;color:#19333e;border:2px solid #a9c3b5;border-radius:9px;padding:10px;font:inherit;font-size:12px;outline:none}
.pp-link input:focus{border-color:#7ac3a9;box-shadow:0 0 0 2px #8dbfae6b}
.pp-link button{background:linear-gradient(120deg,#f2e1ba,#b9ddd0);color:#18353f;border:1px solid #f9edcf;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:900;white-space:nowrap;cursor:pointer}
.pp-link button:disabled,.pp-shuffle:disabled{opacity:.43;cursor:not-allowed}
.pp-settings{display:flex;align-items:center;gap:8px;margin:9px 0 0}
.pp-settings label{font-size:11px;font-weight:800;color:#d5e8db}
.pp-settings select{min-width:0;flex:1;max-width:185px;padding:9px;background:#e7eadd;color:#203844;border-radius:8px;font-size:11px;font-weight:800}
.pp-shuffle{margin-left:auto;border:1px solid #86a2a1;border-radius:9px;padding:9px;background:#2e4b59;color:#ecf1e4;font-size:11px;font-weight:850;white-space:nowrap;cursor:pointer}
.pp-filetext{margin:12px 0 5px;text-decoration:underline;cursor:pointer;text-underline-offset:3px}
.pp-config input[type=file]{max-width:100%;font-size:11px;color:#dae2e3}
.pp-duo-note{font-size:10px;color:#afcfc9;margin:10px 0 0}
.pp-info{display:flex;gap:10px;align-items:center;font-size:11px;color:#c4d8d6;margin:5px 0 8px}
.pp-info b{font-size:17px;color:#f5e6b9}.pp-clock{margin-left:auto;font-variant-numeric:tabular-nums}
.pp-toggle{font-size:10px;font-weight:850;background:#334f5a;color:#e3eae2;border:1px solid #809b9e;border-radius:8px;padding:8px;cursor:pointer}
.pp-progress{border-radius:20px;height:7px;overflow:hidden;background:#0c1f2e;border:1px solid #49747a;margin-bottom:11px}
.pp-progress>div{height:100%;background:linear-gradient(90deg,#8acdb4,#e8dca0);transition:width .2s}
.pp-board{position:relative;width:100%;aspect-ratio:1;max-width:470px;margin:auto;background:linear-gradient(145deg,#29404d,#384b5a);border:3px solid #a5bca9;border-radius:13px;overflow:hidden;box-shadow:0 6px 0 #0b202b,0 14px 26px #060d1c80,inset 0 2px 0 #ffffff24}
.pp-guide-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;pointer-events:none;transition:opacity .2s}
.pp-guide-photo.pp-visible{opacity:.25}
.pp-slots{position:absolute;inset:0;z-index:2;display:grid}
.pp-slot{min-height:0;min-width:0;cursor:pointer;touch-action:manipulation;background:transparent;border:1px dashed #c6e1d27b;padding:0}
.pp-slot:focus-visible{outline:3px solid #ffe8ae;outline-offset:-3px;z-index:5}
.pp-slot:active:not(:disabled){background:#aedac64d}
.pp-slot.pp-wrong{background:#ee837458;outline:2px solid #f5b9b2}
.pp-slot.pp-filled{border-color:transparent;pointer-events:none}
.pp-completed-pieces{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;filter:drop-shadow(0 2px 1px #15222c4c)}
.pp-reference{position:absolute;z-index:6;top:8px;right:8px;width:66px;aspect-ratio:1;border:2px solid #e4e0c6;border-radius:8px;overflow:hidden;box-shadow:0 5px 11px #070d1999}
.pp-reference img{width:100%;height:100%;object-fit:cover}
.pp-reference small{position:absolute;bottom:0;left:0;right:0;font-size:7px;text-align:center;font-weight:900;color:#faf3de;background:#121c25d8;padding:3px}
.pp-finished{position:absolute;z-index:8;bottom:12px;left:12px;right:12px;text-align:center;padding:12px;border:1px solid #dfdbaf;border-radius:13px;background:#17323be8;display:flex;flex-direction:column;gap:4px;backdrop-filter:blur(5px)}
.pp-finished b{font-size:18px;color:#f9ebc3}.pp-finished small{font-size:11px;color:#bed9d0}
.pp-tray-head{display:flex;justify-content:space-between;align-items:center;margin:16px 2px 6px;font-size:11px}
.pp-tray-head b{color:#f2e9cd}.pp-tray-head span{color:#b4d5d0}
.pp-tray{display:flex;gap:5px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;border:1px solid #4c7580;background:#112837;border-radius:12px;min-height:106px;padding:10px 5px 13px}
.pp-piece{flex:none;width:98px;height:96px;display:flex;align-items:center;justify-content:center;padding:3px;background:linear-gradient(130deg,#3a5163,#233e50);border:1px solid #688a90;border-radius:10px;cursor:grab;touch-action:none;scroll-snap-align:center;box-shadow:inset 0 1px 0 #ffffff24}
.pp-art{height:100%;width:100%;filter:drop-shadow(0 3px 3px #070e1d96)}
.pp-piece.pp-picked{background:#446a5a;border-color:#e8d6a5;outline:2px solid #e8dba3;transform:translateY(-3px)}
.pp-piece:focus-visible{outline:3px solid #f4e5ab}
.pp-ghost{position:fixed;width:110px;height:110px;z-index:10000;transform:translate(-50%,-50%);pointer-events:none;filter:drop-shadow(0 10px 14px #000a);opacity:.94}
.pp-ghost svg{height:100%;width:100%}
.pp-note{min-height:28px;font-size:11px;color:#c5d9d5;margin:10px 2px}
.pp-how{font-size:11px;color:#c1d5d0}.pp-how summary{font-weight:800;color:#dfece1;cursor:pointer}.pp-how p{line-height:1.65}
@media(max-width:380px){.pp-shell{padding:9px!important}.pp-title h2{font-size:20px}.pp-link input{padding:8px}.pp-link button{padding:8px}.pp-settings{gap:5px}.pp-settings select{font-size:10px}.pp-piece{width:84px;height:84px}.pp-tray{min-height:96px}.pp-reference{width:53px}}
@media(prefers-reduced-motion:reduce){.pp-progress>div,.pp-guide-photo{transition:none!important}}

/* Photo puzzle reference outside the playable board */.pp-photo-row{display:flex;justify-content:flex-end;margin:0 2px 9px}.pp-photo-row .pp-reference{position:relative;right:auto;top:auto;width:65px;pointer-events:none;flex:none;border:2px solid #e4e0c6;border-radius:8px;overflow:hidden;aspect-ratio:1;box-shadow:0 5px 12px #0714218c}.pp-photo-row .pp-reference img{height:100%;width:100%;object-fit:cover}.pp-photo-row .pp-reference small{position:absolute;left:0;right:0;bottom:0;color:#fff3d8;background:#0d1b27a8;text-align:center;font-size:7px;font-weight:900;padding:2px}@media(max-width:375px){.pp-photo-row .pp-reference{width:57px}}

/* Photo Puzzle v262 · jigsaw worktable + zoom controls */
.pp-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:15px;align-items:start}
.pp-board-col,.pp-pieces-col{min-width:0}.pp-board-col{width:100%;max-width:470px;margin-inline:auto}
.pp-zoom-bar{display:flex;align-items:center;gap:6px;min-height:35px;margin:0 0 10px;color:#d4e6df}
.pp-zoom-bar b{font-size:11px;font-weight:850;margin-right:auto;white-space:nowrap}
.pp-zoom-bar button{height:34px;min-width:35px;border:1px solid #96ada0;border-radius:8px;background:#2d4c5b;color:#f5eacd;font-size:18px;font-weight:900;padding:0 8px;cursor:pointer;touch-action:manipulation}
.pp-zoom-bar button[data-photo-zoom=reset]{min-width:44px;font-size:11px}
.pp-zoom-bar button:disabled{opacity:.38;cursor:not-allowed}.pp-zoom-level{min-width:44px;font-size:12px;font-variant-numeric:tabular-nums;text-align:center;color:#f0e1b4}
.pp-zoom-viewport{width:100%;max-width:470px;aspect-ratio:1;position:relative;overflow:hidden;border-radius:13px;touch-action:none;user-select:none;-webkit-user-select:none;overscroll-behavior:contain;background:#243d4a;box-shadow:0 7px 0 #10232e,0 15px 26px #050b1880}
.pp-zoom-viewport .pp-board{width:100%;height:100%;max-width:none;margin:0;border-radius:13px;box-shadow:none;transform-origin:center center;will-change:transform}
.pp-zoom-viewport.pp-zoomed{cursor:grab}.pp-zoom-viewport.pp-panning{cursor:grabbing}
.pp-pieces-col{padding:10px 8px 11px;border:1px solid #62828c;border-radius:15px;background:linear-gradient(145deg,#2b4350,#1b3140);box-shadow:inset 0 1px 0 #ffffff25}
.pp-pieces-col::before{content:"SORTING TABLE · DRAG PIECES TO THE BOARD";display:block;font-size:9px;font-weight:900;letter-spacing:.08em;color:#a6d8c5;margin:3px 3px 8px}
.pp-pieces-col .pp-tray-head{margin:4px 3px 8px}
.pp-pieces-col .pp-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:10px 7px;overflow-x:hidden;overflow-y:auto;scroll-snap-type:none;max-height:425px;min-height:100px;padding:12px 8px;touch-action:pan-y;overscroll-behavior:contain;scrollbar-width:thin;border:1px solid #708f97;background:radial-gradient(ellipse at 20% 10%,#63786b50,transparent 63%),linear-gradient(145deg,#35484e,#233943)}
.pp-pieces-col .pp-piece{width:100%;min-width:0;min-height:0;height:auto;aspect-ratio:1;flex:none;transform:rotate(var(--pp-angle,0deg));scroll-snap-align:none;box-shadow:0 4px 6px #06131e80,inset 0 1px 0 #ffffff20}
.pp-pieces-col .pp-piece.pp-picked{transform:rotate(0deg) translateY(-3px) scale(1.03);position:relative;z-index:1}
@media(min-width:850px){.pp-workspace{grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);gap:17px}.pp-board-col{max-width:none}.pp-pieces-col .pp-tray{max-height:475px}}
@media(max-width:380px){.pp-zoom-bar{gap:5px}.pp-zoom-bar button{height:32px;min-width:32px}.pp-zoom-level{min-width:40px}.pp-pieces-col{padding:8px 6px}.pp-pieces-col .pp-tray{gap:8px 5px;padding:9px 6px;max-height:355px}}


/* Photo Puzzle v264 — landscape-first board with pieces on four sides */
.pp-shell{position:relative;min-width:0}
.pp-picture-options{padding:0!important;margin-bottom:8px}
.pp-picture-options>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:9px;padding:9px 10px;color:#f3e5c2;font-size:12px;font-weight:900;cursor:pointer}
.pp-picture-options>summary::-webkit-details-marker{display:none}
.pp-picture-options>summary::before{content:"▸";color:#a5d4c0}.pp-picture-options[open]>summary::before{content:"▾"}
.pp-picture-options>summary span{color:#b6d1c9;font-weight:600;font-size:10px}
.pp-config-content{padding:0 10px 11px}
.pp-config-content>label{display:block;font-size:11px;font-weight:850;color:#d5e2db;margin-bottom:7px}
.pp-landscape-btn{background:linear-gradient(135deg,#e9dbac,#b9d9cb);border:1px solid #f6e8cb;border-radius:9px;padding:7px 9px;color:#20383c;font-weight:900;font-size:10px;white-space:nowrap;cursor:pointer}
.pp-rotate-tip{font-size:11px;line-height:1.5;color:#e1e8dd;background:#293f4b;border:1px solid #75949d;border-radius:9px;margin:7px 0;padding:8px}
.pp-shell .pp-info{gap:8px;flex-wrap:wrap}
.pp-landscape-stage{--pp-center:min(55vw,60dvh,450px);width:100%;display:grid;grid-template-areas:". north ." "west center east" ". south .";grid-template-columns:minmax(52px,1fr) minmax(0,var(--pp-center)) minmax(52px,1fr);grid-template-rows:70px auto 70px;align-items:stretch;gap:9px;margin:6px auto 0;min-width:0}
.pp-stage-board{grid-area:center;width:100%!important;max-width:none!important;min-width:0;align-self:center}
.pp-stage-board .pp-zoom-bar{min-width:0;margin:0 0 5px;gap:5px}
.pp-stage-board .pp-zoom-bar b{font-size:10px}
.pp-stage-board .pp-zoom-bar button{height:30px;min-width:29px;font-size:17px;padding:0 5px}
.pp-stage-board .pp-zoom-bar button[data-photo-zoom=reset]{min-width:39px;font-size:10px}
.pp-stage-board .pp-zoom-level{min-width:38px;font-size:10px}
.pp-stage-board .pp-zoom-viewport{width:100%;max-width:none}
.pp-edge-bank{position:relative;overflow:hidden;min-width:0;min-height:0;border-radius:12px;padding:5px;background:radial-gradient(circle at 30% 20%,#617d7850,transparent 70%),linear-gradient(150deg,#334953,#20343f);border:1px solid #729495;box-shadow:inset 0 2px 7px #091a276b,0 3px 8px #07132166}
.pp-edge-top{grid-area:north}.pp-edge-left{grid-area:west}.pp-edge-right{grid-area:east}.pp-edge-bottom{grid-area:south}
.pp-bank-scroll{height:100%;width:100%;display:flex;align-items:center;justify-content:flex-start;gap:7px;overflow-x:auto;overflow-y:hidden;padding:3px;scrollbar-width:thin;overscroll-behavior:contain}
.pp-edge-left .pp-bank-scroll,.pp-edge-right .pp-bank-scroll{display:grid;grid-template-columns:repeat(auto-fit,minmax(42px,63px));grid-auto-rows:63px;align-content:start;justify-content:center;gap:6px;overflow-y:auto;overflow-x:hidden}
.pp-edge-bank .pp-piece{flex:0 0 58px;width:58px;height:58px;min-height:0;min-width:0;max-width:none;aspect-ratio:1;padding:2px;border:1px solid #789a96;background:linear-gradient(135deg,#536b6f,#304b54);box-shadow:0 4px 7px #0715228a;transform:rotate(var(--pp-angle,0deg));scroll-snap-align:none}
.pp-edge-bank .pp-piece.pp-picked{position:relative;z-index:2;transform:translateY(-2px) scale(1.06);background:#49735f;border:2px solid #efdda5;outline:2px solid #f4e4a8}
.pp-edge-bank .pp-art{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 2px 2px #06152296)}
@media(orientation:landscape){.pp-rotate-tip{display:none}}
#app:fullscreen{box-sizing:border-box;display:block;width:100vw;height:100dvh;padding:0;margin:0;background:#0c1827;overflow-y:auto;overscroll-behavior:contain}
#app:fullscreen .pp-shell{box-sizing:border-box;max-width:1400px;width:100%;min-height:100dvh;padding:8px 12px!important;margin:auto;border:0!important;border-radius:0!important;box-shadow:none!important}
#app:fullscreen .pp-title{display:none}
#app:fullscreen .pp-picture-options{margin:0 47px 4px 0}
#app:fullscreen .pp-picture-options>summary{padding:5px 9px}
#app:fullscreen .pp-photo-row{position:absolute;z-index:6;top:4px;right:9px;margin:0;pointer-events:none}
#app:fullscreen .pp-photo-row .pp-reference{width:36px}
#app:fullscreen .pp-info{margin:4px 45px 4px 1px;min-height:27px}
#app:fullscreen .pp-info .pp-toggle,#app:fullscreen .pp-landscape-btn{padding:5px 7px}
#app:fullscreen .pp-progress{display:none}
#app:fullscreen .pp-landscape-stage{margin-top:4px}
#app:fullscreen .pp-note{font-size:10px;margin:5px 1px;min-height:0}
#app:fullscreen .pp-how{display:none}
@media(orientation:landscape) and (max-height:560px){
 .pp-landscape-stage{--pp-center:min(53dvh,46vw,340px);grid-template-rows:48px auto 48px;gap:5px}
 .pp-edge-bank{padding:3px;border-radius:8px}
 .pp-edge-bank .pp-piece{width:40px;height:40px;flex-basis:40px}
 .pp-edge-left .pp-bank-scroll,.pp-edge-right .pp-bank-scroll{grid-template-columns:repeat(auto-fit,minmax(35px,43px));grid-auto-rows:43px;gap:3px}
 .pp-bank-scroll{gap:4px;padding:2px}
 .pp-stage-board .pp-zoom-bar{margin:0 0 4px;min-height:27px}
 .pp-title h2{font-size:18px}.pp-title p{display:none}
 .pp-rotate-tip{display:none}
 .pp-shell .pp-info{margin:3px 0}
 .pp-photo-row .pp-reference{width:43px}
 #app:fullscreen .pp-landscape-stage{--pp-center:min(54dvh,45vw,350px);grid-template-rows:44px auto 44px;gap:5px}
 #app:fullscreen .pp-edge-bank .pp-piece{width:37px;height:37px;flex-basis:37px}
 #app:fullscreen .pp-edge-left .pp-bank-scroll,#app:fullscreen .pp-edge-right .pp-bank-scroll{grid-template-columns:repeat(auto-fit,minmax(34px,40px));grid-auto-rows:40px}
}
@media(orientation:portrait) and (max-width:650px){
 .pp-landscape-stage{--pp-center:min(54vw,58dvh);grid-template-rows:52px auto 52px;grid-template-columns:minmax(40px,1fr) minmax(0,var(--pp-center)) minmax(40px,1fr);gap:5px}
 .pp-edge-bank{padding:2px;border-radius:8px}
 .pp-bank-scroll{padding:2px;gap:3px}
 .pp-edge-bank .pp-piece{width:43px;height:43px;flex-basis:43px}
 .pp-edge-left .pp-bank-scroll,.pp-edge-right .pp-bank-scroll{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:45px;gap:4px}
 .pp-stage-board .pp-zoom-bar b{display:none}
 .pp-stage-board .pp-zoom-level{min-width:35px}
}


/* Photo Puzzle v265: high-piece-count GPU / touch refinements */
.pp-high-density .pp-edge-bank .pp-art{filter:none}
.pp-high-density .pp-completed-pieces{filter:none}
.pp-high-density .pp-edge-bank .pp-piece{box-shadow:0 2px 3px #0715226a}
.pp-high-density .pp-stage-board .pp-slot{border-style:dotted;border-color:#bed7c56e}
.pp-high-density .pp-stage-board .pp-slot:focus-visible{outline-offset:-1px}
@media(orientation:landscape) and (max-height:520px){
 .pp-high-density .pp-edge-left .pp-bank-scroll,.pp-high-density .pp-edge-right .pp-bank-scroll{grid-template-columns:repeat(auto-fit,minmax(32px,37px));grid-auto-rows:38px;gap:3px}
 .pp-high-density .pp-edge-bank .pp-piece{width:36px;height:36px;flex-basis:36px}
}

/* Closer homepage - clean, compact, understated */
.top{height:62px;gap:10px}
.top .brand{display:inline-flex;align-items:center;gap:7px;letter-spacing:-.045em;font-family:Georgia,'Times New Roman',serif;font-size:clamp(25px,5.7vw,32px);font-weight:700;text-transform:none;line-height:1.1;min-width:0}
.top .brand .closer-wordmark{color:#f4e5c9}
.top .brand .closer-heart{font-family:Arial,sans-serif;letter-spacing:0;color:#e9877e;font-size:.66em;line-height:1;margin-left:2px}
.top .brand .closer-spark{font-family:Arial,sans-serif;font-size:.54em;letter-spacing:0;color:#e7c17c;line-height:1}
.top .closer-header-lab{font-size:11px;letter-spacing:.015em;font-weight:600;border-color:#405773;color:#d0dfed;padding:7px 10px;background:transparent}
.top .quiet{min-width:38px;min-height:38px}
body:not(.lab-in-game) #roomPanel .lab-net{padding:10px 12px 12px;margin:12px 0 3px;border-radius:14px}
body:not(.lab-in-game) #roomPanel .lab-net>.lab-net-row:first-child{display:none}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions{gap:9px}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions>.btn{min-height:46px;border-radius:11px;font-size:14px;font-weight:750}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions>[data-net=create]{background:#e8c687;border-color:#e8c687;color:#172237}
body:not(.lab-in-game) #roomPanel .lab-lobby-actions>[data-net=join]{background:#20324b;border:1px solid #58738f;color:#f0f4fa}
#app .lab-home-hero{padding:15px 1px 16px;text-align:left}
#app .lab-home-hero .eyebrow{display:none}
#app .lab-home-hero h1{font-size:clamp(28px,7vw,43px);font-weight:850;letter-spacing:-.04em;line-height:1.12;margin:0 0 8px;max-width:none}
#app .lab-home-hero>p{font-size:13px;line-height:1.45;color:#a9c0d7;margin:0}
#app .lab-home-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px}
#app .lab-home-actions .btn{font-size:13px;min-height:45px;line-height:1.2;border-radius:11px;gap:6px;padding:9px}
#app .lab-home-actions .btn span{font-size:17px}
#app .lab-home-mix{background:#e5c183!important;border-color:#e5c183!important;color:#142238!important}
#app .lab-home-surprise{background:#1b3049!important;border-color:#506987!important}
#app .lab-catalog-head{margin:5px 0 10px;align-items:center}
#app .lab-catalog-head h2{font-size:16px;font-weight:750}
#app .closer-guide-catalog-btn{min-height:34px;padding:7px 9px;font-size:11px;border-radius:10px}
#app .lab-discovery-controls{gap:9px;margin:8px 0 12px}
#app .lab-game-search-label{display:none}
#app .lab-game-search{min-height:46px;border-radius:11px;background:#172c45;border-color:#405c7b;padding:10px 13px}
#app .lab-filter-row{gap:7px;margin:0}
#app .lab-filter-btn{font-size:12px;border-radius:10px;padding:8px 11px}
#app .lab-game-catalog{gap:10px}
#app .lab-game-catalog .game-card{min-height:142px;padding:14px;border-radius:14px;background:#192c44;border-color:#3b5573;box-shadow:none;gap:6px}
#app .lab-game-catalog .game-card .symbol{background:#283e56;width:42px;height:42px;font-size:25px;border-radius:11px;margin:0 0 6px}
#app .lab-game-catalog .game-card strong{font-size:14px;line-height:1.25}
#app .lab-game-catalog .game-card .micro{font-size:11px;color:#abc0d6;line-height:1.35}
#app .lab-game-catalog .game-card .number{display:none}
@media(max-width:380px){.top .brand{font-size:24px;gap:5px}.top .closer-header-lab{padding:6px 8px;font-size:10px}#app .lab-home-hero h1{font-size:28px}#app .lab-home-actions .btn{font-size:12px;padding:8px 6px}#app .lab-game-catalog .game-card{min-height:132px;padding:12px}}
@media(prefers-reduced-motion:reduce){#app .lab-game-catalog .game-card,#app .lab-home-actions .btn{transition:none}}

/* Word Chain: solo preview, immediate accessible playing area */
.try-solo-page #app .wc-shell{margin:8px 0 15px;max-width:100%;min-width:0;padding:12px!important}
.try-solo-page #app .wc-actions{order:0;padding:13px;border-color:#829c9f;background:#263b4b}
.try-solo-page #app .wc-play{display:block}
.try-solo-page #app .wc-entry-row{display:flex;flex-wrap:wrap;gap:8px}
.try-solo-page #app .wc-input{flex:1 1 150px;width:auto;min-width:0;min-height:46px}
.try-solo-page #app .wc-submit{flex:0 1 auto;min-height:45px;box-shadow:none}
.try-solo-page #app .wc-hero{min-height:135px;padding:12px}
.try-solo-page #app .wc-letter{width:68px;height:68px;font-size:43px;margin:3px auto 5px;border-radius:17px;box-shadow:none}
.try-solo-page #app .try-intro{margin:7px 0;padding:8px 10px;background:#1a3047;color:#e8ebf2;border-color:#3f6479}
@media(max-width:370px){.try-solo-page #app .wc-submit{flex:1 0 100%;min-height:43px}.try-solo-page #app .wc-input{width:100%}}

/* Word Chain · understated indigo / teal design, unlimited play */
#app .wc-shell{background:#142439!important;border:1px solid #38516c!important;border-radius:16px!important;box-shadow:none!important;padding:14px!important;color:#edf2f7}
#app .wc-game{gap:12px;min-width:0}
#app .wc-top{align-items:center}
#app .wc-top small{font-size:10px;font-weight:650;letter-spacing:.09em;color:#99b4c9}
#app .wc-top h2{font-size:23px;letter-spacing:-.025em;font-weight:800;color:#f4f6fa}
#app .wc-round{padding:7px 10px;background:#223750;border:1px solid #395371;border-radius:10px;font-weight:750;color:#e5cd9f}
#app .wc-stats{gap:10px}
#app .wc-stats>div{background:#1c314a;border:1px solid #344e6b;border-radius:11px;padding:12px 13px}
#app .wc-stats small{font-size:10px;color:#9db7ca}
#app .wc-stats strong{font-size:27px;color:#f2d59e;font-weight:800}
#app .wc-hero{min-height:158px;padding:15px 12px;background:#20364c;border:1px solid #3d5a73;box-shadow:none;border-radius:13px;gap:6px}
#app .wc-hero>span{font-size:11px;letter-spacing:.05em;font-weight:750;color:#f0f4f8}
#app .wc-hero>small{font-size:11px;letter-spacing:0;color:#adc5d4}
#app .wc-turn-dot{background:#91c7b5;box-shadow:none}
#app .wc-letter{width:82px;height:82px;margin:3px auto 2px;background:#2d5e69;color:#fff0c8;font-size:53px;font-weight:850;border:1px solid #578e93;border-radius:18px;text-shadow:none;box-shadow:none}
#app .wc-letter-caption{color:#b9cfd9;letter-spacing:.08em}
#app .wc-trail-heading{gap:9px}
#app .wc-trail-heading b{font-size:11px;letter-spacing:.04em;color:#e2ecf5}
#app .wc-trail-heading span{font-size:10px;color:#9eb8ce}
#app .wc-trail{gap:8px;padding:7px 1px 11px;scrollbar-width:thin;scrollbar-color:#4d6b83 transparent}
#app .wc-word{min-width:114px;max-width:170px;gap:7px;padding:11px 12px;background:#263c54;border:1px solid #405d77;border-radius:11px;box-shadow:none}
#app .wc-word.wc-seed{background:#333c4b;border-color:#5b687a}
#app .wc-word.wc-me{background:#1f4c51;border-color:#448d83}
#app .wc-word.wc-them{background:#4a344d;border-color:#986889}
#app .wc-word.wc-current{border-color:#e3c58c;box-shadow:inset 0 0 0 1px #e3c58c}
#app .wc-word-label{color:#c4d3e2;font-size:10px;letter-spacing:.035em;font-weight:700}
#app .wc-word strong{font-size:16px;font-weight:750;color:#f5f7fa}
#app .wc-word-tail{width:25px;height:25px;border-radius:7px;background:#e8cc91;color:#24364b}
#app .wc-actions{background:#1c314a;border:1px solid #465f7b;border-radius:12px;padding:13px}
#app .wc-play>label{font-size:12px;letter-spacing:0;font-weight:700;color:#dbe6f1}
#app .wc-input{background:#f5f7f8;color:#1c2c3c;border:1px solid #bfd0dd;border-radius:10px;min-height:46px;font-size:16px;font-weight:650}
#app .wc-input:focus{border-color:#76b8ad;box-shadow:0 0 0 3px #76b8ad44}
#app .wc-submit{min-height:46px;background:#e7c78d!important;border:1px solid #e7c78d!important;border-radius:10px;color:#182d40!important;font-size:13px;font-weight:800;box-shadow:none;touch-action:manipulation}
#app .wc-rescue{background:#283e55;border:1px solid #4d6881;border-radius:9px;color:#d7e7f0;min-height:40px;font-weight:700}
#app .wc-error{font-size:12px;line-height:1.4}
#app .wc-help{margin-top:0;background:#1a2e43;border:1px solid #344e66;border-radius:11px;padding:10px 12px}
#app .wc-help summary{font-size:12px;font-weight:750;color:#dbe6ef}
#app .wc-help p{color:#bcd0dd;font-size:12px}
#app .wc-new-chain{margin-top:12px;padding-top:12px;border-top:1px solid #3d5873}
#app .wc-next{min-height:40px;padding:9px 12px;background:#30465e!important;border:1px solid #65829b!important;box-shadow:none;color:#e8f0f6!important;font-size:12px;font-weight:750;border-radius:9px}
@media(max-width:370px){#app .wc-shell{padding:10px!important}#app .wc-entry-row{flex-wrap:wrap}#app .wc-input{flex:1 1 100%;width:auto}#app .wc-submit{flex:1 1 100%}#app .wc-hero{min-height:145px}}
@media(prefers-reduced-motion:reduce){#app .wc-word,#app .wc-letter{animation:none!important;transition:none!important}}

/* CLOSER chat refinement: Android-friendly, readable and understated (2026-11-29) */
#closer-chat-sheet{background:#14243a;border:1px solid #48617c;box-shadow:0 16px 38px rgba(4,10,20,.52);border-radius:16px}
#closer-chat .closer-chat-header{background:#1d334c;border-bottom:1px solid #37516b;padding:11px 14px}
#closer-chat .closer-chat-header strong{font-size:16px;font-weight:750;letter-spacing:-.015em;color:#f5e7d2}
#closer-chat .closer-chat-header-presence{font-size:10px;letter-spacing:0;color:#aec4d5}
#closer-chat-log{padding:12px 12px 18px;gap:9px;background:#14243a;min-height:0;overscroll-behavior:contain;overflow-anchor:none}
#closer-chat .closer-chat-row{flex-shrink:0}
#closer-chat .closer-chat-bubble{max-width:min(83%,330px);border-radius:14px;padding:10px 12px;box-shadow:none;overflow-wrap:anywhere}
#closer-chat .closer-chat-row.mine .closer-chat-bubble{background:#284c61;border:1px solid #456e81;border-bottom-right-radius:4px}
#closer-chat .closer-chat-row.theirs .closer-chat-bubble{background:#543a52;border:1px solid #80617c;border-bottom-left-radius:4px}
#closer-chat .closer-chat-meta{color:#d5e2ea;font-size:10px;font-weight:550;line-height:1.25;margin-bottom:5px}
#closer-chat .closer-chat-row.theirs .closer-chat-meta{color:#efd2e2}
#closer-chat .closer-chat-bubble p{font-size:13px;line-height:1.55;color:#f8f9fb}
#closer-chat .closer-chat-compose{background:#1a2d45;border-color:#38536d;padding:9px 10px;gap:8px}
#closer-chat-input{min-height:45px;max-height:112px;background:#233951;border:1px solid #4a6882;border-radius:11px;padding:11px 12px;color:#f7f9fb;font-size:16px;resize:none}
#closer-chat-input:focus{border-color:#c5aa80;box-shadow:0 0 0 2px rgba(218,184,126,.16)}
#closer-chat-send{height:45px;min-width:62px;background:#e6c48b;border-radius:10px;color:#182a3b;font-weight:800;box-shadow:none}
#closer-chat-feedback:not(:empty){background:#2a3548;padding:7px 12px;color:#ffcebd;line-height:1.35}
#closer-chat .closer-chat-privacy{background:#1a2d45;padding:0 12px 9px;color:#adc1d0}
#closer-chat-fab{border-radius:16px;border-color:#bda578;background:#223a54;color:#f0d6a8;box-shadow:0 5px 18px rgba(0,0,0,.4)}
#closer-chat .closer-chat-count{background:#f0cf95;color:#19263b;border-color:#1a2d45}
#closer-chat-latest:not([hidden]){background:#2c4963;border-color:#8fa7b8;box-shadow:0 3px 13px #0005;color:#eef4f8}
@media(max-width:600px){
 #closer-chat-sheet{left:0;right:0;width:100%;bottom:calc(var(--closer-chat-keyboard,0px) + env(safe-area-inset-bottom));height:min(650px,calc(var(--closer-chat-usable-height,100dvh) - 12px));max-height:calc(var(--closer-chat-usable-height,100dvh) - 12px);border-radius:19px 19px 0 0;border-left:0;border-right:0;border-bottom:0;min-height:0}
 #closer-chat.closer-chat-open #closer-chat-fab{display:none}
 #closer-chat .closer-chat-header{padding:11px 14px;min-height:54px}
 #closer-chat-log{padding-bottom:20px}
 #closer-chat-input{font-size:16px}
 #closer-chat .closer-chat-bubble{max-width:87%}
 #closer-chat-latest:not([hidden]){bottom:112px}
}
@media(max-height:420px){#closer-chat .closer-chat-privacy{display:none}#closer-chat .closer-chat-header{padding:6px 12px;min-height:42px}#closer-chat .closer-chat-compose{padding:5px 9px}}
@media(prefers-reduced-motion:reduce){#closer-chat .closer-chat-bubble,#closer-chat-fab{transition:none!important}}

/* Local-only preview uses the same real chat UI; these are small demo controls. */
.try-solo-page #closer-chat{display:block!important}
.try-solo-page #closer-chat-sheet{--closer-chat-demo:1}
#closer-chat .closer-solo-chat-tools{padding:8px 12px;background:#1b3049;border-bottom:1px solid #38516b;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px}
#closer-chat .closer-solo-chat-tools small{font-size:11px;color:#b6cadd}
#closer-chat .closer-solo-chat-tools>div{display:flex;gap:6px;flex-wrap:wrap}
#closer-chat .closer-solo-chat-tools button{min-height:32px;padding:5px 9px;color:#e4ebf2;background:#28415b;border:1px solid #55708a;border-radius:8px;font-size:11px;font-weight:650;cursor:pointer}
#closer-chat .closer-solo-chat-tools button:active{background:#385a78}
#closer-chat .closer-solo-chat-day{align-self:center;text-align:center;padding:4px 10px;border-radius:20px;color:#a6bdcf;background:#1f344a;font-size:10px;margin:7px 0}
@media(max-width:390px){#closer-chat .closer-solo-chat-tools{padding:8px 10px}#closer-chat .closer-solo-chat-tools button{padding:4px 7px;font-size:10px}}

/* First-party animated GIF picker and messages · 2026-11-29 */
#closer-chat .closer-gif-button{height:45px;min-width:46px;border:1px solid #57718a;border-radius:9px;background:#2a425e;color:#f4d5a4;font-weight:850;font-size:12px;cursor:pointer;touch-action:manipulation;flex-shrink:0}
#closer-chat .closer-gif-button.active{border-color:#efcf92;background:#344e68}
#closer-chat .closer-gif-picker[hidden]{display:none}
#closer-chat .closer-gif-picker{background:#1b3048;border-top:1px solid #3c5874;padding:10px 12px 9px;display:flex;flex-direction:column;gap:9px;max-height:min(330px,45dvh);min-height:0;flex-shrink:1}
#closer-chat .closer-gif-top{display:flex;align-items:center;justify-content:space-between;gap:9px}
#closer-chat .closer-gif-top strong{font-size:13px;font-weight:750;color:#f4e7d0}
#closer-chat .closer-gif-close{height:30px;width:30px;border:1px solid #506c87;background:#29425b;border-radius:9px;color:#eef2f7;font-size:20px}
#closer-chat .closer-gif-search{height:38px;border:1px solid #526e87;border-radius:9px;background:#223c55;color:#fff;padding:7px 11px;font-size:14px;min-height:38px}
#closer-chat .closer-gif-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;overflow-y:auto;overscroll-behavior:contain;min-height:30px;align-content:start}
#closer-chat .closer-gif-tile{padding:6px;border:1px solid #46617a;border-radius:11px;background:#273e57;color:#dce6ee;display:flex;flex-direction:column;gap:3px;align-items:center;cursor:pointer;min-width:0;touch-action:manipulation}
#closer-chat .closer-gif-tile:active{border-color:#ebcc96;background:#375473}
#closer-chat .closer-gif-tile img{display:block;width:min(80px,100%);height:66px;object-fit:contain;image-rendering:auto}
#closer-chat .closer-gif-tile span{font-size:10px;font-weight:700;line-height:1.2}
#closer-chat .closer-gif-note{color:#a8bfd3;font-size:10px}
#closer-chat .closer-gif-empty{grid-column:1/-1;color:#b6cad8;font-size:12px;padding:14px;text-align:center}
#closer-chat .closer-chat-gif-body{margin:3px 0 1px;display:flex;align-items:center;justify-content:center}
#closer-chat .closer-chat-gif-image{width:min(148px,100%);height:148px;object-fit:contain;display:block}
#closer-chat .closer-chat-bubble:has(.closer-chat-gif-image){min-width:150px;max-width:215px}
#closer-chat .closer-gif-button:focus-visible,#closer-chat .closer-gif-tile:focus-visible{outline:2px solid #efcd98;outline-offset:2px}
@media(max-width:380px){#closer-chat .closer-gif-picker{padding:8px}#closer-chat .closer-gif-grid{gap:5px}#closer-chat .closer-gif-tile{padding:4px}#closer-chat .closer-gif-button{min-width:41px}}
@media(max-height:470px){#closer-chat .closer-gif-picker{max-height:39dvh}}
@media(prefers-reduced-motion:reduce){#closer-chat .closer-gif-tile{transition:none}}

/* Shared game requests in chat */
#closer-chat .closer-chat-request-panel[hidden]{display:none}
#closer-chat .closer-chat-request-panel{flex-shrink:0;padding:10px 12px;background:#23364a;border-bottom:1px solid #627385;color:#f4e7d2}
#closer-chat .closer-chat-request-panel strong{font-size:13px}
#closer-chat .closer-chat-request-panel p{font-size:12px;color:#c5d5e3;margin:5px 0 8px}
#closer-chat .closer-chat-request-panel>div{display:flex;gap:8px}
#closer-chat .closer-chat-request-panel button{flex:1;min-height:38px;border:1px solid #657f97;border-radius:8px;color:#e9eff7;background:#2c465e;font-size:12px;font-weight:700}
#closer-chat .closer-chat-request-panel button[data-request-action=accept]{background:#e6c48b;color:#17283b;border-color:#e6c48b}

#closer-chat .closer-chat-vote-panel[hidden]{display:none}
#closer-chat .closer-chat-vote-panel{max-height:34dvh;overflow:auto;flex-shrink:0;overscroll-behavior:contain}
#closer-chat .closer-chat-vote-panel article+article{border-top:1px solid #627385}
#closer-chat .closer-chat-vote-panel button:disabled{opacity:.5}

/* CLOSER shared chat-inspired palette */
:root{--bg:#0c1727;--panel:#182b40;--panel2:#21384e;--line:#40566d;--ink:#f0eaf2;--muted:#b5c4d3;--gold:#e8b8cf;--blue:#a9cadb;--closer-you:#284c61;--closer-partner:#543a52;--closer-rose:#e8b8cf}
body{background:#0c1727}
#app .gamebox{background:#182b40;border-color:#40566d}
#app .game-card,#app .lab-game-catalog .game-card{background:#1c3045;border-color:#40566d}
#app .game-card:hover,#app .game-card:focus-visible{border-color:#be91ac}
#app .game-card .symbol{color:#e8b8cf}
#app .game-card strong,#app .gamebox h2{color:#f1dce7}
#app .btn.primary{background:#e8b8cf;border-color:#e8b8cf;color:#292033}
#app .btn.secondary,#app .back,#app .quiet{background:#28465b;border-color:#526f83;color:#f1edf3}
#app .field{background:#112336;border-color:#4a657c;color:#f5eef5}
#app .field:focus,#app .btn:focus-visible{outline-color:#e8b8cf;border-color:#e8b8cf}
#app .duo>.player:first-child{background:#284c61;border-color:#54768a}
#app .duo>.player:nth-child(2){background:#543a52;border-color:#8a607a}
#app .duo>.player p{color:#e4dce8}
#app .pp-edge-bank .pp-piece:not(.pp-picked){border-color:transparent;background:transparent;box-shadow:none}
#app .pp-art{filter:none}
#closer-chat .closer-chat-timeline-event{display:flex;align-self:center;flex-direction:column;align-items:center;gap:3px;max-width:94%;margin:5px auto;padding:7px 12px;border:1px solid #405b72;background:#20354b;border-radius:12px;text-align:center;color:#ebd5e4;font-size:11px;line-height:1.4}
#closer-chat .closer-chat-timeline-event small{font-size:9px;color:#a9bacd}
#closer-chat .closer-chat-request-panel button[data-request-action=accept]{background:#e8b8cf;border-color:#e8b8cf;color:#292033}


/* Number Merge — compact arcade redesign */
#app .nm-shell{padding:12px!important;background:#17273b!important;border:1px solid #40536a!important;box-shadow:none!important;border-radius:15px!important}
#app .try-demo:has(.nm-game){padding:0;border:0;background:transparent;box-shadow:none}
#app .nm-game{font-size:13px;max-width:520px;margin:auto}
#app .nm-header{gap:8px;margin-bottom:10px}#app .nm-header h2{font-size:17px;line-height:1.3;margin:0;font-weight:750;color:#f1e8f0}
#app .nm-level{font-size:11px;font-weight:650;padding:5px 8px;background:#24384d;border:1px solid #40536a;border-radius:8px;color:#d0c7df}
#app .nm-stats{grid-template-columns:1fr .8fr 1.3fr;gap:6px;margin-bottom:8px}
#app .nm-stats>div{background:#20354a;border:1px solid #3a5066;padding:8px 9px;gap:3px;box-shadow:none;border-radius:9px}
#app .nm-stats small{font-size:11px;letter-spacing:0;text-transform:none;color:#b6c7d8;font-weight:550}
#app .nm-stats strong{font-size:21px;font-weight:760;color:#f8e5ca;letter-spacing:-.03em}
#app .nm-stats .nm-turn b{font-size:11px;font-weight:650;color:#e7d8e6}#app .nm-turn.my-turn .nm-turn-light{background:#83d7b5;box-shadow:none}
#app .nm-goal{background:#1b2c40;border:1px solid #3a5066;padding:8px 10px;margin-bottom:8px;border-radius:9px}
#app .nm-goal-text{font-size:12px;margin-bottom:6px}#app .nm-goal-text b{font-size:17px;color:#f1d4af}#app .nm-goal-text span+span{font-size:11px;color:#b2c4d4}
#app .nm-progress{height:5px;background:#101d2d;box-shadow:none}#app .nm-progress span{background:#9ccfc4;box-shadow:none}
#app .nm-stage-dots{gap:5px;margin:6px 0 0}#app .nm-stage-dot{height:17px;max-width:none;border-radius:5px;font-size:10px;background:#25364a;border-color:#3a4d61}#app .nm-stage-dot.done{background:#24534e;color:#b8f5df;border-color:#428375}#app .nm-stage-dot.here{background:#59445e;color:#f8dbe9;border-color:#a884a0}
#app .nm-next-area{min-height:60px;margin:0 0 8px;gap:12px;background:#203247;border:1px solid #3b5066;padding:7px 10px;border-radius:9px}
#app .nm-coming{min-width:85px;gap:10px}#app .nm-coming small{font-size:12px;text-transform:none;font-weight:600;color:#b6c7d8}
#app .nm-tip strong{font-size:12px;font-weight:700;color:#f0e7ed}#app .nm-tip span{font-size:11px;color:#b7c7d6}
#app .nm-board-wrap{padding:7px;border:1px solid #52647b;background:#101e30;border-radius:13px;box-shadow:inset 0 2px 7px #080f1a;overflow:hidden;isolation:isolate}
#app .nm-grid{gap:5px}
#app .nm-column{gap:4px;background:#142336;border:1px solid #31465b;border-radius:8px;padding:3px 2px;box-shadow:none;transition:background .12s,border-color .12s;transform:none!important;opacity:1}
#app .nm-column.nm-ready:hover{background:#1d3044;border-color:#63899c}
#app .nm-column.nm-ready:active{background:#263f54;border-color:#91b8be}
#app .nm-column.nm-combo-ready{border-color:#557c76!important;box-shadow:none}
#app .nm-col-top{height:17px;font-size:15px;line-height:17px;color:#8da5bc;opacity:1}
#app .nm-column.nm-combo-ready .nm-col-top b{height:16px;min-width:21px;font-size:10px;border:0;color:#bcebd7;background:#284d48;border-radius:4px}
#app .nm-cells{min-height:0;grid-template-rows:repeat(6,minmax(0,1fr));gap:4px}
#app .nm-slot{aspect-ratio:1/1.02;min-height:0;background:#1b2c40;border:1px solid #304258;border-radius:6px;box-shadow:none}
#app .nm-slot:has(.nm-tile){background:transparent;border-color:transparent}
#app .nm-empty{width:4px;height:4px;border-radius:50%;background:#3f5367;opacity:.55}
#app .nm-col-footer{height:15px;font-size:10px;color:#8fa3b8}
#app .nm-tile{width:100%;height:100%;min-height:0;transform:none;border-radius:6px;background:linear-gradient(155deg,var(--face),var(--shade));box-shadow:inset 0 1px 0 #ffffff55,inset 0 -2px 0 #00000024,0 2px 2px #0003;border:1px solid #ffffff38}
#app .nm-tile.nm-preview{width:39px;height:39px;min-height:0;flex:none}
#app .nm-tile b{font-size:clamp(15px,5vw,24px);font-weight:800;letter-spacing:-.045em;text-shadow:0 1px 1px #0003;color:#fff}
#app .nm-tile i{display:none}
#app .nm-v2{--face:#639fc8;--shade:#34709d}#app .nm-v4{--face:#9981d4;--shade:#6650aa}#app .nm-v8{--face:#c58a4a;--shade:#96622e}#app .nm-v16{--face:#d97880;--shade:#a7475c}#app .nm-v32{--face:#4faaa7;--shade:#287579}#app .nm-v64{--face:#c879b1;--shade:#935481}#app .nm-v128{--face:#b69b56;--shade:#806a36}#app .nm-v256{--face:#7290d6;--shade:#445ba3}
#app .nm-v128 b,#app .nm-v256 b,#app .nm-v512 b,#app .nm-v1024 b,#app .nm-v2048 b{font-size:clamp(12px,4vw,19px)}
#app .nm-last{min-height:33px;padding:7px 9px;margin:8px 0 0;border:0;border-radius:7px;background:#1d3044;color:#c5d5e3;font-size:12px}
#app .nm-last span,#app .nm-last strong{font-weight:650;font-size:12px}#app .nm-last strong{color:#b8e5cf}
#app .nm-last.nm-combo{background:#29464b;color:#d6f0da}
#app .nm-finish{width:100%;margin:0;padding:0;display:grid;grid-template-columns:1fr auto;gap:3px 8px;background:none;border:0;text-align:left}
#app .nm-finish strong{font-size:13px;color:#f1d9a9;font-weight:700}#app .nm-finish span{font-size:11px;color:#c7d7e3;grid-row:2}
#app .nm-finish .nm-next{grid-column:2;grid-row:1/3;align-self:center;min-height:38px;font-size:12px;padding:6px 10px;border:0;border-radius:8px;background:#e8b8cf;color:#30253a}
#app .nm-how{margin:9px 0 0;padding:6px 0 0;font-size:12px;border-color:#3a5066}
#app .nm-replay{position:absolute;inset:0;pointer-events:none;z-index:5;overflow:hidden}
#app .nm-replay-item{display:block;position:absolute;pointer-events:none}
#app .nm-replay-points{position:absolute;font-weight:800;font-size:13px;color:#f8e1a9;white-space:nowrap;pointer-events:none;text-shadow:0 1px 3px #152033}
#app .nm-replaying .nm-slot>.nm-tile{visibility:hidden}
#app .nm-pulse{animation:nm-board-pulse .4s ease-out}
@keyframes nm-board-pulse{0%,100%{border-color:#52647b}40%{border-color:#9ed8b6}}
@media(max-width:390px){#app .nm-shell{padding:8px!important}#app .nm-grid{gap:4px}#app .nm-cells{gap:3px}#app .nm-stats>div{padding:7px 6px}#app .nm-board-wrap{padding:5px}#app .nm-stats strong{font-size:19px}}
@media(prefers-reduced-motion:reduce){#app .nm-pulse{animation:none}#app .nm-column,#app .nm-progress span{transition:none}}

/* Strategy v2 */
#app .nm-goal-text .nm-budget{color:#b5e1ce;font-size:12px;font-weight:750;font-variant-numeric:tabular-nums}
#app .nm-goal-text .nm-budget.nm-budget-low{color:#ffad9d}
#app .nm-next-area{gap:10px;align-items:center}
#app .nm-queue{display:flex;flex-direction:column;gap:3px;flex:none}
#app .nm-queue small{color:#aabfd0;font-size:10px;font-weight:650}
#app .nm-queue>div{display:flex;gap:4px}
#app .nm-tile.nm-queued{width:27px;height:27px;flex:none;border-radius:5px;opacity:.83}
#app .nm-queued b{font-size:14px}
#app .nm-coming{min-width:0;gap:5px}
#app .nm-coming small{font-size:10px}
#app .nm-tip{margin-left:auto}
#app .nm-impact{position:absolute;pointer-events:none;border:2px solid #fff0be;border-radius:50%;box-shadow:0 0 8px #eec88870;z-index:3}
#app .nm-spark{position:absolute;width:4px;height:4px;border-radius:1px;background:#fff0b4;pointer-events:none;z-index:4}
#app .nm-replay-points{font-size:clamp(12px,3.6vw,17px);font-weight:850;z-index:6;color:#fff1b8;text-shadow:0 2px 4px #101a2c,0 0 5px #101a2c}
#app .nm-tile{background:linear-gradient(155deg,var(--face),var(--shade));box-shadow:inset 0 1px 0 #ffffff70,inset 0 -3px 0 #00000025,0 2px 2px #0004}
#app .nm-v128{--face:#c4a54e;--shade:#876627}#app .nm-v256{--face:#748bdc;--shade:#4854a1}#app .nm-v512{--face:#c18bd2;--shade:#874e9a}#app .nm-v1024,#app .nm-v2048{--face:#62bea6;--shade:#287d70}
@media(max-width:360px){#app .nm-tip span{display:none}#app .nm-next-area{gap:6px}#app .nm-tile.nm-queued{width:23px;height:23px}#app .nm-tile.nm-preview{width:34px;height:34px}}

/* Three-lane Number Merge: larger tiles without excessive board height. */
#app .nm-board-wrap.nm-three{max-width:340px;margin-inline:auto;width:100%}
#app .nm-three .nm-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#app .nm-three .nm-cells{grid-template-rows:repeat(6,minmax(0,1fr));gap:5px}
#app .nm-three .nm-slot{aspect-ratio:1/.65}
#app .nm-three .nm-slot .nm-tile b{font-size:clamp(18px,6vw,26px)}
#app .nm-three .nm-col-top{height:19px}
@media(max-width:360px){#app .nm-three .nm-slot{aspect-ratio:1/.72}}

/* Compact chat reactions: avoid oversized message bubbles on mobile. */
#closer-chat .closer-chat-row .closer-chat-bubble.closer-chat-gif-message,
#closer-chat .closer-chat-bubble:has(.closer-chat-gif-image){min-width:0;max-width:min(75%,190px);width:max-content;padding:7px 9px 8px}
#closer-chat .closer-chat-gif-body{margin:1px 0 0;justify-content:flex-start}
#closer-chat .closer-chat-gif-body .closer-chat-gif-image{display:block;width:88px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain}
#closer-chat .closer-chat-gif-message .closer-chat-meta{margin-bottom:3px;overflow-wrap:anywhere}
#closer-chat .closer-gif-tile img{width:min(58px,100%);height:54px}
#closer-chat .closer-gif-picker{gap:6px;padding:8px 10px}
#closer-chat .closer-gif-grid{gap:6px}
@media(max-width:360px){#closer-chat .closer-chat-gif-body .closer-chat-gif-image{width:76px}#closer-chat .closer-gif-tile img{height:48px}}

/* Chat composer v2: three explicit tracks, never a wrapped Send button. */
#closer-chat #closer-chat-sheet{box-sizing:border-box;overflow:hidden}
#closer-chat .closer-chat-log-wrap{position:relative;display:flex;flex-direction:column;flex:1 1 0;min-height:0;min-width:0;overflow:hidden}
#closer-chat .closer-chat-log-wrap #closer-chat-log{flex:1 1 0;min-height:0;max-height:none;width:100%;box-sizing:border-box}
#closer-chat .closer-chat-log-wrap #closer-chat-latest:not([hidden]){position:absolute;bottom:8px;left:50%;transform:translateX(-50%);margin:0;white-space:nowrap;font-size:11px;min-height:30px;padding:5px 10px;z-index:2}
#closer-chat #closer-chat-sheet .closer-chat-compose{display:grid!important;grid-template-columns:40px minmax(0,1fr) 58px!important;grid-auto-rows:auto;align-items:end!important;gap:6px!important;padding:7px 8px!important;flex:0 0 auto!important;min-width:0;width:100%;box-sizing:border-box}
#closer-chat #closer-chat-sheet .closer-chat-compose:not(:has(.closer-gif-button)){grid-template-columns:minmax(0,1fr) 58px!important}
#closer-chat #closer-chat-sheet .closer-chat-compose>.closer-gif-button{grid-column:1;grid-row:1;box-sizing:border-box;width:40px!important;min-width:0!important;max-width:40px;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;font-size:11px!important;flex:none;align-self:end}
#closer-chat #closer-chat-sheet .closer-chat-compose>#closer-chat-input{grid-column:2;grid-row:1;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;min-height:44px!important;max-height:92px!important;padding:10px 9px!important;line-height:20px!important;font-size:16px!important;margin:0!important;overflow-y:auto;resize:none;align-self:end}
#closer-chat #closer-chat-sheet .closer-chat-compose>#closer-chat-send{grid-column:3;grid-row:1;box-sizing:border-box;width:58px!important;max-width:58px;min-width:0!important;height:44px!important;min-height:44px!important;padding:0 3px!important;margin:0!important;font-size:12px!important;white-space:normal;line-height:1.1;align-self:end}
#closer-chat #closer-chat-sheet .closer-chat-compose:not(:has(.closer-gif-button))>#closer-chat-input{grid-column:1}
#closer-chat #closer-chat-sheet .closer-chat-compose:not(:has(.closer-gif-button))>#closer-chat-send{grid-column:2}
#closer-chat .closer-gif-picker{flex:0 1 auto;min-height:0;max-height:min(245px,34dvh)}
#closer-chat .closer-chat-gif-body .closer-chat-gif-image{width:76px;height:76px;max-width:100%;object-fit:contain}
#closer-chat .closer-chat-gif-message{padding:6px 8px!important}
#closer-chat.closer-chat-keyboard-open .closer-gif-picker{max-height:calc(var(--closer-chat-usable-height,100dvh)*.36)}
#closer-chat.closer-chat-keyboard-open #closer-chat-sheet .closer-chat-header{flex-shrink:0}
#closer-chat #closer-chat-sheet .closer-chat-compose:focus-within #closer-chat-input{outline-offset:0}
@media(max-width:340px){#closer-chat #closer-chat-sheet .closer-chat-compose{grid-template-columns:36px minmax(0,1fr) 52px!important;gap:4px!important}#closer-chat #closer-chat-sheet .closer-chat-compose>.closer-gif-button{width:36px!important}#closer-chat #closer-chat-sheet .closer-chat-compose>#closer-chat-send{width:52px!important}}

/* Partner chat: pure pink. */
#closer-chat .closer-chat-row.theirs .closer-chat-bubble{background:#ffc0cb;color:#301e26;border:1px solid #f7d3da;box-shadow:none}
#closer-chat .closer-chat-row.theirs .closer-chat-bubble p{color:#301e26}
#closer-chat .closer-chat-row.theirs .closer-chat-meta{color:#873e53}
#closer-chat .closer-chat-row.theirs .closer-chat-quote{background:#f2aebd;border-color:#c97c96;color:#301e26}
#closer-chat .closer-chat-row.theirs .closer-chat-quote small{color:#6f3c4e}
#closer-chat .closer-chat-row.theirs .closer-chat-quote span{color:#301e26}
#closer-chat .closer-chat-row.theirs .closer-chat-reply-btn{color:#ffc0cb;border-color:#c97c96}

/* Own chat: pure black and a quiet silver-grey edge. */
#closer-chat .closer-chat-row.mine .closer-chat-bubble{background:#000000;color:#ffc0cb;border:1px solid #60636f;box-shadow:none}
#closer-chat .closer-chat-row.mine .closer-chat-bubble p{color:#ffc0cb}
#closer-chat .closer-chat-row.mine .closer-chat-meta{color:#ffc0cb}
#closer-chat .closer-chat-row.mine .closer-chat-quote{background:#18181c;border-color:#777c89;color:#ffc0cb}
#closer-chat .closer-chat-row.mine .closer-chat-quote small{color:#ffc0cb}
#closer-chat .closer-chat-row.mine .closer-chat-quote span{color:#ffc0cb}
#closer-chat .closer-chat-row.mine .closer-chat-reply-btn{color:#b9beca;border-color:#60636f}

/* Double Meaning: pure black and pure pink. */
#app .dm14-game .dm14-clue:first-child:not(.locked){background:#000000;border:1px solid #60636f;box-shadow:inset 3px 0 0 #9296a3}
#app .dm14-game .dm14-clue:first-child:not(.locked) span{background:#232328;color:#ffc0cb}
#app .dm14-game .dm14-clue:first-child:not(.locked) p{color:#ffc0cb}
#app .dm14-game .dm14-clue.meaning-two:not(.locked){background:#ffc0cb;border:1px solid #f7d3da;box-shadow:inset 3px 0 0 #d98ca7}
#app .dm14-game .dm14-clue.meaning-two:not(.locked)::after{display:none}
#app .dm14-game .dm14-clue.meaning-two:not(.locked) span{background:#f2aebd;color:#6f3c4e}
#app .dm14-game .dm14-clue.meaning-two:not(.locked) p{color:#301e26}
