﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --bg-0: #04050d;
  --bg-1: #090f24;
  --bg-2: #0f1a3c;
  --surface: rgba(18, 28, 62, 0.7);
  --surface-strong: rgba(20, 30, 67, 0.92);
  --surface-soft: rgba(25, 38, 84, 0.55);
  --stroke: rgba(177, 194, 255, 0.23);
  --stroke-soft: rgba(177, 194, 255, 0.14);
  --text-primary: #f5f8ff;
  --text-secondary: #b5c0e7;
  --text-muted: #90a0d2;
  --primary: #8c6fff;
  --primary-soft: #be83ff;
  --blue: #58b2ff;
  --success: #6ce0b5;
  --danger: #ff7b9f;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow-hero: 0 34px 80px rgba(4, 8, 24, 0.65);
  --shadow-card: 0 18px 44px rgba(7, 12, 34, 0.52);
}

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

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

body {
  color: var(--text-primary);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(146, 109, 255, 0.34), transparent 32%),
    radial-gradient(circle at 90% 18%, rgba(82, 166, 255, 0.28), transparent 34%),
    radial-gradient(circle at 52% 96%, rgba(179, 102, 255, 0.16), transparent 36%),
    linear-gradient(168deg, var(--bg-0) 0%, var(--bg-1) 46%, #050a1a 100%);
  overflow-x: hidden;
}

body.welcome-clean-mode {
  background: #05060e;
}

body.welcome-clean-mode::before,
body.welcome-clean-mode::after {
  display: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(74px);
  z-index: -4;
  pointer-events: none;
}

body::before {
  width: 320px;
  height: 320px;
  left: -100px;
  top: 18vh;
  background: rgba(122, 94, 255, 0.3);
  animation: bodyDrift 20s ease-in-out infinite alternate;
}

body::after {
  width: 360px;
  height: 360px;
  right: -110px;
  bottom: 10vh;
  background: rgba(69, 159, 255, 0.2);
  animation: bodyDrift 24s ease-in-out infinite alternate-reverse;
}

#app {
  --parallax-x: 0px;
  --parallax-y: 0px;
  width: min(100%, 560px);
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
}

.app-shell {
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
}

.scene-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(78px);
  pointer-events: none;
  z-index: -1;
  transition: transform 220ms ease-out;
}

.scene-glow.glow-a {
  width: 280px;
  height: 280px;
  top: 72px;
  left: -110px;
  background: rgba(158, 102, 255, 0.24);
  transform: translate(calc(var(--parallax-x) * -0.42), calc(var(--parallax-y) * -0.32));
}

.scene-glow.glow-b {
  width: 320px;
  height: 320px;
  top: 32%;
  right: -120px;
  background: rgba(76, 165, 255, 0.21);
  transform: translate(calc(var(--parallax-x) * 0.26), calc(var(--parallax-y) * -0.35));
}

.scene-glow.glow-c {
  width: 260px;
  height: 260px;
  bottom: 18%;
  left: 26%;
  background: rgba(197, 104, 255, 0.13);
  transform: translate(calc(var(--parallax-x) * 0.2), calc(var(--parallax-y) * 0.24));
}

.screen {
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px calc(136px + env(safe-area-inset-bottom));
  animation: screenEnter 520ms cubic-bezier(0.19, 0.82, 0.2, 1);
}

.screen.no-tab {
  padding-bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
}

