@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{--bg:#e9eeeb;--panel:#e9eeeb;--ink:#253a33;--muted:#77877e;--accent:#c0e97b;--accent-ink:#253a33;--shadow:#c7d1ca;--light:#fff;--line:#d3dcd5;--stage:#e1e8e1;--signal:#4c7160;font-family:'DM Sans','Noto Sans SC',sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;transition:background .3s,color .3s}body[data-theme=sport]{--bg:#20232b;--panel:#242730;--ink:#f3f0e7;--muted:#a1a4ae;--accent:#ff7651;--accent-ink:#231d19;--shadow:#15171d;--light:#343843;--line:#3a3d47;--stage:#292d37;--signal:#ff956b}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0}button:disabled{cursor:default;opacity:.4}button,select,a,input{ -webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--signal);outline-offset:4px}button{transition:transform .15s,background .2s,box-shadow .2s}button:active:not(:disabled){transform:translateY(1px)}svg{width:22px;height:22px;vertical-align:middle;flex-shrink:0}i{display:inline-flex;align-items:center;font-style:normal}.topbar{height:94px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5.3vw}.brand{font-size:26px;letter-spacing:3px;font-weight:800;color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:11px}.brand svg{height:34px;width:34px}.brand span{font-size:12px;font-weight:500;letter-spacing:2px;border-left:1px solid var(--line);padding-left:18px;margin-left:8px}.top-actions{display:flex;align-items:center;gap:22px}.theme-switch{display:flex;padding:5px;border-radius:30px;box-shadow:inset 4px 4px 8px var(--shadow),inset -4px -4px 8px var(--light)}.theme-switch button{background:transparent;border-radius:22px;padding:9px 20px;font-size:12px;color:var(--muted)}.theme-switch .selected{background:var(--panel);box-shadow:3px 3px 6px var(--shadow),-3px -3px 6px var(--light);color:var(--ink)}.icon-button{display:inline-flex;align-items:center;justify-content:center;background:var(--panel);width:40px;height:40px;border-radius:50%;box-shadow:4px 4px 9px var(--shadow),-4px -4px 9px var(--light)}main{max-width:1440px;margin:auto;padding:48px 5.3vw 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:38px}.eyebrow{font-size:10px;letter-spacing:3px;font-weight:700;color:var(--muted);margin:0 0 14px}h1{font-size:clamp(26px,3vw,40px);letter-spacing:1px;margin:0 0 12px;font-weight:700}h1>span{color:var(--signal)}.subtitle{color:var(--muted);font-size:12px;letter-spacing:2px;margin:0}.intro-mark{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.intro-mark>span,.status>span{height:6px;width:6px;border-radius:50%;background:var(--signal)}.workspace{display:grid;grid-template-columns:326px minmax(0,1fr);gap:32px;align-items:start}.panel{border-radius:26px;background:var(--panel);box-shadow:10px 10px 25px var(--shadow),-10px -10px 25px var(--light);border:1px solid color-mix(in srgb,var(--light) 45%,transparent)}.settings{padding:25px}.section-title{display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:14px;margin-bottom:25px}.mini{font-size:8px;color:var(--muted);letter-spacing:1.5px;font-weight:500}.field-label{display:block;font-size:11px;font-weight:600;margin:19px 0 10px;color:var(--muted)}.modes{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modes button{display:flex;gap:9px;align-items:center;justify-content:center;padding:14px 6px;border-radius:12px;background:var(--panel);font-size:11px;box-shadow:4px 4px 8px var(--shadow),-4px -4px 8px var(--light);white-space:nowrap}.modes svg{width:17px;height:17px}.modes button.selected{background:var(--accent);color:var(--accent-ink);box-shadow:3px 3px 9px var(--shadow)}select,input[type=number]{color:var(--ink);background:var(--panel);border:1px solid var(--line);border-radius:10px;width:100%;padding:12px;font-size:11px;min-height:42px;box-shadow:inset 3px 3px 6px var(--shadow),inset -3px -3px 6px var(--light)}select{cursor:pointer}.range-heading{display:flex;align-items:center;justify-content:space-between;margin-top:17px}.range-heading .field-label{margin:0 0 12px}.range-heading output{font-weight:700;font-size:19px;margin-bottom:10px;font-variant-numeric:tabular-nums}.range-heading small{font-size:10px;color:var(--muted);font-weight:400}input[type=range]{width:100%;accent-color:var(--signal);height:6px;cursor:pointer;margin:6px 0 10px;touch-action:pan-y}.range-ends{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:12px}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;margin:16px 0;cursor:pointer}.toggle-row span{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.toggle-row small{font-size:9px;color:var(--muted)}input[role=switch]{appearance:none;width:32px;height:19px;background:var(--line);border-radius:20px;position:relative;cursor:pointer;flex-shrink:0;margin:0;transition:background .2s;box-shadow:inset 2px 2px 3px var(--shadow)}input[role=switch]:before{content:'';position:absolute;top:3px;left:3px;width:13px;height:13px;border-radius:50%;background:var(--panel);box-shadow:1px 1px 3px var(--shadow);transition:transform .2s}input[role=switch]:checked{background:var(--signal)}input[role=switch]:checked:before{transform:translateX(13px);background:#fff}.divider{height:1px;background:var(--line);margin:21px 0 0}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sound-row{margin-bottom:9px}.sound-row svg{width:15px;height:15px}.volume-row{display:flex;gap:16px;align-items:center}.volume-row input{flex:1;width:0}.text-button{background:none;color:var(--muted);font-size:10px;padding:6px 0;white-space:nowrap}.field-hint{color:var(--muted);font-size:9px;line-height:1.8;margin:2px 0}.training{min-width:0}.stage{height:483px;position:relative;overflow:hidden;display:flex;flex-direction:column;padding:24px;background:var(--stage)}.stage-top{display:flex;align-items:center;justify-content:space-between;z-index:2;gap:16px}.stage .icon-button{background:var(--stage);width:35px;height:35px}.stage .icon-button svg{width:16px;height:16px}.status{display:flex;gap:8px;align-items:center;font-size:10px;letter-spacing:1px}.signal-area{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;min-height:0;position:relative;padding:18px}.idle-symbol{width:135px;height:135px;border-radius:50%;display:grid;place-items:center;color:var(--signal);box-shadow:inset 7px 7px 16px var(--shadow),inset -7px -7px 16px var(--light);margin-bottom:25px}.idle-symbol svg{width:64px;height:64px}h2{font-size:22px;font-weight:600;margin:0 0 12px;letter-spacing:1px}.signal-area p{font-size:11px;color:var(--muted);margin:0}.stage-bottom{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:9px;z-index:2}.stage-bottom>span{display:flex;align-items:center;gap:6px}.stage-bottom svg{width:12px;height:12px}#mode-tag{font-size:8px;letter-spacing:1px}#progress{position:absolute;bottom:0;left:0;height:4px;background:var(--signal);width:0;transition:width .15s linear}.session-bar{display:flex;align-items:center;gap:26px;margin-top:26px;padding:22px 25px}.stat-label{display:block;font-size:9px;color:var(--muted);margin-bottom:7px;letter-spacing:1px}.session-bar strong{font-size:27px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums;letter-spacing:1px}.stat-divider{height:32px;width:1px;background:var(--line)}.session-controls{margin-left:auto;display:flex;gap:15px;align-items:center}.start-button{background:var(--accent);color:var(--accent-ink);border-radius:14px;padding:16px 25px;min-height:49px;font-size:12px;font-weight:700;display:inline-flex;gap:10px;align-items:center;justify-content:center;box-shadow:4px 4px 10px var(--shadow),-4px -4px 10px var(--light)}.start-button svg{width:17px;height:17px}.stop-button{border-radius:12px;width:44px;height:44px}.stop-button svg{width:15px;height:15px}.tip{margin-top:27px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:19px 2px;display:flex;align-items:center;gap:15px;color:var(--muted)}.tip-number{font-size:11px;color:var(--signal);font-weight:700;white-space:nowrap}.tip p{font-size:11px;line-height:1.9;margin:0}.tip>i{margin-left:auto}.keyboard-tip{text-align:center;font-size:9px;letter-spacing:1px;color:var(--muted);margin:20px 0}.keyboard-tip span{margin:0 10px}footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:40px;padding:24px 0;font-size:8px;letter-spacing:1.5px;color:var(--muted)}.footer-dot{margin:0 10px}.custom-duration{font-size:11px;display:block;margin-top:14px;color:var(--muted)}.custom-duration input{margin-top:8px}[hidden]{display:none!important}.big-signal{font-size:clamp(100px,13vw,180px);color:var(--signal);line-height:1.1;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-5px}.direction-arrow svg{height:150px;width:150px;stroke-width:2.8}.signal-word{font-size:24px;font-weight:600;margin-top:14px;letter-spacing:5px}.phase-caption{font-size:11px;color:var(--muted);margin-top:15px}.grid-display{display:grid;gap:12px;width:min(100%,440px);height:100%;max-height:310px;padding:4px}.grid-cell{display:flex;align-items:center;justify-content:center;border-radius:16px;box-shadow:inset 4px 4px 9px var(--shadow),inset -4px -4px 9px var(--light);color:var(--muted);font-size:16px;transition:background .08s}.grid-cell.lit{background:var(--accent);color:var(--accent-ink);box-shadow:3px 3px 10px var(--shadow);font-size:32px;font-weight:700}.beat-dots{display:flex;justify-content:center;gap:12px;margin-bottom:22px}.beat-dot{width:12px;height:12px;border-radius:50%;background:var(--line)}.beat-dot.active{background:var(--signal);box-shadow:0 0 0 5px color-mix(in srgb,var(--signal) 15%,transparent)}.beat-dot.strong{width:16px;height:16px;margin-top:-2px}.pulse .signal-area{animation:pop .16s ease-out}@keyframes pop{from{transform:scale(.96);opacity:.75}to{transform:scale(1);opacity:1}}body.focus{overflow:hidden}body.focus .stage{position:fixed;inset:0;z-index:20;height:100dvh;border-radius:0;border:0;padding:max(24px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(112px,calc(90px + env(safe-area-inset-bottom))) max(24px,env(safe-area-inset-left))}body.focus .session-bar{position:fixed;z-index:21;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(600px,calc(100% - 32px));margin:0;padding:16px 20px}body.focus .big-signal{font-size:clamp(150px,25vmin,350px)}body.focus .direction-arrow svg{width:40vmin;height:40vmin;max-width:400px;max-height:400px}body.focus .grid-display{width:min(85vw,1000px);max-height:100%;flex:1}body.focus .grid-cell{font-size:clamp(22px,5vmin,60px)}body.focus .signal-word{font-size:5vmin}dialog{border:1px solid var(--line);background:var(--panel);color:var(--ink);border-radius:25px;width:min(480px,calc(100% - 30px));padding:32px;box-shadow:0 20px 80px #0004}dialog::backdrop{background:#10251e66;backdrop-filter:blur(5px)}dialog p{font-size:12px;line-height:1.9;color:var(--muted)}dialog h2{font-size:21px}.close-dialog.icon-button{float:right;margin:-12px -12px 15px 15px}.close-dialog.start-button{width:100%;margin-top:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--panel);padding:12px 20px;border-radius:12px;font-size:12px;z-index:99;display:none;max-width:90vw;text-align:center}
@media(min-width:1500px){main{padding-left:65px;padding-right:65px}.stage{height:525px}}@media(max-width:1000px){main{padding:30px 4vw 0}.topbar{padding:0 4vw;height:80px}.workspace{grid-template-columns:285px minmax(0,1fr);gap:22px}.settings{padding:20px}.stage{height:470px;padding:20px}.session-bar{gap:15px;padding:20px 17px}.session-bar strong{font-size:23px}.start-button{padding:15px 18px}.intro-mark{display:none}.stage-bottom{font-size:8px}#mode-tag{display:none}.session-controls{gap:10px}}
@media(max-width:700px){.topbar{height:72px;padding:0 22px}.brand{font-size:22px;gap:8px}.brand span{display:none}.brand svg{width:28px;height:28px}.top-actions{gap:14px}.theme-switch button{padding:8px 15px}.top-actions>.icon-button{height:33px;width:33px}main{padding:30px 22px 0}.intro{margin-bottom:26px}h1{font-size:28px}.subtitle{font-size:10px;letter-spacing:1px}.eyebrow{font-size:8px;letter-spacing:2.5px}.workspace{display:flex;flex-direction:column;gap:26px}.settings,.training{width:100%}.settings{padding:22px}.section-title{margin-bottom:19px}.modes{grid-template-columns:repeat(4,1fr);gap:9px}.modes button{flex-direction:column;font-size:10px;gap:8px;padding:13px 3px}.modes svg{width:19px;height:19px}.stage{height:400px}.session-bar{margin-top:22px;padding:20px 17px;gap:17px}.start-button{font-size:11px;padding:15px 18px}.stat-label{font-size:8px}.session-bar strong{font-size:23px}.session-controls{gap:10px}.stop-button{width:35px;height:40px}.tip{margin-top:24px}.keyboard-tip{display:none}footer{margin-top:30px;font-size:7px;letter-spacing:.5px;gap:15px}.training{order:-1}.settings{order:1}.intro{margin-bottom:22px}.field-label{font-size:12px}select{font-size:12px}.toggle-row{font-size:12px}.toggle-row small{font-size:10px}.two-fields{gap:16px}.direction-arrow svg{height:125px;width:125px}}
@media(max-width:380px){main{padding-left:14px;padding-right:14px}.topbar{padding:0 14px}.session-bar{gap:12px;padding:18px 12px}.session-controls{gap:8px}.start-button{padding:14px}.session-bar strong{font-size:21px}}
@media(orientation:landscape) and (max-height:600px){.topbar{height:60px}main{padding-top:22px}.intro{margin-bottom:22px}h1{font-size:27px}.workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:22px}.settings{order:0}.training{order:0}.modes{grid-template-columns:1fr 1fr}.modes button{flex-direction:row}.stage{height:330px}.signal-area{padding:8px}.idle-symbol{width:95px;height:95px;margin-bottom:16px}.idle-symbol svg{width:48px;height:48px}.direction-arrow svg{width:100px;height:100px}.big-signal{font-size:95px}.signal-word{margin-top:7px;font-size:20px}.session-bar{gap:13px}.grid-display{max-height:200px}body.focus .stage{padding-bottom:90px}body.focus .session-bar{padding:12px 20px}body.focus .stage-bottom{position:absolute;bottom:24px;right:24px}body.focus .signal-area{padding:0}body.focus .direction-arrow svg{width:30vmin;height:30vmin}body.focus .signal-word{font-size:5vmin;margin-top:4px}body.focus .phase-caption{margin-top:5px}body.focus .beat-dots{margin-bottom:8px}}
@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}
.start-button{white-space:nowrap;flex-shrink:0}.stat-label{white-space:nowrap}.session-bar>div:not(.session-controls){flex-shrink:0}@media(max-width:700px){.session-bar{gap:12px}.session-controls{gap:9px}.start-button{padding-left:15px;padding-right:15px}}@media(max-width:380px){.session-bar{gap:9px}.start-button{padding-left:12px;padding-right:12px}.session-controls{gap:7px}.stat-label{letter-spacing:0}}
