:root{--theme-bg:#091524;--theme-surface:#12283b;--theme-accent:#a5d8e8;color:#edf6dc;font-synthesis:none;--panel:#142720e0;--panel-edge:#84a47938;--muted:#91a898;--bright:#eef7dc;--moss:#9fd18c;background:#09130f;font-family:Inter,Avenir,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}[hidden]{display:none!important}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}html,body,#app{width:100%;height:100%;margin:0}body{overscroll-behavior:none;background:radial-gradient(circle at 50% 28%,#2c533ec2 0,#0000 45%),linear-gradient(145deg,#0000 0 48%,#87a9780a 49% 51%,#0000 52%),#09130f;overflow:hidden}body:before{pointer-events:none;content:"";opacity:.28;mix-blend-mode:screen;background-image:radial-gradient(circle at 15% 20%,#c5e6ad29 0 1px,#0000 1.5px),radial-gradient(circle at 80% 72%,#c5e6ad1f 0 1px,#0000 1.5px);background-size:120px 130px,170px 160px;position:fixed;inset:0}button{color:inherit;font:inherit}button:focus-visible{outline-offset:3px;outline:2px solid #dfffb5}.game-shell{width:min(100%,1180px);height:100%;min-height:100dvh;padding:max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));grid-template-rows:auto auto auto minmax(0,1fr) auto auto;margin-inline:auto;display:grid;position:relative}.topbar{z-index:3;justify-content:space-between;align-items:center;gap:18px;width:100%;display:flex}.brand{min-width:0}.eyebrow,.modal__eyebrow{color:#8eaa92;letter-spacing:.19em;margin:0 0 2px;font-size:clamp(.54rem,1.2vw,.68rem);font-weight:750}h1,h2{color:#f2f6de;letter-spacing:-.04em;margin:0;font-family:Georgia,Times New Roman,serif;font-weight:500}h1{text-shadow:0 2px 22px #d2ffb421;font-size:clamp(1.85rem,4.5vw,3rem);line-height:.98}h2{font-size:clamp(1.9rem,7vw,2.7rem)}.topbar__actions{align-items:center;gap:8px;display:flex}.icon-button,.text-button,.primary-button{border:1px solid var(--panel-edge);cursor:pointer;background:linear-gradient(#ffffff08,#0000),#12231de0;transition:border-color .14s,background-color .14s,transform .14s;box-shadow:inset 0 1px #ffffff0a,0 8px 22px #0000001f}.icon-button:hover,.text-button:hover,.primary-button:hover{background-color:#243e31f0;border-color:#b9de9f8a}.icon-button:active,.text-button:active,.primary-button:active{transform:translateY(1px)}.icon-button:disabled,.text-button:disabled{cursor:default;opacity:.45}.icon-button{color:#d9e9c7;border-radius:50%;place-items:center;width:44px;height:44px;padding:0;font-family:Georgia,serif;font-size:1rem;font-weight:700;display:grid}.text-button{color:#c9d9c3;letter-spacing:.04em;border-radius:999px;min-height:44px;padding:0 15px;font-size:.76rem;font-weight:700}.text-button span{margin-right:4px;font-size:1rem}.hud{z-index:3;border:1px solid var(--panel-edge);background:linear-gradient(100deg, #ffffff05, transparent), var(--panel);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:18px;grid-template-columns:minmax(92px,1fr) auto minmax(92px,1fr);align-items:center;gap:clamp(8px,2vw,18px);width:min(100%,670px);margin:8px auto 0;padding:7px 13px;display:grid;position:relative;box-shadow:inset 0 1px #ffffff0a,0 14px 45px #00000029}.hud-stat{grid-template-columns:minmax(0,1fr);gap:0;min-width:0;display:grid}.hud-stat .hud-label{overflow-wrap:anywhere}.hud-stat:last-of-type{text-align:right;justify-items:end}.hud-label{color:#8da093;letter-spacing:.15em;text-transform:uppercase;font-size:.57rem;font-weight:750}.hud-stat strong{color:var(--bright);font-variant-numeric:tabular-nums;text-overflow:ellipsis;font-size:clamp(1.15rem,3.2vw,1.55rem);line-height:1.1;overflow:hidden}.next-panel{border-inline:1px solid #89a58026;grid-template-columns:auto auto;align-items:center;gap:9px;padding-inline:clamp(6px,2vw,20px);display:grid}.next-hint{color:#71877a;letter-spacing:.035em;text-align:center;white-space:nowrap;grid-column:1/-1;font-size:.52rem}.next-rune{border:1px solid color-mix(in srgb, var(--rune-color) 78%, white);width:30px;height:30px;color:color-mix(in srgb, var(--rune-color) 62%, white);box-shadow:0 0 12px color-mix(in srgb, var(--rune-color) 28%, transparent), inset 0 0 0 2px #030807b3;cursor:default;background:radial-gradient(circle at 38% 30%,#ffffff1f,#0000 32%),#101a18;border-radius:50%;place-items:center;padding:0;display:grid;position:relative}.next-rune__glyph{font-family:Georgia,Times New Roman,serif;font-size:1.06rem;font-weight:700;line-height:1;display:block}.next-rune--waiting{opacity:.65;border-style:dashed}.next-hint--important{color:#dfbd88}.next-rune__order{border:1px solid color-mix(in srgb, var(--rune-color) 60%, white);color:#f4fae8;background:#13231c;border-radius:50%;place-items:center;width:13px;height:13px;font-size:.47rem;font-weight:800;line-height:1;display:grid;position:absolute;bottom:-3px;right:-3px}.streak-chip{z-index:4;color:#c8e9a4;letter-spacing:.06em;background:#203a27eb;border:1px solid #c8ef8f59;border-radius:999px;padding:4px 10px;font-size:.67rem;font-weight:700;position:absolute;top:-8px;left:50%;transform:translate(-50%);box-shadow:0 7px 18px #0000002e}.journey-panel,.journey-controls{z-index:3;align-items:center;gap:18px;width:min(100%,670px);margin-inline:auto;display:grid;position:relative}.journey-panel{grid-template-columns:minmax(0,1fr) 150px;margin-top:7px;padding:0 14px}.chapter-card,.pressure-card{min-width:0}.chapter-heading,.objective-line,.pressure-heading{justify-content:space-between;align-items:center;gap:10px;display:flex}.objective-line{margin:1px 0 7px;font-size:.8rem}.objective-line strong{color:#d5e6c5;font-weight:600}#objective-progress,#pressure-value{color:#c1d5b2;font-variant-numeric:tabular-nums;flex-shrink:0;font-size:.7rem}.quiet-button{color:#aabca9;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:8px;min-height:32px;padding:4px 7px;font-size:.7rem}.quiet-button:hover{border-color:var(--panel-edge);color:#e6f2d6;background:#89a58014}.quiet-button:disabled,.pulse-button:disabled,.primary-button:disabled{cursor:default;opacity:.45}.journey-meter{color:#a7cd86;appearance:none;background:#a6c19121;border:none;border-radius:999px;width:100%;height:4px;display:block;overflow:hidden}.journey-meter::-webkit-progress-value{background:#a7cd86;border-radius:999px;transition:width .25s}.collection-card{color:#c3d8b0;text-align:center;border-left:1px solid #89a58024;justify-items:center;padding-left:12px;font-size:.7rem;display:grid}.constellation{width:104px;height:36px;display:block;overflow:visible}.constellation__path{fill:none;stroke:#a2c18940;stroke-width:1px}.constellation circle{fill:#1c3127;stroke:#617859;stroke-width:1px;transition:fill .5s}.is-complete .constellation__path{stroke:#b1c37c}.collection-hint{color:#819c88;margin-top:2px;font-size:.61rem}.collection-reward{animation:1.2s ease-out constellation-reveal}@keyframes constellation-reveal{35%{color:#f5ffd6;filter:drop-shadow(0 0 10px #c7eb8bcc)}}.journey-controls{border:1px solid var(--panel-edge);background:var(--panel);border-radius:16px;grid-template-columns:minmax(0,1fr) auto;gap:10px 25px;padding:8px 14px}.pressure-heading{margin-bottom:7px}#pressure-hint,.pulse-hint{color:#97ad99;margin-top:6px;font-size:.64rem;line-height:1.35;display:block}.is-danger #pressure-value,.is-danger #pressure-hint{color:#e5b778}.is-danger .journey-meter::-webkit-progress-value{background:#dcaa67}.is-danger .journey-meter::-moz-progress-bar{background:#dcaa67}.pulse-card{text-align:center;min-width:173px}.pulse-button{color:#c9e4b7;cursor:pointer;background:#1b3428;border:1px solid #9bc18f3b;border-radius:12px;justify-content:center;align-items:center;gap:9px;width:100%;min-height:44px;padding:7px 13px;font-size:.78rem;font-weight:650;display:flex}.pulse-button.is-ready{background:#2a4832;border-color:#bbe1918c}.pulse-button:not(:disabled):hover,.pulse-button[aria-pressed=true]{background:#365a3d;border-color:#d8edb4}.pulse-button__icon{color:#d5ebac;font-size:1.35rem;line-height:1}.pulse-energy{grid-template-columns:repeat(2,4px);gap:3px;display:grid}.pulse-energy i{background:#57705a;border-radius:50%;width:4px;height:4px}.pulse-target-controls{border-top:1px solid var(--panel-edge);grid-column:1/-1;justify-content:space-between;align-items:center;gap:10px;padding-top:9px;display:flex}.pulse-target-controls p{color:#d3e1c4;margin:0;font-size:.76rem;line-height:1.4}.pulse-target-actions{flex-shrink:0;align-items:center;gap:5px;display:flex}.pulse-target-actions .primary-button{width:auto;min-height:40px;padding:6px 12px}.pulse-target-actions .quiet-button{min-height:40px}@keyframes score-bump{45%{color:#dcffae;text-shadow:0 0 16px #baff81b3;transform:scale(1.12)}}.board-frame{border-radius:28px;min-width:0;min-height:0;position:relative;overflow:hidden}.board-frame:before{z-index:0;pointer-events:none;content:"";border:1px solid #799c7a12;border-radius:50%;position:absolute;inset:10% 9%;box-shadow:0 0 90px #4c7c541a,inset 0 0 90px #0c19134d}.board-frame__rune{color:#b8d29f08;pointer-events:none;font-family:Georgia,serif;font-size:min(42vw,42vh);line-height:1;position:absolute;top:50%;left:50%;transform:translate(-50%,-51%)}#game-root{z-index:1;touch-action:manipulation;min-width:0;min-height:0;position:absolute;inset:0;overflow:hidden}#game-root canvas{touch-action:manipulation;width:100%;height:100%;display:block}.game-footer{z-index:3;justify-content:center;align-items:center;gap:16px;min-height:22px;display:flex}.turn-status{color:var(--muted);letter-spacing:.045em;text-align:center;grid-column:1/-1;margin:3px 0 0;font-size:clamp(.65rem,2vw,.76rem)}.seed-label{color:#607768;grid-area:1/2;justify-self:end;margin:3px 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.62rem}.modal{color:#dce8cf;background:radial-gradient(circle at 50% 0,#5c875233,#0000 42%),linear-gradient(145deg,#1f352bfa,#0d1b16fc);border:1px solid #a8cb934d;border-radius:26px;width:min(100% - 30px,510px);max-height:min(100dvh - 30px,680px);margin:auto;padding:clamp(22px,5vw,38px);overflow:auto;box-shadow:0 32px 100px #0000008f,inset 0 1px #ffffff0d}.modal__crest{color:#bee393;background:#5c8b471a;border:1px solid #b8e0914d;border-radius:50%;place-items:center;width:38px;height:38px;margin:0 auto 13px;display:grid}.modal__crest--large{width:48px;height:48px}.modal__eyebrow,.modal h2{text-align:center}.rules-list{counter-reset:rules;gap:14px;margin:25px 0 20px;padding:0;list-style:none;display:grid}.rules-list li{color:#afc0b0;counter-increment:rules;min-height:38px;padding-left:46px;font-size:.84rem;line-height:1.45;position:relative}.rules-list li:before{color:#aeda91;content:counter(rules);border:1px solid #a3c28f40;border-radius:10px;place-items:center;width:32px;height:32px;font-family:Georgia,serif;display:grid;position:absolute;top:1px;left:0}.rules-list strong{color:#e0ecd2;margin-bottom:1px;font-size:.84rem;display:block}.modal__note{color:#899e8c;text-align:center;border-top:1px solid #91ad8721;margin:0 0 22px;padding-top:16px;font-size:.75rem;line-height:1.45}.primary-button{color:#ebf8d7;letter-spacing:.04em;background:linear-gradient(#ffffff0d,#0000),#31533c;border-color:#aedc8a61;border-radius:14px;width:100%;min-height:48px;padding:10px 18px;font-size:.82rem;font-weight:750;display:block}.final-score{border-block:1px solid #91ad8724;justify-items:center;gap:2px;margin:24px 0 18px;padding:17px;display:grid}.final-score span,.final-stats dt{color:#8fa190;letter-spacing:.14em;text-transform:uppercase;font-size:.61rem;font-weight:750}.final-score strong{color:#effbdc;font-variant-numeric:tabular-nums;font-size:clamp(2.1rem,10vw,3.2rem);line-height:1}.final-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 22px;display:grid}.final-stats div{text-align:center;justify-items:center;gap:3px;display:grid}.final-stats dd{color:#e1edd4;font-variant-numeric:tabular-nums;margin:0;font-size:1.05rem;font-weight:700}@media (max-width:560px){.game-shell{padding-top:max(9px, env(safe-area-inset-top))}.topbar{align-items:center}.eyebrow{display:none}.text-button{width:44px;padding:0;font-size:0;overflow:hidden}.text-button span{margin:0;font-size:1.15rem}.hud{border-radius:15px;grid-template-columns:minmax(66px,1fr) auto minmax(66px,1fr);margin-top:6px;padding:6px 10px}.next-panel{grid-template-columns:1fr;justify-items:center;gap:2px;padding-inline:9px;display:grid}.next-hint{display:none}.next-preview{min-width:auto}.next-rune{width:27px;height:27px}.next-rune__glyph{font-size:.96rem}.streak-chip{padding:2px 7px;font-size:.57rem;top:-9px}.journey-panel{grid-template-columns:minmax(0,1fr) 108px;gap:10px;margin-top:5px;padding-inline:5px}.collection-card{padding-left:7px;font-size:.64rem}.constellation{width:92px;height:32px}.collection-hint{font-size:.54rem}.objective-line{gap:5px;font-size:.73rem}.chapter-heading{gap:0}.quiet-button{padding-inline:4px;font-size:.64rem}.journey-controls{gap:8px 13px;padding:8px 10px}.pulse-card{min-width:145px}.pulse-button{gap:6px;padding-inline:9px;font-size:.73rem}.pulse-hint,#pressure-hint{font-size:.59rem}.pulse-target-controls{flex-direction:column;align-items:stretch;gap:5px}.pulse-target-controls p{font-size:.69rem}.pulse-target-actions{justify-content:space-between}.pulse-target-actions .primary-button{flex:1}.board-frame{border-radius:18px}.game-footer{display:block}.seed-label{display:none}}@media (min-width:1000px) and (min-height:641px){.game-shell{grid-template-rows:auto auto 195px minmax(0,1fr) auto;grid-template-columns:minmax(0,1fr) 270px;column-gap:22px}.topbar{grid-area:1/1/auto/-1}.hud{grid-area:2/1;margin-bottom:8px}.board-frame{grid-area:3/1/5}.journey-panel,.journey-controls{border:1px solid var(--panel-edge);background:var(--panel);border-radius:16px;grid-column:2;grid-template-columns:minmax(0,1fr);align-self:start;width:100%;margin:0;padding:14px 16px}.journey-panel{grid-row:3;gap:15px}.collection-card{border-top:1px solid #89a58024;border-left:0;padding:11px 0 0}.constellation{width:120px;height:42px}.journey-controls{scrollbar-width:thin;grid-row:4;gap:18px;max-height:100%;overflow-y:auto}.pulse-target-controls{flex-direction:column;align-items:stretch;gap:10px}.pulse-target-actions{justify-content:space-between}.pulse-target-actions .primary-button{flex:1}.game-footer{grid-area:5/1/auto/-1}}@media (max-height:640px) and (orientation:landscape){.game-shell{grid-template-rows:auto auto auto auto minmax(22px,1fr);grid-template-columns:minmax(250px,.38fr) minmax(0,1fr);column-gap:10px;min-height:0;overflow-y:auto}.topbar{grid-area:1/1;gap:8px}.topbar .eyebrow{display:none}.topbar h1{white-space:nowrap;font-size:1.85rem}.topbar .text-button{width:40px;padding:0;font-size:0}.topbar .text-button span{margin:0;font-size:1.1rem}.topbar .icon-button{width:40px;height:40px}.hud{grid-area:2/1;grid-template-columns:minmax(40px,1fr) auto minmax(40px,1fr);gap:5px;width:100%;padding:6px 8px}.next-panel{grid-template-columns:1fr;justify-items:center;gap:3px;padding:0 7px}.next-hint{display:none}.journey-panel{grid-area:3/1;grid-template-columns:minmax(0,1fr) 85px;gap:8px;padding-inline:3px}.objective-line{font-size:.69rem}.constellation{width:74px;height:27px}.collection-card{padding-left:4px;font-size:.6rem}.collection-hint{font-size:.53rem}.journey-controls{grid-area:4/1;gap:7px;margin-top:10px;padding:7px}.pulse-card{min-width:130px}.pulse-button{gap:5px;padding-inline:7px;font-size:.69rem}.pulse-hint,#pressure-hint{font-size:.55rem}.pulse-target-controls{flex-direction:column;align-items:stretch}.pulse-target-actions{justify-content:space-between}.pulse-target-actions .primary-button{flex:1}.board-frame{top:max(12px, env(safe-area-inset-top));height:calc(100dvh - max(12px, env(safe-area-inset-top)) - max(10px, env(safe-area-inset-bottom)));grid-area:1/2/6;align-self:start;min-height:0;position:sticky}.game-footer{grid-area:5/1}.seed-label{display:none}}:root[data-style]{--panel:color-mix(in srgb, var(--theme-surface) 91%, transparent);--panel-edge:color-mix(in srgb, var(--theme-accent) 26%, transparent);--bright:#f5f0df;--moss:var(--theme-accent);color:var(--bright);background:var(--theme-bg)}body{background:radial-gradient(ellipse at 50% 38%, var(--theme-surface), transparent 72%), var(--theme-bg)}:root[data-style=celestial] body:before{opacity:.55;background-image:radial-gradient(circle at 15% 20%,#bcd9e8 0 1px,#0000 1.5px),radial-gradient(circle at 80% 72%,#9cb4dc 0 1px,#0000 1.5px);background-size:187px 211px,263px 281px}:root[data-style=garden] body:before{opacity:.35;background:radial-gradient(at 0 70%,#496640,#0000 48%),radial-gradient(at 100% 15%,#537243,#0000 50%)}:root[data-style=ocean] body:before{opacity:.3;background:repeating-linear-gradient(112deg,#0000 0 13%,#9ce3d81c 14%,#0000 17% 29%)}.active-style{color:var(--theme-accent);letter-spacing:.05em;margin:7px 0 0;font-size:.8125rem}button:focus-visible{outline-color:var(--theme-accent)}.eyebrow,.modal__eyebrow,.hud-label,.next-hint,.collection-hint,.seed-label,#pressure-hint,.pulse-hint,.quiet-button{color:var(--muted)}.text-button,.icon-button,.primary-button{background:var(--panel);color:var(--bright)}.text-button:hover,.icon-button:hover,.primary-button:hover{border-color:var(--theme-accent);background-color:var(--theme-surface)}.objective-line strong,#objective-progress,#pressure-value,.collection-card{color:var(--bright)}.journey-meter{color:var(--theme-accent)}.journey-meter::-webkit-progress-value{background:var(--theme-accent)}.journey-meter::-moz-progress-bar{background:var(--theme-accent)}.pulse-button,.pulse-button.is-ready{color:var(--bright);border-color:var(--panel-edge);background:var(--theme-surface)}.pulse-button.is-ready{border-color:var(--theme-accent)}.pulse-button:not(:disabled):hover,.pulse-button[aria-pressed=true]{border-color:var(--bright);background:color-mix(in srgb, var(--theme-accent) 20%, var(--theme-surface))}.pulse-button__icon{color:var(--theme-accent)}.constellation__path{stroke:var(--panel-edge)}.constellation circle{fill:var(--theme-surface);stroke:var(--muted)}.constellation circle.is-revealed{fill:var(--bright);stroke:var(--theme-accent);filter:none}.board-frame:before{border-color:var(--panel-edge);box-shadow:none;opacity:.35}.board-frame__rune{display:none}.modal{color:var(--bright);border-color:var(--panel-edge);background:var(--theme-bg)}.modal__crest{color:var(--theme-accent);border-color:var(--panel-edge);background:var(--theme-surface)}.next-rune{width:34px;height:34px;box-shadow:none;background:0 0;border:none}.next-rune__glyph svg{width:100%;height:100%;display:block}.next-rune__order{background:var(--theme-bg);width:15px;height:15px;font-size:.625rem}.next-rune--waiting{outline:1px dashed var(--rune-color);outline-offset:2px}.style-button{font-size:.875rem}.style-dialog{width:min(680px,100% - 24px);max-height:calc(100dvh - 24px);padding:24px}.style-dialog__heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.style-dialog .modal__eyebrow,.style-dialog h2{text-align:left}.style-dialog h2{font-size:clamp(1.7rem,5vw,2.3rem)}.style-dialog__heading .icon-button{flex:0 0 44px;font:1.5rem/1 system-ui}.style-dialog__intro{color:var(--muted);margin:12px 0 20px;font-size:1rem;line-height:1.5}.style-options{gap:10px;display:grid}.style-option{border:1px solid color-mix(in srgb, var(--card-accent) 32%, transparent);background:radial-gradient(ellipse at 50% 100%, var(--card-surface), transparent 90%), var(--card-bg);color:#f5f0df;text-align:left;cursor:pointer;border-radius:16px;width:100%;padding:12px 18px 10px;display:block}.style-option:hover{border-color:var(--card-accent)}.style-option[aria-pressed=true]{border-color:var(--card-accent);box-shadow:0 0 0 2px var(--card-accent)}.style-option__heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.style-option__heading strong{font:1.25rem Georgia,serif}.style-option__check{color:var(--card-accent);visibility:hidden;font-size:.875rem}.style-option[aria-pressed=true] .style-option__check{visibility:visible}.style-option__description{color:#c1cfd1;margin-top:5px;font-size:.875rem;display:block}.style-option__pieces{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.style-piece{text-align:center;justify-items:center;gap:5px;font-size:.875rem;display:grid}.style-piece svg{width:44px;height:44px;display:block}.style-dialog__legend,.style-dialog__status{color:var(--muted);margin:16px 0;font-size:.875rem;line-height:1.5}.style-dialog__status{color:var(--theme-accent);min-height:1.5em}.style-dialog>.primary-button{width:100%;min-height:44px;font-size:1rem}@media (max-width:560px){.topbar{gap:8px}.topbar__actions{gap:5px}.topbar__actions .text-button{padding-inline:10px}.active-style{font-size:.75rem}.next-rune{width:30px;height:30px}.next-rune__glyph{width:100%;height:100%}.style-dialog{padding:18px}.style-option{padding:12px}.style-option__heading strong{font-size:1.125rem}.style-option__pieces{gap:3px}.style-piece{font-size:.75rem}.style-piece svg{width:40px;height:40px}}.next-hint.next-hint--important{white-space:normal;max-width:170px;display:block}.land-button{border:1px solid var(--panel-edge);width:100%;min-height:44px;color:var(--bright);background:var(--theme-surface);font:inherit;cursor:pointer;border-radius:10px;grid-column:1/-1;padding:5px 8px;font-size:.875rem;line-height:1.2}.land-button:not(:disabled):hover{border-color:var(--theme-accent)}.land-button:focus-visible{outline:2px solid var(--theme-accent);outline-offset:3px}.land-button:disabled{opacity:.45;cursor:default}.topbar{flex-wrap:wrap}.topbar__actions{flex-wrap:wrap;justify-content:flex-end;max-width:100%}.topbar .text-button.difficulty-button,.topbar .text-button.style-button{width:auto;min-width:56px;padding-inline:12px;font-size:.875rem}.difficulty-dialog{width:min(620px,100% - 24px);max-height:calc(100dvh - 24px);padding:24px}.difficulty-dialog h2,.difficulty-dialog .modal__eyebrow{text-align:left}.difficulty-dialog h2{font-size:clamp(1.65rem,5vw,2.2rem)}.difficulty-intro,.difficulty-note{color:var(--muted);margin:16px 0;font-size:.9375rem;line-height:1.5}.difficulty-options{border:0;gap:10px;min-width:0;margin:0;padding:0;display:grid}.difficulty-option{border:1px solid var(--panel-edge);background:var(--panel);color:var(--bright);cursor:pointer;border-radius:14px;align-items:flex-start;gap:12px;padding:14px;display:flex}.difficulty-option:has(input:checked){border-color:var(--theme-accent);box-shadow:inset 0 0 0 1px var(--theme-accent)}.difficulty-option:has(input:focus-visible){outline:2px solid var(--theme-accent);outline-offset:3px}.difficulty-option input{width:18px;height:18px;accent-color:var(--theme-accent);flex:none;margin:3px 0 0}.difficulty-option__body{gap:5px;min-width:0;font-size:.875rem;line-height:1.45;display:grid}.difficulty-option__body strong{font-size:1.125rem}.difficulty-option__body>span{color:var(--muted)}.difficulty-option__body .difficulty-option__rules{color:var(--bright)}.difficulty-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.difficulty-actions>button{width:auto;min-height:44px;padding:10px 16px;font-size:.9375rem}.difficulty-actions>button:disabled{opacity:.5;cursor:default}@media (max-width:560px){.difficulty-dialog{padding:18px}.hud{grid-template-columns:minmax(48px,1fr) auto minmax(48px,1fr)}}@media (max-width:560px),(max-height:640px) and (orientation:landscape){.next-panel{min-width:0;padding-inline:4px}.next-preview{gap:3px}.next-rune{flex:0 0 26px;width:26px;height:26px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.modal-top-close{float:right;margin:0 0 .75rem 1rem}#help-title:focus{outline:none}.save-status-panel{color:var(--text-muted,#b9b7be);text-align:center;margin:.4rem 0;font-size:.8rem}.save-status-panel p{margin:.35rem 0}#save-actions{flex-wrap:wrap;justify-content:center;gap:.4rem;display:flex}#save-actions[hidden]{display:none}#board-accessibility{z-index:5;pointer-events:none;position:absolute;inset:0}#board-accessibility [role=row]{display:contents}.board-cell{box-shadow:none;cursor:pointer;pointer-events:auto;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);touch-action:manipulation;-webkit-tap-highlight-color:transparent;background:0 0;border:0;border-radius:0;margin:0;padding:0;display:block;position:absolute}.board-cell:hover,.board-cell:active{box-shadow:none;background:0 0;transform:none}.board-cell:focus{outline:none}.board-cell__focus{pointer-events:none;width:100%;height:100%;display:none}.board-cell:focus-visible .board-cell__focus{display:block}@media (forced-colors:active){.board-cell:focus-visible{opacity:.5;background:highlight}}.action-hint{max-width:30rem;color:var(--text-muted,#a3b9cc);font-size:.7rem;line-height:1.35}.objective-axes{flex-wrap:wrap;gap:.25rem .7rem;padding:.4rem 0;font-size:.75rem;display:flex}.objective-axes[hidden]{display:none}.axis-mark{vertical-align:middle;width:1.3em;height:1.3em}.axis-direction.is-complete{color:var(--accent,#a5d8e8);font-weight:700}.pattern-details,#objective-example{margin:.6rem 0;font-size:.85rem}.pattern-details summary,#objective-example summary{cursor:pointer;padding:.4rem 0}.pattern-example{margin:.5rem 0}.pattern-example svg{width:min(100%,22rem);height:auto;margin:auto;display:block}.pattern-example figcaption{text-align:left;line-height:1.55}body{overflow:hidden auto}.game-shell{grid-template-rows:auto auto auto auto minmax(280px,1fr) auto auto;height:auto}.save-status-panel{min-width:0}.board-frame{min-height:min(90vw,520px)}.action-hint{grid-column:1/-1}@media (min-width:1000px) and (min-height:641px){.game-shell{grid-template-rows:auto auto auto minmax(400px,1fr) auto}.topbar{grid-row:1}.save-status-panel{grid-area:2/1/auto/-1}.hud{grid-area:3/1}.journey-panel{grid-area:3/2}.board-frame{grid-area:4/1;min-height:440px}.journey-controls{grid-area:4/2;max-height:none;overflow:visible}.game-footer{grid-area:5/1/auto/-1}}@media (max-height:640px) and (orientation:landscape){.game-shell{grid-template-rows:repeat(6,auto);height:auto;min-height:100dvh;overflow:visible}.topbar{grid-row:1}.save-status-panel{grid-area:2/1}.hud{grid-area:3/1}.journey-panel{grid-area:4/1}.journey-controls{grid-area:5/1}.game-footer{grid-area:6/1}.board-frame{grid-area:1/2/7;min-height:200px}}#final-board-controls{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}#final-board-controls p{margin:0;font-weight:700}#game-over-inspect{margin:.5rem auto 1rem;display:block}.game-footer{flex-wrap:wrap}.action-receipt{width:100%;color:var(--bright);flex-basis:100%;margin:.3rem 0;font-size:.82rem;line-height:1.5}.action-receipt:empty{display:none}button.next-rune{cursor:pointer;padding:0}button.next-rune[aria-pressed=true]{outline:2px solid var(--theme-accent);outline-offset:3px}button.next-rune:disabled{cursor:default}.game-shell{grid-template-rows:auto auto auto auto minmax(350px,1fr) auto}.board-frame{flex-direction:column;display:flex}.board-frame .game-footer{text-align:left;flex-wrap:wrap;flex:none;gap:.15rem;margin:0;padding:.5rem .75rem;display:flex;position:relative}.board-frame .turn-status{width:100%;margin:.15rem 0}#game-root{flex:auto;width:100%;min-height:280px;position:relative;inset:auto}@media (min-width:1000px) and (min-height:641px){.game-shell{grid-template-rows:auto auto auto minmax(440px,1fr)}}@media (max-height:640px) and (orientation:landscape){.game-shell{grid-template-rows:repeat(5,auto)}.board-frame{grid-row:1/6}#game-root{min-height:200px}}.objective-cue{color:var(--bright);margin:.45rem 0;font-size:.8rem;line-height:1.4}.experiment-banner{border-bottom:1px solid var(--theme-accent,#779baa);background:var(--panel-bg,#142536);flex:none;padding:.65rem .75rem}.experiment-banner[hidden]{display:none}.experiment-heading,.experiment-actions,.experiment-options{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.experiment-heading{justify-content:space-between}.experiment-banner p{margin:.4rem 0;font-size:.8rem;line-height:1.45}.experiment-banner .experiment-records{color:var(--text-muted,#c1cbd4);font-size:.75rem}#experiment-title:focus{outline:2px solid var(--theme-accent,#a5d8e8);outline-offset:3px}#experiment-results-back{margin:.5rem auto;display:block}#experiment-results-back[hidden],#experiment-transfer[hidden]{display:none}:root,:root[data-layout=a]{--bright:#28392e;--ink:#28392e;--muted:#65705f;--quiet:#dadfd4;--focus:#244b39;--panel:#fff;--panel-edge:#dadfd4;--warning:#98621f;--error:#a54032;color:var(--ink);background:var(--theme-bg);font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:16px}:root[data-layout=b]{--bright:#f0f2ea;--ink:#f0f2ea;--quiet:#41515d;--focus:#e7edcc;--panel:#1c252d;--panel-edge:#41515d;--warning:#e8bc67;--error:#f0a08e}body,:root[data-style] body{background:var(--theme-bg);color:var(--ink);overflow:auto}body:before,:root[data-style] body:before{display:none}button{touch-action:manipulation}button:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px}h1,h2,h3{color:var(--ink);letter-spacing:-.025em;text-shadow:none;font-family:inherit;font-weight:600}h1{white-space:nowrap;font-size:1.5rem;line-height:1.1}h2{font-size:1.6rem;line-height:1.2}h3{margin:1.5rem 0 .5rem;font-size:1rem}.visually-hidden{margin:0}#layout-status{top:0;left:0}.game-shell{width:min(100%,1440px);height:auto;min-height:100dvh;padding:max(24px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));margin:auto;display:block}.topbar{border-bottom:1px solid var(--quiet);flex-wrap:nowrap;gap:20px;height:56px;padding-bottom:12px;display:flex}.brand{flex:1}.header-score{text-align:right;grid-template-columns:auto auto;align-items:baseline;gap:12px;display:grid}.header-score strong{color:var(--ink);font-variant-numeric:tabular-nums;font-size:2rem;font-weight:600;line-height:1.1;overflow:visible}.hud-label{letter-spacing:.02em;color:var(--muted);font-size:.6875rem;font-weight:600;line-height:1.25}.layout-switch{border:1px solid var(--quiet);border-radius:8px;padding:0;display:flex}.layout-switch button{min-width:44px;min-height:44px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:8px;font-size:.8125rem;font-weight:600}.layout-switch [aria-pressed=true]{background:var(--ink);color:var(--theme-bg)}.icon-button,.text-button,.quiet-button,.primary-button,.land-button,.pulse-button{min-height:44px;box-shadow:none;background:var(--theme-surface);color:var(--ink);border:1px solid var(--quiet);letter-spacing:0;border-radius:8px;padding:10px 12px;font-family:inherit;font-size:.875rem;font-weight:600;line-height:1.3}.icon-button{flex:0 0 44px;place-items:center;width:44px;height:44px;padding:0;font-size:1.4rem;display:grid}#menu-button{background:0 0;border-color:#0000}.quiet-button{background:0 0}.primary-button{background:var(--theme-accent);color:var(--theme-bg)}.icon-button:hover,.text-button:hover,.quiet-button:hover,.land-button:hover,.pulse-button:hover{background:var(--theme-surface);color:var(--ink);border-color:var(--theme-accent)}.primary-button:hover{color:var(--ink);background:var(--theme-surface)}button:disabled{opacity:.45;cursor:default}.play-layout{grid-template-rows:104px 208px 76px auto;grid-template-columns:minmax(0,1fr) 280px;align-items:start;gap:24px 32px;margin-top:40px;display:grid}.board-frame{aspect-ratio:1.11346;border:0;border-radius:0;grid-area:1/1/5;width:min(100%,111.346dvh - 195.969px,800px);height:auto;min-height:0;margin:0 auto;display:block;position:relative;overflow:visible}.board-frame:before,.board-frame__rune{display:none}#game-root{flex:none;width:100%;height:100%;min-height:0;position:absolute;inset:0}#game-root canvas{position:absolute;inset:0}.goal-summary{border-left:1px solid var(--quiet);grid-area:1/2;width:100%;min-width:0;padding-left:24px}.goal-details-button{width:100%;min-height:52px;color:var(--ink);cursor:pointer;text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.goal-details-button strong{font-size:1.3rem;font-weight:600;line-height:1.2}#objective-progress{color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums;font-size:.8125rem}.journey-meter{height:3px;color:var(--theme-accent);background:var(--quiet);border-radius:2px;display:block}.journey-meter::-webkit-progress-bar{background:var(--quiet);border-radius:2px}.journey-meter::-webkit-progress-value{background:var(--theme-accent);border-radius:2px}.journey-meter::-moz-progress-bar{background:var(--theme-accent);border-radius:2px}.turn-dock{border-left:1px solid var(--quiet);grid-area:2/2;gap:24px;width:100%;min-width:0;padding-left:24px;display:grid}.planning-row{justify-content:space-between;align-items:center;gap:8px;min-width:0;min-height:64px;display:flex}.next-panel{border:0;flex-wrap:wrap;align-items:center;gap:0 6px;min-width:0;padding:0;display:flex}.next-panel>.hud-label{flex-basis:100%}.next-preview{justify-content:flex-start;gap:0;min-width:0;display:flex}button.next-rune{width:44px;height:44px;box-shadow:none;background:0 0;border:0;border-radius:6px;flex:0 0 44px;padding:7px}.next-rune__glyph{width:30px;height:30px}.next-rune__order{border:1px solid var(--muted);background:var(--theme-bg);width:16px;height:16px;color:var(--ink);font-size:.6875rem;font-weight:500;bottom:2px;right:1px}button.next-rune[aria-pressed=true]{outline:2px solid var(--focus);outline-offset:-2px;background:var(--quiet)}.next-rune--waiting{outline:1px dashed var(--muted);outline-offset:-3px;opacity:.6}.pressure-card{flex:0 0 68px;min-width:0;padding-bottom:3px;position:relative}.pressure-card>.journey-meter{width:100%;position:absolute;bottom:0;left:0}.pressure-heading{gap:4px;margin:0 0 6px;display:grid}#pressure-value{color:var(--ink);font-size:1rem;font-weight:600;line-height:1.1}.is-danger #pressure-value{color:var(--warning)}.action-shelf{min-width:0;min-height:112px}.shelf-actions{grid-template-columns:minmax(0,1fr);gap:12px;width:100%;min-width:0;display:grid}.shelf-actions>button{width:100%;min-width:0;min-height:48px;margin:0}.pulse-button,.pulse-button.is-ready{border-color:var(--quiet);background:var(--theme-surface);color:var(--ink);justify-content:flex-start;gap:8px}.pulse-button__icon{color:var(--theme-accent);font-size:1.25rem}.pulse-energy{grid-template-columns:repeat(2,3px);gap:2px;margin-left:auto}.pulse-energy i{background:var(--quiet);width:3px;height:3px}.pulse-energy i.is-filled{background:var(--theme-accent)}.land-button{grid-area:auto;justify-content:flex-start;align-items:center;gap:10px;font-size:.875rem;display:flex}.land-button>span{font-size:1.25rem;line-height:1}.pulse-target-controls{border:0;padding:0}#save-actions{flex-wrap:nowrap;justify-content:normal;gap:12px}#final-board-controls{display:grid}.context-slot{border-left:1px solid var(--quiet);grid-area:3/2;align-items:flex-start;gap:4px;width:100%;min-width:0;height:76px;padding-left:24px;display:flex}.context-copy{flex:1;min-width:0;height:100%}.context-copy>p{color:var(--muted);letter-spacing:0;text-align:left;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:.875rem;line-height:1.25rem;display:-webkit-box;overflow:hidden}.context-copy .action-receipt{color:var(--ink)}.context-copy #recovery-message{color:var(--error);-webkit-line-clamp:unset;max-height:100%;font-size:.8125rem;display:block}#context-open{border-color:#0000;flex:none;min-width:44px;padding:8px 4px;font-size:.75rem}.context-copy:has(.action-receipt:not(:empty)) #turn-status{display:none}.context-copy[data-guidance=selection] #turn-status{display:-webkit-box}.context-copy[data-guidance=selection] #action-receipt,.context-copy[data-guidance=pulse] #turn-status,.context-copy[data-guidance=pulse] #action-receipt,.context-copy[data-guidance=recovery] #turn-status,.context-copy[data-guidance=recovery] #action-receipt,.context-copy[data-guidance=recovery] #pulse-target-hint{display:none}.play-footnote{color:var(--muted);grid-area:4/2;margin:0;padding-left:24px;font-size:.75rem;line-height:1.5}:root[data-layout=b] .play-layout{grid-template-rows:auto 44px 76px 24px;grid-template-columns:180px minmax(0,1fr) 180px;gap:12px 24px;margin-top:28px}:root[data-layout=b] .board-frame{grid-area:1/2;width:min(100%,111.346dvh - 351.853px,740px)}:root[data-layout=b] .goal-summary{border:0;grid-area:1/1;padding:96px 0 0}:root[data-layout=b] .goal-details-button{flex-wrap:wrap}:root[data-layout=b] .context-slot{border:0;grid-area:2/2;height:44px;padding:0}:root[data-layout=b] .context-copy>p{-webkit-line-clamp:2}:root[data-layout=b] .turn-dock{border:0;border-block:1px solid var(--quiet);grid-area:3/1/auto/-1;grid-template-columns:minmax(260px,1fr) minmax(320px,1fr);align-items:center;gap:28px;width:min(900px,100%);margin:auto;padding:8px 0;display:grid}:root[data-layout=b] .action-shelf{min-height:48px}:root[data-layout=b] .shelf-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}:root[data-layout=b] .planning-row{min-height:56px}:root[data-layout=b] .next-panel{flex-wrap:nowrap}:root[data-layout=b] .next-panel>.hud-label{flex-basis:auto}:root[data-layout=b] .play-footnote{text-align:center;grid-area:4/1/auto/-1;padding:0}.modal{background:var(--theme-bg);color:var(--ink);border:1px solid var(--quiet);border-radius:16px;max-height:calc(100dvh - 24px);padding:24px;box-shadow:0 20px 80px #0004}.modal::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#101a2099}.modal p{line-height:1.5}.dialog-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.dialog-heading h2{text-align:left}.menu-stats{align-items:center;gap:24px;margin:24px 0;font-size:.875rem;display:flex}.menu-stats strong{font-variant-numeric:tabular-nums;font-size:1.4rem;display:block}.menu-navigation{grid-template-columns:1fr 1fr;gap:8px;display:grid}.menu-navigation .text-button{overflow-wrap:anywhere;width:100%;min-width:0;overflow:visible}.active-style{color:var(--muted);margin:12px 0;font-size:.8125rem}.chapter-details{border-top:1px solid var(--quiet);margin-top:20px}#replace-goal-hint,#unsaved-consequence{color:var(--muted);font-size:.8125rem}.collection-card{border-left:0;border-block:1px solid var(--quiet);gap:8px;margin-top:20px;padding:20px 0;font-size:.875rem}.streak-chip{color:var(--ink);box-shadow:none;background:0 0;border:0;padding:0;position:static;transform:none}.save-status-panel{text-align:left;color:var(--muted);margin:16px 0 0}.save-status-panel p{font-size:.8125rem}.seed-label{text-align:left;color:var(--muted)}.dialog-actions{grid-template-columns:1fr 1fr;gap:12px;display:grid}.rules-list li,.modal__note,.rules-list strong,.pulse-target-hint,.final-score strong,.final-stats dd{color:var(--ink)}.axis-direction.is-complete{color:var(--theme-accent)}.final-score span,.final-stats dt,.modal__eyebrow,.rules-list li:before{color:var(--muted)}.style-option{color:#f0f2ea}.style-option__heading strong{font-family:inherit}.pattern-details summary,#objective-example summary{min-height:44px;padding:12px 0}.experiment-banner{border:1px solid var(--quiet);background:var(--theme-surface);border-radius:8px;margin:20px 0 0}.experiment-banner .experiment-records{color:var(--muted)}.experiment-banner button,.experiment-options button{min-height:44px}.board-cell{min-width:0;min-height:0}.score-bump{animation:none}@media (max-width:799px){.play-layout{--context-height:max(2.75rem, calc(7.75rem - 80px));container-type:inline-size}.game-shell{padding:max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left))}.topbar{border-bottom:0;grid-template-columns:minmax(0,1fr) 88px max-content 44px;gap:6px;height:auto;min-height:44px;padding:0;display:grid;container-type:inline-size}h1{font-size:1.15rem}.topbar h1{white-space:normal;overflow-wrap:anywhere}.layout-switch{border:0}.layout-switch button{width:44px;min-width:44px;min-height:44px;padding:0}.header-score{display:block}.header-score .hud-label{display:none}.header-score strong{font-size:1.25rem}.icon-button{flex-basis:44px;width:44px}.play-layout,:root[data-layout=b] .play-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(2.75rem, max-content) minmax(2.75rem, max-content) auto minmax(var(--context-height), max-content) minmax(3rem, max-content) minmax(1.5rem, max-content);gap:2px 0;margin-top:0;display:grid}.goal-summary,:root[data-layout=b] .goal-summary{border:0;grid-area:2/1;padding:0}.goal-summary>.hud-label{display:none}.goal-details-button,:root[data-layout=b] .goal-details-button{flex-wrap:nowrap;height:auto;min-height:2.75rem;padding:0}.goal-details-button strong{font-size:.875rem}.goal-details-button #objective-progress{font-size:.75rem}.board-frame,:root[data-layout=b] .board-frame{aspect-ratio:1.11346;grid-area:3/1;width:100%;height:auto;min-height:0}.turn-dock,:root[data-layout=b] .turn-dock{border:0;padding:0;display:contents}.planning-row,:root[data-layout=b] .planning-row{grid-area:1/1;gap:4px;height:2.75rem;min-height:0}.next-panel,:root[data-layout=b] .next-panel{flex-wrap:nowrap;gap:2px}.next-panel>.hud-label,:root[data-layout=b] .next-panel>.hud-label{overflow-wrap:anywhere;flex-basis:auto;width:max(40px,2.5rem);font-size:.6875rem}.pressure-card{flex-basis:auto;width:max-content;min-width:max(58px,3.25rem)}.pressure-heading{gap:2px;margin-bottom:4px}.pressure-heading .hud-label{font-size:.625rem}#pressure-value{font-size:.875rem}.action-shelf,:root[data-layout=b] .action-shelf{grid-area:5/1;min-height:48px}.shelf-actions,:root[data-layout=b] .shelf-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shelf-actions>button{padding:8px 10px;font-size:.8125rem}.pulse-energy{display:none}.context-slot,:root[data-layout=b] .context-slot{height:auto;min-height:var(--context-height);border:0;grid-area:4/1;padding:0}.context-copy{height:auto}.context-copy #recovery-message{max-height:none}.context-copy>p{-webkit-line-clamp:2}.play-footnote,:root[data-layout=b] .play-footnote{text-align:center;grid-area:6/1;margin:0;padding:0;font-size:.6875rem}:root[data-layout=b] .play-layout{grid-template-rows:minmax(2.75rem, max-content) auto minmax(var(--context-height), max-content) minmax(3rem, max-content) minmax(3rem, max-content) minmax(1.5rem, max-content)}:root[data-layout=b] .goal-summary{grid-row:1}:root[data-layout=b] .board-frame{grid-row:2}:root[data-layout=b] .context-slot{grid-row:3}:root[data-layout=b] .planning-row{border-top:1px solid var(--quiet);grid-row:4}@container (width<=17.5rem){.brand{grid-area:1/1/auto/-1}.layout-switch{grid-area:2/1/auto/3}.header-score{grid-area:2/3}#menu-button{grid-area:2/4}.goal-details-button,:root[data-layout=b] .goal-details-button{min-height:calc(4rem - 3px)}.planning-row,:root[data-layout=b] .planning-row{flex-wrap:wrap;align-content:flex-start;height:max(96px,4.75rem)}}}@media (max-height:480px) and (min-width:600px){.game-shell{padding:max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left))}.topbar{height:auto;min-height:44px;padding:0}.layout-switch{border:0}.header-score strong{font-size:1.5rem}.play-layout,:root[data-layout=b] .play-layout{grid-template-rows:minmax(48px,max-content) minmax(112px,max-content) minmax(60px,max-content) 24px;grid-template-columns:minmax(0,1fr) 280px;gap:8px 20px;margin-top:8px}.board-frame,:root[data-layout=b] .board-frame{grid-area:1/1/5;width:min(100%,111.346dvh - 89.0768px);min-height:0}.goal-summary,:root[data-layout=b] .goal-summary{border:0;grid-area:1/2;padding:0}.goal-summary>.hud-label{display:none}.goal-details-button,:root[data-layout=b] .goal-details-button{flex-wrap:nowrap;height:auto;min-height:44px;padding:0}.goal-details-button strong{font-size:1rem}.turn-dock,:root[data-layout=b] .turn-dock{border:0;grid-area:2/2;grid-template-columns:1fr;gap:8px;width:100%;padding:0;display:grid}.planning-row,:root[data-layout=b] .planning-row{flex-wrap:wrap;align-content:flex-start;height:auto;min-height:48px}.next-panel,:root[data-layout=b] .next-panel{flex-wrap:nowrap}.next-panel>.hud-label{flex-basis:auto}.pressure-card{flex-basis:auto;width:max-content;min-width:56px}.action-shelf,:root[data-layout=b] .action-shelf{min-height:48px}.shelf-actions,:root[data-layout=b] .shelf-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shelf-actions>button{padding:8px;font-size:.8125rem}.pulse-energy{display:none}.context-slot,:root[data-layout=b] .context-slot{border:0;grid-area:3/2;height:auto;min-height:60px;padding:0}.context-copy{height:auto}.context-copy #recovery-message{max-height:none}.play-footnote,:root[data-layout=b] .play-footnote{grid-area:4/2;padding:0;font-size:.6875rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media (forced-colors:active){.layout-switch [aria-pressed=true]{outline:2px solid highlight}.board-cell:focus-visible .board-cell__focus{forced-color-adjust:none}}@media (max-width:360px){.topbar{gap:4px}h1,.header-score strong{font-size:1rem}}@media (max-width:480px){.topbar{grid-template-columns:minmax(0,1fr) 88px max-content 44px;height:auto;min-height:44px;display:grid}.topbar h1{white-space:normal;overflow-wrap:anywhere}.header-score{max-width:none}.header-score strong{white-space:nowrap}}#practice-back{width:100%;min-height:44px;padding:8px 4px;font-size:.8125rem}.sound-settings{border-block:1px solid color-mix(in srgb, var(--theme-accent) 18%, transparent);grid-template-columns:auto 1fr;align-items:center;gap:10px 16px;margin:18px 0;padding-block:16px;display:grid}.sound-settings label{justify-content:space-between;gap:12px;font-size:.85rem;display:flex}#sound-toggle{grid-row:span 2;min-height:44px}#sound-volume{width:100%;min-width:0;min-height:28px;accent-color:var(--theme-accent)}#sound-status{color:var(--muted);grid-column:1/-1;margin:0;font-size:.78rem}
