/* GENOM v0.1 — стили
   Идея: бумажный лабораторный журнал. Крем, чернила, один сигнальный цвет.
   Жёсткие тени вместо размытых, моно-шрифт для данных, перфорация на билете. */

:root {
  --paper: #EFEBE2;
  --paper-2: #FFFDF7;
  --paper-3: #E4DFD2;
  --ink: #15130F;
  --ink-2: #4A463D;
  --mute: #8B8578;
  --acc: #FF4F1F;
  --acc-soft: #FFD9CC;
  --ok: #1F8A4C;

  --fd: 'Unbounded', system-ui, sans-serif;
  --fm: 'IBM Plex Mono', ui-monospace, monospace;
  --fb: 'IBM Plex Sans', system-ui, sans-serif;

  --sh: 4px 4px 0 var(--ink);
  --sh-sm: 2px 2px 0 var(--ink);
  --r: 3px;
  --gutter: 20px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper-3);
  color: var(--ink);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
b, strong { font-weight: 600; }

/* зерно бумаги */
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* каркас «телефона» */
.shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--paper);
  position: relative;
}
@media (min-width: 431px) {
  .shell { border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); }
}
.app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: fade .28s ease both;
}
.app[data-tabs="1"] { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.screen { padding: 0 var(--gutter); flex: 1; display: flex; flex-direction: column; }

/* типографика */
.mono { font-family: var(--fm); font-feature-settings: 'tnum'; }
.eyebrow { font-family: var(--fm); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.display { font-family: var(--fd); font-weight: 900; letter-spacing: -.02em; line-height: 1.02; }
.hint { color: var(--mute); font-size: 13px; line-height: 1.45; }
em { font-style: normal; color: var(--acc); }

/* шапка */
.top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 22px;
}
.wordmark { font-family: var(--fd); font-weight: 900; font-size: 18px; letter-spacing: .04em; }
.wordmark sup { font-family: var(--fm); font-weight: 400; font-size: 10px; letter-spacing: .1em; margin-left: 6px; color: var(--mute); vertical-align: top; }
.top .mono { font-size: 11px; letter-spacing: .1em; color: var(--ink-2); }

/* кнопки */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 56px; padding: 0 20px;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  background: var(--paper-2); color: var(--ink);
  font-family: var(--fd); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  box-shadow: var(--sh);
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--acc { background: var(--acc); color: var(--ink); }
.btn--ghost { box-shadow: none; background: transparent; }
.btn--ghost:active { transform: none; }
.btn--big { min-height: 68px; font-size: 18px; }
.btn--sm { min-height: 44px; font-size: 13px; box-shadow: var(--sh-sm); }
.btn--sm:active { transform: translate(2px, 2px); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ico { width: 20px; height: 20px; flex: 0 0 auto; }
.stack { display: grid; gap: 12px; }

.link { font-family: var(--fm); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; }

/* поля */
.field { display: grid; gap: 8px; }
.field label { font-family: var(--fm); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.input {
  width: 100%; height: 56px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  background: var(--paper-2); font-size: 18px; outline: none;
}
.input:focus { box-shadow: var(--sh-sm); }

/* ==== AUTH ========================================================== */
.auth { padding-top: 28px; padding-bottom: 32px; }
.auth__helix { margin: 18px 0 8px; display: block; width: 100%; height: auto; }
.auth h1 { font-size: 36px; margin: 22px 0 14px; }
.auth .lead { font-size: 16px; color: var(--ink-2); max-width: 30ch; }
.auth .stack { margin-top: auto; padding-top: 36px; }
.auth .fine { margin-top: 18px; text-align: center; }

.avatar-pick {
  width: 96px; height: 96px; border-radius: 50%;
  border: 1.5px dashed var(--ink); background: var(--paper-2);
  display: grid; place-items: center; margin: 8px 0 24px;
  overflow: hidden; position: relative; cursor: pointer;
}
.avatar-pick img { width: 100%; height: 100%; object-fit: cover; }
.avatar-pick span { font-family: var(--fd); font-size: 28px; font-weight: 500; color: var(--mute); }
.avatar-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ==== ONBOARDING ==================================================== */
.ob { padding-top: 18px; padding-bottom: 28px; }
.ob__progress { display: flex; gap: 6px; margin: 6px 0 28px; }
.ob__progress i { flex: 1; height: 4px; background: var(--paper-3); border: 1px solid var(--ink); }
.ob__progress i.on { background: var(--ink); }
.ob__progress i.cur { background: var(--acc); }
.ob .q { font-size: 30px; margin: 10px 0 28px; }
.ob .ob__body { flex: 1; }
.ob .btn { margin-top: 24px; }

.tiles { display: grid; gap: 10px; }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper-2);
  padding: 18px 14px; text-align: left; display: grid; gap: 6px; position: relative;
  transition: transform .08s;
}
.tile:active { transform: scale(.98); }
.tile.on { background: var(--ink); color: var(--paper); box-shadow: var(--sh); }
.tile.on .hint { color: var(--paper-3); }
.tile .t { font-family: var(--fd); font-weight: 700; font-size: 15px; }
.tile .k { font-family: var(--fm); font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.tile.on .k { color: var(--acc); }
.tiles--3 .tile { text-align: center; padding: 22px 8px; }

.dial { display: grid; gap: 18px; }
.dial__val { font-family: var(--fd); font-weight: 900; font-size: 88px; line-height: 1; letter-spacing: -.04em; display: flex; align-items: baseline; gap: 10px; }
.dial__val small { font-family: var(--fm); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; }
.dial__row { display: grid; grid-template-columns: 56px 1fr 56px; gap: 12px; align-items: center; }
.dial__row .btn { min-height: 56px; font-size: 24px; padding: 0; }
.ruler { position: relative; height: 56px; }
.ruler::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10%) center/100% 28px no-repeat,
    repeating-linear-gradient(90deg, var(--ink-2) 0 1px, transparent 1px 2%) center/100% 14px no-repeat;
  opacity: .55; pointer-events: none;
}
.ruler input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 56px; background: transparent; margin: 0; position: relative; }
.ruler input[type=range]::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.ruler input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 56px; background: var(--acc); border: 1.5px solid var(--ink); border-radius: 2px; cursor: grab; }
.ruler input[type=range]::-moz-range-thumb { width: 6px; height: 56px; background: var(--acc); border: 1.5px solid var(--ink); border-radius: 2px; }

