/* ==========================================================================
   हिमाचल रोडवेज़ — design system
   Optional stretch: data-theme="day|night" on <html> could swap cream/dark
   player surfaces. Not wired unless requested.
   ========================================================================== */

:root {
  --hrtc-green: #1E5631;
  --hrtc-green-dark: #12261B;
  --cream: #F4EFE3;
  --mustard: #D9A017;
  --sky-blue: #4A7FA7;
  --snow: #E8E4DA;
  --deodar-brown: #5C2E1F;
  --signal-red: #B33A2E;

  --font-display: "Baloo 2", "Noto Sans Devanagari", sans-serif;
  --font-hero: "Anek Devanagari", "Noto Sans Devanagari", sans-serif;
  --font-hand: "Yatra One", "Kalam", cursive;
  --font-ui: "Rajdhani", "Segoe UI", sans-serif;
  --font-mono: "Special Elite", "Courier Prime", "Courier New", monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --header-h: 3.25rem;
  --stub-gutter: 9.6rem;
  --board-h: 0rem;
  --player-h: 0rem;
  --z-hero: 1;
  --z-header: 20;
  --z-board: 25;
  --z-player: 30;
  --z-queue: 40;
  --z-pass: 46;
  --z-ig: 50;
  --z-overlay: 80;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

html {
  background: var(--hrtc-green-dark);
}

body {
  font-family: var(--font-ui);
  color: var(--snow);
  background: var(--hrtc-green-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
a:focus-visible,
.vol-step:focus-visible,
.pass__close:focus-visible,
.pass__share-btn:focus-visible,
.ticket-btn:focus-visible,
.queue-btn:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--mustard);
  color: var(--hrtc-green-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.skip-link:focus {
  top: var(--space-4);
}

.is-hidden {
  display: none !important;
}

.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;
}

/* YouTube IFrame host — off-screen, never display:none / 1×1.
   Official API requires a 200×200 viewport or the player stays silent. */
.yt-host {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 200px;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}

#yt-player {
  width: 200px;
  height: 200px;
}

/* --------------------------------------------------------------------------
   Destination board — LED strip
   -------------------------------------------------------------------------- */

.destination-board {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-board);
  height: 2.7rem;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 40%),
    linear-gradient(180deg, #8d2c24 0%, var(--signal-red) 45%, #7a241c 100%);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 2px 10px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: background 0.5s ease;
}

html[data-service="night"] .destination-board {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 40%),
    linear-gradient(180deg, #1a2238 0%, #0d1528 55%, #0a101c 100%);
  box-shadow: inset 0 -2px 0 rgba(217, 160, 23, 0.25), 0 2px 10px rgba(0, 0, 0, 0.45);
}

.destination-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0 7px,
    rgba(0, 0, 0, 0.08) 7px 8px
  );
  pointer-events: none;
  z-index: 1;
}

.destination-board__viewport {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.destination-board__track {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: max-content;
  padding: 0 0.55rem;
  animation: plate-marquee 92s linear infinite;
}

.destination-board:hover .destination-board__track {
  animation-play-state: paused;
}

@keyframes plate-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.route-plate {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.45rem;
  align-items: center;
  min-width: 10.5rem;
  padding: 0.32rem 0.75rem 0.3rem 0.45rem;
  background: linear-gradient(180deg, #9a3228 0%, #7a241c 100%);
  border: 1px solid rgba(255, 216, 168, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
}

html[data-service="night"] .route-plate {
  background: linear-gradient(180deg, #243044 0%, #121a2a 100%);
  border-color: rgba(240, 212, 138, 0.35);
}

.route-plate__stamp {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--mustard);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.9;
}

.route-plate__hi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
  color: #ffe7c2;
  text-shadow: 0 0 6px rgba(255, 180, 80, 0.35);
  white-space: nowrap;
}

html[data-service="night"] .route-plate__hi {
  color: #f0d48a;
}

.destination-board__horn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  background: rgba(122, 36, 28, 0.92);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #ffe7c2;
}

.destination-board__horn[hidden] {
  display: none;
}

html[data-service="night"] .destination-board__horn {
  background: rgba(13, 21, 40, 0.94);
  color: #f0d48a;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: calc(var(--board-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--space-4);
  padding: 0.55rem max(0.85rem, env(safe-area-inset-right, 0px)) 0.55rem 0.85rem;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.route-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  background: rgba(18, 38, 27, 0.72);
  border: 1px solid rgba(217, 160, 23, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 var(--mustard);
}

.route-badge__text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--cream);
}

.route-badge__corp {
  color: var(--mustard);
}

.stub-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
}

.stub {
  display: flex;
  width: 8.8rem;
  color: var(--deodar-brown);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.025) 2px,
      rgba(92, 46, 31, 0.025) 3px
    ),
    rgba(244, 239, 227, 0.94);
  border: 1px solid rgba(92, 46, 31, 0.28);
  border-radius: 14px;
  box-shadow:
    2px 3px 0 rgba(18, 38, 27, 0.22),
    0 8px 16px rgba(18, 38, 27, 0.16);
  overflow: hidden;
}

.stub:nth-child(1) { transform: rotate(-1.2deg); }
.stub:nth-child(2) { transform: rotate(0.8deg); }
.stub:nth-child(3) { transform: rotate(-0.6deg); }

.stub__holes {
  flex: 0 0 14px;
  background:
    radial-gradient(circle at 0 9px, transparent 4.4px, rgba(244, 239, 227, 0.94) 4.7px) 0 5px / 14px 16px repeat-y;
  border-right: 1px dashed rgba(92, 46, 31, 0.35);
}

.stub__body {
  flex: 1;
  min-width: 0;
  padding: 0.26rem 0.42rem 0.26rem 0.35rem;
}

.stub__kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-red);
}

