@layer pin, upstream, reset;
@import url("../style.css?v=8") layer(upstream);

/*
  Alex's skin for TDC Timing, applied on top of the main app's own style.css.
  His stylesheet is imported into the "upstream" cascade layer, so every rule here wins over his,
  whatever the selector. Properties this file doesn't set fall through to his styles, so new screens he
  adds still get styled. Colours/sizes come only from theme.css.
*/

/*
  Neutralise the parts of his stylesheet that this skin doesn't set itself (otherwise they'd show through).
  "reset" beats his "upstream" layer; every unlayered rule below still beats "reset".
  "pin" only exists to beat his !important rules (for !important, the earliest layer wins).
*/
@layer pin {
  .total-cell { border-left: 0 !important; }
}
@layer reset {
  :root { font-size: 100%; background: var(--bg); color: var(--text); font-family: var(--font); }
  nav { position: static; top: auto; border-bottom: 0; }
  .badge, .pill, .swatch, .callout, .alert, .penalty-summary, #notice:not(:empty) { border: 0; }
  .prototype-note, .results-tabs, .results-tabs button { border-bottom: 0; }
  .results-tabs button { margin-right: 0; min-width: 0; }
  .board-heading { border-left: 0; }
  th, td, .driver-cell { border-right: 0; }
  tr:nth-child(even) td, tr:nth-child(odd) td { background: transparent; }
  .fault-counter output { background: transparent; color: inherit; }
}

/* TDC Timing — layout and components. All colours/sizes come from theme.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Never let anything widen the page: phones would zoom the whole page out (wide tables scroll in their own box). */
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.large-text { font-size: var(--font-size-large); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.35rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 750; margin: 0 0 6px; }
h2 { font-size: 1.2rem; letter-spacing: -0.015em; font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
p { margin: 10px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: -100px; left: 12px; z-index: 50; background: var(--surface); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 10px 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-md);
  background: var(--surface); color: var(--text);
  font-weight: 650; cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s;
}
button:hover { background: var(--surface-2); border-color: var(--text-muted); }
button:active { transform: scale(0.98); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.primary, .primary { background: var(--tdc-ink); color: var(--text-on-ink); border-color: var(--tdc-ink); }
button.primary:hover { background: var(--text-muted); border-color: var(--text-muted); }
.small-button { min-height: 44px; padding: 6px 14px; font-size: .9rem; }
.text-button { min-height: 44px; padding: 6px 4px; border: 0; background: none; color: var(--text-muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-button:hover { background: none; color: var(--text); }
.danger { color: var(--danger); border-color: var(--danger); }
.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.full { width: 100%; }

/* ---------- Forms ---------- */
label { display: block; font-size: .9rem; font-weight: 650; color: var(--text); }
input, select, textarea {
  display: block; width: 100%; min-width: 0; min-height: var(--tap); margin-top: 6px; padding: 10px 14px;
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-md);
  font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox] { width: 24px; height: 24px; min-height: 24px; margin: 0; flex: 0 0 24px; accent-color: var(--tdc-ink); }
input[type=file] { padding: 12px; }
.check { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 600; margin: 14px 0; }
fieldset { min-width: 0; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(20px, calc((100vw - var(--content-max)) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.club-logo { display: block; flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; }
.brand strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: .14em; color: var(--tdc-ink); }
.brand small { display: block; font-size: .8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.header-right { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: var(--radius-pill); background: var(--tdc-orange-soft); color: var(--tdc-orange-strong); font-size: .72rem; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.prototype-note { padding: 8px 16px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--text-muted); background: var(--surface-3); }

/* ---------- Navigation: segmented control (bottom tab bar on phones) ---------- */
nav {
  display: flex; gap: 4px; max-width: var(--content-max); margin: 16px auto 0; padding: 4px;
  width: calc(100% - 40px);
  background: var(--surface-3); border-radius: var(--radius-pill);
}
nav button {
  flex: 1; min-height: 46px; border: 0; border-radius: var(--radius-pill); background: transparent;
  color: var(--text-muted); font-weight: 700; font-size: .95rem; padding: 8px 14px;
}
nav button:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); color: var(--text); }
nav button[aria-current=page] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
nav span:not(:empty) { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--tdc-orange); color: var(--text-on-brand); font-size: .75rem; font-weight: 800; }

/* ---------- Page ---------- */
main { max-width: var(--content-max); margin: 0 auto; padding: 28px 20px 48px; min-height: 60vh; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--tdc-orange-strong); }
.sub { margin: 0 0 24px; color: var(--text-muted); font-size: 1rem; }
.meta { font-size: .85rem; color: var(--text-muted); line-height: 1.5; }
.rule { height: 1px; margin: 18px 0; background: var(--border); }
.layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }

