html,body{overscroll-behavior:none;-webkit-overflow-scrolling:auto}:root{--bg:#f5f5f0;--surface:#fff;--border:#ddd;--text:#222;--text-light:#888;--guide-color:#ccc;--success:#555;--font:"Inter", system-ui, -apple-system, sans-serif}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);height:100%;font-family:var(--font);color:var(--text);-webkit-font-smoothing:antialiased;margin:0;overflow:hidden}#app{width:100%;height:100%;position:relative;overflow:hidden}.profiles-screen{flex-direction:column;justify-content:center;align-items:center;height:100%;padding:24px;display:flex}.app-title{letter-spacing:2px;margin-bottom:32px;font-size:28px;font-weight:300}.profiles-grid{grid-template-columns:repeat(3,minmax(100px,1fr));gap:16px;width:100%;max-width:400px;margin:0 auto;display:grid}.profile-card{aspect-ratio:1;background:var(--surface);border:1px solid var(--border);cursor:pointer;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;transition:transform .15s,box-shadow .15s;display:flex}.profile-card:hover{transform:scale(1.03);box-shadow:0 2px 12px #00000014}.profile-avatar{font-size:40px}.profile-name{margin-top:8px;font-size:14px;font-weight:500}.profile-add{border:dashed 2px var(--border);background:0 0}.profile-add .profile-avatar{color:var(--text-light);font-size:32px}.modal-overlay{z-index:100;background:#0006;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.modal{background:#fff;border-radius:16px;width:90%;max-width:360px;padding:24px;animation:.2s scaleIn}.modal h2{margin:0 0 16px}.modal-label{text-transform:uppercase;letter-spacing:1px;color:var(--text-light);margin:16px 0 8px;font-size:12px;display:block}.modal-input{border:1px solid var(--border);border-radius:8px;outline:none;width:100%;padding:10px 12px;font-size:16px}.modal-input:focus{border-color:#999}.avatar-picker{grid-template-columns:repeat(6,1fr);gap:8px;display:grid}.avatar-option{cursor:pointer;background:0 0;border:2px solid #0000;border-radius:50%;width:44px;height:44px;font-size:24px}.avatar-option.selected{border-color:var(--text);background:#0000000d}.accuracy-picker{grid-template-columns:repeat(2,1fr);gap:8px;display:grid}.accuracy-option{border:1px solid var(--border);cursor:pointer;text-align:center;background:#fff;border-radius:8px;padding:10px;transition:border-color .15s,background .15s}.accuracy-option.selected{border-color:var(--text);background:#0000000d}.accuracy-label{font-size:13px;font-weight:600;display:block}.accuracy-age{color:var(--text-light);margin-top:2px;font-size:11px;display:block}.modal-actions{gap:12px;margin-top:20px;display:flex}.btn{cursor:pointer;border:none;border-radius:8px;padding:10px 20px;font-size:14px}.btn-cancel{color:var(--text);background:#eee}.btn-create{background:var(--text);color:#fff}.btn-create:disabled{opacity:.3;cursor:not-allowed}.phase-screen{flex-direction:column;max-width:500px;height:100%;margin:auto;padding:16px;display:flex}.phase-header{align-items:center;gap:12px;margin-bottom:20px;display:flex}.back-btn{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:50%;width:36px;height:36px;font-size:18px}.profile-badge{cursor:pointer;align-items:center;gap:8px;margin-left:auto;display:flex}.badge-avatar{font-size:24px}.badge-name{font-size:14px;font-weight:500}.phase-list{flex-direction:column;flex:1;gap:12px;display:flex;overflow-y:auto}.phase-card{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:12px;padding:16px;transition:transform .15s,box-shadow .15s;position:relative}.phase-card.locked{opacity:.5;cursor:not-allowed}.phase-card.coming-soon{opacity:.4;cursor:not-allowed}.phase-name{font-size:16px;font-weight:600}.phase-desc{color:var(--text-light);margin-top:2px;font-size:12px}.phase-progress-bar{background:#eee;border-radius:2px;height:4px;margin-top:10px;overflow:hidden}.phase-progress-fill{background:var(--text);border-radius:2px;height:100%;transition:width .3s}.phase-progress-text{color:var(--text-light);margin-top:4px;font-size:11px}.phase-lock{font-size:16px;position:absolute;top:50%;right:16px;transform:translateY(-50%)}.skill-grid-screen{flex-direction:column;max-width:600px;height:100%;margin:auto;padding:16px;display:flex}.skill-header{align-items:center;gap:12px;margin-bottom:16px;display:flex}.skill-header h2{margin:0;font-size:18px}.skill-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;padding-bottom:20px;display:grid;overflow-y:auto}.skill-tile{aspect-ratio:1;border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:8px;flex-direction:column;justify-content:center;align-items:center;transition:transform .15s;display:flex}.skill-tile:hover{transform:scale(1.05)}.skill-symbol{font-size:24px;font-weight:600}.skill-dots{gap:3px;margin-top:6px;display:flex}.mastery-dot{background:#ddd;border-radius:50%;width:6px;height:6px}.mastery-dot.filled{background:var(--text)}.practice-screen{background:var(--bg);z-index:50;flex-direction:column;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.practice-hud{align-items:center;gap:12px;padding:8px 16px;display:flex}.practice-close{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:50%;flex-shrink:0;width:32px;height:32px;font-size:18px}.practice-prompt{text-align:center;color:var(--text);flex:1;font-size:14px;font-weight:500}.practice-progress{flex-shrink:0;gap:6px;display:flex}.progress-dot{background:#ddd;border-radius:50%;width:8px;height:8px;transition:background .2s}.progress-dot.filled{background:var(--text)}.practice-canvas{cursor:crosshair;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;flex:1;width:100%}.practice-overlay{z-index:10;background:#f5f5f0e6;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.practice-overlay-text{letter-spacing:2px;font-size:28px;font-weight:300;animation:.3s fadeIn}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-6px)}40%{transform:translate(6px)}60%{transform:translate(-4px)}80%{transform:translate(4px)}}.practice-canvas.shake{animation:.4s ease-in-out shake}.dashboard-screen{max-width:500px;height:100%;margin:auto;padding:16px;overflow-y:auto}.dash-header{align-items:center;gap:12px;margin-bottom:20px;display:flex}.dash-profile{align-items:center;gap:8px;display:flex}.dash-avatar{font-size:28px}.dash-name{font-size:18px;font-weight:600}.dash-stats{grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:24px;display:grid}.stat-card{text-align:center;border:1px solid var(--border);background:#fff;border-radius:8px;padding:12px 8px}.stat-value{font-size:20px;font-weight:600}.stat-label{color:var(--text-light);text-transform:uppercase;letter-spacing:.5px;margin-top:4px;font-size:10px}.dash-section{margin-bottom:24px}.dash-section h3{text-transform:uppercase;letter-spacing:1px;color:var(--text-light);margin:0 0 12px;font-size:14px}.dash-phase{align-items:center;gap:8px;margin-bottom:8px;display:flex}.dash-phase-name{flex-shrink:0;width:100px;font-size:13px}.dash-phase-bar{background:#eee;border-radius:3px;flex:1;height:6px;overflow:hidden}.dash-phase-fill{background:var(--text);border-radius:3px;height:100%}.dash-phase-pct{color:var(--text-light);text-align:right;width:36px;font-size:12px}.mastery-grid{grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:3px;display:grid}.mastery-cell{aspect-ratio:1;color:#fff;border-radius:4px;justify-content:center;align-items:center;font-size:10px;font-weight:600;display:flex}.dashboard-accuracy{margin-bottom:12px}.dash-danger{border-top:1px solid var(--border);gap:12px;padding-top:16px;display:flex}.btn-reset{border:1px solid var(--border);cursor:pointer;background:#fff;border-radius:6px;padding:8px 16px;font-size:12px}.btn-delete{cursor:pointer;color:#888;background:#fff;border:1px solid #ccc;border-radius:6px;padding:8px 16px;font-size:12px}@keyframes scaleIn{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#ccc;border-radius:2px}@media (max-width:360px){.profiles-grid,.dash-stats{grid-template-columns:repeat(2,1fr)}.accuracy-picker{grid-template-columns:1fr}}