.stub__value {
  display: flex;
  align-items: baseline;
  margin-top: 0.06rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--hrtc-green);
  line-height: 1.1;
  white-space: nowrap;
}

.stub__colon {
  animation: colon-blink 1s steps(1) infinite;
}

.stub__ap {
  margin-left: 0.2rem;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--mustard);
}

.stub__value--count {
  align-items: center;
  gap: 0.28rem;
  font-size: 0.92rem;
  color: var(--mustard);
}

.stub__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f8f55;
  box-shadow: 0 0 0 0 rgba(47, 143, 85, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}

#aboard-count.is-bump {
  animation: count-bump 0.45s var(--ease);
}

.stub__value--line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0;
  color: var(--hrtc-green);
}

.stub__value--line::after {
  content: " ›";
  color: var(--mustard);
}

.stub--action {
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.stub--action:hover,
.stub--action:focus-visible {
  transform: rotate(-0.6deg) translateY(-2px);
  box-shadow:
    2px 5px 0 rgba(18, 38, 27, 0.22),
    0 12px 20px rgba(18, 38, 27, 0.2);
}

.stub--action:focus-visible {
  outline: 2px solid var(--mustard);
  outline-offset: 3px;
}

@keyframes colon-blink {
  50% { opacity: 0.25; }
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(110, 231, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0); }
}

@keyframes count-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.ig-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-ig) - 1);
  background: rgba(10, 16, 12, 0.42);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.ig-backdrop.is-open {
  opacity: 1;
}

.ig-slide[hidden],
.ig-backdrop[hidden] {
  display: none;
}

.ig-slide {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top, 0px));
  right: max(0.75rem, env(safe-area-inset-right, 0px));
  z-index: var(--z-ig);
  display: flex;
  width: min(20.5rem, calc(100vw - 1.5rem));
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.025) 2px,
      rgba(92, 46, 31, 0.025) 3px
    ),
    rgba(244, 239, 227, 0.96);
  color: var(--deodar-brown);
  border: 1px solid rgba(92, 46, 31, 0.28);
  border-radius: 22px;
  box-shadow:
    3px 4px 0 rgba(18, 38, 27, 0.2),
    -12px 0 40px rgba(18, 38, 27, 0.32);
  transform: translateX(calc(100% + 1.25rem));
  transition: transform 0.45s var(--ease);
  overflow: hidden;
}

.ig-slide.is-open {
  transform: translateX(0);
}

.ig-slide__holes {
  flex: 0 0 16px;
  background:
    radial-gradient(circle at 0 12px, transparent 5px, rgba(244, 239, 227, 0.96) 5.3px) 0 8px / 16px 20px repeat-y;
  border-right: 1px dashed rgba(92, 46, 31, 0.35);
}

.ig-slide__sheet {
  position: relative;
  flex: 1;
  padding: 1.15rem 1.15rem 1.2rem 0.85rem;
}

.ig-slide__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--deodar-brown);
  background: rgba(255, 255, 255, 0.5);
}

.ig-slide__kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-red);
}

.ig-slide__title {
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.15;
  color: var(--hrtc-green);
}

.ig-slide__serial {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(92, 46, 31, 0.65);
}

.ig-slide__route {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px dashed rgba(92, 46, 31, 0.3);
  border-bottom: 1px dashed rgba(92, 46, 31, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--hrtc-green);
}

.ig-slide__route-line {
  flex: 1;
  height: 0;
  border-bottom: 2px dotted var(--mustard);
}

.ig-slide__lead {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--deodar-brown);
}

.ig-slide__note {
  margin: 0.3rem 0 0.7rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(92, 46, 31, 0.72);
}

.ig-slide__handle {
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--deodar-brown);
}

.ig-slide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--hrtc-green-dark);
  text-decoration: none;
  background: var(--mustard);
  border: 1px solid rgba(92, 46, 31, 0.28);
  box-shadow: 2px 3px 0 rgba(18, 38, 27, 0.22);
  transition: transform 0.2s var(--ease);
}

.ig-slide__btn:hover {
  transform: translateY(-1px);
}

.ig-slide__stub {
  margin-top: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: rgba(92, 46, 31, 0.5);
}

.ig-slide__mark {
  position: absolute;
  right: 1.1rem;
  bottom: 2.4rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--signal-red);
  border: 2px solid var(--signal-red);
  padding: 0.12rem 0.35rem;
  transform: rotate(-12deg);
  opacity: 0.72;
  pointer-events: none;
}

/* Mascot */

.mascot {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.mascot__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--mustard);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.mascot__bubble {
  position: absolute;
  right: 46px;
  top: 0;
  min-width: 11rem;
  max-width: 14rem;
  padding: 0.4rem 0.6rem;
  background: var(--cream);
  color: var(--deodar-brown);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  animation: bubble-in 0.55s var(--ease) both;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.mascot__bubble.is-swap {
  opacity: 0;
  transform: translateY(6px);
}

.mascot__bubble::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 16px;
  border: 7px solid transparent;
  border-left-color: var(--cream);
}

.mascot__bubble p {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  line-height: 1.35;
}

.mascot__gloss {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-style: italic;
  opacity: 0.7;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: calc(var(--board-h) + var(--header-h) + 1.25rem + env(safe-area-inset-top, 0px)) var(--space-5) 2rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero);
  overflow: hidden;
  background: #12261b url("media/bg1.webp") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
}

.hero-video.is-front {
  z-index: 1;
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: clamp(0.75rem, 12vw, var(--stub-gutter));
  pointer-events: none;
}

.hero__kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  text-transform: uppercase;
  color: var(--cream);
  text-shadow: 0 1px 3px #12261B;
  margin-bottom: 0.35rem;
}

