/* KAZ Software Anniversary Tour 2026 — cinematic editorial extras */

:root {
  --bg: #0a1210;
  --surface: #13201c;
  --surface-2: #1a2c26;
  --paper: #f3f6f4;
  --ink: #0b1f1a;
  --text: #f2efe8;
  --muted: #8ba39a;
  --teal: #2a9d8f;
  --amber: #e9b44c;
  --coral: #e07a5f;
  --line: rgba(242, 239, 232, 0.12);
  --font-display: "Noto Serif Bengali", Georgia, serif;
  --font-body: "Hind Siliguri", system-ui, sans-serif;
  --font-ui: "Outfit", "Hind Siliguri", sans-serif;
  /* Motion tokens (ui-animation skill) */
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-move: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-press: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --dur-press: 120ms;
  --dur-hover: 160ms;
  --dur-ui: 240ms;
  --dur-enter: 520ms;
  --dur-view: 380ms;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#appShell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.view {
  display: none;
  min-height: 0;
}

.view.active {
  display: block;
  flex: 1 0 auto;
  animation: viewEnter var(--dur-view) var(--ease-enter) both;
}

.view.active[data-enter="back"] {
  animation-name: viewEnterBack;
}

@keyframes viewEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes viewEnterBack {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Intro fills space above footer so the bar is never half-clipped */
.view[data-view="intro"].active {
  display: flex;
  flex-direction: column;
}

.view[data-view="intro"].active > .intro-stage {
  flex: 1 0 auto;
  min-height: calc(100dvh - var(--footer-height, 4.75rem));
}

.site-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 20;
  width: 100%;
  margin-top: auto;
  padding: 1.35rem 1.5rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: #070d0b;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.9;
  color: #a8bbb4;
}

.site-footer p {
  margin: 0 auto;
  max-width: 40rem;
  overflow: visible;
  text-wrap: balance;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

.font-ui {
  font-family: var(--font-ui);
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  z-index: 60;
  transition: width 120ms linear;
}

.float-nav {
  backdrop-filter: blur(10px);
  background: rgba(10, 18, 16, 0.75);
  border: 1px solid var(--line);
}

.float-nav button:not(.brand-mark) {
  transition:
    color 180ms ease,
    background 180ms ease,
    transform var(--dur-press) var(--ease-press);
  touch-action: manipulation;
}

.float-nav button:not(.brand-mark):active {
  transform: scale(0.96);
  transition-duration: 0ms;
}

.float-nav button[aria-current="page"] {
  color: #f0d78c;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-mark img {
  display: block;
  width: 4.75rem;
  height: auto;
}

.nav-divider {
  width: 1px;
  height: 1.1rem;
  margin: 0 0.15rem;
  background: var(--line);
  flex-shrink: 0;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-logo {
  display: block;
  width: min(11.5rem, 42vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.kbd-hint {
  position: fixed;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  z-index: 35;
  transform: translateX(-50%);
  max-width: min(92vw, 36rem);
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 16, 0.72);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}

.kbd-hint kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(233, 180, 76, 0.35);
  background: rgba(233, 180, 76, 0.12);
  color: var(--amber);
  font-family: inherit;
  font-size: 0.65rem;
}

@media (max-width: 640px) {
  .kbd-hint {
    display: none;
  }
}

@media (min-width: 641px) {
  .site-footer {
    padding-bottom: calc(2.75rem + env(safe-area-inset-bottom, 0px));
  }
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  touch-action: manipulation;
  transition:
    transform var(--dur-hover) var(--ease-enter),
    background 200ms ease,
    box-shadow 200ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f0c15d;
  box-shadow: 0 8px 24px rgba(233, 180, 76, 0.22);
}

.btn-primary:active {
  transform: scale(0.97);
  transition-duration: 0ms;
  box-shadow: none;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  touch-action: manipulation;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    transform var(--dur-press) var(--ease-press),
    color 200ms ease;
}

.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.12);
}

.btn-ghost:active {
  transform: scale(0.97);
  transition-duration: 0ms;
}

