:root {
  --bg-deep: #1c3d5a;
  --bg: #2a5678;
  --fg: #1f2430;
  --muted: #4d5a6a;
  --accent: #e08a2c;
  --accent-soft: #f0a04a;
  --panel: rgba(255, 250, 242, 0.9);
  --panel-2: #fff8ee;
  --lamp: rgba(255, 196, 110, 0.45);
  --ink-soft: #3a4554;
  --border: rgba(224, 138, 44, 0.28);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--fg);
  background: #244864;
  position: relative;
  overflow-x: hidden;
}

.test-day-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.45rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #2a1a0a;
  background: #f0c46a;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.night-sky {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 236, 210, 0.28) 0%,
      rgba(80, 140, 180, 0.2) 35%,
      rgba(28, 61, 90, 0.55) 100%
    ),
    url("../img/story-bg.jpg") center top / cover no-repeat;
}

.night-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 28% 42%, rgba(255, 245, 220, 0.7), transparent),
    radial-gradient(2.5px 2.5px at 48% 12%, rgba(255, 210, 120, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 72% 28%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(2px 2px at 88% 55%, rgba(255, 240, 200, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 63% 72%, rgba(255, 200, 100, 0.5), transparent),
    radial-gradient(2px 2px at 35% 78%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(2px 2px at 8% 65%, rgba(255, 245, 220, 0.55), transparent);
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, 68rem);
  max-width: 68rem;
  margin: 0 auto;
  padding: 3.25rem 0 5rem;
}

.lang-switch {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 30;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.22rem;
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(224, 138, 44, 0.35);
  box-shadow: 0 8px 22px rgba(20, 50, 80, 0.18);
  backdrop-filter: blur(8px);
}

.lang-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-width: 2.5rem;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.lang-btn.is-active {
  color: #fffdf8;
  background: linear-gradient(180deg, #ffc56a, #e08a2c);
}

.reveal {
  animation: rise-in 0.9s ease both;
}

.hero.reveal {
  animation-delay: 0.05s;
}

.listen.reveal {
  animation-delay: 0.18s;
}

.trust.reveal {
  animation-delay: 0.28s;
}

.foot.reveal {
  animation-delay: 0.36s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.35rem 0 1.35rem;
}

.hero-stage {
  position: relative;
  width: 100%;
  margin: 0 0 1.15rem;
  height: clamp(16.5rem, 40vw, 20rem);
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: #3d6f96;
  box-shadow: 0 14px 34px rgba(20, 50, 80, 0.2);
}

.hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 34%;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(16, 28, 48, 0.18) 0%,
    rgba(16, 28, 48, 0.28) 45%,
    rgba(16, 28, 48, 0.72) 100%
  );
  pointer-events: none;
}

.trait-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.7rem 0.4rem 1.35rem;
  list-style: none;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 24, 42, 0.5) 0%,
    rgba(12, 24, 42, 0.16) 62%,
    transparent 100%
  );
}