.screen-layout {
  display: grid;
  gap: 18px;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

img {
  display: block;
  width: 100%;
}

svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.display-title,
.screen-title,
.section-title,
.story-card__title,
.player-hero__content h2,
.plan-card h2 {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.02em;
}

.display-title {
  font-size: clamp(2rem, 6.2vw, 2.45rem);
  line-height: 1.06;
}

.screen-title {
  font-size: clamp(1.62rem, 4.9vw, 2.08rem);
  line-height: 1.12;
}

.section-title {
  font-size: 1.08rem;
  line-height: 1.2;
}

.soft-copy {
  color: var(--text-secondary);
  line-height: 1.58;
}

.tiny {
  font-size: 0.84rem;
}

.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.glass-surface {
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background:
    linear-gradient(165deg, rgba(31, 44, 93, 0.54), rgba(17, 27, 62, 0.86)),
    rgba(18, 29, 67, 0.8);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.btn {
  border: none;
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.btn:disabled {
  opacity: 0.44;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  color: #fff;
  border: 1px solid rgba(211, 224, 255, 0.28);
  background: linear-gradient(132deg, #8d6fff 0%, #6f86ff 46%, #56b6ff 100%);
  box-shadow:
    0 12px 30px rgba(87, 111, 244, 0.44),
    0 0 0 1px rgba(211, 224, 255, 0.12) inset;
}

.btn-secondary {
  color: var(--text-primary);
  border: 1px solid rgba(168, 187, 255, 0.3);
  background: linear-gradient(128deg, rgba(134, 115, 255, 0.28), rgba(78, 170, 255, 0.24));
}

.btn-soft {
  color: #e9efff;
  border: 1px solid rgba(169, 186, 255, 0.26);
  background: rgba(105, 126, 214, 0.17);
}

.btn-ghost {
  color: #ccdcff;
  border: 1px solid rgba(172, 190, 255, 0.27);
  background: rgba(25, 36, 84, 0.4);
}

.text-link {
  border: none;
  background: transparent;
  color: #9cc6ff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 2px;
  cursor: pointer;
}

.btn:active,
.text-link:active,
.icon-btn:active,
.social-btn:active,
.voice-btn:active,
.setting-row:active,
.speed-btn:active,
.segment-btn:active,
.category-capsule:active,
.story-card:active,
.story-list-item:active,
.category-panel:active,
.dock-item:active,
.transport-btn:active {
  transform: scale(0.98);
}

.ripple-target {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.ripple-wave {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(185, 205, 255, 0.1) 70%, transparent 100%);
  transform: scale(0);
  animation: rippleOut 620ms ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

.ripple-target > * {
  position: relative;
  z-index: 1;
}

.screen-header {
  display: grid;
  gap: 8px;
}

.cinematic-hero {
  position: relative;
  min-height: 356px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(188, 204, 255, 0.28);
  box-shadow: var(--shadow-hero);
  isolation: isolate;
}

.cinematic-hero__image {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  transform: translate3d(calc(var(--parallax-x) * 0.24), calc(var(--parallax-y) * 0.22), 0) scale(1.04);
  filter: saturate(1.14) contrast(1.05) brightness(0.9);
}

.cinematic-hero--home .cinematic-hero__image {
  filter: saturate(1.16) contrast(1.08) brightness(0.74) blur(0.8px);
}

.cinematic-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(198, 161, 255, 0.34), transparent 34%),
    radial-gradient(circle at 86% 74%, rgba(89, 179, 255, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(8, 12, 29, 0.1) 0%, rgba(8, 13, 30, 0.62) 52%, rgba(5, 8, 24, 0.88) 100%);
}

.cinematic-hero__noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 22%, rgba(255, 255, 255, 0.13), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 62% 80%, rgba(255, 255, 255, 0.06), transparent 18%);
  mix-blend-mode: screen;
}

.cinematic-hero__content {
  position: relative;
  z-index: 2;
  min-height: 356px;
  padding: 22px 20px 24px;
  display: grid;
  align-content: end;
  gap: 10px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid rgba(196, 211, 255, 0.3);
  background: rgba(164, 184, 255, 0.17);
  color: #deebff;
}

.hero-main {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.8rem, 6.1vw, 2.2rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.cinematic-hero p {
  color: #d2ddff;
}

.hero-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.hero-cta {
  margin-top: 6px;
}

.welcome-screen .cinematic-hero {
  min-height: 390px;
}

.welcome-screen .cinematic-hero__content {
  min-height: 390px;
}

.welcome-screen {
  gap: 0;
}

.cinematic-hero--welcome-focus {
  min-height: min(78dvh, 690px);
}

.cinematic-hero--welcome-focus .cinematic-hero__content {
  min-height: min(78dvh, 690px);
  padding: 34px 28px 30px;
  align-content: end;
  gap: 14px;
}

.hero-main--welcome {
  font-size: clamp(2.15rem, 7.8vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 16px 32px rgba(2, 7, 22, 0.58);
  max-width: 14ch;
}

.welcome-subtitle {
  font-size: clamp(0.98rem, 2.8vw, 1.08rem);
  color: rgba(219, 229, 255, 0.94);
  line-height: 1.5;
  max-width: 34ch;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
}

.welcome-trust {
  font-size: 0.8rem;
  color: rgba(186, 204, 243, 0.92);
  letter-spacing: 0.01em;
  margin-top: 1px;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
}

.welcome-screen .hero-actions {
  margin-top: 10px;
  gap: 11px;
  width: min(100%, 380px);
  justify-self: center;
}

.welcome-screen .hero-kicker {
  margin-bottom: 2px;
}

.app-shell--welcome-clean .welcome-screen .cinematic-hero {
  border: 1px solid rgba(232, 238, 255, 0.12);
  box-shadow: none;
}

.app-shell--welcome-clean .welcome-screen .cinematic-hero__veil {
  background: linear-gradient(180deg, rgba(5, 8, 20, 0.08) 0%, rgba(6, 9, 21, 0.52) 50%, rgba(5, 8, 20, 0.84) 100%);
}

.app-shell--welcome-clean .welcome-screen .cinematic-hero__content {
  gap: 12px;
}

.auth-screen {
  gap: 16px;
}

.auth-experience {
  width: min(100%, 440px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.auth-back {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(182, 200, 255, 0.26);
  background: rgba(35, 49, 106, 0.34);
  color: #ebf1ff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.auth-back svg {
  width: 17px;
  height: 17px;
}

.auth-headline {
  display: grid;
  gap: 6px;
}

.auth-headline .screen-title {
  font-size: clamp(1.82rem, 5.7vw, 2.3rem);
  line-height: 1.08;
}

.auth-headline p {
  color: var(--text-secondary);
  line-height: 1.4;
  font-size: 0.9rem;
}

.auth-social-stack {
  display: grid;
  gap: 8px;
}

.auth-social-stack .social-btn {
  width: 100%;
  min-height: 46px;
  border-radius: 13px;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  transition: transform 190ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.auth-social-stack .social-btn svg {
  width: 15px;
  height: 15px;
}

.auth-social-stack .social-btn--apple {
  border: 1px solid rgba(228, 234, 255, 0.14);
  color: #ffffff;
  background: linear-gradient(180deg, #222327, #1c1c1e);
  box-shadow: 0 8px 18px rgba(6, 10, 25, 0.35);
}

.auth-social-stack .social-btn--apple:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(6, 11, 32, 0.42);
}

.auth-social-stack .social-btn--google {
  border: 1px solid rgba(178, 197, 255, 0.2);
  color: #edf3ff;
  background: linear-gradient(154deg, rgba(64, 84, 150, 0.56), rgba(34, 50, 108, 0.62));
}

.auth-social-stack .social-btn--google:hover {
  transform: translateY(-1px);
  border-color: rgba(205, 219, 255, 0.32);
  box-shadow: 0 10px 20px rgba(8, 16, 42, 0.44), 0 0 12px rgba(124, 164, 255, 0.1);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(174, 190, 231, 0.84);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 0.5px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(170, 187, 241, 0.26), transparent);
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 5px;
}

.auth-field span {
  color: rgba(183, 199, 240, 0.84);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.auth-field input {
  border: none;
  border-bottom: 1px solid rgba(178, 195, 249, 0.36);
  background: transparent;
  color: #f0f5ff;
  font-size: 0.92rem;
  font-family: "Manrope", sans-serif;
  line-height: 1.28;
  padding: 5px 0 9px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.auth-field input::placeholder {
  color: rgba(140, 157, 206, 0.76);
}

.auth-field input:focus {
  border-bottom-color: rgba(210, 222, 255, 0.86);
  box-shadow: 0 1px 0 rgba(196, 212, 255, 0.34);
}

.auth-form .btn-primary {
  margin-top: 4px;
  border-radius: 13px;
  min-height: 48px;
  padding: 10px 14px;
  border-color: rgba(201, 215, 255, 0.22);
  background: linear-gradient(135deg, rgba(132, 115, 245, 0.95), rgba(92, 157, 241, 0.92));
  box-shadow: 0 10px 22px rgba(56, 85, 188, 0.28);
}

.auth-footnote {
  margin: 0;
  text-align: center;
  color: rgba(174, 192, 234, 0.9);
  font-size: 0.84rem;
}

.auth-inline-link {
  border: none;
  background: transparent;
  color: #b7cdff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0 0 0 6px;
  cursor: pointer;
}

.auth-inline-link:hover {
  color: #d8e6ff;
}

@media (max-width: 620px) {
  .auth-experience {
    gap: 12px;
  }

  .auth-headline .screen-title {
    font-size: clamp(1.62rem, 7.2vw, 2.02rem);
  }

  .auth-headline p {
    font-size: 0.88rem;
  }

  .auth-social-stack .social-btn {
    min-height: 46px;
    font-size: 0.84rem;
  }
}

@media (max-width: 420px) {
  .auth-experience {
    gap: 10px;
  }

  .auth-footnote,
  .auth-inline-link {
    font-size: 0.84rem;
  }
}

.prep-screen,
.record-screen,
.profile-screen,
.voices-screen,
.create-screen,
.sub-screen {
  gap: 16px;
}

.segment-wrap {
  padding: 4px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.segment-btn {
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.segment-btn.active {
  color: #fff;
  background: linear-gradient(132deg, rgba(139, 114, 255, 0.6), rgba(83, 167, 255, 0.55));
  box-shadow: 0 8px 16px rgba(68, 93, 182, 0.36);
}

.form-surface {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(178, 195, 255, 0.23);
  background: rgba(19, 29, 67, 0.7);
  color: #edf2ff;
  font-size: 0.95rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
  border-color: rgba(171, 191, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(137, 158, 245, 0.24);
}

.social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  border: 1px solid rgba(174, 191, 255, 0.26);
  border-radius: 14px;
  background: rgba(37, 51, 103, 0.62);
  color: #edf3ff;
  font-size: 0.83rem;
  font-weight: 700;
  padding: 11px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}

.social-btn svg {
  width: 15px;
  height: 15px;
}

.security-note {
  font-size: 0.82rem;
  color: #bfd4ff;
  border: 1px solid rgba(145, 186, 255, 0.24);
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(83, 145, 218, 0.12);
}

.info-list {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.info-item {
  border: 1px solid rgba(173, 188, 255, 0.22);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(91, 109, 188, 0.15);
  color: #d8e5ff;
  font-size: 0.9rem;
}

.info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #8ad7ff, #c186ff);
  box-shadow: 0 0 12px rgba(136, 191, 255, 0.72);
}

.text-sample {
  padding: 18px;
}

.text-sample p {
  color: #d8e3ff;
  line-height: 1.65;
}

.record-status {
  padding: 10px 12px;
  border-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.record-file {
  padding: 12px 14px;
  border-radius: 15px;
  display: grid;
  gap: 4px;
}

.record-file strong {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.record-file span {
  color: rgba(190, 207, 246, 0.92);
  font-size: 0.8rem;
}

.record-hint {
  margin: 0;
  color: rgba(187, 201, 240, 0.92);
  font-size: 0.86rem;
  line-height: 1.5;
}

.record-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 800;
}

.record-pill.ready {
  color: #dbe4ff;
  background: rgba(107, 126, 217, 0.3);
}

.record-pill.recording {
  color: #ffd2dd;
  background: rgba(255, 103, 147, 0.22);
}

.record-pill.done {
  color: #ccffe9;
  background: rgba(101, 218, 166, 0.24);
}

.wave-panel {
  min-height: 140px;
  position: relative;
  overflow: hidden;
  padding: 24px 12px;
}

.voice-wave {
  height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

.voice-wave span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ca89ff, #6dc2ff);
  height: 14%;
  opacity: 0.45;
}

.voice-wave.recording span {
  animation: waveLive 1.15s ease-in-out infinite;
}

.voice-wave.recording span:nth-child(2n) {
  animation-delay: -0.4s;
}

.voice-wave.recording span:nth-child(3n) {
  animation-delay: -0.73s;
}

.voice-wave.done span {
  animation: none;
  height: 10%;
  opacity: 0.22;
}

.wave-done {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.wave-done svg {
  width: 74px;
  height: 74px;
  color: #c8ffe8;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 18px rgba(123, 255, 204, 0.4));
}

.button-stack {
  display: grid;
  gap: 10px;
}

.record-file-input {
  display: none;
}

.alchemy-screen {
  min-height: calc(100dvh - 70px);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  text-align: center;
  padding: 8px 0 12px;
}

.alchemy-screen::before,
.alchemy-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.5;
  z-index: -1;
  animation: alchemyDrift 12s ease-in-out infinite alternate;
}

.alchemy-screen::before {
  width: 260px;
  height: 260px;
  left: -98px;
  top: 12%;
  background: rgba(153, 112, 255, 0.3);
}

.alchemy-screen::after {
  width: 280px;
  height: 280px;
  right: -108px;
  bottom: 12%;
  background: rgba(82, 170, 255, 0.24);
  animation-delay: -3.8s;
}

.alchemy-scene {
  position: relative;
  width: min(86vw, 364px);
  aspect-ratio: 1 / 1.1;
  border-radius: 36% 36% 32% 32%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(191, 206, 255, 0.24);
  background:
    radial-gradient(circle at 16% 14%, rgba(176, 128, 255, 0.26), transparent 44%),
    radial-gradient(circle at 84% 78%, rgba(85, 174, 255, 0.2), transparent 44%),
    linear-gradient(166deg, #050a1e 0%, #0a1537 42%, #040917 100%);
  box-shadow:
    0 30px 62px rgba(4, 9, 25, 0.66),
    0 0 0 1px rgba(206, 219, 255, 0.08) inset;
}

.alchemy-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.58;
  animation: alchemyBlob 9.8s ease-in-out infinite;
}

.alchemy-blob.blob-a {
  width: 178px;
  height: 178px;
  left: -38px;
  top: 2%;
  background: rgba(172, 123, 255, 0.36);
}

.alchemy-blob.blob-b {
  width: 162px;
  height: 162px;
  right: -32px;
  top: 32%;
  background: rgba(88, 177, 255, 0.32);
  animation-delay: -2.9s;
}

.alchemy-blob.blob-c {
  width: 146px;
  height: 146px;
  left: 22%;
  bottom: -32px;
  background: rgba(210, 134, 255, 0.24);
  animation-delay: -5.1s;
}

.book-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(171, 206, 255, 0.54) 0%, rgba(151, 105, 255, 0.26) 46%, rgba(151, 105, 255, 0) 80%);
  animation: bookHaloPulse 3.1s ease-in-out infinite;
}

.book-stage {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: min(68%, 228px);
  aspect-ratio: 1.4 / 1;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.book-core {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: bookSettle 3s ease-in-out infinite;
}

.book-cover,
.book-page {
  position: absolute;
  top: 14%;
  height: 72%;
  border-radius: 10px 10px 6px 6px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.book-cover {
  width: 47%;
  border: 1px solid rgba(194, 208, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(62, 86, 175, 0.88), rgba(47, 62, 135, 0.92)),
    radial-gradient(circle at 30% 20%, rgba(198, 161, 255, 0.34), transparent 56%);
  box-shadow: 0 8px 20px rgba(7, 13, 33, 0.4);
}

.book-page {
  width: 44%;
  top: 18%;
  height: 64%;
  border: 1px solid rgba(214, 226, 255, 0.4);
  background:
    linear-gradient(180deg, rgba(244, 248, 255, 0.84), rgba(214, 225, 255, 0.68));
  box-shadow: 0 6px 16px rgba(10, 17, 42, 0.3);
}

.book-cover.cover-back {
  left: 4%;
  transform-origin: 100% 54%;
  animation: coverOpenLeft 3s ease-in-out infinite;
}

.book-cover.cover-front {
  right: 4%;
  transform-origin: 0% 54%;
  animation: coverOpenRight 3s ease-in-out infinite;
}

.book-page.page-left {
  left: 8%;
  transform-origin: 100% 52%;
  animation: pageOpenLeft 3s ease-in-out infinite;
}

.book-page.page-right {
  right: 8%;
  transform-origin: 0% 52%;
  animation: pageOpenRight 3s ease-in-out infinite;
}

.book-spine {
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translateX(-50%);
  width: 12px;
  height: 80%;
  border-radius: 999px;
  border: 1px solid rgba(194, 210, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(142, 175, 255, 0.74), rgba(110, 126, 220, 0.88));
  box-shadow: 0 0 18px rgba(132, 170, 255, 0.42);
}

.book-inner-glow {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 58%;
  height: 52%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(194, 215, 255, 0.72) 0%, rgba(167, 118, 255, 0.5) 44%, rgba(167, 118, 255, 0) 84%);
  filter: blur(1px);
  animation: innerLight 2.4s ease-in-out infinite;
}

.book-spark {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 3px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 246, 210, 0.92), rgba(255, 219, 242, 0.18) 72%, rgba(255, 219, 242, 0));
  opacity: 0.84;
  filter: blur(0.4px);
}

.book-spark.spark-a {
  transform: translateX(-50%) rotate(-12deg);
  animation: sparkFloatA 2.5s ease-in-out infinite;
}

.book-spark.spark-b {
  transform: translateX(-50%) rotate(12deg);
  animation: sparkFloatB 2.5s ease-in-out infinite;
}

.voice-river {
  position: absolute;
  left: 50%;
  bottom: 13%;
  transform: translateX(-50%);
  width: 72%;
  height: 34%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}

.voice-river i {
  position: relative;
  width: 4px;
  height: var(--h);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(120, 198, 255, 0.08) 0%, rgba(128, 198, 255, 0.78) 40%, rgba(193, 149, 255, 0.9) 100%);
  filter: drop-shadow(0 0 9px rgba(129, 180, 255, 0.5));
  transform-origin: 50% 100%;
  animation: riverPulse 1.9s ease-in-out infinite;
  animation-delay: var(--d);
}

.voice-river i::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 58px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(193, 223, 255, 0.88), rgba(173, 123, 255, 0.14) 74%, rgba(173, 123, 255, 0));
  transform-origin: 50% 100%;
  transform: translate3d(calc(var(--sx) * 0.3), 2px, 0) scaleY(0.2);
  opacity: 0;
  animation: riverLift 1.9s ease-in-out infinite;
  animation-delay: var(--d);
}

.voice-river__mist {
  position: absolute;
  left: 50%;
  bottom: 58%;
  transform: translateX(-50%);
  width: 38%;
  height: 56px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(182, 210, 255, 0.34) 0%, rgba(153, 108, 255, 0.2) 42%, rgba(153, 108, 255, 0) 76%);
  filter: blur(8px);
}

.alchemy-particles {
  position: absolute;
  inset: 8%;
  pointer-events: none;
}

.alchemy-particles span {
  position: absolute;
  left: var(--x);
  bottom: 30%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 248, 217, 1) 0%, rgba(201, 222, 255, 0.88) 46%, rgba(201, 222, 255, 0) 100%);
  opacity: 0;
  filter: drop-shadow(0 0 7px rgba(201, 222, 255, 0.62));
  animation: particleRise var(--t) ease-in-out infinite;
  animation-delay: var(--d);
}

.alchemy-copy {
  display: grid;
  gap: 8px;
  max-width: 340px;
  padding: 0 8px;
}

.alchemy-copy .screen-title {
  font-size: clamp(1.66rem, 6vw, 2.2rem);
  line-height: 1.08;
}

.alchemy-copy .soft-copy {
  color: #d5e1ff;
  font-size: 0.98rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 14px;
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: #9fb0e7;
}

.search-box input {
  border: none;
  background: transparent;
  color: #edf3ff;
  width: 100%;
  font-size: 0.94rem;
  outline: none;
}

.search-box input::placeholder {
  color: #99aadf;
}

.category-area {
  display: grid;
  gap: 10px;
}

.voice-status-card {
  padding: 12px 14px;
  display: grid;
  gap: 5px;
}

.voice-status-card strong {
  font-size: 0.9rem;
}

.voice-status-card p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(191, 206, 244, 0.95);
  line-height: 1.42;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  padding-bottom: 1px;
  padding-right: 10px;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-capsule {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  border: 1px solid rgba(167, 185, 255, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(188, 132, 255, 0.15), transparent 40%),
    rgba(58, 74, 138, 0.34);
  color: #dce6ff;
  padding: 9px 12px;
  cursor: pointer;
  transition: box-shadow 220ms ease, border-color 220ms ease, background 220ms ease, transform 160ms ease;
}

.category-capsule.active {
  color: #fff;
  border-color: rgba(201, 214, 255, 0.43);
  background:
    radial-gradient(circle at 8% 12%, rgba(196, 140, 255, 0.4), transparent 44%),
    linear-gradient(128deg, rgba(136, 113, 255, 0.52), rgba(84, 167, 255, 0.48));
  box-shadow:
    0 12px 28px rgba(74, 104, 218, 0.42),
    0 0 0 1px rgba(205, 219, 255, 0.18) inset;
}

.category-capsule__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #d9e5ff;
}

.category-capsule__label {
  font-weight: 700;
  font-size: 0.83rem;
  white-space: nowrap;
}

.rail-block {
  display: grid;
  gap: 10px;
}

.rail-track {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  padding-bottom: 2px;
  padding-right: 10px;
}

.rail-track::-webkit-scrollbar {
  display: none;
}

.story-card {
  flex: 0 0 clamp(218px, 72vw, 248px);
  scroll-snap-align: start;
  border: 1px solid rgba(169, 185, 255, 0.23);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(25, 37, 84, 0.96), rgba(15, 23, 56, 0.94));
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.story-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(205, 219, 255, 0.35);
  box-shadow:
    0 18px 38px rgba(7, 13, 35, 0.62),
    0 0 0 1px rgba(195, 211, 255, 0.18) inset,
    0 0 22px rgba(118, 151, 255, 0.2);
}

