/* ============================================================
   The ride — full-viewport interactive
   Loads after style.css (tokens + base come from there).
   ============================================================ */

body { min-height: 100vh; }

.ride-shell {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 5rem;
}

/* ---------- entry screen ---------- */

/* The entry photo carries the top of the screen, so less breathing
   room is needed above it than the text-only entry once wanted. */
.entry { padding-top: 4vh; }

.entry .eyebrow { color: var(--bamboo); }

.entry h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  max-width: 18ch;
}

.entry .route-tag {
  font-family: 'Courier Prime', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--laterite);
  margin-bottom: 2rem;
}

.entry p { max-width: 58ch; margin-bottom: 1.15rem; }

/* ---------- scene ---------- */

.scene-view { animation: scenefade 0.6s ease-out; }

@keyframes scenefade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.scene-photo { margin-bottom: 1.75rem; }
.scene-photo img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.55);
}

.scene-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1rem;
  gap: 1rem;
}

.scene-kicker .trace {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  color: var(--rice-dim);
  letter-spacing: 0.3em;
}

.scene-kicker .trace b { color: var(--laterite); font-weight: 400; }

.scene-kicker .movement {
  font-family: 'Courier Prime', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rice-dim);
  text-align: right;
}

.scene-view h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1rem;
}

.scene-view p { margin-bottom: 1.1rem; max-width: 62ch; }

.scene-view .translated {
  border-left: 3px solid var(--lacquer);
  padding-left: 1.1rem;
  font-style: italic;
}

.ask {
  font-family: 'Hepta Slab', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rice);
  margin: 2rem 0 1rem;
}

.choices { display: grid; gap: 0.9rem; }

.choice {
  display: block;
  width: 100%;
  text-align: left;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--rice);
  background: var(--night-2);
  border: 2px solid rgba(156, 201, 120, 0.55);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, opacity 0.3s ease;
}

.choice:hover:not(:disabled) { border-color: var(--paddy); background: #46301c; transform: translateX(6px); }

.choice b {
  display: block;
  color: var(--paddy);
  margin-bottom: 0.2rem;
}

.choice:disabled { cursor: default; }
.choice.not-taken { opacity: 0.35; }
.choice.taken { border-color: var(--bamboo); }
.choice.taken b { color: var(--bamboo); }

.payoff {
  margin-top: 1.75rem;
  animation: scenefade 0.6s ease-out;
}

/* ---------- listen buttons (opt-in audio) ---------- */

.listen-row { display: grid; gap: 0.7rem; margin: 0.4rem 0 1.6rem; }

.listen {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
}

.listen-btn {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid var(--paddy);
  background: var(--night-2);
  color: var(--paddy);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.listen-btn:hover { background: #46301c; }

.listen-label { color: var(--rice); letter-spacing: 0.04em; }

.listen-dur { color: var(--rice-dim); }

/* ---------- continue / primary buttons ---------- */

.continue {
  display: inline-block;
  margin-top: 1.25rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night);
  background: var(--paddy);
  border: 2px solid var(--paddy);
  border-radius: 6px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.continue:hover { transform: translateX(6px); }

/* ---------- handoff / ticket ---------- */

.handoff-intro { max-width: 58ch; margin-bottom: 2rem; }

.ticket {
  background: var(--rice);
  color: var(--night);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  position: relative;
  font-family: 'Courier Prime', monospace;
  box-shadow: 0 26px 70px rgba(0,0,0,0.6);
}

/* perforation: on the head itself, so a wrapping title can't collide */
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.9rem;
  gap: 1rem;
  border-bottom: 2px dashed rgba(38, 23, 15, 0.3);
}

.ticket-head .t-title {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lacquer);
  font-weight: 700;
}

.ticket-head .t-date { font-size: 0.85rem; color: rgba(38,23,15,0.65); }

.path-code {
  font-family: 'Hepta Slab', serif;
  font-weight: 900;
  /* fluid floor: 13 tracked glyphs must fit the ticket at a 320px viewport */
  font-size: clamp(1rem, 5.8vw, 2.4rem);
  letter-spacing: 0.28em;
  color: var(--lacquer);
  margin: 0.5rem 0 1.4rem;
}

.ticket h3 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(38,23,15,0.6);
  margin: 1.3rem 0 0.2rem;
}

.ticket ul { list-style: none; }

.ticket li {
  font-size: 0.98rem;
  line-height: 1.55;
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  border-bottom: 1px solid rgba(38,23,15,0.12);
}

.ticket li::before {
  content: '●';
  position: absolute;
  left: 0.2rem;
  color: var(--laterite);
  font-size: 0.7rem;
  top: 0.85rem;
}

.ticket li:last-child { border-bottom: none; }

.ticket-actions { display: flex; gap: 0.9rem; margin-top: 1.6rem; flex-wrap: wrap; }

.t-btn {
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.2rem;
  border-radius: 4px;
  border: 2px solid var(--lacquer);
  background: var(--lacquer);
  color: var(--rice);
  cursor: pointer;
}

.t-btn.ghost { background: transparent; color: var(--lacquer); }

.exit-link {
  display: block;
  margin-top: 2.5rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- responsive + motion ---------- */

@media (max-width: 640px) {
  .ticket { padding: 1.5rem 1.25rem; }
  .path-code { letter-spacing: 0.18em; }
  .scene-kicker { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .scene-view, .payoff { animation: none; }
}