.trait-banner li {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(0.72rem, 1.7vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffe7a8 0%, #ffb14a 52%, #f09a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(8, 16, 32, 0.65));
}

@media (max-width: 719px) {
  .trait-banner li {
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
  }

  html[lang="hi"] .trait-banner li {
    font-size: 0.62rem;
  }
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 1.5rem 1.15rem 1.05rem;
  width: 100%;
  max-width: 34rem;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

@media (min-width: 720px) {
  .hero-stage {
    height: clamp(17.5rem, 30vw, 20rem);
  }

  .hero-copy {
    padding: 1.35rem 1.5rem 1.25rem;
  }

  .hero-stage::before {
    background: linear-gradient(
      100deg,
      rgba(16, 28, 48, 0.72) 0%,
      rgba(16, 28, 48, 0.42) 42%,
      rgba(16, 28, 48, 0.12) 72%,
      transparent 100%
    );
  }
}

@media (max-width: 719px) {
  .hero-stage {
    height: 17.75rem;
  }

  .hero-art {
    object-position: 45% 30%;
  }

  .hero-copy {
    padding: 1.35rem 1rem 0.95rem;
  }

  .brand {
    font-size: clamp(2.4rem, 11vw, 2.85rem);
    margin-bottom: 0.35rem;
  }

  .headline {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
  }

  .lede {
    font-size: 0.9rem;
  }
}

.brand {
  --font-brand: "Fraunces", "Iowan Old Style", Georgia, serif;
  margin: 0 0 0.5rem;
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 6vw, 3.55rem);
  font-weight: 700;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
  line-height: 0.95;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22em;
  color: #fff8e8;
}

.brand-talk,
.brand-tale {
  display: inline-block;
  background: linear-gradient(180deg, #ffe29a 0%, #ffb14a 55%, #f09a2e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 14px rgba(20, 30, 50, 0.4));
}

.brand::after {
  content: "";
  display: block;
  flex: 0 0 100%;
  width: 3rem;
  height: 2px;
  margin-top: 0.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffc56a, transparent);
}

.headline {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 250, 242, 0.95);
  text-shadow: 0 2px 14px rgba(10, 20, 40, 0.45);
  max-width: 26em;
}

.lede,
.promise {
  margin: 0;
  line-height: 1.45;
  color: rgba(255, 240, 220, 0.88);
  font-size: 0.98rem;
  text-shadow: 0 2px 10px rgba(10, 20, 40, 0.4);
}

.promise {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 500;
}

.value-whisper {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.traits {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .traits {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 980px) {
  .traits {
    grid-template-columns: repeat(6, 1fr);
  }
}

.trait {
  margin: 0;
  padding: 0.85rem 0.85rem 0.9rem 0.95rem;
  border-radius: 1rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 3px 0 0 var(--accent),
    0 10px 24px rgba(20, 50, 80, 0.12);
}

.trait strong {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c96e12;
}

.trait span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--ink-soft);
}

.strengths {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.strength {
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.9rem 1.05rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(224, 164, 92, 0.08), transparent 42%),
    rgba(38, 31, 51, 0.55);
  border: 1px solid rgba(224, 164, 92, 0.22);
  box-shadow: inset 3px 0 0 var(--accent);
}

.strength-mark {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.strength-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
}

.strength-body {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #d4cbb8;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.65rem;
  font: inherit;
  font-size: 1.08rem;
  font-weight: 600;
  color: #1a1625;
  background: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  animation: cta-breathe 3.2s ease-in-out infinite;
}

.cta:hover {
  background: var(--accent-soft);
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  50% {
    box-shadow: 0 14px 40px rgba(224, 164, 92, 0.28);
  }
}

.meta {
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.bedtime-line {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.sleep-whisper {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #c96e12;
}

.listen-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.4rem;
}

.listen-heading-row .listen-heading {
  margin: 0;
}

.nightly-unlock {
  margin: 0;
  font-family: var(--font-body, inherit);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #2f8a4a;
  letter-spacing: 0.01em;
}

.listen {
  margin-top: 0.35rem;
  padding: 1.25rem 1.25rem 1.2rem;
  border-radius: 1.35rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(20, 50, 80, 0.14);
}

.section-label {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: #c96e12;
}

.listen-heading {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.8rem);
  font-weight: 600;
  color: #c96e12;
  letter-spacing: 0.01em;
}

.sc-host {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.story-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0.85rem 0 1.25rem;
}

.story-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(224, 138, 44, 0.22);
  background: #fffdf8;
  overflow: hidden;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 8px 22px rgba(20, 50, 80, 0.09);
}

.story-card.is-expanded {
  border-color: var(--accent);
  background: #fff4e4;
}

.story-card.is-locked {
  opacity: 0.82;
}

.story-card .story-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
}

.story-row-main {
  appearance: none;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  text-align: left;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.story-row-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding-top: 0.12rem;
  min-width: 3.4rem;
}