.story-card__media {
  position: relative;
  min-height: 156px;
}

.story-card__media img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  filter: saturate(1.06);
}

.story-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 28, 0.04) 0%, rgba(8, 13, 34, 0.28) 54%, rgba(6, 10, 26, 0.88) 100%),
    radial-gradient(circle at 88% 10%, rgba(115, 188, 255, 0.26), transparent 30%);
}

.story-card__premium {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.69rem;
  font-weight: 700;
  border: 1px solid rgba(213, 226, 255, 0.42);
  color: #edf4ff;
  background: rgba(221, 235, 255, 0.14);
}

.story-card__category {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 0.74rem;
  color: #e6efff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-card__body {
  padding: 12px 13px 14px;
  display: grid;
  gap: 8px;
}

.story-card__title {
  font-size: 1.02rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__description {
  color: #b9c6ec;
  line-height: 1.5;
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.8em;
}

.story-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-pill {
  border-radius: 999px;
  border: 1px solid rgba(169, 185, 255, 0.23);
  background: rgba(84, 106, 183, 0.22);
  color: #d4e1ff;
  font-size: 0.74rem;
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.empty-state {
  border-radius: 17px;
  padding: 20px;
  text-align: center;
  color: #bfd0ff;
  border-style: dashed;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  border: 1px solid rgba(172, 190, 255, 0.24);
  background: rgba(41, 56, 114, 0.5);
  color: #eef3ff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

.category-grid {
  display: grid;
  gap: 12px;
}

.category-panel {
  position: relative;
  min-height: 168px;
  border-radius: 21px;
  overflow: hidden;
  border: 1px solid rgba(176, 194, 255, 0.24);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(6, 11, 30, 0.56);
}

.category-panel img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.category-panel__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 26, 0.06) 0%, rgba(7, 11, 27, 0.88) 100%),
    radial-gradient(circle at 82% 12%, rgba(124, 192, 255, 0.3), transparent 36%);
}