.hero__title {
  font-family: var(--font-hero);
  font-weight: 800;
  font-stretch: 85%;
  font-size: clamp(3.4rem, 13vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  color: #fffdf6;
  text-align: center;
  white-space: nowrap;
  -webkit-text-stroke: 1.2px rgba(18, 38, 27, 0.42);
  paint-order: stroke fill;
  filter: drop-shadow(0 4px 14px rgba(18, 38, 27, 0.38));
  text-shadow:
    0 1px 0 rgba(18, 38, 27, 0.8),
    0 2px 0 rgba(18, 38, 27, 0.35),
    0 0 1px rgba(18, 38, 27, 0.5),
    0 8px 18px rgba(18, 38, 27, 0.32),
    0 0 20px rgba(217, 160, 23, 0.22);
  opacity: 0;
}

.fonts-ready .hero__title {
  opacity: 1;
}

.hero__line {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.22em;
  white-space: nowrap;
  perspective: 48rem;
}

.hero__word {
  display: inline-flex;
  white-space: nowrap;
}

.hero__glyph {
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 85%;
  backface-visibility: hidden;
}

.fonts-ready .hero__glyph {
  animation: hero-glyph-in 0.78s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fonts-ready .hero__word:nth-child(1) .hero__glyph:nth-child(1) { animation-delay: 0.04s; }
.fonts-ready .hero__word:nth-child(1) .hero__glyph:nth-child(2) { animation-delay: 0.11s; }
.fonts-ready .hero__word:nth-child(1) .hero__glyph:nth-child(3) { animation-delay: 0.18s; }
.fonts-ready .hero__word:nth-child(1) .hero__glyph:nth-child(4) { animation-delay: 0.25s; }
.fonts-ready .hero__word:nth-child(2) .hero__glyph:nth-child(1) { animation-delay: 0.4s; }
.fonts-ready .hero__word:nth-child(2) .hero__glyph:nth-child(2) { animation-delay: 0.47s; }
.fonts-ready .hero__word:nth-child(2) .hero__glyph:nth-child(3) { animation-delay: 0.54s; }
.fonts-ready .hero__word:nth-child(2) .hero__glyph:nth-child(4) { animation-delay: 0.61s; }
.fonts-ready .hero__word:nth-child(2) .hero__glyph:nth-child(5) { animation-delay: 0.68s; }

@keyframes hero-glyph-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 0.42em, 0) rotateX(58deg) scale(0.86);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -0.05em, 0) rotateX(-4deg) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotateX(0) scale(1);
  }
}

.hero__tagline {
  margin-top: 0.45rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.4vw, 0.95rem);
  color: var(--cream);
  text-shadow: 0 1px 3px #12261B;
}

.hero__dot {
  margin: 0 0.35rem;
  color: var(--mustard);
}

/* Floating callout — parked off the bus, above the slim player */

.callout {
  position: absolute;
  right: var(--space-5);
  left: auto;
  bottom: 1.5rem;
  z-index: 5;
  width: auto;
  max-width: 13.5rem;
  padding: 0.45rem 1.7rem 0.45rem 0.7rem;
  background: var(--cream);
  color: var(--deodar-brown);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transform: rotate(-1.5deg);
  animation: bubble-in 0.7s 0.4s var(--ease) both;
}

.callout.is-dismissed {
  opacity: 0;
  transform: translateY(8px) rotate(-1.5deg) scale(0.96);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.callout__hand {
  font-family: var(--font-hand);
  font-size: 0.92rem;
}

.callout__gloss {
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-top: 0.1rem;
}

.callout__close {
  position: absolute;
  top: 0.1rem;
  right: 0.25rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  color: var(--deodar-brown);
}

.callout__close:hover {
  background: rgba(92, 46, 31, 0.08);
}

/* --------------------------------------------------------------------------
   Player — HRTC ticket stub under the hero tagline
   -------------------------------------------------------------------------- */

.player-bar {
  position: relative;
  z-index: var(--z-player);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(50rem, 86vw);
  margin-top: 1.1rem;
  padding: 0;
  background: none;
  border: 0;
  pointer-events: auto;
}

.player-pill {
  display: grid;
  grid-template-columns: 18px auto minmax(12rem, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.8rem;
  row-gap: 0.32rem;
  width: 100%;
  padding: 0.78rem 0.95rem 0.72rem 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.02) 2px,
      rgba(92, 46, 31, 0.02) 3px
    ),
    rgba(244, 239, 227, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(92, 46, 31, 0.28);
  border-radius: 22px;
  box-shadow:
    3px 4px 0 rgba(18, 38, 27, 0.28),
    0 10px 22px rgba(18, 38, 27, 0.18);
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease,
    color 0.35s ease;
}

.player-pill__holes {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  width: 18px;
  border-radius: 22px 0 0 22px;
  background:
    radial-gradient(circle at 0 11px, transparent 5.4px, rgba(244, 239, 227, 0.94) 5.7px) 0 5px / 18px 20px repeat-y;
  border-right: 1px dashed rgba(92, 46, 31, 0.35);
}

.player-art-wrap {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  box-shadow:
    inset 0 0 0 2px var(--mustard),
    0 2px 8px rgba(18, 38, 27, 0.22);
}

.player-art-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle,
      transparent 38%,
      rgba(244, 239, 227, 0.2) 39%,
      var(--mustard) 50%,
      #e8b12a 51%,
      var(--hrtc-green) 66%,
      #163f24 70%
    );
}

.player-art-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0deg 16deg,
    rgba(244, 239, 227, 0.55) 16deg 18deg
  );
  mask: radial-gradient(circle, transparent 50%, #000 52%, #000 68%, transparent 71%);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 52%, #000 68%, transparent 71%);
}

.player-art {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(0.72);
  background: var(--hrtc-green);
}

.player-bar.is-playing .player-art-wrap {
  animation: tyre-spin 1.7s linear infinite;
}

@keyframes tyre-spin {
  to { transform: rotate(360deg); }
}