.row-play {
  appearance: none;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: #fffdf8;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(180, 100, 20, 0.26);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.row-play:hover:not(:disabled) {
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(180, 100, 20, 0.32);
}

.row-play:active:not(:disabled) {
  transform: translateY(0);
}

.row-play.is-loading,
.row-play:disabled {
  cursor: wait;
  background: linear-gradient(180deg, #ffc56a, #e08a2c);
}

.row-play .play-spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-width: 2px;
}

.story-thumb {
  flex: 0 0 auto;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 1.05rem;
  object-fit: cover;
  object-position: center;
  background: #ffe8c4;
  border: 1px solid rgba(224, 138, 44, 0.28);
  box-shadow: 0 6px 16px rgba(20, 50, 80, 0.14);
}

.story-card.is-locked .story-thumb {
  filter: grayscale(0.25) saturate(0.85);
  opacity: 0.9;
}

.story-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.1rem;
}

.story-row-hook {
  display: block;
  font-size: 1.02rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

.story-row-meta {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}

.story-expand {
  padding: 0 1rem 1.1rem;
  border-top: 1px solid rgba(224, 138, 44, 0.16);
  animation: pool-in 0.35s ease both;
}

.story-expand-hook {
  margin: 0.55rem 0 0.3rem;
  line-height: 1.45;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.story-expand-meta {
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.story-expand-note {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.inline-player {
  margin-top: 0.35rem;
}

.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #e08a2c 0%,
    rgba(60, 80, 100, 0.16) 0%
  );
  outline: none;
  cursor: pointer;
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}

.seek::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}

.inline-time {
  margin: 0.55rem 0 0.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--muted);
}

