@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Baloo+2:wght@600;700;800&display=swap');
:root{--ink:#24243a;--muted:#6e6d80;--cream:#fff8ef;--paper:#fffdfa;--line:#eee4d8;--red:#e54754;--red-dark:#bd2d43;--rose:#ffe2e2;--green:#268a66;--green-soft:#ddf4e9;--gold:#ffc857;--blue:#86b9d5;--shadow:0 14px 40px rgba(77,47,36,.09);font-family:'Nunito',system-ui,sans-serif;color:var(--ink);background:var(--cream)}
*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(ellipse at 50% -10%,#fff 0,rgba(255,255,255,.5) 40%,transparent 72%),var(--cream)}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #e99d39;outline-offset:3px}.app-shell{max-width:1180px;margin:0 auto;padding:18px 28px 30px}.masthead{height:58px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:14px;font-weight:900;letter-spacing:.11em}.brand-mark{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;border:2px solid var(--ink);box-shadow:3px 3px 0 var(--gold);font-family:'Baloo 2',sans-serif;font-weight:900;letter-spacing:-.1em}.brand-mark span:first-child{color:var(--red)}.brand-mark span:last-child{color:#5187a5}.help-button{background:transparent;border:0;color:var(--muted);font-size:14px;font-weight:800;padding:9px 12px;border-radius:12px}.help-button:hover{background:#fff}.intro{text-align:center;padding:17px 0 20px}.eyebrow{margin:0 0 4px;color:var(--red-dark);font-size:11px;font-weight:900;letter-spacing:.2em}.intro h1{font:800 clamp(32px,5vw,48px)/1.05 'Baloo 2',sans-serif;letter-spacing:-.02em;margin:0;color:var(--ink)}.intro-copy{margin:6px 0 0;color:var(--muted);font-size:16px}.help-panel{position:relative;max-width:650px;margin:0 auto 18px;padding:20px 24px 16px;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.help-panel h2{font:800 22px 'Baloo 2',sans-serif;margin:0 0 8px}.help-panel ol{margin:0;padding-left:22px;color:#575669;line-height:1.8;font-size:14px}.help-close{position:absolute;right:14px;top:10px;border:0;background:transparent;font-size:24px;color:var(--muted)}.difficulty{max-width:650px;margin:0 auto 20px;padding:5px;background:#f2e9df;border-radius:17px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.level-button{border:0;border-radius:13px;background:transparent;padding:9px 8px 8px;display:flex;flex-direction:column;align-items:center;gap:1px}.level-button.active{background:#fff;box-shadow:0 3px 10px rgba(51,34,22,.08)}.level-name{font-weight:900;font-size:15px}.level-detail{font-size:11px;color:var(--muted)}.game-card{background:var(--paper);border:1px solid #f1e8df;border-radius:26px;padding:24px 28px 26px;box-shadow:var(--shadow)}.game-topline{display:flex;align-items:center;justify-content:space-between;padding:0 2px 17px;border-bottom:1px solid var(--line)}.small-eyebrow{font-size:10px;margin-bottom:1px}.game-topline h2{font:800 24px 'Baloo 2',sans-serif;margin:0}.progress-pill{display:flex;align-items:center;gap:5px;border-radius:999px;padding:8px 14px;background:#fff0ef;color:var(--red-dark);font-weight:900;font-size:16px}.progress-divider{opacity:.45}.progress-label{font-size:12px;font-weight:800;margin-left:3px}.game-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:32px;padding-top:18px}.wheel-column{min-width:0}.wheel-instructions{display:flex;justify-content:center;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--muted);margin:0 0 4px}.instruction-dot{width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px var(--rose)}.wheel-wrap{width:min(100%,610px);margin:0 auto;touch-action:none;user-select:none;cursor:grab}.wheel-wrap.dragging{cursor:grabbing}#wheel{display:block;width:100%;height:auto;overflow:visible}.wheel-ring{fill:none;stroke-width:2.4}.wheel-token{transition:fill .18s,stroke .18s}.wheel-token.available{fill:#fffdf9;stroke:#514f65;stroke-width:2.2}.wheel-token.used{fill:#58b989;stroke:#176648;stroke-width:2.4}.wheel-token.current{stroke:var(--red);stroke-width:4}.wheel-letter{font:900 19px 'Nunito',sans-serif;fill:var(--ink);text-anchor:middle;dominant-baseline:central;pointer-events:none}.wheel-letter.used-letter{fill:#fff}.read-beam{fill:#e5475412;stroke:#e54754;stroke-width:1.6;stroke-dasharray:5 5}.center-disc{fill:#ffe27a;stroke:#29293a;stroke-width:3}.center-letter{font:900 28px 'Baloo 2',sans-serif;fill:#25253a;text-anchor:middle;dominant-baseline:central}.center-caption{font:800 8px 'Nunito',sans-serif;fill:#6c5f49;text-anchor:middle;letter-spacing:.08em}.beam-letter-box{fill:#fff;stroke:#38374a;stroke-width:2}.beam-letter-box.used-box{fill:#58b989;stroke:#176648}.beam-letter{font:900 19px 'Nunito',sans-serif;fill:#26263b;text-anchor:middle;dominant-baseline:central}.beam-letter.used-beam-letter{fill:#fff}.beam-center-box{fill:#ffe27a;stroke:#29293a;stroke-width:2.5}.word-display{min-height:44px;margin:2px auto 12px;display:flex;justify-content:center;align-items:center;gap:5px}.preview-tile{width:34px;height:38px;border:2px solid #dfd4c8;border-radius:9px;background:#fff;display:grid;place-items:center;font:900 20px 'Baloo 2',sans-serif;color:#303047}.preview-tile.start-tile{background:#ffe27a;border-color:#343247}.preview-tile.used-tile{background:var(--green-soft);border-color:var(--green);color:var(--green)}.wheel-controls{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.ring-control{display:flex;align-items:center;gap:6px;padding:5px 8px;border-radius:13px;background:#f8f1eb;border:1px solid #eee3d8}.ring-label{font-size:11px;font-weight:900;color:var(--muted);min-width:70px}.ring-control button{width:30px;height:30px;border:0;border-radius:9px;background:#fff;box-shadow:0 1px 3px #0001;font-size:20px;line-height:1}.ring-control button:hover{background:var(--rose);color:var(--red-dark)}.ring-control .ring-current{font-weight:900;font-size:13px;min-width:15px;text-align:center}.solve-column{display:flex;flex-direction:column;gap:14px;padding:13px 0 3px}.solve-card,.found-card{padding:18px;border:1px solid var(--line);border-radius:19px;background:#fff}.solve-card{position:relative;background:#fff9f5}.solve-icon{position:absolute;right:17px;top:13px;color:#edab4b;font-size:22px}.solve-card h3,.found-card h3{font:800 19px 'Baloo 2',sans-serif;margin:0}.solve-card p{font-size:13px;line-height:1.55;color:var(--muted);margin:5px 0 14px}.primary-button{width:100%;border:0;border-radius:12px;background:var(--red);color:#fff;padding:12px 15px;font-weight:900;box-shadow:0 4px 0 var(--red-dark);transition:transform .08s,box-shadow .08s}.primary-button:hover{background:#d93649}.primary-button:active{transform:translateY(3px);box-shadow:0 1px 0 var(--red-dark)}.primary-button:disabled{opacity:.55;cursor:default;transform:none;box-shadow:none}.solve-card .feedback{min-height:20px;margin:12px 0 0;text-align:center;font-size:12px;font-weight:800}.feedback.error{color:#c43549}.feedback.success{color:var(--green)}.found-card{min-height:120px}.found-heading{display:flex;align-items:center;justify-content:space-between}.found-spark{color:#e5a32f;font-size:20px}.found-caption{font-size:12px;color:var(--muted);margin:2px 0 10px}.found-list{display:flex;flex-wrap:wrap;gap:7px}.found-word{padding:6px 10px;border-radius:9px;background:var(--green-soft);color:#176648;font-size:13px;font-weight:900;letter-spacing:.08em}.empty-found{color:#a09aaa;font-size:12px;font-weight:700}.actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.secondary-button{background:#fff;border:1px solid var(--line);border-radius:11px;padding:8px 12px;color:var(--muted);font-size:13px;font-weight:900}.secondary-button:hover{border-color:#d5b9aa;color:var(--ink)}.puzzle-nav{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;font-weight:900}.puzzle-nav button{border:1px solid var(--line);background:#fff;border-radius:9px;width:31px;height:31px;font-size:23px;line-height:20px}.puzzle-nav button:hover{background:var(--rose);border-color:#f4c1c4;color:var(--red-dark)}.footer-note{padding:17px 8px 0;text-align:center;color:#888393;font-size:12px}.footer-star{color:#e7ad45;margin-right:5px}.win-banner{margin-top:10px;padding:12px 14px;border-radius:13px;text-align:center;background:#e6f7ed;color:#176648;font:900 18px 'Baloo 2',sans-serif;animation:pop .4s ease-out}.win-banner small{display:block;font:700 12px 'Nunito',sans-serif;margin-top:2px}@keyframes pop{0%{transform:scale(.92);opacity:.4}100%{transform:scale(1);opacity:1}}
@media(max-width:850px){.app-shell{padding:14px 16px 24px}.game-card{padding:20px 18px 22px}.game-layout{grid-template-columns:1fr;gap:12px}.wheel-wrap{max-width:560px}.solve-column{max-width:560px;width:100%;margin:0 auto;padding-top:3px}.solve-card{padding:16px}.found-card{min-height:100px}.actions{padding:0 2px}.game-topline{padding-bottom:13px}}
@media(max-width:520px){.app-shell{padding:10px 10px 20px}.masthead{height:46px}.brand{font-size:11px;gap:7px}.brand-mark{width:29px;height:29px}.help-button{font-size:12px}.intro{padding:14px 0 17px}.intro-copy{font-size:14px}.difficulty{margin-bottom:13px}.level-button{padding:8px 3px}.level-name{font-size:13px}.level-detail{font-size:9px}.game-card{padding:16px 11px 17px;border-radius:20px}.game-topline h2{font-size:20px}.progress-pill{padding:7px 10px;font-size:14px}.progress-label{font-size:10px}.wheel-instructions{font-size:11px}.wheel-wrap{width:100%}.word-display{margin-bottom:10px}.preview-tile{width:29px;height:33px;font-size:18px}.wheel-controls{gap:5px}.ring-control{gap:4px;padding:4px 5px}.ring-label{min-width:auto;font-size:9px}.ring-control button{width:27px;height:27px}.ring-control .ring-current{font-size:12px}.solve-column{gap:10px}.solve-card,.found-card{padding:14px;border-radius:15px}.solve-card h3,.found-card h3{font-size:17px}.solve-card p{font-size:12px}.actions{flex-wrap:wrap}.footer-note{font-size:11px}}
