.on-time-root{color:#f8fafc;touch-action:manipulation;overscroll-behavior:none;-webkit-user-select:none;user-select:none;background:#0a101c;outline:none;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100dvh;font-family:PingFang TC,Microsoft JhengHei,Noto Sans TC,sans-serif;display:flex;position:fixed;inset:0;overflow:hidden}.on-time-root *{box-sizing:border-box;margin:0;padding:0}.on-time-root .boot-screen{z-index:80;pointer-events:auto;opacity:1;background:linear-gradient(165deg,#0a101c 0%,#142033 50%,#1a2740 100%);flex-direction:column;justify-content:center;align-items:center;gap:18px;transition:opacity .18s;display:flex;position:absolute;inset:0}.on-time-root.is-ready .boot-screen{opacity:0;pointer-events:none}.on-time-root .boot-title{letter-spacing:.16em;color:#f8fafc;text-shadow:0 2px 18px #38bdf847;font-size:clamp(44px,12vw,80px);font-weight:800}.on-time-root .boot-bar{background:#94a3b838;border-radius:999px;width:min(46vw,220px);height:4px;overflow:hidden}.on-time-root .boot-bar span{border-radius:inherit;background:linear-gradient(90deg,#fb923c,#ea580c);width:40%;height:100%;animation:.9s ease-in-out infinite boot-slide;display:block}.on-time-root .boot-copy{letter-spacing:.14em;text-transform:uppercase;color:#94a3b8;font-size:15px}.on-time-root.is-booting #menu,.on-time-root.is-booting .auth-chip{pointer-events:none}@keyframes boot-slide{0%{transform:translate(-120%)}to{transform:translate(280%)}}.on-time-root #gameContainer{touch-action:manipulation;background:#0f172a;width:100%;max-width:100%;height:100%;max-height:100%;position:relative}.on-time-root canvas{object-fit:contain;touch-action:manipulation;background:#0f172a;width:100%;height:100%;display:block}.on-time-root #ui{pointer-events:none;position:absolute;inset:0}.on-time-root .hud{text-shadow:1px 1px 2px #000;pointer-events:none;z-index:10;justify-content:space-between;gap:6px;font-size:13px;font-weight:700;display:none;position:absolute;top:10px;left:10px;right:10px}.on-time-root .hud-box{white-space:nowrap;background:#0009;border-radius:8px;padding:6px 10px}.on-time-root #controls{padding:8px 16px;padding-bottom:max(12px, env(safe-area-inset-bottom,12px));pointer-events:none;z-index:35;background:linear-gradient(#0000,#00000040);justify-content:space-between;align-items:center;display:none;position:absolute;bottom:0;left:0;right:0}.on-time-root .btn-group{flex-direction:column;gap:8px;display:flex}.on-time-root .btn-group.right{flex-direction:row;gap:8px}.on-time-root button.ctrl{color:#fff;pointer-events:auto;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;touch-action:manipulation;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;width:88px;height:88px;font-size:20px;font-weight:700;position:relative;box-shadow:0 4px #00000059}.on-time-root button.ctrl:after{content:"";position:absolute;inset:-16px}.on-time-root #btnUp,.on-time-root #btnDown{background:#3b82f6}.on-time-root #btnAccel{background:#22c55e}.on-time-root #btnBrake{background:#ef4444}.on-time-root button.ctrl:active,.on-time-root button.ctrl.is-down{filter:brightness(1.12);transform:scale(.92)}.on-time-root #menu,.on-time-root #result{pointer-events:auto;z-index:40;padding:max(14px, env(safe-area-inset-top,14px)) clamp(10px, 3.4vw, 28px) max(14px, env(safe-area-inset-bottom,14px));text-align:center;touch-action:manipulation;background:linear-gradient(165deg,#0a101c 0%,#142033 42%,#1a2740 100%);flex-direction:column;justify-content:space-evenly;align-items:center;gap:clamp(6px,1.4vh,18px);display:flex;position:absolute;inset:0;overflow:hidden}.on-time-root .menu-hero,.on-time-root .menu-cta{flex-direction:column;flex:none;align-items:center;width:100%;display:flex}.on-time-root #menu h1{letter-spacing:.14em;color:#f8fafc;text-shadow:0 2px 18px #38bdf847;text-wrap:balance;margin:0;font-size:clamp(48px,13vw,96px);font-weight:800;line-height:.95}.on-time-root #menu .sub{color:#e2e8f0;text-wrap:pretty;max-width:min(94vw,720px);margin:10px auto 0;font-size:clamp(17px,4.6vw,28px);line-height:1.4}.on-time-root #menuBanner{object-fit:contain;filter:drop-shadow(0 10px 22px #00000073);pointer-events:none;border-radius:18px;flex:24%;width:min(96vw,720px);max-width:100%;height:auto;min-height:0;max-height:none;margin:0 auto;display:block}.on-time-root .cat-row{flex:30%;justify-content:center;align-items:stretch;gap:clamp(12px,3.2vw,28px);width:min(96vw,760px);min-height:0;margin:0;display:flex}.on-time-root .cat-card{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;width:auto;height:auto;min-height:0;color:inherit;font:inherit;appearance:none;background:#1e293bfa;border:3px solid #94a3b866;border-radius:20px;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;padding:clamp(6px,1.2vh,12px) clamp(6px,1.4vw,12px) clamp(8px,1.4vh,14px);display:flex;overflow:hidden}.on-time-root .cat-card.selected{background:#373016fa;border-color:#fbbf24;box-shadow:0 0 0 1px #fbbf2466,0 10px 24px #fbbf2447}.on-time-root .cat-card img{object-fit:contain;pointer-events:none;flex:auto;width:100%;max-width:100%;height:100%;min-height:0;max-height:100%;transform:none}.on-time-root .start-btn{color:#fff7ed;letter-spacing:.1em;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;z-index:5;background:linear-gradient(#fb923c 0%,#ea580c 100%);border:none;border-radius:999px;flex-shrink:0;min-width:min(72vw,280px);min-height:68px;margin-top:0;padding:.55em 1.8em;font-size:clamp(24px,7vw,40px);font-weight:800;position:relative;box-shadow:0 5px #9a3412,0 10px 22px #ea580c4d}.on-time-root .start-btn:active,.on-time-root .start-btn.is-down{transform:scale(.96)}.on-time-root .hint{color:#cbd5e1;flex-shrink:0;max-width:min(94vw,560px);margin-top:10px;font-size:clamp(14px,3.8vw,20px);line-height:1.4}.on-time-root #streakInfo{color:#94a3b8;flex-shrink:0;min-height:1em;margin-top:6px;font-size:clamp(14px,3.6vw,18px)}.on-time-root #result .result-text{letter-spacing:.06em;color:#f8fafc;text-shadow:0 2px 16px #facc1559;margin:8px 0 10px;font-size:clamp(32px,9vw,44px);font-weight:800}.on-time-root #result .sub{color:#d5dee9;max-width:340px;margin:0 auto 12px;font-size:clamp(16px,4.2vw,19px);line-height:1.5}.on-time-root .result-cta{flex-direction:column;flex-shrink:0;align-items:center;gap:14px;width:100%;display:flex}.on-time-root #result.clear-hold .result-cta{opacity:0;pointer-events:none;transform:translateY(10px)}.on-time-root #result.clear-ready .result-cta{opacity:1;pointer-events:auto;transition:opacity .45s,transform .45s;transform:none}.on-time-root .menu-btn{color:#e2e8f0;letter-spacing:.08em;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:2px solid #e2e8f073;border-radius:999px;min-width:min(64vw,240px);min-height:52px;padding:.55em 1.6em;font-size:clamp(16px,4.4vw,22px);font-weight:700}.on-time-root .menu-btn:active,.on-time-root .menu-btn.is-down{background:#ffffff0f;transform:scale(.96)}.on-time-root #winBanner{object-fit:contain;filter:drop-shadow(0 8px 18px #00000073);border-radius:14px;width:min(92vw,380px);max-width:92%;max-height:42vh;margin:8px auto;display:block}.on-time-root #winBanner.hidden,.on-time-root .hidden{display:none!important}.on-time-root .auth-chip{top:max(10px, env(safe-area-inset-top,10px));z-index:50;pointer-events:auto;position:absolute;right:12px}@media (width<=420px){.on-time-root button.ctrl{width:72px;height:72px;font-size:16px}}@media (orientation:landscape) and (width>=700px){.on-time-root #menu{padding:max(12px, env(safe-area-inset-top,12px)) clamp(20px, 4vw, 48px) max(12px, env(safe-area-inset-bottom,12px));grid-template-rows:auto minmax(0,1fr) auto;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);place-items:stretch stretch;gap:clamp(8px,1.6vh,14px) clamp(16px,3vw,36px);display:grid}.on-time-root .menu-hero{grid-column:1/-1;align-self:center}.on-time-root #menu h1{font-size:clamp(52px,8vw,92px)}.on-time-root #menu .sub{max-width:820px;font-size:clamp(18px,2.4vw,26px)}.on-time-root #menuBanner{flex:none;grid-area:2/1;align-self:stretch;width:100%;height:100%;max-height:none}.on-time-root .cat-row{flex:none;grid-area:2/2;align-self:stretch;width:100%;height:100%}.on-time-root .menu-cta{grid-column:1/-1;align-self:center}.on-time-root .start-btn{min-width:min(46vw,420px);font-size:clamp(26px,4vw,40px)}}