.dest-card {
  transition:
    transform var(--dur-ui) var(--ease-expo),
    border-color 220ms ease,
    box-shadow var(--dur-ui) var(--ease-enter);
  border: 1px solid var(--line);
  touch-action: manipulation;
}

/* Destinations / finale: 6 cards — 1 → 2 → 3 columns */
.dest-grid {
  align-items: stretch;
}

.dest-grid > * {
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .dest-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 180, 76, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  }

  .dest-card:hover .card-media {
    transform: scale(1.04);
  }
}

.dest-card:active {
  transform: scale(0.985);
  transition-duration: 0ms;
}

.dest-card .card-media {
  transition: transform 560ms var(--ease-enter);
}

.spot-card {
  transition:
    transform var(--dur-ui) var(--ease-expo),
    border-color 220ms ease;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .spot-card:hover {
    transform: translateY(-6px);
    border-color: rgba(42, 157, 143, 0.45);
  }

  .spot-card:hover .spot-media {
    transform: scale(1.06);
  }
}

.spot-card:active {
  transform: scale(0.985);
  transition-duration: 0ms;
}

.spot-card .spot-media {
  transition: transform 560ms var(--ease-enter);
}

@media (prefers-reduced-motion: reduce) {
  .spot-card,
  .spot-card .spot-media {
    transition: none !important;
    transform: none !important;
  }
}

/* Progressive: visible by default; js-motion hides until revealed */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-motion .reveal:not(.visible) {
  opacity: 0;
  transform: translateY(14px);
}

html.js-motion .reveal {
  transition:
    opacity var(--dur-enter) var(--ease-enter),
    transform var(--dur-enter) var(--ease-enter);
}

html.js-motion .reveal.visible {
  opacity: 1;
  transform: none;
}

.stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.stagger > .reveal:nth-child(2) { transition-delay: 70ms; }
.stagger > .reveal:nth-child(3) { transition-delay: 140ms; }
.stagger > .reveal:nth-child(4) { transition-delay: 210ms; }
.stagger > .reveal:nth-child(5) { transition-delay: 280ms; }
.stagger > .reveal:nth-child(6) { transition-delay: 350ms; }

.meter-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: transform 800ms var(--ease-enter);
}

.chapter-panel {
  display: none;
}

.chapter-panel.active {
  display: block;
  animation: chapterIn 420ms var(--ease-enter) both;
}

.chapter-panel.active.is-back {
  animation-name: chapterInBack;
}

