@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(fonts/poppins_light.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(fonts/poppins_regular.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins_medium.woff2) format("woff2"); }
@font-face { font-family: "Advent Pro"; font-weight: 100 700; font-display: swap; src: url(fonts/advent_pro.woff2) format("woff2"); }

/* Amber ramp mirrors app/.../ui/theme/Theme.kt. --ink and --sky-bg are driven by main.js as the page brightens. */
:root {
  --a900: #553411; --a700: #A16321; --a500: #E6A96B; --a300: #E6C197; --a100: #F5E1CC; --a50: #FBF2EA;
  --ink: #F1F1F2; --paper: #0c0c0e; --sky-bg: #0c0c0e;
  --ink-dim: color-mix(in srgb, var(--ink) 66%, transparent);
  --ink-faint: color-mix(in srgb, var(--ink) 38%, transparent);
  --line: color-mix(in srgb, var(--ink) 14%, transparent);
  --glass: color-mix(in srgb, var(--ink) 6%, transparent);
  --accent: var(--a500);
  --shadow: 0 40px 80px -30px rgba(0,0,0,.55), 0 18px 36px -18px rgba(0,0,0,.4);
  --sans: Poppins, system-ui, sans-serif;
  --clock: "Advent Pro", Poppins, system-ui, sans-serif;
  --arrive: cubic-bezier(.05,.7,.1,1);
  --gutter: clamp(16px, 5vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--sky-bg); }
