@layer components{.car-timer .fullscreen-scene:has(>.completion-support) .scene-clock{display:none}.timer-page .car-timer{--scene-accent:#ffc04e}.car-timer{--car-menu-font:16px;--dash-metal:linear-gradient(135deg, #a5a6a5, #444749 12%, #777a7a 34%, #272a2e 55%, #8e8d86 85%, #333536);--dash-face:repeating-linear-gradient(115deg, #ffffff03 0 1px, transparent 1px 4px), linear-gradient(140deg, #303235, #16191c 65%, #292b2d);--dash-frame:url(/images/car/dashboard-frame.svg) 30 stretch}.car-timer .scene-heading{width:clamp(300px,28vw,500px);max-width:calc(100% - 60px)}.car-timer .scene-intro-card,.car-timer .completion-support{border:18px solid #0000;border-image:var(--dash-frame);background:var(--dash-face);box-shadow:none;-webkit-backdrop-filter:none;filter:drop-shadow(0 4px 3px #0005);border-radius:0;padding:14px}.car-timer .scene-intro-card{background:linear-gradient(100deg,#102127f5,#103029d9),repeating-linear-gradient(0deg,#0000 0 24px,#a1c3ae20 24px 25px)}.car-timer .scene-heading h1{color:#fff5d8;font-size:clamp(28px,2.6vw,46px);font-style:italic}.car-timer .scene-heading .intro{font-size:17px;line-height:1.5}.car-timer .scene-heading .eyebrow{color:#ffc04e;letter-spacing:.04em}.car-timer .scene-tools>.support-link{display:none}.car-timer .fullscreen-scene :is(button,.back-link,.support-link){letter-spacing:normal;font-family:inherit;font-weight:700;line-height:1.2}.car-timer .fullscreen-scene .back-link,.car-timer .fullscreen-scene .support-link,.car-timer .completion-support .support-dismiss,.car-timer .scene-settings-links .fullscreen-toggle,.car-timer .scene-tools button{border:12px solid #0000;border-image:var(--dash-frame);background:var(--dash-face);box-shadow:none;-webkit-backdrop-filter:none;filter:drop-shadow(0 4px 3px #0005);color:#fff5d8;border-radius:0}.car-timer .back-link-icon{background:#ffc04e;border-radius:6px}.car-timer .scene-tools button{width:64px;height:64px}.car-timer .scene-settings-links .fullscreen-toggle{padding:4px 8px}.car-timer .completion-support .support-dismiss{border-width:6px;padding:2px}.car-timer .fullscreen-scene .support-link{color:#fff;background:linear-gradient(#ff4389,#d5005b);border-width:8px;padding:6px 12px}.car-timer .fullscreen-scene .back-link:hover,.car-timer .scene-tools button:hover,.car-timer .scene-settings-links .fullscreen-toggle:hover{background:var(--dash-face)}.car-timer .scene-setup .duration-fields{top:52%}.car-timer .car-loading{border:18px solid #0000;border-image:var(--dash-frame);background:var(--dash-face);color:#fff3d3;text-align:center;background-clip:padding-box;justify-content:center;align-items:center;gap:14px;width:min(420px,85vw);padding:24px;font-size:18px;display:flex}.car-loading svg{color:#ffc04e;flex-shrink:0;width:32px;height:32px;animation:1s linear infinite car-loading-spin}@keyframes car-loading-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.car-loading svg{animation:none}}.car-timer .scene-overlay[data-finale=true]{z-index:4;background:0 0}.car-timer .scene-overlay[data-finale=true] .duration-fields{display:none}.car-timer .car-dashboard{width:min(920px,85vw);min-width:0;box-shadow:none;filter:none;-webkit-backdrop-filter:none;background:url(/images/car/dashboard-chassis.svg) 50%/100% 100% no-repeat;border:0;border-radius:0;margin:0;padding:44px 170px 42px;position:relative}.car-timer .car-dashboard:before{content:none}.car-timer .time-tiles{justify-content:center;gap:20px}.car-timer .time-tile{aspect-ratio:1;background:radial-gradient(circle at 45% 38%,#292827,#111212 72%) padding-box padding-box,conic-gradient(from -35deg,#33373c,#c4c3ba 8%,#6b6d6c 17%,#22262b 30%,#8a877c 43%,#34383c 55%,#b4b2a5 70%,#55585b 82%,#d0cfc5 94%,#33373c) border-box;border:13px solid #0000;border-radius:50%;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:14px;width:auto;min-width:0;padding:32px 16px 54px;display:flex;position:relative;box-shadow:inset 0 0 0 3px #050708,inset 0 0 0 5px #77796c,inset 0 0 0 8px #0a0d10,0 2px 0 2px #070a0d,0 8px 10px #0009}.car-timer .time-tile:before{content:"";clip-path:inset(0 0 30%);pointer-events:none;background:repeating-conic-gradient(from -130deg,#ebd7a1 0deg 1.5deg,#0000 1.5deg 10deg);border-radius:50%;position:absolute;inset:10px;-webkit-mask:radial-gradient(circle,#0000 63%,#000 64% 70%,#0000 71%);mask:radial-gradient(circle,#0000 63%,#000 64% 70%,#0000 71%)}.car-timer .time-tile-label{color:#fff0cc;letter-spacing:0;font-size:clamp(12px,1.1vw,19px);position:relative}.car-timer .time-tile-value{width:54%;font-size:inherit;color:#ffcf78;line-height:1}.car-timer .time-tile-value .dashboard-digits{aspect-ratio:1.5}.car-timer .time-tile-value .dashboard-digits svg{height:100%}.dashboard-digits{justify-content:center;gap:8px;width:100%;display:inline-flex}.dashboard-digits svg{width:calc(50% - 4px);height:auto;display:block}.car-gauge-needle{transform-origin:100%;pointer-events:none;background:#e54c29;border-radius:3px;width:34%;height:4px;transition:transform .3s ease-out;position:absolute;bottom:22%;left:16%}.car-duration:has(.car-pedal:active) .car-gauge-needle{transition:transform .16s linear}@media (prefers-reduced-motion:reduce){:is(.car-duration .car-gauge-needle,.car-duration:has(.car-pedal:active) .car-gauge-needle){transition:none}}.car-gauge-needle:after{content:"";background:linear-gradient(140deg,#c9c4b7,#56534c);border:2px solid #a8a39a;border-radius:50%;width:20px;height:20px;position:absolute;top:-8px;right:-10px}.car-pedals{pointer-events:none;position:absolute;inset:0}.car-timer .scene-options .car-pedal{border:18px solid #0000;border-image:var(--dash-frame);color:#fff3cd;width:134px;height:156px;box-shadow:none;filter:drop-shadow(0 5px 3px #0006);touch-action:none;-webkit-user-select:none;user-select:none;pointer-events:auto;background:linear-gradient(100deg,#363a3b,#141719 65%,#373a39) padding-box padding-box;border-radius:0;padding:8px;position:absolute;top:32%;left:22px}.car-timer .scene-options .car-pedal-gas{width:110px;height:224px;top:19%;left:auto;right:22px}.car-pedal-grip{background:repeating-linear-gradient(0deg,#0c0f11 0 6px,#444749 7px,#26292b 9px,#121618 12px 23px);border-radius:8px;place-items:center;width:100%;height:100%;display:grid;box-shadow:inset 1px 2px 4px #0009}.car-pedal-grip svg{background:#242626;width:40px;height:40px;padding:3px}.car-timer .scene-options .car-pedal:enabled:active{filter:drop-shadow(0 1px 1px #0006);translate:0 4px}.car-pedal-hint{text-align:center;color:#b9b8ad;margin:12px 0 0;font-size:12px}.car-timer .time-presets{flex-wrap:wrap;gap:8px;margin-top:12px;display:flex}.car-timer .scene-options .time-presets button{border:12px solid #0000;border-image:var(--dash-frame);color:#fff1cf;background:linear-gradient(#303339,#111519) padding-box padding-box;border-radius:0;flex:1 0 calc(25% - 8px);min-width:44px;min-height:58px;font-size:21px;font-weight:700}.car-timer .scene-options .time-presets button[aria-pressed=true]{color:#ffd78a;background:#48371e padding-box padding-box}.car-timer .scene-options button:disabled{opacity:.4;cursor:default}.car-timer :is(button,a):focus-visible{outline-offset:4px;outline:3px solid #ffc04e}.car-timer .scene-setup .timer-actions{gap:18px}.car-timer .scene-options .timer-actions button{border:18px solid #0000;border-image:var(--dash-frame);color:#17191b;box-shadow:none;filter:drop-shadow(0 5px 3px #0005);background:linear-gradient(#ffd379,#ffb428) padding-box padding-box;border-radius:0;justify-content:center;align-items:center;gap:12px;padding:12px 22px;font-size:24px;font-weight:700;display:inline-flex}.car-timer .scene-options .timer-actions button.secondary{color:#fff3d3;background:linear-gradient(#303339,#111519) padding-box padding-box;font-weight:700}.car-timer .timer-actions .secondary svg{color:#ffc04e}.car-timer .completion-support{padding:16px 38px 16px 18px}.car-timer .completion-support h2{color:#fff3d3;font-size:23px;font-style:italic}.car-timer .scene-clock{line-height:1}.dashboard-countdown{border:16px solid #0000;border-image:var(--dash-frame);background:var(--dash-face);color:#ffcf78;width:clamp(170px,19vw,320px);box-shadow:none;filter:drop-shadow(0 4px 3px #0005);align-items:center;gap:8px;padding:8px;display:flex}.dashboard-countdown>.dashboard-digits{background:#0d1012;border:2px inset #494b47;border-radius:8px;padding:8px}.dashboard-colon{font:700 clamp(24px,3vw,48px) monospace}.car-timer .fullscreen-scene :is(.scene-intro-card,.completion-support,.back-link,.support-link,.support-dismiss,.scene-tools button,.scene-settings-links .fullscreen-toggle,.dashboard-countdown){background-clip:padding-box}@media (min-width:1081px) and (min-height:651px){.car-timer .scene-running .timer-actions button{border-width:8px;gap:8px;padding:6px 12px;font-size:16px}.car-timer .scene-running .timer-actions button svg{flex-shrink:0;width:20px;height:20px}.car-timer .scene-running .scene-settings-links :is(.back-link,.fullscreen-toggle){border-width:8px;padding:4px 8px}.car-timer .scene-running .back-link-icon{width:28px;height:28px}}@media (max-width:1080px),(max-height:650px){.car-timer .fullscreen-scene{--stage-inset:16px}.car-timer .scene-overlay[data-started=false]{pointer-events:auto;flex-direction:column;gap:24px;display:flex;overflow-y:auto}.car-timer .scene-overlay[data-started=false] .scene-heading{width:min(500px,100%);max-width:none}.car-timer .scene-heading .back-link{margin:0 80px 16px 0;position:static}.car-timer .scene-intro-card{padding:16px}.car-timer .scene-heading h1{font-size:28px}.car-timer .scene-heading .intro{font-size:15px}.car-timer .scene-overlay[data-started=false] .scene-setup{flex:1 0 auto;justify-content:center;align-items:center;width:100%;min-width:0;padding:0;display:flex;position:static}.car-timer .scene-setup .scene-options{width:100%}.car-timer .scene-setup .timer-toolbar{flex-flow:column;align-items:center;gap:20px;width:100%;display:flex}.car-timer .scene-setup .duration-fields{place-self:center;width:100%;max-width:none;position:static;transform:none}.car-timer .scene-setup .car-loading{max-width:420px}.car-timer .car-dashboard{width:min(760px,100%);margin:auto;padding:44px 104px 30px}.car-timer .time-tiles{gap:12px}.car-timer .time-tile{border-width:10px;gap:10px;padding:26px 8px 42px}.car-timer .time-tile-label{font-size:13px}.car-timer .scene-options .car-pedal{border-width:12px;width:88px;height:126px;padding:5px;left:10px}.car-timer .scene-options .car-pedal-gas{width:68px;height:155px;left:auto;right:10px}.car-timer .scene-setup .timer-actions{gap:10px;width:100%;max-width:none;position:static;transform:none}.car-timer .scene-options .timer-actions button{border-width:12px;padding:10px 14px;font-size:16px}.car-timer .scene-options .time-presets button{min-height:48px;font-size:16px}.car-timer .scene-running .scene-options{top:calc(max(var(--stage-inset), env(safe-area-inset-top)) + 76px);max-height:calc(100% - max(var(--stage-inset), env(safe-area-inset-top)) - max(var(--stage-inset), env(safe-area-inset-bottom)) - 76px)}}@media (max-width:600px),(max-height:500px){.car-timer{--car-menu-font:14px}.car-timer .fullscreen-scene{--stage-inset:12px}.car-timer .scene-overlay[data-started=false]{gap:12px}.car-timer .scene-heading .back-link{border-width:8px;margin-bottom:12px;padding:4px 8px}.car-timer .back-link-icon{width:28px;height:28px}.car-timer .scene-tools button{border-width:8px;width:52px;height:52px}.car-timer .scene-intro-card{border-width:10px;padding:8px 12px}.car-timer .scene-heading .eyebrow{margin-bottom:6px}.car-timer .scene-heading h1{font-size:24px}.car-timer .scene-setup .timer-toolbar{gap:12px}.car-timer .car-dashboard{border:12px solid #0000;border-image:var(--dash-frame);background:var(--dash-face);filter:none;max-width:420px;padding:10px 8px}.car-timer .time-tile{flex:none;gap:6px;width:calc(50% - 6px);padding:12px 4px 24px}.car-timer .time-tile-value{width:54%}.car-pedals{justify-content:space-between;align-items:end;gap:18px;margin-top:8px;display:flex;position:relative}.car-timer .scene-options .car-pedal,.car-timer .scene-options .car-pedal-gas{border-width:8px;width:44%;height:52px;padding:2px;position:static;transform:none}.car-timer .car-pedal-grip svg{width:28px;height:28px}.car-timer .scene-options .time-presets button{border-width:8px;padding:4px;font-size:14px}.car-timer .time-presets{gap:4px;margin-top:8px}.car-timer .car-pedal-hint{margin-top:8px}.car-timer .car-gauge-needle{height:3px}.car-timer .scene-heading .intro{display:none}.car-timer .scene-setup .timer-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.car-timer .scene-options .timer-actions button{border-width:6px;gap:6px;min-width:0;padding:6px;font-size:14px}.car-timer .timer-actions button svg{flex-shrink:0}.car-timer .scene-setup .timer-actions>:first-child,.car-timer .scene-setup .timer-actions .completion-support-compact{grid-column:1/-1}.car-timer .scene-running .timer-actions{flex-direction:column}.car-timer .dashboard-countdown{border-width:10px;width:170px;padding:4px}}@media (max-height:500px){.car-timer{--car-menu-font:13px}.car-timer .scene-tools button{border-width:8px;width:48px;height:48px}.car-timer .scene-clock{inset:auto auto max(var(--stage-inset), env(safe-area-inset-bottom)) max(var(--stage-inset), env(safe-area-inset-left))!important}.car-timer .scene-options .timer-actions button{border-width:6px;gap:6px;padding:4px;font-size:13px}.car-timer .scene-running .scene-options{top:calc(max(var(--stage-inset), env(safe-area-inset-top)) + 56px);max-height:calc(100% - max(var(--stage-inset), env(safe-area-inset-top)) - max(var(--stage-inset), env(safe-area-inset-bottom)) - 56px);width:320px;padding:8px}.car-timer .scene-running .timer-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.car-timer .scene-settings-links{gap:4px;margin-top:6px;padding-top:6px}.car-timer .scene-settings-links .back-link{border-width:6px;min-height:44px;padding:2px 8px}.car-timer .scene-settings-links .fullscreen-toggle{border-width:6px;padding:2px 8px}.car-timer .scene-settings-links .back-link-icon{width:24px;height:24px}}@media (orientation:landscape) and (max-height:500px){.car-timer .scene-overlay[data-started=false]{grid-template-columns:minmax(160px,.65fr) minmax(0,1.35fr);align-items:start;gap:12px;display:grid}.car-timer .scene-overlay[data-started=false] .scene-heading{grid-area:1/1}.car-timer .scene-heading .back-link{margin-right:0}.car-timer .scene-overlay[data-started=false] .scene-tools{inset:auto auto max(var(--stage-inset), env(safe-area-inset-bottom)) max(var(--stage-inset), env(safe-area-inset-left))!important}.car-timer .scene-overlay[data-started=false] .scene-setup{grid-area:1/2}.car-timer .scene-setup .timer-toolbar{gap:8px;max-width:420px;margin:auto}.car-timer .car-dashboard{border-width:8px;padding:8px}.car-timer .time-tiles{width:240px;max-width:100%;margin:auto}.car-timer .scene-options .car-pedal{border-width:6px;height:44px}.car-timer .car-pedal-hint{display:none}.car-timer .car-pedals,.car-timer .time-presets{margin-top:6px}.car-timer .scene-options .time-presets button{min-height:44px}.car-timer .scene-overlay[data-finale=true]{justify-content:end;display:flex}}.car-timer .scene-running .timer-actions button,.car-timer .scene-running .scene-settings-links :is(button,a){font-size:var(--car-menu-font);gap:8px;font-weight:700;line-height:1.2}.car-timer .scene-running :is(.timer-actions,.scene-settings-links) svg{flex-shrink:0;width:20px;height:20px}}
