:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100vh;background:#0a0a0a;color:#fafafa}.shell{min-height:100vh;display:grid;place-items:center;padding:2rem}.card{width:100%;max-width:28rem;border:1px solid rgba(255,255,255,.1);padding:2rem;border-radius:.75rem;background:#ffffff08;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}h1{margin:0 0 .75rem;font-size:1.75rem;font-weight:700;letter-spacing:-.02em}p{margin:0;color:#ffffffa6;font-size:.95rem}.start-card h1{text-align:center;font-size:2rem;background:linear-gradient(135deg,#ff6b6b,orange,gold,#4ecdc4,#45b7d1,#a855f7);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.subtitle{text-align:center;margin-bottom:2rem}.difficulty-picker{display:flex;flex-direction:column;gap:.75rem}.diff-btn{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.85rem 1.25rem;border:1px solid rgba(255,255,255,.12);border-radius:.5rem;background:#ffffff0a;color:#fafafa;font-size:1rem;font-weight:600;text-transform:capitalize;cursor:pointer;transition:all .15s ease}.diff-btn:hover{background:#ffffff14;border-color:#ffffff40}.diff-btn.easy:hover{border-color:#4ecdc4}.diff-btn.medium:hover{border-color:orange}.diff-btn.hard:hover{border-color:#ff6b6b}.diff-info{font-size:.75rem;font-weight:400;color:#fff6;text-transform:none}.hud{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid rgba(255,255,255,.08)}.hud-item{font-size:.85rem;color:#ffffff80;font-variant-numeric:tabular-nums}.hud-diff{margin-left:auto;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;padding:.2rem .5rem;border-radius:.25rem}.hud-diff.easy{background:#4ecdc426;color:#4ecdc4}.hud-diff.medium{background:#ffa50026;color:orange}.hud-diff.hard{background:#ff6b6b26;color:#ff6b6b}.prompt{text-align:center;font-size:1.1rem;margin-bottom:1.5rem;color:#ffffffb3}.prompt strong{color:#fafafa;font-weight:700}.swatch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1rem}.swatch{position:relative;aspect-ratio:1;border:2px solid transparent;border-radius:.75rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.swatch:hover:not(.correct):not(.wrong):not(.dimmed){transform:scale(1.05);border-color:#ffffff4d}.swatch.correct{border-color:#4ecdc4;box-shadow:0 0 16px #4ecdc466;transform:scale(1.05)}.swatch.wrong{border-color:#ff6b6b;box-shadow:0 0 16px #ff6b6b66}.swatch.dimmed{opacity:.35;cursor:default}.swatch-check,.swatch-x{font-size:2rem;font-weight:700;color:#fff;text-shadow:0 2px 8px rgba(0,0,0,.6)}.feedback{text-align:center;animation:fadeIn .25s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.fb-correct{color:#4ecdc4;font-weight:600;font-size:1.1rem}.fb-wrong{color:#ff6b6b;font-weight:600;font-size:1.1rem}.next-btn{margin-top:1rem;padding:.65rem 2rem;border:1px solid rgba(255,255,255,.15);border-radius:.5rem;background:#ffffff0f;color:#fafafa;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .15s ease}.next-btn:hover{background:#ffffff1f;border-color:#ffffff4d}.result-card{text-align:center}.result-card h1{margin-bottom:.5rem}.final-score{font-size:3rem;font-weight:800;color:#fafafa;margin:.5rem 0 0;font-variant-numeric:tabular-nums}.grade{font-size:1.25rem;font-weight:600;color:#4ecdc4;margin:.5rem 0 0}.pct{color:#fff6;font-size:.9rem;margin:.25rem 0 1.5rem}.result-actions{display:flex;gap:.75rem;justify-content:center}.play-btn{padding:.65rem 1.5rem;border:none;border-radius:.5rem;background:#4ecdc4;color:#0a0a0a;font-size:.9rem;font-weight:700;cursor:pointer;transition:all .15s ease}.play-btn:hover{background:#3dbdb5}.menu-btn{padding:.65rem 1.5rem;border:1px solid rgba(255,255,255,.15);border-radius:.5rem;background:transparent;color:#ffffffb3;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .15s ease}.menu-btn:hover{background:#ffffff0f;color:#fafafa}
