:root{color-scheme:dark;font-family:ui-rounded,'Trebuchet MS',system-ui,sans-serif;color:#eef6ff;background:#09132c;--muted:#b5c4df;--aqua:#36e0d1;--violet:#a594ff;--edge:#344561}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 12% 5%,#123e51aa,transparent 34%),radial-gradient(ellipse at 96% 24%,#352b6555,transparent 45%),#09132c;min-height:100vh}a{color:var(--aqua)}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button,a,select{touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #f8e8a0;outline-offset:4px}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}.skip{position:absolute;left:12px;top:-90px;z-index:5;background:#fff;color:#09132c;padding:14px}.skip:focus{top:12px}.topbar{max-width:1080px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 28px;border-bottom:1px solid #34456188}.brand img{display:block;max-width:100%;height:38px;object-fit:contain}.back{font-size:.9rem;text-decoration:none;font-weight:700;color:#dce9ff;padding:12px 0}main{width:min(930px,100% - 48px);margin:24px auto 0}.intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.eyebrow{font-size:.69rem;font-weight:800;letter-spacing:.16em;color:#96dfdf;margin:0 0 9px}.intro h1{font-size:clamp(2.8rem,6vw,4rem);line-height:1;margin:0 0 14px;letter-spacing:-.055em;font-weight:900}.intro h1>span:first-child{color:var(--aqua)}.title-dot{color:var(--violet)}.lead{line-height:1.5;color:var(--muted);font-size:1rem;margin:0}.intro-art{width:115px;height:115px;filter:drop-shadow(0 10px 25px #21d7d121);transform:rotate(8deg)}.play-panel{background:linear-gradient(135deg,#14213b,#121b35);border:1px solid #3b526e;border-radius:24px;padding:26px;box-shadow:0 18px 70px #0003}.settings{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:23px;border-bottom:1px solid #31415b}.mode-group{display:flex;border:1px solid #3d4e68;padding:4px;border-radius:13px;background:#0a1428}.mode-group button{background:transparent;border:0;color:#b8cae0;border-radius:9px;padding:11px 17px;font-weight:700;font-size:.88rem}.mode-group button[aria-pressed=true]{background:#2dd5ca;color:#092439;box-shadow:0 3px 12px #16c5c61a}.level-label{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.85rem}select{background:#0b1630;color:#edf6ff;border:1px solid #566b8c;border-radius:10px;padding:10px;min-height:44px;font-weight:700}.board-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.board-heading h2{font-size:1.2rem;letter-spacing:-.025em;line-height:1.3;margin:0}.board-heading .eyebrow{color:#a79cdb;font-size:.65rem;letter-spacing:.11em}.text-button{color:#bcece9;text-decoration:underline;text-underline-offset:4px;background:none;border:0;padding:12px 2px;font-size:.82rem;white-space:nowrap}.progress-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0 13px;font-size:.83rem;color:var(--muted)}.progress-row p{margin:0}#lives{display:flex;align-items:center;gap:10px}#life-dots{color:#a999ff;letter-spacing:3px;white-space:nowrap}.word-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.word{position:relative;min-height:64px;min-width:0;border:1px solid #53657f;border-bottom:4px solid #344560;background:linear-gradient(#263853,#20304b);border-radius:12px;color:#f4f8ff;font-weight:800;font-size:.98rem;letter-spacing:.015em;padding:10px 5px;overflow-wrap:anywhere;transition:background .12s,border-color .12s}.word.long{font-size:.84rem}.word:hover:not(:disabled){background:#314761;border-color:#91c3da}.word[aria-pressed=true]{background:#42e1d4;border-color:#9bf6eb;border-bottom-color:#21a89f;color:#05242c;box-shadow:0 0 0 1px #42e1d4}.word[aria-pressed=true]:after{content:'✓';position:absolute;right:6px;top:3px;font-size:.65rem}.solved-groups{display:grid;gap:9px}.solved-group{border:1px solid #64cecd;border-radius:12px;text-align:center;padding:15px 10px;background:#13504f;color:#efffff;margin-bottom:9px}.solved-group h3{margin:0 0 5px;font-size:.86rem}.solved-group p{font-size:.77rem;line-height:1.5;margin:0}.solved-group.g1{background:#243e70;border-color:#7498e7}.solved-group.g2{background:#45366b;border-color:#9f8ad8}.solved-group.g3{background:#414f67;border-color:#94abc9}.group-label{font-size:.62rem;letter-spacing:.12em;display:block;margin-bottom:6px;color:#d5e8fa}.message{min-height:25px;margin:17px 0 14px;text-align:center;line-height:1.5;font-size:.87rem;color:#c9d6ec}.message.attention{color:#ffe2aa}.controls{display:flex;gap:12px;justify-content:space-between;align-items:center}.secondary-controls{display:flex;gap:8px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:15px;border-radius:11px;min-height:46px;padding:12px 18px;font-weight:800;font-size:.87rem;text-decoration:none}.primary{background:linear-gradient(110deg,#4ce3d9,#24c6c6);border:1px solid #67eee3;color:#082a36;box-shadow:0 4px 15px #18b8bc15}.primary:disabled{opacity:1;background:#283c4c;color:#8198a4;border-color:#3a5465;box-shadow:none}.secondary{background:#17243d;border:1px solid #576781;color:#dce8fa}.secondary:hover{background:#273651}.bottom-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:17px;color:#acbad3;font-size:.77rem}.bottom-actions>span{margin-left:auto}.hints{background:#202b49;border:1px solid #625c8d;border-radius:12px;padding:16px;margin-top:18px;color:#e4e0fb}.hints h3{font-size:.88rem;margin:0}.hints ul{padding-left:20px;margin-bottom:0;font-size:.87rem;line-height:1.6}.result{padding:22px 0 5px;text-align:center}.result h2{margin:0;font-size:1.8rem;color:#8cece2}.result p{color:var(--muted);line-height:1.5}.result-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.about{color:#b5c4de;font-size:.85rem;line-height:1.7;margin:24px 0}.about summary{padding:12px 0;cursor:pointer;color:#d8e4f5;font-weight:700}footer{max-width:930px;margin:30px auto;text-align:center;padding:0 24px;color:#9dafcb;font-size:.73rem;line-height:1.7}footer p{margin:5px 0}dialog{width:min(480px,calc(100% - 32px));border:1px solid #5e7194;border-radius:20px;background:#15233f;color:#f0f7ff;padding:28px;box-shadow:0 20px 80px #0008}dialog::backdrop{background:#040a1cc9;backdrop-filter:blur(5px)}dialog h2{margin:0 0 18px;font-size:1.7rem;letter-spacing:-.03em}dialog p,dialog li{font-size:.95rem;line-height:1.7;color:#d2def0}dialog ol{padding-left:20px}dialog li{margin-bottom:9px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.no-script{padding:30px;text-align:center}
@media(max-width:600px){.topbar{padding:12px 18px}.brand img{width:148px;height:32px}main{width:calc(100% - 24px);margin-top:22px}.intro{gap:12px;padding:0 6px;margin-bottom:22px}.intro-art{width:94px;height:94px}.intro h1{font-size:2.85rem}.lead{font-size:.85rem}.eyebrow{font-size:.6rem}.play-panel{padding:16px 12px;border-radius:19px}.settings{gap:12px;padding-bottom:18px;align-items:stretch;flex-wrap:wrap}.mode-group{flex:1}.mode-group button{padding:10px 11px;flex:1}.level-label{font-size:.78rem;justify-content:space-between;width:100%}.level-label select{min-width:150px}.board-heading{margin-top:20px;align-items:flex-start}.board-heading h2{font-size:1rem}.board-heading .text-button{font-size:.73rem;padding-top:1px}.progress-row{font-size:.71rem}#lives{gap:5px}#life-dots{letter-spacing:1px}.word-grid{gap:6px}.word{min-height:70px;border-radius:10px;padding:10px 3px;font-size:clamp(.62rem,2.7vw,.85rem);letter-spacing:0}.word.long{font-size:clamp(.58rem,2.4vw,.76rem)}.controls{flex-direction:column;align-items:stretch;gap:12px}.secondary-controls{justify-content:stretch}.secondary-controls button{flex:1;padding:11px 8px}.primary{min-height:48px}.message{font-size:.8rem;margin-top:14px}.bottom-actions{gap:10px}.bottom-actions>span{font-size:.7rem}.intro .eyebrow{font-size:.55rem}.solved-group h3{font-size:.79rem}.solved-group p{font-size:.68rem}.result h2{font-size:1.5rem}dialog{padding:24px}.back{font-size:.8rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

@media(max-width:360px){.intro-art{display:none}.intro h1{font-size:2.7rem;white-space:nowrap}.intro .lead{font-size:.82rem}.word.long{font-family:Arial,sans-serif;font-size:.56rem;letter-spacing:-.025em}.word{min-height:64px}.board-heading{flex-wrap:wrap}.board-heading .text-button{padding:5px 0}.board-heading h2{font-size:.96rem}}

@media(max-width:360px){main{width:calc(100% - 12px)}.play-panel{padding-left:8px;padding-right:8px}.word.long{padding-left:1px;padding-right:1px;font-weight:700;letter-spacing:-.03em}}

/* Neon lab: quiet background geometry, bright edges and legible solid tiles. */
:root{--aqua:#60ffdf;--violet:#b19aff;background:#060c20}
body{background:radial-gradient(ellipse at 12% 0%,#10536966,transparent 40%),radial-gradient(ellipse at 90% 35%,#39208050,transparent 50%),#060c20;isolation:isolate}
body::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#53baff09 1px,transparent 1px),linear-gradient(90deg,#53baff09 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(#000,transparent 85%)}
.topbar{border-bottom-color:#61deed26}
.brand img{filter:drop-shadow(0 0 10px #46e4ed25)}
.intro{position:relative;margin:28px 0}
.intro h1{font-size:clamp(3.2rem,6.5vw,4.5rem);text-shadow:0 3px 0 #0004}
.intro h1>span:first-child{color:#76ffe4;text-shadow:0 0 28px #23ffdb50}
.title-dot{color:#b9a2ff;text-shadow:0 0 18px #9470ff90}
.neon-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#64ffe5;box-shadow:0 0 12px #36ffe4;margin:0 5px 1px 0}
.intro-art{width:156px;height:156px;transform:rotate(6deg);filter:drop-shadow(0 8px 30px #53f4ed30)}
.bank-badge{display:inline-flex;align-items:center;gap:8px;font-size:.68rem;letter-spacing:.03em;margin:15px 0 0;border:1px solid #62b1cb45;border-radius:20px;padding:7px 11px;background:#0c2335;color:#c8e7f2}
.bank-badge span{color:#87ffe8}
.play-panel{position:relative;background:linear-gradient(145deg,#12253ce8,#10172f 55%,#161831);border-color:#528ba280;box-shadow:0 0 0 5px #60eada04,0 18px 70px #0006,0 0 35px #4bafcf0b;overflow:clip}
.play-panel::before{content:'';position:absolute;top:0;left:10%;right:10%;height:2px;background:linear-gradient(90deg,transparent,#68ffe1,#6ab6ff,#ad85ff,transparent);box-shadow:0 0 16px #7ee7ff70}
.mode-group{border-color:#486386;background:#090f25}
.mode-group button[aria-pressed=true]{background:linear-gradient(120deg,#73ffe2,#43dce7);color:#032c3b;box-shadow:0 0 15px #47f4db25}
.settings{border-bottom-color:#6685b02c}
.board-heading .eyebrow{color:#beb0ec}
.word{background:linear-gradient(145deg,#243c57,#17253f);border:1px solid #4c6b8c;border-bottom:4px solid #2e4969;box-shadow:inset 0 1px 0 #b1e8ff13,0 3px 0 #060c2080;min-height:70px;text-wrap:balance}
.word:hover:not(:disabled){background:linear-gradient(135deg,#304f6e,#243954);border-color:#85d6e9;box-shadow:0 0 15px #5aece519}
.word[aria-pressed=true]{background:linear-gradient(135deg,#9bffe8,#47e4df);color:#062c37;border-color:#befff1;border-bottom-color:#27b5b8;box-shadow:0 0 0 1px #5af5dc,0 0 20px #37eaca30,inset 0 1px 0 #fff8}
.word[aria-pressed=true]::after{background:#0e444e;color:#c0fff0;border-radius:50%;width:13px;height:13px;display:grid;place-items:center;right:4px;top:4px;font-size:9px}
#life-dots{color:#bfa4ff;text-shadow:0 0 8px #ae86ff60}
.primary{background:linear-gradient(115deg,#85ffe1,#40d8e6);border-color:#adfff0;box-shadow:0 0 20px #4bedd323,0 3px 0 #0c4659}
.primary:hover:not(:disabled){box-shadow:0 0 24px #4bedd344,0 3px 0 #0c4659}
.secondary{border-color:#58698b;background:linear-gradient(145deg,#1b2d49,#182139)}
.solved-group{--group:#64f5d6;border-color:var(--group);border-left-width:4px;background:linear-gradient(110deg,#16494c,#12303d);box-shadow:inset 0 0 25px #3dffce08,0 0 15px #54d8d00b}
.solved-group.g1{--group:#71baff;background:linear-gradient(110deg,#213e68,#182c4a);border-color:var(--group)}
.solved-group.g2{--group:#b89bff;background:linear-gradient(110deg,#463165,#302441);border-color:var(--group)}
.solved-group.g3{--group:#c3deff;background:linear-gradient(110deg,#314665,#202e44);border-color:var(--group)}
.group-label{color:var(--group);font-weight:800}
.result.is-win{margin-top:5px;padding:22px 12px;border:1px solid #69ecd43d;border-radius:18px;background:radial-gradient(ellipse at 50% 0,#297b6c33,transparent 70%)}
.result.is-win h2{color:#a2ffe9;text-shadow:0 0 24px #40ecc43b}
.win-emblem{display:flex;align-items:center;justify-content:center;gap:24px;margin:0 0 16px;color:#b59dff}
.win-emblem>span{font-size:21px;text-shadow:0 0 15px #a78aff80}
.win-emblem svg{width:72px;height:72px;fill:#174b4b;stroke:#72ffe0;stroke-width:2;filter:drop-shadow(0 0 10px #72ffe040)}
.win-emblem .tick{fill:none;stroke:#d5fff2;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.fireworks{position:fixed;inset:0;width:100%;height:100%;z-index:20;pointer-events:none}
dialog{border-color:#7ecfc08c;background:linear-gradient(145deg,#183047,#171c3b);box-shadow:0 0 35px #59ffe014,0 20px 80px #0008}
@media(max-width:600px){.intro{margin:24px 0}.intro h1{font-size:3.1rem}.intro-art{width:104px;height:104px}.bank-badge{font-size:.61rem;padding:6px 9px}.word{min-height:72px}.word.long{line-height:1.35}.play-panel{box-shadow:0 10px 45px #0004}.word[aria-pressed=true]::after{width:10px;height:10px;font-size:7px;right:2px;top:2px}}
@media(max-width:360px){.intro h1{font-size:3rem}.word{min-height:70px}.bank-badge{font-size:.63rem}.word.long{font-size:.60rem;overflow-wrap:anywhere;line-height:1.4}}
@media(prefers-reduced-motion:reduce){.fireworks{display:none!important}}

.practice-picker{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:.8rem;color:var(--muted);flex-wrap:wrap}
.practice-picker input{width:76px;min-height:44px;border:1px solid #657a9a;border-radius:9px;background:#0b1630;color:#efffff;padding:8px;font:inherit;font-weight:800}
.practice-picker input:focus-visible{outline:3px solid #f8e8a0;outline-offset:3px}
.practice-picker .secondary{min-height:44px;padding:9px 16px}
@media(max-width:360px){.practice-picker{gap:8px;font-size:.72rem}.practice-picker input{width:65px}}

@media(max-width:360px){.word{font-family:Arial,sans-serif;font-size:.65rem}.word.long{font-size:.56rem}.word.very-long{font-size:.52rem;letter-spacing:-.03em}}
