.timer{flex-direction:column;gap:12px;display:flex}.timer-bar{justify-content:space-between;align-items:center;gap:12px;display:flex}.timer-layout{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);display:grid}.timer-main{flex-direction:column;min-width:0;display:flex}.timer-scramble{border-bottom:1px solid var(--border);grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"text text""new net";align-items:center;gap:4px 16px;padding:16px;display:grid}.timer-scramble-text{grid-area:text;min-width:0}.timer-scramble-new{white-space:nowrap;grid-area:new;justify-self:start}@media (width>=640px){.timer-scramble{grid-template-areas:"text net""new net";gap:0 24px}.timer-scramble-new{align-self:start}}.timer-scramble-text .label{margin-bottom:8px}.timer-scramble-orientation{color:var(--muted)}.timer-scramble-moves{font-family:var(--mono);word-spacing:.2em;overflow-wrap:anywhere;margin:0 0 14px;font-size:clamp(1.0625rem,.6vw + .95rem,1.375rem);font-weight:700;line-height:1.5}.scramble-net{grid-area:net;width:128px;height:auto}@media (width>=640px){.scramble-net{width:200px}}.timer-stage-slot{flex:1;min-height:max(46dvh,300px);display:flex}.timer-stage{color:var(--text);text-align:center;cursor:pointer;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;transition:background-color .2s var(--ease);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:10px;padding:24px 16px;display:flex;position:relative;overflow:clip}.timer-stage:before,.timer-stage:after{content:"";border:0 solid var(--border-strong);pointer-events:none;width:18px;height:18px;position:absolute}.timer-stage:before{border-top-width:2px;border-left-width:2px;top:14px;left:14px}.timer-stage:after{border-bottom-width:2px;border-right-width:2px;bottom:14px;right:14px}.timer-stage.is-active:before,.timer-stage.is-active:after{display:none}.timer-stage.is-active[data-tone=ready]{background:color-mix(in srgb, var(--success) 12%, var(--bg))}.timer-stage[data-keyboard][data-phase=running]{cursor:none}.timer-stage.is-active{z-index:50;background:var(--bg);padding-bottom:max(24px, env(safe-area-inset-bottom));position:fixed;inset:0}.timer-time{font-family:var(--display);font-stretch:var(--display-stretch);font-variant-numeric:tabular-nums;letter-spacing:-.03em;transition:color .12s var(--ease), transform .25s var(--ease);font-size:clamp(4rem,17vw,8.5rem);font-weight:800;line-height:1}.timer-fraction{letter-spacing:-.01em;font-size:.58em}.timer-stage[data-tone=holding] .timer-time{transform:scale(.95)}.timer-stage[data-tone=ready] .timer-time{transform:scale(1.03)}.timer-time[data-landed]{animation:timer-land .45s var(--ease) both}@keyframes timer-land{0%{transform:scale(1.12)}55%{transform:scale(.98)}to{transform:scale(1)}}.is-active .timer-time{font-size:clamp(5rem,28vw,15rem)}.timer-stage[data-tone=holding] .timer-time{color:var(--danger)}.timer-stage[data-tone=ready] .timer-time{color:var(--success)}.timer-stage[data-tone=inspection] .timer-time{color:var(--accent)}.timer-stage[data-tone=warning] .timer-time,.timer-stage[data-tone=warning] .timer-status{color:var(--danger)}.timer-status{max-width:34rem;min-height:1.5em;color:var(--muted);text-wrap:balance;margin:0;font-size:.9375rem}.is-active .timer-status{font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;font-size:.8125rem}.timer-cancel{bottom:max(20px, env(safe-area-inset-bottom));border-color:var(--border-strong);box-shadow:none;color:var(--muted);font-weight:500;position:absolute;left:50%;transform:translate(-50%)}@media (hover:hover){.timer-cancel.control:not(:disabled):hover{box-shadow:none;color:var(--text);transform:translate(-50%)}}.timer-cancel.control:not(:disabled):active{transform:translate(-50%)}.timer-last{margin-top:6px}.timer-penalties{gap:6px;display:inline-flex}.timer-penalties .control{border-color:var(--border-strong);min-width:2.75rem;box-shadow:none;font-family:var(--mono);padding:0 10px;font-size:.8125rem}.timer-penalties .icon-button{min-width:var(--touch);padding:0}.timer-penalties .button-icon{width:16px;height:16px}.timer-side{border-top:1px solid var(--border);flex-direction:column;min-width:0;padding:16px;display:flex}.timer-stats{border-top:1px solid var(--border);border-left:1px solid var(--border);grid-template-columns:repeat(2,minmax(0,1fr));margin:0;display:grid}.timer-stat{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:10px 12px}.timer-stat dt{color:var(--muted);font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;font-size:.6875rem}.timer-stat dd{font-family:var(--mono);font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:1.375rem;font-weight:700}.timer-stat .timer-stat-detail{color:var(--muted);margin:0;font-size:.75rem;font-weight:400}.timer-help{color:var(--muted);margin:10px 0 20px;font-size:.8125rem;line-height:1.45}.timer-side-title{margin-bottom:8px}.timer-empty{color:var(--muted);margin:0;font-size:.9375rem}.timer-solves{border-top:1px solid var(--border);margin:0;padding:0;list-style:none}.timer-solve{border-bottom:1px solid var(--border);grid-template-columns:2.25rem minmax(0,1fr) auto;grid-template-areas:"index time actions""index scramble actions";align-items:center;column-gap:8px;padding:6px 0;display:grid}.timer-solve-index{color:var(--muted);font-family:var(--mono);grid-area:index;font-size:.75rem}.timer-solve-time{font-family:var(--mono);font-variant-numeric:tabular-nums;grid-area:time;font-size:1.0625rem;font-weight:700}.timer-solve-time[data-penalty]{color:var(--danger)}.timer-solve-scramble{color:var(--muted);font-family:var(--mono);text-overflow:ellipsis;white-space:nowrap;grid-area:scramble;font-size:.6875rem;overflow:hidden}.timer-solve .timer-penalties{grid-area:actions;gap:4px}.timer-clear-link{color:var(--muted);align-self:flex-start;margin-top:8px;font-size:.875rem}.timer-clear{flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px;display:flex}.timer-clear p{flex-basis:100%;margin:0;font-size:.9375rem}@media (width>=960px){.timer[data-mode=competition] .timer-layout{grid-template-columns:minmax(0,1fr) 340px}.timer-stage-slot{min-height:420px}.timer-side{border-top:0;border-left:1px solid var(--border);scrollbar-width:thin;max-height:calc(100dvh - 140px);overflow:auto}}@media (width<=420px){.timer-solve .timer-penalties .control{min-width:2.5rem;padding:0 6px}}.timer-hold,.timer-inspection{pointer-events:none;width:100%;height:6px;position:absolute;left:0}.timer-hold{background:var(--success);transform-origin:0;animation:timer-hold var(--hold) linear both;bottom:0}.timer-stage[data-tone=holding] .timer-hold{background:var(--danger)}@keyframes timer-hold{0%{transform:scaleX(0)}}.timer-inspection{background:var(--surface-3);top:0}.timer-stage.is-active .timer-inspection{top:env(safe-area-inset-top,0)}.timer-inspection-fill{background:var(--accent);transform-origin:0;position:absolute;inset:0}.timer-stage[data-tone=warning] .timer-inspection-fill{background:var(--danger)}.timer-inspection-mark{background:var(--bg);width:2px;position:absolute;top:0;bottom:0}.timer-stage[data-phase=inspecting] .timer-status{animation:timer-call .4s var(--ease)}@keyframes timer-call{0%{transform:scale(1.15)}}.timer-verdict{animation:timer-verdict-in .4s var(--ease) .1s both;margin:0}@keyframes timer-verdict-in{0%{opacity:0;transform:translateY(8px)}}.timer-record,.timer-delta{font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;font-size:.8125rem;font-weight:700;display:inline-block}.timer-record{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--accent);box-shadow:var(--shadow-press);color:var(--on-accent);padding:5px 10px}.timer-delta{letter-spacing:.02em;text-transform:none;color:var(--muted)}.timer-delta[data-trend=faster]{color:var(--success)}.timer-delta[data-trend=slower]{color:var(--danger)}.timer-confetti{pointer-events:none;position:absolute;top:42%;left:50%}.timer-confetti span{opacity:0;width:10px;height:10px;animation:timer-confetti 1.3s cubic-bezier(.2, .75, .35, 1) var(--delay) both;border:1px solid #141414;border-radius:2px;margin:-5px;position:absolute}@keyframes timer-confetti{0%{opacity:1;transform:translate(0)rotate(0)scale(.4)}55%{opacity:1;transform:translate(var(--x), var(--y)) rotate(calc(var(--spin) * .6)) scale(1)}to{opacity:0;transform:translate(var(--x), calc(var(--y) + 90px)) rotate(var(--spin)) scale(.9)}}.timer-move{animation:timer-move-in .35s var(--ease) calc(var(--i) * 18ms) both;display:inline-block}@keyframes timer-move-in{0%{opacity:0;transform:translateY(6px)}}.scramble-net{animation:timer-net-in .45s var(--ease) .15s both}@keyframes timer-net-in{0%{opacity:0;transform:scale(.9)rotate(-3deg)}}.timer-chart{border-bottom:1px solid var(--border);width:100%;height:56px;margin-top:12px;padding-bottom:6px;display:block;overflow:visible}.timer-chart rect{fill:var(--border-strong);transform-box:fill-box;transform-origin:bottom;animation:timer-bar-in .4s var(--ease) both}.timer-chart rect[data-tone=best]{fill:var(--accent)}.timer-chart rect[data-tone=last]{fill:var(--text)}.timer-chart rect[data-tone=dnf]{fill:var(--danger);opacity:.45}@keyframes timer-bar-in{0%{transform:scaleY(0)}}.timer-solve[data-best] .timer-solve-time{color:var(--accent)}.timer-solve[data-best] .timer-solve-time:after{content:"PB";letter-spacing:.06em;vertical-align:2px;border:1px solid;border-radius:2px;margin-left:6px;padding:1px 4px;font-size:.625rem}.timer-solves .timer-solve:first-child{animation:timer-solve-in .35s var(--ease) both}@keyframes timer-solve-in{0%{opacity:0;transform:translateY(-8px)}}@media (prefers-reduced-motion:reduce){.timer :not(.timer-hold){animation:none!important}.timer-confetti{display:none}}@media print{.timer-stage,.timer-bar{display:none}}
