@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--bg:#f8f7f3;--surface:#fffefa;--text:#343530;--muted:#91918a;--line:#e8e7df;--orange:#ed7954;--orange-dark:#dc6944;--tint:#fff0e8;--stage:#faede3;--stage2:#f2dfd0;--pill:#efeee8;--button-text:#fff}
:root[data-theme=dark]{color-scheme:dark;--bg:#1d211f;--surface:#272c28;--text:#edece2;--muted:#a0a79b;--line:#383e37;--orange:#f2916e;--orange-dark:#f6a486;--tint:#44372e;--stage:#40392f;--stage2:#332f28;--pill:#333932;--button-text:#2e291f}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){color-scheme:dark;--bg:#1d211f;--surface:#272c28;--text:#edece2;--muted:#a0a79b;--line:#383e37;--orange:#f2916e;--orange-dark:#f6a486;--tint:#44372e;--stage:#40392f;--stage2:#332f28;--pill:#333932;--button-text:#2e291f}}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans','Noto Sans SC',system-ui,sans-serif;-webkit-font-smoothing:antialiased;transition:background .25s,color .25s}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:5px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-library{position:absolute;width:0;height:0;overflow:hidden}.app-shell{max-width:1120px;margin:auto;padding:0 42px}.topbar{height:106px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);font-size:25px;font-weight:800;letter-spacing:-1px}.brand-mark{display:grid;place-items:center;background:var(--orange);color:#fff;width:39px;height:39px;border-radius:13px;transform:rotate(-7deg)}.brand-mark svg{width:24px;height:24px;stroke-width:2.3}.brand-dot{color:var(--orange);margin-left:2px}.mode-tabs{display:flex;background:var(--pill);padding:5px;border-radius:16px;gap:4px}.mode-tabs button{display:flex;align-items:center;justify-content:center;gap:9px;border:0;padding:12px 20px;border-radius:12px;background:none;color:var(--muted);font-size:13px;font-weight:500;transition:.2s;white-space:nowrap}.mode-tabs button[aria-selected=true]{color:var(--orange);background:var(--surface);box-shadow:0 2px 7px #34353008}.mode-tabs button:hover{color:var(--orange)}.mode-tabs svg{width:18px;height:18px}.header-actions{display:flex;align-items:center;gap:12px}.icon-button{width:35px;height:35px;display:grid;place-items:center;background:none;border:0;color:var(--text);border-radius:10px;position:relative}.icon-button:hover{background:var(--pill)}.system-dot{width:5px;height:5px;background:var(--orange);position:absolute;right:3px;top:3px;border-radius:50%}.action-divider{height:18px;width:1px;background:var(--line)}main{max-width:740px;margin:30px auto 55px}.playground{display:flex;align-items:center;flex-direction:column}.scene{position:relative;width:100%;height:440px;border-radius:32px;background:radial-gradient(ellipse at 50% 38%,var(--stage),var(--stage2));overflow:hidden;isolation:isolate;cursor:pointer}.scene canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;z-index:1}.pedestal{position:absolute;left:26%;top:71%;width:48%;height:12%;border-radius:50%;background:#d8bda520;filter:blur(13px)}.result{height:85px;display:flex;align-items:center;justify-content:center;gap:13px;font-size:19px;font-weight:600;transition:opacity .2s,transform .2s}#result-meta{font-size:12px;font-weight:400;color:var(--muted)}#result-meta:empty{display:none}.result.rolling{opacity:.4;transform:translateY(3px)}.controls{display:flex;gap:18px;align-items:center;justify-content:center;width:100%}.mode-options[hidden]{display:none}.segmented{display:flex;background:var(--pill);padding:4px;border-radius:13px;gap:3px}.segmented button{border:0;background:none;color:var(--muted);padding:12px 18px;border-radius:10px;font-size:12px;white-space:nowrap;transition:.2s}.segmented button.selected{background:var(--surface);color:var(--text);box-shadow:0 2px 7px #34353008}.segmented button:hover{color:var(--orange)}.play-button{display:flex;align-items:center;justify-content:center;gap:11px;min-width:198px;min-height:51px;padding:14px 28px;border:0;background:var(--orange);color:var(--button-text);border-radius:13px;font-size:14px;font-weight:600;box-shadow:0 4px 0 #a3482012;transition:transform .2s,background .2s}.play-button:hover:not(:disabled){transform:translateY(-2px);background:var(--orange-dark)}.play-button:active:not(:disabled){transform:translateY(1px)}#fallback{position:absolute;inset:0;z-index:2;display:grid;place-items:center}#fallback[hidden]{display:none}#fallback>span{font-size:110px;filter:drop-shadow(0 12px 12px #91664330)}
@media(max-width:800px){.app-shell{padding:0 26px}.mode-tabs button{padding:11px 13px;font-size:12px}.topbar{gap:16px}.brand{font-size:23px}.header-actions{gap:7px}main{margin-top:25px}.scene{height:420px}}
@media(max-width:620px){.app-shell{padding:0 22px}.topbar{height:auto;flex-wrap:wrap;gap:26px;padding-top:24px}.brand-mark{width:35px;height:35px;border-radius:11px}.brand{font-size:23px}.mode-tabs{order:3;width:100%;gap:3px;border-radius:14px;padding:4px}.mode-tabs button{flex:1;gap:7px;font-size:12px;padding:12px 5px;border-radius:10px}.mode-tabs svg{width:16px;height:16px}.header-actions{gap:11px}main{margin-top:30px;margin-bottom:32px}.scene{height:365px;border-radius:25px}.result{height:78px;font-size:17px;gap:10px}.controls{gap:12px}.play-button{min-width:0;flex:1;max-width:220px;font-size:13px;padding:14px 19px;min-height:50px}.segmented button{font-size:11px;padding:12px 11px}.mode-options{flex-shrink:0}#result-meta{font-size:10px}}
@media(max-width:370px){.app-shell{padding:0 16px}.mode-tabs button{font-size:11px;gap:5px}.scene{height:320px}main{margin-top:24px}.controls{gap:10px}.segmented button{padding:12px 9px;font-size:10px}.play-button{font-size:12px;padding:14px 12px;gap:7px}.result{font-size:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
