/* Fonts are self-hosted so that playing sends no requests to third parties. */
@font-face{font-family:'DM Sans';src:url('../shared/fonts/dm-sans-latin-wght-normal.woff2') format('woff2');font-weight:100 1000;font-display:swap}
:root{font-family:'DM Sans',system-ui,-apple-system,sans-serif;color-scheme:dark;--bg:#0c1424;--surface:#142139;--surface2:#1a2a43;--border:#2d3b50;--muted:#899bb1;--text:#f2f5f8;--accent:#f5c46b;--aqua:#83ddca}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}
body{min-width:320px;background:radial-gradient(ellipse 72% 44% at 8% 9%,#1e2c45 0%,transparent 80%),radial-gradient(ellipse 47% 47% at 100% 92%,#14283b 0%,transparent 85%),#0c1424}
button{font:inherit;cursor:pointer}button:focus-visible,[role=button]:focus-visible{outline:3px solid #fff3b3;outline-offset:3px}button:disabled{opacity:.36;cursor:default}
.app{max-width:1370px;min-height:100svh;margin:0 auto;padding:0 clamp(16px,3.6vw,54px) 32px}
.site-header{min-height:85px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #304056;gap:12px}
.wordmark{display:flex;align-items:center;gap:14px}.mark{width:39px;height:39px;border-radius:12px;background:#fa8078;color:#132032;display:grid;place-items:center;font-size:30px;font-weight:800;line-height:1}.brand{font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:16px;letter-spacing:.17em;display:block}.wordmark small{font-weight:700;letter-spacing:.18em;font-size:9px;color:#91a1b6;display:block;margin-top:2px}.version{font-size:10px;color:#91a3b7;letter-spacing:.14em;font-weight:800;display:flex;align-items:center;gap:9px}.version-dot{height:7px;width:7px;border-radius:50%;background:#7cdec0;box-shadow:0 0 0 4px #7cdec014}
.game-layout{display:grid;grid-template-columns:minmax(0,750px) minmax(260px,310px);justify-content:center;align-items:start;gap:clamp(24px,4vw,72px);padding-top:30px}.primary-column{min-width:0}.side-column{display:flex;flex-direction:column;gap:18px;padding-top:145px}
.game-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:28px}.overline,.eyebrow{font-size:11px;letter-spacing:.19em;font-weight:800;color:#8fa5bc}.game-heading h1{font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(34px,4.2vw,54px);line-height:1.15;letter-spacing:-.06em;margin:7px 0 8px;font-weight:800}.title-period{color:#fa8078}.game-heading p{font-size:15px;color:#a1b2c7;margin:0}.level-pill{min-width:86px;height:92px;border:1px solid #3a5265;background:#18283f;border-radius:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;flex:none}.level-pill span{font-size:10px;color:#8ca2b5;font-weight:800;letter-spacing:.17em}.level-pill strong{font-size:30px;font-family:'Bricolage Grotesque',sans-serif;line-height:1.1;color:var(--accent)}
.sequence-panel{border:1px solid #34475f;border-radius:16px;background:#17243a;padding:18px 20px 17px;margin-bottom:15px;box-shadow:0 10px 30px #080f1e33}.sequence-caption{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:15px}.sequence-caption .eyebrow{color:#d1c39c}.queue-help{font-size:11px;color:#8499ab}.color-sequence{display:flex;align-items:stretch;gap:10px;min-height:67px}.queue-item{min-width:0;width:20%;max-width:92px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:10px;background:#20314b;border:1px solid #3c4f64;color:var(--color);opacity:.57;transition:background .2s,color .2s}.queue-item.now{background:color-mix(in srgb,var(--color) 16%,#1a293f);border:2px solid var(--color);box-shadow:0 0 0 3px color-mix(in srgb,var(--color) 11%,transparent);opacity:1}.queue-symbol{font-size:22px;line-height:1.1}.queue-name{font-size:11px;font-weight:800;color:#c2d2db}.queue-item.now .queue-name{color:white}.queue-finished{font-weight:700;color:#9ee1c8;padding:22px}
.board-shell{background:linear-gradient(160deg,#1a2b43,#152338);border:1px solid #445771;border-radius:21px;padding:16px;box-shadow:0 21px 50px #030b1b66,0 1px 0 #ffffff18 inset}.board-topline,.board-bottomline{display:flex;align-items:center;justify-content:space-between;gap:10px}.board-topline{padding:0 4px 13px}.current-label{font-weight:800;color:#e6edf3;font-size:14px;display:flex;align-items:center;gap:11px}.live-dot{display:block;width:7px;height:7px;background:#83ddca;border-radius:50%;box-shadow:0 0 0 5px #83ddca13}.arrow-count{font-size:13px;font-weight:700;color:#97afbf;font-variant-numeric:tabular-nums}.board-wrap{position:relative;aspect-ratio:1;border:1px solid #3b5067;border-radius:13px;background:linear-gradient(160deg,#15253c,#101b2f);overflow:hidden;box-shadow:0 1px 18px #07101e77 inset}.board-wrap:after{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(135deg,#ffffff06,transparent 32%,#07152213 77%)}#board{display:block;width:100%;height:100%;touch-action:manipulation}
.arrow{cursor:pointer;outline:none;transform-origin:center;transition:filter .15s,opacity .15s}.arrow-hit{stroke:transparent;stroke-width:65;stroke-linecap:round;pointer-events:stroke}.arrow-glow{stroke:var(--arrow-color);stroke-width:32;opacity:.15;stroke-linecap:round;pointer-events:none}.arrow-shaft{stroke:var(--arrow-color);stroke-width:17;stroke-linecap:round;pointer-events:none}.arrow-head{fill:var(--arrow-color);pointer-events:none}.arrow-badge{fill:#142239;stroke:var(--arrow-color);stroke-width:4;pointer-events:none}.arrow-symbol{fill:#eff4f7;font-family:Arial,sans-serif;font-size:22px;font-weight:900;pointer-events:none}.arrow.is-other{opacity:.40}.arrow.is-blocked{opacity:.48}.arrow.is-active.is-free{opacity:1;filter:drop-shadow(0 1px 4px #a6c5e83a)}.arrow.is-active.is-free:hover{filter:drop-shadow(0 0 9px var(--arrow-color))}.arrow.is-hinted{opacity:1;filter:drop-shadow(0 0 15px var(--arrow-color))}.arrow.shake{animation:shake .32s linear}@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
.board-bottomline{padding:13px 4px 0;min-height:35px;align-items:flex-start}.board-caption{font-size:12px;color:#8ca1b8;white-space:nowrap}#board-feedback{max-width:68%;text-align:right;color:#c4d3dd;font-size:12px;line-height:1.45}
.controls{display:grid;grid-template-columns:1.1fr 1fr 1fr auto;gap:9px;margin-top:16px}.button{min-height:52px;padding:12px 14px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:13px;font-weight:800;transition:background .16s,transform .12s;white-space:nowrap}.button:active:not(:disabled){transform:scale(.98)}.control-icon{font-size:21px;line-height:1}.button-undo{border:1px solid #e7ba76;background:#f5c46b;color:#142039}.button-undo:hover:not(:disabled){background:#ffda91}.button-secondary{background:#1e3149;border:1px solid #41556a;color:#d6e4eb}.button-secondary:hover:not(:disabled){background:#2b435c}.button-quiet{background:transparent;border:1px solid transparent;color:#9db4c5;padding-left:9px;padding-right:9px}.button-quiet:hover{color:white;background:#24354a}.button-primary{background:#f5c46b;color:#132039;border:1px solid #ffdc99}.button-primary:hover{background:#ffdd94}
.victory{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:23px;background:#101c2bdf;backdrop-filter:blur(4px);z-index:2}.victory[hidden]{display:none}.victory-icon{font-size:74px;line-height:1;color:#f5c46b;text-shadow:0 0 30px #f5c4698a}.victory-eyebrow{color:#8fd9c6;font-size:11px;font-weight:800;letter-spacing:.2em;margin-top:5px}.victory h2{font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(25px,5vw,40px);letter-spacing:-.045em;margin:12px 0}.victory p{color:#acbecb;font-size:14px;margin:0 0 25px}.next-button{width:min(260px,100%)}
.rule-card{border:1px solid #354961;border-radius:19px;padding:25px;background:linear-gradient(155deg,#1b2c46,#17243b);box-shadow:0 14px 28px #07111d30}.rule-header{display:flex;align-items:center;gap:10px;color:#a7bacb;font-size:10px;font-weight:800;letter-spacing:.18em}.rule-star{font-size:25px;color:#fa8078}.rule-card h2{font-family:'Bricolage Grotesque',sans-serif;font-size:29px;line-height:1.2;letter-spacing:-.04em;margin:21px 0 25px}.rule-row{display:flex;align-items:flex-start;gap:13px;margin:15px 0}.rule-num{color:#f5c46b;font-family:'Bricolage Grotesque',sans-serif;font-size:13px;font-weight:800;padding-top:3px}.rule-row p{font-size:14px;line-height:1.62;color:#b2c3d0;margin:0}.rule-row strong{color:#f3f0e7}.rule-divider{height:1px;background:#35475c;margin:25px 0 17px}.rule-footnote{font-size:13px;line-height:1.65;color:#92aaba}
.numbers-card{border:1px solid #34465b;border-radius:17px;padding:23px;background:#142037}.numbers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:19px 0 20px}.numbers-grid>div{display:flex;flex-direction:column;gap:4px}.numbers-grid strong{font-family:'Bricolage Grotesque',sans-serif;font-size:25px;color:#e8edf3;font-variant-numeric:tabular-nums}.numbers-grid span{font-size:10px;font-weight:800;letter-spacing:.15em;color:#879db2}.progress-track{height:6px;border-radius:5px;background:#293c53;overflow:hidden}.progress-fill{background:linear-gradient(90deg,#fa8078,#f5c46b);height:100%;width:0;transition:width .32s;border-radius:inherit}.numbers-card p{margin:16px 0 0;color:#8fa5b7;font-size:12px;line-height:1.6}.signature{display:flex;gap:12px;align-items:center;padding:4px 8px;color:#718ba0;font-size:11px;line-height:1.7}.signature b{color:#a5b5c5}.signature-mark{font-size:28px;color:#fa8078}
@media(max-width:980px){.game-layout{grid-template-columns:minmax(0,1fr) 255px;gap:22px}.side-column{padding-top:135px}.rule-card{padding:20px}.rule-card h2{font-size:25px}.controls{grid-template-columns:repeat(3,1fr)}.button-quiet{grid-column:1/-1;min-height:37px}}
@media(max-width:780px){.site-header{min-height:72px}.game-layout{display:flex;flex-direction:column;padding-top:20px;gap:23px}.primary-column{width:100%;max-width:660px;margin:0 auto}.side-column{width:100%;max-width:660px;margin:0 auto;padding-top:0;display:grid;grid-template-columns:1.2fr 1fr}.game-heading{margin-bottom:19px}.rule-card h2{margin:14px 0 17px}.rule-row{margin:11px 0}.rule-divider{margin:16px 0 12px}.signature{grid-column:1/-1}}
@media(max-width:520px){.app{padding:0 11px 22px}.site-header{min-height:61px}.wordmark{gap:9px}.mark{width:33px;height:33px;font-size:25px;border-radius:10px}.brand{font-size:13px}.wordmark small{font-size:8px}.version{font-size:8px}.game-heading h1{font-size:37px}.game-heading p{font-size:13px}.overline{font-size:9px}.level-pill{height:67px;min-width:67px;border-radius:13px}.level-pill strong{font-size:24px}.level-pill span{font-size:8px}.sequence-panel{padding:13px 13px 14px;border-radius:13px;margin-bottom:10px}.sequence-caption{margin-bottom:11px}.queue-help{font-size:9px}.color-sequence{gap:6px;min-height:59px}.queue-symbol{font-size:19px}.queue-name{font-size:9px}.board-shell{padding:9px;border-radius:14px}.board-topline{padding-bottom:10px}.current-label{font-size:12px}.arrow-count{font-size:11px}.board-bottomline{padding:11px 3px 3px;min-height:46px}.board-caption{font-size:10px}#board-feedback{font-size:10px}.controls{gap:7px;margin-top:10px}.button{min-height:47px;padding:9px 7px;font-size:11px;border-radius:9px;gap:5px}.control-icon{font-size:18px}.button-quiet{font-size:12px}.side-column{display:flex;gap:12px}.rule-card,.numbers-card{padding:19px}.rule-card h2{font-size:23px}.rule-row p{font-size:13px}.numbers-grid{margin:12px 0}.signature{justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.quick-howto{display:grid;grid-template-columns:125px 1fr;align-items:center;gap:16px;padding:16px 20px;margin-bottom:15px;background:#15283a;border:1px solid #38576a;border-left:3px solid #7cdec0;border-radius:13px}.quick-howto-title{font-size:11px;letter-spacing:.13em;font-weight:800;color:#93e4ce}.quick-howto p{font-size:14px;line-height:1.55;color:#b9ccd9;margin:0}.quick-howto strong{color:#f2f5f8}
@media(max-width:520px){.quick-howto{display:block;padding:12px 14px;margin-bottom:10px}.quick-howto-title{display:block;margin-bottom:5px;font-size:10px}.quick-howto p{font-size:13px;line-height:1.48}}
.arrow-hit{stroke-width:48;stroke-linejoin:round;stroke-linecap:round}
.arrow-glow{stroke-width:27;stroke-linejoin:round;stroke-linecap:round;opacity:.22}
.arrow-shaft{stroke-width:11;stroke-linejoin:round;stroke-linecap:round}
.arrow-badge{stroke-width:3;fill:#142239}
.arrow-symbol{font-size:20px}
.arrow.is-other{opacity:.73}
.arrow.is-blocked{opacity:.53}
.arrow-hit,.arrow-glow,.arrow-shaft{fill:none}
.color-sequence{justify-content:center}
.queue-item.fixed{position:relative;flex:1;width:31%;max-width:156px;min-height:77px;opacity:1;border:1px solid color-mix(in srgb,var(--color) 52%,#40546a);background:color-mix(in srgb,var(--color) 9%,#20314b)}
.queue-item.fixed .queue-symbol{font-size:27px}
.queue-item.fixed .queue-name{font-size:13px;color:#f0f4f7}
.queue-step{position:absolute;top:6px;left:10px;font-size:10px;font-weight:800;color:#b6c8d4}
.controls{grid-template-columns:1.1fr 1fr auto}
@media(max-width:980px){.controls{grid-template-columns:repeat(2,minmax(0,1fr))}.button-quiet{grid-column:1/-1}}
@media(max-width:520px){.queue-item.fixed{min-height:64px}.queue-item.fixed .queue-symbol{font-size:21px}.queue-item.fixed .queue-name{font-size:11px}.queue-step{left:7px;top:4px;font-size:9px}}

/* Arrow Twist · celestial neon edition */
:root{--bg:#070f20;--surface:#101f34;--surface2:#162942;--border:#2b4b62;--muted:#a1bacb;--text:#f2f7fc;--accent:#e9cb90;--aqua:#78e1d2}
html,body{background:#070f20}
body{background:radial-gradient(ellipse 64% 40% at 5% 2%,#17364b 0%,transparent 76%),radial-gradient(ellipse 48% 40% at 100% 67%,#211f44 0%,transparent 81%),#070f20}
.app{max-width:1280px;padding-bottom:44px}
.site-header{min-height:88px;border-bottom:1px solid #34506666}
.wordmark{gap:12px}
.mark{position:relative;width:48px;height:48px;border-radius:15px;border:1px solid #a7906680;background:linear-gradient(135deg,#1c3447,#0c1e31);box-shadow:inset 0 1px #ffffff1e,0 5px 24px #07121b90;flex:none;overflow:hidden}
.sun-symbol,.moon-symbol{position:absolute;display:grid;place-items:center;line-height:1}
.sun-symbol{left:3px;top:5px;color:#f4c36f;font-size:33px;text-shadow:0 0 15px #ffb75660}
.moon-symbol{right:1px;bottom:6px;color:#8ee0ec;font-size:30px;text-shadow:0 0 12px #59bde966}
.brand{font-size:17px;letter-spacing:.18em}
.wordmark small{font-size:10px;letter-spacing:.16em;color:#a0b8ca}
.version{font-size:11px;color:#a8bdc9;letter-spacing:.15em}
.version-number{color:#e9ca8a}
.version-dot{background:#77e6ca;box-shadow:0 0 0 4px #61e0c920,0 0 12px #61e0c9}
.game-layout{grid-template-columns:minmax(0,780px) minmax(250px,300px);gap:clamp(22px,3.5vw,42px);padding-top:32px}
.game-heading{margin-bottom:22px}
.overline{font-size:11px;color:#82d6cb;letter-spacing:.16em}
.game-heading h1{font-size:clamp(37px,4.6vw,58px);letter-spacing:-.058em}
.title-accent{color:#ebcb95}
.title-period{color:#ff84a8}
.game-heading p{font-size:16px;color:#afc5d4}
.level-pill{border:1px solid #45637c;background:linear-gradient(155deg,#193348,#11243d);box-shadow:inset 0 1px #ffffff17,0 12px 22px #03091545;border-radius:20px;min-width:84px;height:86px}
.level-pill span{color:#a3bed1;font-size:11px}
.level-pill strong{font-size:32px;color:#f0d49d}
.quick-howto{grid-template-columns:110px 1fr;gap:15px;border:1px solid #3c6170;border-left:3px solid #77d7cb;border-radius:15px;background:linear-gradient(105deg,#15364a,#11273c 65%,#192b40);padding:16px 19px;box-shadow:inset 0 1px #ffffff0d;margin-bottom:15px}
.quick-howto-title{font-size:11px;letter-spacing:.14em;color:#85e6d9}
.quick-howto p{font-size:14px;line-height:1.6;color:#c2d5e2}
.quick-howto strong{color:#fff0c9}
.sequence-panel{border:1px solid #3e596f;border-radius:19px;background:linear-gradient(130deg,#122b40,#102238);padding:17px 19px 19px;box-shadow:0 15px 40px #020b1d3a,inset 0 1px #ffffff10;margin-bottom:16px}
.sequence-caption{margin-bottom:13px}
.sequence-caption .eyebrow{font-size:11px;color:#edcf98}
.queue-help{font-size:11px;font-weight:800;letter-spacing:.09em;color:#9db8c9}
.color-sequence{gap:12px}
.queue-item.fixed{position:relative;min-height:82px;max-width:185px;border-radius:14px;background:radial-gradient(ellipse at 50% 0%,color-mix(in srgb,var(--color) 19%,transparent),transparent 79%),#182c43;border:1px solid color-mix(in srgb,var(--color) 65%,#344d6a);box-shadow:inset 0 1px #ffffff16,0 8px 19px #00000024;overflow:hidden}
.queue-item.fixed::after{content:'';position:absolute;inset:auto 14px 0;height:3px;border-radius:3px;background:var(--color);box-shadow:0 0 14px var(--color);opacity:.83}
.queue-item.fixed .queue-step{top:9px;left:13px;font-size:10px;color:#a7c3d2}
.queue-item.fixed .queue-symbol{font-size:30px;line-height:1.08;text-shadow:0 0 22px var(--color)}
.queue-item.fixed .queue-name{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#e4f0f7}
.board-shell{border:1px solid #526f82;background:linear-gradient(160deg,#1a354a,#0c1e34 64%,#122b42);border-radius:23px;padding:14px;box-shadow:0 29px 70px #010713a1,inset 0 1px #c5e5ff24,0 0 0 1px #132b4066}
.board-topline{padding:3px 6px 15px}
.current-label{font-size:14px;color:#d5e7ef;font-weight:750}
.live-dot{background:#72e9d1;box-shadow:0 0 0 5px #72e9d117,0 0 16px #72e9d17c}
.arrow-count{color:#a8c5d6;font-size:13px}
.board-wrap{border:1px solid #3a5e79;border-radius:15px;background:radial-gradient(circle at 22% 14%,#1d3953 0%,transparent 41%),radial-gradient(circle at 80% 82%,#18304b 0%,transparent 58%),linear-gradient(145deg,#0b1f33,#0a172a);box-shadow:0 2px 31px #020b1dcc inset,0 1px #7998ac20}
.board-wrap::before{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:linear-gradient(136deg,#fff8 0%,transparent 16%,transparent 85%,#80c6fe13 100%);opacity:.09}
.board-wrap::after{background:linear-gradient(132deg,#ffffff05,transparent 31%,#050f221c 81%)}
.arrow{filter:drop-shadow(0 2px 3px #0009);transition:filter .18s ease,opacity .18s ease}
.arrow-hit{stroke:transparent;stroke-width:65;fill:none;pointer-events:stroke;stroke-linecap:round;stroke-linejoin:round}
.arrow-outline{stroke:#071326;stroke-width:34;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
.arrow-glow{stroke:var(--arrow-color);stroke-width:29;stroke-linecap:round;stroke-linejoin:round;opacity:.28;fill:none;pointer-events:none}
.arrow-shaft{stroke:var(--arrow-color);stroke-width:18;stroke-linecap:round;stroke-linejoin:round;fill:none;pointer-events:none}
.arrow-highlight{stroke:#fff;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;opacity:.35;fill:none;pointer-events:none;mix-blend-mode:screen}
.arrow-head-outline{fill:#071326;stroke:#071326;stroke-width:9;stroke-linejoin:round;pointer-events:none}
.arrow-head{fill:var(--arrow-color);stroke:var(--arrow-color);stroke-width:3;stroke-linejoin:round;pointer-events:none;filter:drop-shadow(0 0 4px var(--arrow-color))}
.arrow-badge-halo{fill:#0a1b2f;stroke:var(--arrow-color);stroke-width:3;stroke-opacity:.24;pointer-events:none}
.arrow-badge{fill:#0a1a2b;stroke:var(--arrow-color);stroke-width:3;pointer-events:none}
.arrow-symbol{font-family:Arial,sans-serif;font-size:20px;font-weight:900;fill:#f5fbff;pointer-events:none}
.arrow:hover,.arrow:focus-visible{filter:drop-shadow(0 0 7px var(--arrow-color)) drop-shadow(0 2px 3px #000b)}
.arrow.shake{animation:shake .32s linear}
.board-bottomline{padding:13px 6px 1px;min-height:39px}
.board-caption{font-size:10px;font-weight:800;letter-spacing:.09em;color:#87a9c0}
#board-feedback{font-size:12px;color:#b8d6e5}
.controls{grid-template-columns:1.1fr 1fr 1fr;gap:10px;margin-top:16px}
.button{border-radius:13px;min-height:53px;letter-spacing:.01em;font-size:14px;font-weight:800}
.button-undo{background:linear-gradient(145deg,#f1d79f,#dcba7b);border:1px solid #ffe0ab;color:#172d40;box-shadow:0 5px 23px #bc8f4b23}
.button-undo:hover:not(:disabled){background:#ffe3aa}
.button-secondary{background:#1d354d;border:1px solid #48667d;color:#e0edf5}
.button-quiet{background:#13263b;border:1px solid #35536a;color:#b5d2e1}
.button-quiet:hover{background:#1e3d52}
.victory{background:#081727ea;backdrop-filter:blur(8px)}
.victory-icon{color:#e9cb95;text-shadow:0 0 36px #f5ca658a}
.victory-eyebrow{font-size:12px;color:#7de9d2}
.victory h2{color:#f8f4e8}
.next-button{background:#e6ca94}
.side-column{padding-top:232px;gap:15px}
.rule-card{border:1px solid #3d5b72;border-radius:20px;background:linear-gradient(152deg,#1b364b,#10243b);box-shadow:0 14px 33px #050e1f40,inset 0 1px #fff1}
.rule-header{color:#9fc6d9}
.rule-star{color:#ebb978}
.rule-card h2{color:#f1f6f8}
.rule-row p{color:#bdd1dd}
.rule-row strong{color:#f9dfad}
.numbers-card{border:1px solid #34566d;background:linear-gradient(160deg,#10283d,#102036);border-radius:20px}
.numbers-grid strong{color:#e6f2f7}
.numbers-grid span{font-size:10px;color:#b0cad9}
.progress-track{background:#253d50}
.progress-fill{background:linear-gradient(90deg,#ff86a4,#eac882,#72e4d1)}
.signature{color:#7e9eb2}
.signature-mark{color:#e9c88b}
@media(max-width:980px){.game-layout{grid-template-columns:minmax(0,1fr) 245px;gap:20px}.side-column{padding-top:220px}.controls{grid-template-columns:repeat(3,minmax(0,1fr))}.button-quiet{grid-column:auto;min-height:53px}}
@media(max-width:780px){.site-header{min-height:72px}.game-layout{display:flex;flex-direction:column;padding-top:21px;gap:24px}.side-column{padding-top:0;display:grid;grid-template-columns:1.2fr 1fr}.primary-column,.side-column{max-width:660px}}
@media(max-width:520px){.app{padding:0 12px 28px}.site-header{min-height:68px}.mark{width:38px;height:38px;border-radius:12px}.sun-symbol{font-size:27px;left:2px;top:3px}.moon-symbol{font-size:24px;right:1px;bottom:4px}.brand{font-size:13px}.wordmark small{font-size:8px;letter-spacing:.10em}.version{font-size:9px}.version-number{display:none}.game-heading{margin-bottom:17px}.game-heading h1{font-size:clamp(34px,9vw,42px)}.game-heading p{font-size:14px}.overline{font-size:9px;letter-spacing:.12em}.level-pill{height:69px;min-width:68px;border-radius:14px}.level-pill strong{font-size:26px}.quick-howto{display:block;padding:12px 14px;margin-bottom:11px}.quick-howto-title{display:block;margin-bottom:5px;font-size:10px}.quick-howto p{font-size:13px;line-height:1.52}.sequence-panel{padding:12px;border-radius:14px;margin-bottom:11px}.sequence-caption{margin-bottom:10px}.sequence-caption .eyebrow{font-size:10px}.queue-help{font-size:9px}.color-sequence{gap:8px}.queue-item.fixed{min-height:68px;border-radius:11px}.queue-item.fixed .queue-step{top:6px;left:8px;font-size:9px}.queue-item.fixed .queue-symbol{font-size:23px}.queue-item.fixed .queue-name{font-size:10px}.board-shell{padding:9px;border-radius:16px}.board-topline{padding:2px 3px 10px}.current-label{font-size:11px;gap:7px}.arrow-count{font-size:10px}.board-bottomline{padding:10px 2px 0;min-height:44px}.board-caption{font-size:9px}#board-feedback{font-size:10px}.controls{gap:7px;margin-top:11px}.button{min-height:47px;padding:9px 6px;font-size:12px;border-radius:10px;gap:5px}.control-icon{font-size:17px}.side-column{display:flex;gap:12px}.rule-card,.numbers-card{padding:18px}.rule-card h2{font-size:25px}}

/* Twistcade site integration: back and full screen buttons. */
a.wordmark{color:inherit;text-decoration:none}
.top-actions{display:flex;align-items:center;gap:8px}
.top-actions .version{margin-right:10px}
.top-button{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 13px;border-radius:11px;border:1px solid #35536a;background:#13263b;color:#d5e7ef;font:inherit;font-size:15px;line-height:1;text-decoration:none;cursor:pointer}
.top-button span{font-size:12px;font-weight:800}
.top-button:hover{background:#1e3d52}
.top-button[hidden]{display:none}
@media(max-width:620px){.top-actions .version{display:none}}
@media(max-width:480px){.top-button span{display:none}.top-button{padding:8px 11px}.wordmark small{display:none}}

.play[hidden]{display:none}

/* ---------- Play screen: everything fits in the window, nothing scrolls ---------- */
.playing .app{max-width:1140px;height:100vh;height:100dvh;min-height:0;padding:0 clamp(18px,4vw,36px) 12px;display:flex;flex-direction:column;overflow:hidden}
.playing .site-header{min-height:0;padding:8px 0;flex:none;gap:8px}
.playing .wordmark,.playing .version{display:none}
.playing .play-nav{display:flex;align-items:center;gap:12px}
.play-level{font-size:11px;font-weight:800;letter-spacing:.15em;color:#a3bed1;white-space:nowrap}
.play-level strong{font-family:'Bricolage Grotesque',sans-serif;font-size:20px;letter-spacing:0;color:#f0d49d;margin-left:4px}
.play{flex:1;min-height:0;width:100%;max-width:900px;margin:0 auto;padding-top:0;display:grid;gap:8px;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr) auto auto}
.play .sequence-panel{margin:0;padding:8px 10px;border-radius:14px}
.play .sequence-caption{display:none}
.play .color-sequence{min-height:0;gap:8px}
.play .queue-item.fixed{flex-direction:row;justify-content:center;gap:9px;min-height:44px;max-width:none;padding:4px 8px 6px 24px;border-radius:11px}
.play .queue-item.fixed .queue-step{top:50%;left:9px;transform:translateY(-50%)}
.play .queue-item.fixed .queue-symbol{font-size:21px}
.play .board-topline{padding:0 4px}
.play-stage{min-height:0;min-width:0;container-type:size;display:flex;align-items:center;justify-content:center}
.play .board-wrap{width:min(100cqw,100cqh);height:min(100cqw,100cqh);flex:none}
.play #board-feedback{max-width:none;text-align:center;line-height:1.4;min-height:1.4em}
.play .controls{margin:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.play .button-quiet{grid-column:auto}
.play .controls .button{min-height:44px}
.play .victory{padding:12px;border-radius:inherit}

/* Wide windows: the board takes the full height and the controls move beside it. */
@media(orientation:landscape) and (min-width:600px){
  .play{max-width:1068px;padding-top:0;column-gap:clamp(12px,2.5vw,32px);grid-template-columns:minmax(0,1fr) clamp(200px,26vw,320px);grid-template-rows:1fr auto auto auto auto 1fr}
  .play-stage{grid-column:1;grid-row:1/-1}
  .play .sequence-panel{grid-column:2;grid-row:2}
  .play .board-topline{grid-column:2;grid-row:3;flex-wrap:wrap}
  .play #board-feedback{grid-column:2;grid-row:4;text-align:left;min-height:2.8em}
  .play .controls{grid-column:2;grid-row:5;grid-template-columns:minmax(0,1fr)}
  .play .color-sequence{flex-direction:column}
  .play .queue-item.fixed{width:100%;flex:none;justify-content:flex-start;padding-left:34px}
}

/* Short windows, such as a phone held sideways. */
@media(orientation:landscape) and (max-height:520px){
  .playing .app{padding-bottom:6px}
  .playing .site-header{padding:4px 0}
  .playing .top-button{min-height:32px;padding:5px 10px}
  .play{padding-top:0;row-gap:5px}
  .play .sequence-panel{padding:5px}
  .play .color-sequence{flex-direction:row;gap:5px}
  .play .queue-item.fixed{flex:1;width:auto;flex-direction:column;justify-content:center;gap:1px;padding:3px 2px 6px;min-height:42px}
  .play .queue-item.fixed .queue-step{display:none}
  .play .queue-item.fixed .queue-symbol{font-size:15px}
  .play .queue-item.fixed .queue-name{font-size:8px;letter-spacing:.03em}
  .play #board-feedback{font-size:10px}
  .play .controls{gap:5px}
  .play .controls .button{min-height:34px;padding:4px 8px}
}

/* Very narrow phones: no room for the step number next to the color symbol. */
@media(max-width:400px){.play .queue-item.fixed{padding-left:4px;gap:6px}.play .queue-item.fixed .queue-step{display:none}}
.board-numbers{display:flex;align-items:center;gap:14px;white-space:nowrap}
/* Phones: the board needs the width, so it uses slimmer side margins than the bar. */
@media(max-width:520px){.playing .app{padding-left:10px;padding-right:10px}}
