:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#283c31;background:#f5f2e9;font-synthesis:none;--green:#547c59;--pale:#e3eddf;--accent:#ed975a;--line:#dddcd0}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ed975a;outline-offset:3px}button{border:1px solid var(--line);color:inherit;background:#fffdf7;border-radius:10px;padding:10px 14px;font-size:13px;font-weight:650;transition:background .15s,transform .15s}button:hover:not(:disabled){background:var(--pale);transform:translateY(-1px)}h1,h2,h3,p{margin:0}small{font-size:12px}.shell{max-width:1440px;margin:auto;padding:0 44px}.topbar{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand svg{width:42px;height:42px}.brand-name{font-size:22px;font-weight:800;letter-spacing:-1px}.brand-label{display:block;font-size:9px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#758577;margin-top:3px}.top-actions{display:flex;gap:10px;align-items:center}.wallet{display:flex;gap:8px;align-items:center;font-size:14px;font-weight:750;padding:10px 15px;border-radius:30px;background:#fffdf6;border:1px solid var(--line)}.coin-icon{color:#cf9647;font-size:18px}.star-icon{color:#8976ab;font-size:18px}.icon-button{padding:9px 12px;background:transparent}.intro{padding:31px 0 27px;display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase;color:#758577;margin-bottom:10px}.intro h1{font-size:40px;letter-spacing:-1.8px;line-height:1.15;font-weight:750}.intro p{font-size:14px;color:#758577;margin-top:9px}.world-step{font-size:11px;font-weight:700;padding:10px 15px;border:1px solid var(--line);border-radius:30px;white-space:nowrap;display:flex;align-items:center;gap:10px}.step-dots{display:flex;gap:5px}.step-dots i{width:7px;height:7px;background:#d3d8cb;border-radius:50%}.step-dots i.active{background:var(--green)}.layout{display:grid;grid-template-columns:minmax(0,1fr) 346px;gap:25px;align-items:start}.machine-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fcfaf5;box-shadow:0 6px 30px #273c3105}.machine-head{padding:18px 22px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e7e6da;background:#fff5}.machine-title{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700}.machine-title .tag{font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:750;color:var(--green);padding:5px 8px;border:1px solid var(--green);border-radius:5px}.running{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#748172;display:flex;align-items:center;gap:6px}.running:before{content:"";width:6px;height:6px;border-radius:50%;background:#72a578;box-shadow:0 0 0 3px #72a57819}.canvas-wrap{width:100%;position:relative}canvas{display:block;width:100%;aspect-ratio:900/760}.machine-footer{padding:16px 22px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;background:#ffffff60}.lap-stat{font-size:12px;color:#738071}.lap-stat strong{color:#304b36;font-size:16px;margin-right:6px}.boost{background:var(--accent);border-color:transparent;color:#2e372a;min-width:151px}.boost.active{background:var(--green);color:#fff}.goal-card{padding:19px 22px;background:var(--pale);border:1px solid #d4decc;border-radius:14px;margin-top:17px}.goal-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.goal-title{font-size:13px;font-weight:750}.goal-note{font-size:12px;color:#65765e;margin-top:5px;line-height:1.6}.goal-card progress{display:block;width:100%;height:6px;border:0;border-radius:6px;overflow:hidden;margin:13px 0 5px;accent-color:var(--green)}progress::-webkit-progress-bar{background:#ffffff80}progress::-webkit-progress-value{background:var(--green);border-radius:6px}.goal-end{display:flex;justify-content:space-between;font-size:10px;color:#71806a}.sidebar{border:1px solid var(--line);border-radius:18px;background:#fffdf7;overflow:hidden}.tabs{display:flex;padding:6px;border-bottom:1px solid var(--line);gap:2px}.tabs button{flex:1;font-size:11px;padding:11px 4px;border:0;background:transparent;border-radius:8px}.tabs button.selected{background:var(--pale);color:var(--green)}.panel-head{padding:20px 20px 13px}.panel-head h2{font-size:20px;letter-spacing:-.7px}.panel-head p{font-size:12px;color:#7e8879;margin-top:6px;line-height:1.5}.buy-mode{display:flex;gap:5px;padding:0 20px 16px}.buy-mode button{padding:5px 10px;font-size:10px;border-radius:5px}.buy-mode button.selected{background:#304b36;color:#fff;border-color:#304b36}.panel-body{max-height:645px;overflow:auto;padding:0 16px 16px;scrollbar-width:thin}.upgrade{border:1px solid #e4e4d8;background:#fcfbf5;border-radius:11px;padding:13px;margin-bottom:8px}.upgrade-top{display:flex;align-items:center;justify-content:space-between;gap:5px}.upgrade h3{font-size:12px;font-weight:750;display:flex;align-items:center;gap:7px}.upgrade h3 .glyph{width:24px;height:24px;display:grid;place-items:center;border-radius:7px;background:var(--pale);color:var(--green);font-size:13px}.level{font-size:9px;color:#86907d;font-weight:650;white-space:nowrap}.upgrade p{font-size:10.5px;color:#76816f;margin:8px 0 10px;line-height:1.55}.upgrade button{width:100%;padding:7px 12px;font-size:11px;display:flex;justify-content:space-between;align-items:center;background:#e9efdf;border-color:#d4dec8;border-radius:6px}.upgrade button .price{font-variant-numeric:tabular-nums;font-weight:750}.upgrade.locked{opacity:.7}.side-tip{padding:14px 20px;border-top:1px solid var(--line);font-size:10px;line-height:1.6;color:#7b8773;display:flex;gap:8px}.stats-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:17px 0}.stat{border:1px solid var(--line);border-radius:10px;padding:13px 17px;background:#faf8f0}.stat .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:5px}.stat strong{font-size:18px;font-weight:700;letter-spacing:-.5px}.stat span{font-size:10px;color:#84907f;margin-left:4px}.footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:24px 0 28px;margin-top:28px;font-size:10px;color:#899281}.footer .heart{color:#e2996c}.notice{padding:12px 16px;font-size:12px;background:#fff1d6;border:1px solid #e7c28a;border-radius:9px;margin:15px 0;line-height:1.7}.notice button{margin-left:10px;font-size:11px;padding:5px 9px}.hidden{display:none!important}.marble-card{border:1px solid var(--line);border-radius:10px;padding:12px;margin-bottom:8px}.marble-card h3{display:flex;align-items:center;gap:9px;font-size:12px}.marble-swatch{width:23px;height:23px;border-radius:50%;border:1px solid #ffffff80;box-shadow:inset -3px -3px 3px #0002;background:var(--marble);display:inline-grid;place-items:center;color:#fff;font-size:13px}.marble-card p{font-size:11px;line-height:1.6;color:#758270;margin-top:7px}.roster{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 17px}.roster label{font-size:9px;color:#6d7e69}.roster select{width:100%;font-size:11px;background:#f7f6ed;border:1px solid var(--line);border-radius:7px;padding:8px 4px;margin-top:4px;color:inherit}.journal-row{padding:11px;border:1px solid var(--line);border-radius:9px;margin-bottom:8px;font-size:12px}.journal-row small{display:block;line-height:1.6;margin-top:4px;color:#788674}.journal-row.earned{background:var(--pale)}.prestige-card{padding:15px;background:#efeaf6;border-radius:11px;margin-bottom:12px}.prestige-card h3{font-size:13px}.prestige-card p{font-size:11px;line-height:1.6;margin:8px 0;color:#7b7189}.prestige-card button{width:100%;background:#8571a4;border-color:transparent;color:#fff}.tutorial{border-left:3px solid var(--accent);padding:12px 14px;margin-top:16px;background:#fffaf0;border-radius:0 9px 9px 0;font-size:12px;line-height:1.6}.tutorial strong{display:block;color:#485c41;margin-bottom:3px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%);background:#2e4739;color:#fffdf6;padding:13px 22px;border-radius:30px;box-shadow:0 8px 35px #0002;font-size:12px;z-index:5;pointer-events:none}.dialog{border:1px solid var(--line);border-radius:18px;padding:28px;color:#283c31;background:#fffdf7;width:min(500px,calc(100vw - 32px));box-shadow:0 20px 80px #20332430}.dialog::backdrop{background:#21372865;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.dialog h2{font-size:25px;letter-spacing:-.8px;margin-bottom:12px}.dialog p{font-size:13px;line-height:1.8;color:#73816d;margin-bottom:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.dialog .primary{background:var(--green);color:#fff;border-color:transparent}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.settings-row select{max-width:140px}.settings-row input[type=range]{max-width:150px}.save-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.danger{color:#a65342}.ending{text-align:center}.ending .ending-star{font-size:60px;color:#e2aa52;margin:8px 0}.muted{color:#7b8874}.album-button{width:100%;text-align:left}.mastery-list{font-size:11px;line-height:1.9;list-style:none;padding:0;margin:12px 0;color:#75816e}@media(min-width:1300px){.layout{grid-template-columns:minmax(0,1fr) 370px}.panel-body{max-height:715px}}@media(max-width:1000px){.shell{padding:0 24px}.layout{grid-template-columns:minmax(0,1fr) 310px;gap:16px}.intro h1{font-size:33px}.brand-name{font-size:20px}.panel-body{max-height:560px}.machine-head{padding:15px}.machine-footer,.stat{padding:12px}.topbar{height:80px}}@media(max-width:760px){.shell{padding:0 16px}.topbar{height:77px}.brand svg{width:33px;height:33px}.brand-name{font-size:17px}.brand-label{font-size:7px;letter-spacing:1.4px}.wallet{padding:7px 9px;font-size:11px}.top-actions{gap:5px}.icon-button{padding:7px;font-size:11px}.intro{padding:23px 0 20px;align-items:flex-start}.intro h1{font-size:29px;letter-spacing:-1px}.intro p{font-size:12px;max-width:220px}.world-step{padding:8px;font-size:9px}.step-dots{display:none}.layout{grid-template-columns:1fr}.sidebar{margin-top:6px}.panel-body{max-height:480px}.panel-head{padding-top:17px}.machine-head{padding:13px}.machine-title{font-size:11px}.running{font-size:9px;letter-spacing:.5px}.machine-footer{padding:12px 14px}.boost{min-width:140px;font-size:12px;min-height:44px}.goal-card{padding:16px}.goal-title{font-size:12px}.goal-note{font-size:11px}.stat strong{font-size:16px}.stats-strip{gap:7px}.stat{padding:11px}.footer{font-size:9px;gap:20px}.tabs button{min-height:44px;font-size:12px}.roster select,.upgrade button{min-height:44px}.buy-mode button{min-height:36px}.upgrade p{font-size:12px}.upgrade h3{font-size:13px}.side-tip,.notice{font-size:11px}.brand{gap:7px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}:root{color-scheme:light}:root[data-theme=dark]{color-scheme:dark;color:#e2eae5;background:#141d21;--line:#3c494f}[data-theme=dark] button,[data-theme=dark] .wallet,[data-theme=dark] .sidebar,[data-theme=dark] .dialog{background:#222e33;color:#e2eae5}[data-theme=dark] .machine-card{background:#1b2529}[data-theme=dark] .machine-head,[data-theme=dark] .machine-footer{background:#222e33;border-color:var(--line)}[data-theme=dark] .upgrade,[data-theme=dark] .stat,[data-theme=dark] .roster select,[data-theme=dark] .tutorial{background:#202b30;border-color:var(--line)}[data-theme=dark] .goal-card{border-color:var(--line)}[data-theme=dark] .upgrade button{background:var(--pale);border-color:#52645a}[data-theme=dark] .prestige-card{background:#363047}[data-theme=dark] .prestige-card button{background:#8571a4}[data-theme=dark] .brand-label,[data-theme=dark] .eyebrow,[data-theme=dark] .intro p,[data-theme=dark] .running,[data-theme=dark] .lap-stat,[data-theme=dark] .goal-note,[data-theme=dark] .goal-end,[data-theme=dark] .panel-head p,[data-theme=dark] .level,[data-theme=dark] .upgrade p,[data-theme=dark] .side-tip,[data-theme=dark] .stat span,[data-theme=dark] .footer,[data-theme=dark] .marble-card p,[data-theme=dark] .roster label,[data-theme=dark] .journal-row small,[data-theme=dark] .prestige-card p,[data-theme=dark] .dialog p,[data-theme=dark] .muted,[data-theme=dark] .mastery-list{color:#b2beb7}[data-theme=dark] .lap-stat strong,[data-theme=dark] .tutorial strong{color:#e2eae5}[data-theme=dark] .notice{background:#3d3223;border-color:#85704d}[data-theme=dark] .danger{color:#f5b7a7}[data-theme=dark] .dialog .primary{background:var(--green);color:#142019}[data-theme=dark] .boost{background:var(--accent);color:#253026}[data-theme=dark] .boost.active,[data-theme=dark] .buy-mode button.selected{background:var(--green);color:#142019;border-color:var(--green)}[data-theme=dark] .tabs button{background:transparent}[data-theme=dark] .tabs button.selected,[data-theme=dark] button:hover:not(:disabled){background:var(--pale)}[data-theme=dark] .step-dots i{background:#52615a}[data-theme=dark] .step-dots i.active{background:var(--green)}