.category-panel__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 14px;
  display: grid;
  align-content: end;
  gap: 6px;
}

.category-panel__icon {
  width: 24px;
  height: 24px;
  color: #dde8ff;
}

.category-panel__content h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.category-panel__content p {
  color: #cad8ff;
  font-size: 0.84rem;
}

.panel-chip {
  width: max-content;
  margin-top: 2px;
  border-radius: 999px;
  font-size: 0.72rem;
  padding: 4px 9px;
  border: 1px solid rgba(208, 221, 255, 0.38);
  background: rgba(219, 233, 255, 0.12);
}

.category-hero {
  position: relative;
  min-height: 176px;
  border-radius: 22px;
  overflow: hidden;
}

.category-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 19, 0.08) 0%, rgba(6, 9, 24, 0.84) 100%),
    radial-gradient(circle at 80% 10%, rgba(114, 190, 255, 0.3), transparent 36%);
}

.category-hero__content {
  position: relative;
  z-index: 1;
  min-height: 176px;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 14px;
}

.category-hero__content h2 {
  font-family: "Outfit", sans-serif;
  font-size: 1.35rem;
}

.category-hero__content p {
  color: #d0dbff;
}

.story-list {
  display: grid;
  gap: 11px;
}

.story-list-item {
  border-radius: 18px;
  border: 1px solid rgba(168, 186, 255, 0.24);
  background: linear-gradient(160deg, rgba(24, 35, 78, 0.92), rgba(17, 25, 59, 0.9));
  padding: 11px;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 11px;
  align-items: center;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.story-list-item img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
}

.story-list-item__body {
  display: grid;
  gap: 6px;
}

.story-list-item__body h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
}

.story-list-item__body p {
  color: #b9c7ee;
  font-size: 0.83rem;
  line-height: 1.45;
}

.story-list-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.story-list-item__meta span {
  border-radius: 999px;
  border: 1px solid rgba(163, 180, 250, 0.24);
  background: rgba(76, 98, 176, 0.22);
  color: #d7e3ff;
  font-size: 0.71rem;
  padding: 3px 8px;
}

.story-list-item__arrow {
  color: #a9baeb;
  font-size: 1.3rem;
}

.player-screen {
  gap: 14px;
}

.player-hero {
  position: relative;
  min-height: 282px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(177, 196, 255, 0.26);
  box-shadow: var(--shadow-hero);
}

.player-hero img {
  width: 100%;
  height: 282px;
  object-fit: cover;
}

.player-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 24, 0.08) 0%, rgba(8, 11, 24, 0.8) 100%),
    radial-gradient(circle at 22% 14%, rgba(219, 187, 255, 0.24), transparent 32%);
}

.player-hero__content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 7px;
  padding: 16px;
}

.player-hero__content h2 {
  font-size: 1.42rem;
}

.player-hero__content p {
  color: #d5e1ff;
}

.player-panel {
  padding: 16px;
  border-radius: 22px;
  display: grid;
  gap: 13px;
}

.timeline {
  display: grid;
  gap: 7px;
}

.timeline input[type="range"] {
  width: 100%;
  appearance: none;
  background: transparent;
}

.timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(189, 206, 255, 0.24);
}

