:root {
  --ink: #071018;
  --ink-2: #0d1a26;
  --foam: #e8f1f4;
  --muted: #8aa0b0;
  --line: rgba(232, 241, 244, 0.12);
  --accent: #1ec8b0;
  --accent-2: #3d9cff;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--foam);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(30, 200, 176, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(61, 156, 255, 0.16), transparent 50%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(255, 176, 32, 0.08), transparent 45%),
    linear-gradient(165deg, #071018 0%, #0a1520 45%, #0c1c24 100%);
  overflow-x: hidden;
}

button, a { color: inherit; }

a { text-decoration: none; }

.hidden { display: none !important; }

/* —— Shell —— */
.app {
  width: min(480px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(0.75rem + var(--safe-top)) 1rem calc(1.25rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand span { color: var(--accent); }

.top-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.chip-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip-btn:hover { background: rgba(255, 255, 255, 0.08); }
.chip-btn:active { transform: scale(0.97); }
.chip-btn.pro {
  border-color: rgba(30, 200, 176, 0.45);
  color: var(--accent);
}
.chip-btn.pro.is-on {
  background: rgba(30, 200, 176, 0.15);
}

/* —— Hero brief —— */
.brief {
  position: relative;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(30, 200, 176, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.brief-visual {
  position: relative;
  height: clamp(12rem, 44vw, 15.25rem);
  margin: -1.25rem -1.2rem 0.95rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0;
  background: #02080f;
  contain: layout paint;
}

.brief-visual-stage {
  position: absolute;
  inset: -10% -8%;
  will-change: transform;
  transform: translate3d(0, var(--parallax, 0px), 0);
}

.brief-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
  display: block;
  transform-origin: 42% 62%;
  transform: scale(1.08);
  animation:
    ken-deep 22s cubic-bezier(0.37, 0.01, 0.28, 1) infinite alternate,
    psyche-hue 18s ease-in-out infinite alternate;
  filter: saturate(1.18) contrast(1.08) brightness(0.9);
}

.brief-chroma {
  position: absolute;
  inset: -2%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.42;
  background:
    linear-gradient(95deg, rgba(255, 70, 90, 0.18) 0%, transparent 28%, transparent 72%, rgba(0, 210, 255, 0.2) 100%),
    radial-gradient(ellipse 60% 50% at 30% 70%, rgba(255, 90, 120, 0.12), transparent 55%),
    radial-gradient(ellipse 55% 45% at 75% 40%, rgba(40, 220, 255, 0.14), transparent 58%);
  animation: chroma-breathe 7.5s ease-in-out infinite alternate;
  filter: blur(0.4px);
}

.brief-chroma::before,
.brief-chroma::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: color-dodge;
  opacity: 0.35;
  pointer-events: none;
}

.brief-chroma::before {
  background: linear-gradient(0deg, transparent 55%, rgba(255, 80, 110, 0.22) 100%);
  transform: translate3d(-1.2px, 0, 0);
  animation: chroma-shift-r 5.5s ease-in-out infinite alternate;
}

.brief-chroma::after {
  background: linear-gradient(0deg, transparent 50%, rgba(30, 220, 255, 0.2) 100%);
  transform: translate3d(1.2px, 0, 0);
  animation: chroma-shift-b 5.5s ease-in-out infinite alternate-reverse;
}

.brief-hue {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  background:
    conic-gradient(
      from 120deg at 50% 70%,
      rgba(30, 200, 176, 0.35),
      rgba(61, 156, 255, 0.22),
      rgba(255, 176, 32, 0.28),
      rgba(46, 240, 209, 0.2),
      rgba(30, 200, 176, 0.35)
    );
  animation: hue-spin 28s linear infinite;
}

.brief-rays {
  position: absolute;
  inset: -40%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.28;
  background: repeating-conic-gradient(
    from 0deg at 52% 78%,
    rgba(46, 240, 209, 0.14) 0deg 2deg,
    transparent 2deg 14deg,
    rgba(255, 176, 32, 0.08) 14deg 16deg,
    transparent 16deg 28deg
  );
  mask-image: radial-gradient(ellipse 70% 55% at 50% 75%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 75%, #000 0%, transparent 72%);
  animation: rays-turn 48s linear infinite;
}

.brief-aurora {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse 55% 40% at 18% 72%, rgba(30, 200, 176, 0.42), transparent 62%),
    radial-gradient(ellipse 50% 45% at 82% 28%, rgba(61, 156, 255, 0.26), transparent 60%),
    radial-gradient(ellipse 45% 35% at 55% 88%, rgba(255, 176, 32, 0.2), transparent 58%);
  mix-blend-mode: screen;
  opacity: 0.9;
  animation: aurora-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.brief-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.58;
}

.brief-orb-a {
  width: 42%;
  height: 55%;
  left: -8%;
  bottom: -18%;
  background: radial-gradient(circle, rgba(46, 240, 209, 0.58), transparent 68%);
  animation: orb-float-a 14s ease-in-out infinite alternate;
}

.brief-orb-b {
  width: 36%;
  height: 48%;
  right: -10%;
  top: -12%;
  background: radial-gradient(circle, rgba(61, 156, 255, 0.44), transparent 70%);
  animation: orb-float-b 18s ease-in-out infinite alternate;
}

.brief-orb-c {
  width: 28%;
  height: 34%;
  left: 48%;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.32), transparent 72%);
  animation: orb-float-c 12s ease-in-out infinite alternate;
}

.brief-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.92;
  overflow: visible;
  will-change: transform;
}

.brief-arcs {
  filter: drop-shadow(0 0 2px rgba(46, 240, 209, 0.55));
}

.brief-arc {
  stroke-dasharray: 14 220;
  animation: arc-travel 5.8s linear infinite;
  opacity: 0.85;
}

.brief-arc-a { animation-duration: 5.2s; animation-delay: 0s; }
.brief-arc-b { animation-duration: 6.4s; animation-delay: -1.6s; }
.brief-arc-c { animation-duration: 5.6s; animation-delay: -3.1s; }
.brief-arc-d { animation-duration: 7s; animation-delay: -2.2s; }
.brief-arc-e { animation-duration: 6.1s; animation-delay: -4s; }
.brief-arc-orbit {
  stroke-dasharray: 8 28;
  animation: orbit-dash 14s linear infinite;
  opacity: 0.55;
}

.brief-arc-desktop { display: none; }

@media (min-width: 420px) {
  .brief-arc-desktop { display: block; }
}

.brief-node {
  fill: #2af0d1;
  stroke: rgba(255, 176, 32, 0.75);
  stroke-width: 0.8;
  filter: drop-shadow(0 0 3px rgba(46, 240, 209, 0.9));
  animation: node-breathe 2.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.brief-node.n2,
.brief-node.n5 { fill: #ffb020; animation-delay: -0.7s; }
.brief-node.n3,
.brief-node.n6 { animation-delay: -1.3s; }
.brief-node.n4,
.brief-node.n7 { fill: #3d9cff; animation-delay: -1.9s; }
.brief-node.n8 { animation-delay: -2.4s; }

.brief-pulse {
  stroke: rgba(46, 240, 209, 0.85);
  stroke-width: 1.2;
  animation: node-ring 2.6s ease-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.brief-pulse.p2 {
  stroke: rgba(255, 176, 32, 0.8);
  animation-delay: -0.85s;
  animation-duration: 3s;
}

.brief-pulse.p3 {
  stroke: rgba(61, 156, 255, 0.75);
  animation-delay: -1.5s;
}

.brief-pulse.p4 {
  stroke: rgba(46, 240, 209, 0.7);
  animation-delay: -2.1s;
  animation-duration: 2.9s;
}

.brief-network-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.55;
  background:
    radial-gradient(circle at 12% 67%, rgba(46, 240, 209, 0.35), transparent 14%),
    radial-gradient(circle at 41% 73%, rgba(255, 176, 32, 0.28), transparent 12%),
    radial-gradient(circle at 72% 56%, rgba(61, 156, 255, 0.32), transparent 13%),
    radial-gradient(circle at 84% 61%, rgba(46, 240, 209, 0.22), transparent 11%),
    radial-gradient(ellipse 80% 40% at 50% 88%, rgba(30, 200, 176, 0.18), transparent 60%);
  animation: network-glow-pulse 4.8s ease-in-out infinite alternate;
}

.brief-shimmer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 38%,
    rgba(232, 241, 244, 0.12) 48%,
    rgba(30, 200, 176, 0.18) 52%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: shimmer-sweep 9.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.brief-grain {
  position: absolute;
  inset: -40%;
  z-index: 2;
  opacity: 0.24;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-drift 1.2s steps(3) infinite;
}

.brief-visual-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.22) 0%, transparent 22%, rgba(7, 16, 24, 0.45) 58%, rgba(7, 16, 24, 0.88) 82%, rgba(7, 16, 24, 0.97) 100%),
    linear-gradient(90deg, rgba(7, 16, 24, 0.42) 0%, transparent 20%, transparent 80%, rgba(7, 16, 24, 0.35) 100%),
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(7, 16, 24, 0.75), transparent 70%);
  pointer-events: none;
  z-index: 3;
}