.inline-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.inline-btn {
  appearance: none;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(224, 138, 44, 0.35);
  background: #fff8ee;
  color: var(--fg);
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inline-btn:hover {
  border-color: var(--accent);
}

.inline-play {
  width: 4.1rem;
  height: 4.1rem;
  border: 0;
  background: var(--accent);
  color: #fffdf8;
  font-size: 1.45rem;
  box-shadow: 0 10px 24px rgba(180, 100, 20, 0.28);
}

.inline-play:hover:not(:disabled) {
  background: var(--accent-soft);
}

.inline-play.is-loading,
.inline-play:disabled {
  cursor: wait;
  opacity: 1;
  background: linear-gradient(180deg, #ffc56a, #e08a2c);
}

.play-spinner {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 253, 248, 0.35);
  border-top-color: #fffdf8;
  animation: spin-load 0.75s linear infinite;
}

.player-loading-note {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
  color: #c96e12;
}

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

@media (prefers-reduced-motion: reduce) {
  .play-spinner {
    animation: none;
    border-top-color: #fffdf8;
    opacity: 0.85;
  }
}

.story-card .story-row-main:hover .story-row-title {
  color: #1a1625;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  padding: 0.55rem 1rem 0.75rem;
  border-top: 1px solid rgba(224, 138, 44, 0.14);
  background: rgba(255, 248, 238, 0.7);
}

.dimension-ratings {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(224, 138, 44, 0.22);
}

.dimension-ratings.in-modal {
  margin: 0 0 1rem;
  padding: 0;
  border-top: 0;
  gap: 0.55rem;
}

.rating-done-btn {
  text-align: center;
  font-weight: 600;
  background: #ffe9c8;
  border-color: var(--accent);
}

.rating-done-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rating-modal-head {
  display: block;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.95rem;
  background: #fff4e4;
  border: 1px solid rgba(224, 138, 44, 0.28);
}

.rating-modal-head-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rating-modal-series {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c96e12;
  line-height: 1.25;
}

.rating-modal-story {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.rating-modal-overall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.45rem;
  border-radius: 0.7rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.rating-modal-overall.needs-rating,
.dimension-row.needs-rating {
  background: #ffe3e0;
  box-shadow: inset 0 0 0 1.5px #e04b3a;
}

.rating-modal-overall.needs-rating .rating-label,
.dimension-row.needs-rating .dimension-name {
  color: #c0392b;
  font-weight: 700;
}

.rating-modal-overall.needs-rating .star-btn,
.dimension-row.needs-rating .star-btn {
  color: #e04b3a;
}

.rating-modal-unlock {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(224, 138, 44, 0.28);
}

.rating-modal-unlock .unlock-question {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.rating-modal-unlock .unlock-answer:disabled,
.rating-modal-unlock .unlock-answer.is-locked,
.rating-modal-unlock .unlock-number-input:disabled,
.rating-modal-unlock .unlock-number-input.is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

.rating-modal-unlock .unlock-answer.is-locked {
  pointer-events: auto;
}

.unlock-hint {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.unlock-answer.is-selected {
  border-color: var(--accent);
  background: #ffe9c8;
  font-weight: 600;
}

.unlock-number-input {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(224, 138, 44, 0.3);
  background: #fff8ee;
  color: var(--fg);
}

.unlock-question-host {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dimension-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c96e12;
}

.dimension-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dimension-name {
  font-size: 0.84rem;
  color: var(--ink-soft);
  min-width: 4.5rem;
}

.dimension-row .star-btn {
  font-size: 1.2rem;
}

.rating-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #c96e12;
  letter-spacing: 0.03em;
}

.rating-stars {
  display: inline-flex;
  gap: 0.15rem;
}

.star-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.1rem 0.15rem;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1;
  color: rgba(60, 80, 100, 0.28);
  cursor: pointer;
}

.star-btn.is-on,
.star-btn:hover,
.star-btn:hover ~ .star-btn {
  color: rgba(60, 80, 100, 0.28);
}

.star-btn.is-on {
  color: #e08a2c;
}

.star-btn:hover {
  color: #e08a2c;
}

.rating-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.story-row-series {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c96e12;
  margin-bottom: 0.15rem;
}

.story-row-title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
}

.story-row-badge {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 600;
}

@media (max-width: 520px) {
  .story-thumb {
    width: 4.1rem;
    height: 4.1rem;
  }

  .story-row-title {
    font-size: 1.08rem;
  }

  .story-row-hook {
    font-size: 0.92rem;
  }
}

.story-card.is-open .story-row-badge {
  color: #2f8a4a;
}

.story-row-badge.is-tomorrow,
.story-card.is-tomorrow .story-row-badge {
  color: #c96e12;
}

.unlock-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(20, 45, 70, 0.55);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.unlock-modal[hidden] {
  display: none;
}

.unlock-card {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(88vh, 40rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem 1.15rem;
  padding-top: 2.85rem;
  background: #fffaf2;
  border: 1px solid rgba(224, 138, 44, 0.3);
  box-shadow: 0 16px 48px rgba(20, 50, 80, 0.28);
  animation: pool-in 0.35s ease both;
}

.modal-close {
  appearance: none;
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 6;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(224, 138, 44, 0.35);
  border-radius: 999px;
  background: #fff8ee;
  color: var(--fg);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20, 50, 80, 0.12);
}

.modal-close:hover {
  color: var(--fg);
  background: #ffe9c8;
  border-color: rgba(224, 138, 44, 0.55);
}

.unlock-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c96e12;
}

.unlock-question {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.unlock-answers {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.unlock-answer {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(224, 138, 44, 0.3);
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  font: inherit;
  font-size: 1.02rem;
  text-align: left;
  color: var(--fg);
  background: #fff8ee;
  cursor: pointer;
}

.unlock-answer:hover {
  border-color: var(--accent);
  background: #ffe9c8;
}

.listen h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4.5vw, 1.8rem);
  font-weight: 600;
  color: #c96e12;
}