/* ---------- Cards ---------- */
.panel { margin-bottom: 20px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.panel.flat { background: var(--surface-2); box-shadow: none; }
.panel.running { border-color: var(--tdc-orange); box-shadow: 0 0 0 3px var(--tdc-orange-tint), var(--shadow-md); }

/* ---------- Stopwatch ---------- */
.timer { padding: 22px 0 26px; text-align: center; }
.timer-state { display: inline-flex; align-items: center; gap: 8px; margin: 10px 0 6px; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--surface-3); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.running .timer-state { background: var(--tdc-orange-soft); color: var(--tdc-orange-strong); }
.running .timer-state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.timer-value { font-size: clamp(72px, 11vw, 120px); font-weight: 750; line-height: 1.05; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--tdc-ink); }
.timing-button { width: 100%; min-height: var(--tap-big); border-radius: var(--radius-lg); font-size: 1.6rem; font-weight: 800; letter-spacing: .04em; box-shadow: var(--shadow-md); }
.timing-button.primary { background: var(--tdc-ink); color: var(--text-on-ink); }
.stop-button, .timing-button.stop-button { background: var(--tdc-orange); border-color: var(--tdc-orange); color: var(--text-on-brand); }
.stop-button:hover { background: var(--tdc-orange-strong); border-color: var(--tdc-orange-strong); }

/* ---------- Lists, badges, callouts ---------- */
.capture { padding: 14px 0; border-bottom: 1px solid var(--border); }
.capture:last-child { border-bottom: 0; }
.capture strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.capture button { width: 100%; margin-top: 10px; }
.capture .row button { width: auto; margin-top: 0; }
.empty { padding: 18px; text-align: center; color: var(--text-muted); font-size: .95rem; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text); font-size: .72rem; font-weight: 800; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
.badge.dark { background: var(--tdc-ink); color: var(--text-on-ink); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }
.callout { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius-md); background: var(--warning-soft); border-left: 4px solid var(--warning); font-size: .95rem; line-height: 1.5; }
.callout.alert { background: var(--danger-soft); border-left-color: var(--danger); }
#notice { max-width: calc(var(--content-max) - 40px); margin: 14px auto 0; }
#notice:not(:empty) { margin: 14px 20px 0; padding: 14px 18px; border-radius: var(--radius-md); background: var(--tdc-ink); color: var(--text-on-ink); font-weight: 650; box-shadow: var(--shadow-md); }
@media (min-width: 1281px) { #notice:not(:empty) { margin: 14px auto 0; } }
details { margin: 12px 0; }
summary { min-height: 44px; line-height: 44px; font-weight: 700; cursor: pointer; }
.compact-list { margin: 0; padding: 0; list-style: none; }
.compact-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.change-log { max-height: 320px; overflow: auto; font-size: .85rem; }
.time-warning { min-width: 220px; max-width: 310px; white-space: normal; }
.time-warning + .time-warning { margin-top: 10px; }
.time-warning .meta { margin-top: 4px; }

/* ---------- HQ stats and toolbars ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.stat { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .85rem; color: var(--text-muted); }
.toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 22px 0; }
.toolbar label { flex: 1; min-width: 170px; }
.toolbar button { flex: 0 0 auto; }

/* ---------- Tables ---------- */
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); color: var(--text-muted); font-size: .75rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
table:not(.results-table) tbody tr:hover td { background: var(--surface-2); }
td:first-child { font-weight: 650; }
th button { min-height: 40px; padding: 4px 8px; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }
th button:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
td button { min-height: 44px; padding: 6px 12px; font-size: .9rem; }
td .meta { font-size: .78rem; }
.driver-cell { position: sticky; left: 0; z-index: 1; min-width: 160px; background: var(--surface); box-shadow: 1px 0 0 var(--border); }
th.driver-cell { z-index: 2; background: inherit; }
.total-cell { font-weight: 800; font-variant-numeric: tabular-nums; box-shadow: inset 1px 0 0 var(--border); }
.cancelled { font-size: .8rem; color: var(--text-muted); }
.result-name { font-weight: 750; }

