: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:1rem}.game-container{max-width:700px;width:100%}.game-header{margin-bottom:.5rem}.title-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.25rem}.title-row h1{margin:0;font-size:1.6rem;font-weight:700;letter-spacing:-.03em;background:linear-gradient(135deg,#f39c12,#e67e22);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.level-badge{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.6rem;letter-spacing:.15em;text-transform:uppercase;color:#ffffff80;border:1px solid rgba(255,255,255,.12);padding:.15rem .5rem;border-radius:.25rem}.stats-row{display:flex;gap:1.25rem}.stat{font-size:.8rem;color:#ffffff73;font-variant-numeric:tabular-nums}.instructions{text-align:center;font-size:.8rem;color:#ffffff59;margin-bottom:1.5rem;padding:.5rem;border:1px dashed rgba(255,255,255,.08);border-radius:.5rem}.board{display:flex;justify-content:center;gap:.6rem;flex-wrap:wrap;padding:1rem 0}.peg-container{display:flex;flex-direction:column;align-items:center;cursor:pointer;transition:transform .15s;position:relative;-webkit-user-select:none;user-select:none}.peg-container:hover{transform:translateY(-2px)}.peg-container.selected .peg-rod{background:#f39c1299;box-shadow:0 0 12px #f39c124d}.peg-container.sorted .peg-rod{background:#2ecc7180}.peg-nuts{display:flex;flex-direction:column;gap:2px;height:180px;justify-content:flex-end;align-items:center;padding-bottom:4px;min-width:56px}.nut-slot{width:50px;height:38px;border-radius:4px;position:relative;transition:opacity .25s,transform .15s;flex-shrink:0;display:flex;align-items:center;justify-content:center}.nut-slot.empty{background:#ffffff08;border:1px dashed rgba(255,255,255,.06);clip-path:none!important}.nut-inner{width:14px;height:14px;border-radius:50%;background:#0000004d;box-shadow:inset 0 1px 2px #0000004d,0 1px 1px #ffffff26}.nut-animating{transform:translateY(-20px) scale(.9)}.peg-rod{width:8px;height:12px;background:#ffffff26;border-radius:0 0 2px 2px;transition:background .2s,box-shadow .2s}.peg-base{width:40px;height:6px;background:#ffffff1a;border-radius:0 0 4px 4px}.sorted-check{position:absolute;top:-8px;right:-4px;font-size:.7rem;background:#2ecc71;color:#000;width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-weight:700;animation:pop-in .3s ease}@keyframes pop-in{0%{transform:scale(0);opacity:0}60%{transform:scale(1.3)}to{transform:scale(1);opacity:1}}.win-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:grid;place-items:center;z-index:50;animation:fade-in .3s ease}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.win-card{background:#151515;border:1px solid rgba(255,255,255,.1);border-radius:1rem;padding:2rem 2.5rem;text-align:center;animation:slide-up .3s ease}@keyframes slide-up{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.win-card h2{margin:0 0 .25rem;font-size:1.5rem;font-weight:700;color:#2ecc71}.win-card p{margin:0 0 1.5rem;color:#ffffff8c;font-size:.9rem}.win-buttons{display:flex;gap:.75rem;justify-content:center}.btn{font-family:inherit;font-size:.85rem;font-weight:600;padding:.5rem 1.25rem;border-radius:.5rem;border:none;cursor:pointer;transition:background .15s,transform .1s}.btn:active{transform:scale(.97)}.btn-primary{background:#f39c12;color:#000}.btn-primary:hover{background:#e67e22}.btn-secondary{background:#ffffff14;color:#fafafa;border:1px solid rgba(255,255,255,.1)}.btn-secondary:hover{background:#ffffff24}.btn-ghost{background:transparent;color:#fff6;padding:.4rem .75rem}.btn-ghost:hover{color:#ffffffb3;background:#ffffff0d}.game-footer{display:flex;justify-content:center;margin-top:1rem}@media(max-width:500px){.board{gap:.35rem}.nut-slot{width:40px;height:32px}.peg-nuts{height:145px;min-width:46px}.nut-inner{width:11px;height:11px}.peg-rod{width:6px}.peg-base{width:32px}}