.story-hook {
  margin: 0 0 0.55rem;
  line-height: 1.5;
  color: #d4cbb8;
  font-size: 1.05rem;
}

.story-meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.start-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1625;
  background: var(--accent);
  cursor: pointer;
}

.start-btn:hover {
  background: var(--accent-soft);
}

.player-shell {
  margin-top: 0.25rem;
}

.listening-pool {
  animation: pool-in 0.55s ease both;
}

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

.player {
  position: relative;
  height: 78px;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #120e1a;
}

.player iframe {
  position: absolute;
  left: 0;
  top: -88px;
  display: block;
  width: 100%;
  height: 166px;
  border: 0;
  pointer-events: none;
}

.time-label {
  margin: 0.85rem 0 0.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.ctrl {
  appearance: none;
  border: 1px solid rgba(224, 164, 92, 0.28);
  border-radius: 1rem;
  background: var(--panel-2);
  color: var(--fg);
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 4.25rem;
  padding: 0.65rem 0.5rem;
  transition: background 0.15s ease, transform 0.12s ease;
}

.ctrl:hover:not(:disabled) {
  background: #3c314c;
}

.ctrl:active:not(:disabled) {
  transform: scale(0.98);
}

.ctrl:disabled {
  opacity: 0.45;
  cursor: default;
}

.ctrl-skip .ctrl-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.ctrl-caption {
  font-size: 0.85rem;
  color: var(--muted);
}

.ctrl-main {
  min-height: 5.5rem;
  border: 0;
  background: var(--accent);
  color: #1a1625;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ctrl-main:hover:not(:disabled) {
  background: var(--accent-soft);
}

.ctrl-main-icon {
  font-size: 1.85rem;
  line-height: 1;
}

.ctrl-main-label {
  font-size: 1.05rem;
  font-weight: 600;
}

.status {
  margin: 1rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.status.ok {
  color: #2f8a4a;
}

.status.err {
  color: #c04545;
}

.trust {
  margin-top: 2.75rem;
  padding-top: 0.5rem;
}

.trust-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.feedback {
  margin-top: 1.75rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border-radius: 1.35rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(20, 50, 80, 0.14);
}

.feedback-heading {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  font-weight: 600;
}

.feedback-lede {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: #c96e12;
}

.feedback-contact-note {
  margin: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 0.75rem;
  background: rgba(224, 138, 44, 0.1);
  border: 1px solid rgba(224, 138, 44, 0.22);
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field-label {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.field-label .optional {
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.feedback-form textarea,
.feedback-form input {
  width: 100%;
  border: 1px solid rgba(224, 138, 44, 0.3);
  border-radius: 0.85rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: #fffdf8;
  outline: none;
  resize: vertical;
}

.feedback-form textarea:focus,
.feedback-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 138, 44, 0.18);
}

.feedback-form textarea::placeholder,
.feedback-form input::placeholder {
  color: rgba(77, 90, 106, 0.65);
}

.feedback-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fffdf8;
  background: var(--accent);
  cursor: pointer;
  align-self: center;
  min-width: 8.5rem;
}

.feedback-submit:hover:not(:disabled) {
  background: var(--accent-soft);
}

.feedback-submit:disabled {
  opacity: 0.65;
  cursor: default;
}

.feedback-status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.feedback-status.ok {
  color: #2f8a4a;
}

.feedback-status.err {
  color: #c04545;
}

.feedback-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fffdf8;
  background: var(--accent);
  box-shadow: 0 12px 28px rgba(180, 100, 20, 0.35);
}

.feedback-fab:hover {
  background: var(--accent-soft);
}

.foot {
  margin-top: 2.75rem;
  padding: 1.25rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.foot p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.foot p:last-child {
  margin-bottom: 0;
}

@media (max-width: 420px) {
  .controls {
    gap: 0.55rem;
  }

  .ctrl-main {
    min-height: 5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .listening-pool,
  .cta,
  .brand::after {
    animation: none;
  }
}
