/* Layout: a hand-painted truck panel, tuned for an iPhone held in one hand (402pt wide).
   Hero with a highway milestone, then stacked panels separated by painted bands; the Jibhi
   plan is a swipeable row on phones and a grid on wider screens. */
:root {
  /* palette */
  --paper: #fff3f6;        /* rose-tinted page */
  --panel: #ffe4ec;        /* raised surfaces */
  --ink: #2b0f2e;          /* aubergine text */
  --ink-soft: #6a4a6d;
  --rani: #d6246e;         /* rani pink accent */
  --marigold: #f2a007;
  --peacock: #0f7c78;
  --line: #ecc4d4;
  --on-rani: #fff8fb;
  --road: #3d2a44;
  --shadow: rgba(43, 15, 46, 0.16);

  /* painted scenes: same colours in both themes, like a painting */
  --s-dusk: #ffb8a6;
  --s-gold: #ffc93c;
  --s-rani: #e63e7a;
  --s-sea: #1a9c96;
  --s-turq: #35c2b4;
  --s-water: #e6f7f6;
  --s-sky: #bfe3f2;
  --s-cloud: #ffffff;
  --s-hill: #2e8b6e;
  --s-hill2: #1f6b55;
  --s-pine: #174d3f;
  --s-snow: #ffffff;
  --s-snow2: #eef0ff;
  --s-rock: #8a64a0;
  --s-rock2: #5b3f70;
  --s-greystone: #b9ada3;
  --s-slate: #5f5a72;
  --s-night: #2b1d4e;
  --s-wood: #8b4a2b;
  --s-wood2: #b8693a;
  --s-cream: #fff4e0;
  --s-morning: #ffe6a8;
  --s-mint: #bdebdc;
  --s-road: #3d2a44;
  --s-ink: #2b0f2e;

  /* the milestone and the ticket are white-washed / printed in both themes */
  --stone: #fbf7f0;
  --stone-ink: #2b0f2e;
  --stamp-red: #c41e5f;
  --ticket-label: #7a5f7d;
  --ticket-rule: #e2d4cc;
  --ticket-ok: #0f7c78;
  --ticket-stub: #ffc23d;

  /* type */
  --font-display: "Yatra One", "Rozha One", Georgia, serif;
  --font-body: "Mukta", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-hand: "Kalam", "Segoe Print", "Comic Sans MS", cursive;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 5.5vw + 0.4rem, 3rem);
  --step-4: clamp(3rem, 12.5vw, 6.4rem);

  --gutter: clamp(16px, 5vw, 40px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --radius: 18px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b0c1f;
    --panel: #2a1430;
    --ink: #fbeaf1;
    --ink-soft: #cdb0c9;
    --rani: #ff5c98;
    --marigold: #ffc23d;
    --peacock: #3fc7b9;
    --line: #4a2a4f;
    --on-rani: #1b0c1f;
    --road: #5a4663;
    --shadow: rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b0c1f;
  --panel: #2a1430;
  --ink: #fbeaf1;
  --ink-soft: #cdb0c9;
  --rani: #ff5c98;
  --marigold: #ffc23d;
  --peacock: #3fc7b9;
  --line: #4a2a4f;
  --on-rani: #1b0c1f;
  --road: #5a4663;
  --shadow: rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-tap-highlight-color: transparent;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rani);
}
.eyebrow__dot { color: var(--marigold); margin-inline: 0.35em; }