.now-dot {
  display: none;
}

@keyframes now-pulse {
  0%,
  100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.75); opacity: 0.65; }
}

.player-meta {
  min-width: 0;
  grid-column: 3;
  grid-row: 1;
}

.player-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--deodar-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hrtc-green);
  opacity: 1;
}

.player-progress {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  grid-column: 3;
  grid-row: 2;
  padding: 0;
}

.time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--deodar-brown);
  min-width: 2.1rem;
}

.time:last-child {
  text-align: right;
}

.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--mustard) var(--seek-fill, 0%),
    rgba(92, 46, 31, 0.18) var(--seek-fill, 0%)
  );
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: 0;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--mustard);
  box-shadow: 0 1px 4px rgba(18, 38, 27, 0.35);
}

.seek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--mustard);
}

.seek::-moz-range-track {
  height: 5px;
  border: none;
  background: transparent;
}

.player-right {
  grid-column: 4;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}

.ctrl-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--deodar-brown);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.ctrl-btn:hover {
  background: rgba(92, 46, 31, 0.08);
  color: var(--hrtc-green);
}

.ctrl-btn--play {
  width: 46px;
  height: 46px;
  background: var(--mustard);
  color: var(--hrtc-green-dark);
  box-shadow: 2px 2px 0 var(--deodar-brown);
}

.ctrl-btn--play svg {
  width: 20px;
  height: 20px;
}

.ctrl-btn--play:hover {
  background: #e8b12a;
  color: var(--hrtc-green-dark);
  transform: translate(-1px, -1px);
}

.vol-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
}

.vol-wrap.is-open::after {
  content: "";
  position: absolute;
  left: -0.4rem;
  right: -0.4rem;
  bottom: 100%;
  height: 0.7rem;
}

.vol-panel {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.35rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 11.4rem;
  padding: 0.38rem 0.48rem;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.03) 2px,
      rgba(92, 46, 31, 0.03) 3px
    ),
    rgba(244, 239, 227, 0.98);
  border: 1px solid rgba(92, 46, 31, 0.28);
  border-radius: 999px;
  box-shadow:
    2px 3px 0 rgba(18, 38, 27, 0.22),
    0 10px 22px rgba(18, 38, 27, 0.18);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s var(--ease);
}

.vol-wrap.is-open .vol-panel {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.vol-panel[hidden] {
  display: none;
}

.vol-step {
  width: 1.45rem;
  height: 1.45rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(18, 38, 27, 0.08);
  color: var(--deodar-brown);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}

.vol-step:hover {
  background: var(--mustard);
  color: var(--hrtc-green-dark);
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 5.6rem;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--mustard) var(--vol-fill, 100%),
    rgba(92, 46, 31, 0.18) var(--vol-fill, 100%)
  );
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--mustard);
  box-shadow: 0 1px 4px rgba(18, 38, 27, 0.35);
}

.vol-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--mustard);
}

.vol-slider::-moz-range-track {
  height: 5px;
  border: none;
  background: transparent;
}

.vol-pct {
  min-width: 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--hrtc-green);
  text-align: right;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.service-chip {
  height: 30px;
  padding: 0 0.58rem;
  border-radius: 999px;
  border: 1.5px solid rgba(92, 46, 31, 0.35);
  background: rgba(18, 38, 27, 0.06);
  color: var(--deodar-brown);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-chip:hover {
  border-color: var(--mustard);
  background: rgba(217, 160, 23, 0.16);
  color: var(--hrtc-green-dark);
}

.ticket-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  height: 30px;
  padding: 0 0.5rem 0 0.4rem;
  border-radius: 2px;
  background: transparent;
  border: 1.5px solid var(--signal-red);
  color: var(--signal-red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.ticket-btn:hover,
.ticket-btn[aria-expanded="true"] {
  background: rgba(179, 58, 46, 0.08);
}

.queue-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--deodar-brown);
}

.queue-btn:hover,
.queue-btn[aria-expanded="true"] {
  color: var(--signal-red);
}

/* Night Drive — dark player */
html[data-service="night"] .player-pill {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(240, 212, 138, 0.03) 2px,
      rgba(240, 212, 138, 0.03) 3px
    ),
    rgba(14, 20, 34, 0.94);
  border-color: rgba(240, 212, 138, 0.28);
  box-shadow:
    3px 4px 0 rgba(5, 8, 16, 0.55),
    0 12px 28px rgba(0, 0, 0, 0.4);
}

html[data-service="night"] .player-pill__holes {
  background:
    radial-gradient(circle at 0 11px, transparent 5.4px, rgba(14, 20, 34, 0.94) 5.7px) 0 5px / 18px 20px repeat-y;
  border-right-color: rgba(240, 212, 138, 0.28);
}

html[data-service="night"] .player-art-wrap {
  background: #0d1528;
  box-shadow:
    inset 0 0 0 2px var(--mustard),
    0 2px 10px rgba(0, 0, 0, 0.45);
}

html[data-service="night"] .player-art-wrap::before {
  background:
    radial-gradient(
      circle,
      transparent 38%,
      rgba(14, 20, 34, 0.25) 39%,
      var(--mustard) 50%,
      #e8b12a 51%,
      #1a2238 66%,
      #0a101c 70%
    );
}

html[data-service="night"] .player-title {
  color: #f4efe3;
}

html[data-service="night"] .player-artist {
  color: #f0d48a;
}

html[data-service="night"] .time {
  color: rgba(244, 239, 227, 0.72);
}

html[data-service="night"] .seek {
  background: linear-gradient(
    90deg,
    var(--mustard) var(--seek-fill, 0%),
    rgba(240, 212, 138, 0.22) var(--seek-fill, 0%)
  );
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: center;
}