/* ==== HOME / TICKET ================================================= */
.home { padding-bottom: 24px; }
.home .eyebrow { margin-bottom: 10px; display: flex; justify-content: space-between; }

.ticket {
  background: var(--paper-2);
  border: 1.5px solid var(--ink); border-radius: var(--r);
  box-shadow: var(--sh);
  position: relative;
  margin-bottom: 22px;
}
.ticket__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 18px 20px 14px; border-bottom: 1.5px solid var(--ink);
}
.ticket__head .eyebrow { margin: 0; display: block; }
.ticket__time { font-family: var(--fd); font-weight: 900; font-size: 44px; line-height: .9; letter-spacing: -.03em; }
.ticket__time small { font-family: var(--fm); font-size: 12px; font-weight: 400; letter-spacing: .12em; margin-left: 4px; color: var(--ink-2); }
.ticket__title { font-family: var(--fd); font-weight: 700; font-size: 13px; line-height: 1.3; max-width: 14ch; }

.ticket__list { padding: 6px 20px 10px; }
.ticket__list li {
  display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 10px;
  padding: 12px 0; border-bottom: 1px dashed var(--mute);
}
.ticket__list li:last-child { border-bottom: 0; }
.ticket__list .n { font-family: var(--fd); font-weight: 700; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.ticket__list .n small { font-family: var(--fm); font-size: 11px; font-weight: 400; letter-spacing: .08em; color: var(--mute); margin-left: 2px; }
.ticket__list .e { font-size: 17px; }

.ticket__tear { position: relative; height: 0; border-top: 1.5px dashed var(--ink); margin: 6px 0 0; }
.ticket__tear::before, .ticket__tear::after {
  content: ''; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.ticket__tear::before { left: -11px; border-left-color: transparent; clip-path: inset(0 0 0 50%); }
.ticket__tear::after { right: -11px; clip-path: inset(0 50% 0 0); }
.ticket__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 16px; gap: 14px; }
.barcode { display: flex; gap: 2px; height: 28px; align-items: stretch; flex: 1; }
.barcode i { display: block; background: var(--ink); }
.ticket__code { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; color: var(--ink-2); white-space: nowrap; }

.home .hint { margin-top: 14px; text-align: center; padding: 0 12px; }

/* карточка «сегодня закрыто» */
.closed { border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper-2); padding: 22px 20px; box-shadow: var(--sh); margin-bottom: 20px; }
.closed .display { font-size: 28px; margin: 6px 0 14px; }
.closed .gains { margin-top: 8px; }
.countdown { font-family: var(--fm); font-size: 13px; color: var(--ink-2); margin-top: 16px; display: flex; justify-content: space-between; border-top: 1px dashed var(--mute); padding-top: 12px; }