.brief-copy {
  position: relative;
  z-index: 2;
  padding-top: 0.15rem;
}

.brief-copy::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  right: -0.35rem;
  top: -0.55rem;
  bottom: -0.25rem;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 16, 24, 0.55) 0%, rgba(7, 16, 24, 0.28) 55%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.brief::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(61, 156, 255, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.65rem;
  text-shadow: 0 1px 12px rgba(7, 16, 24, 0.65);
}

.live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(30, 200, 176, 0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}

.brief h1 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6.2vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 0.35rem;
  text-shadow: 0 2px 18px rgba(7, 16, 24, 0.75);
}

.brief .when {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.brief .text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(232, 241, 244, 0.94);
  max-width: 38ch;
  text-shadow: 0 1px 10px rgba(7, 16, 24, 0.55);
}

/* —— CTA play —— */
.play-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: linear-gradient(120deg, #2af0d1 0%, #1ec8b0 45%, #3d9cff 130%);
  box-shadow: 0 10px 30px rgba(30, 200, 176, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:active { transform: scale(0.985); }

.btn-ghost {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.95rem 1rem;
  font-weight: 650;
  font-size: 0.9rem;
  cursor: pointer;
}

/* —— Story rail —— */
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 0.25rem;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.section-label h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.section-label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 38%);
  gap: 0.7rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

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

.story-card {
  scroll-snap-align: start;
  aspect-ratio: 9 / 14;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #0a1520;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.story-card .thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
  transition: transform 0.45s ease;
}

.story-card:hover .thumb { transform: scale(1.08); }

.story-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(120deg, color-mix(in srgb, var(--accent, #1ec8b0) 32%, transparent), transparent 58%);
  pointer-events: none;
}

.story-card:hover { transform: translateY(-3px); }

.story-card .cat {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-card .hook {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(0.98rem, 3.6vw, 1.08rem);
  letter-spacing: -0.03em;
  line-height: 1.28;
  color: #f4fafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65), 0 6px 18px rgba(0, 0, 0, 0.45);
}

.story-card .meta-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: rgba(232, 241, 244, 0.7);
}

.fav-mark {
  color: var(--warn);
  opacity: 0;
  transition: opacity 0.2s;
}
.story-card.is-fav .fav-mark { opacity: 1; }

/* —— High-impact motion —— */
.impact-badge,
.player-impact-badge {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  color: #071018;
  background: linear-gradient(110deg, var(--accent), #5eead4 55%, var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 18px rgba(30, 200, 176, 0.35);
  animation: impact-badge-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.story-card.is-impact {
  border-color: color-mix(in srgb, var(--accent, #1ec8b0) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent, #1ec8b0) 35%, transparent),
    0 0 28px color-mix(in srgb, var(--accent, #1ec8b0) 22%, transparent);
  animation: impact-glow 2.4s ease-in-out infinite;
}

.story-card.is-impact .hook {
  animation: impact-hook-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.story-card .impact-streak {
  display: none;
}

.story-card.is-impact .impact-streak {
  display: block;
  position: absolute;
  z-index: 2;
  top: 18%;
  left: -40%;
  width: 55%;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), var(--accent, #1ec8b0), transparent);
  filter: blur(0.2px);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent, #1ec8b0) 70%, transparent);
  animation: impact-streak 1.15s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  pointer-events: none;
}

.player-stage.is-impact {
  animation: impact-stage-pulse 2.8s ease-in-out infinite;
}

.player-stage.is-impact .player-bg::after {
  background:
    linear-gradient(180deg, rgba(2, 8, 13, 0.28) 0%, transparent 28%, rgba(2, 8, 13, 0.88) 72%, rgba(2, 8, 13, 0.96) 100%),
    linear-gradient(120deg, color-mix(in srgb, var(--story-accent, #1ec8b0) 48%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 40% at 80% 20%, rgba(255, 92, 122, 0.18), transparent 60%);
}

.player-impact-badge {
  margin-right: auto;
  animation: impact-badge-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both, impact-badge-pulse 1.8s ease-in-out 0.4s infinite;
}

.player-top:has(.player-impact-badge) {
  gap: 0.45rem;
}

.player-top:has(.player-impact-badge) .player-cat {
  margin-right: auto;
}

.impact-comet {
  position: absolute;
  z-index: 3;
  top: 22%;
  left: -30%;
  width: 42%;
  height: 3px;
  border-radius: 99px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), var(--story-accent, #1ec8b0), transparent);
  box-shadow:
    0 0 16px color-mix(in srgb, var(--story-accent, #1ec8b0) 80%, transparent),
    0 0 28px rgba(255, 255, 255, 0.25);
  animation: impact-comet 0.85s cubic-bezier(0.15, 0.75, 0.2, 1) both;
}

.player-body.impact-fly {
  animation: impact-fly-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.player-body.impact-fly h2 {
  animation: impact-shake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes impact-streak {
  from { transform: translate3d(0, 0, 0) rotate(-12deg); opacity: 0; }
  18% { opacity: 1; }
  to { transform: translate3d(280%, -40%, 0) rotate(-12deg); opacity: 0; }
}

@keyframes impact-comet {
  from { transform: translate3d(0, 0, 0) rotate(-8deg) scaleX(0.4); opacity: 0; }
  12% { opacity: 1; }
  to { transform: translate3d(320%, -55%, 0) rotate(-8deg) scaleX(1.1); opacity: 0; }
}

@keyframes impact-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent, #1ec8b0) 35%, transparent),
      0 0 22px color-mix(in srgb, var(--accent, #1ec8b0) 18%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent, #1ec8b0) 55%, transparent),
      0 0 36px color-mix(in srgb, var(--accent, #1ec8b0) 32%, transparent);
  }
}

@keyframes impact-stage-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}

@keyframes impact-badge-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

@keyframes impact-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 14px rgba(30, 200, 176, 0.3); }
  50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 22px rgba(30, 200, 176, 0.55); }
}

@keyframes impact-hook-in {
  from { opacity: 0; transform: translate3d(-10px, 8px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes impact-fly-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes impact-shake {
  0% { transform: translate3d(-6px, 12px, 0); }
  35% { transform: translate3d(3px, -2px, 0); }
  60% { transform: translate3d(-2px, 1px, 0); }
  100% { transform: none; }
}

/* —— Ad slot —— */
.ad-slot {
  min-height: 90px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}

.ad-slot.pro-hidden { display: none; }

/* —— Directorio vivo —— */
.directory {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.directory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.directory-head h2 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.directory-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.directory-filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.directory-filters::-webkit-scrollbar { display: none; }

.hot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 42%);
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.1rem 0 0.25rem;
}
.hot-strip::-webkit-scrollbar { display: none; }

.hot-pill {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--accent)) 35%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent, #1ec8b0) 18%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.03);
  text-decoration: none;
  min-height: 3.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hot-pill:hover { transform: translateY(-2px); }
.hot-pill:active { transform: scale(0.98); }

.hot-pill img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.hot-pill .hp-text {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.hot-pill .hp-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-pill .hp-meta {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.directory-feed {
  display: grid;
  gap: 0.55rem;
}

.dir-row {
  display: grid;
  grid-template-columns: 1.2rem auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent, #1ec8b0) 10%, transparent), transparent 48%),
    rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.dir-row:hover {
  transform: translateX(2px);
  border-color: color-mix(in srgb, var(--accent, #1ec8b0) 40%, transparent);
}
.dir-row:active { transform: scale(0.99); }

.dir-rank {
  width: 1.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.dir-logo {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  object-fit: contain;
  padding: 0.2rem;
}

.dir-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.dir-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}

.dir-name {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.98rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dir-region {
  flex-shrink: 0;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 600;
}

.dir-why {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(232, 241, 244, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dir-side {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.dir-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.dir-signal {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(232, 241, 244, 0.85);
  white-space: nowrap;
}
.dir-signal.trending {
  color: var(--ink);
  background: linear-gradient(120deg, #2af0d1, #1ec8b0);
  border-color: transparent;
}
.dir-signal.radar {
  color: var(--accent);
  border-color: rgba(30, 200, 176, 0.4);
}

.directory-note {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.4;
}

.dir-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.75rem 0;
}

/* —— Filters —— */
.filters {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: none;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.filters::-webkit-scrollbar { display: none; }

.filter {
  flex: 0 0 auto;
  border: 1px solid rgba(232, 241, 244, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 241, 244, 0.82);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter:hover {
  color: var(--foam);
  background: rgba(255, 255, 255, 0.08);
}
.filter.active {
  color: var(--ink);
  background: var(--foam);
  border-color: var(--foam);
}

/* —— Footer —— */
.foot {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  animation: rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.foot a { color: rgba(232, 241, 244, 0.75); text-decoration: underline; text-underline-offset: 3px; }

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  width: 100%;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

.foot-nav a {
  text-decoration: none;
  color: rgba(232, 241, 244, 0.82);
}

.foot-nav a:hover { color: var(--accent); }

/* —— Páginas SEO satélite —— */
.seo-body .seo-app {
  width: min(720px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(0.85rem + var(--safe-top)) 1.15rem calc(1.5rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seo-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.seo-top .brand {
  text-decoration: none;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.seo-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0;
}

.seo-nav a:hover,
.seo-nav a.is-active {
  color: var(--foam);
}

.seo-nav a.is-active {
  color: var(--accent);
  font-weight: 600;
}

.seo-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.seo-crumbs a {
  color: rgba(232, 241, 244, 0.75);
  text-decoration: none;
}

.seo-crumbs a:hover { color: var(--accent); }
.seo-crumbs .sep { opacity: 0.45; }

.seo-main h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0.25rem 0 0;
}

.seo-when {
  margin: 0.35rem 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.seo-lead {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.seo-brief,
.seo-block,
.seo-prose {
  margin-top: 1.35rem;
}

.seo-brief h2,
.seo-block h2,
.seo-prose h2,
.seo-story h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.seo-brief p,
.seo-prose p,
.seo-story p {
  margin: 0;
  line-height: 1.55;
  color: rgba(232, 241, 244, 0.9);
}

.seo-prose ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.15rem;
  color: rgba(232, 241, 244, 0.88);
  line-height: 1.55;
}

.seo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seo-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(13, 26, 38, 0.65);
  color: var(--foam);
  font-size: 0.82rem;
  text-decoration: none;
}

.seo-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.seo-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--cat, var(--accent)) 16%, transparent), transparent 55%),
    rgba(13, 26, 38, 0.55);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.seo-card:hover {
  border-color: color-mix(in srgb, var(--cat, var(--accent)) 50%, transparent);
  transform: translateY(-2px);
}

.seo-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.seo-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}

.seo-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.seo-stories {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-story {
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(13, 26, 38, 0.45);
}

.seo-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.seo-badge {
  color: #071018;
  background: var(--warn);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
}

.seo-source {
  display: inline-block;
  margin-top: 0.65rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-source:hover { text-decoration: underline; }

.seo-dir {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-dir li { line-height: 1.4; }
.seo-dir a { color: var(--foam); font-weight: 600; text-decoration: none; }
.seo-dir a:hover { color: var(--accent); }

.seo-muted { color: var(--muted); font-size: 0.86rem; }
.seo-note { color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.seo-empty { color: var(--muted); }

.seo-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.seo-cta a:not(.seo-btn) {
  color: rgba(232, 241, 244, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--accent), #5eead4 55%, var(--accent-2));
  color: #071018 !important;
  font-weight: 700;
  text-decoration: none !important;
}

.seo-foot {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.seo-foot .foot-nav { margin-bottom: 0.65rem; }
.seo-foot a { color: rgba(232, 241, 244, 0.75); }

/* Home SSR-lite snapshot + about */
.seo-home-snap,
.seo-about-lite {
  margin-top: 0.35rem;
  padding: 1rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.seo-home-snap h2,
.seo-about-lite h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.45rem;
}

.seo-home-snap-lead,
.seo-about-lite p {
  margin: 0 0 0.75rem;
  color: rgba(232, 241, 244, 0.82);
  font-size: 0.9rem;
  line-height: 1.45;
}

.seo-home-snap-list {
  margin: 0 0 0.9rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.55rem;
  color: rgba(232, 241, 244, 0.88);
  font-size: 0.86rem;
  line-height: 1.4;
}

.seo-home-snap a,
.seo-about-lite a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* —— Player —— */
.player {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #02080d;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.985);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.player.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.player-stage {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: calc(0.65rem + var(--safe-top)) 0.75rem calc(1rem + var(--safe-bottom));
  background: #050d14;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

.player-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.player-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: ken 18s ease-in-out infinite alternate;
  filter: saturate(1.02) brightness(0.58);
}

.player-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 8, 13, 0.55) 0%, rgba(2, 8, 13, 0.18) 26%, rgba(2, 8, 13, 0.78) 62%, rgba(2, 8, 13, 0.96) 100%),
    linear-gradient(120deg, color-mix(in srgb, var(--story-accent, #1ec8b0) 38%, transparent), transparent 55%);
}

.progress-row {
  display: flex;
  gap: 0.28rem;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 4;
}

.progress-row i {
  flex: 1;
  height: 2.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.progress-row i b {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: inherit;
  transform-origin: left center;
  transition: width 40ms linear;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 4;
}

.player-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-tools {
  display: flex;
  gap: 0.35rem;
}

.icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
}

.icon-btn.active { color: var(--warn); border-color: rgba(255, 176, 32, 0.5); }

.player-body {
  margin-top: auto;
  padding: 0 0.35rem 1.1rem;
  max-width: 28rem;
  position: relative;
  z-index: 4;
  animation: story-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.player-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 6.4vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 0 0 0.85rem;
  color: #f7fcfd;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 10px 28px rgba(0, 0, 0, 0.35);
}

.player-body p {
  margin: 0 0 1.1rem;
  font-size: clamp(1.02rem, 3.8vw, 1.12rem);
  line-height: 1.55;
  color: rgba(244, 250, 252, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  max-width: 36em;
}

.player-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.player-actions a,
.player-actions button {
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.86rem;
  font-weight: 650;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.tap-zones {
  position: absolute;
  inset: 3.5rem 0 5.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 2;
}

.hint {
  position: absolute;
  left: 50%;
  bottom: calc(1.4rem + var(--safe-bottom));
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.04em;
  z-index: 3;
  pointer-events: none;
}

/* —— Modal Pro —— */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(2, 8, 13, 0.72);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: end center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: min(420px, 100%);
  background:
    linear-gradient(160deg, rgba(30, 200, 176, 0.12), transparent 40%),
    #0d1822;
  border: 1px solid var(--line);
  border-radius: 22px 22px 18px 18px;
  padding: 1.35rem 1.25rem calc(1.25rem + var(--safe-bottom));
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-backdrop.open .modal { transform: none; }

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
}

.modal .price {
  font-size: 1.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0.75rem 0 0.25rem;
}

.modal .price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.modal ul {
  margin: 0.9rem 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.modal li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: rgba(232, 241, 244, 0.9);
}

.modal li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
}

.modal .row {
  display: grid;
  gap: 0.55rem;
}

.modal .fine {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

@keyframes ken {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1%, 0); }
}

@keyframes ken-deep {
  0% { transform: scale(1.08) translate3d(0, 0, 0); }
  35% { transform: scale(1.16) translate3d(-3.2%, -1.4%, 0); }
  70% { transform: scale(1.2) translate3d(1.6%, -2.6%, 0); }
  100% { transform: scale(1.14) translate3d(-1.2%, 1.1%, 0); }
}

@keyframes psyche-hue {
  0% { filter: saturate(1.18) contrast(1.08) brightness(0.9) hue-rotate(-6deg); }
  40% { filter: saturate(1.28) contrast(1.1) brightness(0.93) hue-rotate(8deg); }
  70% { filter: saturate(1.22) contrast(1.12) brightness(0.88) hue-rotate(14deg); }
  100% { filter: saturate(1.15) contrast(1.06) brightness(0.91) hue-rotate(-4deg); }
}

@keyframes chroma-breathe {
  from { opacity: 0.28; transform: scale(1); }
  to { opacity: 0.55; transform: scale(1.03); }
}

@keyframes chroma-shift-r {
  from { transform: translate3d(-0.6px, 0.4px, 0); opacity: 0.25; }
  to { transform: translate3d(-2px, -0.6px, 0); opacity: 0.45; }
}

@keyframes chroma-shift-b {
  from { transform: translate3d(0.6px, -0.3px, 0); opacity: 0.22; }
  to { transform: translate3d(2.1px, 0.5px, 0); opacity: 0.42; }
}

@keyframes hue-spin {
  from { transform: rotate(0deg) scale(1.05); }
  to { transform: rotate(360deg) scale(1.05); }
}

@keyframes rays-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes arc-travel {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -234; }
}

@keyframes orbit-dash {
  from { stroke-dashoffset: 0; opacity: 0.35; }
  50% { opacity: 0.7; }
  to { stroke-dashoffset: -72; opacity: 0.4; }
}

@keyframes node-breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.18); }
}

@keyframes node-ring {
  0% { opacity: 0.85; transform: scale(0.55); stroke-width: 1.6; }
  70% { opacity: 0; transform: scale(2.6); stroke-width: 0.4; }
  100% { opacity: 0; transform: scale(2.8); }
}

@keyframes network-glow-pulse {
  from { opacity: 0.35; filter: brightness(0.95); }
  to { opacity: 0.72; filter: brightness(1.15); }
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, 1%, 0) scale(1) rotate(0deg); opacity: 0.72; }
  to { transform: translate3d(3%, -2%, 0) scale(1.08) rotate(4deg); opacity: 0.95; }
}

@keyframes orb-float-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(18%, -22%, 0) scale(1.18); }
}

@keyframes orb-float-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-16%, 20%, 0) scale(1.22); }
}

@keyframes orb-float-c {
  from { transform: translate3d(0, 0, 0) scale(0.9); opacity: 0.35; }
  to { transform: translate3d(-10%, 14%, 0) scale(1.25); opacity: 0.65; }
}

@keyframes shimmer-sweep {
  0%, 18% { background-position: 130% 0; opacity: 0; }
  35% { opacity: 0.85; }
  55% { background-position: -40% 0; opacity: 0.5; }
  70%, 100% { background-position: -60% 0; opacity: 0; }
}

@keyframes grain-drift {
  0% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-2%, 1.5%, 0); }
  66% { transform: translate3d(1.5%, -2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

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

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

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(30, 200, 176, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(30, 200, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 200, 176, 0); }
}

@media (max-width: 380px) {
  .brief-rays { opacity: 0.16; }
  .brief-chroma { opacity: 0.28; }
  .brief-hue { opacity: 0.35; }
  .brief-pulses { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .story-card.is-impact,
  .player-stage.is-impact {
    filter: none !important;
  }
  .story-card .impact-streak,
  .impact-comet {
    display: none !important;
  }
  .brief-visual-img {
    transform: scale(1.06) !important;
    filter: saturate(1.08) contrast(1.04) brightness(0.92) !important;
  }
  .brief-visual-stage {
    transform: none !important;
  }
  .brief-aurora,
  .brief-orb,
  .brief-shimmer,
  .brief-chroma,
  .brief-hue,
  .brief-rays,
  .brief-network-glow {
    animation: none !important;
  }
  .brief-aurora { opacity: 0.45; }
  .brief-orb { opacity: 0.35; }
  .brief-shimmer { opacity: 0.25; }
  .brief-chroma { opacity: 0.18; }
  .brief-hue { opacity: 0.22; transform: none; }
  .brief-rays { opacity: 0.12; transform: none; }
  .brief-network-glow { opacity: 0.28; }
  .brief-grain {
    opacity: 0.1;
    animation: none !important;
  }
  .brief-arc,
  .brief-arc-orbit,
  .brief-node,
  .brief-pulse {
    animation: none !important;
  }
  .brief-arc {
    stroke-dasharray: none;
    opacity: 0.45;
  }
  .brief-arc-orbit {
    stroke-dasharray: 4 18;
    opacity: 0.3;
  }
  .brief-pulse { display: none; }
  .brief-node { opacity: 0.75; }
}

@media (min-width: 900px) {
  .app { padding-top: 1.5rem; }
  .rail { grid-auto-columns: minmax(150px, 28%); }
}