html[data-service="night"] .seek::-webkit-slider-thumb,
html[data-service="night"] .seek::-moz-range-thumb {
  background: #121a2a;
  border-color: var(--mustard);
}

html[data-service="night"] .ctrl-btn {
  color: #e8e4da;
}

html[data-service="night"] .ctrl-btn:hover {
  background: rgba(217, 160, 23, 0.16);
  color: var(--mustard);
}

html[data-service="night"] .ctrl-btn--play {
  background: var(--mustard);
  color: #0d1528;
  box-shadow: 2px 2px 0 #0a101c;
}

html[data-service="night"] .ctrl-btn--play:hover {
  background: #e8b12a;
  color: #0d1528;
}

html[data-service="night"] .vol-panel {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(240, 212, 138, 0.04) 2px,
      rgba(240, 212, 138, 0.04) 3px
    ),
    rgba(18, 26, 42, 0.98);
  border-color: rgba(240, 212, 138, 0.28);
  box-shadow:
    2px 3px 0 rgba(5, 8, 16, 0.5),
    0 10px 22px rgba(0, 0, 0, 0.35);
}

html[data-service="night"] .vol-step {
  background: rgba(240, 212, 138, 0.1);
  color: #f4efe3;
}

html[data-service="night"] .vol-step:hover {
  background: var(--mustard);
  color: #0d1528;
}

html[data-service="night"] .vol-slider {
  background: linear-gradient(
    90deg,
    var(--mustard) var(--vol-fill, 100%),
    rgba(240, 212, 138, 0.22) var(--vol-fill, 100%)
  );
  background-size: 100% 5px;
  background-repeat: no-repeat;
  background-position: center;
}

html[data-service="night"] .vol-slider::-webkit-slider-thumb,
html[data-service="night"] .vol-slider::-moz-range-thumb {
  background: #121a2a;
}

html[data-service="night"] .vol-pct {
  color: #f0d48a;
}

html[data-service="night"] .service-chip {
  border-color: rgba(240, 212, 138, 0.4);
  background: rgba(217, 160, 23, 0.14);
  color: #f0d48a;
}

html[data-service="night"] .service-chip:hover {
  border-color: var(--mustard);
  background: rgba(217, 160, 23, 0.24);
  color: #f4efe3;
}

html[data-service="night"] .ticket-btn {
  border-color: #e07a6a;
  color: #e07a6a;
}

html[data-service="night"] .ticket-btn:hover,
html[data-service="night"] .ticket-btn[aria-expanded="true"] {
  background: rgba(224, 122, 106, 0.12);
}

html[data-service="night"] .queue-btn {
  color: #e8e4da;
}

html[data-service="night"] .queue-btn:hover,
html[data-service="night"] .queue-btn[aria-expanded="true"] {
  color: var(--mustard);
}

/* --------------------------------------------------------------------------
   Souvenir passenger ticket
   -------------------------------------------------------------------------- */

.pass-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-pass) - 1);
  background: rgba(18, 38, 27, 0.52);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pass-backdrop.is-open {
  opacity: 1;
}

.pass-backdrop[hidden],
.pass[hidden] {
  display: none;
}

.pass {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: var(--z-pass);
  width: min(22.8rem, calc(100vw - 1.4rem));
  max-height: calc(100dvh - 1.4rem);
  overflow: auto;
  transform: translate(-50%, -46%) scale(0.94);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.35s ease;
}

.pass.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.pass__ticket {
  display: flex;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.025) 2px,
      rgba(92, 46, 31, 0.025) 3px
    ),
    rgba(244, 239, 227, 0.98);
  color: var(--deodar-brown);
  border: 1px solid rgba(92, 46, 31, 0.28);
  border-radius: 18px;
  box-shadow:
    4px 6px 0 rgba(18, 38, 27, 0.22),
    0 18px 40px rgba(18, 38, 27, 0.28);
}

.pass__holes {
  flex: 0 0 16px;
  background:
    radial-gradient(circle at 0 12px, transparent 5px, rgba(244, 239, 227, 0.98) 5.3px) 0 8px / 16px 20px repeat-y;
  border-right: 1px dashed rgba(92, 46, 31, 0.35);
}

.pass__sheet {
  position: relative;
  flex: 1;
  padding: 1.05rem 1.1rem 1rem 0.85rem;
}

.pass__close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--deodar-brown);
  background: rgba(255, 255, 255, 0.5);
}

.pass__kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal-red);
}

.pass__serial {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(92, 46, 31, 0.65);
}

.pass__route {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.8rem 0 0.2rem;
  padding: 0.4rem 0;
  border-top: 1px dashed rgba(92, 46, 31, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--hrtc-green);
}

.pass__route-line {
  flex: 1;
  height: 0;
  border-bottom: 2px dotted var(--mustard);
}

.pass__route-en {
  margin-bottom: 0.7rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgba(92, 46, 31, 0.3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(92, 46, 31, 0.58);
}

.pass__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.8rem;
}

.pass__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(92, 46, 31, 0.55);
}

.pass__val {
  display: block;
  margin-top: 0.08rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
  color: var(--deodar-brown);
}

.pass__song {
  margin-top: 0.85rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border-radius: 10px;
  background: rgba(30, 86, 49, 0.07);
  border: 1px solid rgba(30, 86, 49, 0.12);
}

.pass__title {
  margin-top: 0.12rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--hrtc-green);
}

.pass__artist {
  margin-top: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--deodar-brown);
}

.pass__mood {
  margin-top: 0.2rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(92, 46, 31, 0.7);
}

.pass__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.pass__stub {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  color: rgba(92, 46, 31, 0.5);
  max-width: 9rem;
}

.pass__stamp {
  display: grid;
  place-items: center;
  padding: 0.28rem 0.4rem 0.22rem;
  border: 2px solid var(--signal-red);
  border-radius: 4px;
  color: var(--signal-red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-8deg);
  opacity: 0.82;
}

