/*! ishanbhagawati.in v2.0.0 — https://ishanbhagawati.in
 * Copyright 2026 Ishan Bhagawati. MIT licensed.
 */
@charset "UTF-8";
/* Design tokens — transcribed from the Claude Design canvas.
   Only values that recur are tokenised; one-off literals stay inline in the
   rule that uses them, so the stylesheet stays diffable against the artboard. */
:root {
  /* Brand */
  --ib-accent: #e0512d;
  --ib-accent-deep: #b23c1c;
  --ib-gold: #d49a3a;
  --ib-gold-soft: #e9c97e;
  --ib-green: #5cc28d;
  --ib-green-dot: #41c684;
  /* Dark surfaces */
  --ib-ink: #15120c;
  --ib-ink-2: #1c1810;
  --ib-ink-3: #100d08;
  /* Light surfaces */
  --ib-paper: #f4f0e6;
  --ib-paper-2: #ece5d6;
  --ib-paper-3: #fbf8f0;
  /* Text on light */
  --ib-text: #221d14;
  --ib-text-2: #3f382c;
  --ib-text-3: #5e5648;
  --ib-text-muted: #6b6353; /* design #8a8170 — darkened for WCAG AA (4.74:1 on #ece5d6) */
  --ib-text-meta: #706653; /* design #a1957c — darkened for WCAG AA (4.51:1 on #ece5d6) */
  /* Text on dark */
  --ib-ondark: #f4f0e6;
  --ib-ondark-2: #cabfa8;
  --ib-ondark-3: #b3a890;
  --ib-ondark-4: #a99f8c;
  --ib-ondark-menu: #e9e1cf;
  --ib-ondark-muted: #8a8170;
  --ib-ondark-faint: #8a816d; /* design #7e745f — lightened for WCAG AA (4.58:1 on #1c1810) */
  /* Hairlines */
  --ib-rule: #ddd4c0;
  --ib-rule-2: #cfc4ad;
  --ib-rule-dark: rgba(244, 240, 230, 0.14);
  --ib-rule-dark-soft: rgba(244, 240, 230, 0.16);
  /* Rhythm */
  --ib-maxw: 1240px;
  --ib-gutter: 40px;
  --ib-sec-y: 112px;
  --ib-spine-col: 300px;
  --ib-spine-gap: 56px;
  --ib-radius: 2px;
  --ib-header-h: 72px;
  /* Type */
  --ib-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ib-sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ib-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Self-hosted fonts. Latin + Latin Extended subsets only; anything outside
   those ranges falls back per-glyph to the stack in --ib-sans/serif/mono. */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Assamese script for her name and the title line (পোহৰ আৰু জীউ যাত্ৰা):
   Noto Serif Bengali (OFL, see assets/fonts/OFL-noto-serif-bengali.txt),
   subset to the title's glyphs with its shaping features kept. */
@font-face {
  font-family: "Noto Serif Bengali";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/noto-serif-bengali-assamese.woff2") format("woff2");
  unicode-range: U+0980-09FF;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body.ls {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.ls {
  --ls-fg: var(--ib-ink);
  --ls-fg-2: rgba(21, 18, 12, 0.7);
  --ls-faint: rgba(21, 18, 12, 0.16);
  --ls-card: #fbf8f0;
  --ls-card-line: rgba(21, 18, 12, 0.12);
  position: fixed;
  inset: 0;
  background: var(--ib-ink);
  color: var(--ls-fg);
  font-family: var(--ib-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
}
body.ls.is-dusk {
  --ls-fg: var(--ib-ondark);
  --ls-fg-2: rgba(244, 240, 230, 0.8);
  --ls-faint: rgba(244, 240, 230, 0.26);
}
body.ls a {
  color: inherit;
}
body.ls :focus-visible {
  outline: 2px solid var(--ib-accent);
  outline-offset: 3px;
}
body.ls [hidden] {
  display: none !important;
}
body.ls button {
  font-family: inherit;
}

.ls-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

body[data-mode=title] .ls-canvas {
  cursor: grab;
}

.ls-canvas.is-under {
  opacity: 0;
}

.ls-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* ── Shared bits ─────────────────────────────────────────── */
.ls-eyebrow {
  font-family: var(--ib-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ib-accent-deep);
}

.ls-meta {
  font-family: var(--ib-mono);
  font-size: 12px;
  color: var(--ib-text-muted);
}
.ls-meta:empty {
  display: none;
}

.ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border: 1.5px solid var(--ib-ink);
  border-radius: var(--ib-radius);
  background: transparent;
  color: var(--ib-ink);
  font: 600 16px/1 var(--ib-sans);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s, border-color 0.15s;
}
.ls-btn:active {
  transform: translateY(1px);
}
.ls-btn kbd {
  font: 500 11px/1 var(--ib-mono);
  padding: 4px 6px;
  border: 1px solid currentColor;
  border-radius: var(--ib-radius);
  opacity: 0.6;
}
.ls-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ls-btn-ink {
  background: var(--ib-ink);
  border-color: var(--ib-ink);
  color: var(--ib-paper);
}
.ls-btn-ink:hover {
  background: var(--ib-accent-deep);
  border-color: var(--ib-accent-deep);
}

.ls-btn-ghost {
  background: rgba(251, 248, 240, 0.35);
}
.ls-btn-ghost:hover {
  background: var(--ib-ink);
  color: var(--ib-paper);
}

.ls-btn-sm {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.ls-sun-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ib-accent);
}

.ls-link {
  background: none;
  border: 0;
  padding: 12px 0;
  font: 600 15px/1 var(--ib-sans);
  color: var(--ib-accent-deep);
  cursor: pointer;
}
.ls-link:hover {
  color: var(--ib-ink);
}

.ls-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 12px;
  border-radius: 17px;
  background: rgba(21, 18, 12, 0.84);
  color: var(--ib-ondark);
  font: 600 13px/1 var(--ib-sans);
  white-space: nowrap;
}
.ls-chip b {
  font: 500 13px/1 var(--ib-mono);
  color: var(--ib-gold-soft);
}
.ls-chip svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.ls-streak svg {
  width: 30px;
  height: 12px;
  fill: var(--ib-gold);
}

.ls-glints {
  background: none;
  color: var(--ls-fg);
  padding: 0 6px;
}
.ls-glints svg {
  fill: var(--ib-gold);
}
.ls-glints b {
  font-size: 17px;
  color: var(--ls-fg);
}

.ls-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(244, 240, 230, 0.16);
  overflow: hidden;
}
.ls-bar i {
  display: block;
  height: 100%;
  background: var(--ib-gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.3s;
}

.ls-next {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ls-next-label {
  font-family: var(--ib-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ls-next-note {
  font-family: var(--ib-mono);
  font-size: 12px;
}

/* ── Top chrome ──────────────────────────────────────────── */
.ls-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  padding: max(14px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  pointer-events: none;
  color: var(--ls-fg);
  transition: color 0.6s;
}
.ls-top > * {
  pointer-events: none;
}
.ls-top a,
.ls-top button {
  pointer-events: auto;
}

.ls-top-left,
.ls-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.ls-top-left {
  justify-self: start;
  flex-wrap: wrap;
}

.ls-top-right {
  justify-self: end;
}

.ls-home {
  white-space: nowrap;
  font-family: var(--ib-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ls-fg-2) !important;
  text-decoration: none;
  padding: 12px 0;
}
.ls-home:hover {
  color: var(--ls-fg) !important;
}

.ls-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ls-fg-2);
  cursor: pointer;
}
.ls-icon:hover {
  color: var(--ls-fg);
}
.ls-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ls-icon .ls-speaker {
  fill: currentColor;
  stroke: none;
}
.ls-icon .ls-waves {
  display: none;
}
.ls-icon[aria-pressed=true] .ls-waves {
  display: inline;
}
.ls-icon[aria-pressed=true] .ls-mute {
  display: none;
}

#ls-pause-btn svg {
  stroke-width: 2.4;
}

.ls-hud {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.ls-dist-big {
  font-family: var(--ib-serif);
  font-size: 56px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ls-fg);
}
.ls-dist-big small {
  font-family: var(--ib-mono);
  font-size: 14px;
  color: var(--ls-fg-2);
}

.ls-gauge {
  width: 88px;
  height: 80px;
  overflow: visible;
}
.ls-gauge .ls-gauge-horizon {
  stroke: var(--ls-faint);
  stroke-width: 1;
}
.ls-gauge .ls-gauge-track {
  fill: none;
  stroke: var(--ls-faint);
  stroke-width: 1.2;
  stroke-dasharray: 1.5 2.5;
}
.ls-gauge .ls-gauge-fill {
  fill: none;
  stroke: var(--ib-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.2s linear;
}
.ls-gauge .ls-gauge-sun {
  fill: var(--ib-gold-soft);
  stroke: var(--ib-gold);
  stroke-width: 0.8;
}

.ls-gauge-label {
  margin-top: -14px;
  font-family: var(--ib-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ls-fg-2);
}
.ls-gauge-label b {
  font-weight: 500;
}

body:not([data-mode=play]):not([data-mode=paused]) .ls-hud,
body:not([data-mode=play]):not([data-mode=paused]) .ls-glints,
body:not([data-mode=play]):not([data-mode=paused]) .ls-streak,
body:not([data-mode=play]):not([data-mode=paused]) #ls-pause-btn,
body:not([data-mode=play]):not([data-mode=paused]) .ls-lower {
  visibility: hidden;
}

body[data-mode=play] .ls-home,
body[data-mode=paused] .ls-home {
  display: none;
}

.ls-zone-line {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 108px;
  text-align: center;
  font-family: var(--ib-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ls-fg-2);
  pointer-events: none;
}

.ls-zone-banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 26%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ls-fg);
  pointer-events: none;
  opacity: 0;
}
.ls-zone-banner small {
  font-family: var(--ib-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ls-fg-2);
}
.ls-zone-banner span {
  font-family: var(--ib-serif);
  font-style: italic;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
}
.ls-zone-banner::after {
  content: "";
  width: 48px;
  height: 1px;
  margin-top: 6px;
  background: var(--ls-fg-2);
}
.ls-zone-banner.is-in {
  animation: ls-banner 2.6s ease both;
}