@keyframes chapterIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes chapterInBack {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hero-mask {
  background:
    linear-gradient(180deg, rgba(10, 18, 16, 0.35) 0%, rgba(10, 18, 16, 0.75) 55%, #0a1210 100%);
}

.route-dash {
  stroke-dasharray: 6 8;
  animation: dash 18s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -200; }
}

.modal-backdrop {
  background: rgba(5, 10, 8, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-enter);
}

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

.modal-backdrop > div {
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 280ms var(--ease-enter),
    opacity 280ms var(--ease-enter);
}

.modal-backdrop.is-open > div {
  transform: none;
  opacity: 1;
}

.vote-card.selected {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.vote-card--confirmed {
  animation: voteConfirm 560ms var(--ease-enter) both;
}

@keyframes voteConfirm {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

.vote-card--dim {
  opacity: 0.55;
  transition: opacity 280ms var(--ease-enter);
}

.vote-card--changing {
  transition: opacity 280ms ease, outline-color 280ms ease;
}

.vote-card .btn-primary:disabled {
  opacity: 0.85;
  cursor: default;
  transform: none;
}

.vote-count-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #f3f6f4;
  background: rgba(10, 18, 16, 0.72);
  border: 1px solid rgba(233, 180, 76, 0.35);
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  backdrop-filter: blur(4px);
  transition: background 280ms ease, border-color 280ms ease;
}

.vote-card.selected .vote-count-badge {
  background: rgba(42, 157, 143, 0.55);
  border-color: rgba(233, 180, 76, 0.55);
}

.vote-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0;
  transition: opacity 280ms ease;
}

.vote-actions__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.vote-cast-label {
  background: rgba(233, 180, 76, 0.08);
}

.vote-status {
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  padding: 1.1rem 1.35rem;
  background: var(--surface);
  transition: border-color 280ms ease, background 280ms ease;
}

.vote-status--success {
  border-color: rgba(93, 214, 196, 0.45);
  background: linear-gradient(135deg, rgba(42, 157, 143, 0.22), rgba(10, 18, 16, 0.6));
  animation: statusIn 420ms var(--ease-enter) both;
}

.vote-status--info {
  border-color: rgba(233, 180, 76, 0.35);
  background: rgba(233, 180, 76, 0.08);
}

.vote-status--error {
  border-color: rgba(224, 122, 95, 0.45);
  background: rgba(224, 122, 95, 0.1);
}

.vote-status__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.vote-status__body {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.vote-results {
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(19, 32, 28, 0.85);
  padding: 1.5rem 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .vote-results {
    padding: 2rem;
  }
}

.vote-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
  color: var(--amber);
}

.vote-bar-card {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.1rem 1.15rem;
  animation: fadeRise 450ms ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.vote-bar-card.is-mine {
  border-color: rgba(233, 180, 76, 0.55);
  box-shadow: 0 0 0 1px rgba(233, 180, 76, 0.15);
}

.vote-bar-card__meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.vote-bar-track {
  height: 0.7rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: transform 700ms var(--ease-enter);
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vote-bar-card {
    animation: none;
  }
  .vote-bar-fill {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dest-card, .dest-card .card-media, .btn-primary, .btn-ghost, .meter-fill,
  .chapter-panel.active, .view.active, .spot-card, .spot-card .spot-media,
  .modal-backdrop, .modal-backdrop > div, .vote-card--confirmed,
  .vote-status--success, .hero-enter, .live-vote {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .route-dash { animation: none; }
  .hero-parallax { animation: none !important; will-change: auto; }
  .playful-tagline,
  .playful-tagline__text,
  .playful-tagline__emoji {
    animation: none !important;
    transform: none !important;
  }
  .playful-tagline__text {
    background: none;
    color: #f0d78c;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

@media (min-width: 1280px) {
  body {
    font-size: 1.0625rem;
  }

  .float-nav button:not(.brand-mark) {
    font-size: 0.8rem;
  }
}

#prevChapter:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.focus-ring:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.hero-parallax {
  will-change: transform;
}


/* Playful landing tagline — tasteful motion, storytelling tone */
.playful-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.45;
  color: #f0d78c;
  letter-spacing: 0.01em;
}

.playful-tagline__text {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    105deg,
    #f0d78c 0%,
    #fff6d6 42%,
    #5dd6c4 58%,
    #f0d78c 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.playful-tagline__emoji {
  display: inline-block;
  font-size: 1.15em;
  line-height: 1;
  transform-origin: center bottom;
  filter: drop-shadow(0 2px 8px rgba(233, 180, 76, 0.25));
}

@media (prefers-reduced-motion: no-preference) {
  .view[data-view="intro"].active.is-hero-ready .playful-tagline__text {
    animation: taglineShimmer 6s 1.7s ease-in-out 1;
  }

  .view[data-view="intro"].active.is-hero-ready .playful-tagline__emoji {
    animation: taglineFloat 3.8s 1.6s ease-in-out 2;
  }
}

@keyframes taglineShimmer {
  0%,
  100% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 0% 50%;
  }
}

@keyframes taglineFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Intro: left copy 60% · live results 40% */
.intro-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.intro-hero-copy {
  min-width: 0;
}

.intro-hero-vote {
  width: 100%;
  min-width: 0;
}

@media (min-width: 960px) {
  .intro-hero-grid {
    grid-template-columns: 3fr 2fr; /* 60% / 40% */
    gap: 2.5rem 3rem;
    align-items: center;
  }
}

/* Landing live vote card */
.live-vote {
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(19, 32, 28, 0.94), rgba(10, 18, 16, 0.88));
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.live-vote__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
}

.live-vote__title-row h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.live-vote__total {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #f0d78c;
  background: rgba(233, 180, 76, 0.12);
  border: 1px solid rgba(233, 180, 76, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  white-space: nowrap;
}

.live-vote__total:empty {
  display: none;
}

.live-vote__head .live-vote__sub {
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.live-vote-row {
  display: grid;
  gap: 0.35rem;
}

.live-vote-row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.live-vote-row__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
}

.live-vote-row__stats {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #f0d78c;
  white-space: nowrap;
}

.live-vote-track {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(242, 239, 232, 0.08);
  overflow: hidden;
}

/* Avoid double-defining success styles if already present above — patch only if needed */
.live-vote-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transition: transform 700ms var(--ease-enter);
}

.live-vote-row.is-mine .live-vote-row__name {
  color: #f0d78c;
}

@media (prefers-reduced-motion: reduce) {
  .live-vote-fill {
    transition: none;
  }
}

/* Hero choreography and card entrance live in motion.css */

.live-vote-row {
  transition: opacity 280ms var(--ease-enter), transform 280ms var(--ease-enter);
}

html.js-motion #chapterTabs button {
  transition: background 180ms ease, color 180ms ease, transform var(--dur-press) var(--ease-press);
  touch-action: manipulation;
}

html.js-motion #chapterTabs button:active {
  transform: scale(0.97);
  transition-duration: 0ms;
}