body {
  margin: 0; color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
h1, h2, h3, p { margin: 0; }
h2 { font-weight: 400; font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-weight: 500; font-size: 19px; line-height: 1.3; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
section { scroll-margin-top: 64px; }

/* The arch (path must match ui/components/Logo.kt and res/drawable/ic_launcher_foreground.xml) */
.mark { display: block; overflow: visible; }
.mark .m-arch { fill: var(--accent); }

.js .h-in { opacity: 0; transform: translateY(22px); }
.ready .h-in { opacity: 1; transform: none; transition: opacity 2.2s var(--arrive), transform 2.2s var(--arrive); }
.ready .lede.h-in { transition-delay: .35s; }
.ready .cta.h-in { transition-delay: .7s; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: 12px var(--gutter); height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; font-size: 21px; letter-spacing: -.01em; }
.brand .mark { width: 30px; height: 30px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100svh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14vh var(--gutter) 34vh;
}
.hero h1 { text-wrap: balance; font-weight: 400; font-size: clamp(52px, 9vw, 124px); line-height: .98; letter-spacing: -.045em; }
.lede { max-width: 26em; margin-top: 26px; color: var(--ink-dim); font-size: clamp(17px, 2vw, 21px); text-wrap: balance; }
.cta { margin-top: 36px; }
.pill { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 999px; font-size: 16px; font-weight: 500; }
.pill-soon { background: color-mix(in srgb, var(--ink) 10%, transparent); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- Morning ---------- */
.morning { position: relative; padding: 0 var(--gutter) 10vh; }
.m-body { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1080px; margin: 0 auto; }
.m-stick { position: sticky; top: calc(50svh - 315px + 30px); height: 630px; display: grid; place-items: center; }
.m-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 31em; opacity: .25; transition: opacity .7s ease; }
.step-in {
  display: flex; flex-direction: column; gap: 14px; padding: 30px 32px 32px; border-radius: 30px;
  background: color-mix(in srgb, var(--paper) 50%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.step.on { opacity: 1; }
.colon { display: inline-flex; flex-direction: column; justify-content: center; gap: .17em; width: .26em; height: 1em; font-style: normal; }
.colon::before, .colon::after { content: ""; width: .075em; height: .075em; border-radius: 50%; background: currentColor; opacity: .7; margin: 0 auto; }
.step-time { font: 200 clamp(56px, 7vw, 88px)/.9 var(--clock); letter-spacing: -.02em; color: var(--time, var(--accent)); font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }
.step p { color: var(--ink-dim); }

/* Phone */
.phone {
  --s: 1; width: 300px; height: 630px; padding: 9px; border-radius: 48px; background: #0d0d0f; position: relative;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #3a3a40; transform: scale(var(--s)); transform-origin: top center;
}
.phone::before { content: ""; position: absolute; z-index: 5; top: 20px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0d0d0f; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 40px; overflow: hidden; clip-path: inset(0 round 40px); background: #131316; font-family: var(--sans); color: #F1F1F2; }
.scene { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: scale(1.03); transition: opacity .5s ease, transform .7s var(--arrive), visibility 0s .5s; }
.phone[data-scene="set"] [data-for="set"], .phone[data-scene="light"] [data-for="light"], .phone[data-scene="ring"] [data-for="ring"],
.phone[data-scene="check"] [data-for="check"], .phone[data-scene="siren"] [data-for="siren"] { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .7s var(--arrive); }
.status { display: flex; justify-content: space-between; padding: 16px 26px 0; font-size: 11px; font-weight: 500; opacity: .85; }
.status-r { letter-spacing: -1px; font-size: 9px; }
.lock-time { text-align: center; margin-top: 54px; font: 200 76px/1 var(--clock); letter-spacing: -.02em; }
.lock-date { text-align: center; font-size: 12px; opacity: .7; margin-top: 6px; }

.s-set { background: #1D1D20; color: #F1F1F2; align-items: center; }
.set-glow { position: absolute; left: 50%; top: 42%; width: 360px; height: 360px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(230,169,107,.32), rgba(230,169,107,0)); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.s-set.armed .set-glow { opacity: 1; animation: breath 4s ease-in-out infinite; }
@keyframes breath { 50% { opacity: .55; } }
.s-set > :not(.set-glow) { position: relative; }
.app-bar { margin-top: 40px; display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 500; }
.app-bar .mark.mini { width: 24px; height: 24px; }
.dial { margin-top: 118px; display: flex; align-items: center; font: 300 76px/1 var(--clock); letter-spacing: -.02em; user-select: none; -webkit-user-select: none; }
.drum { position: relative; width: 1.06em; height: 1.8em; perspective: 260px; touch-action: none; cursor: ns-resize;
  -webkit-mask: linear-gradient(transparent 2%, #000 24%, #000 76%, transparent 98%); mask: linear-gradient(transparent 2%, #000 24%, #000 76%, transparent 98%); }
.drum span { position: absolute; left: 0; right: 0; top: 50%; margin-top: -.5em; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; will-change: transform, opacity, filter; }
.dial-colon { opacity: .55; padding-bottom: .1em; }
.set-sub { margin-top: 18px; font-size: 13px; color: #A2A2A9; }
.set-bottom { margin-top: auto; align-self: stretch; padding: 0 16px 30px; position: relative; height: 86px; }
.set-btn, .armed-bar { position: absolute; left: 16px; right: 16px; bottom: 30px; height: 56px; border-radius: 28px; transition: opacity .4s ease, transform .5s var(--arrive); }
.set-btn { border: 0; background: var(--a500); color: #1D1D20; font-size: 16px; font-weight: 500; }
.set-btn.press { transform: scale(.96); }
.armed-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border: 1px solid #36363C; font-size: 15px; opacity: 0; transform: translateY(10px); pointer-events: none; }
.armed-off { border: 0; background: none; color: #A2A2A9; font-size: 14px; }
.s-set.armed .set-btn { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.s-set.armed .armed-bar { opacity: 1; transform: none; pointer-events: auto; }
.notif { margin: auto 12px 26px; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.notif-head { display: flex; align-items: center; gap: 6px; font-size: 10.5px; opacity: .6; margin-bottom: 6px; }
.mark.mini { width: 13px; height: 13px; }
.notif-title { font-size: 14px; font-weight: 500; }
.notif-sub { font-size: 12px; opacity: .65; margin-top: 2px; }
.notif-reply { display: flex; gap: 6px; margin-top: 10px; }
.notif-reply input {
  flex: 1; min-width: 0; height: 38px; border-radius: 19px; border: 0; padding: 0 14px; font: 400 14px var(--sans);
  background: rgba(255,255,255,.09); color: #F1F1F2; outline: none;
}
.notif-reply input::placeholder { color: rgba(241,241,242,.4); }
.notif-reply input:focus { box-shadow: inset 0 0 0 1.5px var(--a500); }
.notif-reply button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--a500); color: #1D1D20; font-size: 17px; }
.chip { margin-top: 8px; height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: rgba(255,255,255,.09); color: #F1F1F2; font-size: 12px; }
.notif-done { display: none; }
.notif.done .notif-ask { display: none; }
.notif.done .notif-done { display: block; animation: fadeUp .5s var(--arrive); }
.notif.shake { animation: shake .4s; }
.set-time { color: var(--a500); font-weight: 500; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.s-light { background: #111114; }
.light-wash {
  position: absolute; inset: 0; opacity: var(--l, 0);
  background: radial-gradient(130% 70% at 50% -5%, #FFE7C7 0%, #F5C68E 30%, #C98A4A 60%, #3a2a1f 100%);
}
.s-light > :not(.light-wash) { position: relative; }
.s-light .lock-time, .s-light .lock-date, .s-light .status { color: color-mix(in srgb, #242427 calc(var(--l, 0) * 100%), #F1F1F2); }
.hue-card { margin: auto 12px 26px; padding: 14px 16px; border-radius: 22px; background: rgba(20,20,22,.55); backdrop-filter: blur(10px); font-size: 13px; }
.hue-row { display: flex; justify-content: space-between; font-weight: 500; }
.hue-pct { font-variant-numeric: tabular-nums; color: var(--a300); }
.hue-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); margin: 10px 0 8px; overflow: hidden; }
.hue-bar i { display: block; height: 100%; width: calc(var(--l, 0) * 100%); background: var(--a500); border-radius: 2px; }
.hue-card p { font-size: 11px; opacity: .65; }

.s-ring { background: linear-gradient(#fff 35%, #FBF2EA 70%, #F5E1CC); color: #242427; }
.ring-main { text-align: center; margin-top: 96px; }
.ring-date { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: #6C6C73; font-weight: 500; }
.ring-clock, .siren-clock { display: flex; justify-content: center; align-items: center; font: 300 84px/1 var(--clock); letter-spacing: -.02em; margin-top: 10px; }
.ring-clock .colon::before, .ring-clock .colon::after { background: #6C6C73; }
.ring-title { font-size: 20px; margin-top: 8px; }
.ring-bottom { margin-top: auto; padding: 0 16px 30px; text-align: center; transition: opacity .4s; }
.ring-snooze { font-size: 13px; margin-bottom: 16px; }
.slider { position: relative; height: 56px; border-radius: 28px; background: rgba(36,36,39,.07); touch-action: none; user-select: none; -webkit-user-select: none; }
.slider-label { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; padding-left: 40px; transition: opacity .2s; }
.slider-label { background: linear-gradient(90deg, #242427 40%, #A3A3AA 50%, #242427 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.slider-knob { position: absolute; left: 6px; top: 6px; width: 44px; height: 44px; border-radius: 50%; background: #242427; cursor: grab; box-shadow: 0 4px 12px rgba(36,36,39,.3); }
.slider-knob.back { transition: transform .5s cubic-bezier(.3,1.5,.5,1); }
.ring-awake { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; background: #fff; }
.s-ring.awake .ring-awake { opacity: 1; visibility: visible; transition: opacity .5s; }
.wc-pill { position: absolute; top: 46px; font-size: 11px; padding: 5px 12px; border-radius: 999px; border: 1px solid #E3E3E6; color: #6C6C73; }
.wc-pill b { font-weight: 500; color: #242427; font-variant-numeric: tabular-nums; }
.awake-title { font: 200 40px/1.1 var(--clock); }
.awake-sub { font-size: 13px; opacity: .65; max-width: 16em; }
.link-btn { margin-top: 14px; border: 0; background: none; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; opacity: .55; }

.s-check { background: #fff; color: #242427; align-items: center; }
.check-main { text-align: center; margin-top: 86px; padding: 0 24px; }
.check-title { font: 200 56px/1 var(--clock); letter-spacing: -.01em; }
.check-sub { font-size: 12.5px; color: #6C6C73; margin-top: 12px; }
.count { position: relative; width: 116px; height: 116px; margin: 36px auto 0; display: grid; place-items: center; }
.count svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.count circle { fill: none; stroke-width: 3; }
.count-track { stroke: #F5E1CC; }
.count-arc { stroke: var(--a500); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.count-n { font: 300 26px var(--sans); color: var(--a500); font-variant-numeric: tabular-nums; }
.btn-amber { margin: auto 16px 30px; align-self: stretch; height: 56px; border-radius: 28px; border: 0; background: var(--a500); color: #242427; font-size: 16px; font-weight: 500; transition: transform .2s; }
.btn-amber:active { transform: scale(.97); }
.check-ok { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: #fff; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.s-check.ok .check-ok { opacity: 1; visibility: visible; transition: opacity .4s; }
.s-check.ringing .count-n { animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.s-siren { background: radial-gradient(120% 75% at 50% 62%, #CB8C4C 0%, #8E5822 45%, #553411 100%); color: #F1F1F2; align-items: center; text-align: center; }
.s-siren::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 40% at 50% 62%, rgba(255,214,170,.45), transparent); animation: siren 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes siren { 50% { opacity: .2; } }
.s-siren > * { position: relative; }
.siren-eyebrow { margin-top: 92px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.siren-clock .colon::before, .siren-clock .colon::after { background: rgba(241,241,242,.7); }
.siren-hold-view { display: flex; flex-direction: column; align-items: center; flex: 1; }
.siren-title { font-size: 20px; margin-top: 12px; }
.hold { position: relative; margin-top: 56px; width: 112px; height: 112px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: #F1F1F2; font-size: 14px; line-height: 1.3; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .3s var(--arrive); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.hold.down { transform: scale(.94); }
.hold svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold-arc { fill: none; stroke: #F1F1F2; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.siren-math, .siren-done { display: none; flex-direction: column; align-items: center; width: 100%; }
.s-siren.math .siren-hold-view, .s-siren.done .siren-hold-view, .s-siren.done .siren-math { display: none; }
.s-siren.math .siren-math { display: flex; animation: fadeUp .5s var(--arrive); }
.s-siren.math .siren-clock, .s-siren.done .siren-clock { font-size: 64px; }
.s-siren.math .siren-eyebrow { margin-top: 64px; }
.s-siren.math::before, .s-siren.done::before { animation: none; opacity: 0; }
.prove { font-size: 11px; opacity: .8; margin-top: 18px; }
.sum { font-size: 28px; font-weight: 300; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sum-a { display: inline-block; min-width: 1.2em; }
.siren-math.shake .sum { animation: shake .4s; }
.pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; padding: 18px 16px 0; }
.pad button { height: 46px; border-radius: 14px; border: 0; background: rgba(230,169,107,.38); color: #F1F1F2; font-size: 19px; font-weight: 300; transition: background-color .15s; }
.pad button:active { background: rgba(230,169,107,.6); }
.pad .ok { background: #FBF2EA; color: #242427; font-size: 14px; font-weight: 500; }
.pad .del { background: transparent; }
.s-siren.done .siren-done { display: flex; flex: 1; justify-content: center; gap: 8px; margin-top: -40px; animation: fadeUp .5s var(--arrive); }

/* ---------- Problem ---------- */
.problem { padding: 70vh var(--gutter) 20vh; max-width: 1180px; margin: 0 auto; text-align: center; }
.pl { font-size: clamp(36px, 6.4vw, 88px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; margin-bottom: 75vh; }
.pl-answer { font-size: clamp(28px, 4.2vw, 56px); letter-spacing: -.025em; margin-bottom: 20vh; }
.js .problem .reveal { transition-duration: 1.8s; }
.late { font-family: var(--clock); font-weight: 300; color: var(--time, var(--accent)); letter-spacing: -.02em; }

.pl-missed { text-wrap: nowrap; }
.pl-line { display: block; white-space: nowrap; }
/* fixed width (the widest phrase), phrases left-aligned, so "missed" never moves */
.rotor { display: inline-grid; position: relative; text-align: left; perspective: 600px; }
.rotor-size { grid-area: 1 / 1; }
.rotor-size { visibility: hidden; }
.rotor > span:not(.rotor-size) { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(45%) rotateX(-70deg); filter: blur(6px); transition: opacity .55s ease, transform .7s var(--arrive), filter .55s ease; }
.rotor > span.on { opacity: 1; transform: none; filter: none; }
.rotor > span.off { transform: translateY(-45%) rotateX(70deg); }
@media (max-width: 620px) { .pl-missed { font-size: clamp(24px, 7.2vw, 40px); } }

/* ---------- The end: night again ---------- */
.dusk { padding: 45vh var(--gutter) 10vh; text-align: center; }
.dl { font-size: clamp(40px, 7vw, 96px); line-height: 1.02; letter-spacing: -.04em; }
.dl-sub { margin-top: 18px; font-size: clamp(18px, 2.2vw, 24px); color: var(--ink-dim); }
.js .dusk .dl, .js .dusk .dl-sub { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--arrive), transform 1.2s var(--arrive); }
.js .dusk.down .dl, .js .dusk.down .dl-sub { opacity: 1; transform: none; }
.js .dusk.down .dl-sub { transition-delay: .3s; }
.end { padding: 55vh var(--gutter) 12vh; text-align: center; }
.nl { font-size: clamp(44px, 8vw, 112px); line-height: .98; letter-spacing: -.045em; }
.js .end .nl.reveal { transition-duration: 1.2s; }
.end .nl:nth-child(2) { transition-delay: .12s; }
.end .nl:nth-child(3) { transition-delay: .24s; }
.end-get { margin-top: 24vh; display: flex; flex-direction: column; align-items: center; gap: 18px; color: var(--ink-dim); }
.get-mark { width: clamp(72px, 10vw, 110px); height: auto; aspect-ratio: 1; }

.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 40px var(--gutter) 56px; max-width: 1180px; margin: 0 auto; color: var(--ink-dim); font-size: 14px; }
.foot .brand { color: var(--ink); font-size: 18px; }
.foot .brand .mark { width: 26px; height: 26px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--arrive), transform .9s var(--arrive); }
.js .reveal.in { opacity: 1; transform: none; }

.facts { max-width: 1080px; margin: 18vh auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: left; border-top: 1px solid var(--line); padding-top: 32px; }
.facts dt { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink-dim); font-size: 15px; line-height: 1.55; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Tweaks panel (dev: ?tweaks, localhost, or press T) ---------- */
.tweaks-btn {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(16,16,18,.72); color: #F1F1F2; font-size: 12px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.tweaks {
  position: fixed; right: 16px; bottom: 60px; z-index: 90; width: 300px; max-height: calc(100svh - 140px); overflow-y: auto;
  padding: 16px; border-radius: 18px; background: rgba(16,16,18,.86); color: #F1F1F2; border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 12px; line-height: 1.3; display: none;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.tweaks.open { display: block; }
.tweaks h4 { margin: 14px 0 8px; font-size: 11px; font-weight: 500; color: #A2A2A9; }
.tweaks h4:first-child { margin-top: 0; }
.tw-row { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 8px; margin-bottom: 6px; }
.tw-row label { color: #C9C9CE; }
.tw-row output { text-align: right; font-variant-numeric: tabular-nums; color: #A2A2A9; }
.tw-row input[type=range] { width: 100%; accent-color: var(--a500); }
.tw-row select { grid-column: 2 / 4; background: #26262A; color: #F1F1F2; border: 1px solid #36363C; border-radius: 6px; padding: 4px; font: inherit; }
.tw-actions { display: flex; gap: 8px; margin-top: 14px; }
.tw-actions button { flex: 1; height: 32px; border-radius: 8px; border: 1px solid #36363C; background: #26262A; font-size: 12px; }
.tw-actions button:hover { border-color: #6E6E76; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .m-body { display: block; }
  .m-stick { top: 0; z-index: 2; height: auto; padding: 64px 0 16px; isolation: isolate; }
  .m-stick::before {
    content: ""; position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gutter));
    background: color-mix(in srgb, var(--paper) 40%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
    -webkit-mask: linear-gradient(#000 82%, transparent); mask: linear-gradient(#000 82%, transparent);
  }
  .phone { --s: .6; margin-bottom: calc(630px * (var(--s) - 1)); }
  .step { min-height: 80svh; justify-content: flex-start; padding: 24px 0 0; }
  .step-in { padding: 22px 22px 24px; border-radius: 24px; }
  .step-time { font-size: 52px; }
}
@media (max-width: 820px) and (max-height: 700px) { .phone { --s: .5; } }
@media (max-width: 620px) {
  .tweaks { left: 16px; right: 16px; width: auto; max-height: 55svh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}
