:root{color-scheme:dark;--bg:#14232f;--panel:#263c49;--ink:#fff1d9;--muted:#b9c7ce;--gold:#ffc66d;--mint:#8ce3cb;--chrome-gap:0px;font-family:ui-rounded,system-ui,-apple-system,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at top,#374357,var(--bg) 60%);color:var(--ink);overflow-x:hidden;min-height:100svh}
main{width:min(100%,460px);margin:auto;overflow-anchor:none}
header{display:flex;align-items:center;justify-content:space-between;padding:0 3px 6px}
h1{font-size:28px;letter-spacing:-1.4px;margin:0;font-weight:900}
h1 span{color:var(--gold)}
sup{font-size:9px;letter-spacing:0;margin-left:4px;color:var(--muted)}
.eyebrow{font-size:8px;letter-spacing:1.3px;margin:0 0 3px}
.mini-stats{display:grid;text-align:right;gap:2px}
.mini-stats b{font-size:20px;color:#b5c3ff}
.mini-stats span{font-size:11px;color:var(--muted)}
button,input,select{font:inherit}
button{border:1px solid #677b88;border-radius:8px;background:#344b58;color:var(--ink);min-height:44px;padding:6px 9px;font-size:13px;font-weight:700;cursor:pointer;touch-action:manipulation}
button:disabled{opacity:.38;cursor:default}
button[aria-pressed=true]{outline:2px solid var(--gold);outline-offset:-2px;background:#56606a}
button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.primary{background:var(--mint);color:#122f38;border-color:var(--mint)}
[hidden]{display:none!important}
.score-row{display:flex;justify-content:space-between;align-items:center;padding:3px 3px 6px;font-size:11px}
.score-row strong{font-size:23px;color:var(--gold)}
.score-row small{font-size:8px;letter-spacing:.4px}
.score-row #game-label{color:var(--muted)}
.wall-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1px;color:var(--muted);padding:4px 3px 6px}
#wall{position:relative;width:100%;aspect-ratio:1;border:1px solid #96a8b2;border-radius:6px;isolation:isolate;background:#233c4c;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 8px 22px #0004;overflow:visible}
#cells{position:absolute;inset:0;display:grid;grid-template-columns:repeat(8,1fr)}
.cell{padding:0;min-height:0;width:100%;height:100%;border-radius:1px;border:1px solid #7894a055;background:linear-gradient(140deg,#3e566b,#294253);font-size:clamp(20px,6vw,29px);font-weight:750;color:#f9edd7;touch-action:none;z-index:1}
.cell.inner{opacity:0;pointer-events:none}
.cell.target{outline:3px solid #ffb4d4;outline-offset:-4px;z-index:4}
.cell.ghosted{color:transparent}
.cell.track:not(.inner){box-shadow:inset 0 0 0 1px #d7dbff66}
#mounted{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none}
#wall.detent{box-shadow:0 0 0 2px var(--mint),0 10px 24px #0005}
#motion{position:absolute;z-index:5;pointer-events:none;overflow:hidden;display:none}
#motion.active{display:block}
#motion .belt-strip{position:absolute;inset:0;will-change:transform}
.moving-letter{position:absolute;display:grid;place-items:center;background:#4b637a;border:1px solid #93acb5;color:#fff2db;font-size:26px;font-weight:750}
#feedback{height:42px;line-height:1.3;overflow-y:auto;overflow-anchor:none;font-size:12px;color:#e2e8f1;margin:8px 3px 5px}
#feedback.error{color:#ffbda7}
.word-rail{display:flex;gap:5px}
#words{display:flex;gap:5px;overflow-x:auto;flex:1;min-width:0;scrollbar-width:thin}
#words button{flex-shrink:0;white-space:nowrap;max-width:95%;overflow:hidden;text-overflow:ellipsis;border-color:var(--word-color);font-size:12px}
#words button.draft{background:repeating-linear-gradient(135deg,#344b58,#344b58 6px,#3e5260 6px,#3e5260 9px);border-style:dashed}
#words button.frozen{box-shadow:inset 0 -3px var(--word-color)}
#words button[aria-pressed=true]{outline:2px solid white;outline-offset:-3px}
.word-actions{display:grid;grid-template-columns:1fr 48px 92px;gap:5px;margin:6px 0 7px}
#freeze{overflow-wrap:anywhere;padding:5px;font-size:14px}
#backspace{font-size:23px;padding:0}
.tray-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.tray-header button{font-size:11px;min-height:32px;border:0;background:none;padding:0 3px}
.tray-header span{font-size:10px;color:var(--muted)}
#credits{display:grid;grid-template-columns:repeat(8,1fr);gap:1px}
#credits button{padding:0;font-size:20px;color:#1a2e38;background:#c3dcf8;border-color:#768fa7;min-height:44px}
#credits button.flexible{background:#f2b9d7}
#credits button.used{background:#1b303e;color:#7b91a0;border-style:dashed;font-size:10px;opacity:1}
#target-label{font-size:10px;color:var(--muted);margin:4px 3px 8px;min-height:15px}
#alphabet{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}
#picker,#finish-confirm,#new-game-panel{background:#34475d;padding:10px;border:1px solid var(--gold);border-radius:8px;margin:8px 0;font-size:13px}
#picker p,#finish-confirm p{margin:2px 0 8px}
.finish-row{display:flex;align-items:center;justify-content:space-between;margin-top:4px}
.finish-row #finish{background:#7064ac;border-color:#aca1da}
.finish-row span{font-size:9px;color:var(--muted)}
#theme{padding:4px 8px;background:#35475a;border-radius:6px;display:grid;grid-template-columns:1fr auto;gap:3px;font-size:11px;margin-bottom:3px}
#theme-bar{grid-column:1/3;width:100%;height:5px;accent-color:var(--mint)}
#theme-words{grid-column:1/3;font-size:9px;letter-spacing:.8px}
details{background:#203643;border:1px solid #486272;border-radius:7px;margin:8px 0;padding:0 8px 8px}
summary{cursor:pointer;min-height:44px;padding:12px 0 5px;font-size:12px;font-weight:650}
details p{font-size:12px;color:var(--muted);line-height:1.5}
details button{margin:3px 0}
#scene{height:330px;width:100%;background:radial-gradient(ellipse,#2c4553,#142533);border-radius:7px;overflow:hidden;touch-action:none}
#wire{width:100%;height:100%;touch-action:none}
.arrows{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
.arrows button{font-size:24px}
.control-mode{display:flex;gap:5px}
#accessible-face{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
#accessible-face button{font-size:20px}
.tuning{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
label{display:block;font-size:11px}
input,select{font-size:16px;min-height:44px;background:#2c4455;color:var(--ink);border:1px solid #7d919a;border-radius:5px;max-width:100%}
input[type=number]{width:100%}
#zoom{width:60%;vertical-align:middle}
#events{font-size:10px;white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto}
#runs button{display:block;width:100%;text-align:left;font-size:11px}
#finished{margin:10px 0;padding:12px;border:1px solid var(--mint);border-radius:10px;background:#263d4b}
#finished h2{font-size:12px;letter-spacing:1px}
#final-total{font-size:34px;color:var(--gold)}
#finished p,#final-words{font-size:12px;line-height:1.6}
#face-map{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.face-map{display:grid;grid-template-columns:repeat(4,1fr);gap:1px}
.face-map b{grid-column:1/5}
.map-cell{height:22px;text-align:center;border:1px solid #627a89}
.map-cell.covered{background:var(--word-color);color:#142c38}
footer{text-align:center;font-size:8px;letter-spacing:1px;color:var(--muted);padding:14px 0}
a{color:var(--gold)}
@media(max-width:360px){#credits{grid-template-columns:repeat(4,1fr);gap:3px}h1{font-size:25px}.word-actions{grid-template-columns:1fr 44px 80px}}
@media(forced-colors:active){button[aria-pressed=true]{outline:3px solid Highlight}.draft{border-style:dashed!important}.frozen{border-style:double!important}#words button{forced-color-adjust:auto}#wall{outline:1px solid CanvasText}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.tray-header button{min-height:44px}
header{padding-bottom:0;min-height:36px}
h1{font-size:26px}
.score-row{padding:0 3px 2px;min-height:23px}
.score-row strong{font-size:19px}
.wall-caption{padding:2px 3px 4px;font-size:8px}
#theme{grid-template-columns:1fr auto;margin:2px 0;padding:3px 6px}
#theme-words{font-size:9px}
#feedback{height:auto;min-height:18px;max-height:none;overflow:visible;margin:5px 3px 4px;font-size:11px;line-height:1.3}
.word-rail{gap:4px}
#words{gap:4px}
#words button{font-size:11px;max-width:none}
.word-actions{grid-template-columns:1fr 1fr;margin:4px 0;gap:5px}
#freeze{font-size:14px;overflow-wrap:normal}
#clear-draft{font-size:13px}
.tray-header{margin:0 0 3px;min-height:27px}
.tray-header button{min-height:27px}
.tray-header span{font-size:10px}
#target-label{min-height:0;margin:4px 3px;font-size:11px}
.finish-row{flex-wrap:wrap;gap:6px}
.finish-row #finish{min-width:132px}
details{margin:5px 0;padding-bottom:4px}
details:not([open]){padding-bottom:0}
summary{padding:11px 0;font-size:11px}
#scene{height:300px}
#finished{margin-top:8px}
.word-rail,#credits,.word-actions{overflow-anchor:none}
#board-foot{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:4px 0}
.mode-toggle{width:88px;flex:0 0 88px;font-size:10px;min-height:44px;padding:3px 5px;border-color:#b6a078;background:#294457}
.mode-toggle[aria-pressed=true]{background:#325b62;color:#d2fff1;border-color:#8ce3cb}
#board-foot #feedback{flex:1;min-width:0;text-align:center;margin:0;font-size:10px;line-height:1.2}
#credit-line{display:flex;gap:5px;align-items:center;justify-content:space-between;font-size:10px;color:var(--muted);min-height:20px;margin:3px 2px 5px}
#credit-line button{min-height:44px}
#credits{margin:0}
#credits button[aria-pressed=true]{outline:3px solid #ffca70;outline-offset:-3px;filter:brightness(1.13)}
#words button.ghost{border-style:dashed;color:#d5c7e5;background:#283848}
.layer-controls{display:grid;grid-template-columns:1fr 1fr 48px 48px;gap:5px;align-items:end}
.layer-controls button{font-size:21px}
#reservoir-cells{display:grid;grid-template-columns:repeat(8,1fr);gap:3px}
#reservoir-cells span{display:grid;place-items:center;min-height:32px;background:#304c5d;border:1px solid #67869b;border-radius:3px;font-size:16px}
#unfolded{display:flex;overflow-x:auto;gap:3px;padding:5px 0;max-width:100%}
#unfolded span{flex:0 0 30px;display:grid;place-items:center;min-height:35px;background:#f2dfb7;color:#162c3b;border-radius:3px;font-weight:800}
.cell{position:relative}
.cell .glyph{pointer-events:none}
.tile-points{position:absolute;right:3px;bottom:1px;font-size:8px;line-height:1;color:#cfdae3;pointer-events:none}
#lab input[type=checkbox]{min-height:24px;vertical-align:middle}
#letter-values{font-size:13px;line-height:1.9;word-spacing:3px}
.word-rail{margin-top:3px}
@media(max-width:374px){.tile-points{display:none}.mode-toggle{width:76px;flex-basis:76px;font-size:10px}#board-foot #feedback{font-size:9px}}
#cells{opacity:0;pointer-events:none}
#motion{display:none!important}
#mounted{inset:0;width:100%;height:100%;pointer-events:none}
#wall{isolation:isolate}
.top-actions{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:4px;margin:3px 0}
.top-actions button{padding:3px;font-size:12px;min-height:44px}
.top-actions button[aria-pressed=true]{background:#45646c;color:#fff1d9}
#credits button.used{font-size:20px;background:#273b48;color:#bfd0da;opacity:.48;border-style:dashed}
#credits button.used::after{content:'·';font-size:9px;margin-left:2px}
#lip-buttons,#accessible-outer{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}
#lip-buttons button{font-size:10px}
#accessible-outer button{font-size:13px}
#new-game-panel{margin-top:4px}
#new-game-panel button{margin:3px 4px 3px 0}
#runs button{min-height:44px}
#credits button[aria-pressed=false]{outline:none;filter:none}
#credits button[aria-pressed=false]:focus-visible{outline:3px solid #ffca70}
#board-foot #feedback{overflow-wrap:anywhere}
button{touch-action:manipulation}
#lock-words{flex:1;min-width:0;min-height:44px;padding:4px;font-size:12px;font-weight:700;white-space:nowrap}
#lock-words[aria-pressed="true"]{background:#314c4b;border-color:#e4b76f;color:#ffe1a2}
#feedback{margin:3px 0 5px;min-height:18px;line-height:1.35;overflow-wrap:anywhere}
#wall.locked-preview{outline:2px solid #ff9975;outline-offset:2px}
header{height:32px;min-height:32px;padding:0 3px 2px}
h1{font-size:24px;letter-spacing:-1px}
.mini-stats{gap:0;line-height:1.1}
.mini-stats div{display:flex;gap:8px;align-items:center}
.mini-stats strong{font-size:18px;color:var(--gold)}
.mini-stats b{font-size:13px}
.mini-stats span{font-size:10px}
.top-actions{grid-template-columns:1.25fr 1fr 1fr .85fr;gap:3px;margin:1px 0 3px}
.top-actions button{height:44px;min-height:44px}
#credits{margin:3px 0 0}
.feedback-line{display:flex;align-items:center;gap:4px;min-height:20px;margin:1px 0}
#feedback{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:16px;line-height:18px;font-size:10px;margin:0}
#cancel-credit{font-size:10px;padding:2px 5px;flex:0 0 auto}
#board-foot{margin:2px 0 3px;gap:3px}
.mode-toggle{height:44px}
#lock-words{font-size:11px}
.word-rail{margin:0;min-height:44px}
#words button.draft[aria-pressed=true]{background:#294f5e;color:#d0f6ff;border:2px solid #79cddc;outline-color:#79cddc}
#words button[aria-pressed=true]{font-weight:800}
.word-actions{grid-template-columns:1fr 1fr 44px;gap:4px;margin:3px 0 0}
#menu{margin:8px 0 0;scroll-margin-top:4px}
.menu-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.menu-utilities{display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted)}
#menu details{margin:5px 0}
.word-actions:has(#cancel-credit:not([hidden])){grid-template-columns:1fr 1fr 44px 60px}
@media(max-width:374px){h1{font-size:23px}.mode-toggle{flex-basis:76px}#lock-words{font-size:11px}}
@media(forced-colors:active){#words button[aria-pressed=true]{outline:3px solid Highlight}}
#words{position:relative}
header{height:32px;min-height:32px}
.brand{min-width:0}
h1{font-size:21px;line-height:21px}
.brand small{display:block;font-size:8px;line-height:9px;white-space:nowrap;color:var(--muted)}
.mini-stats strong{font-size:16px}
.mini-stats div{gap:5px}
.mini-stats b{font-size:11px}
#board-foot{display:grid;grid-template-columns:minmax(44px,1fr) minmax(82px,1.25fr) minmax(62px,.85fr) minmax(44px,1fr);gap:3px}
.mode-toggle{width:auto;min-width:44px;flex:auto;padding:3px;font-size:10px}
#lock-words{min-width:82px;padding:3px;font-size:10px}
#hint{min-width:62px;padding:3px;font-size:11px;height:44px}
#hint:disabled{background:#1d303c;border-style:dashed}
#theme{flex:0 0 auto;align-self:stretch;min-height:44px;max-width:270px;margin:0;padding:3px 6px;border:1px solid #be955e;background:#314452;grid-template-columns:auto auto;gap:0 5px}
#theme-name,#theme-progress{font-size:9px;line-height:14px}
#theme-words{font-size:10px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:258px}
#theme-bar{display:none}
#words button small{display:block;font-size:9px;line-height:12px;font-weight:500}
#words button.frozen{background:var(--word-color);border-color:var(--word-color);border-width:2px;color:#152d39;box-shadow:none}
#words button.frozen[aria-pressed=true]{outline-color:#fff;outline-offset:-4px}
#words button.ghost{background:#283848;border-style:dashed;color:#e1d5ec}
#words button[aria-pressed=true]{scroll-margin-inline:3px}
#focus-back{font-size:11px}
#focus-next{font-size:24px;padding:0;width:44px}
#wall.view-focus{outline:2px solid var(--gold);outline-offset:1px}
#legacy-notice{padding:6px;border:1px solid var(--gold);font-size:12px}
#version{color:#c5d0d8}
@media(max-width:374px){.mode-toggle{width:auto;flex-basis:auto}.mini-stats strong{font-size:15px}#theme{max-width:245px}#theme-words{max-width:232px}}
#menu p,#finished p,#build,#table-source,#score-source{overflow-wrap:anywhere;word-break:break-word;min-width:0}
#menu,#settings,#finished{min-width:0;max-width:100%}
#score{background:transparent;border:0;color:var(--gold);font-size:18px;font-weight:850;padding:0 2px;min-height:44px;line-height:1.1}
.mini-stats>div{display:flex;align-items:center;gap:3px}
.mini-stats b{font-size:16px}
.mini-stats{gap:0}
.brand #version{font-size:10px}
.working-strip,.word-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px;gap:5px}
.working-strip button{min-width:0;padding:4px;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.working-strip #theme{display:block;margin:0;border:1px solid #9a8057;border-radius:8px;background:#3b4651;font-size:11px}
.working-strip #current-draft{border-color:#79cddc;color:#d2faff;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px}
.working-strip #current-draft span{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.working-strip small{display:block;font-size:9px;font-weight:500}
.word-actions{margin:5px 0 0}
.word-actions #clear-draft{width:auto}
.view-tools{display:flex;gap:5px;flex-wrap:wrap;margin:0}
.view-tools:has(button:not([hidden])){margin-top:5px}
.play-panel{border:1px solid #769293;border-radius:8px;background:#203642;padding:8px;margin:8px 0;overflow-wrap:anywhere;font-size:12px}
.panel-title{display:flex;gap:6px;align-items:center;justify-content:space-between}
.panel-title button{font-size:11px}
.play-panel p{line-height:1.45}
.play-panel #words{display:flex;flex-direction:column;max-height:280px;overflow-y:auto;overflow-x:hidden}
.play-panel #words button{white-space:normal;max-width:none;min-height:44px;text-align:left;border-left:6px solid var(--word-color);background:#2b424e;color:var(--ink);box-shadow:none}
.play-panel #words .fractured,.play-panel #words .ready{border-style:dashed;opacity:.8}
#theme-words p{font-size:13px;margin:7px 0}
#theme-bar{width:100%;height:7px}
#hint-result{padding:8px;border-left:3px solid var(--gold);color:#ffe6b1;background:#473f30}
#board-foot{grid-template-columns:1fr 1.24fr .92fr 1fr}
#lock-words{display:flex;align-items:center;justify-content:center;gap:4px;font-size:10px;padding:4px}
#lock-words svg{width:25px;height:29px;fill:none;stroke:currentColor;stroke-width:2.5;flex-shrink:0}
#hint{font-size:11px;padding:3px}
#request-finish,#finish-yes{background:#b6a1e3;color:#1d2036}
#score-panel p{font-size:12px}
.map-cell.covered{background:#a3c5bd!important;color:#132c36}
.view-focus #mounted{outline:2px dotted var(--gold);outline-offset:-3px}
@media(forced-colors:active){.working-strip #current-draft{border:3px dashed Highlight}.play-panel #words .claim{border:3px double CanvasText}button[aria-pressed=true]{outline:3px solid Highlight}}
header{height:44px;min-height:44px;padding:0 3px}
.mini-stats{display:flex;align-items:center;gap:3px;height:44px}
.mini-stats>div{display:grid;gap:2px;align-items:center}
.mini-stats #score{font-size:17px}
.mini-stats b{font-size:12px}
.mini-stats span{font-size:9px}
.top-actions{margin:0}
.feedback-line{min-height:18px;margin:0}
#board-foot{margin:1px 0 2px}
.word-actions{margin-top:3px}
#theme-words{white-space:normal;max-width:none;overflow:visible;font-size:13px}
#theme-bar{display:block}
#credits{margin-top:0}
main{position:relative}
.top-actions{gap:2px}
.top-actions button{position:relative;background:transparent;border:0;border-radius:0;isolation:isolate;font-size:11px}
.top-actions button::before{content:'';position:absolute;inset:7px 0;background:#344b58;border:1px solid #677b88;border-radius:6px;z-index:-1}
.top-actions button[aria-pressed=true]{background:transparent;outline:none}
.top-actions button[aria-pressed=true]::before{background:#45646c;border-color:#ffc66d}
.top-actions button:focus-visible{outline:3px solid var(--gold);outline-offset:-2px}
.feedback-line{min-height:14px}
#feedback{min-height:14px;line-height:14px}
#board-foot{margin:0;gap:2px}
.word-actions{margin:0}
.working-strip,.word-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 78px;gap:4px}
.working-strip button{height:44px;line-height:1.1}
.working-strip small{font-size:8px}
.working-strip #current-draft{gap:1px}
.working-strip #current-draft span{font-size:11px}
#frozen-rail{display:flex;align-items:stretch;gap:4px;height:44px;min-width:0}
#rail-home{flex:0 0 48px;min-width:44px;font-size:10px;padding:2px;background:#62543e;border-color:#ffc66d}
#words{flex-direction:row;height:44px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;touch-action:pan-x pan-y;overscroll-behavior-x:contain;scrollbar-width:thin;gap:4px}
#words button.claim{flex:0 0 auto;height:44px;max-width:240px;padding:2px 9px;scroll-snap-align:start;white-space:nowrap;border-left:6px solid var(--word-color);background:#263d49;color:var(--ink);font-size:11px}
#words button.active{background:var(--word-color);color:#142d38}
#words button.fractured,#words button.ready{border-style:dashed}
#claim-options{flex:0 0 44px;padding:0;font-size:24px}
#compact-viewer{position:absolute;bottom:5px;left:5px;right:5px;z-index:10;display:grid;grid-template-columns:minmax(0,1fr) 48px 48px;gap:3px;background:#152d39f2;border:1px solid #ffc66d;border-radius:6px;padding:2px;box-shadow:0 2px 10px #0006}
#focus-label{font-size:10px;display:flex;align-items:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#compact-viewer button{height:44px;font-size:11px;width:auto;padding:2px}
.view-focus #mounted{outline:none}
#frozen-panel,#hint-panel{position:fixed;z-index:25;width:min(94vw,430px);left:50%;transform:translateX(-50%);bottom:calc(78px + env(safe-area-inset-bottom,0px));max-height:230px;overflow:auto;background:#203642fa;border:1px solid #ffc66d;border-radius:9px;padding:8px;margin:0;box-shadow:0 6px 30px #0008;font-size:12px}
#hint-history{max-height:112px;overflow-y:auto;display:flex;flex-wrap:wrap;gap:4px}
#hint-history button{font-size:12px}
#hint-allowance{margin:5px 0 0;font-size:11px}
#hint{font-size:10px}
#claim-detail{margin:5px 0;font-size:12px}
.play-panel .panel-title button{font-size:11px}
#difficulty-panel{padding:8px;border:1px solid #8a9caa;border-radius:7px;margin:5px 0;font-size:12px}
#difficulty-panel label{margin-top:5px}
#difficulty-panel select{margin-left:6px}
#difficulty-panel p{line-height:1.4}
#word-events{max-height:220px;overflow:auto}
#word-events p{font-size:11px;margin:4px 0}
@media(forced-colors:active){.top-actions button::before{border-color:ButtonText}#words button.claim{border:3px double CanvasText}#words button[aria-pressed=true]{outline:3px solid Highlight}}
#menu{position:fixed;inset:10px 8px auto auto;margin:0;width:min(540px,calc(100vw - 16px));max-height:calc(100dvh - 20px);box-sizing:border-box;padding:14px;border:1px solid #877b68;border-radius:20px;background:#f1e8d8;color:var(--ink);box-shadow:0 16px 60px #0007;transform-origin:top right;overflow:hidden;font-size:14px;z-index:100}
#menu[open]{display:flex;flex-direction:column;animation:menu-grow .18s ease-out}
#menu:not([open]){display:none}
#menu::backdrop{background:#13202b88}
#menu button,#menu select{background:#fff8ed;color:var(--ink);border:1px solid #a9997b}
#menu .primary,#menu [aria-selected=true]{background:#304e54;color:#fff}
#menu .menu-head{display:flex;justify-content:space-between;align-items:center;flex:none}
#menu .menu-settings{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:8px 0}
#menu .menu-settings label{display:flex;align-items:center;gap:4px;font-size:12px}
#menu input[type=range]{width:70px}
#current-difficulty{display:block;width:100%;overflow-wrap:anywhere}
#menu [role=tablist]{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;flex:none}
#menu .menu-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;padding-top:10px}
#menu [role=tabpanel][hidden]{display:none}
#menu h2{font-size:24px;line-height:1.15;margin:8px 0}
#menu h3{font-size:15px;margin:0 0 4px}
#menu p{line-height:1.4;margin:7px 0}
#menu .eyebrow{font-size:11px;letter-spacing:.1em}
#menu .learn-step{display:grid;grid-template-columns:82px 1fr;gap:10px;align-items:center;border-bottom:1px solid #c7baa3;padding:6px 0}
#menu svg{width:82px;height:76px}
#menu details{background:var(--inset);border:1px solid #cbbca4;border-radius:10px;margin:8px 0;padding:8px}
#menu summary{font-weight:600}
#menu textarea{width:100%;min-height:150px;box-sizing:border-box}
#menu #build{font-size:10px;overflow-wrap:anywhere}
#menu #runs{display:grid;gap:6px}
#menu #runs button{text-align:left}
#menu-claims article{padding:8px;border-bottom:1px solid #b9ab92}
#save-status{display:block;font-size:10px;color:#c8dfcd;max-width:190px}
#save-status[data-error=true]{color:#ffbd95}
#share-output{padding:8px}
body.reduced-motion *{animation:none!important;scroll-behavior:auto!important}
#menu #diagnostics[hidden]{display:none}
@keyframes menu-grow{from{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){#menu[open]{animation:none}}
@media(max-width:340px){#menu{padding:10px}#menu .learn-step{grid-template-columns:68px 1fr;gap:7px}#menu svg{width:68px}#menu h2{font-size:21px}}
#freeze{white-space:nowrap;font-size:13px}
#current-draft small{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#menu-claims button{margin:2px 6px 2px 0}
.word-actions{grid-template-columns:repeat(3,minmax(0,1fr)) 48px;gap:4px}
.word-actions #thaw,.word-actions #clear-draft{font-size:14px}
.rail-shell{display:grid;grid-template-columns:clamp(76px,24vw,100px) clamp(92px,28vw,124px) minmax(0,1fr);gap:4px;height:44px;min-width:0}
.pinned-block{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;padding:3px 4px;height:44px;font-size:11px;line-height:16px;overflow:hidden}
.pinned-block>span,.pinned-block>small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:inherit}
.pinned-block>span{font-size:11px;font-weight:700}
.pinned-block>small{font-size:9px;font-weight:500;line-height:12px}
#current-draft{color:#bfeeff;background:#304956;border-color:#7fcbd5}
#word-rail{display:flex;overflow-x:auto;overflow-y:hidden;min-width:0;height:44px;touch-action:pan-x pan-y;overscroll-behavior-x:contain;scrollbar-width:none;overflow-anchor:none;border-radius:8px;box-shadow:inset -3px 0 #c9a86788}
#word-rail::-webkit-scrollbar{display:none}
#words{display:contents}
#words button{flex:0 0 auto;display:flex;align-items:center;gap:5px;min-height:44px;min-width:44px;padding:4px 8px;max-width:230px;font-size:11px;white-space:nowrap;border-left:4px solid var(--word-color);touch-action:pan-x pan-y}
.chip-text{overflow:hidden;text-overflow:ellipsis}
.chip-marks{color:#eac26b;font-size:14px;flex:none}
.fractured .chip-marks,.ready .chip-marks{opacity:.75}
.theme-claim.active{box-shadow:inset 0 -3px #d5ae57}
#words button[aria-pressed=true]{outline:2px solid #fff;outline-offset:-3px}
.word-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-top:3px}
.word-actions>button{min-width:44px;min-height:44px;padding:5px;font-size:14px;white-space:nowrap}
#menu .menu-settings label:has(#difficulty){display:none}
#theme,#current-draft{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;margin:0;padding:3px 4px;border-radius:8px;min-width:0;height:44px;line-height:16px}
#theme{border:1px solid #9a8057;background:#3b4651}
#theme>span,#current-draft>span{font-size:11px;font-weight:700}
#theme>small,#current-draft>small{font-size:9px;font-weight:500;line-height:12px}
:root{--bottom-gap:4px;--bottom-tracks:minmax(44px,1fr) minmax(82px,1.24fr) minmax(62px,.92fr) minmax(44px,1fr)}
#board-foot,.rail-shell{display:grid;grid-template-columns:var(--bottom-tracks);column-gap:4px;width:100%;margin:0;min-width:0}
.rail-shell{margin-top:var(--bottom-gap);height:auto;min-height:44px;align-items:stretch}
#word-rail{grid-column:3/5;gap:4px;scroll-snap-type:none}
#theme,#current-draft{width:100%;max-width:none;min-height:44px}
.word-actions{margin-top:var(--bottom-gap);margin-bottom:0}
.rail-tail{display:block;flex:0 0 0;pointer-events:none;height:1px;align-self:center}
#menu .menu-head{padding-bottom:8px}
#menu-status{flex:none;padding:7px 9px;border-radius:7px;background:#dce9de;border:1px solid #92ad95;font-size:13px}
#menu-status.error{background:#fae2d7;border-color:#b5816e}
#menu :is(#page-play,#page-words,#page-more){font-size:14px;line-height:1.4}
#menu .menu-card{background:#fff8ed;border:1px solid #c8bba3;border-radius:12px;padding:12px;margin:10px 0;min-width:0}
#menu .menu-card h3{font-size:17px;margin:0 0 6px}
#menu .menu-caption{font-size:12px;color:var(--muted)}
#menu .menu-button-row,#save-warning .menu-button-row{display:flex;gap:6px;flex-wrap:wrap}
#menu .menu-button-row button{flex:1 1 auto;margin:2px 0;min-height:44px}
#menu #saved-detail{font-size:12px;color:#425e4b}
#menu #saved-detail[data-error=true],#menu #store-errors{color:#7c3322}
#menu .saved-run{border:1px solid #cbbca4;border-radius:8px;padding:9px;background:#f1e8d8}
#menu .saved-run p{font-size:12px;margin:3px 0}
#menu .saved-run button{font-size:13px}
#menu .saved-run[aria-current=true]{border:2px solid #456b66}
#menu .rule-badge{font-size:11px;color:#5b4f3a}
#menu-claims article{border:1px solid #c8bba3;border-left:5px solid var(--word-color);border-radius:10px;margin:8px 0;padding:9px;background:#fff8ed}
#menu-claims .claim-summary{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
#menu-claims .claim-summary strong{font-size:18px}
#menu-claims .claim-state{font-size:12px;color:#445958}
#menu-claims .claim-actions{display:flex;flex-wrap:wrap;gap:5px}
#menu-claims .claim-actions button{margin:2px 0;font-size:12px}
#menu-claims details{margin-top:7px}
#menu-claims details p{color:var(--ink)}
#menu-claims .ordered-letters{letter-spacing:3px;font-weight:700}
#menu #word-events p{font-size:13px}
#menu :is(#page-play,#page-words,#page-more) label{font-size:13px;color:var(--ink);margin:7px 0}
#menu .preference-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#menu input{color:var(--ink);background:#fff8ed}
#menu input[type=range]{width:100%;accent-color:#304e54}
#menu .check-label{display:flex;align-items:center;gap:8px;min-height:44px}
#menu input[type=checkbox]{width:22px;min-height:22px;accent-color:#304e54}
#menu #lab p{color:#425556}
#menu #read-word{margin:8px 0}
#menu #read-word p{color:var(--ink)}
#menu #backspace{font-size:13px;padding:6px 9px}
#menu a{color:#234e60;display:inline-flex;align-items:center;min-height:44px}
#menu #technical{font-size:12px}
#save-warning{background:#f1e8d8;color:var(--ink);border:1px solid #a68c67;border-radius:16px;padding:18px;width:min(94vw,470px);max-height:90dvh;overflow:auto}
#save-warning h2{font-size:21px;margin-top:0}
#save-warning p{line-height:1.45;font-size:14px}
#save-warning button{background:#fff8ed;color:var(--ink);border-color:#a9997b;min-height:44px}
#save-warning .primary{background:#304e54;color:white}
#save-warning::backdrop{background:#13202baa}
@media(min-width:360px){#word-rail{min-width:0}}
@media(forced-colors:active){#menu .saved-run[aria-current=true]{outline:2px solid Highlight}}
#board-foot>button{height:auto;min-height:44px;white-space:normal}
#theme,#current-draft{height:auto;min-height:44px}
:root{--bottom-tracks:repeat(4,minmax(44px,1fr))}
header{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:5px;align-items:center;height:44px;min-height:44px}
.brand{overflow:hidden}
.brand h1{font-size:21px}
.brand #save-status{overflow:hidden;text-overflow:ellipsis}
.brand #version{font-size:12px;line-height:13px;font-weight:700;color:var(--gold)}
.mini-stats #score{font-size:16px}
.mini-stats>div{min-width:38px}
.mini-stats{min-width:0}
.speaker{display:inline-grid;place-items:center;padding:6px;width:44px;height:44px;min-width:44px;min-height:44px;color:var(--gold);background:#294457;border-color:#8b9a9e}
.speaker svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.speaker[data-muted=true]{color:#bcc7cd;background:#263a46}
#credits{margin-top:6px}
.rail-shell #current-draft{grid-column:1}
.rail-shell #word-rail{grid-column:2/5}
#board-foot #lock-words{min-width:44px;font-size:10px;padding:3px;gap:3px}
#lock-words svg{width:22px;height:26px}
#board-foot #theme{min-width:44px;min-height:44px;height:auto;display:flex;flex-direction:column;gap:2px;justify-content:center;margin:0;padding:3px;border-color:#a78e61;background:#3b4651}
.theme-label{display:flex;align-items:center;justify-content:center;gap:3px;max-width:100%;min-width:0;font-size:10px;line-height:15px}
.theme-label #theme-button-name{overflow:hidden;text-overflow:ellipsis;min-width:0}
#theme-icon{display:inline-flex;flex:none;width:18px;height:18px}
#theme-icon svg{width:100%;height:100%}
#theme-button-status{font-size:8px;line-height:10px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
#theme-panel.theme-popup{position:fixed;margin:0;padding:0;border:1px solid #d2ac6a;border-radius:14px;background:linear-gradient(150deg,#344b58,#203642);color:#fff0d7;max-width:none;max-height:80dvh;box-shadow:0 12px 35px #0009;overflow:hidden;flex-direction:column;transform:none;font-size:14px}
#theme-panel[open]{display:flex}
#theme-panel::backdrop{background:#0c1b264d}
.theme-popup .theme-popup-head{display:flex;flex:none;height:auto;min-height:60px;padding:8px 10px;gap:9px;background:#1b303ccc;border-bottom:1px solid #af966655}
.theme-popup h2{font-family:inherit;margin:0;min-width:0;flex:1;font-size:21px;overflow-wrap:anywhere}
.theme-popup #theme-large-icon{display:flex;flex:none;width:46px;height:46px}
.theme-popup #theme-large-icon svg{width:100%;height:100%}
.theme-popup #theme-close{flex:none;min-width:54px;min-height:44px;font-size:13px}
.theme-popup-body{padding:10px 14px 14px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable;line-height:1.45}
.theme-popup-body h3{font-size:15px;color:#ffce7e;letter-spacing:.3px;margin:16px 0 8px}
.theme-popup-body p{margin:6px 0 10px}
.theme-popup #theme-bar{width:100%;height:6px;accent-color:#98d9c3;margin:0 0 9px}
.hint-action{width:100%;background:#ffca70;color:#203642;font-size:16px;border-color:#ffda9c;min-height:44px}
.hint-action:disabled{opacity:1;background:#2e4149;color:#b5bdbb;border-style:dashed;border-color:#80918c}
.theme-popup #hint-allowance{font-size:12px;color:#d2d9d6;margin:6px 0 0}
.theme-collection{padding:0;margin:0;list-style:none}
.theme-collection li{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid #ffffff18;padding:8px 0}
.theme-collection strong{font-size:18px;font-weight:650}
.theme-collection .remembered strong{opacity:.64}
.theme-collection small{font-size:11px;color:#ccd5d1;text-align:right}
.theme-empty{font-size:13px;color:#d8dfd8}
.theme-popup #hint-history button{margin:4px}
#menu .sound-setting{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--ink)}
#menu .sound-setting .speaker{color:#274652;background:#fff7e7}
#hint-flourish{position:fixed;z-index:1000;pointer-events:none;transform:translate(-50%,-50%);max-width:96vw;filter:drop-shadow(0 4px 12px #000a)}
.reveal-word{display:flex;gap:1px;font-size:clamp(22px,7vw,36px);font-weight:800;letter-spacing:1px;color:#fff1cf;padding:14px 16px;background:#203642f5;border:1px solid #ffca70;border-radius:12px;animation:reveal-spin .65s cubic-bezier(.2,.6,.3,1) both}
.reveal-word span{display:inline-block}
#hint-flourish[data-stage=scatter] .reveal-word{background:transparent;border-color:transparent;animation:none}
#hint-flourish[data-stage=scatter] span{animation:reveal-scatter .6s ease-in forwards}
#hint-flourish.quiet .reveal-word{animation:none}
#hint-flourish.quiet{animation:reveal-quiet 1.6s ease-out both}
@keyframes reveal-spin{from{transform:scale(.7) rotate(-720deg)}to{transform:scale(1) rotate(0)}}
@keyframes reveal-scatter{to{transform:translate(var(--dx),var(--dy)) rotate(var(--turn));opacity:0}}
@keyframes reveal-quiet{0%,80%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.reveal-word,#hint-flourish span{animation:none!important}}
.reduced-motion .reveal-word,.reduced-motion #hint-flourish span{animation:none!important}
@media(forced-colors:active){.theme-collection .remembered strong{opacity:1}.remembered{border-style:dashed}}
#board-foot #theme>.theme-label{font-size:9px;line-height:14px}
#theme .theme-label>span[aria-hidden]{font-size:9px}
#theme .theme-label{gap:2px}
#theme-panel #theme-name{font-size:21px;line-height:1.15;font-weight:700}
#new-game-panel:not([open]){display:none}
#new-game-panel[open]{position:fixed;inset:auto;margin:0;box-sizing:border-box;display:flex;flex-direction:column;padding:0;border:1px solid #d3ac66;border-radius:16px;background:#243d4b;color:#fff0d3;overflow:hidden;box-shadow:0 14px 48px #0009}
#new-game-panel::backdrop{background:#0d1b26a8}
.chooser-head,.chooser-foot{flex:none;display:flex;gap:8px;align-items:center;padding:10px 12px;background:#20343f}
.chooser-head h2{margin:0;flex:1;font-size:1.1rem}
.chooser-head button{min-width:60px;min-height:44px}
.chooser-foot button{width:100%;min-height:48px}
.chooser-body{padding:4px 12px 12px;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:8px}
.chooser-body p{font-size:.86rem;line-height:1.3;margin:8px 0}
.chooser-body label{display:flex;align-items:center;justify-content:space-between;gap:8px}
.chooser-body select{min-height:44px}
#theme-choices{display:grid;gap:7px;margin-top:10px}
.theme-choice{display:grid;grid-template-columns:46px 1fr;gap:10px;align-items:center;width:100%;min-height:78px;padding:8px;text-align:left;background:#2e4956;border:2px solid #70858d;color:#fff0d3;border-radius:12px}
.theme-choice[aria-pressed=true]{border-color:#ffca70;background:#3d5359;box-shadow:inset 0 0 0 1px #ffca70}
.theme-choice strong{display:block;font-size:.96rem}
.theme-choice small{display:block;line-height:1.25;margin-top:4px;font-size:.8rem;font-weight:400}
.choice-art,.choice-art svg{display:block;width:46px;height:46px}
#chooser-status:empty{display:none}
#chooser-status{color:#ffd298}
#chooser-daily{width:100%;min-height:44px}
#restart-same{margin-top:10px;min-height:44px}
#restart-explanation:empty{display:none}
.game-header{height:39px;min-height:39px;position:relative;grid-template-columns:minmax(0,1fr) auto 48px}
.game-header .brand h1{line-height:24px;font-size:24px;letter-spacing:0;max-width:100%}
#qbist-wordmark-holder{display:block;color:inherit;max-width:100%;overflow:hidden}
#qbist-wordmark-holder img{display:block;width:auto;max-width:100%;height:auto;max-height:26px}
.game-header .brand #save-status{line-height:10px;font-size:9px;max-width:100%}
.game-header+.top-actions{margin-top:0}
#sound-toggle{position:relative;z-index:2;background:transparent;border:0;padding:9px 14px;width:48px;height:39px;min-height:39px;min-width:48px}
#sound-toggle::before{content:"";position:absolute;inset:4.5px 9px;border:1px solid currentColor;border-radius:8px;background:#294457;z-index:-1}
#sound-toggle svg{width:20px;height:20px}
#sound-toggle[aria-pressed=true]:not(:focus-visible){outline:none}
#sound-toggle[data-muted=true]::before{background:#263a46}
.build-footer{display:block;text-align:right;font-size:9px;line-height:13px;color:#b7c1c5;margin:3px 2px 0;letter-spacing:.1px}
#score-panel{max-height:var(--score-max-height,75dvh);overflow:hidden;scroll-margin-top:var(--score-scroll-top,8px);padding:10px;gap:8px}
#score-panel:not([hidden]){display:flex;flex-direction:column}
.score-heading,.score-primary{flex:none}
.score-heading h2{font-size:21px;line-height:1.2;margin:0}
.score-heading p{margin:4px 0 0;color:#ccd9dc}
.score-primary,.confirm-actions{display:flex;gap:8px;flex-wrap:wrap}
.score-primary button,.confirm-actions button{min-height:44px;flex:1 1 135px;font-size:13px}
#score-body{min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-padding:8px}
#score-components{font-size:12px;color:#cddcd7;margin:0 0 12px}
#score-panel #finish-confirm{flex:0 1 auto;min-height:0;margin:0;overflow:auto}
#finish-confirm .confirm-actions{position:sticky;bottom:0;background:#34475d;padding-top:6px}
.word-score{border-bottom:1px solid #78918966;padding:9px 0}
.word-score h3{font-size:17px;line-height:1.3;margin:0;color:#fff1d9}
.word-score p{margin:4px 0 0;font-size:12px;color:#cfddd7;line-height:1.45}
.precision-note{font-size:10px!important;color:#b9c7ce;line-height:1.4}
.letter-detail summary{font-size:12px}
.letter-detail p{line-height:1.5}
#finished .word-score h3{font-size:17px}
#finished>h2{font-size:16px}
.game-header>.mini-stats,.game-header>#sound-toggle{align-self:start}
.game-header .mini-stats{height:39px}
.game-header .mini-stats #score{height:39px;min-height:39px}
.feedback-line{height:32px;min-height:32px;align-items:center}
#feedback{height:30px;max-height:30px;min-height:30px;line-height:15px;font-size:12px;overflow:visible;white-space:normal;overflow-wrap:break-word}
#compact-viewer{max-width:100%;display:flex;gap:4px;align-items:center;padding:3px;background:#213b49f5;flex-wrap:wrap}
#compact-viewer[hidden]{display:none}
#focus-label{font-size:11px;flex:1;min-width:60px}
#compact-viewer button{font-size:11px;padding:4px 6px;min-height:36px}
#focus-back{color:#ffdf98}
#theme-button-status{font-size:10px!important}
#show-theme-words{width:100%;min-height:44px;background:#425d6b;border:1px solid #ffc66d;font-size:12px}
#checklist-notice,#theme-exact{font-size:11px;line-height:1.4}
#checklist-notice{color:#ffdf98}
.theme-checklist{list-style:none;padding:0;margin:8px 0}
.theme-checklist li{display:grid;grid-template-columns:22px 1fr auto;gap:5px;align-items:center;padding:8px 0;border-bottom:1px solid #81929866}
.theme-checklist strong{font-size:14px}
.theme-checklist small{font-size:10px}
.theme-checklist .active{color:#baf4df}
.theme-checklist .previous{color:#c3c9c8}
.theme-checklist .previous strong{opacity:.68}
#scoring-guide{padding:6px 0;font-size:12px}
#scoring-example p{line-height:1.5;font-size:12px}
.example-grid{width:max-content;display:grid;grid-template-columns:repeat(4,32px);grid-template-rows:repeat(4,32px);gap:2px;justify-content:center;margin:10px auto}
.example-cell{display:grid;place-items:center;background:#e7efea;color:#152d39;font-size:18px;font-weight:800;border-radius:3px}
.example-cell.shared{background:#85d8d2;outline:2px solid #ffc66d}
.example-word{line-height:1.5;border-top:1px solid #81929866;padding-top:8px}
#compact-viewer{display:none!important}
#front-view{min-height:30px;padding:2px 8px;font-size:11px;flex:none}
#front-view[hidden]{display:none}
.feedback-line{gap:6px}
#feedback em{font-style:italic;color:inherit}
.find-popup{position:fixed;box-sizing:border-box;margin:0;padding:10px;border:1px solid #a9b8ad;border-radius:14px;background:#263e4e;color:#f5ebd6;box-shadow:0 16px 60px #000a;overflow:hidden;max-height:calc(100dvh - 16px)}
.find-popup[open]{display:flex;flex-direction:column;gap:6px}
.find-popup::backdrop{background:#09151dcc}
.find-popup header{display:flex;gap:10px;align-items:center;flex:none}
.find-popup header small{font-size:9px;letter-spacing:1.3px;color:#e8c381}
.find-popup h2{font-size:20px;margin:0}
.find-popup #find-art{width:40px;height:40px;flex:none}
.find-popup #find-art svg{width:100%;height:100%}
#find-progress{margin:0;font-size:12px;flex:none}
.find-actions{display:flex;gap:8px;flex:none}
.find-actions button{min-height:44px;flex:1;font-size:14px}
.find-scroll{overflow:auto;min-height:0;overscroll-behavior:contain;padding:2px}
#find-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;aspect-ratio:1;touch-action:none;user-select:none;-webkit-user-select:none}
#find-grid button{padding:0;min-width:0;min-height:0;border-radius:3px;border:1px solid #758d92;color:#f4efdf;background:#314f60;font-size:clamp(16px,5vw,23px);font-weight:750;touch-action:none}
#find-grid [data-state=yellow]{background:#edc866;color:#203536}
#find-grid [data-state=green]{background:#8bd6ad;color:#193d32}
#find-grid [data-state=mixed]{background:linear-gradient(135deg,#8bd6ad 50%,#edc866 50%);color:#193d32}
#find-grid [data-selected=true]{outline:2px solid #fff;outline-offset:-3px;background:#4d8792;color:#fff}
#find-grid button:focus-visible{outline:3px solid white;outline-offset:-3px}
#find-selection{min-height:17px;margin:8px 0 0;font-size:12px}
.find-key{font-size:10px;margin:3px 0;color:#cbd7d1}
#find-collection{display:flex;gap:5px;flex-wrap:wrap}
#find-collection button{font-size:12px;min-height:36px;padding:5px 8px}
.origin-note{border:1px solid #ffca70;border-radius:8px;padding:10px;color:#fff1d9}
.word-score .q-core{font-weight:700}
#local-boards h4{margin-bottom:4px}
#local-boards ol{padding-left:20px}
.experience-panel{width:min(94vw,620px);max-height:calc(100dvh - 32px);padding:18px;background:#f3ecd9;color:#17363b;border:1px solid #827556;border-radius:16px;overflow:auto;overscroll-behavior:contain}
.experience-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-18px;background:#f3ecd9;z-index:2;padding:8px 0}
.experience-panel button{min-height:44px;margin:4px}
.experience-panel input:not([type=checkbox]),.experience-panel textarea,.experience-panel select{max-width:100%;font:inherit;padding:10px}
.experience-panel input:not([type=range]):not([type=checkbox]),.experience-panel textarea{display:block;width:100%;margin:8px 0}
.primary-mode{display:block;width:100%;text-align:left;padding:18px!important;background:#173f43;color:#fff1d9;font-size:18px}
.rolodex{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.jewel-card{display:flex;flex-direction:column;text-align:left;padding:8px;box-shadow:2px 4px 0 #b5a789;transform:rotate(-1deg)}
.jewel-card:nth-child(even){transform:rotate(1deg)}
.jewel-card img{width:100%}
.jewel-card small{line-height:1.5}
.jewel-preview{width:100%;max-height:50dvh;object-fit:contain}
.experience-notice{min-height:2em}
.audio-voices{display:flex;flex-wrap:wrap}
.glass-tools{display:flex;align-items:center;flex-wrap:wrap;gap:3px;font-size:12px}
.glass-tools[hidden]{display:none}
.glass-tools button{min-height:36px;padding:4px 7px;font-size:12px}
.glass-tools small{width:100%}
#memory-glass{position:absolute;width:88%;height:88%;left:6%;top:7%;transform-origin:0 0;transform:matrix(1,-.14,.06,1,0,-2);z-index:8;background:rgba(210,237,239,.08);border:1px solid rgba(100,165,170,.7);box-shadow:0 12px 18px #16373b33;touch-action:none;user-select:none;-webkit-user-select:none}
#memory-glass[hidden]{display:none}
.glass-grid{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);width:100%;height:100%}
.glass-grid button{min-width:0;min-height:0;padding:0!important;margin:0;border:0;border-radius:0;background:rgba(245,251,250,.15);color:#073a49;font-size:clamp(14px,5vw,22px);font-weight:800;text-shadow:0 1px 1px white,1px 0 1px white;box-shadow:none;line-height:1;touch-action:none}
.glass-grid button[data-state=yellow]{background:#e5c85ac9}
.glass-grid button[data-state=green]{background:#78b996c9}
.glass-grid button[data-selected=true]{outline:2px solid #173f43;outline-offset:-2px;background:#a1cad6bd}
#memory-glass[data-mode=move]{opacity:.62}
.glass-tools [aria-pressed=true]{background:#173f43;color:#f5efdf}
.game-header #save-status{display:block;font-size:9px;max-width:156px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#save-status[data-error=true]{color:#a52525}
#saved-games[hidden]{display:none}
@media(prefers-reduced-motion:reduce){#memory-glass{transition:none}}
@media(min-width:390px){.glass-grid button{font-size:22px}}
.glass-grid button[data-state=mixed]{background:linear-gradient(135deg,#78b996cf 50%,#e5c85acf 50%)}
.experience-panel summary{background:#304c59;color:#fff1d9}
.experience-panel input:not([type=checkbox]):not([type=range]),.experience-panel textarea{background:#fff8e9;color:#17363b;border:1px solid #83775d}
.experience-panel input::placeholder,.experience-panel textarea::placeholder{color:#5d6b67}
.experience-panel select{background:#304c59;color:#fff1d9}
.glass-caption,.glass-live-caption{font-size:11px;line-height:1.3;letter-spacing:.09em;color:#e6cf9d;margin:10px 12px 3px;font-weight:750}
.glass-caption[hidden],.glass-live-caption[hidden]{display:none}
.glass-live-caption{text-align:center;margin:8px 12px 5px;color:#bedbd8}
#memory-glass{position:relative;left:auto;top:auto;width:min(76vw,325px);height:min(76vw,325px);margin:7px auto 5px;aspect-ratio:1;transform-origin:50% 50%;transform:matrix(1,-.045,.05,1,0,0);z-index:1;background:rgba(207,231,232,.18);border:1px solid rgba(172,216,221,.82);border-radius:7px;box-shadow:0 10px 25px #07141d55,4px 5px 0 #6a8e9077;overflow:visible}
.glass-grid button{background:rgba(231,248,247,.85);color:#102e3a;text-shadow:none;font-weight:800;font-size:clamp(15px,4.4vw,21px);box-shadow:inset 0 0 0 1px #6f9fa57a}
.glass-grid button[data-state=yellow]{background:#e7c65b;color:#172d37}
.glass-grid button[data-state=green]{background:#78c4a3;color:#15392a}
#memory-glass[data-mode=move]{opacity:.73}
.glass-tools{justify-content:center;margin:3px 12px 2px;padding:2px 0 5px;min-height:0}
.glass-tools #glass-toggle{display:none!important}
.glass-tools #glass-modes{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:3px}
.glass-tools #glass-modes[hidden]{display:none}
.glass-tools small{text-align:center;line-height:1.3}
.glass-tools button{min-height:38px;padding:5px 8px;font-size:11px}
#glass-flat{color:#f8edda;background:#375363}
@media(max-width:350px){#memory-glass{width:77vw;height:77vw}.glass-tools button{padding:4px 6px;font-size:10px}}
#memory-glass-layer{position:absolute;inset:0;z-index:9;background:transparent;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:0 0 0 1px #fff9d588;border-radius:3px}
#memory-glass-layer[hidden]{display:none}
#memory-glass{position:absolute;inset:0;width:100%;height:100%;margin:0;transform:none;border:0;border-radius:0;background:#f9faef;box-shadow:none;aspect-ratio:auto}
#memory-glass .glass-grid{display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);gap:0;width:100%;height:100%}
#memory-glass .glass-grid button{display:grid;place-items:center;padding:0;min-width:0;min-height:0;width:100%;height:100%;border:0;border-radius:0;background:#f9faef;color:#163e56;box-shadow:inset 0 0 0 1px #879a9a80;font:800 clamp(18px,5.4vw,24px)/1 Georgia,serif;touch-action:none}
#memory-glass .glass-grid button[data-state=yellow]{background:#f7d252}
#memory-glass .glass-grid button[data-state=green]{background:#71d299}
#memory-glass .glass-grid button[data-state=mixed]{background:linear-gradient(135deg,#71d299 50%,#f7d252 50%)}
#memory-glass .glass-grid button[data-selected=true]{outline:3px solid #00506a;outline-offset:-4px;background:#95d6e0}
#memory-glass .glass-grid button:focus-visible{outline:3px solid #00506a;outline-offset:-4px}
.glass-original{position:static;transform:none;opacity:1;font:inherit;text-shadow:none}
.glass065-tools{position:relative;display:grid;grid-template-columns:60px 44px minmax(80px,1fr) 44px 54px;align-items:center;gap:2px;background:#294650;border:1px solid #859f9c;border-radius:5px;margin-bottom:2px;padding:0 2px;color:#fff1d9}
.glass065-tools[hidden]{display:none}
.glass065-tools button{min-height:44px;min-width:44px;padding:3px 2px;font-size:11px;white-space:nowrap}
.glass065-tools button[aria-pressed=true]{background:#e1eacb;color:#183c42}
.glass065-tools details{margin:0;padding:0;background:none;border:0;border-radius:0}
.glass065-tools summary{padding:0;min-height:44px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;list-style:none;line-height:1.3;font-size:11px;text-align:left;white-space:nowrap}
.glass065-tools summary::-webkit-details-marker{display:none}
#glass-found-chips{position:absolute;left:0;right:0;top:100%;z-index:15;display:flex;flex-wrap:wrap;gap:5px;background:#253f47;padding:6px;max-height:90px;overflow:auto}
#glass-found-chips span{background:#ebcb62;color:#173a3e;padding:4px;border-radius:4px}
#glass-found-chips span[data-state=green]{background:#8bd2ac}
.glass065-slider{display:block;position:relative;height:44px;min-width:0;margin:0;font-size:10px;line-height:12px;white-space:nowrap}
.glass065-slider output{position:absolute;top:0;right:0}
.glass065-slider input{display:block;position:absolute;left:0;bottom:0;height:32px;min-width:0;width:100%;min-height:32px;margin:0;padding:0;accent-color:#e8cc83;touch-action:pan-x}
.glass065-actions{display:contents}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#menu .menu-scroll{padding-bottom:calc(26px + env(safe-area-inset-bottom,0px))}
#menu [role=tablist]{display:flex;flex-wrap:wrap}
#menu [role=tab]{flex:1;min-width:52px}
#menu #page-learn,#menu #page-more{font-size:.9375rem;line-height:1.45;color:var(--ink)}
#menu .learn-context{font-size:.875rem;color:#314e52}
#menu .learn-cards{display:grid;gap:12px;margin:14px 0}
#menu .learn-step{display:block;padding:16px 12px;background:var(--inset);border:1px solid #c7baa3;border-radius:14px;text-align:center}
#menu .learn-step .learn-art{margin:0 auto 8px;max-width:100%;width:220px}
#menu .learn-step svg{display:block;width:100%;height:180px;margin:auto;max-width:220px}
#menu .learn-step svg.learn-wrap{height:84px;margin-top:12px}
#menu .learn-step h3{font-size:1.125rem;margin:4px 0}
#menu .learn-step p{max-width:27em;margin:6px auto;font-size:.9375rem;color:var(--ink)}
#menu #more-rules li{margin-bottom:10px}
#menu #more-rules ul{padding-left:20px}
#menu #learn-back{width:100%}
#menu #page-more h2{font-size:1.25rem;margin-bottom:12px}
#menu #cubesake-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
#menu #cubesake-actions button{min-width:0;overflow-wrap:anywhere;padding:9px 5px;font-size:.8125rem;line-height:1.3;min-height:48px}
#menu #page-more .menu-card{padding:12px;border:1px solid #c7baa3;border-radius:12px;background:var(--inset);margin:12px 0}
#menu #page-more h3{font-size:1rem;color:var(--ink)}
#menu #page-more p,#menu #page-more label,#menu #page-more summary,#menu #page-learn details{color:var(--ink);font-size:.875rem;line-height:1.45}
#menu #page-more details{background:var(--inset);color:var(--ink);padding:0 10px}
#menu #page-more summary{min-height:44px;padding:12px 0}
#menu #page-more details p{color:var(--ink)}
#menu #page-more button,#menu #page-more select{font-size:.875rem;min-height:44px;max-width:100%}
#menu #page-more input{accent-color:#304e54}
#menu #page-more .setting065{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;min-height:48px;margin:4px 0}
#menu #page-more .sound065{display:grid;grid-template-columns:auto 44px minmax(80px,1fr);gap:8px}
#menu #sound{display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px}
#menu #sound svg{display:block;width:22px;height:22px;max-width:22px;max-height:22px}
#menu #page-more #volume{width:100%;max-width:none;min-height:32px;display:block;margin:0}
#menu #page-more #sound-details{margin:2px 0 10px;background:none;border:0;border-bottom:1px solid #c7baa3;border-radius:0}
#menu #page-more .check-label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}
#menu #page-more .check-label input{width:20px;height:20px;min-height:20px;margin:0}
#menu #page-more .preference-help{font-size:.8125rem;margin:0 0 12px;color:#314e52}
#menu #letter-values{font-size:1rem;line-height:1.9;color:#163e56;word-spacing:8px}
#menu #page-more .layer-controls{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
#menu #page-more .layer-controls label{flex:1;min-width:84px}
#menu #page-more .layer-controls select{display:block;width:100%}
#menu #page-more #about-version{font-size:.75rem;color:#465b60}
#menu #page-more a{color:var(--gold);text-decoration:underline;text-underline-offset:3px}
#menu #page-more #export-history{width:100%}
#menu #page-more [hidden]{display:none!important}
@media(max-width:350px){#menu .learn-step .learn-art{width:200px}#menu .learn-step{padding:12px 8px}}
#menu #page-more .setting065>*{min-width:0}
.cubesake-detail.experience-panel{width:min(100% - 16px,480px);padding:12px;max-height:calc(100dvh - 24px);padding-bottom:calc(24px + env(safe-area-inset-bottom));overflow:auto;scroll-padding-bottom:28px;box-sizing:border-box}
.cubesake-detail .experience-heading{gap:8px;margin:0 0 6px;align-items:center}
.cubesake-detail h2{flex:1;min-width:0;font-size:1.1rem;margin:0;overflow-wrap:anywhere}
.cubesake-detail .experience-heading button{flex:none;min-width:60px;min-height:44px}
.cubesake-detail .jewel-preview{display:block;width:100%;height:auto;max-height:none;margin:0;border:0;border-radius:8px}
.cubesake-detail .cubesake-summary{text-align:center;margin:4px 0;font-size:.9rem}
.cubesake-options{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.cubesake-options select{width:auto;max-width:100%;min-height:44px}
.cubesake-detail label{display:flex;align-items:center;gap:6px;min-height:44px;font-size:.85rem;margin:0;line-height:1.3}
.cubesake-detail input[type=checkbox]{flex:none;width:22px;height:22px;margin:4px}
.cubesake-detail .cubesake-share{width:100%;min-height:48px;background:#224d48;color:#fff5df;font-weight:bold}
.cubesake-status{font-size:.78rem;line-height:1.35;margin:8px 0}
.cubesake-secondary{margin-top:10px}
.cubesake-secondary>summary{min-height:44px;display:list-item;align-content:center;cursor:pointer}
.cubesake-secondary textarea{box-sizing:border-box;width:100%;font-size:.8rem;min-height:82px;overflow-wrap:anywhere}
.cubesake-secondary button{min-height:44px;margin:4px 0;max-width:100%}
#menu-claims.compact-words {display:block}
#menu-claims.compact-words article {padding:7px 10px;margin:6px 0;border-left:3px solid var(--word-color);background:var(--inset);color:var(--ink)}
.compact-word-head {display:flex;align-items:center;gap:6px;min-width:0}
#menu-claims .word-name {font-size:1.03rem;font-weight:700;color:var(--ink);background:transparent;border:0;padding:0 4px;min-height:44px;min-width:44px;text-align:left;overflow-wrap:anywhere;flex:0 1 auto}
#menu-claims .word-name:disabled {opacity:1;color:#435650}
.theme-word-badge {color:#765817;font-size:1.1rem;flex:none}
.compact-word-points {margin-left:auto;white-space:nowrap;font-size:.88rem;color:var(--ink)}
#menu-claims .claim-state {font-size:.8rem;line-height:1.25;margin:0 0 4px;color:#40534d}
#menu-claims .word-score-detail {padding:0;border:0;margin:0;background:transparent}
#menu-claims .word-score-detail>summary,#menu-claims .word-options>summary {font-size:.8rem;line-height:1.25;min-height:44px;display:flex;align-items:center;padding:0;color:var(--muted);cursor:pointer}
#menu-claims .word-score-detail>summary::before {content:'▾';margin-right:5px}
#menu-claims .word-score-detail:not([open])>summary::before {content:'▸'}
#menu-claims .ordered-letters {font-size:.88rem;line-height:1.3;margin:0 0 2px;letter-spacing:.04em;color:var(--ink)}
#menu-claims .compact-breakdown {font-size:.8rem;line-height:1.35;margin:0;color:var(--muted)}
#menu-claims .word-options {border:0;margin:2px 0 0;padding:0;background:transparent}
#menu-claims .word-options>summary::before {content:'+';margin-right:5px}
#menu-claims .word-options[open]>summary::before {content:'−'}
#menu-claims .word-options>button {display:inline-block;width:auto;min-height:44px;margin:0 5px 0 0;font-size:.85rem;padding:6px 10px}
#page-words #word-history,#page-words #word-events p {color:var(--muted)}
#page-words #word-events p {font-size:.85rem;line-height:1.45}
.compact-word-head {display:grid;grid-template-columns:minmax(44px,1fr) auto auto auto;gap:6px}
#menu-claims .word-options {margin:0}
#menu-claims .word-options>summary {min-width:44px;justify-content:center}
#menu-claims .compact-word-head:has(.word-options[open])>.word-options {grid-column:1/-1}
#menu-claims .word-options[open]>summary {justify-content:flex-start}
#menu-claims .ordered-letters,#menu-claims .compact-breakdown {display:inline}
#menu-claims .compact-breakdown::before {content:' · '}
#credits .rewind068{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#254753;color:#fff0cc;font-size:1.5rem;min-width:0;padding:2px;touch-action:manipulation}
#credits .rewind068 small{font-size:.55rem;line-height:1.15}
.glass068-tools{display:grid;grid-template-columns:1fr;gap:5px;padding:5px 1px}
.glass068-tools[hidden]{display:none!important}
.glass068-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.glass068-actions button{min-height:44px;min-width:0;padding:5px 2px;font-size:.8rem}
.glass068-title{font-size:.8rem;line-height:1.3}
@media(max-width:339px){.glass068-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
#score-lab068 table{width:100%;border-collapse:collapse;font-size:.85rem}
#score-lab068 td,#score-lab068 th{padding:8px 4px;border-bottom:1px solid #72878b;text-align:left;overflow-wrap:anywhere}
#score-lab068 caption{font-size:.8rem;margin:8px 0;text-align:left}
#score-lab068 button{min-height:44px}
#leaderboards068 input:not([type=checkbox]),#leaderboards068 select{max-width:100%;min-height:44px}
#leaderboards068 button{min-height:44px}
#leaderboard-results068 li{padding:7px 0}
#leaderboard-results068 summary{font-size:.9em}
#player-plate068{width:160px}
#score-lab068 table{width:100%;font-size:.9em;border-collapse:collapse}
#score-lab068 th,#score-lab068 td{padding:6px 3px;text-align:left}
#credits .rewind068 small{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.glass068-selection{font-size:.8rem;line-height:1.3;min-height:1.3em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.glass068-tools{position:relative}
.glass068-tools #glass-found-list summary{max-width:none;min-height:44px;font-size:.8rem;gap:12px;flex-wrap:wrap}
.glass068-tools #glass-found-chips{position:static;max-height:100px;box-shadow:none}
.glass068-tools #glass-found-list:not([open]) #glass-found-chips{display:none}
.glass068-tools #glass-found-chips button[data-state=yellow]{background:#ebcb62;color:#173a3e}
.glass068-tools #glass-found-chips button[data-state=green]{background:#8bd2ac;color:#173a3e}
.glass068-tools #glass-frozen-count{margin-inline-end:12px}
.hunt-dissolve076 .glass-cell076{display:flex;align-items:center;justify-content:center;background:#f9faef;color:#193b3b;border:1px solid #8ba69d;font:800 var(--hunt-font076,25px) ui-rounded,system-ui,sans-serif;animation:hunt-plain076 350ms ease-out forwards}
@keyframes hunt-plain076{to{opacity:0}}
.hunt-dissolve076 .highlight076{background:#ebcb62;animation:hunt-marked076 1800ms ease-out forwards}
@keyframes hunt-marked076{0%,22%{opacity:1}100%{opacity:0}}
.feedback-line.needs-align081{height:44px;min-height:44px}
.align-face081{flex:0 0 auto;min-height:44px;min-width:88px;padding:5px 9px;margin:0;font-size:.82rem;background:#efbd69;color:#193b3b;border:1px solid #d2a452}
.align-face081[hidden]{display:none!important}
.top-actions {grid-template-columns:repeat(5,minmax(0,1fr))}
#view-navigation {font-size:.78rem;touch-action:manipulation;min-width:0;padding-inline:3px}
.feedback-line {height:max(30px,1.5rem);min-height:30px;display:block;margin:0;padding:0 3px}
#feedback {height:100%;line-height:max(30px,1.5rem);min-height:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.view067-context {display:flex;flex-wrap:wrap;gap:6px}
.view067-context button {min-height:44px}
body[data-input-modality="pointer"] [data-pointer-return]:focus-visible {outline:0}
.treasure067 {border-top:1px solid #b0b9a4;margin-top:12px;padding-top:6px}
.treasure067-head {display:flex;align-items:center;justify-content:space-between;gap:8px}
.treasure067-head h3 {margin:3px;font-size:1rem}
.treasure067-strip {display:flex;gap:6px;overflow-x:auto;max-width:100%;padding:4px;overscroll-behavior-x:contain}
.treasure067-strip>button {flex:0 0 88px;padding:3px;min-height:44px;background:#e8e1cf}
.treasure067-strip img {display:block;width:80px;height:auto}
.treasure067-strip button[aria-pressed="true"] {border:2px solid #765817}
#feedback-detail067 {max-width:min(90vw,420px);overflow-wrap:anywhere}
#finish-confirm {max-width:min(92vw,430px);max-height:calc(100dvh - 24px);overflow:auto;padding:20px 16px calc(24px + env(safe-area-inset-bottom));color:#17343e;background:#f3ecd9;border:2px solid #b28d4d}
#finish-confirm::backdrop {background:#101f2bd9}
#finish-confirm h2 {margin:0 0 12px}
#finish-confirm .confirm-actions {display:flex;flex-wrap:wrap;gap:10px}
#finish-confirm .confirm-actions button {min-height:44px;flex:1}
#score-primary {display:flex;gap:8px;flex-wrap:wrap}
#score-primary[hidden],#score-body[hidden] {display:none!important}
#result-cubesake,#finished-cubesake {background:#8fe0cc;color:#123338;font-weight:700;min-height:44px}
body.score-open #finished {display:none}
#compose067 {max-height:calc(100dvh - 24px);overflow:auto;padding-bottom:calc(28px + env(safe-area-inset-bottom))}
#compose067>img {display:block;width:100%;height:auto;max-height:57dvh;object-fit:contain;touch-action:none;user-select:none;-webkit-user-select:none}
.compose067-controls {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.compose067-controls button {min-height:44px;padding:6px;overflow-wrap:anywhere}
#compose067>p {font-size:.85rem;line-height:1.4}
body[data-credit-family="seven"] .top-actions{grid-template-columns:repeat(4,minmax(0,1fr))}
#view-navigation[hidden]{display:none!important}
#credits .rewind069{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#254753;color:#fff0cc;font-size:1.5rem;min-width:0;padding:2px;touch-action:manipulation}
#credits .rewind069 small{font-size:.55rem;line-height:1.15}
.glass069-tools{display:grid;grid-template-columns:1fr;gap:5px;padding:5px 1px}
.glass069-tools[hidden]{display:none!important}
.glass069-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.glass069-actions button{min-height:44px;min-width:0;padding:5px 2px;font-size:.8rem}
.glass069-title{font-size:.8rem;line-height:1.3}
#glass-found-chips button{min-height:44px;padding:4px 8px;margin:3px;font-size:.8rem}
#memory-glass{opacity:1!important;background:#17343e}
@media(max-width:339px){.glass069-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
#score-lab069 table{width:100%;border-collapse:collapse;font-size:.85rem}
#score-lab069 td,#score-lab069 th{padding:8px 4px;border-bottom:1px solid #72878b;text-align:left;overflow-wrap:anywhere}
#score-lab069 caption{font-size:.8rem;margin:8px 0;text-align:left}
#score-lab069 button{min-height:44px}
#leaderboards069 input:not([type=checkbox]),#leaderboards069 select{max-width:100%;min-height:44px}
#leaderboards069 button{min-height:44px}
#leaderboard-results069 li{padding:7px 0}
#leaderboard-results069 summary{font-size:.9em}
#player-plate069{width:160px}
#score-lab069 table{width:100%;font-size:.9em;border-collapse:collapse}
#score-lab069 th,#score-lab069 td{padding:6px 3px;text-align:left}
#credits .rewind069 small{max-width:100%;overflow-wrap:anywhere;white-space:normal}
.glass069-selection{font-size:.8rem;line-height:1.3;min-height:1.3em;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.glass069-tools{position:relative}
.glass069-tools #glass-found-list summary{max-width:none;min-height:44px;font-size:.8rem;gap:12px;flex-wrap:wrap}
.glass069-tools #glass-found-chips{position:static;max-height:100px;box-shadow:none}
.glass069-tools #glass-found-list:not([open]) #glass-found-chips{display:none}
.glass069-tools #glass-found-chips button[data-state=yellow]{background:#ebcb62;color:#173a3e}
.glass069-tools #glass-found-chips button[data-state=green]{background:#8bd2ac;color:#173a3e}
.glass069-tools #glass-frozen-count{margin-inline-end:12px}
.glass069-tools{display:block;padding:4px 0;margin:0}
.glass069-title{margin:0 0 4px;font-size:.8rem;line-height:1.25}
.glass069-bar{display:flex;align-items:center;gap:5px}
.glass069-bar #glass-counts{display:flex;flex-direction:column;flex:0 0 auto;font-size:.72rem;line-height:1.35;gap:1px;white-space:nowrap}
.glass069-tools #glass-frozen-count{margin:0}
.glass069-actions{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));flex:1;gap:3px;min-width:0;margin:0}
.glass069-actions button{min-width:44px;min-height:44px;padding:3px 2px;font-size:.76rem;margin:0}
.glass069-tools #glass-found-list{padding:0;margin:2px 0 0;border:0;background:transparent}
.glass069-tools #glass-found-list summary{min-height:44px;padding:2px;font-size:.75rem}
.glass069-tools #glass-found-chips{padding:0;margin:0;position:static;max-height:100px}
.sr-only069{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#wall{touch-action:none}
#touch-diagnostic069{font-size:.75rem;white-space:pre-wrap;max-width:100%;overflow-wrap:anywhere}
#sound-profile069{min-height:44px;max-width:100%}
@media(max-width:339px){.glass069-actions{grid-template-columns:repeat(4,minmax(44px,1fr))}.glass069-bar{gap:3px}.glass069-bar #glass-counts{font-size:.66rem}.glass069-actions button{font-size:.70rem}}
@media(min-width:340px){.glass069-actions button{min-width:48px}}
#compose067>canvas{display:block;width:100%;height:auto;max-height:57dvh;object-fit:contain;touch-action:none}
#compose067>canvas[hidden],#compose067>img[hidden]{display:none}
.glass069-actions{font-size:.76rem;grid-template-columns:repeat(auto-fit,minmax(max(44px,4em),1fr))}
.glass069-actions button{font-size:inherit}
@media(max-width:339px){.glass069-actions{font-size:.70rem;grid-template-columns:repeat(auto-fit,minmax(max(44px,4em),1fr))}}
#input-diagnostic072{max-width:100%;background:#152e37;color:#e8f2e6;border-radius:8px;padding:6px;margin-block:5px;font:11px system-ui}
#input-diagnostic072[hidden]{display:none}
#input-diagnostic072 pre{max-height:150px;overflow:auto;white-space:pre-wrap;word-break:break-word;margin:0}
#input-diagnostic072 button{font-size:12px;min-height:44px;padding:4px}
canvas.jewel-preview{display:block;width:100%;height:auto;max-height:57dvh;object-fit:contain;touch-action:none;-webkit-user-select:none;user-select:none}
.camera-instruction072{font-size:.78rem;text-align:center;margin:5px 0}
.camera-secondary072 button{min-height:44px}
.directions072 img{width:100%;height:auto;max-width:600px}
#beta-loader072{position:fixed;inset:0;z-index:2000;display:flex;gap:14px;align-items:center;justify-content:center;flex-direction:column;background:#f3ecd9;color:#193b3b;font:18px system-ui;padding:20px;text-align:center}
#beta-loader072 a{font-size:14px;color:inherit}
body[data-ready=true] #beta-loader072{display:none}
.loading-cube072{display:grid;place-items:center;width:62px;height:62px;background:#234853;color:#f3ecd9;border:4px ridge #aa9362;border-radius:8px;font:bold 40px Georgia;animation:loader072 2.2s ease-in-out infinite}
@keyframes loader072{0%{transform:perspective(220px) rotateX(-15deg) rotateY(-20deg)}50%{transform:perspective(220px) rotateX(15deg) rotateY(160deg)}100%{transform:perspective(220px) rotateX(-15deg) rotateY(340deg)}}
@media(prefers-reduced-motion:reduce){.loading-cube072{animation:none}}
#credits .windup-key072{display:block;width:37px;height:26px;object-fit:contain}
.learn-view072,.directions072{grid-column:1/-1}
.learn-view072 img{display:block;width:100%;height:auto;max-width:600px;margin-inline:auto}
.learn-view072 .learn-caption072{font-size:.85rem}
.learn-view072 .learn-gesture-caption073{font-weight:750;text-align:center;margin:.35rem auto .55rem;line-height:1.35;color:#315a56;font-size:clamp(.91rem,2.9vw,1.05rem)}
.glass069-tools{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:3px 0}
.glass069-title{flex:1;min-width:0;margin:0;font-size:.76rem;line-height:1.25}
#glass-theme{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.glass069-tools #glass-counts{display:flex;flex-wrap:wrap;gap:0 8px;font-size:.68rem;line-height:1.35}
.glass069-actions{display:flex;flex:0 0 auto;gap:3px;font-size:.74rem}
.glass069-actions button{min-width:44px;min-height:44px;padding:3px 6px;font-size:inherit}
#accessibility #roll-left,#accessibility #roll-right{flex:0 0 auto;min-width:44px;min-height:44px;padding:3px 7px;font-size:.75rem;line-height:1}
@media(min-resolution:1dppx){.glass069-actions{grid-template-columns:none}}
@media(min-width:340px){.glass069-actions button{min-width:44px}}
@media(prefers-reduced-motion:reduce){#wall{scroll-behavior:auto}}
#compose067,.cubesake-detail{width:min(94vw,460px);box-sizing:border-box}
#compose067 .jewel-preview,.cubesake-detail .jewel-preview{width:100%;height:auto;max-height:min(38dvh,330px);object-fit:contain;touch-action:pan-y;aspect-ratio:9/10}
.camera-axes075{display:grid;gap:0;margin:0}
.camera-axis075{display:grid!important;grid-template-columns:42px minmax(0,1fr) 52px;align-items:center;gap:5px;min-height:44px;margin:0!important;font-size:.8rem;line-height:1.2}
.camera-axis075 input[type=range]{min-width:0;width:100%;height:44px;margin:0;touch-action:pan-y;accent-color:#2b7569}
.camera-axis075 output{text-align:right;font-variant-numeric:tabular-nums}
.camera-actions075{display:flex;gap:8px;margin:5px 0}
.camera-actions075 button{min-height:44px;padding:5px 10px}
.camera-actions075 .primary-save075{flex:1;background:#8fe0cc;color:#123338;font-weight:750}
.camera-axes075[hidden]{display:none}
#compose067 .camera-instruction072,.cubesake-detail .camera-instruction072{margin:2px 0;font-size:.75rem}
#compose067>p,.cubesake-detail .cubesake-status{font-size:.8rem;line-height:1.3;margin:4px 0}
#compose067>details{margin-block:4px}
#compose067 input:not([type=range]),#compose067 textarea{width:100%;box-sizing:border-box}
#wall.locked-return{outline:2px solid #e8bf72;outline-offset:1px}
.camera-axis075{grid-template-columns:3em minmax(44px,1fr) 3.2em}
.camera-actions075{flex-wrap:wrap}
.camera-actions075 .primary-save075{flex:1 1 8.5em}
.camera-axis075{grid-template-columns:4.5em minmax(44px,1fr) 3.2em}
.camera-axis075 input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:44px;cursor:pointer;--axis-color:#267569}
.camera-axis075[data-axis=x] input{--axis-color:#b24b44}
.camera-axis075[data-axis=z] input{--axis-color:#385eae}
.camera-axis075 input::-webkit-slider-runnable-track{height:6px;border-radius:4px;background:#819c93}
.camera-axis075 input::-moz-range-track{height:6px;border-radius:4px;background:#819c93}
.camera-axis075 input::-webkit-slider-thumb{-webkit-appearance:none;width:34px;height:34px;border:3px solid #f3ecd9;border-radius:50%;background:var(--axis-color);box-shadow:0 1px 3px #18372f80;margin-top:-14px}
.camera-axis075 input::-moz-range-thumb{width:28px;height:28px;border:3px solid #f3ecd9;border-radius:50%;background:var(--axis-color);box-shadow:0 1px 3px #18372f80}
.camera-axis075 input:focus-visible{outline:2px solid #8ac9bd;outline-offset:1px;border-radius:8px}
.camera-axis-note076{font-size:.72rem;line-height:1.25;margin:1px 0 3px}
.camera-drag076{display:flex!important;align-items:center;gap:7px;min-height:44px;margin:0!important;font-size:.76rem}
.camera-drag076 input{width:20px;height:20px;min-height:20px;accent-color:#267569}
.menu-head .learn-wordmark076{width:140px;height:auto;display:block;background:#193b3b;padding:6px 8px;border-radius:7px}
.learn-physical076{grid-column:1/-1}
.learn-physical076 img{width:100%;height:auto;display:block}
.glass-emoji076{margin-right:.35em}
.hunt-dissolve076{position:absolute;inset:0;pointer-events:none;z-index:6;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(8,1fr);contain:strict}
.hunt-dissolve076 .glass-cell076{display:flex;align-items:center;justify-content:center;background:#f9faef;color:#193b3b;border:1px solid #8ba69d;font:800 var(--hunt-font076,25px) ui-rounded,system-ui,sans-serif;animation:none}
.hunt-dissolve076 .highlight076{background:#ebcb62;animation:hunt-marked081 2700ms linear forwards}
.hunt-dissolve076 .green076{background:#a8ccb7}
.hunt-dissolve076 .mixed076{background:linear-gradient(135deg,#a8ccb7 50%,#ebcb62 50%)}
@keyframes hunt-marked081{0%,48%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.hunt-dissolve076{display:none}}
#theme-icon .theme-emoji076{font-size:22px;line-height:1;display:block}
#compose067 .camera-drag076 input[type=checkbox]{width:20px;min-height:20px;margin:0}
@media(max-height:700px){#compose067 .jewel-preview{max-height:27dvh}}
#compose067[open]{display:flex;flex-direction:column;width:min(96vw,460px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 12px);padding:0 12px;overflow:hidden}
#compose067 .experience-heading{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:6px 0;margin:0;min-height:44px}
#compose067 .experience-heading h2{font-size:1.25rem;line-height:1.1;margin:0}
#compose067 .experience-heading button{min-height:44px;min-width:44px;margin:0;padding:6px 9px;font-size:.8rem}
.compose-body077{overflow:auto;overscroll-behavior:contain;min-height:0;scroll-padding:8px;flex:1 1 auto}
#compose067 .jewel-preview{max-height:none;aspect-ratio:9/11;width:100%;height:auto;margin:0}
.cubesake-detail .jewel-preview{aspect-ratio:9/11;max-height:min(55dvh,430px)}
.compose-meta077{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:6px 0}
.compose-meta077 label{display:flex;flex-direction:column;gap:3px;font-size:.8rem;line-height:1.2;margin:0}
#compose067 .compose-meta077 input,#compose067 .compose-meta077 textarea{width:100%;min-width:0;min-height:44px;padding:7px;font-size:.9rem;margin:0;box-sizing:border-box}
#compose067 .compose-meta077 textarea{min-height:64px;max-height:160px;resize:vertical}
#compose067 .camera-actions075{flex:0 0 auto;padding:7px 0;margin:0;border-top:1px solid #b9b5a3;background:#f3ecd9}
#compose067 .camera-actions075 button{margin:0}
@media(max-width:339px){.compose-meta077{grid-template-columns:1fr}}
#beta-loader072{gap:9px;padding:16px;box-sizing:border-box;overflow:auto;justify-content:safe center}
.loading-brand077{position:relative;width:min(68vw,270px);padding:10px 16px;background:#203944;border-radius:12px;box-sizing:content-box}
.loading-brand077 img{display:block;width:100%;height:auto}
.loading-brand077 span{font-size:2rem;font-weight:800;color:#fff1d9}
.loading-stage077{perspective:480px;width:120px;height:112px;display:grid;place-items:center;flex-shrink:0}
.loading-cube072{display:block;position:relative;width:64px;height:64px;border:0;border-radius:0;background:none;transform-style:preserve-3d;animation:q-glass077 6s linear infinite;transform:rotateX(-22deg) rotateY(34deg);font:800 40px/1 Georgia;color:#fff1d9}
.q-face077{position:absolute;inset:0;display:grid;place-items:center;background:#2c5860b8;border:1.5px solid #c3b17a;box-shadow:inset 0 0 15px #94ddcf35;backface-visibility:hidden;box-sizing:border-box}
.q-front077{transform:translateZ(32px)}
.q-back077{transform:rotateY(180deg) translateZ(32px)}
.q-right077{transform:rotateY(90deg) translateZ(32px)}
.q-left077{transform:rotateY(-90deg) translateZ(32px)}
.q-top077{transform:rotateX(90deg) translateZ(32px)}
.q-bottom077{transform:rotateX(-90deg) translateZ(32px)}
@keyframes q-glass077{from{transform:rotateX(-22deg) rotateY(34deg)}to{transform:rotateX(338deg) rotateY(394deg)}}
.loading-tip077{width:min(78vw,310px);margin:0;font-size:.78rem;line-height:1.25}
.loading-tip077 img{display:block;width:100%;max-height:190px;object-fit:contain}
.loading-tip077 figcaption{margin-top:4px}
#beta-loader072 p{margin:4px 0;font-size:1rem}
#beta-loader072 small{font-size:.75rem}
#beta-loader072 a{display:grid;place-items:center;min-height:44px;margin:0}
#beta-loader072[data-failed=true] .loading-tip077{display:none}
.loading-cube072.stopped{animation:none}
@media(max-height:650px){.loading-tip077 img{max-height:130px}.loading-stage077{height:92px}}
@media(prefers-reduced-motion:reduce){.loading-cube072{animation:none;transform:rotateX(-22deg) rotateY(34deg)}}
#portrait-guide077{padding:calc(10px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));box-sizing:border-box;border:0;border-radius:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;background:#203944;color:#fff1d9;overflow:auto}
#portrait-guide077[open]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:20px}
#portrait-guide077::backdrop{background:#203944}
.phone-landscape077 main,.phone-landscape077 [data-paused077]{visibility:hidden!important;pointer-events:none!important}
.portrait-brand077{width:min(200px,80%);height:auto;display:block;margin:0 auto 6px}
.portrait-message077{text-align:center}
.portrait-message077 svg{width:112px;height:70px}
.portrait-message077 h2{font-size:1.15rem;line-height:1.25;margin:5px 0}
.portrait-message077 p{font-size:.8rem;margin:4px 0}
.portrait-learn077{margin:0;text-align:center;font-size:.8rem;line-height:1.3}
.portrait-learn077 img{display:block;width:100%;max-height:240px;object-fit:contain}
.portrait-learn077 figcaption{margin-top:6px}
#portrait-heading077:focus{outline:none}
.loading-brand077 img{aspect-ratio:360/125}
.loading-tip077 img{aspect-ratio:600/420}
#beta-loader072 p{max-width:32rem;overflow-wrap:anywhere}
.compact-words article{padding:4px 9px;margin:4px 0}
.compact-words .compact-word-head{min-height:44px}
.compact-words .claim-state[hidden]{display:none}
.word-score-direct078 p{margin:0 0 3px;overflow-wrap:anywhere;line-height:1.3}
.word-score-direct078 .ordered-letters{font-size:.86rem}
.word-score-direct078 .compact-breakdown{font-size:.8rem}
.theme-word-badge .theme-emoji076{font-size:1rem}
#compose067 .jewel-preview,.cubesake-detail .jewel-preview{aspect-ratio:auto;object-fit:contain;height:auto}
#compose067 .compose-meta077{display:block;margin:7px 0}
.compose-tabs078{display:flex;gap:4px;margin-bottom:4px}
.compose-tabs078 button{flex:1;min-height:44px;margin:0;font-size:.86rem}
.compose-tabs078 [aria-selected=true]{background:#315451;color:#fff1d9;box-shadow:inset 0 -3px #cfb76c}
#compose067 [hidden]{display:none!important}
#compose067 .compose-meta077 input,#compose067 .compose-meta077 textarea{width:100%;font-size:1rem}
.compose-style078{display:flex;align-items:center;gap:8px;min-height:44px;font-size:.85rem}
.compose-style078 input{width:20px;min-height:20px;margin:0}
.curated-view078{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 6px;margin:0;font-size:.85rem}
.curated-view078 output{font-size:.78rem;overflow-wrap:anywhere;text-align:right}
.curated-view078 input[type=range]{grid-column:1/-1;width:100%;margin:0;min-height:44px;accent-color:#315451}
.curated-view078 input::-webkit-slider-thumb{min-width:26px;min-height:26px}
.curated-help078{font-size:.72rem;line-height:1.25;margin:0 0 4px;color:#47584f}
#compose067 .camera-axes075,.cubesake-detail .camera-axes075{margin:4px 0;padding:0;border:0;display:block}
#compose067 .compose-body077>p[role=status]{font-size:.75rem;line-height:1.2;margin:4px 0}
@media(max-width:339px){.curated-view078{grid-template-columns:1fr}.curated-view078 output{text-align:left}}
#compose067 .compose-style078{display:flex;justify-content:flex-start;gap:8px;width:auto}
#compose067 .compose-style078 input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;margin:0}
.curated-view079{display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:8px;margin:2px 0}
.curated-view079 button{min-width:48px;min-height:48px;height:48px;padding:0;margin:0;border:2px solid #cfb76c;border-radius:12px;background:#284b54;color:#fff1d9;font:700 40px/1 Georgia;touch-action:manipulation}
.curated-view079 output{text-align:center;font-size:.85rem;line-height:1.25;overflow-wrap:anywhere;color:#193b3b}
.curated-view079 button:focus-visible,.compose-tabs078 button:focus-visible{outline:3px solid #193b3b;outline-offset:3px}
#compose067 .compose-tabs078{gap:0;margin:0;border:2px solid #315451;border-bottom:0;border-radius:10px 10px 0 0;overflow:hidden;background:#d9dfd6}
#compose067 .compose-tabs078 button{border:0;border-radius:0;box-shadow:none;background:#d9dfd6;color:#465b57;font-weight:500;min-height:46px;padding:8px}
#compose067 .compose-tabs078 button[aria-selected=true]{background:#224f4b;color:#fff7df;font-weight:800;box-shadow:inset 0 -5px #e5bd67;text-decoration:underline;text-underline-offset:4px}
#compose067 .compose-meta077 [role=tabpanel]{padding:8px;border:2px solid #315451;border-top:0;border-radius:0 0 8px 8px;background:#f3ecd9;color:#193b3b}
#compose067 [role=tabpanel]>label{display:block;font-size:.86rem;font-weight:750;margin:0 0 4px}
#compose067 [role=tabpanel]>small{font-size:.75rem;display:block;margin-top:4px}
#compose067 .compose-meta077 input,#compose067 .compose-meta077 textarea{margin:0;background:#fffaf0;color:#193b3b;border:1px solid #638078;border-radius:4px}
#compose067>.experience-heading,.cubesake-detail>.experience-heading{min-width:0;align-items:flex-start;flex-wrap:wrap;gap:4px 8px}
#compose067>.experience-heading h2,.cubesake-detail>.experience-heading h2{min-width:0;flex:1 1 auto;overflow-wrap:anywhere}
#compose067>.experience-heading button,.cubesake-detail>.experience-heading button{flex:0 0 auto;max-width:100%;margin-left:auto}
.curated-view080{grid-template-columns:48px 48px 48px;justify-content:center;gap:4px 12px}
.curated-view080 .pitch080{display:flex;flex-direction:column;gap:4px}
.curated-view080 output{grid-column:1/-1;font-size:.78rem}
.curated-view080 button{font:700 28px/1 system-ui}
.feedback-line{display:flex;align-items:center;gap:5px}
#feedback{flex:1;min-width:0}
.compact-words .word-name{letter-spacing:.08em;overflow-wrap:anywhere}
.word-score-direct078 .compact-breakdown{margin-bottom:2px}
#compose067 .curated-view080>.reset-view081,.cubesake-detail .curated-view080>.reset-view081{grid-column:1/-1;justify-self:center;min-width:80px;min-height:44px;width:auto;font:700 .85rem/1.2 system-ui;padding:5px 12px;margin:0}
#board-foot{grid-template-columns:minmax(96px,1.05fr) minmax(66px,.8fr) minmax(90px,1.15fr);gap:5px}
#movement-mode{display:flex;min-width:0;align-self:stretch;border:1px solid #8b9ca1;border-radius:9px;overflow:hidden}
#movement-mode button{flex:1;min-width:44px;min-height:44px;padding:5px 2px;border:0;border-radius:0;font-size:.88rem;line-height:1.15;background:#294452;color:#e2e7dc}
#movement-mode button+button{border-left:1px solid #8b9ca1}
#movement-mode button[aria-pressed="true"]{background:#ffca70;color:#183541;box-shadow:inset 0 -3px #b68437}
#movement-mode button:focus-visible{outline:3px solid #79cddc;outline-offset:-3px}
#board-foot>#lock-words{min-width:0;padding:4px;font-size:.82rem}
#board-foot>#theme{min-width:0}
#board-foot #theme-button-name{overflow-wrap:anywhere}
#board-foot{display:flex;flex-wrap:wrap;align-items:stretch}
#movement-mode{flex:0 0 7rem;flex-wrap:wrap;max-width:100%;box-sizing:border-box}
#movement-mode button{flex:1 0 auto}
#board-foot>#lock-words{flex:0 0 5rem;max-width:100%;box-sizing:border-box;flex-wrap:wrap}
#board-foot>#theme{flex:1 1 7rem;max-width:100%;box-sizing:border-box}
#board-foot>#lock-words{flex-wrap:nowrap;gap:3px}
#board-foot>#lock-words span{flex:1 1 0;min-width:0;overflow-wrap:normal}
#board-foot>#lock-words svg{flex:0 0 1.35rem;width:1.35rem;height:1.35rem}
#movement-mode{border:0;box-shadow:inset 0 0 0 1px #8b9ca1}
#board-foot {gap:5px;flex-wrap:wrap}
#board-foot #movement-mode {flex:0 0 calc(39% - 4px);min-width:7rem;box-sizing:border-box}
#board-foot #lock-words {flex:0 0 calc(29% - 3px);min-width:5rem;box-sizing:border-box}
#board-foot #theme {flex:0 0 calc(32% - 3px);min-width:5.5rem;box-sizing:border-box;padding:3px 5px}
#theme .theme-label {display:grid;grid-template-columns:1.3rem minmax(0,1fr) .6rem;gap:.18rem;align-items:center;width:100%}
#theme #theme-icon {position:static;display:flex;align-items:center;justify-content:center;width:1.3rem;height:1.3rem;min-width:0;margin:0;transform:none}
#theme #theme-icon .theme-emoji076 {font-size:1.25rem;line-height:1}
#theme #theme-button-name {min-width:0;font-size:.68rem;line-height:1.1;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#theme #theme-button-status {font-size:.65rem;line-height:1.1;white-space:nowrap}
#menu-claims .compact-breakdown::before {content:none!important;display:none}
#menu-claims .compact-breakdown {font-weight:400}
#menu-claims .compact-breakdown strong {font-weight:700}
.compact-words .repair-heading086{border-top:1px solid #193b3b40;margin:1rem 0 .4rem;padding-top:1rem;font-size:1.05rem;line-height:1.35}
.compact-words .repair-help086{margin:.25rem 0 .8rem;line-height:1.45;color:#375b59}
#wall{-webkit-tap-highlight-color:transparent}
#wall:focus-visible{outline:3px solid var(--focus,#ffd080);outline-offset:3px}
@media(forced-colors:active){#wall:focus-visible{outline-color:Highlight}}
.rail-shell{grid-template-columns:clamp(88px,6.8rem,52vw) repeat(3,minmax(0,1fr));height:auto;min-height:44px;align-items:stretch}
#current-draft{height:auto;min-height:44px}
#current-draft>span{line-height:1.2}
#current-draft>small{display:flex;align-items:center;justify-content:center;gap:3px;width:100%;min-width:0;overflow:visible;font-size:11px;line-height:1.25}
#current-draft .draft-letters090{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#current-draft .draft-status090{flex:0 0 1.25em;width:1.25em;line-height:1.25;text-align:center;font-weight:800;color:#e5e9ed}
#current-draft .draft-status090[hidden]{display:none}
#current-draft .draft-status090[data-status=accepted]{color:#9df4b6}
#current-draft .draft-status090[data-status=rejected]{color:#ffb0b5}
#current-draft .draft-letters090[data-empty=true]{white-space:normal;overflow:visible}
label:has(> #import-consent){display:flex;align-items:flex-start;gap:10px;line-height:1.4;text-align:left;padding:8px 0;min-height:44px;box-sizing:border-box}
label > #import-consent{flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;margin:2px 0 0;padding:0;align-self:flex-start;accent-color:#8ce3d0}
#current-draft .draft-letters090{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#current-draft .draft-status090[data-status="rejected"]{ font-size:1.5em; line-height:1; font-weight:900; flex-basis:1em; width:1em; }
#menu {width:min(96vw,640px);max-height:calc(100dvh - 20px - env(safe-area-inset-bottom));padding:10px;box-sizing:border-box;overflow:hidden}
#menu .menu-scroll {min-height:0;overflow:auto;overscroll-behavior:contain;padding:8px 2px calc(18px + env(safe-area-inset-bottom));scrollbar-gutter:stable}
#menu .menu-tabs093 {display:flex;flex-wrap:wrap;gap:3px;flex-shrink:0}
#menu .menu-tabs093 button {padding:7px 1px;flex:1 1 20%;min-width:max(44px,4.3em);min-height:44px;line-height:1.2;font-size:.85rem;overflow-wrap:normal}
#menu button,#menu summary {min-height:44px;box-sizing:border-box}
#menu summary {display:flex;align-items:center;padding:10px 4px;cursor:pointer}
#menu details>summary:before {content:'▸';margin-right:8px;font-size:.75em}
#menu details[open]>summary:before {content:'▾'}
#menu [role=tab][aria-selected=true] {background:#ffd17d;color:#17313a;border-color:#ffd17d}
#menu h2 {font-size:1.2rem;margin:.5em 0}
#menu h3 {font-size:1rem;margin:.6em 0}
#menu p {overflow-wrap:anywhere;line-height:1.35;margin:.5em 0}
#menu .menu-card {padding:10px;margin:8px 0}
#menu .menu-button-row {display:flex;flex-wrap:wrap;gap:8px}
#menu #page-play>button {margin:4px;max-width:100%}
#menu .settings-group093 {border-bottom:1px solid #61737b;padding:4px 2px}
#menu .settings-group093 label {display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:6px 0}
#menu .settings-group093 input[type=checkbox] {flex:none;width:22px;height:22px}
#menu input,#menu select {max-width:100%;box-sizing:border-box;min-height:44px;font-size:1rem}
#menu .score-tabs093 {display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:12px 0}
#menu .score-tabs093 button {min-width:0;white-space:normal;padding:8px}
#menu .name-editor093 {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
#menu .name-editor093 label,#menu .name-preview093,#menu .name-editor093 p {grid-column:1/-1}
#menu #player-name093 {width:100%;font-size:1.2rem;letter-spacing:.15em;text-transform:uppercase}
#menu .name-preview093 {display:flex;justify-content:center;padding:6px 0}
.name-tiles093 {display:block;width:160px;max-width:100%;height:auto;flex-shrink:0;overflow:visible}
.name-tiles093:focus-visible {outline:3px solid #82dfca;outline-offset:3px}
#menu .rankings093 {list-style:none;padding:0;margin:8px 0}
#menu .ranking093 {display:grid;grid-template-columns:30px minmax(90px,1fr) auto;gap:6px;align-items:center;padding:12px 0;border-bottom:1px solid #62777f;min-width:0}
#menu .ranking093 .name-tiles093 {width:100%;max-width:160px}
#menu .ranking093 .rank093 {font-size:.7rem;overflow-wrap:anywhere}
#menu .ranking093 .points093 {font-size:.9rem;overflow-wrap:anywhere;max-width:5.5em;text-align:right}
#menu .ranking093 small {grid-column:1/-1;font-size:.85rem;line-height:1.4}
#menu .shared093 {margin-top:14px;padding-top:10px;border-top:1px solid #62777f}
#menu .name-state093:empty {display:none}
#menu #score-date093 {display:block;margin:5px 0}
#menu #page-learn .learn-cards {display:grid;grid-template-columns:1fr}
#menu #page-learn .learn-art,#menu #page-learn img {max-width:100%}
#menu #developer093[hidden] {display:none!important}
body.player-menu093:not(.developer-enabled093) #version.build-footer {display:none}
@media(prefers-reduced-motion:reduce){#menu *{scroll-behavior:auto}}
#menu svg.name-tiles093 {width:160px;height:32px;max-width:100%;max-height:none;margin:0;aspect-ratio:5/1}
#menu .ranking093 svg.name-tiles093 {width:100%;height:auto;aspect-ratio:5/1}
#menu .quick093 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
#menu .quick093 button {min-width:0;white-space:normal;padding:8px}
.hunt-dissolve094 { overflow:hidden; pointer-events:none; }
.hunt-dissolve094 .glass-cell076 { animation: hunt094-fade 400ms ease-out both !important; }
@keyframes hunt094-fade { from { opacity:1; } to { opacity:0; } }
@media (prefers-reduced-motion:reduce) { .hunt-dissolve094 { display:none; } }
body[data-credit-family=six] #credits {grid-template-columns:repeat(8,minmax(0,1fr));}
.freeze-cube094 {display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:44px;padding:2px;color:#f4cf81;border:1px solid #9eb4c0;background:#25434f;line-height:1;}
.freeze-cube094 svg {width:36px;height:36px;flex:none;}
.freeze-cube094 small {font-size:10px;line-height:1.1;}
.freeze-cube094[aria-pressed=true] {color:#fff7dc;background:#42677a;border:2px solid #ffd27d;box-shadow:inset 0 0 0 2px #172f3a;}
#credits .freeze-cube094 {width:100%;}
#freeze-cube094:not(#credits > *) {width:72px;flex:none;min-height:44px;margin:0;flex-direction:row;gap:3px;}
#freeze-cube094:not(#credits > *) svg {width:28px;height:32px;}
#credits #freeze-cube094 {color:#f4cf81;background:#25434f;border:1px solid #9eb4c0;}
#credits #freeze-cube094[aria-pressed=true] {color:#fff7dc;background:#42677a;border:2px solid #ffd27d;}
body[data-credit-family=seven] .feedback-line:has(#freeze-cube094) {height:auto;min-height:44px;}
@media (max-width:350px) { body[data-credit-family=six] #credits #rewind-view {padding:2px;} body[data-credit-family=six] #credits #rewind-view small {font-size:9px;white-space:nowrap;} }
body[data-credit-family=six] #credits,body[data-credit-family=seven] #credits {grid-template-columns:repeat(8,minmax(0,1fr));}
#credits .tray-command095,body[data-credit-family] #credits #freeze-cube094.tray-command095,body[data-credit-family] #credits #rewind-view.tray-command095 {display:flex;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;min-height:50px;padding:2px 0;border:2px solid #9eb4c0;border-radius:9px;gap:1px;font-size:16px;line-height:1;touch-action:manipulation;}
#credits .tray-command095 .windup-key072,#credits .tray-command095 svg {display:block;object-fit:contain;width:30px;height:30px;flex:0 0 30px;margin:0;}
#credits .tray-command095 small,#credits #rewind-view.tray-command095 small,#credits #freeze-cube094.tray-command095 small {display:block;font-family:inherit;font-size:9px;font-weight:700;line-height:11px;letter-spacing:0;text-transform:none;white-space:nowrap;overflow-wrap:normal;max-width:none;margin:0;padding:0;}
#credits #freeze-cube094.tray-command095[aria-pressed=true] {border:2px solid #ffd27d;box-shadow:inset 0 0 0 1px #172f3a;}
.legacy-credit095 p {color:#405b53;font-size:.85rem;line-height:1.4;}
#legacy-e-credit095 {min-height:44px;min-width:140px;}
#legacy-e-credit095.used {opacity:.55;}
#menu .menu-head {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0;min-height:48px;padding:0;margin:0 0 8px;}
#menu .menu-head .learn-wordmark076 {height:48px;width:auto;max-width:calc(100% - 90px);object-fit:contain;margin:0;padding:0;flex:0 1 auto;min-width:0;}
#menu #close-menu {height:auto;min-height:48px;flex:0 0 auto;margin:0;}
#menu #page-play>h2,#menu #page-words>h2,#menu #page-scores>h2,#menu #page-more>h2 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0;}
#menu .help-row096,#menu .current-actions096 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;}
#menu .help-row096 {margin:0 0 10px;}
#menu .help-row096 button,#menu .current-actions096 button {width:100%;min-width:0;min-height:48px;padding:8px 3px;white-space:normal;line-height:1.2;font-size:.95rem;}
#menu .finish-action096 {display:block;width:100%;margin:8px 0 0;padding:8px;min-height:44px;font-size:.85rem;background:transparent;color:#405b53;}
#menu .collection096 {border-top:1px solid #cbbb9d;margin-top:12px;}
#menu .menu-scroll {padding-bottom:max(12px,env(safe-area-inset-bottom));}
#menu #current-summary {color:#405b53;margin:4px 0 12px;}
#menu #page-learn .learn-step,#menu .score-lesson096 {padding:12px;margin:10px 0;background:#fff8ed;border:1px solid #cbbb9d;border-radius:12px;color:var(--ink);}
#menu .cube-guide-icon096 {float:right;color:#3d6670;width:64px;height:64px;margin:0 0 8px 10px;}
#menu .cube-guide-icon096 svg {display:block;width:64px;height:64px;max-height:none;}
#menu #learn-cube096 {display:flow-root;}
#menu #page-learn p,#menu #page-scoring p {font-size:.9rem;color:#405b53;}
#menu .lesson-tray096 {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;margin:10px 0;}
#menu .lesson-tray096 span {display:flex;justify-content:center;align-items:center;min-height:36px;background:#bbd7ef;border-radius:4px;color:var(--ink);font-size:.65rem;}
#menu .lesson-tray096 span:nth-child(5),#menu .lesson-tray096 span:nth-child(6){background:#edabc7;}
#menu .lesson-tray096 span:nth-child(n+7){background:#315464;color:#fff2d4;font-size:.5rem;}
#menu #learn-back,#menu #scoring-back096 {min-height:44px;margin:0 0 8px;}
#menu .worked096 {margin:12px 0;padding:12px;border-left:4px solid #cfa65e;background:#f4e9d2;}
#menu .worked096 figcaption {font-size:.8rem;margin-bottom:8px;}
#menu .example-letters096 {display:flex;gap:4px;margin:8px 0;}
#menu .example-letters096 span {display:flex;align-items:center;justify-content:center;gap:4px;background:#fff8ed;border:1px solid #ad9c7b;border-radius:4px;padding:8px;font-weight:bold;}
#menu .example-letters096 small {align-self:flex-end;font-size:.65em;}
#menu #page-scoring .rounding096 {font-size:.8rem;}
#menu #page-scoring .score-principle096 {font-size:1rem;font-weight:700;}
#menu [hidden] {display:none!important;}
#menu .learn-group096 {border-bottom:1px solid #cbbb9d;margin:8px 0;}
#menu .learn-group096>summary {font-weight:700;}
#menu details > summary {list-style:none;gap:10px;}
#menu details > summary::marker {content:"";}
#menu details > summary::-webkit-details-marker {display:none;}
#menu details > summary::before, #menu details[open] > summary::before { content:"";display:block;flex:0 0 18px;width:18px;height:18px; margin:0;background:currentColor;-webkit-mask:url("disclosure097.svg") center/18px 18px no-repeat;mask:url("disclosure097.svg") center/18px 18px no-repeat; transform:rotate(0deg);transform-origin:center; }
#menu details[open] > summary::before {transform:rotate(90deg);}
#menu :is(.collection096,#word-history,#my-results,.settings-group093) > summary { font-family:inherit;font-size:1.1rem;font-weight:700;line-height:1.3; color:var(--ink);min-height:48px;overflow-wrap:anywhere; }
#menu details > summary:focus-visible {outline:3px solid #3d6670;outline-offset:-3px;border-radius:6px;}
#menu :is(#learn-back,#scoring-back096).back-to-play098 {display:block;width:100%;box-sizing:border-box;min-height:52px;height:auto;margin:0 0 10px;padding:12px 8px;border:1px solid #213942;border-radius:12px;background:#213942;color:#fff8ed;font-family:inherit;font-size:1rem;font-weight:700;line-height:1.3;text-align:center;white-space:normal;}
#menu :is(#learn-back,#scoring-back096).back-to-play098:active {background:#385963;}
#menu :is(#learn-back,#scoring-back096).back-to-play098:focus-visible {outline:3px solid #bb7d24;outline-offset:2px;}
#menu .guide098 {color:var(--ink);}
#menu .guide098 h2 {font-size:1.15rem;margin:8px 0;}
#menu .guide098 p {font-size:.9rem;line-height:1.4;margin:8px 0;overflow-wrap:anywhere;}
#menu .guide098 .intro098 {font-size:1rem;}
#menu .guide098 .steps098 {margin:8px 0 12px;}
#menu #view-pair098 {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:0;padding:10px 0;border-block:1px solid #cbbb9d;}
#menu #view-pair098 figure {margin:0;text-align:center;min-width:0;}
#menu .guide-icon098 {display:flex;align-items:center;justify-content:center;height:48px;margin:0 0 6px;color:#315464;}
#menu .guide-icon098 :is(img,svg) {display:block;width:48px;height:48px;max-height:none;object-fit:contain;}
#menu #view-pair098 strong {font-size:1rem;font-weight:700;}
#menu #view-pair098 p {text-align:left;margin:6px 0 0;}
#menu .guide098 .pair-note098 {font-size:.85rem;margin:10px 0;}
#menu .learn-group098 {border-bottom:1px solid #cbbb9d;margin:0;}
#menu .learn-group098>summary {min-height:48px;font-size:1rem;font-weight:700;line-height:1.3;padding-block:10px;}
#menu .guide-art098 {display:block;width:100%;height:auto;margin:8px 0;}
#menu .lesson-tray098 {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;margin:10px 0;}
#menu .lesson-tray098 span {display:flex;justify-content:center;align-items:center;min-height:36px;background:#bbd7ef;border-radius:4px;color:var(--ink);font-size:.8rem;overflow-wrap:anywhere;}
#menu .lesson-tray098 span:nth-child(5),#menu .lesson-tray098 span:nth-child(6){background:#edabc7;}
#menu .lesson-tray098 span:nth-child(n+7){background:#315464;color:#fff2d4;font-size:.55rem;}
#menu details>summary::before,#menu details[open]>summary::before {background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2018%2018%22%3E%3Cpath%20d%3D%22M6%203L12%209L6%2015%22%20fill%3D%22none%22%20stroke%3D%22%23213942%22%20stroke-width%3D%222.25%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E%0A");}
.lesson099{box-sizing:border-box;min-width:0;margin:0;padding:14px;background:#fff8ed;color:#213942;border:1px solid #cbbb9d;border-radius:16px;text-align:left;}
.lesson099 h3{font:700 1.05rem/1.25 ui-rounded,system-ui,sans-serif;margin:0 0 8px;}
.lesson099 img{display:block;width:100%;height:160px;max-height:none;object-fit:contain;aspect-ratio:auto;margin:0 auto 8px;}
.lesson099 p{font-size:.92rem;line-height:1.4;margin:0;overflow-wrap:anywhere;}
.lesson099[data-card=rewind] img,.lesson099[data-card=cube] img{height:110px;}
.guide099 h2{font-size:1.15rem;margin:8px 0;}
.guide099 .intro099{font-size:.9rem;line-height:1.4;margin:0 0 12px;}
#menu .lesson-group099>summary{min-height:48px;font-size:1rem;font-weight:700;line-height:1.3;padding-block:10px;}
.lesson-list099{display:grid;gap:12px;margin:10px 0;}
#beta-loader072 .loading-tip077{width:min(100%,360px);flex-shrink:0;}
#beta-loader072 .lesson099 p{font-size:.92rem;margin:0;}
#beta-loader072 .lesson099 img{height:160px;aspect-ratio:auto;}
#portrait-guide077 .portrait-learn077{width:100%;max-width:420px;justify-self:center;}
#portrait-guide077 .lesson099 img{height:clamp(75px,32dvh,160px);max-height:none;}
#portrait-guide077 .lesson099 h3{font-size:1rem;}
#portrait-guide077 .lesson099 p{font-size:.88rem;}
@media(max-width:340px){.lesson099{padding:12px;}.lesson099 img{height:140px;}}
@media(max-height:360px){#portrait-guide077[open]{align-items:start;}.portrait-message077 svg{height:45px;width:74px;}.portrait-brand077{max-width:130px;}}
.boards100{min-width:0}
.identity100{display:flex;gap:12px;align-items:center;margin:8px 0 18px}
.identity100 svg{width:140px;max-width:40vw;height:auto}
.identity100 button{width:auto;font-size:.9em;min-height:44px}
.name-edit100{display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:16px}
.name-edit100[hidden]{display:none}
.name-edit100 label,.name-edit100 small,.name-edit100 p{grid-column:1/-1}
.name-edit100 input{min-width:0;letter-spacing:.2em}
.tabs100{display:grid;grid-template-columns:1.35fr 1fr;gap:6px}
.tabs100 button{min-width:0;white-space:normal}
.tabs100 [aria-selected=true]{background:#f3d185;color:#203944;box-shadow:inset 0 -3px #a47730}
.ranks100{list-style:none;padding:0}
.rank100{display:grid;grid-template-columns:2.4em minmax(70px,1fr) auto;align-items:center;gap:5px;padding:10px 0;border-bottom:1px solid #20394430;min-width:0}
.rank100 svg{width:100%;max-width:140px;height:auto}
.rank100 small{grid-column:2/-1;overflow-wrap:anywhere;color:#455b5c}
.rank100 strong{font-size:.95em}
.board-caption100{font-weight:600}
.free-hidden100{display:none!important}
body[data-unscored100=true] .compact-word-points,body[data-unscored100=true] .word-score-direct078,body[data-unscored100=true] #finished,body[data-unscored100=true] #score-panel{display:none!important}
@media(max-width:340px){.rank100{grid-template-columns:1.8em minmax(60px,1fr) auto;gap:3px}.boards100{padding-inline:4px}}
.boards100>h2{display:block!important;font-size:1.1em;margin:4px 0 10px}
#menu #page-scores.boards100>h2{position:static;width:auto;height:auto;padding:0;margin:4px 0 10px;overflow:visible;clip-path:none;white-space:normal;border:0;font-size:1.1rem}
.player-menu093 #play-flow101 h2,.player-menu093 #play-flow101 h3 {position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important}
.play-flow101{display:grid;gap:12px}
.play-flow101 p{margin:0;color:var(--ink)}
.mode-choices101,.flow-actions101,.flow-result101{display:flex;flex-wrap:wrap;gap:10px}
.flow-result101 h3,.flow-result101 p{flex-basis:100%}
.mode-choices101 button{flex:1 1 120px;min-height:58px}
.play-flow101 button{min-height:44px;white-space:normal}
#finish-inline101{border:1px solid #e7c77c;border-radius:10px;padding:12px}
#finish-inline101 button{margin:10px 8px 0 0}
.boards100 .collection096{margin-top:20px}
.identity100 button{min-width:70px;min-height:44px}
.name-live101{display:flex;gap:3px;grid-column:1/-1}
.name-live101 span{display:grid;place-items:center;width:38px;height:40px;background:#f5e7c9;color:#173440;font-weight:800;border:1px solid #bfa66a;border-radius:3px}
.name-edit100{max-width:100%}
.name-edit100 input{max-width:100%;min-width:0}
#play-flow101>p:empty{display:none}
#play-flow101 #finish-inline101{color:var(--ink)}
#play-flow101 p{color:var(--ink);margin:0}
#play-flow101 h2{margin:0}
.player-menu093 #play-flow101{gap:12px}
.player-menu093 #menu .menu-tabs093{display:flex;overflow-x:auto;gap:3px;flex-wrap:nowrap}
.player-menu093 #menu .menu-tabs093>button{min-height:44px;min-width:max-content;flex:1 0 auto;width:auto;padding:8px 5px;font-size:.88rem}
#page-learn .lesson099{margin:10px 0}
#page-learn .guide099>h2{font-size:1rem;margin:16px 0 8px}
.music-note102{width:1.5em;height:1.5em;vertical-align:middle;flex-shrink:0}
.glass-emoji076 .theme-emoji{width:1.4em;height:1.4em}
.hunt-dissolve094 .glass-cell076{animation-duration:1100ms!important}
.hunt-dissolve094{animation-duration:1100ms!important;pointer-events:none!important}
#play-flow102 button{min-height:44px;white-space:normal}
#switch-decision102{padding:10px;border:1px solid var(--gold,#d9bb72);border-radius:10px}
#switch-decision102 button{margin:4px}
#play-flow102 .mode-choices101{display:grid;gap:8px}
#play-flow102>p{margin:8px 0}
#play-sound102{margin:8px;min-height:44px}
#sound-test-status102{display:block}
#legacy-recovery102>div{border-top:1px solid #849399;padding:8px 0}
#play-flow102>p:empty{display:none}
.player-menu093 #play-flow102 h3{position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important}
body .top-actions {grid-template-columns:repeat(5,minmax(0,1fr));}
body .top-actions:has(#view-navigation[hidden]) {grid-template-columns:repeat(4,minmax(0,1fr));}
body .top-actions > button {min-width:0;min-height:44px;padding-inline:3px;font-size:.82rem;white-space:nowrap;}
body .top-actions:has(#view-navigation:not([hidden])) > button {white-space:normal;overflow-wrap:anywhere;font-size:.72rem;}
#help104 {box-sizing:border-box;margin:0;border:0;border-radius:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0;background:#203944;color:#fff1d9;overflow:hidden;}
#help104[open]{display:flex;flex-direction:column;}
#help104 header{height:auto;min-height:0;max-height:none;position:static;flex:none;display:grid;grid-template-columns:minmax(70px,100px) minmax(0,1fr);gap:8px 14px;padding:calc(10px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 12px max(14px,env(safe-area-inset-left));}
#help104 header img{width:100%;height:auto;max-height:40px;object-fit:contain;align-self:center;}
#help104 h1{font-size:1.2rem;line-height:1.25;margin:0;align-self:center;}
#help-return104{grid-column:1/-1;min-height:48px;width:100%;font:700 1rem/1.25 ui-rounded,system-ui,sans-serif;background:#122c34;color:#fff1d9;border:2px solid #d5c39e;border-radius:10px;padding:10px;}
#help104 .help-gallery104{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding:12px;padding:0 max(14px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));}
#help104 .guide099{width:100%;max-width:680px;box-sizing:border-box;margin:auto;}
#help104 h2{margin:18px 0 10px;color:#fff1d9;font-size:1.05rem;}
#help104 .lesson099{margin-bottom:12px;}
.help-link104{background:transparent;text-decoration:underline;font-size:.9rem;min-height:44px;}
body.player-menu104 .menu-tabs093{grid-template-columns:repeat(4,minmax(max-content,1fr));}
html{min-height:100%;overflow-y:auto;}
#help104 button:focus-visible,#help104 .help-gallery104:focus-visible{outline:3px solid #ffd17e;outline-offset:-3px;}
@media(prefers-reduced-motion:reduce){#help104{scroll-behavior:auto;}}
body.player-menu104 #share-result,body.player-menu104 #share-challenge,body.player-menu104 #finished-share{display:none!important;}
/* ===== One-screen phone layout =====
   The game fills exactly the visible viewport: fixed-height rows above and below,
   and the board takes whatever height is left (square, centred in #board-slot).
   Short screens shrink the rows before the board has to shrink much. */
:root{--head:39px;--row:44px;--tray:50px;--note:30px;--gap:4px}
@media (min-height:800px){:root{--row:48px;--tray:54px}}
@media (max-height:740px){:root{--row:40px;--tray:42px;--note:22px}}
@media (max-height:620px){:root{--head:32px;--row:38px;--tray:38px;--note:18px;--gap:3px}}
main{display:flex;flex-direction:column;gap:var(--gap);height:100vh;height:100dvh;box-sizing:border-box;padding:max(4px,env(safe-area-inset-top)) 6px max(6px,env(safe-area-inset-bottom))}
#scroll-clearance{display:none}
main>.game-header{height:var(--head);min-height:0;margin:0}
main>.top-actions{margin:0}
/* The top row is 8px shorter than the others (its pill stays the same size) and the bottom
   rows get that space back as wider gaps, so the board keeps its size. */
main>.top-actions>button{height:calc(var(--row) - 8px);min-height:0}
main>.top-actions>button::before{inset:3px 0}
#board-slot{flex:1 1 0;min-height:0;container-type:size;display:grid;place-items:end center}
#board-slot>#wall{width:min(100cqw,100cqh)}
main>#credits{margin:0;height:var(--tray)}
main>#credits>button{height:var(--tray);min-height:0}
main>.feedback-line{height:var(--note);min-height:0;margin:0}
main>.feedback-line #feedback{height:var(--note);min-height:0;max-height:var(--note);overflow:hidden;line-height:calc(var(--note) / 2)}
main>#board-foot,main>.rail-shell,main>.word-actions{height:var(--row);min-height:0;margin:0}
main>#board-foot>*,main>#board-foot #movement-mode>button,main>.rail-shell button,main>.word-actions>button{height:var(--row);min-height:0}
main>.rail-shell :is(#current-draft,#word-rail){height:var(--row);min-height:0}
main>:is(.rail-shell,.word-actions){margin-top:4px}
@media (min-height:800px){main>:is(.rail-shell,.word-actions){margin-top:6px}}
@media (max-height:740px){main>.feedback-line #feedback{white-space:nowrap;text-overflow:ellipsis;line-height:var(--note);font-size:11px}}
@media (max-height:620px){.game-header #save-status:not([data-error=true]){display:none}main>.feedback-line #feedback{font-size:10px}}
/* Panels that used to extend the page now float over it, so the board never moves. */
#score-panel:not([hidden]),#picker:not([hidden]){position:fixed;z-index:80;left:0;right:0;bottom:max(6px,env(safe-area-inset-bottom));width:auto;max-width:440px;margin:0 auto;box-sizing:border-box;box-shadow:0 -6px 28px #000b}
#score-panel:not([hidden]){max-height:min(85dvh,var(--score-max-height,85dvh));inset-inline:6px}
#picker:not([hidden]){max-height:50dvh;overflow:auto;inset-inline:6px}
main>#finished:not([hidden]){flex:0 1 auto;min-height:0;max-height:38dvh;overflow:auto;margin:0}
/* ===== Dark surfaces =====
   Menu, sheets and dialogs use the board's dark palette (was cream paper).
   Gold marks the selected tab or option; primary actions stay mint. */
:root{--sheet:#1c2f3c;--raised:#2b4352;--raised-line:#4f6a7a;--inset:#223846;--on-gold:#17313a;--on-mint:#12302c}
:is(#menu,#save-warning,#finish-confirm,.experience-panel){background:var(--sheet);color:var(--ink);border-color:var(--raised-line)}
:is(#menu,#save-warning,#finish-confirm,.experience-panel) :is(p,li,h2,h3,h4,h5,small,label,summary,dt,dd,strong,em,figcaption,legend,th,td){color:inherit}
:is(#menu,#save-warning,#finish-confirm,.experience-panel) :is(button,select,input,textarea){background:var(--raised);color:var(--ink);border-color:var(--raised-line)}
:is(#menu,#save-warning,#finish-confirm,.experience-panel) :is(details,section.menu-card,.saved-run,article,figure,fieldset,#menu-status){background:var(--inset);color:var(--ink);border-color:var(--raised-line)}
:is(#menu,#save-warning,#finish-confirm,.experience-panel) :is(button,[role=tab]):is([aria-selected=true],[aria-pressed=true]){background:var(--gold);color:var(--on-gold);border-color:var(--gold)}
:is(#menu,#save-warning,#finish-confirm,.experience-panel) button.primary{background:var(--mint);color:var(--on-mint);border-color:var(--mint)}
:is(#menu,#save-warning,#finish-confirm,.experience-panel) :is(button,select,input):disabled{background:transparent;color:var(--muted);border-color:#3a5262}
:is(#menu,.experience-panel) a{color:var(--gold)}
/* A finished game shows a one-row result bar in place of the (disabled) word actions,
   so the board keeps its size. Full details stay in the Menu's finished section. */
main:has(>#finished:not([hidden]))>.word-actions{display:none}
main>#finished:not([hidden]){flex:none;display:flex;align-items:center;gap:6px;height:var(--row);max-height:none;overflow:hidden;margin:4px 0 0;padding:0 4px 0 10px;box-sizing:border-box;border-radius:10px}
main>#finished:not([hidden])>:not(#final-total,#finished-cubesake,#new-game-finished){display:none}
main>#finished #final-total{flex:1 1 auto;min-width:0;white-space:nowrap;font-size:1.15rem}
main>#finished #final-total::before{content:"Final ";font-size:.75rem;font-weight:600;color:var(--muted)}
@media (max-width:360px){main>#finished #new-game-finished{display:none}main>#finished #final-total{font-size:1.05rem;overflow:hidden;text-overflow:ellipsis}main>#finished #final-total::before{content:none}main>#finished :is(#finished-cubesake,#new-game-finished){padding:0 7px;font-size:.72rem}}
main>#finished :is(#finished-cubesake,#new-game-finished){flex:none;height:calc(var(--row) - 8px);min-height:0;margin:0;padding:0 10px;white-space:nowrap;font-size:.8rem}
/* Lesson cards (Help, loading screen, landscape reminder) are dark; each picture
   sits on a light plate so its dark strokes stay visible. */
.lesson099{background:var(--inset);color:var(--ink);border-color:var(--raised-line)}
.lesson099 img{background:#efe4cc;border-radius:10px;padding:6px;box-sizing:border-box}
#beta-loader072{background:#203944;color:var(--ink)}
/* ===== Menu, Help and score sheet polish =====
   Flat Settings cards, a shared segmented control, two-line game buttons on Play,
   Help with How to play / Scoring tabs, and a score sheet that reads as a score. */
.visually-hidden107{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.segmented107{display:flex;border:1px solid var(--raised-line);border-radius:10px;overflow:hidden;background:var(--inset)}
:is(#menu,#help104) .segmented107 button{flex:1 1 0;min-width:0;min-height:40px;margin:0;padding:0 10px;border:0;border-radius:0;background:transparent;color:var(--ink);font-weight:700;box-shadow:none}
:is(#menu,#help104) .segmented107 button+button{border-left:1px solid var(--raised-line)}
:is(#menu,#help104) .segmented107 button:is([aria-selected=true],[aria-pressed=true]){background:var(--gold);color:var(--on-gold)}
/* Settings */
#menu #page-more .settings107{display:grid;gap:10px;margin:0 0 12px;padding:12px;background:var(--inset);border:1px solid var(--raised-line);border-radius:12px}
#menu #page-more .settings107>h3{margin:0;font-size:1.05rem}
#menu #page-more .settings107 p{margin:0}
#menu #page-more .setting-help107{margin-top:-6px;font-size:.8125rem;color:var(--muted)}
#menu #page-more .settings107>label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0}
#menu #page-more .settings107>label select{width:auto}
#menu #page-more .sound-row107{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center}
#menu #page-more .sound-row107>label{display:grid;grid-template-columns:1fr auto;gap:2px 8px;margin:0;padding:0}
#menu #page-more .sound-row107 #volume{grid-column:1/-1}
#menu #page-more .sound-style107{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;font-size:.875rem}
#menu #page-more .sound-style107>button{min-height:40px;padding:0 12px;white-space:nowrap}
#menu #page-more .sound-style107 .segmented107 button{min-height:40px}
#menu #page-more .sound-status107:empty{display:none}
#menu #page-more .settings107 #export-history{width:100%}
#menu #page-more .settings107 details{border:1px solid var(--raised-line);border-radius:10px}
#menu #page-more #accessibility{margin:0 0 12px;border:1px solid var(--raised-line);border-radius:12px}
#menu #page-more .about065{margin:0;padding:0;border:0;background:none}
/* Play: the first game button is the main one; each shows its theme and date underneath. */
#menu #play-flow102 .mode-choices101 button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:58px;padding:8px 10px}
#menu #play-flow102 .mode-choices101 .line1{font-weight:800;font-size:1rem}
#menu #play-flow102 .mode-choices101 .line2{font-weight:600;font-size:.8125rem;opacity:.85}
#menu #play-flow102 .mode-choices101 .line2:empty{display:none}
#menu #play-flow102 #play-finish102{background:transparent;min-height:40px}
#menu #play-flow102 .cubesakes107{display:grid;gap:6px;margin-top:6px;padding-top:12px;border-top:1px solid var(--raised-line)}
#menu #play-flow102 .cubesakes107 h3{margin:0;font-size:1rem}
#menu #play-flow102 .cubesakes107 p{font-size:.8125rem;color:var(--muted)}
#menu #play-flow102 #cubesake-actions{display:flex;margin:0}
#menu #play-flow102 #cubesake-actions button{flex:1;min-height:44px;font-size:.9rem}
/* Leaderboard: name, Change and Invite on one row */
#menu .boards100 .identity100{flex-wrap:wrap;gap:8px;margin:0 0 12px}
#menu .boards100 .identity100 svg{width:120px}
#menu .boards100 .identity100 button{min-height:40px;padding:0 12px}
#menu .boards100 .identity100 button:last-child{margin-left:auto}
#menu .boards100 .invite105 small:empty{display:none}
#menu .boards100 .tabs100{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:8px}
/* Help header: wordmark and a solid Back button, then the two tabs */
#help104 header{grid-template-columns:minmax(70px,100px) minmax(0,1fr) auto;align-items:center}
#help104 header img{grid-column:1;grid-row:1}
#help104 #help-return104{grid-column:3;grid-row:1;white-space:nowrap;justify-self:end;width:auto;min-height:44px;padding:0 16px;background:var(--gold);color:var(--on-gold);border:0;font-weight:800}
#help104 #help-return104:focus-visible{outline:3px solid #fff1d9;outline-offset:2px}
#help104 .help-tabs107{grid-column:1/-1}
#help104 .help-scoring107{padding-top:4px}
#help104 .help-scoring107 :is(h2,h3){color:var(--ink)}
#help104 .help-scoring107 p{color:var(--ink);font-size:.95rem;line-height:1.45}
#help104 .help-scoring107 :is(.score-lesson096,.worked096){margin:10px 0;padding:12px;background:var(--inset);border:1px solid var(--raised-line);border-radius:12px}
#help104 .help-scoring107 .worked096{border-left:4px solid var(--gold)}
#help104 .help-scoring107 .formula096,#help104 .help-scoring107 .completion096{font-weight:700}
#help104 .help-scoring107 .example-letters096{display:flex;gap:4px;margin:8px 0}
#help104 .help-scoring107 .example-letters096 span{display:grid;place-items:center;width:34px;height:38px;border-radius:6px;background:#efe4cc;color:#17313a;font-weight:800}
#help104 .help-scoring107 .example-letters096 small{font-size:.6rem;line-height:1}
#help104 .help-scoring107 #letter-values{color:var(--ink);word-spacing:6px;line-height:1.9}
#help104 .help-scoring107 .rounding096{font-size:.8rem;color:var(--muted)}
/* Score sheet: Back to game first; finishing is a quieter second step */
#score-panel #score-primary #score-close{order:-1}
#score-panel #request-finish{background:transparent;color:var(--ink);border:1px solid var(--raised-line)}
#score-panel #score-help107{width:100%;min-height:44px;margin:4px 0}
#help104 .help-scoring107 .daily-note100{display:none}
#help104 .help-scoring107 .score-lesson096 h3{margin:0 0 6px}
#help104 .help-scoring107 h2{margin:14px 0 4px}
#menu #page-more .settings107 .setting065{min-height:0;margin:0}
@media (max-width:374px){#menu #page-more .sound-style107{grid-template-columns:auto minmax(0,1fr)}#menu #page-more .sound-style107>button{grid-column:1/-1}}
/* Help: room between Back to game (and its focus ring) and the tabs; Find words art fills its card */
#help104 header{row-gap:14px}
.lesson099[data-card=find] img{height:auto;max-height:280px}
/* ===== Cubesakes: builder, gallery and saved card on the dark palette ===== */
.experience-panel .experience-heading,#compose067 .experience-heading{background:var(--sheet);color:var(--ink)}
.experience-panel .experience-heading h2{color:var(--ink)}
.experience-panel summary{background:transparent;color:var(--ink)}
.experience-panel input:not([type=checkbox]):not([type=range]),.experience-panel textarea,#compose067 .compose-meta077 :is(input,textarea){background:var(--inset);color:var(--ink);border:1px solid var(--raised-line);border-radius:8px}
.experience-panel :is(input,textarea)::placeholder{color:var(--muted)}
.experience-panel select{background:var(--raised);color:var(--ink)}
.experience-panel input[type=checkbox]{accent-color:var(--gold)}
/* Builder: one row of turn buttons under the picture, then X-ray, title and notes; Save stays pinned. */
:is(#compose067,.cubesake-detail) .curated-view080{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
:is(#compose067,.cubesake-detail) .curated-view080 button{width:48px;min-width:48px;height:44px;min-height:44px;border:1px solid var(--raised-line);border-radius:10px;background:var(--raised);color:var(--ink);font:700 22px/1 system-ui}
:is(#compose067,.cubesake-detail) .curated-view080>.reset-view081{width:auto;padding:0 14px;margin:0 6px;font:700 .85rem/1 system-ui}
:is(#compose067,.cubesake-detail) .camera-axes075{margin:14px 0 4px}
@media (max-width:359px){:is(#compose067,.cubesake-detail) .curated-view080{gap:5px}:is(#compose067,.cubesake-detail) .curated-view080 button{width:40px;min-width:40px}:is(#compose067,.cubesake-detail) .curated-view080>.reset-view081{min-width:0;margin:0 2px;padding:0 10px}}
/* X-ray checkbox with its see-through slider beside it */
.xray107{display:flex;align-items:center;gap:12px;min-height:44px}
.xray107>label{display:flex;align-items:center;gap:8px;flex:none;white-space:nowrap}
.xray107>input[type=range]{flex:1 1 auto;width:auto;min-width:0;height:44px;margin:0;padding:0;-webkit-appearance:none;appearance:none;background:transparent!important;border:0!important;--fill:43%}
/* A big round handle on a gold-filled track (--fill is set from the value in JS) */
.xray107>input[type=range]::-webkit-slider-runnable-track{height:10px;border-radius:5px;border:1px solid var(--raised-line);background:linear-gradient(90deg,var(--gold) var(--fill),var(--inset) var(--fill))}
.xray107>input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:36px;height:36px;margin-top:-14px;border-radius:50%;background:#fff1d9;border:3px solid var(--gold);box-shadow:0 2px 8px #000a}
.xray107>input[type=range]::-moz-range-track{height:10px;border-radius:5px;border:1px solid var(--raised-line);background:linear-gradient(90deg,var(--gold) var(--fill),var(--inset) var(--fill))}
.xray107>input[type=range]::-moz-range-thumb{width:32px;height:32px;border-radius:50%;background:#fff1d9;border:3px solid var(--gold);box-shadow:0 2px 8px #000a}
.xray107>input[type=range]:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:8px}
.toggles108{display:flex;flex-wrap:wrap;gap:0 24px}
.xray107>input[type=range][hidden]{display:none}
/* Lantern glow checkbox and the turning GIF shown in place of the still picture */
.glow108{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--ink)}
.glow108 input[type=checkbox]{flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;margin:0;accent-color:var(--gold)}
.cubesake-detail .jewel-preview[hidden]{display:none}
.cubesake-detail .gif108{scroll-margin-top:72px}
.cubesake-detail .cubesake-gif108{width:100%;min-height:48px;margin-top:8px;font-weight:800;background:var(--raised);color:var(--gold)!important;border:1px solid var(--gold)!important}
.cubesake-detail .cubesake-gif108:disabled{opacity:.8}
:is(#compose067,.cubesake-detail) .curated-view080 output{order:9;flex-basis:100%;text-align:center;font-size:.8rem;color:var(--muted)}
#compose067 .compose-style078{color:var(--ink);min-height:40px}
#compose067 .compose-meta077{display:grid;gap:10px;margin:8px 0}
#compose067 .compose-meta077 [role=tabpanel]{padding:0;border:0;background:none;color:var(--ink)}
#compose067 [role=tabpanel]>small{color:var(--muted)}
#compose067 .compose-body077>p[role=status]{color:var(--muted)}
#compose067 .camera-actions075{background:var(--sheet);border-top:1px solid var(--raised-line);padding:8px 0 calc(8px + env(safe-area-inset-bottom))}
#compose067 .camera-actions075 .primary-save075{background:var(--mint);color:var(--on-mint);border:0;font-weight:800}
#compose067 .jewel-preview,.cubesake-detail .jewel-preview{touch-action:none;border-radius:10px}
.cubesake-detail .curated-view080 button{border:1px solid var(--raised-line);background:var(--raised);color:var(--ink)}
.cubesake-detail .curated-view080 output{color:var(--muted)}
/* Gallery */
.gallery-empty107{display:grid;gap:10px;margin:8px 0 14px}
.gallery-empty107 button{background:var(--mint)!important;color:var(--on-mint)!important;border:0!important;font-weight:800}
.rolodex .jewel-card{background:var(--inset);color:var(--ink);border:1px solid var(--raised-line);box-shadow:none;border-radius:12px}
.rolodex .jewel-card img{border-radius:8px}
.gallery-backup107{margin-top:16px;border:1px solid var(--raised-line);border-radius:12px;padding:0 10px}
.gallery-backup107>summary{min-height:44px;display:flex;align-items:center;font-weight:700}
.gallery-backup107 p,.gallery-backup107 label{font-size:.85rem;color:var(--ink)}
#compose067 .compose-meta077{grid-template-columns:1fr}
.cubesake-detail .cubesake-summary{display:none}
.cubesake-detail .cubesake-share{background:var(--mint)!important;color:var(--on-mint)!important;border:0!important;font-weight:800}
.cubesake-detail .primary-save075{background:var(--raised);color:var(--ink);border:1px solid var(--raised-line);font-weight:700}
.cubesake-detail .cubesake-status{color:var(--muted)}
.cubesake-detail .treasure067{border-top-color:var(--raised-line)}
/* Menu tabs: the focus ring sits inside the tab so the scrolling tab row can't clip it */
#menu .menu-tabs093>button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px currentColor}
/* Help → Scoring: letter values as a grid of tiles */
#help104 .help-scoring107 #letter-values{display:none}
#help104 .letter-grid107{display:grid;grid-template-columns:repeat(auto-fill,minmax(40px,1fr));gap:6px}
#help104 .letter-grid107 span{display:grid;place-items:center;height:44px;border-radius:6px;background:#efe4cc;color:#17313a;font-weight:800;font-size:1.05rem;line-height:1}
#help104 .letter-grid107 small{font-size:.65rem;font-weight:700}
/* Words tab: current score on top */
#menu #words-score107{display:grid;gap:4px;margin:0 0 12px;padding:12px;background:var(--inset);border:1px solid var(--raised-line);border-radius:12px}
#menu #words-score107 strong{font-size:1.25rem}
#menu #words-score107 p{margin:0;font-size:.875rem;color:var(--muted)}
#menu #words-score107 button{justify-self:start;min-height:40px;margin-top:4px;padding:0 12px}