.timeline input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 17px;
  height: 17px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1px solid rgba(223, 234, 255, 0.42);
  background: linear-gradient(140deg, #bf88ff, #64b8ff);
  box-shadow: 0 6px 14px rgba(95, 132, 255, 0.52);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  color: #b8c7f2;
  font-size: 0.8rem;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.transport-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(171, 188, 255, 0.27);
  background: rgba(68, 87, 160, 0.32);
  color: #edf3ff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

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

.transport-btn--main {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  border-color: rgba(218, 229, 255, 0.47);
  background: linear-gradient(130deg, #8f6fff, #5ab3ff);
  box-shadow: 0 14px 30px rgba(90, 124, 246, 0.5);
}

.player-state {
  text-align: center;
  color: #bcccf6;
  font-size: 0.84rem;
}

.player-settings {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.speed-switch {
  display: flex;
  gap: 7px;
}

.speed-btn {
  border-radius: 12px;
  border: 1px solid rgba(163, 179, 248, 0.24);
  background: rgba(80, 100, 172, 0.22);
  color: #d7e2ff;
  padding: 8px 10px;
  min-width: 56px;
  font-weight: 700;
  cursor: pointer;
}

.speed-btn.active {
  color: #fff;
  border-color: rgba(206, 219, 255, 0.36);
  background: linear-gradient(132deg, rgba(145, 122, 255, 0.62), rgba(86, 170, 255, 0.55));
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cedafc;
}

.switch {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(171, 188, 255, 0.3);
  background: rgba(91, 113, 187, 0.27);
  position: relative;
  cursor: pointer;
  transition: background 220ms ease;
}

.switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, #e3eeff, #c0d5ff);
  transition: transform 220ms ease;
}

.switch.active {
  background: linear-gradient(138deg, rgba(145, 122, 255, 0.72), rgba(89, 172, 255, 0.62));
}

.switch.active::after {
  transform: translateX(20px);
}

.profile-hero {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(138deg, rgba(154, 130, 255, 0.95), rgba(96, 176, 255, 0.82));
  border: 1px solid rgba(221, 233, 255, 0.45);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile-voice {
  border-radius: 14px;
  border: 1px solid rgba(181, 198, 255, 0.25);
  background: rgba(80, 103, 178, 0.22);
  padding: 10px 12px;
}

.profile-voice strong {
  display: block;
  margin-bottom: 4px;
}

.profile-voice p {
  color: #c9d9ff;
  font-size: 0.85rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.stat-card {
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  display: grid;
  gap: 4px;
}

.stat-card strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.02rem;
}

.stat-card span {
  color: #bfd0ff;
  font-size: 0.75rem;
}

.settings-list {
  display: grid;
  gap: 9px;
}

.setting-row {
  border-radius: 14px;
  border: 1px solid rgba(173, 191, 255, 0.22);
  background: rgba(20, 31, 70, 0.78);
  color: #e8efff;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.voice-row {
  border-radius: 16px;
  padding: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-row h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
}

.voice-btn {
  border-radius: 12px;
  border: 1px solid rgba(177, 194, 255, 0.28);
  background: rgba(83, 104, 181, 0.3);
  color: #eef4ff;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}

.voice-btn.active {
  background: linear-gradient(135deg, rgba(146, 123, 255, 0.63), rgba(88, 170, 255, 0.58));
}

.action-card {
  border-radius: 18px;
  padding: 15px;
  display: grid;
  gap: 10px;
}

.action-card h3 {
  font-family: "Outfit", sans-serif;
}

.plan-switch {
  border-radius: 16px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.plan-switch button {
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #c7d5ff;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
}

.plan-switch button.active {
  color: #fff;
  border: 1px solid rgba(208, 221, 255, 0.32);
  background: linear-gradient(135deg, rgba(145, 122, 255, 0.57), rgba(87, 170, 255, 0.53));
}

.plan-card {
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.plan-card h2 {
  font-size: 2rem;
  line-height: 1;
}

.benefits {
  display: grid;
  gap: 8px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #dce6ff;
}

.benefit-dot {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: linear-gradient(145deg, #99cbff, #c48aff);
  box-shadow: 0 0 10px rgba(152, 198, 255, 0.6);
}

.dock-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(10px, calc(10px + env(safe-area-inset-bottom)));
  width: min(540px, calc(100% - 20px));
  border-radius: 24px;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  border: 1px solid rgba(173, 191, 255, 0.27);
  background:
    linear-gradient(180deg, rgba(41, 57, 116, 0.66), rgba(18, 28, 67, 0.92)),
    rgba(15, 23, 53, 0.86);
  box-shadow:
    0 22px 38px rgba(4, 8, 24, 0.62),
    0 0 0 1px rgba(182, 199, 255, 0.09) inset;
  backdrop-filter: blur(20px);
  z-index: 30;
}

.dock-item {
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #b8c7f5;
  padding: 6px 2px 7px;
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.dock-item__icon {
  width: 20px;
  height: 20px;
}

.dock-item.center {
  border-radius: 16px;
}

.dock-item.center.active {
  transform: translateY(-9px) scale(1.06);
  border-radius: 18px;
  background: linear-gradient(132deg, rgba(145, 121, 255, 0.72), rgba(91, 173, 255, 0.64));
  color: #fff;
  box-shadow:
    0 16px 28px rgba(76, 109, 227, 0.48),
    0 0 0 1px rgba(214, 226, 255, 0.24) inset;
}

.dock-item.active:not(.center) {
  color: #f3f7ff;
  background: linear-gradient(134deg, rgba(141, 118, 255, 0.45), rgba(90, 166, 255, 0.36));
  box-shadow: 0 8px 16px rgba(77, 106, 212, 0.34);
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  bottom: calc(95px + env(safe-area-inset-bottom));
  border-radius: 999px;
  border: 1px solid rgba(171, 190, 255, 0.3);
  background: rgba(18, 30, 72, 0.92);
  color: #ecf2ff;
  font-size: 0.82rem;
  padding: 9px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 40;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

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

@keyframes waveLive {
  0%,
  100% {
    height: 16%;
    opacity: 0.42;
  }
  40% {
    height: 84%;
    opacity: 0.95;
  }
  68% {
    height: 48%;
    opacity: 0.76;
  }
}

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

@keyframes rippleOut {
  0% {
    transform: scale(0);
    opacity: 0.65;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes bodyDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -20px, 0) scale(1.1);
  }
}

@keyframes alchemyDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(0, -14px, 0) scale(1.08);
  }
}

@keyframes alchemyBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.95);
    opacity: 0.52;
  }
  50% {
    transform: translate3d(0, -10px, 0) scale(1.08);
    opacity: 0.74;
  }
}

@keyframes bookHaloPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.68;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

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

@keyframes coverOpenLeft {
  0%,
  18% {
    transform: rotateY(0deg);
  }
  58% {
    transform: rotateY(62deg);
  }
  82% {
    transform: rotateY(54deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes coverOpenRight {
  0%,
  18% {
    transform: rotateY(0deg);
  }
  58% {
    transform: rotateY(-62deg);
  }
  82% {
    transform: rotateY(-54deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes pageOpenLeft {
  0%,
  20% {
    transform: rotateY(0deg);
  }
  58% {
    transform: rotateY(34deg);
  }
  82% {
    transform: rotateY(28deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes pageOpenRight {
  0%,
  20% {
    transform: rotateY(0deg);
  }
  58% {
    transform: rotateY(-34deg);
  }
  82% {
    transform: rotateY(-28deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes innerLight {
  0%,
  100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.86);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes sparkFloatA {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-50%, 7px) rotate(-12deg) scaleY(0.8);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -2px) rotate(-16deg) scaleY(1.08);
  }
}

@keyframes sparkFloatB {
  0%,
  100% {
    opacity: 0.38;
    transform: translate(-50%, 7px) rotate(12deg) scaleY(0.8);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -2px) rotate(16deg) scaleY(1.08);
  }
}

@keyframes riverPulse {
  0% {
    transform: translateY(0) scaleY(0.84);
    opacity: 0.38;
  }
  34% {
    transform: translateY(-5px) scaleY(1.14);
    opacity: 0.9;
  }
  68% {
    transform: translateY(-10px) scaleY(0.76);
    opacity: 0.24;
  }
  100% {
    transform: translateY(-14px) scaleY(0.52);
    opacity: 0.08;
  }
}

@keyframes riverLift {
  0% {
    transform: translate3d(calc(var(--sx) * 0.3), 2px, 0) scaleY(0.2);
    opacity: 0;
  }
  28% {
    opacity: 0.88;
  }
  70% {
    opacity: 0.36;
  }
  100% {
    transform: translate3d(calc(var(--sx) * -0.42), -94px, 0) scaleY(1.1);
    opacity: 0;
  }
}

@keyframes particleRise {
  0% {
    transform: translate3d(0, 0, 0) scale(0.65);
    opacity: 0;
  }
  24% {
    opacity: 0.92;
  }
  78% {
    opacity: 0.4;
  }
  100% {
    transform: translate3d(0, -128px, 0) scale(1.18);
    opacity: 0;
  }
}

@media (min-width: 620px) {
  .screen {
    padding-left: 22px;
    padding-right: 22px;
  }

  .story-card {
    flex-basis: 254px;
  }

  .cinematic-hero,
  .cinematic-hero__content {
    min-height: 370px;
  }
}

@media (max-width: 620px) {
  .screen {
    padding-bottom: calc(152px + env(safe-area-inset-bottom));
  }

  .section-head {
    align-items: center;
  }

  .category-scroll {
    gap: 8px;
    padding-right: 6px;
    scroll-snap-type: x proximity;
  }

  .category-capsule {
    padding: 7px 9px;
    gap: 6px;
    border-radius: 14px;
  }

  .category-capsule__icon {
    width: 15px;
    height: 15px;
  }

  .category-capsule__label {
    font-size: 0.74rem;
  }

  .rail-track {
    gap: 10px;
    padding-right: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
  }

  .story-card {
    flex: 0 0 calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .story-card__media {
    min-height: 132px;
  }

  .story-card__media img {
    height: 132px;
  }

  .story-card__body {
    padding: 11px 11px 12px;
    gap: 6px;
  }

  .story-card__title {
    font-size: 0.96rem;
  }

  .story-card__description {
    font-size: 0.8rem;
    line-height: 1.4;
    min-height: 2.25em;
    -webkit-line-clamp: 2;
  }

  .dock-nav {
    width: calc(100% - 10px);
    border-radius: 19px;
  }
}

@media (max-width: 480px) {
  .screen {
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: calc(154px + env(safe-area-inset-bottom));
  }

  .alchemy-screen {
    gap: 18px;
    padding-top: 0;
  }

  .alchemy-scene {
    width: min(90vw, 332px);
  }

  .alchemy-copy .screen-title {
    font-size: clamp(1.48rem, 7vw, 1.92rem);
  }

  .alchemy-copy .soft-copy {
    font-size: 0.91rem;
  }

  .screen.no-tab {
    padding-bottom: max(20px, calc(20px + env(safe-area-inset-bottom)));
  }

  .cinematic-hero,
  .cinematic-hero__content {
    min-height: 286px;
  }

  .welcome-screen .cinematic-hero,
  .welcome-screen .cinematic-hero__content {
    min-height: 316px;
  }

  .cinematic-hero__content {
    padding: 14px 14px 16px;
    gap: 7px;
  }

  .hero-main {
    font-size: clamp(1.42rem, 6.8vw, 1.82rem);
    line-height: 1.08;
  }

  .hero-kicker {
    font-size: 0.65rem;
    padding: 5px 9px;
  }

  .cinematic-hero p {
    font-size: 0.94rem;
    line-height: 1.44;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta {
    margin-top: 2px;
  }

  .search-box {
    padding: 10px 11px;
  }

  .search-box input {
    font-size: 0.9rem;
  }

  .section-head {
    gap: 8px;
  }

  .section-title {
    font-size: 1rem;
  }

  .text-link {
    white-space: nowrap;
  }

  .category-capsule {
    padding: 6px 8px;
    gap: 6px;
    border-radius: 14px;
  }

  .category-capsule__icon {
    width: 14px;
    height: 14px;
  }

  .category-capsule__label {
    font-size: 0.72rem;
  }

  .category-scroll {
    gap: 8px;
    padding-right: 4px;
  }

  .story-card {
    flex-basis: calc((100% - 10px) / 2);
    min-width: calc((100% - 10px) / 2);
    border-radius: 16px;
  }

  .rail-track {
    gap: 10px;
    padding-right: 0;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
  }

  .story-card__media {
    min-height: 126px;
  }

  .story-card__media img {
    height: 126px;
  }

  .story-card__premium {
    top: 8px;
    right: 8px;
    font-size: 0.63rem;
    padding: 4px 7px;
  }

  .story-card__category {
    left: 9px;
    bottom: 8px;
    font-size: 0.67rem;
  }

  .story-card__body {
    padding: 10px 10px 11px;
    gap: 6px;
  }

  .story-card__title {
    font-size: 0.93rem;
  }

  .story-card__description {
    font-size: 0.79rem;
    line-height: 1.38;
    min-height: 2.2em;
    -webkit-line-clamp: 2;
  }

  .meta-pill {
    font-size: 0.67rem;
    padding: 3px 7px;
    gap: 4px;
  }

  .dock-nav {
    width: calc(100% - 8px);
    bottom: max(4px, calc(4px + env(safe-area-inset-bottom)));
    border-radius: 18px;
    padding: 5px;
    gap: 2px;
  }

  .dock-item {
    font-size: 0.6rem;
    gap: 2px;
    padding: 6px 0 6px;
  }

  .dock-item__icon {
    width: 17px;
    height: 17px;
  }

  .dock-item.center.active {
    transform: translateY(-4px) scale(1.02);
    border-radius: 14px;
  }

  .toast {
    bottom: calc(86px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .section-title {
    font-size: 0.94rem;
  }

  .alchemy-scene {
    width: min(92vw, 318px);
  }

  .story-card {
    flex-basis: calc((100% - 8px) / 2);
    min-width: calc((100% - 8px) / 2);
  }

  .story-card__description {
    -webkit-line-clamp: 2;
    min-height: 2.1em;
  }

  .category-capsule__label {
    font-size: 0.72rem;
  }
}

/* Experience revamp */
.home-screen {
  gap: 22px;
}

.reveal-section {
  opacity: 0;
  transform: translateY(14px);
  animation: sectionFadeUp 620ms cubic-bezier(0.2, 0.86, 0.24, 1) forwards;
  animation-delay: var(--reveal-delay, 0.08s);
}

.scene-glow {
  animation: glowBreath 9s ease-in-out infinite;
}

.scene-glow.glow-b {
  animation-delay: -2.2s;
}

.scene-glow.glow-c {
  animation-delay: -4.4s;
}

.cinematic-hero--immersive {
  min-height: min(62dvh, 560px);
}

.cinematic-hero--immersive .cinematic-hero__content {
  min-height: min(62dvh, 560px);
  padding: 26px 22px 24px;
  gap: 12px;
}

.cinematic-hero--immersive .cinematic-hero__image {
  animation: heroBreathe 14s ease-in-out infinite alternate;
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff2cc;
  filter: drop-shadow(0 0 8px rgba(205, 228, 255, 0.9));
  animation: starTwinkle 3.2s ease-in-out infinite;
  animation-delay: var(--d);
}

.hero-star.star-2 {
  background: #9fe7ff;
}

.hero-star.star-3 {
  background: #ffc4ec;
}

.hero-star.star-4 {
  background: #ffe08f;
}

.quick-start {
  display: grid;
  gap: 10px;
}

.quick-start-layout {
  display: grid;
  gap: 10px;
}

.quick-gate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quick-gate {
  position: relative;
  border: 1px solid rgba(186, 202, 255, 0.3);
  border-radius: 22px;
  overflow: hidden;
  color: #f4f8ff;
  text-align: left;
  cursor: pointer;
  background: rgba(22, 32, 72, 0.52);
  box-shadow:
    0 18px 36px rgba(8, 13, 35, 0.5),
    0 0 20px rgba(123, 162, 255, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.quick-gate--primary {
  min-height: 172px;
}

.quick-gate--secondary {
  min-height: 132px;
}

.quick-gate__bg {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(1.8px) saturate(1.1) brightness(0.84);
  transform: scale(1.05);
}

.quick-gate__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 9, 24, 0.78) 0%, rgba(7, 11, 27, 0.18) 46%, rgba(7, 11, 27, 0.72) 100%),
    radial-gradient(circle at 82% 18%, rgba(128, 198, 255, 0.26), transparent 34%);
}

.quick-gate__content {
  position: relative;
  z-index: 1;
  min-height: inherit;
  height: 100%;
  padding: 14px 14px 13px;
  display: grid;
  align-content: end;
  gap: 6px;
}

.quick-gate__icon {
  width: 19px;
  height: 19px;
  color: #e8f1ff;
  display: grid;
  place-items: center;
}

.quick-gate__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.9;
}

.quick-gate h3 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.quick-gate p {
  color: #d4e2ff;
  font-size: 0.81rem;
  line-height: 1.34;
}

.quick-gate--secondary h3 {
  font-size: 0.92rem;
}

.quick-gate--secondary p {
  font-size: 0.76rem;
}

.quick-gate--learn .quick-gate__veil {
  background:
    linear-gradient(180deg, rgba(5, 14, 35, 0.8) 0%, rgba(8, 17, 40, 0.2) 48%, rgba(8, 17, 40, 0.74) 100%),
    radial-gradient(circle at 78% 22%, rgba(109, 221, 255, 0.26), transparent 36%);
}

.quick-gate--adventure .quick-gate__veil {
  background:
    linear-gradient(180deg, rgba(8, 12, 28, 0.8) 0%, rgba(8, 12, 28, 0.2) 48%, rgba(8, 12, 28, 0.72) 100%),
    radial-gradient(circle at 78% 18%, rgba(255, 177, 121, 0.24), transparent 36%);
}

.quick-gate:hover {
  transform: translateY(-3px) scale(1.012);
  border-color: rgba(217, 228, 255, 0.4);
  box-shadow:
    0 22px 42px rgba(8, 13, 35, 0.58),
    0 0 26px rgba(123, 162, 255, 0.16);
}

.quick-gate:active {
  transform: scale(0.985);
}

.trend-block {
  display: grid;
  gap: 10px;
}

.trend-spotlight {
  position: relative;
  min-height: 238px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(186, 204, 255, 0.3);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(8, 13, 34, 0.54);
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.trend-spotlight:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(216, 227, 255, 0.42);
  box-shadow: 0 24px 48px rgba(8, 13, 34, 0.62), 0 0 26px rgba(121, 156, 255, 0.22);
}

.trend-spotlight img {
  width: 100%;
  height: 238px;
  object-fit: cover;
}

.trend-spotlight__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(129, 195, 255, 0.35), transparent 36%),
    linear-gradient(180deg, rgba(7, 10, 24, 0.06) 0%, rgba(8, 12, 26, 0.72) 62%, rgba(7, 10, 24, 0.9) 100%);
}

.trend-spotlight__content {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 16px;
  z-index: 1;
}

.trend-badge {
  width: max-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid rgba(222, 234, 255, 0.36);
  background: rgba(212, 227, 255, 0.14);
}

.trend-spotlight__content h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1.22rem;
  line-height: 1.12;
}

.trend-spotlight__content p {
  color: #d4e0ff;
  font-size: 0.88rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.trend-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.trend-meta span {
  border-radius: 999px;
  border: 1px solid rgba(177, 195, 255, 0.28);
  background: rgba(87, 110, 193, 0.26);
  color: #d9e6ff;
  font-size: 0.72rem;
  padding: 4px 8px;
}

.rail-block {
  gap: 12px;
}

.rail-track {
  gap: 14px;
}

.story-card {
  position: relative;
  min-height: 304px;
  height: 304px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(171, 188, 255, 0.28);
  background: transparent;
  box-shadow: 0 18px 42px rgba(7, 12, 33, 0.55);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.story-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(212, 224, 255, 0.42);
  box-shadow:
    0 24px 46px rgba(7, 12, 33, 0.62),
    0 0 22px rgba(109, 148, 255, 0.22);
}

.story-card__media {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 24, 0.04) 0%, rgba(7, 10, 24, 0.24) 48%, rgba(7, 10, 24, 0.8) 100%),
    radial-gradient(circle at 86% 20%, rgba(122, 191, 255, 0.24), transparent 32%);
}

.story-card__category {
  z-index: 2;
}

.story-card__glass {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(184, 201, 255, 0.22);
  background:
    linear-gradient(165deg, rgba(26, 38, 82, 0.52), rgba(16, 24, 57, 0.72)),
    rgba(17, 26, 61, 0.62);
  backdrop-filter: blur(13px);
  padding: 10px 10px 11px;
  gap: 7px;
}

.story-card__description {
  -webkit-line-clamp: 1;
  min-height: 1.4em;
}

.meta-pill.special {
  border-color: rgba(195, 212, 255, 0.34);
  background: linear-gradient(135deg, rgba(125, 109, 234, 0.34), rgba(81, 160, 255, 0.28));
}

.audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.audio-wave i {
  width: 2px;
  height: 4px;
  background: #eaf2ff;
  border-radius: 999px;
  opacity: 0.8;
  animation: badgeWave 1s ease-in-out infinite;
}

.audio-wave i:nth-child(2) {
  animation-delay: -0.2s;
}

.audio-wave i:nth-child(3) {
  animation-delay: -0.4s;
}

.dock-nav {
  backdrop-filter: blur(24px);
}

.dock-item.active:not(.center) {
  transform: scale(1.04);
  box-shadow: 0 10px 18px rgba(83, 116, 228, 0.42), 0 0 18px rgba(130, 163, 255, 0.18);
}

.dock-item.center.active {
  transform: translateY(-8px) scale(1.07);
  box-shadow:
    0 18px 32px rgba(80, 112, 224, 0.55),
    0 0 24px rgba(126, 162, 255, 0.3),
    0 0 0 1px rgba(214, 226, 255, 0.24) inset;
}

@media (max-width: 620px) {
  .cinematic-hero--immersive,
  .cinematic-hero--immersive .cinematic-hero__content {
    min-height: 60dvh;
  }

  .quick-start-layout,
  .quick-gate-row {
    gap: 8px;
  }

  .quick-gate--primary {
    min-height: 152px;
  }

  .quick-gate--secondary {
    min-height: 122px;
  }

  .quick-gate__content {
    padding: 12px 12px 11px;
  }

  .quick-gate h3 {
    font-size: 0.95rem;
  }

  .quick-gate p {
    font-size: 0.77rem;
  }

  .story-card {
    min-height: 290px;
    height: 290px;
  }
}

@media (max-width: 480px) {
  .home-screen {
    gap: 18px;
  }

  .cinematic-hero--immersive,
  .cinematic-hero--immersive .cinematic-hero__content {
    min-height: 58dvh;
  }

  .cinematic-hero--immersive .cinematic-hero__content {
    padding: 18px 16px 18px;
    gap: 8px;
  }

  .hero-main {
    font-size: clamp(1.5rem, 7.1vw, 1.95rem);
  }

  .quick-gate--primary {
    min-height: 146px;
  }

  .quick-gate--secondary {
    min-height: 116px;
  }

  .quick-gate__icon {
    width: 17px;
    height: 17px;
  }

  .quick-gate h3 {
    font-size: 0.9rem;
  }

  .quick-gate p {
    font-size: 0.73rem;
    line-height: 1.28;
  }

  .trend-spotlight,
  .trend-spotlight img {
    min-height: 224px;
    height: 224px;
  }

  .story-card {
    min-height: 274px;
    height: 274px;
  }
}

@media (max-width: 380px) {
  .quick-gate-row {
    grid-template-columns: 1fr;
  }

  .quick-gate--secondary {
    min-height: 108px;
  }

  .quick-gate h3 {
    font-size: 0.86rem;
  }

  .quick-gate p {
    font-size: 0.7rem;
  }
}

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

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.86);
  }
  45% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes glowBreath {
  0%,
  100% {
    opacity: 0.84;
    filter: blur(78px);
  }
  50% {
    opacity: 1;
    filter: blur(88px);
  }
}

@keyframes heroBreathe {
  0% {
    transform: translate3d(calc(var(--parallax-x) * 0.22), calc(var(--parallax-y) * 0.2), 0) scale(1.04);
  }
  100% {
    transform: translate3d(calc(var(--parallax-x) * 0.3), calc(var(--parallax-y) * 0.26), 0) scale(1.08);
  }
}

@keyframes badgeWave {
  0%,
  100% {
    height: 4px;
    opacity: 0.55;
  }
  50% {
    height: 10px;
    opacity: 1;
  }
}

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

/* Immersive Story Player */
.player-screen.player-experience {
  position: relative;
  padding: 0;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.player-experience__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.player-experience__bg img {
  width: 100%;
  height: 68dvh;
  min-height: 430px;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
  animation: playerBackdropDrift 18s ease-in-out infinite alternate;
}

.player-experience__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 20, 0.12) 0%, rgba(5, 9, 25, 0.9) 56%, rgba(5, 9, 26, 0.98) 100%),
    radial-gradient(circle at 78% 22%, rgba(104, 158, 255, 0.2), transparent 38%),
    radial-gradient(circle at 18% 16%, rgba(168, 118, 255, 0.22), transparent 34%);
}

.player-experience__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  animation: glowBreath 12s ease-in-out infinite;
}

.player-experience__glow--a {
  width: 240px;
  height: 240px;
  top: 30%;
  left: -96px;
  background: rgba(157, 114, 255, 0.32);
}

.player-experience__glow--b {
  width: 280px;
  height: 280px;
  right: -130px;
  bottom: 24%;
  background: rgba(84, 162, 255, 0.28);
  animation-delay: -5.2s;
}

.player-experience.sleep-mode-on .player-experience__bg img {
  filter: saturate(0.78) brightness(0.72);
  transform: scale(1.08);
}

.player-experience__content {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  padding:
    max(14px, env(safe-area-inset-top))
    18px
    calc(140px + env(safe-area-inset-bottom));
}

.player-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.player-topbar .icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border-color: rgba(203, 220, 255, 0.24);
  background: rgba(28, 40, 94, 0.46);
  backdrop-filter: blur(8px);
}

.player-topbar__title {
  font-weight: 700;
  color: rgba(232, 240, 255, 0.95);
  letter-spacing: 0.01em;
}

.player-story-head {
  display: grid;
  gap: 8px;
  max-width: min(92%, 480px);
}

.player-story-head__category {
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(196, 214, 255, 0.33);
  background: linear-gradient(132deg, rgba(141, 117, 255, 0.42), rgba(86, 170, 255, 0.3));
  color: #eff4ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.player-story-head h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 7.6vw, 2.62rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 14px 34px rgba(4, 10, 26, 0.74);
}

.player-story-head p {
  color: rgba(213, 225, 255, 0.9);
  font-size: 0.96rem;
  text-shadow: 0 8px 22px rgba(3, 10, 26, 0.66);
}

.player-main-stack {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
}

.player-time-row {
  width: min(460px, 100%);
  display: flex;
  justify-content: space-between;
  font-size: 0.81rem;
  color: rgba(194, 209, 245, 0.94);
}

.player-timeline {
  width: min(460px, 100%);
  appearance: none;
  background: transparent;
}

.player-timeline::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(194, 141, 255, 0.72), rgba(93, 176, 255, 0.6));
  box-shadow: 0 0 0 1px rgba(180, 199, 255, 0.22) inset;
}