/* ---------- painted bands ---------- */
/* jhalar: the fringe that hangs off a truck's front panel */
.jhalar {
  height: calc(30px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background:
    linear-gradient(var(--rani), var(--rani)) top / 100% calc(8px + env(safe-area-inset-top, 0px)) no-repeat,
    radial-gradient(circle at 50% 8px, var(--rani) 9px, transparent 9.5px) 0 env(safe-area-inset-top, 0px) / 26px 20px repeat-x,
    radial-gradient(circle at 50% 24px, var(--marigold) 4px, transparent 4.5px) 13px env(safe-area-inset-top, 0px) / 26px 30px repeat-x;
}
.jhalar--flip { transform: scaleY(-1); height: 30px; padding-top: 0; }
.jhalar--flip {
  background:
    linear-gradient(var(--rani), var(--rani)) top / 100% 8px no-repeat,
    radial-gradient(circle at 50% 8px, var(--rani) 9px, transparent 9.5px) 0 0 / 26px 20px repeat-x,
    radial-gradient(circle at 50% 24px, var(--marigold) 4px, transparent 4.5px) 13px 0 / 26px 30px repeat-x;
}

.band {
  height: 22px;
  margin-block: clamp(4px, 2vw, 16px);
  background:
    linear-gradient(135deg, var(--paper) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(225deg, var(--paper) 25%, transparent 25%) -11px 0 / 22px 22px,
    linear-gradient(315deg, var(--paper) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(45deg, var(--paper) 25%, transparent 25%) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--peacock) 0 33.3%, var(--marigold) 33.3% 66.6%, var(--rani) 66.6%);
  opacity: 0.9;
}

/* ---------- buttons ---------- */
.btn {
  --grow: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: calc(0.6em * var(--grow)) calc(1.3em * var(--grow));
  border-radius: 999px;
  border: 2px solid var(--rani);
  font: 700 calc(var(--step-0) * var(--grow)) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: transform 0.15s ease, background-color 0.15s ease, font-size 0.25s ease, padding 0.25s ease;
}
.btn:active { transform: translateY(1px) scale(0.97); }
.btn--primary {
  background: var(--rani);
  color: var(--on-rani);
  box-shadow: 0 4px 0 var(--ink);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.pill {
  min-height: 40px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--peacock);
  background: transparent;
  color: var(--peacock);
  font: 700 0.95rem/1 var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
}
.pill:active { transform: scale(0.97); }

.link-btn {
  min-height: 44px;
  background: none;
  border: 0;
  padding: 4px 8px;
  color: var(--ink-soft);
  font: inherit;
  font-size: var(--step--1);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (hover: hover) {
  .btn--primary:hover { background: color-mix(in srgb, var(--rani) 88%, var(--ink)); }
  .btn--ghost:hover { background: var(--panel); }
  .pill:hover { background: color-mix(in srgb, var(--peacock) 12%, transparent); }
  .spot:hover { transform: translateY(-3px); box-shadow: 0 12px 26px var(--shadow); }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
  padding-block: clamp(22px, 6vw, 72px) clamp(36px, 7vw, 88px);
}
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.05fr 1fr; }
}

.hero__copy { display: grid; gap: 18px; min-width: 0; }

.hero__title { display: grid; gap: 0.1em; font-weight: 400; }
.hero__dev {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.3;
  color: var(--peacock);
}
.hero__latin {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 0.98;
  color: var(--rani);
  text-shadow: 3px 3px 0 var(--marigold);
  letter-spacing: 0.01em;
}
.hero__lede { max-width: 34rem; font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

.hero__art { position: relative; padding: 14px 12px 34px; min-width: 0; }

.frame {
  position: relative;
  aspect-ratio: 6 / 5;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 7px solid var(--rani);
  box-shadow: 0 0 0 5px var(--marigold), 0 0 0 10px var(--peacock), 0 18px 40px var(--shadow);
}
.frame .scene { width: 100%; height: 100%; }

.photo {
  position: absolute;
  inset: 0;
  background: var(--photo, none) center / cover no-repeat;
}

.milestone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 108px;
  display: grid;
  justify-items: center;
  padding-bottom: 10px;
  background: var(--stone);
  color: var(--stone-ink);
  border-radius: 54px 54px 6px 6px;
  box-shadow: 0 10px 22px var(--shadow), inset 0 -6px 0 rgba(43, 15, 46, 0.08);
  transform: rotate(-5deg);
  text-align: center;
  overflow: hidden;
}
.milestone__cap {
  width: 100%;
  padding: 18px 0 6px;
  background: var(--marigold);
  color: var(--stone-ink);
  font: 600 0.8rem/1 var(--font-mono);
  letter-spacing: 0.08em;
}
.milestone__place {
  padding-top: 8px;
  font: 700 0.78rem/1 var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.milestone__km { font: 1.35rem/1.2 var(--font-display); color: var(--stamp-red); }
.milestone__unit { font: 600 0.72rem/1 var(--font-mono); }

/* ---------- panels ---------- */
.panel { padding-block: clamp(32px, 6vw, 72px); }
.panel__head { display: grid; gap: 8px; margin-bottom: clamp(20px, 4vw, 40px); max-width: 40rem; }
.panel__head--center { margin-inline: auto; text-align: center; justify-items: center; }
.panel__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1.1;
}
.panel__sub { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }

/* reasons */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.reason {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 20px 20px 20px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 2px dashed var(--line);
}
.reason::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 22px;
  width: 8px;
  height: 28px;
  border-radius: 0 6px 6px 0;
  background: var(--rani);
}
.reason:nth-child(4n + 2)::before { background: var(--marigold); }
.reason:nth-child(4n + 3)::before { background: var(--peacock); }
.reason:nth-child(4n + 4)::before { background: var(--marigold); }
.reason h3 { font-family: var(--font-display); font-weight: 400; font-size: var(--step-1); line-height: 1.25; }
.reason p { color: var(--ink-soft); }

/* ---------- Jibhi plan ---------- */
.plan-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.plan-bar__count { font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.plan-bar__count.is-on { color: var(--rani); }

.spots-set { border: 0; margin: 0; padding: 0; min-width: 0; }

.spots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 22rem);
  gap: 14px;
  margin-left: calc(-1 * var(--pad-l));
  margin-right: calc(-1 * var(--pad-r));
  padding: 6px var(--pad-r) 18px var(--pad-l);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--pad-l);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.spots::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .spots {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    overflow: visible;
    gap: 18px;
  }
}
@media (min-width: 1040px) {
  .spots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.spot {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  scroll-snap-align: start;
  border-radius: var(--radius);
  background: var(--panel);
  border: 3px solid transparent;
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}
.spot:active { transform: scale(0.985); }
.spot:has(input:focus-visible) { outline: 3px solid var(--marigold); outline-offset: 3px; }
.spot.is-picked {
  border-color: var(--rani);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rani) 25%, transparent), 0 12px 26px var(--shadow);
}

.spot__art { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; }
.spot__art .scene { width: 100%; height: 100%; }
.spot__body { display: grid; align-content: start; gap: 4px; padding: 14px 16px 18px; }
.spot__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.spot__line { color: var(--ink-soft); }
.spot__meta {
  margin-top: 6px;
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--peacock);
  color: var(--peacock);
  font: 600 0.8rem/1.6 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(27, 12, 31, 0.35);
  box-shadow: inset 0 0 0 3px var(--stone);
  transition: background-color 0.2s ease, transform 0.25s cubic-bezier(.3, 1.6, .5, 1);
}
.tick::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 8px;
  width: 9px;
  height: 17px;
  border: solid var(--stone);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.spot.is-picked .tick { background: var(--rani); transform: scale(1.08); }
.spot.is-picked .tick::after { opacity: 1; }

.dots { display: flex; justify-content: center; gap: 8px; padding-top: 2px; }
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  transition: width 0.25s ease, background-color 0.25s ease;
}
.dots span.is-picked { background: color-mix(in srgb, var(--rani) 45%, var(--line)); }
.dots span.is-current { width: 24px; background: var(--rani); }
@media (min-width: 760px) { .dots { display: none; } }

/* ---------- journey ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; max-width: 38rem; }
.route__stop {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 2px 0 28px 58px;
}
.route__stop:last-child { padding-bottom: 0; }
/* the road between stops */
.route__stop::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: -6px;
  width: 14px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(to bottom, var(--marigold) 0 9px, transparent 9px 17px) center / 2px 100% no-repeat,
    var(--road);
}
.route__stop:last-child::before { display: none; }
/* a little milestone at each stop */
.route__stop::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  width: 32px;
  height: 38px;
  border-radius: 16px 16px 4px 4px;
  background: linear-gradient(var(--marigold) 0 42%, var(--stone) 42%);
  box-shadow: 0 4px 10px var(--shadow);
}
.route__when { font: 1.35rem/1.2 var(--font-display); color: var(--rani); }
.route__stop p { color: var(--ink-soft); }