/* ————————————————————————————————————————————————
   Background music toggle (nav)
   ———————————————————————————————————————————————— */
.bgm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  color: var(--muted);
  transition:
    color 180ms ease,
    background 180ms ease,
    transform var(--dur-press) var(--ease-press);
  touch-action: manipulation;
}
.bgm-toggle:hover,
.bgm-toggle[data-state="on"] {
  color: #f0d78c;
}
.bgm-toggle:active {
  transform: scale(0.96);
  transition-duration: 0ms;
}
.bgm-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 14px;
}
.bgm-bars i {
  flex: 1 0 2px;
  height: 35%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
}
.bgm-toggle[data-state="off"] .bgm-bars,
.bgm-toggle[data-state="on"] .bgm-off {
  display: none;
}
/* Bars move only while sound is actually coming out */
.bgm-toggle.is-playing .bgm-bars i {
  animation: bgm-bounce 1.1s ease-in-out infinite alternate;
}
.bgm-toggle.is-playing .bgm-bars i:nth-child(2) { animation-delay: -0.35s; }
.bgm-toggle.is-playing .bgm-bars i:nth-child(3) { animation-delay: -0.7s; }
.bgm-toggle.is-playing .bgm-bars i:nth-child(4) { animation-delay: -0.2s; }
@keyframes bgm-bounce {
  from { height: 25%; }
  to { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bgm-toggle.is-playing .bgm-bars i {
    animation: none;
    height: 70%;
  }
}
@media (max-width: 480px) {
  .float-nav .bgm-toggle {
    width: 1.9rem;
    min-height: 1.9rem;
    padding: 0;
  }
}
.site-footer__credit {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.75;
}
.site-footer__credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.site-footer__credit a:hover {
  color: #f0d78c;
}

/* Other destinations under story chapter prev/next */
.story-other {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.story-other__label {
  letter-spacing: 0.04em;
}

.story-other__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.story-other__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(19, 32, 28, 0.85);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  line-height: 1.2;
  touch-action: manipulation;
  transition:
    border-color 200ms ease,
    background 200ms ease,
    color 200ms ease,
    transform 120ms var(--ease-press, ease);
}

.story-other__chip:hover {
  border-color: rgba(233, 180, 76, 0.45);
  background: rgba(42, 157, 143, 0.12);
  color: #f0d78c;
}

.story-other__chip:active {
  transform: scale(0.97);
  transition-duration: 0ms;
}

.story-other__num {
  color: var(--amber);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.story-other__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .story-other__chip {
    transition: none;
  }
  .story-other__chip:active {
    transform: none;
  }
}