.pass__stamp small {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.pass__share {
  margin-top: 0.7rem;
  padding: 0.7rem 0.75rem 0.75rem;
  background: rgba(244, 239, 227, 0.94);
  border: 1px solid rgba(92, 46, 31, 0.22);
  border-radius: 14px;
  box-shadow: 2px 3px 0 rgba(18, 38, 27, 0.16);
}

.pass__share-kicker {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(92, 46, 31, 0.62);
}

.pass__share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.pass__share-btn {
  height: 1.85rem;
  padding: 0 0.58rem;
  border-radius: 999px;
  border: 1.5px solid rgba(92, 46, 31, 0.28);
  background: var(--mustard);
  color: var(--hrtc-green-dark);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pass__share-btn:hover {
  transform: translateY(-1px);
}

.pass__share-btn--ghost {
  background: transparent;
  color: var(--deodar-brown);
}

.pass__toast {
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--hrtc-green);
}

html[data-service="night"] .pass__song {
  background: rgba(13, 27, 42, 0.08);
}

html[data-service="night"] .pass__stamp {
  border-color: var(--mustard);
  color: var(--mustard);
}

/* Shortcut chips */

.shortcut-row {
  display: none;
}

.punch-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 228, 218, 0.72);
  text-shadow: 0 1px 2px #12261B;
}

.punch-chip kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.58rem;
  color: #fff;
}

/* --------------------------------------------------------------------------
   Queue / ticket booklet
   -------------------------------------------------------------------------- */

.queue-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-queue) - 1);
  background: rgba(18, 38, 27, 0.42);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.queue-backdrop.is-open {
  opacity: 1;
}

.queue-panel {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: var(--z-queue);
  display: flex;
  width: min(24.5rem, calc(100vw - 1.5rem));
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.02) 2px,
      rgba(92, 46, 31, 0.02) 3px
    ),
    rgba(244, 239, 227, 0.94);
  color: var(--deodar-brown);
  border: 1px solid rgba(92, 46, 31, 0.28);
  border-radius: 22px;
  box-shadow:
    3px 4px 0 rgba(18, 38, 27, 0.22),
    -10px 0 36px rgba(18, 38, 27, 0.28);
  transform: translateX(calc(100% + 1.25rem));
  transition: transform 0.4s var(--ease);
  overflow: hidden;
}

.queue-panel.is-open {
  transform: translateX(0);
}

.queue-panel__holes {
  flex: 0 0 18px;
  background:
    radial-gradient(circle at 0 12px, transparent 5.5px, rgba(244, 239, 227, 0.94) 5.8px) 0 8px / 18px 20px repeat-y;
  border-right: 1px dashed rgba(92, 46, 31, 0.35);
}

.queue-panel__sheet {
  flex: 1;
  min-width: 0;
  padding: 1.15rem 1.15rem 1.25rem 0.85rem;
  overflow-y: auto;
}

.queue-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: 0.55rem;
}

.queue-panel__kicker {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--hrtc-green);
}

.queue-panel__permit {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 0.55rem;
  padding: 0.15rem 0 0.7rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid rgba(18, 38, 27, 0.55);
}

.queue-panel__permit::after {
  content: "";
  grid-column: 1 / -1;
  height: 0;
  margin-top: 0.45rem;
  border-bottom: 1px dotted rgba(18, 38, 27, 0.35);
}

.queue-panel__lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(92, 46, 31, 0.5);
}

.queue-panel__val {
  display: block;
  margin-top: 0.12rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #1a1a1a;
}

.queue-close {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--deodar-brown);
  border: 1.5px dashed rgba(92, 46, 31, 0.4);
  flex-shrink: 0;
}

.queue-close:hover {
  background: rgba(179, 58, 46, 0.08);
  color: var(--signal-red);
}

.queue-panel__route {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.15rem 0.65rem;
  border-top: 1px dashed rgba(92, 46, 31, 0.3);
  border-bottom: 1px dashed rgba(92, 46, 31, 0.3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--hrtc-green);
}

.queue-panel__route-line {
  flex: 1;
  height: 0;
  border-bottom: 2px dotted var(--mustard);
}

.service-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin: 0.75rem 0 0.15rem;
}

.service-switch__btn {
  padding: 0.4rem 0.35rem;
  border: 1.5px dashed rgba(92, 46, 31, 0.35);
  border-radius: 4px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deodar-brown);
}

.service-switch__btn:hover {
  background: rgba(30, 86, 49, 0.06);
}

.service-switch__btn.is-active {
  border-style: solid;
  border-color: var(--hrtc-green);
  background: rgba(30, 86, 49, 0.1);
  color: var(--hrtc-green);
}

.service-switch__btn[data-playlist="night"].is-active {
  border-color: #1a2238;
  background: #1a2238;
  color: #f0d48a;
}

.queue-panel__meta {
  margin: 0.65rem 0 0.75rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.queue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.queue-item {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  align-items: start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 0.35rem 0.7rem 0.15rem;
  text-align: left;
  color: #1a1a1a;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(92, 46, 31, 0.1);
  border-radius: 0;
  transition: background 0.2s ease;
}

.queue-item:hover {
  background: rgba(30, 86, 49, 0.04);
}

.queue-item.is-current {
  background: rgba(120, 140, 118, 0.16);
}

.queue-item__seat {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-top: 0.12rem;
  border: 1px solid rgba(18, 38, 27, 0.55);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: #1a1a1a;
}

.queue-item.is-current .queue-item__seat {
  background: var(--signal-red);
  border-color: var(--signal-red);
  color: #fff;
}

.queue-item__body {
  min-width: 0;
}

.queue-item__row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
}

.queue-item__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.queue-item__dots {
  flex: 1;
  border-bottom: 1px dotted rgba(92, 46, 31, 0.4);
  transform: translateY(-3px);
}