.player-timeline::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1px solid rgba(222, 234, 255, 0.46);
  background: linear-gradient(145deg, #d4c2ff, #8bccff);
  box-shadow: 0 8px 18px rgba(101, 133, 247, 0.54);
}

.player-timeline::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(194, 141, 255, 0.72), rgba(93, 176, 255, 0.6));
}

.player-timeline::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(222, 234, 255, 0.46);
  background: linear-gradient(145deg, #d4c2ff, #8bccff);
}

.player-play-circle {
  position: relative;
  width: 124px;
  height: 124px;
  border: 1px solid rgba(215, 228, 255, 0.4);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.28), transparent 36%),
    linear-gradient(145deg, rgba(148, 113, 255, 0.86), rgba(77, 172, 255, 0.8));
  box-shadow:
    0 26px 40px rgba(10, 18, 47, 0.62),
    0 0 0 1px rgba(222, 233, 255, 0.2) inset;
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 240ms ease;
}

.player-play-circle:hover {
  transform: scale(1.03);
  box-shadow:
    0 30px 46px rgba(10, 18, 47, 0.72),
    0 0 30px rgba(111, 162, 255, 0.34);
}

.player-play-circle::before,
.player-play-circle::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  pointer-events: none;
}

.player-play-circle::before {
  border: 1px solid rgba(202, 219, 255, 0.28);
}

