/* HeatShift: styles
   Motion rule: only transform and opacity are animated continuously, so the
   compositor does the work and low-end laptops/phones stay at 60 fps. */

:root {
  color-scheme: light;
  --bg: #fbf6f0;
  --bg-2: #f4ebe1;
  --surface: #ffffff;
  --surface-2: #faf3ec;
  --ink: #1d1714;
  --ink-2: #5d534c;
  --ink-3: #8f857d;
  --line: #efe4d9;
  --line-2: #e3d5c7;
  --brand: #ff5a1f;
  --brand-2: #ffaa1c;
  --brand-ink: #c2410c;
  --soft-brand: #ffe6d6;
  --ok: #059669;
  --ok-soft: #d1fae5;
  --focus: #2563eb;
  --shadow-1: 0 1px 2px rgba(70, 35, 10, .05), 0 6px 18px -6px rgba(70, 35, 10, .08);
  --shadow-2: 0 2px 6px rgba(70, 35, 10, .06), 0 24px 48px -16px rgba(70, 35, 10, .22);
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  --l0: #16a34a; --l1: #eab308; --l2: #f97316; --l3: #e11d48; --l4: #a21caf;
  --l0-soft: #dcfce7; --l1-soft: #fef6c3; --l2-soft: #ffedd5; --l3-soft: #ffe4e6; --l4-soft: #fae8ff;
  --l0-ink: #15803d; --l1-ink: #a16207; --l2-ink: #c2410c; --l3-ink: #be123c; --l4-ink: #86198f;
  --g0: linear-gradient(140deg, #0f9f6e 0%, #12b39b 50%, #1f9fd1 100%);
  --g1: linear-gradient(140deg, #f7c21b 0%, #f5a30b 55%, #f58a12 100%);
  --g2: linear-gradient(140deg, #fb9a24 0%, #f76b2a 55%, #ef4444 100%);
  --g3: linear-gradient(140deg, #f2463a 0%, #dc1f4c 55%, #a8124a 100%);
  --g4: linear-gradient(140deg, #b5179e 0%, #7b22cf 55%, #46178f 100%);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --spring-bouncy: cubic-bezier(.34, 1.8, .64, 1);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nav-h: 68px;
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
    --spring-bouncy: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1.004 83.8%, 1);
  }
}

html[data-lang="bn"] { --font: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, sans-serif; }
html[data-lang="hi"] { --font: 'Hind', 'Plus Jakarta Sans', system-ui, sans-serif; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #110d0b; --bg-2: #18120f; --surface: #1b1613; --surface-2: #241d19;
    --ink: #f7efe8; --ink-2: #cbbfb4; --ink-3: #91857b; --line: #2c241f; --line-2: #3b3029;
    --brand-ink: #fb923c; --ok-soft: #0b2f24; --soft-brand: #3a2216;
    --l0-soft: #0f2d1c; --l1-soft: #2f2608; --l2-soft: #38200d; --l3-soft: #3b1120; --l4-soft: #321036;
    --l0-ink: #4ade80; --l1-ink: #facc15; --l2-ink: #fb923c; --l3-ink: #fb7185; --l4-ink: #e879f9;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -6px rgba(0, 0, 0, .4);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #110d0b; --bg-2: #18120f; --surface: #1b1613; --surface-2: #241d19;
  --ink: #f7efe8; --ink-2: #cbbfb4; --ink-3: #91857b; --line: #2c241f; --line-2: #3b3029;
  --brand-ink: #fb923c; --ok-soft: #0b2f24; --soft-brand: #3a2216;
  --l0-soft: #0f2d1c; --l1-soft: #2f2608; --l2-soft: #38200d; --l3-soft: #3b1120; --l4-soft: #321036;
  --l0-ink: #4ade80; --l1-ink: #facc15; --l2-ink: #fb923c; --l3-ink: #fb7185; --l4-ink: #e879f9;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -6px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 24px 48px -16px rgba(0, 0, 0, .6);
}

.lv0 { --c: var(--l0); --soft: var(--l0-soft); --c-ink: var(--l0-ink); --g: var(--g0); }
.lv1 { --c: var(--l1); --soft: var(--l1-soft); --c-ink: var(--l1-ink); --g: var(--g1); }
.lv2 { --c: var(--l2); --soft: var(--l2-soft); --c-ink: var(--l2-ink); --g: var(--g2); }
.lv3 { --c: var(--l3); --soft: var(--l3-soft); --c-ink: var(--l3-ink); --g: var(--g3); }
.lv4 { --c: var(--l4); --soft: var(--l4-soft); --c-ink: var(--l4-ink); --g: var(--g4); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: var(--brand-ink); }
img, svg { display: block; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; }
.muted { color: var(--ink-3); }
.noscript { padding: 40px; text-align: center; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Animated backdrop ---------- */
.app-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  will-change: transform;
  opacity: .9;
}
.b1 { top: -38vmax; left: -28vmax; background: radial-gradient(closest-side, rgba(255, 170, 60, .30), transparent); animation: drift1 26s var(--ease-in-out) infinite alternate; }
.b2 { bottom: -42vmax; right: -30vmax; background: radial-gradient(closest-side, rgba(255, 90, 60, .20), transparent); animation: drift2 32s var(--ease-in-out) infinite alternate; }
.b3 { top: 25%; left: 45%; width: 45vmax; height: 45vmax; background: radial-gradient(closest-side, var(--glow, rgba(255, 200, 120, .18)), transparent); animation: drift3 22s var(--ease-in-out) infinite alternate; }
@keyframes drift1 { to { transform: translate3d(10vmax, 8vmax, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-12vmax, -6vmax, 0) scale(1.18); } }
@keyframes drift3 { to { transform: translate3d(-16vmax, 10vmax, 0) scale(.9); } }
body[data-level="0"] { --glow: rgba(16, 185, 129, .16); }
body[data-level="1"] { --glow: rgba(250, 204, 21, .20); }
body[data-level="2"] { --glow: rgba(249, 115, 22, .18); }
body[data-level="3"] { --glow: rgba(225, 29, 72, .16); }
body[data-level="4"] { --glow: rgba(162, 28, 175, .18); }

/* ---------- Top bar & navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 20px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
  view-transition-name: topbar;
}
.topbar.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(70, 35, 10, .35); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 36px; height: 36px; filter: drop-shadow(0 6px 10px rgba(255, 90, 31, .35)); }
.brand-rays { transform-box: fill-box; transform-origin: center; animation: spin 30s linear infinite; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-name b { color: var(--brand); font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } }

.nav { position: relative; display: flex; gap: 2px; padding: 4px; margin: 0 auto; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); view-transition-name: nav; }
.nav-ink {
  position: absolute; top: 4px; bottom: 4px; left: 0;
  width: var(--w, 0px);
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(var(--x, 0px));
  transition: transform .55s var(--spring), width .45s var(--ease-out);
}
.nav-item {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 650; font-size: 14.5px;
  color: var(--ink-2);
  transition: color .3s;
  white-space: nowrap;
}
.nav-item .ic { width: 18px; height: 18px; transition: transform .45s var(--spring-bouncy); }
.nav-item:hover { color: var(--ink); }
.nav-item.active { color: var(--bg); }
.nav-item.active .ic { transform: scale(1.12); }

.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.chip-btn {
  display: flex; align-items: center; gap: 6px;
  height: 40px; max-width: 220px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  font-weight: 650; font-size: 14px;
  transition: transform .3s var(--spring), border-color .2s;
}
.chip-btn:hover { border-color: var(--line-2); }
.chip-btn:active { transform: scale(.96); }
.chip-btn .ic { width: 18px; height: 18px; color: var(--brand); }
.chip-btn .ic:last-child { color: var(--ink-3); width: 16px; }
.chip-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-btn .replay-dot { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; flex: none; box-shadow: 0 0 0 3px rgba(124, 58, 237, .2); }
.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--spring), border-color .2s;
  position: relative;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn .lang-code { position: absolute; bottom: -3px; right: -3px; font-size: 9px; font-weight: 800; background: var(--ink); color: var(--bg); border-radius: 6px; padding: 1px 4px; text-transform: uppercase; }

@media (max-width: 899px) {
  .topbar { padding: calc(8px + env(safe-area-inset-top)) 14px 8px; gap: 8px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; }
  .top-actions { margin-left: auto; }
  .chip-btn { max-width: 150px; }
  .nav {
    position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0; border-width: 1px 0 0;
    background: var(--surface);
    box-shadow: 0 -10px 30px -18px rgba(70, 35, 10, .35);
  }
  .nav-ink { display: none; }
  .nav-item { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11px; font-weight: 650; border-radius: 14px; color: var(--ink-3); }
  .nav-item .ic { width: 22px; height: 22px; padding: 3px; box-sizing: content-box; border-radius: 12px; transition: transform .45s var(--spring-bouncy), background-color .25s; }
  .nav-item.active { color: var(--ink); }
  .nav-item.active .ic { background: var(--soft-brand); color: var(--brand-ink); transform: translateY(-2px) scale(1.06); }
}
@media (max-width: 420px) {
  .brand-name { display: none; }
}

/* ---------- Layout ---------- */
.view { max-width: 1180px; margin: 0 auto; padding: 14px 16px calc(var(--nav-h) + 36px + env(safe-area-inset-bottom)); outline: none; }
@media (min-width: 900px) { .view { padding: 22px 24px 72px; } }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.timer-wrap, .watch-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .stack { gap: 20px; }
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 16px; flex-wrap: wrap; }
.page-title { font-size: clamp(26px, 4.4vw, 36px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.page-sub { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-ink); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-1);
}
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.card-title .ic { color: var(--brand); width: 21px; height: 21px; }
.card-sub { color: var(--ink-3); font-size: 13.5px; }
.card-hint { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translate3d(0, 18px, 0); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--spring); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .35s var(--spring), box-shadow .3s, background-color .2s, border-color .2s;
  user-select: none;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.95); }