.queue-item__dur {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(92, 46, 31, 0.7);
}

.queue-item__artist {
  display: block;
  margin-top: 0.18rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: rgba(92, 46, 31, 0.55);
}

.queue-panel__foot {
  position: relative;
  margin-top: 1.4rem;
  min-height: 4.2rem;
}

.queue-panel__stub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.queue-panel__stamp {
  position: absolute;
  right: 0.1rem;
  bottom: 0.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  padding: 0.35rem 0.45rem;
  border: 2px solid var(--signal-red);
  box-shadow: inset 0 0 0 1px var(--signal-red);
  color: var(--signal-red);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  transform: rotate(-8deg);
  opacity: 0.82;
}

.queue-panel__stamp small {
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   SEO footer
   -------------------------------------------------------------------------- */

.seo-foot {
  position: relative;
  z-index: 3;
  padding: 1.6rem 1.25rem 2rem;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(92, 46, 31, 0.02) 2px,
      rgba(92, 46, 31, 0.02) 3px
    ),
    #f4efe3;
  color: var(--deodar-brown);
  text-align: center;
  border-top: 1px dashed rgba(92, 46, 31, 0.28);
}

.seo-foot__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--hrtc-green);
  margin-bottom: 0.35rem;
}

.seo-foot p {
  max-width: 38rem;
  margin: 0.25rem auto 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 600px) {
  .seo-foot {
    padding-bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
  }
}

/* --------------------------------------------------------------------------
   Boarding overlay
   -------------------------------------------------------------------------- */

.boarding-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  place-items: center;
  isolation: isolate;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.boarding-overlay[hidden] {
  display: none;
}

.boarding-overlay.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boarding-overlay__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 38, 27, 0.55), rgba(18, 38, 27, 0.82)),
    url("media/background.webp") center / cover no-repeat;
  z-index: -1;
}

.boarding-overlay__card {
  width: min(34rem, calc(100vw - 2rem));
  padding: var(--space-7) var(--space-6);
  background: var(--cream);
  color: var(--deodar-brown);
  text-align: center;
  border: 2px solid var(--deodar-brown);
  box-shadow: 8px 8px 0 var(--hrtc-green);
  position: relative;
}

.boarding-overlay__card::before,
.boarding-overlay__card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  background: radial-gradient(circle at 0 10px, var(--hrtc-green-dark) 5px, transparent 5.2px) 0 6px / 14px 18px repeat-y;
}

.boarding-overlay__card::before { left: 0; }
.boarding-overlay__card::after {
  right: 0;
  transform: scaleX(-1);
}

.boarding-overlay__route {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--signal-red);
}

.boarding-overlay__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1;
  margin: var(--space-3) 0 var(--space-2);
  color: var(--hrtc-green);
}

.boarding-overlay__sub {
  font-family: var(--font-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: var(--space-4);
}

.service-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 var(--space-5);
  text-align: left;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  padding: 0.7rem 0.75rem 0.75rem;
  border: 2px solid rgba(92, 46, 31, 0.28);
  background: rgba(255, 255, 255, 0.35);
  color: inherit;
  box-shadow: 2px 2px 0 rgba(92, 46, 31, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translate(-1px, -1px);
}

.service-card.is-active {
  border-color: var(--hrtc-green);
  box-shadow: 3px 3px 0 var(--hrtc-green);
}

.service-card--night {
  background: #141c2e;
  color: #f4efe3;
  border-color: #2a3550;
}

.service-card--night.is-active {
  border-color: var(--mustard);
  box-shadow: 3px 3px 0 var(--mustard);
}

.service-card__time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.service-card__hi {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
}

.service-card__en {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card__note {
  margin-top: 0.25rem;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

html[data-service="night"] .boarding-overlay__card {
  background: #1a2233;
  color: #f4efe3;
  border-color: var(--mustard);
  box-shadow: 8px 8px 0 #0a101c;
}

html[data-service="night"] .boarding-overlay__title {
  color: var(--mustard);
}

html[data-service="night"] .boarding-overlay__route {
  color: #f0d48a;
}

.boarding-overlay__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem 0.7rem 1.8rem;
  background: var(--mustard);
  color: var(--hrtc-green-dark);
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--deodar-brown);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.boarding-overlay__btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--deodar-brown);
}

.boarding-overlay__hint {
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.65;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1366px) {
  .hero__title {
    font-size: clamp(3rem, 8.8vw, 6.75rem);
  }

  .player-bar {
    width: min(46rem, 88vw);
  }

  .stub-stack {
    transform: scale(0.86);
    transform-origin: top right;
  }

  .stub {
    width: 8.2rem;
  }
}