/* ---------- Results ---------- */
.results-tabs { display: flex; gap: 4px; margin: 22px 0 0; padding: 4px; width: fit-content; max-width: 100%; background: var(--surface-3); border-radius: var(--radius-pill); }
.results-tabs button { min-height: 44px; padding: 8px 20px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); }
.results-tabs [aria-selected=true] { background: var(--tdc-orange); color: var(--text-on-brand); box-shadow: var(--shadow-sm); }
.results-controls { gap: 18px; align-items: end; }
.results-controls > label { min-width: 220px; }
.results-display { flex: 1; min-width: 240px; margin: 0; padding: 0; border: 0; }
.results-display legend { margin-bottom: 6px; padding: 0; font-size: .9rem; font-weight: 650; }
.display-options { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: var(--radius-md); }
.display-options button { flex: 1; min-height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--text-muted); }
.display-options [aria-pressed=true] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
#export-results-csv { white-space: nowrap; flex: 0 0 auto; }
.results-explanation { background: var(--tdc-orange-soft); border-left-color: var(--tdc-orange); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 14px 0; font-size: .85rem; }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 18%, transparent); }
.leaderboards { display: grid; gap: 22px; margin: 18px 0; }
.result-board { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.board-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, var(--tdc-orange-soft), var(--surface)); }
.board-heading h2 { margin: 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.result-board .table-wrap { border: 0; border-radius: 0; }
.results-table thead tr:first-child th { background: var(--tdc-orange); color: var(--text-on-brand); }
.results-table thead tr:nth-child(2) th { background: var(--tdc-orange-tint); color: var(--text); }
.results-table th { border-right: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.results-table td { padding: 8px 10px; color: var(--text); }
.results-table td:has(.result-score) { padding: 0; }
.results-table tbody tr:nth-child(even) td:not([class*=result-fault-]):not(.result-fail):not(.result-max):not(.result-provisional) { background: var(--row-alt); }
.results-table tbody tr:nth-child(even) td.driver-cell { background: var(--row-alt); }
.results-table .result-score { display: flex; width: 100%; min-width: 72px; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 0; background: transparent; color: inherit; font-weight: 750; font-variant-numeric: tabular-nums; }
.results-table .result-score:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.results-table .result-score:focus-visible { outline-offset: -3px; }
.results-table .result-provisional .result-score { font-style: italic; text-decoration: underline dotted; text-underline-offset: 4px; }
td.result-fault-1, .result-fault-1 { background: var(--fault-1); }
td.result-fault-2, .result-fault-2 { background: var(--fault-2); }
td.result-fault-3, .result-fault-3 { background: var(--fault-3); }
td.result-fault-4, .result-fault-4 { background: var(--fault-4); }
td.result-fault-5, .result-fault-5 { background: var(--fault-5); }
.results-table td.result-fault-5, .results-table .result-fault-5 .result-score { color: var(--fault-5-text); }
td.result-fail, .result-fail { background: var(--result-fail); }
td.result-max, .result-max { background: var(--result-max); }
td.result-provisional, .result-provisional { background: var(--result-provisional); }
.results-setting { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Dialog (bottom sheet on phones) ---------- */
dialog {
  width: min(660px, calc(100vw - 24px)); max-height: 90vh; padding: 24px;
  color: var(--text); background: var(--surface); border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
dialog::backdrop { background: var(--backdrop); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.dialog-head h2 { margin: 0; }
.close { min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: var(--surface-3); font-size: 1.4rem; line-height: 1; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dialog-actions button { flex: 1; }
#record-form > label { margin-top: 14px; }
#record-form .two label { margin-top: 0; }
.assigned-test { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius-md); }
.assigned-test strong { font-size: 1.2rem; }
.auto-run { margin: 14px 0; font-size: .95rem; color: var(--text-muted); }
.auto-run:empty { display: none; }

/* Fault counters */
.fault-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 18px 0 12px; }
.fault-card { margin: 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); }
.fault-card legend { padding: 0 6px; font-size: .95rem; font-weight: 750; }
.fault-counter { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; gap: 6px; align-items: center; width: 100%; margin-top: 6px; }
.fault-counter button { min-height: 56px; padding: 0; font-size: 1.6rem; border-radius: var(--radius-md); }
.fault-counter output { display: block; min-width: 0; text-align: center; font-size: 2.2rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.fault-detail { margin-top: 8px; text-align: center; font-size: .85rem; font-weight: 650; color: var(--text-muted); }
.penalty-summary { margin-bottom: 14px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--tdc-ink); color: var(--text-on-ink); font-weight: 700; }

/* ---------- Footer ---------- */
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--content-max); margin: 0 auto; padding: 14px 20px 24px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-muted); }