.btn .ic { width: 19px; height: 19px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand) 60%, #f43f3f); box-shadow: 0 12px 26px -12px rgba(255, 90, 31, .75); }
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(255, 90, 31, .85); transform: translateY(-1px); }
.btn-dark { color: var(--bg); background: var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-danger { color: #fff; background: linear-gradient(135deg, #f43f5e, #dc2626); box-shadow: 0 12px 26px -12px rgba(220, 38, 38, .8); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .65s var(--ease-out) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Banner ---------- */
.banner-slot:empty { display: none; }
.banner {
  max-width: 1132px; margin: 12px auto 0; padding: 12px 14px 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(110deg, #3b1d6e, #6d28d9 55%, #a21caf);
  box-shadow: 0 16px 36px -18px rgba(109, 40, 217, .8);
  animation: dropIn .6s var(--spring) both;
  font-size: 14.5px; font-weight: 550;
}
.banner.offline { background: linear-gradient(110deg, #334155, #475569); box-shadow: none; }
.banner .ic { width: 22px; height: 22px; flex: none; }
.banner p { flex: 1; }
.banner .btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }
.banner .short { display: none; }
@media (max-width: 899px) { .banner { margin: 10px 16px 0; font-size: 13.5px; } }
@media (max-width: 640px) { .banner .long { display: none; } .banner .short { display: inline; } }
@media (max-width: 480px) {
  .sv-row, .sv-axis { grid-template-columns: 64px 1fr; gap: 8px; }
  .sv-label { font-size: 11.5px; }
  .stat { padding: 10px; }
  .stat-v { font-size: 15.5px; }
  .card { padding: 18px 16px; }
  .tl-scroll { margin: 0 -16px; padding: 26px 16px 4px; }
}
@keyframes dropIn { from { opacity: 0; transform: translate3d(0, -14px, 0) scale(.98); } }

/* ---------- Day tabs ---------- */
.daytabs {
  position: relative;
  display: flex; gap: 2px; padding: 4px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  overflow-x: auto; scrollbar-width: none;
}
.daytabs::-webkit-scrollbar { display: none; }
.daytab-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: var(--w, 0); border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); transform: translateX(var(--x, 0)); transition: transform .55s var(--spring), width .4s var(--ease-out); }
.daytab { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: color .25s; }
.daytab.active { color: var(--ink); }
.daytab .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: 22px 22px 20px;
  color: #fff;
  background: var(--g);
  box-shadow: 0 30px 60px -28px var(--c), var(--shadow-1);
  min-height: 340px;
}
.hero.lv1 { color: #2d2100; }
.hero-art { position: absolute; z-index: -1; top: -46px; right: -46px; width: 230px; height: 230px; opacity: .95; pointer-events: none; }
.hero-art .rays { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.hero-art .core { transform-box: fill-box; transform-origin: center; animation: breathe 5s var(--ease-in-out) infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.hero-waves { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 90px; overflow: hidden; opacity: .22; pointer-events: none; }
.hero-waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; will-change: transform; }
.hero-waves .w1 { animation: waveX 9s linear infinite; }
.hero-waves .w2 { animation: waveX 14s linear infinite reverse; opacity: .6; bottom: -12px; }
@keyframes waveX { to { transform: translate3d(-50%, 0, 0); } }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero-kicker { font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.hero-place { font-size: 14px; font-weight: 600; opacity: .85; margin-top: 2px; }
.hero-main { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; margin-top: 12px; }
@media (max-width: 560px) { .hero-main { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.gauge { position: relative; width: 236px; max-width: 100%; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .seg { fill: none; stroke: currentColor; stroke-width: 14; stroke-linecap: round; opacity: .28; stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawSeg .7s var(--ease-out) forwards; animation-delay: calc(var(--i) * 90ms + 120ms); }
.gauge .seg.on { opacity: 1; }
@keyframes drawSeg { to { stroke-dashoffset: 0; } }
.gauge .knob { transform-origin: 100px 100px; transform: rotate(0deg); transition: transform 1.4s var(--spring-bouncy); }
.gauge .knob circle { fill: #fff; stroke: rgba(0, 0, 0, .12); stroke-width: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .3)); }
.gauge .knob .knob-dot { fill: var(--c); stroke: none; filter: none; }
.gauge-label { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; }
.gauge-level { font-size: clamp(28px, 6vw, 36px); font-weight: 800; letter-spacing: -.035em; line-height: 1; animation: rise .8s var(--spring) .35s both; }
.gauge-value { font-size: 13px; font-weight: 650; opacity: .85; margin-top: 4px; animation: rise .8s var(--spring) .45s both; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 12px, 0); } }

.hero-copy { display: grid; gap: 12px; }
.hero-desc { font-size: 17px; font-weight: 600; line-height: 1.35; max-width: 34ch; animation: rise .8s var(--spring) .5s both; }
@media (max-width: 560px) { .hero-desc { margin: 0 auto; } }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .hero-acts { justify-content: center; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .32);
  font-weight: 700; font-size: 14.5px;
  animation: rise .8s var(--spring) both;
  animation-delay: calc(.6s + var(--i, 0) * 90ms);
}
.hero.lv1 .pill { background: rgba(255, 255, 255, .38); border-color: rgba(70, 50, 0, .18); }
.pill .ic { width: 19px; height: 19px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
@media (max-width: 480px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
.metric {
  padding: 11px 12px; border-radius: 16px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  animation: rise .8s var(--spring) both;
  animation-delay: calc(.7s + var(--i, 0) * 70ms);
}
.hero.lv1 .metric { background: rgba(255, 255, 255, .3); border-color: rgba(70, 50, 0, .12); }
.metric-l { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; opacity: .85; }
.metric-l .ic { width: 14px; height: 14px; }
.metric-v { font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ---------- Timeline ---------- */
.tl-scroll { overflow-x: auto; margin: 0 -20px; padding: 26px 20px 4px; scrollbar-width: thin; }
.tl-bars, .tl-labels { display: grid; grid-template-columns: repeat(24, minmax(20px, 1fr)); gap: 4px; min-width: 600px; }
.tl-bars { height: 150px; align-items: end; }
.tl-bar {
  position: relative;
  height: calc(var(--h) * 1%);
  min-height: 10px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 70%, #fff));
  transform-origin: 50% 100%;
  transform: scaleY(0);
  animation: grow .9s var(--spring) forwards;
  animation-delay: calc(var(--i) * 24ms + 150ms);
  transition: filter .2s, opacity .2s;
}
.tl-bar.past { opacity: .4; }
.tl-bar:hover { filter: brightness(1.08) saturate(1.1); }
.tl-bar.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.tl-bar.now::after {
  content: ''; position: absolute; left: 50%; top: -15px;
  width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--ink);
}
.tl-bar.now::before {
  content: ''; position: absolute; left: 50%; top: -15px;
  width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--ink);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes grow { to { transform: scaleY(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3.2); opacity: 0; } }
.tl-labels { margin-top: 8px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.tl-labels span { text-align: center; white-space: nowrap; }
.tl-detail {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px; padding: 13px 15px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--c-ink);
  animation: swapIn .45s var(--spring);
}
.tl-detail strong { font-size: 15.5px; }
.tl-detail .ic { width: 18px; height: 18px; }
.tl-detail .row { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14px; color: var(--ink); }
@keyframes swapIn { from { opacity: 0; transform: translate3d(0, 8px, 0) scale(.985); } }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* ---------- Shift optimiser ---------- */
.sv { display: grid; gap: 10px; }
.sv-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 10px; }
.sv-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.sv-track { position: relative; height: 38px; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: repeat(24, 1fr); background: var(--surface-2); }
.sv-track i { background: var(--c); opacity: .32; }
.sv-track i + i { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .5); }
.sv-block {
  position: absolute; top: 4px; bottom: 4px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden;
  background: var(--ink-2);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
}
.sv-block.best { background: linear-gradient(135deg, #10b981, #059669); }
.sv-axis { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 11px; color: var(--ink-3); font-weight: 600; }
.sv-axis div { display: flex; justify-content: space-between; }
.gain {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--ok-soft); color: var(--ok);
  font-weight: 800; font-size: 15px;
  animation: popIn .7s var(--spring-bouncy) .8s both;
}
.gain .ic { width: 19px; height: 19px; }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.stat { padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.stat-l { font-size: 12px; font-weight: 650; color: var(--ink-3); }
.stat-v { font-size: 19px; font-weight: 800; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat-v s { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.stat-v .up { color: var(--ok); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.note .ic { color: var(--ok); margin-top: 1px; }

/* ---------- Water ---------- */
.water { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; }
.bottle { width: 96px; height: 150px; }
.bottle .wave { will-change: transform; animation: waveX2 3.2s linear infinite; }
.bottle .wave.b { animation-duration: 5s; animation-direction: reverse; opacity: .55; }
.bottle .fill { transform: translateY(var(--fill-y, 120px)); transition: transform 1.6s var(--spring); }
@keyframes waveX2 { to { transform: translate3d(-60px, 0, 0); } }
.water-big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.water-big small { font-size: 18px; font-weight: 700; color: var(--ink-3); margin-left: 4px; }
.cups { display: flex; flex-wrap: wrap; gap: 3px; margin: 10px 0 8px; }
.cups .ic { width: 18px; height: 18px; color: #0ea5e9; animation: popIn .5s var(--spring-bouncy) both; animation-delay: calc(.3s + var(--i) * 45ms); }
.water-sub { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.callout { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; }
.callout .ic { color: #0ea5e9; flex: none; margin-top: 1px; }

/* ---------- Lists ---------- */
.list { display: grid; gap: 10px; }
.li { display: flex; gap: 12px; align-items: flex-start; }
.li-ic { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--soft, var(--surface-2)); color: var(--c-ink, var(--brand-ink)); }
.li-ic .ic { width: 20px; height: 20px; }
.li-body { font-size: 14.5px; line-height: 1.45; padding-top: 1px; }
.li-body strong { display: block; font-size: 15px; }
.tip-ic { background: #fff1e6; color: var(--brand-ink); }
:root[data-theme="dark"] .tip-ic { background: #33200f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip-ic { background: #33200f; } }

/* ---------- Outlook ---------- */
.outlook { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .outlook { grid-template-columns: repeat(2, 1fr); } }
.ol-day {
  text-align: left; padding: 12px; border-radius: 18px;
  background: var(--soft); border: 1px solid transparent;
  transition: transform .4s var(--spring), border-color .2s;
}
.ol-day:hover { transform: translateY(-3px); }
.ol-day.active { border-color: var(--c); }
.ol-name { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ol-level { font-size: 16px; font-weight: 800; color: var(--c-ink); margin: 2px 0; }
.ol-meta { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.chip-level { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--c-ink); font-weight: 750; font-size: 12.5px; white-space: nowrap; }
.chip-level::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.actions .btn { width: 100%; white-space: nowrap; }
@media (max-width: 400px) { .actions .btn { font-size: 14px; padding: 0 12px; gap: 6px; } }

/* ---------- Skeleton / loading ---------- */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: var(--r-lg); }
.skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
:root[data-theme="dark"] .skel::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.loading-msg { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); font-weight: 650; margin: 8px 0 16px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.empty { text-align: center; padding: 40px 20px; display: grid; gap: 14px; justify-items: center; }
.empty .ic { width: 44px; height: 44px; color: var(--brand); }

/* ---------- Sheets ---------- */
#sheet-root .backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(25, 12, 6, .5); animation: fadeIn .3s ease both; }
.sheet {
  position: fixed; z-index: 101; left: 0; right: 0; bottom: 0;
  max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .4);
  animation: sheetUp .55s var(--spring) both;
}
.sheet-grab { width: 42px; height: 5px; border-radius: 99px; background: var(--line-2); margin: 4px auto 12px; }
#sheet-root.closing .backdrop { animation: fadeOut .26s ease forwards; }
#sheet-root.closing .sheet { animation: sheetDown .26s var(--ease-in-out) forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes sheetUp { from { transform: translate3d(0, 100%, 0); } }
@keyframes sheetDown { to { transform: translate3d(0, 100%, 0); } }
@media (min-width: 700px) {
  .sheet { left: 50%; top: 50%; bottom: auto; width: min(580px, 92vw); max-height: 88dvh; border-radius: 28px; padding: 22px 26px 26px; transform: translate(-50%, -50%); animation: dialogIn .55s var(--spring) both; }
  .sheet.wide { width: min(760px, 94vw); }
  .sheet-grab { display: none; }
  #sheet-root.closing .sheet { animation: dialogOut .22s var(--ease-in-out) forwards; }
}
@keyframes dialogIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.95); } }
@keyframes dialogOut { to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sheet-sub { color: var(--ink-2); font-size: 14.5px; margin-top: -8px; margin-bottom: 16px; }
.close-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); flex: none; transition: transform .3s var(--spring); }
.close-btn:hover { transform: rotate(90deg); }

/* ---------- Forms & options ---------- */
.field-label { font-size: 13px; font-weight: 750; color: var(--ink-2); margin: 18px 0 8px; display: block; }
.field-label:first-child { margin-top: 0; }
.search-box { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 31, .15); }
.search-box input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.search-box .ic { color: var(--ink-3); }
.results { display: grid; gap: 4px; margin-top: 10px; }
.result {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 14px;
  transition: background-color .2s, transform .3s var(--spring);
  animation: swapIn .4s var(--spring) both; animation-delay: calc(var(--i, 0) * 35ms);
}
.result:hover { background: var(--surface-2); }
.result:active { transform: scale(.98); }
.result .ic { color: var(--brand); }
.result small { display: block; color: var(--ink-3); font-size: 12.5px; }
.result-b { flex: 1; min-width: 0; font-weight: 650; }
.result-pop { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.result-pop .ic { width: 14px; height: 14px; color: var(--ink-3); }
.replay-card {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px; border-radius: 18px; margin-top: 4px;
  color: #fff; background: linear-gradient(120deg, #4c1d95, #7c3aed 55%, #c026d3);
  box-shadow: 0 16px 30px -16px rgba(124, 58, 237, .8);
  transition: transform .35s var(--spring);
}
.replay-card:hover { transform: translateY(-2px); }
.replay-card .li-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.replay-card small { display: block; opacity: .85; font-size: 13px; font-weight: 500; }
.date-row { display: flex; gap: 8px; margin-top: 8px; }
.date-row input { flex: 1; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 12px; }

.opts { display: grid; gap: 10px; }
@media (min-width: 700px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt {
  position: relative; display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 14px; border-radius: 18px;
  background: var(--surface); border: 1.5px solid var(--line);
  transition: border-color .2s, background-color .2s, transform .35s var(--spring), box-shadow .2s;
  animation: swapIn .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.opt:hover { border-color: var(--line-2); transform: translateY(-1px); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 10px 24px -16px rgba(255, 90, 31, .7); }
.opt .li-ic { background: var(--surface-2); color: var(--ink-2); transition: background-color .2s, color .2s; }
.opt[aria-pressed="true"] .li-ic { background: var(--brand); color: #fff; }
.opt-t { font-weight: 750; font-size: 15.5px; }
.opt-d { font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.opt-check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .45s var(--spring-bouncy); }
.opt-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.opt[aria-pressed="true"] .opt-check { transform: scale(1); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1.5px solid var(--line);
  font-weight: 650; font-size: 14px;
  transition: background-color .2s, border-color .2s, color .2s, transform .35s var(--spring);
}
.seg button:active, .chip:active { transform: scale(.95); }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .ic { width: 15px; height: 15px; stroke-width: 3; transition: transform .4s var(--spring-bouncy); transform: scale(0); margin-left: -6px; width: 0; }
.chip[aria-pressed="true"] .ic { transform: scale(1); width: 15px; margin-left: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1.5px solid var(--line); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); transition: transform .3s var(--spring); }
.stepper button:active { transform: scale(.88); }
.stepper output { min-width: 74px; text-align: center; font-weight: 750; font-variant-numeric: tabular-nums; }
.stepper-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.stepper-row label { font-size: 13px; color: var(--ink-3); font-weight: 650; display: grid; gap: 4px; }

.wiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wiz-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.wiz-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--spring); }
.wiz-step { animation: stepIn .5s var(--ease-out) both; }
.wiz-step.back { animation-name: stepInBack; }
@keyframes stepIn { from { opacity: 0; transform: translate3d(28px, 0, 0); } }
@keyframes stepInBack { from { opacity: 0; transform: translate3d(-28px, 0, 0); } }
.wiz-nav { display: flex; gap: 10px; margin-top: 22px; }
.wiz-nav .btn-primary { flex: 1; }
.welcome { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 8px 0 4px; }
.welcome-art { width: 150px; height: 150px; margin-bottom: 4px; }
.welcome-art .rays { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
.welcome-art .core { transform-box: fill-box; transform-origin: center; animation: breathe 4s var(--ease-in-out) infinite; }
.welcome h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.welcome p { color: var(--ink-2); max-width: 40ch; }
.lang-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.privacy { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); justify-content: center; }
.privacy .ic { width: 16px; height: 16px; color: var(--ok); }

/* ---------- Toasts ---------- */
.toast-root { position: fixed; z-index: 200; left: 50%; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
@media (min-width: 900px) { .toast-root { bottom: 28px; } }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--ink); color: var(--bg); font-weight: 650; font-size: 14.5px; box-shadow: var(--shadow-2); animation: toastIn .55s var(--spring-bouncy) both; }
.toast .ic { width: 19px; height: 19px; flex: none; }
.toast-ok .ic { color: #34d399; }
.toast-error .ic { color: #fb7185; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translate3d(0, 10px, 0) scale(.96); } }

/* ---------- Shift timer ---------- */
.timer-wrap { display: grid; gap: 16px; }
@media (min-width: 900px) { .timer-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 20px; } }
.timer-card { text-align: center; padding: 26px 20px 22px; overflow: hidden; isolation: isolate; }
.timer-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, var(--soft), transparent 70%); transition: opacity .6s; }
.ring { position: relative; width: min(300px, 78vw); aspect-ratio: 1; margin: 6px auto 16px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--surface-2); stroke-width: 16; }
.ring .prog { fill: none; stroke: var(--c); stroke-width: 16; stroke-linecap: round; transition: stroke-dashoffset 1s linear, stroke .5s; }
.ring.breathing { animation: breatheRing 6s var(--ease-in-out) infinite; }
@keyframes breatheRing { 50% { transform: scale(1.035); } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; gap: 2px; }
.phase { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); }
.phase.pop { animation: popIn .6s var(--spring-bouncy); }
.clock { font-size: clamp(48px, 13vw, 66px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.then { font-size: 13.5px; color: var(--ink-3); font-weight: 650; }
.timer-tip { max-width: 38ch; margin: 0 auto 18px; color: var(--ink-2); font-size: 14.5px; }
.timer-controls { display: flex; justify-content: center; gap: 12px; }
.round-btn { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; transition: transform .35s var(--spring); }
.round-btn:active { transform: scale(.9); }
.round-btn .ic { width: 26px; height: 26px; }
.round-btn.main { width: 76px; height: 76px; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); box-shadow: 0 14px 30px -12px rgba(255, 90, 31, .8); }
.round-btn.ghost { background: var(--surface-2); border: 1px solid var(--line); }
.drops { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 12px 0; }
.drops .ic { width: 20px; height: 20px; color: var(--line-2); transition: color .4s, transform .5s var(--spring-bouncy); }
.drops .ic.full { color: #0ea5e9; transform: scale(1.1); }
.drink-alert {
  /* Centred with auto margins: left: 50% would cap the width at half the screen on phones */
  position: fixed; z-index: 150; left: 14px; right: 14px; top: calc(80px + env(safe-area-inset-top));
  width: fit-content; margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 14px 14px; border-radius: 22px;
  color: #fff; background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 20px 44px -16px rgba(37, 99, 235, .8);
  animation: dropIn .6s var(--spring-bouncy) both;
}
.drink-alert strong { line-height: 1.3; }
.drink-alert .drop-fall { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }
.drink-alert .drop-fall .ic { width: 24px; height: 24px; animation: dropFall 1.2s var(--ease-in-out) infinite; }
@keyframes dropFall { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(5px); opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }
.drink-alert .btn { flex: none; white-space: nowrap; min-height: 38px; padding: 0 14px; background: #fff; color: #1d4ed8; }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.plan-hours { display: grid; gap: 6px; }
.ph { display: grid; grid-template-columns: 62px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; font-size: 13.5px; }
.ph.cur { background: var(--soft); }
.ph-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.ph-bar b { background: var(--c); }
.ph-bar u { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 3px, var(--line-2) 3px, var(--line-2) 6px); }
.ph-t { font-weight: 700; color: var(--ink-2); }
.ph-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Symptom check ---------- */
.sx { max-width: 680px; margin: 0 auto; }
.sx-card { padding: 26px 22px; text-align: center; overflow: hidden; }
.sx-card.enter { animation: stepIn .5s var(--ease-out) both; }
.sx-icon { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; background: #ffe4e6; color: #e11d48; }
.sx-icon .ic { width: 38px; height: 38px; }
.sx-q { font-size: clamp(19px, 3.6vw, 23px); font-weight: 750; letter-spacing: -.01em; line-height: 1.35; margin: 6px auto 22px; max-width: 30ch; }
.sx-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 14px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line-2); transition: width .4s var(--spring), background-color .3s; }
.dots i.on { width: 24px; background: var(--brand); }
.dots i.done { background: var(--ink-3); }
.sx-result { padding: 0; overflow: hidden; animation: popIn .6s var(--spring) both; }
.sx-head { padding: 22px; color: #fff; background: var(--g); display: flex; gap: 14px; align-items: center; }
.sx-head .li-ic { width: 52px; height: 52px; border-radius: 18px; background: rgba(255, 255, 255, .2); color: #fff; }
.sx-head .li-ic .ic { width: 28px; height: 28px; }
.sx-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.sx-body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.steps { counter-reset: s; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; animation: swapIn .5s var(--spring) both; animation-delay: calc(.2s + var(--i) * 80ms); }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--soft); color: var(--c-ink); }
.call-btn { position: relative; isolation: isolate; }
.call-btn::before, .call-btn::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #ef4444; animation: callPulse 1.8s var(--ease-out) infinite; }
.call-btn::after { animation-delay: .9s; }
@keyframes callPulse { from { transform: scale(1); opacity: .55; } to { transform: scale(1.25, 1.6); opacity: 0; } }
.help-box { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; }
.help-box .ic { flex: none; color: var(--brand-ink); }
.fine { font-size: 12.5px; color: var(--ink-3); text-align: center; }
.sx-intro { display: grid; gap: 16px; justify-items: center; text-align: center; padding: 30px 22px; }
.sx-signs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; width: 100%; margin: 6px 0; }
.sign { padding: 12px; border-radius: 16px; background: var(--soft); text-align: left; animation: rise .6s var(--spring) both; animation-delay: calc(var(--i) * 80ms); }
.sign b { display: block; color: var(--c-ink); font-size: 14px; }
.sign span { font-size: 12.5px; color: var(--ink-2); }

/* ---------- Heat map ---------- */
.watch-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .watch-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; } }
.map { height: 460px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: var(--surface-2); }
@media (max-width: 899px) { .map { height: 340px; } }
.map .leaflet-container { font-family: var(--font); background: var(--surface-2); }
.pin { --s: 16px; display: block; width: var(--s); height: var(--s); border-radius: 50%; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); position: relative; animation: popIn .6s var(--spring-bouncy) both; animation-delay: calc(var(--i) * 25ms); }
.pin.hot::before { content: ''; position: absolute; inset: -2.5px; border-radius: 50%; background: var(--c); animation: ping 2.2s var(--ease-out) infinite; }
.pin-wrap { background: none !important; border: 0 !important; }
.leaflet-popup-content-wrapper { border-radius: 16px !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 13.5px; line-height: 1.4; }
.pop-t { font-weight: 800; font-size: 15px; }
.pop .btn { min-height: 34px; padding: 0 12px; font-size: 13px; margin-top: 8px; color: #fff !important; }
.rank { display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border-radius: 14px; transition: background-color .2s, transform .3s var(--spring); }
.rank-row:hover { background: var(--surface-2); transform: translateX(3px); }
.rank-n { font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.rank-city { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.rank-city small { display: block; font-weight: 550; color: var(--ink-3); font-size: 12px; }
.rank-meta { display: grid; justify-items: end; gap: 2px; font-size: 12.5px; font-weight: 700; }

/* ---------- Learn ---------- */
.learn-hero { padding: 30px 26px; border-radius: var(--r-xl); color: #fff; background: linear-gradient(140deg, #26140d, #5b1f12 45%, #b8361a 85%, #f97316); overflow: hidden; position: relative; isolation: isolate; }
.learn-hero h1 { font-size: clamp(26px, 4.6vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 20ch; margin-top: 8px; }
.learn-hero p { margin-top: 14px; max-width: 62ch; opacity: .9; font-size: 16px; }
.learn-hero .kicker { color: #fdba74; }
.learn-hero .hero-art { opacity: .5; top: -60px; right: -60px; width: 280px; height: 280px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-big { padding: 18px; }
.stat-big .n { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1; background: linear-gradient(135deg, var(--brand-2), var(--brand) 55%, #e11d48); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-big .u { font-size: 16px; font-weight: 800; color: var(--brand-ink); }
.stat-big p { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); line-height: 1.35; }
.stat-big small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.how { display: grid; gap: 12px; position: relative; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how-step { position: relative; padding: 18px; }
.how-n { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); margin-bottom: 12px; box-shadow: 0 10px 20px -10px rgba(255, 90, 31, .8); }
.how-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.how-step p { font-size: 14px; color: var(--ink-2); }
.flow-line { display: none; }
@media (min-width: 900px) {
  .flow-line { display: block; position: absolute; left: 6%; right: 6%; top: 38px; height: 2px; z-index: 0; overflow: hidden; }
  .flow-line i { position: absolute; inset: 0; width: 200%; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 16px); animation: flow 2.4s linear infinite; }
  .how-step { z-index: 1; }
}
@keyframes flow { to { transform: translate3d(-16px, 0, 0); } }
details.science { padding: 0; overflow: hidden; }
details.science summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-weight: 750; font-size: 16px; }
details.science summary::-webkit-details-marker { display: none; }
details.science summary .ic { transition: transform .4s var(--spring); }
details.science[open] summary .ic { transform: rotate(180deg); }
.science-body { padding: 0 20px 20px; display: grid; gap: 12px; font-size: 14.5px; color: var(--ink-2); animation: swapIn .4s var(--ease-out); }
.science-body code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.science-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.science-body th, .science-body td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.science-body th { color: var(--ink); }
.sources { display: grid; gap: 8px; font-size: 14px; padding-left: 18px; margin: 0; }
.sources li::marker { color: var(--brand); }

/* ---------- Share & poster ---------- */
.share-btns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.share-preview { padding: 14px; border-radius: 16px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); margin: 4px 0 16px; border: 1px dashed var(--line-2); white-space: pre-wrap; }
.wa { background: #25d366; color: #fff; }
.print-root { display: none; }
.poster { width: 186mm; margin: 0 auto; color: #111; font-family: var(--font); }
.poster-top { padding: 10mm 10mm 8mm; border-radius: 6mm; color: #fff; background: var(--g); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.poster-top.lv1 { color: #2d2100; }
.poster h1 { font-size: 30pt; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.poster .p-meta { font-size: 13pt; font-weight: 600; margin-top: 2mm; opacity: .9; }
.poster .p-level { font-size: 40pt; font-weight: 800; margin-top: 5mm; line-height: 1; }
.p-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4mm; margin-top: 5mm; }
.p-tile { border: 1.2mm solid #111; border-radius: 5mm; padding: 5mm 4mm; text-align: center; }
.p-tile svg { width: 22mm; height: 22mm; margin: 0 auto 3mm; }
.p-tile b { display: block; font-size: 15pt; line-height: 1.2; }
.p-signs { margin-top: 5mm; padding: 5mm; border-radius: 5mm; background: #fee2e2; color: #7f1d1d; font-size: 14pt; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; display: flex; gap: 4mm; align-items: center; }
.p-signs svg { width: 16mm; height: 16mm; flex: none; }
.p-foot { margin-top: 4mm; font-size: 10pt; color: #555; text-align: center; }
@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; animation-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- View transitions ---------- */
/* The header stays live (no crossfade), so the nav pill visibly slides. */
::view-transition-old(topbar), ::view-transition-old(nav) { display: none; }
::view-transition-new(topbar), ::view-transition-new(nav) { animation: none; }
::view-transition-old(root) { animation: vtOut .22s var(--ease-in-out) both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: translate3d(0, -6px, 0); } }
@keyframes vtIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
html[data-vt="left"]::view-transition-new(root) { animation-name: vtInLeft; }
html[data-vt="right"]::view-transition-new(root) { animation-name: vtInRight; }
@keyframes vtInLeft { from { opacity: 0; transform: translate3d(24px, 0, 0); } }
@keyframes vtInRight { from { opacity: 0; transform: translate3d(-24px, 0, 0); } }