/* ---------- date: a tear-off wall calendar and a countdown ---------- */
.when {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 6vw, 48px);
  max-width: 40rem;
}
@media (max-width: 350px) { .when { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.calendar {
  position: relative;
  width: 10.5rem;
  display: grid;
  justify-items: center;
  padding: 34px 12px 14px;
  border-radius: 14px;
  background: var(--stone);
  color: var(--stone-ink);
  text-align: center;
  box-shadow: 0 14px 30px var(--shadow);
  transform: rotate(-2.5deg);
  overflow: hidden;
}
.calendar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 22px;
  background: var(--stamp-red);
}
.calendar__rings {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 64px;
}
.calendar__rings span {
  width: 10px;
  height: 24px;
  border-radius: 6px;
  background: var(--stone);
  box-shadow: inset 0 0 0 2px var(--ticket-label);
}
.calendar__month {
  font: 600 0.78rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stamp-red);
}
.calendar__day {
  font: 5.2rem/1 var(--font-display);
  color: var(--stamp-red);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.calendar__weekday { font: 700 1.15rem/1.4 var(--font-body); }
.calendar__range {
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 2px dashed var(--ticket-rule);
  font: 600 0.78rem/1.4 var(--font-mono);
  color: var(--ticket-label);
  font-variant-numeric: tabular-nums;
}

.countdown { display: grid; gap: 2px; min-width: 0; }
.countdown__num {
  font: clamp(3.6rem, 19vw, 5.6rem)/1 var(--font-display);
  color: var(--rani);
  text-shadow: 2px 2px 0 var(--marigold);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-weight: 700; font-size: var(--step-1); }
.countdown__note { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }

/* ---------- promises ---------- */
.contract {
  position: relative;
  max-width: 46rem;
  padding: clamp(22px, 5vw, 44px);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 16px 36px var(--shadow);
  transform: rotate(-0.6deg);
}
.contract .panel__head { margin-bottom: 18px; }
.promises {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  background: repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 36px);
}
.promises li {
  position: relative;
  padding-left: 34px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 36px;
}
.promises li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--peacock);
}
.promises li::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  width: 7px;
  height: 14px;
  border: solid var(--rani);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}
.signoff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}
.signature { font: 700 1.6rem/1.2 var(--font-hand); color: var(--rani); }
.stamp {
  padding: 10px 16px;
  border: 3px double var(--peacock);
  border-radius: 10px;
  color: var(--peacock);
  font: 600 0.85rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transform: rotate(-9deg);
  opacity: 0.85;
}

/* ---------- the question ---------- */
.panel--question { padding-bottom: clamp(44px, 8vw, 96px); }
.ask {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(26px, 6vw, 56px) clamp(14px, 4vw, 48px);
  border-radius: 28px;
  background: var(--panel);
  border: 3px solid var(--rani);
  text-align: center;
  overflow: hidden;
}
.ask::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px dashed var(--line);
  border-radius: 20px;
  pointer-events: none;
}
.ask > * { position: relative; }
.ask__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 9vw, 4rem);
  line-height: 1.08;
  color: var(--rani);
  max-width: 16ch;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  max-width: 34rem;
}
.summary div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  max-width: 100%;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line);
}
.summary dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.summary dd.is-empty { font-weight: 500; color: var(--ink-soft); }