/* ==== WORKOUT ======================================================= */
.work { padding-bottom: 28px; }
.clock { font-family: var(--fd); font-weight: 900; font-size: 76px; letter-spacing: -.04em; line-height: 1; text-align: center; margin-top: 8px; font-variant-numeric: tabular-nums; }
.clock.over { color: var(--acc); }
.clock__sub { text-align: center; margin: 8px 0 26px; }
.check {
  display: grid; grid-template-columns: 28px 72px 1fr; gap: 12px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--paper-3); cursor: pointer; user-select: none;
}
.check .box { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper-2); display: grid; place-items: center; }
.check .box svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: .15s; }
.check.on .box { background: var(--ink); }
.check.on .box svg { opacity: 1; transform: none; }
.check.on .e, .check.on .n { opacity: .45; text-decoration: line-through; }
.check .n { font-family: var(--fd); font-weight: 700; font-size: 26px; letter-spacing: -.03em; }
.check .n small { font-family: var(--fm); font-size: 10px; font-weight: 400; letter-spacing: .08em; color: var(--mute); margin-left: 2px; }
.check .e { font-size: 16px; }
.work .stack { margin-top: auto; padding-top: 28px; }

/* ==== RESULT ======================================================== */
.result { padding-top: 26px; padding-bottom: 28px; }
.stamp {
  align-self: flex-start;
  font-family: var(--fd); font-weight: 900; font-size: 22px; letter-spacing: .06em;
  padding: 8px 14px; border: 3px solid currentColor; border-radius: 4px;
  transform: rotate(-6deg); color: var(--acc);
  animation: stamp .45s cubic-bezier(.2, 1.4, .3, 1) both;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -1.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}