.player-play-circle::after {
  border: 1px solid rgba(176, 208, 255, 0.44);
  opacity: 0;
}

.player-experience.is-playing .player-play-circle::after {
  animation: playerPulse 2.3s ease-out infinite;
  opacity: 1;
}

.player-experience.is-buffering .player-play-circle {
  pointer-events: none;
  transform: scale(0.98);
  box-shadow:
    0 24px 36px rgba(10, 18, 47, 0.62),
    0 0 24px rgba(112, 169, 255, 0.32);
}

.player-experience.is-buffering .player-play-circle::after {
  animation: playerPulse 1.3s ease-out infinite;
  opacity: 1;
}

.player-play-circle svg {
  width: 42px;
  height: 42px;
  stroke-width: 1.8;
}

.story-waveform {
  width: min(340px, 88%);
  height: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.story-waveform span {
  width: 5px;
  height: var(--bar-height);
  min-height: 8px;
  border-radius: 999px;
  transform-origin: center bottom;
  background: linear-gradient(180deg, rgba(190, 151, 255, 0.92), rgba(103, 188, 255, 0.66));
  box-shadow: 0 0 14px rgba(112, 170, 255, 0.26);
  animation: playerWave 1.55s ease-in-out infinite;
  animation-delay: calc(var(--bar-index) * -0.08s);
}

.player-experience:not(.is-playing) .story-waveform span {
  opacity: 0.36;
  transform: scaleY(0.42);
  animation-duration: 2.8s;
}

.player-experience.is-buffering .story-waveform span {
  opacity: 0.9;
  transform: scaleY(0.92);
  animation-duration: 0.95s;
}

.player-voice-note {
  text-align: center;
  max-width: 330px;
  color: rgba(228, 236, 255, 0.94);
  line-height: 1.42;
  font-size: 0.97rem;
  text-shadow: 0 8px 20px rgba(8, 14, 37, 0.5);
}

.player-mini-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-mini-btn {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(186, 204, 255, 0.34);
  border-radius: 50%;
  background: rgba(36, 52, 109, 0.5);
  color: #e9f1ff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.player-mini-btn:hover {
  transform: scale(1.04);
  border-color: rgba(210, 223, 255, 0.52);
  box-shadow: 0 12px 24px rgba(7, 16, 43, 0.58), 0 0 16px rgba(118, 159, 255, 0.22);
}

.player-mini-btn svg {
  width: 21px;
  height: 21px;
}

.player-control-stack {
  display: grid;
  gap: 10px;
}

.story-speed-segment {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(182, 201, 255, 0.31);
  background: rgba(26, 40, 90, 0.46);
  backdrop-filter: blur(10px);
}

.story-speed-btn {
  border: none;
  border-radius: 999px;
  background: transparent;
  color: rgba(214, 226, 255, 0.88);
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  padding: 9px 10px;
  cursor: pointer;
  transition: transform 180ms ease, color 200ms ease, box-shadow 220ms ease, background 220ms ease;
}

.story-speed-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(146, 114, 255, 0.74), rgba(93, 173, 255, 0.64));
  box-shadow:
    0 8px 20px rgba(55, 79, 176, 0.48),
    0 0 0 1px rgba(216, 227, 255, 0.25) inset;
}