.ask__actions {
  /* the runaway "Nahi" button roams inside this row, never over the question */
  position: relative;
  width: 100%;
  min-height: 230px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.btn--yes { position: relative; z-index: 2; white-space: nowrap; }
.btn--no { z-index: 3; white-space: nowrap; } /* keeps its size when it jumps near an edge */
.btn--no.is-loose {
  position: absolute;
  margin: 0;
  transition: left 0.28s cubic-bezier(.3, 1.4, .5, 1), top 0.28s cubic-bezier(.3, 1.4, .5, 1), background-color 0.15s ease;
}
.ask__hint, .ask__done { color: var(--ink-soft); font-size: var(--step--1); }
.ask__done { font-family: var(--font-hand); font-size: 1.25rem; color: var(--peacock); }

/* ---------- ticket ---------- */
.panel--ticket { padding-top: 8px; scroll-margin-top: calc(12px + env(safe-area-inset-top, 0px)); }
.ticket {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 44rem;
  margin-inline: auto;
  border-radius: 20px;
  background: var(--stone);
  color: var(--stone-ink);
  box-shadow: 0 22px 44px var(--shadow);
  overflow: hidden;
  font-family: var(--font-mono);
  animation: ticket-in 0.6s cubic-bezier(.3, 1.3, .5, 1) both;
}
@media (min-width: 640px) { .ticket { grid-template-columns: 1fr 11rem; } }
.ticket__main { display: grid; gap: 16px; padding: 20px clamp(16px, 4vw, 30px); min-width: 0; }
.ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__train { font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.ticket__train span { display: inline-block; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0; margin-left: 4px; color: var(--stamp-red); }
.ticket__status {
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--ticket-ok);
  color: var(--stone);
  font-weight: 600;
  letter-spacing: 0.12em;
}
.ticket__route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 10px; }
.ticket__route > div { display: grid; min-width: 0; }
.ticket__route > div:last-child { text-align: right; }
.ticket__label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ticket-label); }
.ticket__big { font-family: var(--font-display); font-size: clamp(1.35rem, 6vw, 1.9rem); line-height: 1.15; overflow-wrap: anywhere; }
.ticket__arrow { font-size: 1.6rem; color: var(--stamp-red); padding-bottom: 4px; }
.ticket__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
  padding-top: 14px;
  border-top: 2px dashed var(--ticket-rule);
}
.ticket__grid div { display: grid; align-content: start; gap: 2px; min-width: 0; }
.ticket__grid .ticket__wide { grid-column: 1 / -1; }
.ticket__grid dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ticket-label); }
.ticket__grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.ticket__stub {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 18px 16px;
  background: var(--ticket-stub);
  text-align: center;
  border-top: 3px dashed var(--stone);
}
@media (min-width: 640px) {
  .ticket__stub { border-top: 0; border-left: 3px dashed var(--stone); }
}
.ticket__pnr { white-space: nowrap; font-weight: 600; font-size: 1.05rem; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.ticket__fare { font-family: var(--font-display); font-size: 1.3rem; color: var(--stamp-red); }

@keyframes ticket-in {
  from { opacity: 0; transform: translateY(24px) rotate(-2deg) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.share {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 44rem;
  margin: 28px auto 0;
  text-align: center;
}
.chit {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--panel);
  border: 2px dashed var(--line);
  font-family: var(--font-hand);
  font-size: 1.15rem;
  white-space: pre-line;
  text-align: left;
  -webkit-user-select: text;
  user-select: text;
}
.share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; }
@media (max-width: 480px) {
  .share__actions .btn { flex: 1 1 100%; }
}
.share__note { min-height: 1.6em; color: var(--peacock); font-weight: 700; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(20px, 5vw, 48px); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px 32px;
}
.footer__truck { font-family: var(--font-display); font-size: var(--step-1); color: var(--rani); }
.footer__credit { color: var(--ink-soft); font-size: var(--step--1); }

/* ---------- confetti ---------- */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* ---------- scene fills ---------- */
.f-dusk { fill: var(--s-dusk); }
.f-gold { fill: var(--s-gold); }
.f-rani { fill: var(--s-rani); }
.f-sea { fill: var(--s-sea); }
.f-turq { fill: var(--s-turq); }
.f-water { fill: var(--s-water); }
.f-sky { fill: var(--s-sky); }
.f-cloud { fill: var(--s-cloud); }
.f-hill { fill: var(--s-hill); }
.f-hill2 { fill: var(--s-hill2); }
.f-pine { fill: var(--s-pine); }
.f-snow { fill: var(--s-snow); }
.f-snow2 { fill: var(--s-snow2); }
.f-rock { fill: var(--s-rock); }
.f-rock2 { fill: var(--s-rock2); }
.f-greystone { fill: var(--s-greystone); }
.f-slate { fill: var(--s-slate); }
.f-night { fill: var(--s-night); }
.f-wood { fill: var(--s-wood); }
.f-wood2 { fill: var(--s-wood2); }
.f-cream { fill: var(--s-cream); }
.f-morning { fill: var(--s-morning); }
.f-mint { fill: var(--s-mint); }
.f-road { fill: var(--s-road); }
.s-gold { stroke: var(--s-gold); }
.s-wood { stroke: var(--s-wood); }
.s-cream { stroke: var(--s-cream); }
.s-ink { stroke: var(--s-ink); }
.s-greystone { stroke: var(--s-greystone); }

.rays { transform-origin: 240px 130px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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