@keyframes ls-banner {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  15%, 75% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.ls-pops {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ls-pop,
.ls-pill {
  position: absolute;
  left: 0;
  top: 0;
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  background: rgba(21, 18, 12, 0.86);
  color: var(--ib-gold-soft);
  font: 500 11px/1 var(--ib-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform;
  pointer-events: none;
}

.ls-pop {
  margin-left: -40px;
  opacity: 0;
}
.ls-pop.is-on {
  animation: ls-pop 1s ease-out both;
}
.ls-pop.is-stage {
  height: 28px;
  padding: 0 12px;
  margin-left: -50px;
  font: italic 15px/1 var(--ib-serif);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ib-ondark);
}
.ls-pop.is-stage.is-on {
  animation-duration: 1.6s;
}

@keyframes ls-pop {
  0% {
    opacity: 0;
    margin-top: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    margin-top: -28px;
  }
}
.ls-pill {
  margin-left: -44px;
  color: var(--ib-ondark);
}
.ls-pill b {
  font-weight: 500;
  margin: 0 0.3em;
}

.ls-pill-accent {
  position: static;
  margin: 0;
  height: 26px;
  padding: 0 10px;
  border-radius: 13px;
  background: var(--ib-accent-deep);
  color: #fbf8f0;
  font: 600 12px/1 var(--ib-sans);
  letter-spacing: 0.04em;
  text-transform: none;
}

.ls-sun-label {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  margin-left: -80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--ib-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(21, 18, 12, 0.72);
  pointer-events: none;
  will-change: transform;
}
.ls-sun-label svg {
  width: 76px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Title ───────────────────────────────────────────────── */
.ls-title {
  position: absolute;
  left: max(48px, env(safe-area-inset-left));
  top: 96px;
  width: min(680px, 100% - 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ib-ink);
  animation: ls-rise 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ls-title .ls-eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: #8f2f15;
}

.ls-wordmark {
  margin: 10px 0 0;
  font-family: var(--ib-serif);
  font-weight: 400;
  font-size: clamp(56px, 8.5vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.015em;
}
.ls-wordmark em {
  font-style: italic;
}

.ls-wordmark-as {
  margin: 10px 0 0;
  font-family: "Noto Serif Bengali", "Bangla MN", "Kohinoor Bangla", "Nirmala UI", serif;
  font-size: clamp(18px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ls-fg-2);
}

.ls-objective {
  display: block;
  margin-top: 3px;
  font-family: var(--ib-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ls-fg-2);
  white-space: nowrap;
}

.ls-lede {
  margin-top: 22px;
  max-width: 520px;
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ib-text-2);
  text-wrap: balance;
}
.ls-lede strong {
  color: var(--ib-ink);
  font-weight: 700;
}

.ls-title-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.ls-title-actions .ls-btn {
  height: 58px;
}
.ls-title-actions .ls-btn-ghost {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.ls-title-actions .ls-btn-title {
  font: 600 16px/1 var(--ib-sans);
}
.ls-title-actions .ls-btn-sub {
  font: 500 11px/1 var(--ib-mono);
  opacity: 0.75;
}

.ls-keys {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ib-text-3);
}
.ls-keys kbd {
  font: 500 11px/1 var(--ib-mono);
  padding: 2px 5px;
  border: 1px solid var(--ib-rule-2);
  border-radius: var(--ib-radius);
  background: var(--ib-paper-3);
}

.ls-coarse-pointer {
  display: none;
}

@media (pointer: coarse) {
  .ls-fine-pointer {
    display: none;
  }
  .ls-coarse-pointer {
    display: inline;
  }
}
.ls-stats-strip {
  position: fixed;
  left: max(48px, env(safe-area-inset-left));
  right: max(48px, env(safe-area-inset-right));
  bottom: max(44px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 44px;
  color: var(--ib-ondark);
}
.ls-stats-strip dl {
  display: flex;
  gap: 44px;
}
.ls-stats-strip dt,
.ls-stats-strip .ls-next-label {
  font-family: var(--ib-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ib-ondark-4);
}
.ls-stats-strip dd {
  margin-top: 6px;
  font-family: var(--ib-serif);
  font-size: 34px;
  line-height: 1;
}
.ls-stats-strip dd small {
  font-size: 18px;
  color: var(--ib-ondark-4);
}
.ls-stats-strip .ls-next {
  width: 250px;
  gap: 10px;
}
.ls-stats-strip .ls-next-note {
  color: var(--ib-ondark-2);
}

/* ── Coaching (first run) ────────────────────────────────── */
.ls-coach {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: var(--ib-ink);
}
.ls-coach > * {
  pointer-events: auto;
}

.ls-steps {
  position: absolute;
  left: 50%;
  top: max(150px, env(safe-area-inset-top) + 138px);
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  list-style: none;
}
.ls-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 16px;
  border: 1px solid rgba(21, 18, 12, 0.22);
  font: 500 12px/1 var(--ib-mono);
  color: var(--ib-text-3);
  white-space: nowrap;
}
.ls-steps li i {
  width: 16px;
  height: 16px;
  border-radius: 8px;
  border: 1px solid rgba(21, 18, 12, 0.35);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}

.ls-coach[data-step="2"] li[data-step="1"],
.ls-coach[data-step="3"] li[data-step="1"],
.ls-coach[data-step="3"] li[data-step="2"] {
  border-color: transparent;
  background: rgba(21, 18, 12, 0.08);
}
.ls-coach[data-step="2"] li[data-step="1"] i,
.ls-coach[data-step="3"] li[data-step="1"] i,
.ls-coach[data-step="3"] li[data-step="2"] i {
  border-color: transparent;
  background: var(--ib-green-dot);
  color: var(--ib-ink);
}

.ls-coach[data-step="1"] li[data-step="1"],
.ls-coach[data-step="2"] li[data-step="2"],
.ls-coach[data-step="3"] li[data-step="3"] {
  background: var(--ib-ink);
  border-color: var(--ib-ink);
  color: var(--ib-ondark);
}
.ls-coach[data-step="1"] li[data-step="1"] i,
.ls-coach[data-step="2"] li[data-step="2"] i,
.ls-coach[data-step="3"] li[data-step="3"] i {
  border-color: transparent;
  background: var(--ib-accent);
  color: var(--ib-ink);
}

.ls-slowmo {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  top: max(150px, env(safe-area-inset-top) + 138px);
  height: 32px;
  background: rgba(251, 248, 240, 0.72);
  border: 1px solid rgba(21, 18, 12, 0.14);
  color: var(--ib-text-2);
  font: 500 12px/1 var(--ib-mono);
}
.ls-slowmo svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ib-accent-deep);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.ls-coach-card {
  position: absolute;
  left: max(20px, env(safe-area-inset-left));
  top: max(150px, env(safe-area-inset-top) + 138px);
  width: min(400px, 100% - 40px);
  padding: 20px 22px 18px;
  background: var(--ls-card);
  border: 1px solid var(--ls-card-line);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(21, 18, 12, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: ls-rise 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.ls-coach-card .ls-btn {
  align-self: flex-start;
  margin-top: 6px;
}

.ls-coach-copy {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ib-text-2);
}

/* ── Cards: postcard and pause ───────────────────────────── */
.ls-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  width: min(440px, 100% - 32px);
  padding: 30px 28px 24px;
  text-align: center;
  color: var(--ib-ink);
  background: var(--ls-card);
  border: 1px solid var(--ls-card-line);
  border-radius: 4px;
  box-shadow: 0 40px 100px rgba(10, 8, 5, 0.45);
  animation: ls-rise 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#ls-pause .ls-btn {
  margin-top: 16px;
}

#ls-pause .ls-btn-sm {
  margin-left: 10px;
}

.ls-postcard {
  width: min(600px, 100% - 32px);
  max-height: calc(100% - 32px);
  overflow-y: auto;
  padding: 28px 32px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ls-pc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.ls-pc-head > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ls-sentence {
  font-size: 15px;
  color: var(--ib-text-3);
}

.ls-stamp {
  flex: none;
  width: 70px;
  height: 82px;
  padding: 6px;
  border: 1.5px dashed rgba(21, 18, 12, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transform: rotate(3deg);
}
.ls-stamp svg {
  width: 54px;
  height: 44px;
  display: block;
}
.ls-stamp span {
  font: 500 9px/1 var(--ib-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ib-text-2);
}

.ls-pc-dist {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: -10px;
}

.ls-final {
  font-family: var(--ib-serif);
  font-size: 104px;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.ls-final small {
  font-size: 30px;
  color: var(--ib-text-muted);
}

.ls-pc-delta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 8px;
}

.ls-route-fig {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ls-route {
  background: var(--ib-paper-2);
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
}
.ls-route svg {
  width: 100%;
  height: auto;
  display: block;
}

.ls-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font: 500 11px/1 var(--ib-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ib-text-3);
}
.ls-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ls-legend i {
  display: inline-block;
}
.ls-legend .ls-lg-walk {
  width: 14px;
  height: 3px;
  background: var(--ib-accent);
}
.ls-legend .ls-lg-bridge {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: var(--ib-gold);
}
.ls-legend .ls-lg-glint {
  width: 7px;
  height: 7px;
  border-radius: 4px;
  background: var(--ib-gold);
}

.ls-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--ib-rule);
  border-bottom: 1px solid var(--ib-rule);
}
.ls-stats dt {
  font: 500 11px/1 var(--ib-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ib-text-muted);
}
.ls-stats dd {
  margin-top: 6px;
  font-family: var(--ib-serif);
  font-size: 30px;
  line-height: 1;
}
.ls-stats dd small {
  font-size: 16px;
  color: var(--ib-text-muted);
}
.ls-stats .ls-st-text {
  font-size: 24px;
  font-style: italic;
  padding-top: 4px;
}

.ls-pc-next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 12px;
}
.ls-pc-next .ls-next-label {
  font: 600 14px/1 var(--ib-sans);
  letter-spacing: 0;
  text-transform: none;
}
.ls-pc-next .ls-bar {
  background: var(--ib-paper-2);
  height: 5px;
}
.ls-pc-next .ls-next-note {
  color: var(--ib-text-3);
}
.ls-pc-next .ls-bar {
  grid-column: 1/-1;
}