/* ---------- Large text mode ---------- */
body.large-text label, body.large-text table, body.large-text .sub { font-size: 1.05rem; }
body.large-text .meta { font-size: .95rem; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 700px) {
  header { padding: 10px 14px; gap: 10px; }
  .club-logo { width: 42px; height: 42px; }
  .brand strong { font-size: 1rem; }
  .header-right .pill { display: none; }
  .prototype-note { font-size: .72rem; padding: 6px 12px; }
  /* Tabs become a bottom tab bar within thumb reach */
  nav {
    position: fixed; z-index: 30; left: max(10px, calc(50vw - 280px)); bottom: calc(10px + env(safe-area-inset-bottom));
    /* Sized from the screen width, not the page width, so it can never stretch the page. */
    width: calc(100vw - 20px); max-width: 560px; margin: 0; background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  nav button { min-height: 52px; padding: 6px 4px; font-size: .82rem; line-height: 1.15; }
  main { padding: 20px 14px 32px; }
  footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  #notice:not(:empty) { margin: 12px 14px 0; }
  .panel { padding: 18px; border-radius: var(--radius-md); }
  .stat-grid { gap: 8px; }
  .stat { padding: 12px; border-radius: var(--radius-md); }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: .75rem; }
  .timer-value { font-size: 84px; }
  .results-tabs { width: 100%; }
  .results-tabs button { flex: 1; padding: 8px 10px; }
  .results-display, .results-controls > label { flex-basis: 100%; min-width: 0; }
  #export-results-csv { width: 100%; }
  .board-heading { padding: 14px 12px; }
  .results-table .driver-cell { min-width: 140px; max-width: 180px; }
  .results-table .driver-cell .result-name, .results-table .driver-cell .meta { white-space: normal; }
  .fault-grid { grid-template-columns: 1fr; }
  .fault-counter { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .fault-counter button { min-height: 60px; }
  dialog { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (max-width: 380px) {
  .brand small { display: none; }
  .two { grid-template-columns: 1fr; }
  .timer-value { font-size: 70px; }
  nav button { font-size: .76rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