@media (max-width: 1180px) {
  .stub-stack {
    display: none;
  }

  .hero {
    padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
  }

  .hero__content {
    padding-inline: 0.75rem;
  }

  .hero__title {
    font-size: clamp(3.8rem, 12.4vw, 8.1rem);
    line-height: 0.88;
    -webkit-text-stroke: 1.45px rgba(18, 38, 27, 0.48);
    filter: drop-shadow(0 6px 18px rgba(18, 38, 27, 0.42));
    text-shadow:
      0 1px 0 rgba(18, 38, 27, 0.88),
      0 3px 0 rgba(18, 38, 27, 0.28),
      0 0 1px rgba(18, 38, 27, 0.55),
      0 10px 22px rgba(18, 38, 27, 0.32),
      0 0 26px rgba(217, 160, 23, 0.3);
  }

  .hero__line {
    gap: 0.3em;
  }

  .player-bar {
    width: min(22.5rem, 86vw);
    margin-top: 1.15rem;
  }

  .player-pill {
    grid-template-columns: 16px 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 1.15rem 1.2rem 1.2rem 0;
    row-gap: 0.7rem;
    column-gap: 0;
    border-radius: 26px;
  }

  .player-pill__holes {
    grid-column: 1;
    grid-row: 1 / -1;
    border-radius: 26px 0 0 26px;
  }

  .player-art-wrap {
    grid-column: 2;
    grid-row: 1;
    width: 8.6rem;
    height: 8.6rem;
    justify-self: center;
    border-radius: 50%;
    transform: none;
  }

  .player-art {
    width: 8.6rem;
    height: 8.6rem;
  }

  .player-meta {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
  }

  .player-title {
    font-size: 1.35rem;
    white-space: normal;
  }

  .player-artist {
    font-size: 0.72rem;
    margin-top: 0.2rem;
  }

  .player-progress {
    grid-column: 2;
    grid-row: 3;
    padding: 0 0.2rem;
  }

  .player-right {
    grid-column: 2;
    grid-row: 4;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
  }

  .player-controls {
    justify-content: center;
    gap: 0.35rem;
  }

  .player-actions {
    justify-content: center;
  }

  .ctrl-btn {
    width: 42px;
    height: 42px;
  }

  .ctrl-btn--play {
    width: 58px;
    height: 58px;
  }

  .ctrl-btn--play svg {
    width: 24px;
    height: 24px;
  }

  .service-chip,
  .ticket-btn,
  .queue-btn {
    height: 34px;
  }

  .queue-btn {
    width: 34px;
  }
}

@media (max-width: 900px) {
  .callout {
    right: var(--space-4);
    left: auto;
    bottom: 1.2rem;
  }
}

@media (max-width: 768px) {
  .mascot__bubble,
  .shortcut-row {
    display: none;
  }

  .site-header {
    padding: var(--space-2) max(var(--space-3), env(safe-area-inset-right, 0px)) var(--space-2) var(--space-3);
  }

  .stub-stack {
    transform: scale(0.88);
    transform-origin: top right;
  }

  .hero {
    padding: calc(2.4rem + env(safe-area-inset-top, 0px)) var(--space-4) max(1.25rem, env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
    align-items: center;
  }

  .hero__content {
    padding-inline: 0.5rem;
  }

  .ig-slide {
    top: max(0.55rem, env(safe-area-inset-top, 0px));
    right: max(0.55rem, env(safe-area-inset-right, 0px));
  }

  .vol-panel {
    left: auto;
    right: -0.4rem;
    transform: translateX(0) translateY(6px);
    min-width: 12.2rem;
  }

  .vol-wrap.is-open .vol-panel {
    transform: translateX(0) translateY(0);
  }

  .pass {
    width: min(21.4rem, calc(100vw - 1rem));
  }
}

@media (max-width: 600px) {
  .site-header {
    top: auto;
    bottom: 0;
    justify-content: center;
    padding: 0.45rem 0.45rem max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  .stub-stack {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    transform: none;
  }

  .stub {
    flex: 1;
    width: auto;
    max-width: 7.2rem;
  }

  .stub:nth-child(1) { transform: rotate(-1.1deg); }
  .stub:nth-child(2) { transform: rotate(0.7deg); }
  .stub:nth-child(3) { transform: rotate(-0.5deg); }

  .hero {
    padding-bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px));
  }

  .hero__title {
    font-size: clamp(2.85rem, 14.5vw, 4.2rem);
    white-space: normal;
    line-height: 0.9;
    -webkit-text-stroke: 1.25px rgba(18, 38, 27, 0.46);
  }

  .hero__line {
    flex-wrap: wrap;
    gap: 0.1em 0.28em;
  }

  .player-bar {
    width: min(20.5rem, 92vw);
    margin-top: 0.95rem;
  }

  .player-pill {
    grid-template-columns: 16px 1fr;
    grid-template-rows: auto auto auto auto;
    padding: 1.05rem 1.05rem 1.1rem 0;
    row-gap: 0.58rem;
    column-gap: 0;
    border-radius: 24px;
  }

  .player-pill__holes {
    grid-column: 1;
    grid-row: 1 / -1;
    border-radius: 24px 0 0 24px;
  }

  .player-art-wrap {
    grid-column: 2;
    grid-row: 1;
    width: 7.5rem;
    height: 7.5rem;
    justify-self: center;
    border-radius: 50%;
  }

  .player-art {
    width: 7.5rem;
    height: 7.5rem;
  }

  .player-meta {
    grid-column: 2;
    grid-row: 2;
    text-align: center;
  }

  .player-title {
    font-size: 1.22rem;
    white-space: normal;
  }

  .player-artist {
    font-size: 0.7rem;
    margin-top: 0.18rem;
  }

  .player-progress {
    grid-column: 2;
    grid-row: 3;
    padding: 0 0.15rem;
  }

  .player-right {
    grid-column: 2;
    grid-row: 4;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
  }

  .player-controls {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
  }

  .player-controls .ctrl-btn:not(.ctrl-btn--play) {
    display: grid;
  }

  .player-actions {
    display: flex;
    justify-content: center;
  }

  .ctrl-btn {
    width: 40px;
    height: 40px;
  }

  .ctrl-btn--play {
    width: 56px;
    height: 56px;
  }

  .ctrl-btn--play svg {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 520px) {
  .service-pick {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stub-stack {
    transform: none;
  }

  .stub {
    max-width: 6.6rem;
  }

  .stub__value {
    font-size: 0.82rem;
  }

  .stub__value--line {
    font-size: 0.78rem;
  }

  .route-plate__hi {
    font-size: 0.88rem;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .destination-board__track {
    animation: none !important;
  }

  .player-art-wrap,
  .now-dot,
  .mascot__bubble,
  .callout,
  .hero__title,
  .hero__glyph {
    animation: none !important;
    will-change: auto;
    opacity: 1 !important;
    transform: none !important;
  }
}