.ls-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ls-actions .ls-link {
  margin-left: auto;
}

.ls-foot {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  font-family: var(--ib-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244, 240, 230, 0.55);
  pointer-events: none;
}
.ls-foot a {
  pointer-events: auto;
  color: rgba(244, 240, 230, 0.8);
}

body[data-mode=play] .ls-foot,
body[data-mode=paused] .ls-foot {
  display: none;
}

.ls-noscript {
  position: absolute;
  inset: 40% 16px auto;
  text-align: center;
  color: var(--ib-ondark);
}

/* ── Portrait: the lower half is ground, so the dashboard lives there ── */
.ls-lower {
  display: none;
}

@keyframes ls-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes ls-rise-docked {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}
@media (max-aspect-ratio: 3/4) {
  .ls-top {
    grid-template-columns: auto 1fr auto;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .ls-top-left .ls-streak,
  .ls-top-right .ls-glints,
  .ls-gauge,
  .ls-objective {
    display: none;
  }
  .ls-gauge-label {
    display: none;
  }
  .ls-dist-big {
    font-size: 44px;
  }
  .ls-zone-line {
    display: block;
  }
  .ls-zone-banner {
    display: none;
  }
  .ls-lower {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(24px, env(safe-area-inset-bottom));
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--ib-ondark);
    pointer-events: none;
  }
  .ls-dial {
    width: min(358px, 100%);
    height: auto;
    overflow: visible;
  }
  .ls-dial .ls-dial-horizon {
    stroke: rgba(244, 240, 230, 0.18);
    stroke-width: 1.5;
  }
  .ls-dial .ls-dial-arc {
    fill: none;
    stroke: rgba(244, 240, 230, 0.28);
    stroke-width: 1.5;
    stroke-dasharray: 3 6;
  }
  .ls-dial .ls-dial-thumb {
    fill: #f5c78a;
    stroke: rgba(239, 170, 75, 0.35);
    stroke-width: 12;
  }
  .ls-dial-label {
    font-family: var(--ib-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ib-ondark-4);
  }
  .ls-lower-row {
    width: min(358px, 100%);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  .ls-lower-row .ls-glints {
    color: var(--ib-ondark);
  }
  .ls-lower-row .ls-glints b {
    color: var(--ib-ondark);
  }
  .ls-lower-row .ls-streak {
    height: 30px;
    padding: 0 10px;
    background: none;
    border: 1px solid rgba(233, 201, 126, 0.4);
  }
  .ls-lower-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .ls-lower-day span {
    font: 500 10px/1 var(--ib-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ib-ondark-4);
  }
  .ls-title {
    left: 20px;
    top: max(72px, env(safe-area-inset-top) + 60px);
    bottom: 0;
    width: calc(100% - 40px);
    display: block;
  }
  .ls-wordmark {
    font-size: clamp(48px, 15vw, 64px);
  }
  .ls-lede {
    margin-top: 14px;
    font-size: 16px;
    max-width: 78%;
  }
  .ls-title-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: 55%;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
  }
  .ls-title-actions .ls-btn {
    height: 54px;
  }
  .ls-title-actions .ls-btn-ink {
    background: var(--ib-paper);
    border-color: var(--ib-paper);
    color: var(--ib-ink);
  }
  .ls-title-actions .ls-btn-ink kbd {
    opacity: 0.55;
  }
  .ls-title-actions .ls-btn-ghost {
    background: none;
    border-color: rgba(244, 240, 230, 0.5);
    color: var(--ib-ondark);
  }
  .ls-keys {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(55% + 134px);
    margin: 0;
    color: var(--ib-ondark-3);
    font-size: 13px;
  }
  .ls-sun-label {
    display: none;
  }
  .ls-stats-strip {
    left: 20px;
    right: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    gap: 14px;
  }
  .ls-stats-strip dl {
    gap: 28px;
  }
  .ls-stats-strip dd {
    font-size: 24px;
  }
  .ls-stats-strip .ls-next {
    width: 100%;
    gap: 6px;
  }
  .ls-steps {
    top: max(128px, env(safe-area-inset-top) + 116px);
    flex-wrap: wrap;
    justify-content: center;
    width: calc(100% - 24px);
  }
  .ls-slowmo {
    top: max(210px, env(safe-area-inset-top) + 198px);
    right: 50%;
    transform: translateX(50%);
  }
  .ls-coach-card {
    left: 16px;
    top: auto;
    bottom: 200px;
    width: calc(100% - 32px);
  }
  .ls-card {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
    border-radius: 12px 12px 0 0;
    border-bottom: 0;
    animation-name: ls-sheet;
  }
  #ls-pause {
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(440px, 100% - 32px);
    transform: translateX(-50%);
    border-radius: 4px;
    animation-name: ls-rise-docked;
  }
  .ls-postcard {
    max-height: 82dvh;
    padding: 22px 20px max(20px, env(safe-area-inset-bottom));
    gap: 14px;
  }
  .ls-final {
    font-size: 84px;
  }
  .ls-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }
  .ls-stats > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .ls-stats dd {
    margin-top: 0;
    font-size: 24px;
  }
  .ls-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ls-actions .ls-link {
    margin-left: 0;
  }
  .ls-foot {
    display: none;
  }
}
@keyframes ls-sheet {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@media (max-width: 520px) {
  .ls-home-text {
    display: none;
  }
  .ls-lede br {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ls-card,
  .ls-title,
  .ls-coach-card {
    animation: none;
  }
  .ls-top,
  .ls-bar i,
  .ls-gauge-fill {
    transition: none;
  }
  .ls-zone-banner.is-in {
    animation: none;
    opacity: 1;
  }
  .ls-pop.is-on {
    animation: none;
    opacity: 1;
  }
}
@media (max-aspect-ratio: 3/4) and (max-height: 700px) {
  .ls-stats-strip .ls-next {
    display: none;
  }
}
.ls-pop.is-food {
  height: auto;
  padding: 5px 12px;
  margin-left: -60px;
  font: 400 19px/1.3 "Noto Serif Bengali", "Bangla MN", "Kohinoor Bangla", "Nirmala UI", serif;
  letter-spacing: 0;
  text-transform: none;
}

.ls-pop.is-food.is-on {
  animation-duration: 2.2s;
}