.stamp--fail { color: var(--ink-2); transform: rotate(4deg); }
@keyframes stamp { from { opacity: 0; transform: rotate(-6deg) scale(1.8); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
.result h1 { font-size: 40px; margin: 26px 0 6px; }
.result .sub { color: var(--ink-2); margin-bottom: 26px; }

.gains { display: grid; gap: 10px; }
.gain { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
.gain .l { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.gain .l .code { font-family: var(--fm); font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.gain .bar { height: 10px; border: 1.5px solid var(--ink); background: var(--paper-2); position: relative; overflow: hidden; }
.gain .bar i { position: absolute; inset: 0; width: 0; background: var(--acc); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.gain .v { font-family: var(--fd); font-weight: 700; font-size: 22px; text-align: right; letter-spacing: -.02em; }
.gain .v::before { content: '+'; color: var(--acc); }

.index-row { margin: 26px 0 0; padding: 18px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.index-row b { font-family: var(--fd); font-weight: 900; font-size: 32px; letter-spacing: -.03em; }
.index-row b small { font-family: var(--fm); font-size: 13px; font-weight: 400; color: var(--acc); margin-left: 8px; }
.result .btn { margin-top: auto; }
.result .btn + .hint { margin-top: 14px; text-align: center; }

/* ==== PROFILE ======================================================= */
.profile { padding-bottom: 24px; }
.who { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.avatar { width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--acc); overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--fd); font-weight: 900; font-size: 30px; }
.who .name { font-family: var(--fd); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.who .meta { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; color: var(--mute); margin-top: 4px; text-transform: uppercase; }

.bigstat { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--paper-2); box-shadow: var(--sh); margin-bottom: 22px; }
.bigstat > div { padding: 16px 18px; }
.bigstat > div + div { border-left: 1.5px solid var(--ink); }
.bigstat .eyebrow { margin-bottom: 8px; display: block; }
.bigstat b { font-family: var(--fd); font-weight: 900; font-size: 40px; letter-spacing: -.04em; line-height: 1; }

.radar { display: block; width: 100%; height: auto; margin: 4px auto 16px; max-width: 320px; }
.radar .grid { fill: none; stroke: var(--ink); stroke-width: 1; opacity: .25; }
.radar .axis { stroke: var(--ink); stroke-width: 1; opacity: .25; }
.radar .area { fill: var(--acc); fill-opacity: .35; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; }
.radar .dot { fill: var(--ink); }
.radar text { font-family: var(--fm); font-size: 10px; letter-spacing: .1em; fill: var(--ink-2); }

.statlist { display: grid; gap: 12px; margin-bottom: 26px; }
.stat { display: grid; grid-template-columns: 44px 1fr 44px; gap: 12px; align-items: center; }
.stat .code { font-family: var(--fm); font-size: 10px; letter-spacing: .14em; color: var(--mute); }
.stat .name { font-size: 14px; margin-bottom: 5px; }
.stat .bar { height: 10px; border: 1.5px solid var(--ink); background: var(--paper-2); position: relative; }
.stat .bar i { position: absolute; inset: 0; background: var(--ink); }
.stat .v { font-family: var(--fd); font-weight: 700; font-size: 18px; text-align: right; }

.sub-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); margin-bottom: 22px; gap: 12px; }
.sub-row .t { font-family: var(--fd); font-weight: 700; font-size: 14px; }
.sub-row .s { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.pill { font-family: var(--fm); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border: 1.5px solid var(--ink); border-radius: 100px; white-space: nowrap; }
.pill--acc { background: var(--acc); }

.version { margin-top: auto; padding-top: 22px; text-align: center; font-family: var(--fm); font-size: 10px; letter-spacing: .12em; color: var(--mute); text-transform: uppercase; user-select: none; }
.dev { margin-top: 14px; border: 1.5px dashed var(--acc); padding: 14px; display: grid; gap: 8px; }
.dev .eyebrow { color: var(--acc); }
.dev .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dev pre { font-family: var(--fm); font-size: 11px; color: var(--ink-2); margin: 4px 0 0; white-space: pre-wrap; }

/* ==== HISTORY ======================================================= */
.history { padding-bottom: 24px; }
.hsum { display: flex; gap: 22px; margin-bottom: 22px; }
.hsum div { display: grid; gap: 2px; }
.hsum b { font-family: var(--fd); font-weight: 900; font-size: 28px; letter-spacing: -.03em; }
.hsum .eyebrow { font-size: 10px; }
.hist { display: grid; }
.hrow { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--paper-3); }
.hrow .mark { width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; }
.hrow .mark svg { width: 14px; height: 14px; }
.hrow.done .mark { background: var(--ink); color: var(--paper); }
.hrow.fail .mark { background: var(--paper-2); color: var(--ink); }
.hrow.skip .mark { border-style: dashed; color: var(--mute); }
.hrow.wait .mark { border-color: var(--acc); color: var(--acc); }
.hrow .d { font-size: 16px; }
.hrow .d small { display: block; font-family: var(--fm); font-size: 10px; letter-spacing: .1em; color: var(--mute); text-transform: uppercase; margin-top: 2px; }
.hrow .st { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hrow.skip .st, .hrow.skip .d { color: var(--mute); }
.hrow.wait .st { color: var(--acc); }
.hrow .xp { font-family: var(--fd); font-weight: 700; font-size: 14px; margin-left: 10px; }
.empty { text-align: center; color: var(--mute); padding: 40px 20px; }

/* ==== PAYWALL ======================================================= */
.pay { padding-top: 18px; padding-bottom: 28px; }
.pay__card { border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--ink); color: var(--paper); padding: 24px 22px; box-shadow: 4px 4px 0 var(--acc); margin: 18px 0 22px; position: relative; overflow: hidden; }
.pay__card .eyebrow { color: var(--acc); }
.pay__price { font-family: var(--fd); font-weight: 900; font-size: 56px; letter-spacing: -.04em; line-height: 1; margin: 10px 0 4px; }
.pay__price small { font-family: var(--fm); font-size: 13px; font-weight: 400; letter-spacing: .1em; color: var(--paper-3); margin-left: 6px; }
.pay__card ul { margin-top: 18px; display: grid; gap: 10px; }
.pay__card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--paper-3); }
.pay__card li::before { content: '→'; color: var(--acc); font-family: var(--fm); }
.pay h1 { font-size: 30px; margin-top: 8px; }
.pay .lead { color: var(--ink-2); margin-top: 10px; }
.pay .stack { margin-top: auto; }
.pay .fine { text-align: center; margin-top: 14px; }
.pay__done { padding: 20px 0; }

.used { display: flex; gap: 4px; margin: 20px 0 6px; }
.used i { flex: 1; height: 14px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.used i.on { background: var(--ink); }
.used i.lock { background: repeating-linear-gradient(45deg, var(--acc) 0 3px, transparent 3px 6px); }

/* ==== NAV =========================================================== */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: calc(var(--nav-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--paper); border-top: 1.5px solid var(--ink);
  display: grid; grid-template-columns: repeat(4, 1fr); z-index: 40;
}
@media (min-width: 431px) { .nav { border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); max-width: 430px; } }
.nav button { display: grid; place-items: center; gap: 4px; color: var(--mute); font-family: var(--fm); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; position: relative; }
.nav button svg { width: 22px; height: 22px; }
.nav button.on { color: var(--ink); }
.nav button.on::after { content: ''; position: absolute; top: -1.5px; left: 20%; right: 20%; height: 3px; background: var(--acc); }

/* ==== OVERLAY ======================================================= */
.overlay { position: fixed; inset: 0; background: rgba(21, 19, 15, .55); display: grid; place-items: end center; z-index: 60; animation: fade .2s both; }
.sheet { width: 100%; max-width: 430px; background: var(--paper); border-top: 1.5px solid var(--ink); padding: 22px var(--gutter) calc(24px + var(--safe-b)); animation: up .28s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet h3 { font-family: var(--fd); font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.sheet p { color: var(--ink-2); margin-bottom: 20px; }
.sheet .stack { grid-template-columns: 1fr 1fr; }

.spin { width: 22px; height: 22px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-height: 700px) {
  .dial__val { font-size: 68px; }
  .clock { font-size: 64px; }
  .auth h1 { font-size: 30px; }
}