.sleep-mode-btn {
  width: 100%;
  border: 1px solid rgba(181, 199, 255, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(138deg, rgba(50, 65, 129, 0.68), rgba(24, 36, 80, 0.82)),
    rgba(23, 36, 80, 0.72);
  color: #edf3ff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.sleep-mode-btn__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(206, 220, 255, 0.31);
  background: radial-gradient(circle at 32% 28%, rgba(198, 167, 255, 0.58), rgba(111, 169, 255, 0.28));
  display: grid;
  place-items: center;
  color: #f3f7ff;
}

.sleep-mode-btn__icon svg {
  width: 16px;
  height: 16px;
}

.sleep-mode-btn__copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.sleep-mode-btn__copy strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.sleep-mode-btn__copy small {
  color: rgba(196, 211, 244, 0.9);
  font-size: 0.74rem;
}

.sleep-mode-btn.active {
  border-color: rgba(221, 232, 255, 0.52);
  background:
    linear-gradient(138deg, rgba(129, 110, 255, 0.62), rgba(82, 158, 255, 0.56)),
    rgba(32, 48, 102, 0.8);
  box-shadow:
    0 14px 24px rgba(28, 42, 101, 0.54),
    0 0 20px rgba(120, 166, 255, 0.22);
}

.ambience-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ambience-pill {
  border: 1px solid rgba(175, 193, 255, 0.26);
  border-radius: 15px;
  background: rgba(31, 47, 103, 0.5);
  color: rgba(223, 232, 255, 0.93);
  padding: 10px 9px;
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.ambience-pill strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.ambience-pill small {
  font-size: 0.68rem;
  color: rgba(183, 199, 237, 0.94);
  line-height: 1.25;
}

.ambience-pill.active {
  border-color: rgba(211, 224, 255, 0.46);
  background:
    linear-gradient(136deg, rgba(147, 114, 255, 0.58), rgba(87, 168, 255, 0.5)),
    rgba(42, 58, 118, 0.76);
  box-shadow: 0 12px 22px rgba(19, 31, 80, 0.5), 0 0 16px rgba(110, 157, 255, 0.2);
}

.ambience-pill:hover,
.sleep-mode-btn:hover,
.story-speed-btn:hover {
  transform: translateY(-1px);
}

@keyframes playerBackdropDrift {
  from {
    transform: scale(1.06) translate3d(calc(var(--parallax-x) * 0.08), calc(var(--parallax-y) * 0.1), 0);
  }
  to {
    transform: scale(1.1) translate3d(calc(var(--parallax-x) * -0.06), calc(var(--parallax-y) * 0.12), 0);
  }
}

@keyframes playerWave {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes playerPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.72;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .player-experience__content {
    gap: 14px;
    padding-bottom: calc(138px + env(safe-area-inset-bottom));
  }

  .player-story-head h1 {
    font-size: clamp(1.72rem, 8.2vw, 2.2rem);
  }

  .player-play-circle {
    width: 112px;
    height: 112px;
  }

  .story-waveform {
    width: min(300px, 86%);
    gap: 3px;
  }

  .story-waveform span {
    width: 4px;
  }

  .ambience-pill {
    min-height: 60px;
    padding: 8px 8px;
  }

  .ambience-pill strong {
    font-size: 0.76rem;
  }

  .ambience-pill small {
    font-size: 0.64rem;
  }
}

@media (max-width: 620px) {
  .cinematic-hero--immersive.cinematic-hero--welcome-focus,
  .cinematic-hero--immersive.cinematic-hero--welcome-focus .cinematic-hero__content {
    min-height: 64dvh;
  }

  .cinematic-hero--welcome-focus .cinematic-hero__content {
    padding: 24px 18px 22px;
    gap: 12px;
  }

  .hero-main--welcome {
    font-size: clamp(1.72rem, 7.7vw, 2.18rem);
    max-width: 16ch;
  }

  .welcome-subtitle {
    font-size: 0.94rem;
    line-height: 1.42;
  }

  .welcome-trust {
    font-size: 0.74rem;
    line-height: 1.36;
  }
}

@media (max-width: 420px) {
  .cinematic-hero--immersive.cinematic-hero--welcome-focus,
  .cinematic-hero--immersive.cinematic-hero--welcome-focus .cinematic-hero__content {
    min-height: 62dvh;
  }

  .welcome-screen .hero-actions {
    width: min(100%, 360px);
    margin-top: 8px;
    justify-self: center;
  }
}


