@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

:root {
  --bg: #08070a;
  --panel: #111015;
  --panel-2: #17151b;
  --text: #f6f3f7;
  --muted: #aaa4ad;
  --line: rgba(255,255,255,.12);
  --blood: #d21f35;
  --blood-dark: #77101d;
  --glow: rgba(210,31,53,.36);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, rgba(117,14,30,.18), transparent 31rem),
    linear-gradient(180deg, #09080b 0%, #070608 100%);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(145deg, #1a171e, #0a090c);
  box-shadow: inset 0 0 20px rgba(255,255,255,.03), 0 0 26px rgba(210,31,53,.12);
  font-family: "Oswald", sans-serif;
  letter-spacing: .08em;
}
.brand strong {
  display: block;
  font-family: "Oswald", sans-serif;
  letter-spacing: .09em;
  font-size: 1.02rem;
}
.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
  font-size: .72rem;
}
.header-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .ghost-button, .text-button, .drawer-close {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.icon-button {
  width: 42px;
  height: 42px;
}
.icon-button[aria-pressed="true"] {
  border-color: rgba(210,31,53,.7);
  box-shadow: 0 0 20px var(--glow);
}
.sound-off { display: none; }
.icon-button[aria-pressed="false"] .sound-on { display: none; }
.icon-button[aria-pressed="false"] .sound-off { display: inline; }
.ghost-button {
  min-height: 42px;
  padding: 0 17px;
  font-weight: 600;
}
.ghost-button:hover, .icon-button:hover { border-color: rgba(255,255,255,.32); }

main { overflow: hidden; }
.hero {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 6vw;
  padding: 72px 0;
}
.eyebrow {
  margin: 0 0 13px;
  color: #e46b7a;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
}
.hero h1 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(4.8rem, 12vw, 10rem);
  line-height: .82;
  margin: 0;
  letter-spacing: -.035em;
}
.hero h1 span {
  color: var(--blood);
  text-shadow: 0 0 42px var(--glow);
}
.lead {
  max-width: 650px;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: #d7d1d9;
  margin: 30px 0 22px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.hero-meta span {
  font-size: .77rem;
  color: var(--muted);
  padding: 8px 11px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}
.primary-button {
  border: 0;
  border-radius: 8px;
  min-height: 54px;
  padding: 0 22px;
  background: linear-gradient(180deg, #e3263d 0%, #aa1326 100%);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(210,31,53,.24);
}
.primary-button:hover { filter: brightness(1.08); }
.microcopy {
  color: #7f7982;
  font-size: .75rem;
  margin-top: 12px;
}

.hero-art {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142,15,34,.18), transparent 65%);
  filter: blur(12px);
}
.door-frame {
  width: min(72vw, 340px);
  height: min(120vw, 530px);
  position: relative;
  padding: 17px;
  background: linear-gradient(90deg, #161219, #2a232d 45%, #0d0b10);
  box-shadow:
    0 45px 90px rgba(0,0,0,.78),
    inset 0 0 26px rgba(255,255,255,.025);
  transform: rotateY(-8deg) rotateX(1deg);
}
.door {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 16%, transparent 78%, rgba(0,0,0,.32)),
    linear-gradient(180deg, #221e24, #0c0a0e);
  border: 1px solid rgba(255,255,255,.08);
}
.door::before {
  content: "";
  position: absolute;
  inset: 7% 8%;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 0 70px rgba(0,0,0,.6);
}
.room-number {
  position: absolute;
  top: 21%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Oswald", sans-serif;
  font-size: 4.5rem;
  color: #b8aeb9;
  letter-spacing: -.04em;
  text-shadow: 0 4px 12px #000;
}
.door-light {
  position: absolute;
  left: 50%;
  top: 19%;
  width: 105px;
  height: 105px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,31,53,.17), transparent 67%);
  animation: pulse 4.2s ease-in-out infinite;
}
.handle {
  position: absolute;
  right: 12%;
  top: 54%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #b7aeb9, #3a333d 52%, #161217);
  box-shadow: 0 0 0 5px rgba(0,0,0,.25);
}
.hallway-glow {
  position: absolute;
  right: -8px;
  top: 18%;
  width: 9px;
  height: 66%;
  background: linear-gradient(180deg, transparent, #b3162b 25%, #e33a4f 52%, #8b0b1d 80%, transparent);
  filter: blur(3px);
  opacity: .85;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: translateX(-50%) scale(1.14); opacity:.72; } }
@keyframes breathe { 50% { opacity:.35; } }

.story-shell, .result-panel {
  width: min(calc(100% - 32px), 860px);
  margin: 0 auto 90px;
}
.hidden { display: none !important; }
.story-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .75rem;
  letter-spacing: .12em;
}
.text-button {
  padding: 8px 12px;
  font-size: .75rem;
}
.progress-track {
  height: 3px;
  background: #201d22;
  margin: 12px 0 22px;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--blood);
  box-shadow: 0 0 15px var(--glow);
  transition: width .35s ease;
}
.story-card {
  background:
    radial-gradient(circle at 87% 13%, rgba(120,14,30,.13), transparent 18rem),
    linear-gradient(145deg, #17141a, #0e0d11);
  border: 1px solid var(--line);
  padding: clamp(28px, 6vw, 58px);
  box-shadow: 0 35px 90px rgba(0,0,0,.38);
}
.story-card h2, .result-panel h2, .section-heading h2, .premium-card h2, .manifesto h2 {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.04;
  margin: 0;
}
.story-card > p:not(.eyebrow) {
  color: #d6d0d8;
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 22px 0 30px;
}
.choice-list {
  display: grid;
  gap: 12px;
}
.choice-button {
  width: 100%;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  padding: 17px 18px;
  cursor: pointer;
  transition: .2s ease;
}
.choice-button:hover {
  transform: translateX(4px);
  border-color: rgba(210,31,53,.66);
  background: rgba(210,31,53,.07);
}

.result-panel {
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(160,16,37,.22), transparent 25rem),
    #111015;
  border: 1px solid var(--line);
  padding: clamp(38px, 8vw, 72px);
}
.result-panel > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px auto 30px;
  color: #d0cad2;
  line-height: 1.7;
}
.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 28px 0;
}
.result-stats > div { padding: 22px 12px; }
.result-stats > div + div { border-left: 1px solid var(--line); }
.result-stats strong {
  display: block;
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
}
.result-stats span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .75rem;
}
.result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vault-section, .premium-section, .manifesto {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}
.vault-section { padding: 90px 0 70px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.section-heading h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  max-width: 760px;
}
.vault-count {
  white-space: nowrap;
  color: var(--muted);
  font-size: .78rem;
  border: 1px solid var(--line);
  padding: 8px 11px;
}
.vault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.vault-card {
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.74)),
    radial-gradient(circle at 75% 15%, rgba(155,18,39,.2), transparent 12rem),
    #151219;
  border: 1px solid var(--line);
}
.vault-card:nth-child(2) {
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.74)),
    radial-gradient(circle at 35% 10%, rgba(72,74,93,.22), transparent 12rem),
    #111116;
}
.vault-card:nth-child(3) {
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.74)),
    radial-gradient(circle at 70% 15%, rgba(117,135,159,.18), transparent 12rem),
    #101216;
}
.vault-tag {
  align-self: flex-start;
  font-size: .65rem;
  letter-spacing: .14em;
  color: #e98290;
  border: 1px solid rgba(210,31,53,.3);
  padding: 6px 8px;
}
.vault-card h3 {
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  margin: auto 0 10px;
}
.vault-card p {
  color: #c6c0c8;
  line-height: 1.55;
  margin: 0 0 18px;
}
.vault-meta {
  color: #817b84;
  font-size: .72rem;
}

.premium-section { padding: 30px 0 95px; }
.premium-card {
  padding: clamp(30px, 7vw, 70px);
  border: 1px solid rgba(210,31,53,.38);
  background:
    radial-gradient(circle at 86% 18%, rgba(210,31,53,.23), transparent 24rem),
    linear-gradient(135deg, #19151b, #0c0b0e);
  box-shadow: 0 35px 100px rgba(0,0,0,.35);
}
.premium-card h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); }
.premium-card > p:not(.eyebrow) {
  max-width: 720px;
  color: #cfc8d1;
  line-height: 1.7;
  font-size: 1.05rem;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 28px 0;
}
.price-row strong {
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
}
.price-row strong span, .price-row > span {
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: .9rem;
}
.disabled-demo { opacity: .68; cursor: not-allowed; }

.manifesto {
  text-align: center;
  padding: 110px 0 130px;
}
.manifesto h2 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2.8rem, 8vw, 6.7rem);
}
.manifesto > p:last-child {
  max-width: 670px;
  margin: 24px auto 0;
  color: var(--muted);
  line-height: 1.7;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.drawer[aria-hidden="false"] { pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  opacity: 0;
  transition: .25s ease;
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(90vw, 410px);
  height: 100%;
  background: #111015;
  border-left: 1px solid var(--line);
  padding: 70px 26px 30px;
  transform: translateX(102%);
  transition: .28s ease;
}
.drawer[aria-hidden="false"] .drawer-backdrop { opacity: 1; }
.drawer[aria-hidden="false"] .drawer-panel { transform: translateX(0); }
.drawer-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
}
.drawer-panel h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2.5rem;
  margin: 0 0 30px;
}
.profile-stat {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.profile-stat strong { color: var(--text); text-align: right; }
.drawer-note {
  margin-top: 28px;
  color: #8d8790;
  line-height: 1.6;
  font-size: .82rem;
}
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 30px 0 45px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #736e76;
  font-size: .72rem;
}
.site-footer strong { color: #a7a0a9; letter-spacing: .09em; }

@media (max-width: 800px) {
  .site-header { min-height: 72px; }
  .brand small { display: none; }
  .ghost-button { padding: 0 13px; font-size: .82rem; }
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 52px 0 82px;
  }
  .hero-copy { order: 2; }
  .hero-art {
    order: 1;
    min-height: 440px;
  }
  .door-frame {
    width: 245px;
    height: 390px;
  }
  .room-number { font-size: 3.5rem; }
  .vault-grid { grid-template-columns: 1fr; }
  .vault-card { min-height: 250px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 520px) {
  .site-header { width: min(calc(100% - 22px), var(--max)); }
  .hero, .story-shell, .result-panel, .vault-section, .premium-section, .manifesto, .site-footer {
    width: min(calc(100% - 22px), var(--max));
  }
  .brand strong { font-size: .88rem; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions .ghost-button { font-size: 0; width: 42px; padding: 0; }
  .header-actions .ghost-button::after { content: "SF"; font-size: .78rem; }
  .hero { padding-top: 36px; }
  .hero-art { min-height: 390px; }
  .door-frame { width: 215px; height: 345px; }
  .hero h1 { font-size: 5.35rem; }
  .lead { margin-top: 24px; font-size: 1rem; }
  .primary-button { width: 100%; }
  .result-actions .ghost-button { width: 100%; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stats > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .price-row { flex-direction: column; gap: 3px; }
}


/* v0.2: clearer header controls and longer-story reading layout */
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.header-control {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.header-control:hover {
  border-color: rgba(255,255,255,.34);
}
.header-control[aria-pressed="true"] {
  border-color: rgba(210,31,53,.72);
  box-shadow: 0 0 20px var(--glow);
}
.control-icon {
  font-size: .95rem;
  color: #e46b7a;
}
.story-card {
  min-height: 470px;
}
.story-card > p:not(.eyebrow) {
  white-space: pre-line;
}
.choice-button {
  line-height: 1.45;
}
.story-topline {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(8,7,10,.98), rgba(8,7,10,.92));
}

@media (max-width: 800px) {
  .site-header {
    min-height: 112px;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .header-actions {
    width: 100%;
  }
  .header-control {
    flex: 1;
    justify-content: center;
  }
  .brand small {
    display: block;
  }
}

@media (max-width: 520px) {
  .header-actions .header-control {
    width: auto;
    padding: 0 12px;
    font-size: .78rem;
  }
  .header-actions .header-control::after {
    content: none !important;
  }
  .brand strong {
    font-size: .96rem;
  }
  .story-card {
    min-height: 520px;
  }
}


/* v0.3 — explicit mobile-safe header controls */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.top-control {
  -webkit-appearance: none !important;
  appearance: none !important;
  min-height: 48px !important;
  padding: 7px 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(28,24,31,.96), rgba(12,10,14,.96)) !important;
  color: #f6f3f7 !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 9px 26px rgba(0,0,0,.28) !important;
  cursor: pointer !important;
}
.top-control:active {
  transform: translateY(1px);
}
.top-control[aria-pressed="true"] {
  border-color: rgba(210,31,53,.7) !important;
  background:
    radial-gradient(circle at 20% 20%, rgba(210,31,53,.16), transparent 55%),
    linear-gradient(180deg, rgba(35,25,30,.98), rgba(15,10,13,.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 0 24px rgba(210,31,53,.22) !important;
}
.top-control-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: none;
  stroke: #e46b7a;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.top-control-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  white-space: nowrap;
}
.top-control-copy strong {
  font-size: .78rem;
  line-height: 1.1;
  color: #f7f3f7;
}
.top-control-copy small {
  font-size: .62rem;
  line-height: 1.1;
  color: #918a94;
}
#soundToggle[aria-pressed="true"] .sound-wave {
  opacity: 1;
}
#soundToggle[aria-pressed="false"] .sound-wave {
  opacity: .22;
}

/* Richer story presentation */
.story-card {
  min-height: 560px;
  background:
    radial-gradient(circle at 86% 10%, rgba(123,14,31,.17), transparent 22rem),
    radial-gradient(circle at 12% 85%, rgba(55,45,61,.12), transparent 25rem),
    linear-gradient(145deg, #17141a, #0d0c10);
}
.story-card > p:not(.eyebrow) {
  white-space: pre-line;
  font-size: clamp(1.02rem, 2.3vw, 1.15rem);
  line-height: 1.84;
  letter-spacing: .003em;
  color: #d9d3db;
  text-wrap: pretty;
}
.choice-button {
  border-radius: 8px;
  padding: 18px 19px;
  line-height: 1.5;
}
.choice-button::before {
  content: "›";
  color: #e46b7a;
  margin-right: 9px;
}
.progress-track {
  height: 4px;
}

@media (max-width: 800px) {
  .site-header {
    align-items: stretch !important;
  }
  .header-actions {
    width: 100% !important;
  }
  .top-control {
    flex: 1 1 0 !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 520px) {
  .top-control {
    min-width: 0 !important;
    padding: 7px 9px !important;
  }
  .top-control-copy strong {
    font-size: .72rem;
  }
  .top-control-copy small {
    font-size: .56rem;
  }
  .top-control-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .story-card {
    min-height: 640px;
    padding: 30px 22px;
  }
}


/* ================================================================
   v0.4 — Cinematic Story Pass
   ================================================================ */

.story-shell {
  position: relative;
}

.story-card {
  overflow: hidden;
  padding: 0 !important;
  min-height: 0 !important;
}

.story-copy {
  padding: clamp(30px, 6vw, 58px);
}

.scene-visual {
  position: relative;
  height: clamp(210px, 42vw, 370px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background:
    radial-gradient(circle at 68% 32%, rgba(157,20,42,.25), transparent 30%),
    linear-gradient(155deg, #17131a, #08070a 72%);
  isolation: isolate;
}

.scene-visual::before,
.scene-visual::after,
.scene-visual-prop::before,
.scene-visual-prop::after {
  content: "";
  position: absolute;
}

.scene-visual::after {
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.58)),
    radial-gradient(circle at 50% 45%, transparent 0 25%, rgba(0,0,0,.45) 82%);
}

.scene-visual-grain {
  position: absolute;
  inset: 0;
  z-index: 9;
  opacity: .11;
  mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(circle at 30% 20%, rgba(255,255,255,.1) 0 1px, transparent 1px 4px);
  animation: visual-grain .32s steps(2) infinite;
}

.scene-visual-text {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 12;
  color: rgba(255,255,255,.76);
  font-family: "Oswald", sans-serif;
  letter-spacing: .16em;
  font-size: .72rem;
  text-shadow: 0 2px 10px #000;
}

.scene-visual-prop {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.scene-visual.is-entering {
  animation: scene-flicker .68s ease;
}

@keyframes visual-grain {
  0% { transform: translate(0,0); }
  50% { transform: translate(1px,-1px); }
  100% { transform: translate(-1px,1px); }
}

@keyframes scene-flicker {
  0% { opacity: .2; filter: brightness(.5); }
  18% { opacity: 1; filter: brightness(1.3); }
  28% { opacity: .55; filter: brightness(.75); }
  42% { opacity: 1; filter: brightness(1.08); }
  100% { opacity: 1; filter: none; }
}

/* Motel room / door */
.scene-visual[data-scene="room"] {
  background:
    radial-gradient(circle at 74% 48%, rgba(203,28,52,.24), transparent 19%),
    linear-gradient(90deg, #08070a 0 16%, #171319 16% 84%, #070609 84%);
}
.scene-visual[data-scene="room"] .scene-visual-prop::before {
  width: 31%;
  height: 78%;
  left: 34.5%;
  top: 11%;
  border: 10px solid #252029;
  background:
    radial-gradient(circle at 82% 52%, #9a8e9c 0 3px, #302a32 4px 8px, transparent 9px),
    linear-gradient(180deg, #171319, #09080b);
  box-shadow: 24px 0 27px rgba(185,20,43,.22), 0 30px 55px #000;
}
.scene-visual[data-scene="room"] .scene-visual-prop::after {
  content: "13";
  left: 45%;
  top: 28%;
  color: #c7bac8;
  font: 700 clamp(2.2rem, 7vw, 4.2rem)/1 "Oswald", sans-serif;
  text-shadow: 0 0 20px rgba(210,31,53,.35);
}

/* Telephone */
.scene-visual[data-scene="phone"] {
  background:
    radial-gradient(circle at 50% 74%, rgba(198,24,47,.18), transparent 34%),
    linear-gradient(180deg, #121016, #070609);
}
.scene-visual[data-scene="phone"] .scene-visual-prop::before {
  width: 35%;
  height: 24%;
  left: 32.5%;
  top: 45%;
  border-radius: 48% 48% 17% 17%;
  background: linear-gradient(180deg, #514752, #171318);
  box-shadow: 0 25px 50px #000, inset 0 2px 0 rgba(255,255,255,.14);
}
.scene-visual[data-scene="phone"] .scene-visual-prop::after {
  width: 45%;
  height: 12%;
  left: 27.5%;
  top: 35%;
  border-radius: 999px;
  border: 8px solid #393039;
  background: #0a090b;
  transform: rotate(-3deg);
  box-shadow: 0 8px 22px #000;
  animation: receiver-tremble 3.8s ease-in-out infinite;
}
@keyframes receiver-tremble {
  0%, 86%, 100% { transform: rotate(-3deg) translateX(0); }
  89% { transform: rotate(-2deg) translateX(2px); }
  92% { transform: rotate(-4deg) translateX(-2px); }
  95% { transform: rotate(-3deg) translateX(1px); }
}

/* Mirror */
.scene-visual[data-scene="mirror"],
.scene-visual[data-scene="glass"] {
  background:
    radial-gradient(circle at 52% 40%, rgba(177,198,211,.14), transparent 31%),
    linear-gradient(135deg, #16171b, #07080a);
}
.scene-visual[data-scene="mirror"] .scene-visual-prop::before,
.scene-visual[data-scene="glass"] .scene-visual-prop::before {
  width: 39%;
  height: 76%;
  left: 30.5%;
  top: 10%;
  border: 10px solid #27252b;
  background:
    linear-gradient(110deg, rgba(255,255,255,.14), transparent 22% 58%, rgba(255,255,255,.05)),
    linear-gradient(180deg, #32333a, #111217);
  box-shadow: 0 30px 65px #000;
}
.scene-visual[data-scene="mirror"] .scene-visual-prop::after {
  width: 19%;
  height: 40%;
  left: 40.5%;
  top: 31%;
  border-radius: 45% 45% 38% 38%;
  background: rgba(9,8,11,.8);
  filter: blur(2px);
  animation: mirror-press 4s ease-in-out infinite;
}
@keyframes mirror-press {
  50% { transform: scale(1.06); opacity: .72; }
}
.scene-visual[data-scene="glass"] {
  background:
    repeating-conic-gradient(from 8deg at 50% 48%, rgba(255,255,255,.11) 0 1deg, transparent 1deg 17deg),
    radial-gradient(circle, rgba(186,208,220,.15), transparent 48%),
    #0b0b0f;
}

/* Door / visitor */
.scene-visual[data-scene="door"] {
  background:
    linear-gradient(90deg, #0a090c, #19161c 38% 62%, #09080b);
}
.scene-visual[data-scene="door"] .scene-visual-prop::before {
  width: 42%;
  height: 92%;
  left: 29%;
  top: 8%;
  background: linear-gradient(180deg, #1d191f, #09080b);
  border-left: 8px solid #2b252d;
  border-right: 8px solid #141116;
  box-shadow: inset 0 0 75px #000, 0 0 40px #000;
}
.scene-visual[data-scene="door"] .scene-visual-prop::after {
  width: 2px;
  height: 73%;
  left: 29%;
  top: 18%;
  background: #d51d38;
  box-shadow: 0 0 18px #e2233f;
  animation: door-seam 3.5s ease-in-out infinite;
}
@keyframes door-seam {
  50% { opacity: .3; box-shadow: 0 0 5px #d51d38; }
}

/* Hallway */
.scene-visual[data-scene="hallway"] {
  background:
    linear-gradient(90deg, rgba(0,0,0,.75), transparent 31% 69%, rgba(0,0,0,.78)),
    repeating-linear-gradient(90deg, #131016 0 10%, #29232b 10% 12%, #0b090d 12% 22%),
    linear-gradient(180deg, #17141a, #070609);
  perspective: 500px;
}
.scene-visual[data-scene="hallway"] .scene-visual-prop::before {
  width: 18%;
  height: 74%;
  left: 41%;
  top: 10%;
  clip-path: polygon(28% 0, 72% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(191,25,48,.3), rgba(0,0,0,.1));
  filter: blur(7px);
}
.scene-visual[data-scene="hallway"] .scene-visual-prop::after {
  content: "13   13   13   13";
  left: 4%;
  right: 4%;
  top: 42%;
  color: rgba(220,211,222,.42);
  font: 600 clamp(1rem, 4vw, 2rem)/1 "Oswald", sans-serif;
  letter-spacing: 1.2em;
  white-space: nowrap;
  overflow: hidden;
}

/* Ledger */
.scene-visual[data-scene="ledger"] {
  background:
    radial-gradient(ellipse at 50% 55%, rgba(167,20,39,.18), transparent 45%),
    linear-gradient(180deg, #171218, #080709);
}
.scene-visual[data-scene="ledger"] .scene-visual-prop::before {
  width: 54%;
  height: 58%;
  left: 23%;
  top: 24%;
  border-radius: 4px 10px 10px 4px;
  background:
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(95,22,34,.34) 19px 20px),
    linear-gradient(90deg, #d2c1aa 0 48%, #9b8977 49% 51%, #c7b59f 52%);
  transform: rotate(-4deg);
  box-shadow: 0 30px 55px #000;
}
.scene-visual[data-scene="ledger"] .scene-visual-prop::after {
  content: "YOUR NAME";
  left: 34%;
  top: 43%;
  color: #7f0d20;
  font: 700 clamp(.8rem, 3vw, 1.5rem)/1 "Oswald", sans-serif;
  letter-spacing: .12em;
  transform: rotate(-4deg);
}

/* Stairs / below bed */
.scene-visual[data-scene="stairs"] {
  background:
    linear-gradient(180deg, rgba(136,12,31,.25), transparent 32%),
    repeating-linear-gradient(165deg, #070609 0 18px, #1a161c 19px 32px);
}
.scene-visual[data-scene="stairs"] .scene-visual-prop::before {
  width: 14%;
  height: 67%;
  left: 43%;
  top: 22%;
  border-radius: 48% 48% 25% 25%;
  background: linear-gradient(180deg, #1d1920, #040305);
  box-shadow: 0 0 50px #000;
  animation: stair-figure 5s ease-in-out infinite;
}
@keyframes stair-figure {
  50% { transform: translateY(-11px); }
}

/* Motel office */
.scene-visual[data-scene="office"] {
  background:
    repeating-linear-gradient(90deg, transparent 0 45px, rgba(185,162,126,.12) 46px 48px),
    linear-gradient(180deg, #1d171b, #080709);
}
.scene-visual[data-scene="office"] .scene-visual-prop::before {
  width: 68%;
  height: 36%;
  left: 16%;
  bottom: 0;
  background: linear-gradient(180deg, #32242a, #120e12);
  box-shadow: 0 -10px 40px rgba(0,0,0,.7);
}
.scene-visual[data-scene="office"] .scene-visual-prop::after {
  content: "13  13  13  13  13";
  left: 19%;
  top: 17%;
  color: rgba(213,187,149,.52);
  font: 500 clamp(.8rem, 3vw, 1.4rem)/1 "Oswald", sans-serif;
  letter-spacing: .8em;
}

/* Fire / origin */
.scene-visual[data-scene="fire"] {
  background:
    radial-gradient(ellipse at 50% 100%, #dc2c20 0, #71101a 25%, transparent 63%),
    linear-gradient(180deg, #171014, #050405);
}
.scene-visual[data-scene="fire"] .scene-visual-prop::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 24% 100%, rgba(255,120,40,.75), transparent 26%),
    radial-gradient(ellipse at 55% 100%, rgba(255,65,30,.66), transparent 32%),
    radial-gradient(ellipse at 78% 100%, rgba(241,135,44,.55), transparent 22%);
  filter: blur(9px);
  animation: fire-breathe 1.6s ease-in-out infinite alternate;
}
@keyframes fire-breathe {
  to { transform: scaleY(1.08) translateY(-5px); filter: blur(13px); }
}

/* Room zero / blueprint */
.scene-visual[data-scene="zero"] {
  background:
    linear-gradient(rgba(98,136,167,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98,136,167,.14) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, #14202b, #06080b 70%);
  background-size: 24px 24px, 24px 24px, auto;
}
.scene-visual[data-scene="zero"] .scene-visual-prop::after {
  content: "0";
  left: 46%;
  top: 28%;
  color: rgba(191,220,239,.58);
  font: 700 clamp(4rem, 13vw, 8rem)/1 "Oswald", sans-serif;
  text-shadow: 0 0 28px rgba(108,164,204,.25);
}

/* Television */
.scene-visual[data-scene="television"] {
  background: linear-gradient(180deg, #171419, #070609);
}
.scene-visual[data-scene="television"] .scene-visual-prop::before {
  width: 52%;
  height: 61%;
  left: 24%;
  top: 18%;
  border: 14px solid #29242b;
  border-radius: 14px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle, rgba(206,211,218,.18), #050507 75%);
  box-shadow: 0 28px 55px #000, inset 0 0 45px #000;
  animation: tv-static .17s steps(2) infinite;
}
@keyframes tv-static {
  50% { filter: brightness(1.35); transform: translateX(1px); }
}

/* Exit */
.scene-visual[data-scene="exit"] {
  background:
    linear-gradient(90deg, rgba(0,0,0,.82), transparent 42% 58%, rgba(0,0,0,.82)),
    linear-gradient(180deg, #17131a, #060507);
}
.scene-visual[data-scene="exit"] .scene-visual-prop::after {
  content: "EXIT";
  left: 37%;
  top: 36%;
  color: #ef2a45;
  font: 700 clamp(2.4rem, 9vw, 5.5rem)/1 "Oswald", sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 0 12px #d4132d, 0 0 42px rgba(211,19,45,.72);
  animation: exit-flicker 3.2s steps(1) infinite;
}
@keyframes exit-flicker {
  0%, 8%, 12%, 62%, 68%, 100% { opacity: 1; }
  9%, 11%, 63%, 67% { opacity: .2; }
}

/* Choice transition */
.choice-transition {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 28px;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(126,12,29,.28), transparent 42%),
    rgba(3,2,4,.91);
  transition: opacity .22s ease;
}
.choice-transition span {
  max-width: 620px;
  text-align: center;
  color: #f4eef5;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.45rem, 5vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: .025em;
  transform: translateY(12px);
  opacity: 0;
  transition: .28s ease .08s;
}
.choice-transition.is-active {
  opacity: 1;
}
.choice-transition.is-active span {
  opacity: 1;
  transform: translateY(0);
}

/* Result path */
.result-path {
  max-width: 640px;
  margin: -10px auto 30px !important;
  padding: 15px 18px;
  border-left: 2px solid rgba(210,31,53,.65);
  background: rgba(255,255,255,.025);
  color: #aaa3ac !important;
  font-size: .88rem;
  line-height: 1.6 !important;
  text-align: left;
}

/* Better story rhythm */
.story-card h2 {
  text-wrap: balance;
}
.story-card > .story-copy > p:not(.eyebrow) {
  margin-bottom: 34px;
}
.choice-list {
  opacity: 1;
  transform: translateY(0);
}
.choice-list.is-revealing {
  animation: reveal-choices .48s ease;
}
@keyframes reveal-choices {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-control {
  border-radius: 10px !important;
}
.top-control-copy strong {
  letter-spacing: .01em;
}

@media (max-width: 520px) {
  .scene-visual {
    height: 225px;
  }
  .story-copy {
    padding: 30px 21px 34px;
  }
  .scene-visual-text {
    left: 13px;
    bottom: 11px;
  }
  .top-control-copy small {
    display: none;
  }
  .top-control {
    justify-content: center !important;
  }
}


/* ================================================================
   v0.5 — Mobile Reading Layout
   ================================================================ */

/* Remove the oversized prose rules inherited from earlier versions. */
.story-copy {
  padding: clamp(26px, 5vw, 48px) !important;
  background: #111015;
}

.story-card h2 {
  max-width: 760px;
  margin: 0 0 23px !important;
  font-size: clamp(2rem, 5.4vw, 3.55rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.018em !important;
  text-wrap: balance;
}

/* Real paragraphs instead of one long text block. */
.story-prose {
  max-width: 720px;
  color: #ddd7df;
  font-size: clamp(1rem, 1.75vw, 1.08rem);
  line-height: 1.72;
  letter-spacing: 0;
  text-wrap: pretty;
}

.story-prose p {
  margin: 0;
}

.story-prose p + p {
  margin-top: 1.08em;
}

/* The first paragraph opens the scene without becoming giant. */
.story-prose p:first-child {
  color: #f0ebf1;
  font-size: 1.035em;
}

/* Choices are clearly separated from the prose. */
.choice-list {
  max-width: 720px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  gap: 11px !important;
}

.choice-button {
  min-height: 58px;
  padding: 15px 17px !important;
  border-radius: 7px !important;
  font-size: .98rem;
  line-height: 1.42 !important;
  background: #161419 !important;
}

.choice-button::before {
  display: inline-block;
  width: 12px;
  margin-right: 7px !important;
}

/* Quieter label so the headline and prose do the work. */
.story-copy > .eyebrow {
  margin-bottom: 11px;
  font-size: .7rem;
}

/* The visual supports the story rather than dominating it. */
.scene-visual {
  height: clamp(175px, 32vw, 290px) !important;
}

/* Prevent previous min-height rules from creating long empty areas. */
.story-card,
.story-card .story-copy {
  min-height: 0 !important;
}

/* On phones, use normal book-like sizing and comfortable margins. */
@media (max-width: 600px) {
  .story-shell {
    width: calc(100% - 20px) !important;
    margin-bottom: 70px;
  }

  .story-card {
    border-radius: 0;
  }

  .scene-visual {
    height: 178px !important;
  }

  .story-copy {
    padding: 27px 19px 30px !important;
  }

  .story-card h2 {
    max-width: 100%;
    margin-bottom: 20px !important;
    font-size: clamp(2rem, 9.2vw, 2.65rem) !important;
    line-height: 1.06 !important;
  }

  .story-prose {
    font-size: 1rem !important;
    line-height: 1.68 !important;
  }

  .story-prose p + p {
    margin-top: 1.05em;
  }

  .choice-list {
    margin-top: 26px;
    padding-top: 21px;
  }

  .choice-button {
    min-height: 56px;
    padding: 14px 15px !important;
    font-size: .95rem;
  }

  .scene-visual-text {
    font-size: .64rem;
  }
}

/* Very narrow phones receive a little more breathing room. */
@media (max-width: 380px) {
  .story-copy {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .story-card h2 {
    font-size: 2rem !important;
  }

  .story-prose {
    font-size: .97rem !important;
  }
}


/* v0.6 — Event-based sound only */
#soundToggle .top-control-copy strong {
  white-space: normal;
  line-height: 1.05;
}

@media (max-width: 520px) {
  #soundToggle .top-control-copy strong {
    max-width: 66px;
    text-align: left;
  }

  #soundToggle,
  #profileButton {
    min-height: 50px !important;
  }
}


/* ================================================================
   v0.7 — Reading-Only Suspense Experience
   ================================================================ */

/* With sound removed, keep the remaining header action compact. */
.header-actions {
  margin-left: auto;
}

.choice-transition {
  overflow-y: auto;
}

.choice-transition-card {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 27px;
  padding: clamp(30px, 8vw, 58px) clamp(22px, 7vw, 48px);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(144,16,35,.2), transparent 65%),
    linear-gradient(180deg, rgba(22,17,23,.98), rgba(8,7,10,.99));
  box-shadow: 0 35px 100px rgba(0,0,0,.72);
}

.choice-transition-card span {
  max-width: 520px;
  text-align: center;
  color: #f4eef5;
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.65rem, 6vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: .015em;
  text-wrap: balance;
}

#choiceTransitionContinue {
  min-width: 160px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid rgba(210,31,53,.65);
  border-radius: 7px;
  background: linear-gradient(180deg, #c91d34, #8f1021);
  color: #fff;
  font: 700 .92rem/1 "DM Sans", sans-serif;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(178,18,41,.2);
}

#choiceTransitionContinue:active {
  transform: translateY(1px);
}

/* Override the old automatic span entrance rules. */
.choice-transition span {
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 520px) {
  .choice-transition {
    padding: 18px;
  }

  .choice-transition-card {
    gap: 24px;
    padding: 36px 20px;
  }

  .choice-transition-card span {
    font-size: clamp(1.75rem, 8vw, 2.45rem);
  }

  #choiceTransitionContinue {
    width: 100%;
  }
}


/* ================================================================
   v0.8 — Continue Button Interaction Fix
   ================================================================ */

.choice-transition.is-active {
  pointer-events: auto !important;
}

.choice-transition-card,
#choiceTransitionContinue {
  pointer-events: auto !important;
}

#choiceTransitionContinue {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}


/* ================================================================
   v0.9 — Premium Header + Interlude Redesign
   ================================================================ */

/* --- Slimmer, cleaner top layout --- */
.site-header {
  width: min(calc(100% - 22px), var(--max)) !important;
  min-height: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
}

.brand {
  min-width: 0;
  gap: 10px !important;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.brand-mark {
  width: 40px !important;
  height: 40px !important;
  box-shadow:
    inset 0 0 18px rgba(255,255,255,.025),
    0 0 18px rgba(210,31,53,.1) !important;
}

.brand strong {
  font-size: .94rem !important;
  letter-spacing: .075em !important;
  line-height: 1;
}

.brand small {
  font-size: .67rem !important;
  line-height: 1.15;
  color: #9a949d !important;
}

.header-actions {
  margin-left: 0 !important;
  justify-self: end;
}

#profileButton.top-control {
  min-height: 40px !important;
  padding: 0 13px !important;
  gap: 8px !important;
  border-radius: 999px !important;
  border-color: rgba(255,255,255,.12) !important;
  background:
    linear-gradient(180deg, rgba(24,20,28,.92), rgba(11,10,14,.92)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.03),
    0 8px 18px rgba(0,0,0,.18) !important;
}

#profileButton .top-control-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 1.8;
}

#profileButton .top-control-copy {
  gap: 0;
}

#profileButton .top-control-copy strong {
  font-size: .75rem !important;
  letter-spacing: .015em;
}

#profileButton .top-control-copy small {
  font-size: .57rem !important;
  color: #8c8690 !important;
}

/* Pull the hero up a bit so the page opens with more impact. */
.hero {
  padding-top: 30px !important;
}

.hero-art {
  min-height: 500px !important;
}

/* --- Premium interlude instead of warning-pop-up feel --- */
.choice-transition {
  background:
    radial-gradient(circle at 50% 46%, rgba(118,14,31,.14), transparent 38%),
    rgba(4,3,7,.68) !important;
  backdrop-filter: blur(6px);
}

.choice-transition-card {
  width: min(100%, 560px) !important;
  gap: 16px !important;
  padding: clamp(22px, 5vw, 34px) clamp(20px, 5vw, 30px) 20px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-top: 2px solid rgba(210,31,53,.46) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(20,16,24,.92), rgba(9,8,11,.9)) !important;
  box-shadow:
    0 28px 60px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.025) !important;
}

.choice-transition-card span {
  max-width: 460px !important;
  color: #f4eef5;
  font-size: clamp(1.6rem, 5.5vw, 2.45rem) !important;
  line-height: 1.14 !important;
  letter-spacing: .01em !important;
}

#choiceTransitionContinue {
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.04) !important;
  color: #f5f1f4 !important;
  font: 700 .82rem/1 "DM Sans", sans-serif !important;
  box-shadow: none !important;
}

#choiceTransitionContinue:hover,
#choiceTransitionContinue:focus-visible {
  border-color: rgba(210,31,53,.56) !important;
  background: rgba(210,31,53,.08) !important;
  outline: none;
}

#choiceTransitionContinue:active {
  transform: translateY(1px);
}

/* Mobile polish */
@media (max-width: 700px) {
  .hero {
    padding-top: 22px !important;
  }

  .hero-art {
    min-height: 390px !important;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: min(calc(100% - 18px), var(--max)) !important;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .brand {
    gap: 9px !important;
  }

  .brand-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .brand strong {
    font-size: .84rem !important;
  }

  .brand small {
    font-size: .6rem !important;
  }

  #profileButton.top-control {
    min-height: 38px !important;
    padding: 0 12px !important;
  }

  #profileButton .top-control-copy small {
    display: none !important;
  }

  #profileButton .top-control-copy strong {
    font-size: 0 !important;
  }

  #profileButton .top-control-copy strong::after {
    content: "File";
    font-size: .74rem;
  }

  .hero {
    padding-top: 18px !important;
  }

  .hero-art {
    min-height: 330px !important;
  }

  .door-frame {
    width: 198px !important;
    height: 312px !important;
  }

  .hero h1 {
    font-size: 4.95rem !important;
  }

  .choice-transition {
    padding: 16px !important;
  }

  .choice-transition-card {
    gap: 14px !important;
    padding: 20px 18px 18px !important;
    border-radius: 16px !important;
  }

  .choice-transition-card span {
    font-size: clamp(1.5rem, 8vw, 2.05rem) !important;
  }

  #choiceTransitionContinue {
    width: auto !important;
    min-width: 150px !important;
  }
}


/* ================================================================
   v0.10 — Reliable Choices + 7-Second Automatic Interlude
   ================================================================ */

/* Hidden transition must never intercept taps. */
.choice-transition {
  visibility: hidden;
  pointer-events: none !important;
}

.choice-transition.is-active {
  visibility: visible;
  pointer-events: auto !important;
}

/* Replace the old button area with a restrained timer. */
.transition-timer {
  width: min(100%, 360px);
  height: 3px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
}

.transition-timer span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c1021, #d9223b);
  box-shadow: 0 0 16px rgba(210,31,53,.38);
}

.choice-transition.is-active .transition-timer span {
  animation: transition-seven-seconds 7s linear forwards;
}

.transition-timer-label {
  color: #8f8992;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes transition-seven-seconds {
  from { width: 0; }
  to { width: 100%; }
}

/* The choice layer always sits above decorative story effects. */
.story-copy,
.choice-list,
.choice-button {
  position: relative;
  z-index: 20;
}

.choice-list {
  pointer-events: auto !important;
}

.choice-button {
  width: 100%;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(210,31,53,.12);
  user-select: none;
}

.choice-button:active {
  border-color: rgba(210,31,53,.72) !important;
  background: rgba(210,31,53,.09) !important;
  transform: translateX(2px);
}

.choice-button[disabled] {
  cursor: default;
  opacity: .58;
  pointer-events: none !important;
}

/* Remove styling from the old Continue control if cached CSS remains. */
#choiceTransitionContinue {
  display: none !important;
}

@media (max-width: 520px) {
  .transition-timer {
    width: min(92%, 330px);
  }

  .transition-timer-label {
    font-size: .62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-transition.is-active .transition-timer span {
    animation-timing-function: linear;
  }
}


/* ================================================================
   v0.11 — Animated Scene Visuals + Premium Interludes
   ================================================================ */

.scene-visual-text {
  animation: cue-flicker 6.2s linear infinite;
}

@keyframes cue-flicker {
  0%, 93%, 100% { opacity: .82; }
  94% { opacity: .38; }
  96% { opacity: .72; }
}

.scene-visual[data-scene="room"] .scene-visual-prop::before {
  animation: room-door-hum 5.8s ease-in-out infinite;
}
.scene-visual[data-scene="room"] .scene-visual-prop::after {
  animation: room-number-flicker 4.8s steps(1) infinite;
}
@keyframes room-door-hum {
  0%, 100% { transform: translateY(0); box-shadow: 24px 0 27px rgba(185,20,43,.22), 0 30px 55px #000; }
  50% { transform: translateY(-2px); box-shadow: 34px 0 38px rgba(195,28,51,.28), 0 34px 58px #000; }
}
@keyframes room-number-flicker {
  0%, 18%, 24%, 76%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(210,31,53,.35); }
  20%, 22%, 78% { opacity: .55; text-shadow: 0 0 6px rgba(210,31,53,.18); }
}

.scene-visual[data-scene="phone"] .scene-visual-prop::before {
  animation: phone-base-breathe 4.5s ease-in-out infinite;
}
@keyframes phone-base-breathe {
  50% { transform: translateY(-2px); filter: brightness(1.05); }
}

.scene-visual[data-scene="mirror"] .scene-visual-prop::before,
.scene-visual[data-scene="glass"] .scene-visual-prop::before {
  animation: mirror-glint 7s linear infinite;
}
@keyframes mirror-glint {
  0%, 100% { background-position: 0 0, 0 0; }
  50% { background-position: 18px 0, 0 0; }
}
.scene-visual[data-scene="glass"] .scene-visual-prop::after {
  width: 44%;
  height: 46%;
  left: 28%;
  top: 26%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.16), transparent 54%);
  filter: blur(8px);
  animation: shard-glow 4.8s ease-in-out infinite;
}
@keyframes shard-glow {
  50% { opacity: .55; transform: scale(1.04) rotate(2deg); }
}

.scene-visual[data-scene="door"] .scene-visual-prop::before {
  animation: visitor-door-breathe 6s ease-in-out infinite;
}
@keyframes visitor-door-breathe {
  45%, 55% { transform: translateX(2px); }
}

.scene-visual[data-scene="hallway"] .scene-visual-prop::before {
  animation: hallway-glow 5.4s ease-in-out infinite;
}
.scene-visual[data-scene="hallway"] .scene-visual-prop::after {
  animation: hallway-numbers-drift 9s linear infinite;
}
@keyframes hallway-glow {
  50% { transform: scaleY(1.06) translateY(-4px); opacity: .82; }
}
@keyframes hallway-numbers-drift {
  0% { transform: translateX(0); opacity: .3; }
  50% { transform: translateX(12px); opacity: .55; }
  100% { transform: translateX(0); opacity: .3; }
}

.scene-visual[data-scene="ledger"] .scene-visual-prop::before {
  animation: ledger-page-shift 6.4s ease-in-out infinite;
}
.scene-visual[data-scene="ledger"] .scene-visual-prop::after {
  animation: ink-bleed 5.2s ease-in-out infinite;
}
@keyframes ledger-page-shift {
  50% { transform: rotate(-3deg) translateY(-3px); }
}
@keyframes ink-bleed {
  50% { letter-spacing: .15em; opacity: .72; }
}

.scene-visual[data-scene="stairs"]::before {
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(214,28,53,.08) 62%, transparent);
  animation: stair-shadow-pass 5.6s ease-in-out infinite;
}
@keyframes stair-shadow-pass {
  0%, 100% { opacity: 0; transform: translateY(18px); }
  45%, 65% { opacity: 1; transform: translateY(-12px); }
}

.scene-visual[data-scene="office"] .scene-visual-prop::before {
  animation: desk-breathe 7s ease-in-out infinite;
}
.scene-visual[data-scene="office"] .scene-visual-prop::after {
  animation: office-numbers-blink 5s steps(1) infinite;
}
@keyframes desk-breathe {
  50% { transform: translateY(-2px); filter: brightness(1.06); }
}
@keyframes office-numbers-blink {
  0%, 75%, 100% { opacity: .52; }
  78%, 82% { opacity: .18; }
}

.scene-visual[data-scene="fire"]::after {
  animation: fire-smoke 10s linear infinite;
}
@keyframes fire-smoke {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 0, 0 -20px; }
}

.scene-visual[data-scene="zero"] {
  animation: blueprint-shift 9s linear infinite;
}
.scene-visual[data-scene="zero"] .scene-visual-prop::after {
  animation: zero-scan 4.6s steps(1) infinite;
}
@keyframes blueprint-shift {
  50% { background-position: 12px 12px, 12px 12px, 0 0; }
}
@keyframes zero-scan {
  0%, 12%, 16%, 100% { opacity: .68; }
  13%, 15% { opacity: .28; }
}

.scene-visual[data-scene="television"]::before {
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.05), transparent);
  animation: tv-scanline 5.2s linear infinite;
}
@keyframes tv-scanline {
  0% { transform: translateY(-100%); opacity: 0; }
  10%, 90% { opacity: .4; }
  100% { transform: translateY(100%); opacity: 0; }
}

.choice-transition-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border-color: rgba(255,255,255,.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(144,16,35,.22), transparent 65%),
    linear-gradient(180deg, rgba(18,14,20,.985), rgba(5,4,7,.995));
}
.choice-transition-card::before,
.choice-transition-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.choice-transition-card::before {
  background: radial-gradient(circle at 50% 50%, rgba(219,29,58,.16), transparent 58%);
  transform: scale(.96);
  animation: transition-glow 4s ease-in-out infinite;
}
.choice-transition-card::after {
  background: linear-gradient(120deg, transparent 0 32%, rgba(255,255,255,.06) 48%, transparent 66%);
  transform: translateX(-130%);
  animation: transition-sheen 6.5s linear infinite;
}
@keyframes transition-glow {
  50% { transform: scale(1.02); opacity: .9; }
}
@keyframes transition-sheen {
  100% { transform: translateX(130%); }
}

.choice-transition[data-trait="watcher"] .choice-transition-card::before {
  background: radial-gradient(circle at 50% 50%, rgba(73,93,154,.2), transparent 58%);
}
.choice-transition[data-trait="survivor"] .choice-transition-card::before {
  background: radial-gradient(circle at 50% 50%, rgba(214,34,62,.18), transparent 58%);
}
.choice-transition[data-trait="skeptic"] .choice-transition-card::before {
  background: radial-gradient(circle at 50% 50%, rgba(208,169,86,.18), transparent 58%);
}
.choice-transition[data-trait="sacrifice"] .choice-transition-card::before {
  background: radial-gradient(circle at 50% 50%, rgba(127,76,156,.2), transparent 58%);
}
.choice-transition[data-variant="shiver"] .choice-transition-card {
  animation: transition-shiver .4s ease-in-out 2;
}
.choice-transition[data-variant="drift"] .choice-transition-card {
  animation: transition-drift 6.8s ease-in-out infinite;
}
.choice-transition[data-variant="pulse"] .choice-transition-card {
  animation: transition-pulse 2.8s ease-in-out infinite;
}
@keyframes transition-shiver {
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}
@keyframes transition-drift {
  50% { transform: translateY(-4px); }
}
@keyframes transition-pulse {
  50% { box-shadow: 0 30px 120px rgba(122,16,33,.82); }
}

.transition-subtext {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 460px;
  text-align: center;
  color: rgba(219,212,221,.82);
  font-size: .95rem;
  line-height: 1.55;
  letter-spacing: .03em;
}

.transition-timer {
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.transition-timer-label {
  position: relative;
  z-index: 2;
}

@media (max-width: 520px) {
  .transition-subtext {
    font-size: .86rem;
    line-height: 1.45;
  }
}


/* ================================================================
   v0.12 — Extended Final Act Polish
   ================================================================ */

.story-topline {
  backdrop-filter: blur(9px);
}

.scene-visual[data-scene="mirror"] {
  animation: extended-mirror-breath 8s ease-in-out infinite;
}

.scene-visual[data-scene="door"] {
  animation: extended-door-pressure 7s ease-in-out infinite;
}

.scene-visual[data-scene="hallway"] {
  animation: extended-hall-drift 12s ease-in-out infinite;
}

.scene-visual[data-scene="ledger"] {
  animation: extended-ledger-light 8.5s ease-in-out infinite;
}

.scene-visual[data-scene="stairs"] {
  animation: extended-stair-depth 9s ease-in-out infinite;
}

.scene-visual[data-scene="office"] {
  animation: extended-office-flicker 7.5s steps(1) infinite;
}

.scene-visual[data-scene="exit"] {
  animation: extended-exit-pulse 5.8s ease-in-out infinite;
}

@keyframes extended-mirror-breath {
  50% { filter: brightness(1.08) contrast(1.04); }
}

@keyframes extended-door-pressure {
  50% { background-position: 2px 0; filter: brightness(1.05); }
}

@keyframes extended-hall-drift {
  50% { background-position: 8px 0, -8px 0, 0 0; }
}

@keyframes extended-ledger-light {
  50% { filter: brightness(1.08) sepia(.06); }
}

@keyframes extended-stair-depth {
  50% { background-position: 0 9px; filter: brightness(.92); }
}

@keyframes extended-office-flicker {
  0%, 91%, 100% { filter: brightness(1); }
  92%, 94% { filter: brightness(.72); }
  93%, 95% { filter: brightness(1.12); }
}

@keyframes extended-exit-pulse {
  50% { box-shadow: inset 0 0 55px rgba(180,18,43,.11); }
}

.story-prose p:first-child {
  text-wrap: pretty;
}

.story-prose p:last-child {
  color: #e8e1e9;
}

@media (max-width: 520px) {
  .story-prose {
    line-height: 1.7 !important;
  }

  .choice-button {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
  }
}


/* ================================================================
   v0.13 — Multi-story polish, better brand mark, stronger visuals
   ================================================================ */

.brand-mark {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(145deg, rgba(36,31,43,.96), rgba(10,9,12,.98)),
    radial-gradient(circle at 72% 24%, rgba(210,31,53,.22), transparent 55%);
  box-shadow:
    inset 0 0 30px rgba(255,255,255,.035),
    0 0 32px rgba(210,31,53,.14),
    0 16px 36px rgba(0,0,0,.24);
  border-radius: 14px;
}
.brand-mark-core {
  position: relative;
  z-index: 2;
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  letter-spacing: .06em;
}
.brand-mark-accent {
  position: absolute;
  right: 8px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.2), #e5354d, rgba(255,255,255,.12));
  box-shadow: 0 0 18px rgba(229,53,77,.38);
}
.brand-mark-glow {
  position: absolute;
  inset: auto auto 6px 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210,31,53,.32), transparent 70%);
  filter: blur(2px);
}
.brand-copy strong { font-size: 1.08rem; }

.hero {
  min-height: 760px;
  gap: min(6vw, 70px);
}
.hero-art {
  min-height: 590px;
  perspective: 1200px;
}
.hero-poster {
  position: relative;
  width: min(74vw, 390px);
  height: min(124vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 75% 18%, rgba(210,31,53,.18), transparent 30%),
    linear-gradient(160deg, rgba(21,18,25,.94), rgba(8,7,10,.98));
  box-shadow: 0 42px 90px rgba(0,0,0,.55), inset 0 0 32px rgba(255,255,255,.03);
  isolation: isolate;
}
.hero-poster::before,
.hero-poster::after,
.hero-poster-prop::before,
.hero-poster-prop::after {
  content: "";
  position: absolute;
}
.hero-poster::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 18%, transparent 80%, rgba(0,0,0,.26));
}
.hero-poster::after {
  inset: 0;
  background-image: radial-gradient(circle at 18% 16%, rgba(255,255,255,.045), transparent 20%), radial-gradient(circle at 84% 78%, rgba(210,31,53,.08), transparent 24%);
  mix-blend-mode: screen;
  opacity: .9;
}
.hero-poster-prop {
  position: absolute;
  inset: 0;
}
.hero-art-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 3;
  font-family: "Oswald", sans-serif;
  font-size: .92rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.85);
}
#heroArt[data-story="room13"] .hero-poster-prop::before {
  inset: 62px 72px 56px;
  border: 16px solid rgba(46,40,54,.88);
  background: linear-gradient(180deg, #1d1a22, #0a090d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 50px rgba(0,0,0,.5);
}
#heroArt[data-story="room13"] .hero-poster-prop::after {
  inset: 112px 118px 108px;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 36px rgba(210,31,53,.12);
}
#heroArt[data-story="room13"] .hero-poster::before { background: linear-gradient(180deg, rgba(255,255,255,.035), transparent 16%, transparent 82%, rgba(0,0,0,.34)); }
#heroArt[data-story="room13"] .hero-poster::after { background-image: none; }
#heroArt[data-story="room13"] .hero-poster {
  animation: heroDoorGlow 6s ease-in-out infinite;
}
#heroArt[data-story="room13"] .hero-art-caption::before {
  content: "13";
  position: absolute;
  left: 50%;
  top: -310px;
  transform: translateX(-50%);
  font-size: 6rem;
  letter-spacing: -.04em;
  text-shadow: 0 0 26px rgba(210,31,53,.18);
  color: #c9c1ca;
}
#heroArt[data-story="room13"] .hero-art-caption::after {
  content: "";
  position: absolute;
  right: -278px;
  top: -250px;
  width: 12px;
  height: 240px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(220,48,68,.9), transparent);
  filter: blur(4px);
  animation: heroSideGlow 5.4s ease-in-out infinite;
}

#heroArt[data-story="deadAir"] .hero-poster-prop::before {
  left: 52px;
  right: 52px;
  top: 120px;
  height: 170px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(circle at 18% 45%, rgba(255,255,255,.08), transparent 18%),
    radial-gradient(circle at 82% 45%, rgba(255,255,255,.08), transparent 18%),
    linear-gradient(180deg, #19171d, #0c0b10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), inset 0 0 34px rgba(0,0,0,.46);
}
#heroArt[data-story="deadAir"] .hero-poster-prop::after {
  left: 78px;
  right: 78px;
  top: 210px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18) 10%, rgba(229,53,77,.95) 48%, rgba(255,255,255,.18) 90%, transparent);
  box-shadow: 0 0 26px rgba(229,53,77,.35);
  animation: waveform 1.6s linear infinite;
}
#heroArt[data-story="deadAir"] .hero-poster::before {
  inset: 70px 90px auto 90px;
  height: 74px;
  border-radius: 50% 50% 28% 28%;
  border: 5px solid rgba(255,255,255,.13);
  border-bottom: 0;
  background: transparent;
}
#heroArt[data-story="deadAir"] .hero-poster::after {
  inset: 120px 154px auto 154px;
  height: 145px;
  border-radius: 999px 999px 44px 44px;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
  box-shadow: inset 0 0 22px rgba(0,0,0,.34), 0 0 28px rgba(210,31,53,.15);
  animation: micHover 4.8s ease-in-out infinite;
}

#heroArt[data-story="lastCar"] .hero-poster-prop::before {
  inset: 74px 44px 100px;
  border: 1px solid rgba(255,255,255,.09);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 78px, rgba(255,255,255,.08) 78px 80px),
    linear-gradient(180deg, #18161b, #0b0a0e);
  box-shadow: inset 0 0 50px rgba(0,0,0,.45);
}
#heroArt[data-story="lastCar"] .hero-poster-prop::after {
  left: 66px;
  right: 66px;
  top: 124px;
  bottom: 152px;
  background:
    radial-gradient(circle at 18% 42%, rgba(255,255,255,.12) 0 10px, transparent 11px),
    radial-gradient(circle at 36% 42%, rgba(255,255,255,.12) 0 10px, transparent 11px),
    radial-gradient(circle at 64% 42%, rgba(255,255,255,.12) 0 10px, transparent 11px),
    radial-gradient(circle at 82% 42%, rgba(255,255,255,.12) 0 10px, transparent 11px),
    linear-gradient(180deg, transparent, rgba(210,31,53,.12));
  opacity: .85;
  animation: facesBlink 6.2s steps(1) infinite;
}
#heroArt[data-story="lastCar"] .hero-poster::before {
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  width: 160px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}
#heroArt[data-story="lastCar"] .hero-poster::after {
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  width: 94px;
  height: 10px;
  border-radius: 999px;
  background: rgba(229,53,77,.95);
  box-shadow: 0 0 24px rgba(229,53,77,.35);
  animation: trainLine 4.8s ease-in-out infinite;
}

#heroArt[data-story="snowbound"] .hero-poster-prop::before {
  left: 86px;
  right: 86px;
  bottom: 150px;
  height: 150px;
  clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 0 32px rgba(117,135,159,.12);
}
#heroArt[data-story="snowbound"] .hero-poster-prop::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 56%;
  background:
    radial-gradient(circle at 22% 76%, rgba(255,255,255,.96) 0 48px, transparent 50px),
    radial-gradient(circle at 54% 82%, rgba(255,255,255,.98) 0 82px, transparent 84px),
    radial-gradient(circle at 86% 78%, rgba(255,255,255,.94) 0 58px, transparent 60px),
    linear-gradient(180deg, transparent, rgba(255,255,255,.08));
  opacity: .98;
}
#heroArt[data-story="snowbound"] .hero-poster::before {
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.86) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,255,255,.82) 0 1.5px, transparent 2px);
  background-size: 52px 52px, 68px 68px;
  background-position: 0 0, 18px 22px;
  animation: snowfall 9s linear infinite;
  opacity: .72;
}
#heroArt[data-story="snowbound"] .hero-poster::after {
  inset: 140px 126px auto 126px;
  height: 24px;
  background: radial-gradient(circle at center, rgba(255,208,112,.95), rgba(255,208,112,0));
  filter: blur(7px);
}

@keyframes heroDoorGlow { 50% { box-shadow: 0 42px 90px rgba(0,0,0,.55), inset 0 0 34px rgba(255,255,255,.04), 0 0 32px rgba(210,31,53,.18); } }
@keyframes heroSideGlow { 50% { opacity: .42; } }
@keyframes waveform { 0% { transform: scaleX(.74); } 50% { transform: scaleX(1.08); } 100% { transform: scaleX(.74); } }
@keyframes micHover { 50% { transform: translateY(-8px); } }
@keyframes facesBlink { 0%, 82%, 100% { opacity: .82; } 83%, 86% { opacity: .18; } 87%, 90% { opacity: .92; } }
@keyframes trainLine { 0%,100% { width: 72px; } 50% { width: 114px; } }
@keyframes snowfall { from { transform: translateY(-8px); } to { transform: translateY(28px); } }

.story-card {
  padding-top: clamp(22px, 5vw, 34px);
}
.scene-visual {
  min-height: 260px;
  border-radius: 18px;
  margin-bottom: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.3);
}
.scene-visual-text {
  font-size: .92rem;
  letter-spacing: .18em;
  color: rgba(255,255,255,.88);
}
.scene-visual[data-scene="radio"] {
  background: linear-gradient(180deg, #111015, #09080c);
}
.scene-visual[data-scene="radio"] .scene-visual-prop::before {
  left: 14%;
  right: 14%;
  top: 24%;
  height: 32%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(180deg, #19171d, #0b0a0d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 0 28px rgba(0,0,0,.4);
}
.scene-visual[data-scene="radio"] .scene-visual-prop::after {
  left: 20%;
  right: 20%;
  top: 46%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), rgba(229,53,77,.98), rgba(255,255,255,.18), transparent);
  animation: waveform 1.6s linear infinite;
}
.scene-visual[data-scene="studio"] {
  background: linear-gradient(180deg, #15131a, #09080c);
}
.scene-visual[data-scene="studio"] .scene-visual-prop::before {
  left: 20%;
  top: 20%;
  width: 22%;
  bottom: 22%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.scene-visual[data-scene="studio"] .scene-visual-prop::after {
  right: 18%;
  left: 52%;
  bottom: 18%;
  height: 22%;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.scene-visual[data-scene="subway"] {
  background: linear-gradient(180deg, #131218, #09080c);
}
.scene-visual[data-scene="subway"] .scene-visual-prop::before {
  inset: 14% 8% 18%;
  border: 1px solid rgba(255,255,255,.08);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 17%, rgba(255,255,255,.1) 17% 18%);
  box-shadow: inset 0 0 42px rgba(0,0,0,.48);
}
.scene-visual[data-scene="subway"] .scene-visual-prop::after {
  left: 14%;
  right: 14%;
  top: 24%;
  bottom: 30%;
  background:
    radial-gradient(circle at 16% 40%, rgba(255,255,255,.11) 0 9px, transparent 10px),
    radial-gradient(circle at 34% 40%, rgba(255,255,255,.11) 0 9px, transparent 10px),
    radial-gradient(circle at 66% 40%, rgba(255,255,255,.11) 0 9px, transparent 10px),
    radial-gradient(circle at 84% 40%, rgba(255,255,255,.11) 0 9px, transparent 10px),
    linear-gradient(180deg, transparent, rgba(210,31,53,.08));
  animation: facesBlink 6.2s steps(1) infinite;
}
.scene-visual[data-scene="snow"],
.scene-visual[data-scene="cabin"] {
  background: linear-gradient(180deg, #0f1117, #07080d);
}
.scene-visual[data-scene="snow"]::before,
.scene-visual[data-scene="cabin"]::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.88) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,.8) 0 1.5px, transparent 2px);
  background-size: 48px 48px, 66px 66px;
  background-position: 0 0, 14px 18px;
  animation: snowfall 9s linear infinite;
  opacity: .72;
}
.scene-visual[data-scene="snow"] .scene-visual-prop::before,
.scene-visual[data-scene="cabin"] .scene-visual-prop::before {
  left: 32%;
  right: 32%;
  bottom: 26%;
  height: 34%;
  clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.scene-visual[data-scene="snow"] .scene-visual-prop::after,
.scene-visual[data-scene="cabin"] .scene-visual-prop::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: radial-gradient(circle at 18% 82%, rgba(255,255,255,.96) 0 34px, transparent 36px), radial-gradient(circle at 50% 84%, rgba(255,255,255,.98) 0 68px, transparent 70px), radial-gradient(circle at 84% 82%, rgba(255,255,255,.95) 0 40px, transparent 42px);
}

.vault-grid {
  grid-template-columns: repeat(4, 1fr);
}
.vault-card {
  min-height: 420px;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.vault-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 20px 40px rgba(0,0,0,.24);
}
.vault-card.is-selected {
  border-color: rgba(229,53,77,.62);
  box-shadow: 0 0 0 1px rgba(229,53,77,.24), 0 28px 52px rgba(0,0,0,.24);
}
.vault-card-art {
  height: 150px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #16141b, #09080c);
}
.vault-card-art::before,
.vault-card-art::after {
  content: "";
  position: absolute;
}
.vault-card-art[data-art="room13"]::before {
  inset: 18px 34px 16px;
  border: 12px solid rgba(46,40,54,.9);
  background: linear-gradient(180deg, #1c1a21, #0b0a0d);
}
.vault-card-art[data-art="room13"]::after {
  content: "13";
  inset: 34px auto auto 50%;
  transform: translateX(-50%);
  color: #d0c8d1;
  font-family: "Oswald", sans-serif;
  font-size: 2.4rem;
}
.vault-card-art[data-art="deadAir"]::before {
  left: 14%; right: 14%; top: 34%; height: 26%;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, #19171d, #0b0a0d);
}
.vault-card-art[data-art="deadAir"]::after {
  left: 20%; right: 20%; top: 50%; height: 5px; border-radius: 999px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), rgba(229,53,77,.98), rgba(255,255,255,.18), transparent); animation: waveform 1.4s linear infinite;
}
.vault-card-art[data-art="lastCar"]::before {
  inset: 16px; border: 1px solid rgba(255,255,255,.08); background: repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 25%, rgba(255,255,255,.1) 25% 26%);
}
.vault-card-art[data-art="lastCar"]::after {
  inset: 24px 24px 32px; background: radial-gradient(circle at 18% 36%, rgba(255,255,255,.11) 0 7px, transparent 8px), radial-gradient(circle at 46% 36%, rgba(255,255,255,.11) 0 7px, transparent 8px), radial-gradient(circle at 74% 36%, rgba(255,255,255,.11) 0 7px, transparent 8px), linear-gradient(180deg, transparent, rgba(210,31,53,.08)); animation: facesBlink 6s steps(1) infinite;
}
.vault-card-art[data-art="snowbound"]::before {
  left: 34%; right: 34%; bottom: 30%; height: 30%; clip-path: polygon(50% 0, 100% 30%, 100% 100%, 0 100%, 0 30%); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
}
.vault-card-art[data-art="snowbound"]::after {
  inset: 0; background: radial-gradient(circle at 18% 82%, rgba(255,255,255,.96) 0 26px, transparent 28px), radial-gradient(circle at 50% 84%, rgba(255,255,255,.98) 0 46px, transparent 48px), radial-gradient(circle at 84% 82%, rgba(255,255,255,.95) 0 32px, transparent 34px), radial-gradient(circle, rgba(255,255,255,.86) 0 1px, transparent 1.6px); background-size: auto, auto, auto, 48px 48px; animation: snowfall 9s linear infinite;
}
.vault-button {
  margin-top: auto;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.vault-button:hover { border-color: rgba(229,53,77,.4); background: rgba(229,53,77,.08); }
.vault-card.is-selected .vault-button {
  border-color: rgba(229,53,77,.5);
  background: rgba(229,53,77,.12);
}

.drawer-actions {
  margin-top: 28px;
}
#resetProfileButton {
  width: 100%;
  min-height: 46px;
}

@media (max-width: 1100px) {
  .vault-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: unset; padding-top: 36px; }
  .hero-art { order: -1; min-height: 420px; }
  .hero-poster { width: min(88vw, 380px); height: min(120vw, 520px); }
}
@media (max-width: 560px) {
  .brand-mark { width: 50px; height: 50px; border-radius: 12px; }
  .vault-grid { grid-template-columns: 1fr; }
  .vault-card { min-height: 360px; }
  .scene-visual { min-height: 220px; }
}


/* ================================================================
   v0.14 — Compact art, clear navigation, free Premium notice
   ================================================================ */

.header-actions {
  gap: 7px !important;
}
.nav-pill {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(24,20,28,.92), rgba(11,10,14,.92));
  color: var(--text);
  font-weight: 700;
  font-size: .74rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 18px rgba(0,0,0,.18);
}
.nav-pill:hover { border-color: rgba(229,53,77,.45); }

.hero {
  min-height: 620px !important;
  padding-top: 22px !important;
  padding-bottom: 52px !important;
}
.hero-art {
  min-height: 440px !important;
}
.hero-poster {
  height: 440px !important;
  max-width: 370px;
}

.scene-visual {
  height: clamp(185px, 28vw, 255px) !important;
  min-height: 0 !important;
  margin-bottom: 24px !important;
}

/* More focused Dead Air scene art */
.scene-visual[data-story="deadAir"][data-scene="radio"]::before {
  left: 50%;
  top: 22px;
  width: 94px;
  height: 82px;
  transform: translateX(-50%);
  border: 6px solid rgba(255,255,255,.12);
  border-bottom: 0;
  border-radius: 52% 52% 20% 20%;
  box-shadow: 0 0 26px rgba(210,31,53,.12);
}
.scene-visual[data-story="deadAir"][data-scene="radio"] .scene-visual-prop::before {
  left: 17% !important;
  right: 17% !important;
  top: 43% !important;
  height: 32% !important;
}
.scene-visual[data-story="deadAir"][data-scene="studio"]::before {
  left: 50%;
  top: 17%;
  width: 54px;
  height: 112px;
  transform: translateX(-50%);
  border-radius: 999px 999px 28px 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.035));
  box-shadow: 0 0 30px rgba(210,31,53,.15);
  animation: micHover 4.8s ease-in-out infinite;
}

/* More focused Last Car scene art */
.scene-visual[data-story="lastCar"][data-scene="subway"]::before {
  inset: 15px 12% auto;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(229,53,77,.9), transparent);
  box-shadow: 0 0 22px rgba(229,53,77,.34);
  animation: trainLine 4.8s ease-in-out infinite;
}
.scene-visual[data-story="lastCar"][data-scene="subway"] .scene-visual-prop::before {
  inset: 19% 7% 17% !important;
}

/* More focused Snowbound scene art */
.scene-visual[data-story="snowbound"][data-scene="snow"] .scene-visual-prop::before,
.scene-visual[data-story="snowbound"][data-scene="cabin"] .scene-visual-prop::before {
  left: 37% !important;
  right: 37% !important;
  bottom: 23% !important;
  height: 42% !important;
}

.premium-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
}
.premium-modal[aria-hidden="false"] {
  pointer-events: auto;
  visibility: visible;
}
.premium-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3,2,5,.82);
  backdrop-filter: blur(8px);
}
.premium-modal-card {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid rgba(229,53,77,.38);
  border-radius: 22px;
  background: radial-gradient(circle at 80% 10%, rgba(210,31,53,.2), transparent 16rem), linear-gradient(145deg, #19151c, #09080c);
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
  animation: premiumWake .38s ease;
}
.premium-modal-card h2 {
  margin: 0 0 16px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(2.3rem, 8vw, 4.4rem);
  line-height: 1.02;
}
.premium-modal-card > p:not(.eyebrow) {
  color: #d5ced7;
  line-height: 1.7;
}
.premium-modal-whisper {
  color: #e27080 !important;
  font-weight: 700;
  letter-spacing: .04em;
}
.premium-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 1.35rem;
  cursor: pointer;
}
@keyframes premiumWake {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .brand-copy small { display: none !important; }
  .hero {
    padding-top: 18px !important;
    gap: 18px !important;
  }
  .hero-art {
    min-height: 270px !important;
  }
  .hero-poster {
    width: min(100%, 370px) !important;
    height: 270px !important;
    border-radius: 20px !important;
  }
  #heroArt[data-story="room13"] .hero-poster-prop::before {
    inset: 22px 105px 20px !important;
    border-width: 11px !important;
  }
  #heroArt[data-story="room13"] .hero-poster-prop::after {
    inset: 51px 130px 48px !important;
  }
  #heroArt[data-story="room13"] .hero-art-caption::before {
    top: -166px !important;
    font-size: 3.5rem !important;
  }
  #heroArt[data-story="room13"] .hero-art-caption::after {
    right: -250px !important;
    top: -160px !important;
    height: 130px !important;
  }
  #heroArt[data-story="deadAir"] .hero-poster::before {
    inset: 22px 105px auto !important;
    height: 54px !important;
  }
  #heroArt[data-story="deadAir"] .hero-poster::after {
    inset: 61px 153px auto !important;
    height: 100px !important;
  }
  #heroArt[data-story="deadAir"] .hero-poster-prop::before {
    left: 42px !important;
    right: 42px !important;
    top: 92px !important;
    height: 112px !important;
  }
  #heroArt[data-story="deadAir"] .hero-poster-prop::after {
    left: 66px !important;
    right: 66px !important;
    top: 150px !important;
  }
  #heroArt[data-story="lastCar"] .hero-poster-prop::before {
    inset: 34px 26px 48px !important;
  }
  #heroArt[data-story="lastCar"] .hero-poster-prop::after {
    inset: 70px 42px 72px !important;
  }
  #heroArt[data-story="lastCar"] .hero-poster::before,
  #heroArt[data-story="lastCar"] .hero-poster::after {
    top: 26px !important;
  }
  #heroArt[data-story="snowbound"] .hero-poster-prop::before {
    left: 120px !important;
    right: 120px !important;
    bottom: 58px !important;
    height: 90px !important;
  }
  #heroArt[data-story="snowbound"] .hero-poster-prop::after {
    height: 62% !important;
  }
  #heroArt[data-story="snowbound"] .hero-poster::after {
    top: 88px !important;
  }
  .scene-visual {
    height: 178px !important;
    min-height: 178px !important;
  }
}

@media (max-width: 430px) {
  .site-header {
    width: calc(100% - 14px) !important;
    gap: 6px !important;
  }
  .brand-mark {
    width: 36px !important;
    height: 36px !important;
  }
  .brand-mark-core { font-size: 1rem; }
  .brand strong { font-size: .76rem !important; }
  .nav-pill {
    min-height: 36px;
    padding: 0 10px;
    font-size: .68rem;
  }
  #profileButton.top-control {
    min-height: 36px !important;
    padding: 0 10px !important;
  }
  #profileButton .top-control-icon { display: none !important; }
  .hero-poster { height: 245px !important; }
  .hero-art { min-height: 245px !important; }
  .hero h1 { font-size: 4.55rem !important; }
  .scene-visual {
    height: 165px !important;
    min-height: 165px !important;
  }
}


/* ================================================================
   v0.15 — Thirteen-ending final acts
   ================================================================ */
.scene-visual[data-scene="radio"] .scene-visual-prop::after,
.scene-visual[data-scene="subway"] .scene-visual-prop::after,
.scene-visual[data-scene="snow"]::before {
  will-change: transform, opacity;
}

.story-prose p {
  text-wrap: pretty;
}

.story-prose p:last-child {
  margin-bottom: .15em;
}

.choice-button {
  text-wrap: pretty;
}

.result-panel::before {
  content: "13";
  position: absolute;
  right: 6%;
  top: 4%;
  font-family: "Oswald", sans-serif;
  font-size: clamp(5rem, 17vw, 11rem);
  color: rgba(210,31,53,.045);
  pointer-events: none;
}


/* ================================================================
   v0.16 — Original campfire anthology entry sequence
   ================================================================ */

body.intro-active {
  overflow: hidden;
}

.entry-intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 84%, rgba(189,43,31,.19), transparent 28%),
    radial-gradient(circle at 50% 52%, rgba(39,30,46,.34), transparent 46%),
    linear-gradient(180deg, #05050a 0%, #09070d 52%, #080609 100%);
  color: #f8f3f7;
  isolation: isolate;
  opacity: 1;
  visibility: visible;
  transition: opacity .72s ease, visibility .72s ease;
}

.entry-intro.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-intro[aria-hidden="true"] {
  pointer-events: none;
}

.entry-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 37%, rgba(0,0,0,.32) 78%, rgba(0,0,0,.7) 100%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.012) 0 1px, transparent 1px 4px);
}

.entry-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 16;
  opacity: .075;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  animation: entryFilmGrain .34s steps(2) infinite;
}

.entry-intro-skip {
  position: absolute;
  z-index: 30;
  top: max(17px, env(safe-area-inset-top));
  right: max(17px, env(safe-area-inset-right));
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(7,6,10,.54);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9);
  font: 700 .72rem/1 "DM Sans", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.entry-intro-skip:hover,
.entry-intro-skip:focus-visible {
  border-color: rgba(226,56,76,.75);
  background: rgba(118,16,31,.28);
  outline: none;
}

.entry-intro-skip:active {
  transform: translateY(1px);
}

.entry-intro-sky,
.entry-intro-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.entry-intro-haze {
  background:
    radial-gradient(ellipse at 50% 86%, rgba(232,72,38,.14), transparent 27%),
    linear-gradient(110deg, transparent 0 30%, rgba(137,113,151,.04) 47%, transparent 64%);
  filter: blur(8px);
  animation: entryHaze 6.2s ease-in-out infinite;
}

.entry-star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 8px rgba(255,255,255,.45);
  animation: entryStar 3.4s ease-in-out infinite;
}
.entry-star-a { left: 13%; top: 14%; animation-delay: .4s; }
.entry-star-b { left: 27%; top: 8%; animation-delay: 1.1s; }
.entry-star-c { left: 74%; top: 12%; animation-delay: .8s; }
.entry-star-d { left: 87%; top: 24%; animation-delay: 1.8s; }
.entry-star-e { left: 18%; top: 33%; animation-delay: 2.1s; }
.entry-star-f { left: 64%; top: 29%; animation-delay: 1.4s; }

.entry-intro-trees {
  position: absolute;
  z-index: 2;
  bottom: 0;
  width: 48%;
  height: 72%;
  opacity: .92;
  filter: drop-shadow(0 0 30px rgba(0,0,0,.5));
}

.entry-intro-trees::before,
.entry-intro-trees::after {
  content: "";
  position: absolute;
  bottom: -5%;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(62deg, transparent 0 43%, #050407 44% 51%, transparent 52%) 0 100% / 110px 260px repeat-x,
    linear-gradient(-62deg, transparent 0 43%, #050407 44% 51%, transparent 52%) 54px 100% / 118px 300px repeat-x;
  transform-origin: bottom;
}
.entry-intro-trees::after {
  opacity: .55;
  transform: scale(.74) translateY(-19%);
  filter: blur(.5px);
}
.entry-intro-trees-left { left: -8%; transform: skewX(-2deg); }
.entry-intro-trees-right { right: -8%; transform: scaleX(-1) skewX(-2deg); }

.entry-intro-copy {
  position: relative;
  z-index: 20;
  width: min(92vw, 760px);
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  transform: translateY(-6vh);
}

.entry-intro-line,
.entry-intro-final,
.entry-intro-brand {
  position: absolute;
  margin: 0;
  opacity: 0;
}

.entry-intro-line {
  font-family: "Oswald", sans-serif;
  font-size: clamp(2rem, 8vw, 4.7rem);
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 7px 28px rgba(0,0,0,.8);
}

.entry-intro-line-one {
  animation: entryLineOne 6.3s ease both;
}

.entry-intro-line-two {
  animation: entryLineTwo 6.3s ease both;
}

.entry-intro-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  animation: entryBrandReveal 6.3s ease both;
}

.entry-intro-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 25%, rgba(222,45,67,.23), transparent 42%),
    linear-gradient(145deg, rgba(38,32,44,.97), rgba(8,7,10,.98));
  box-shadow:
    inset 0 0 26px rgba(255,255,255,.035),
    0 0 42px rgba(220,43,64,.24),
    0 22px 50px rgba(0,0,0,.36);
}

.entry-intro-mark span {
  position: relative;
  z-index: 2;
  font-family: "Oswald", sans-serif;
  font-size: 2rem;
  letter-spacing: .05em;
}

.entry-intro-mark i {
  position: absolute;
  right: 10px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.15), #e53b52, rgba(255,255,255,.08));
  box-shadow: 0 0 18px rgba(229,59,82,.45);
  animation: entryMarkPulse 2.2s ease-in-out infinite;
}

.entry-intro-brand h1 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(3rem, 12vw, 7.3rem);
  line-height: .92;
  letter-spacing: -.025em;
  text-shadow: 0 10px 38px rgba(0,0,0,.75), 0 0 24px rgba(210,31,53,.13);
}

.entry-intro-brand p {
  margin: 0;
  color: rgba(234,225,236,.75);
  font-size: clamp(.82rem, 2.8vw, 1.05rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.entry-intro-final {
  bottom: 1%;
  color: rgba(242,232,241,.88);
  font-family: "Oswald", sans-serif;
  font-size: clamp(1.15rem, 4vw, 1.8rem);
  letter-spacing: .05em;
  animation: entryFinalLine 6.3s ease both;
}

.entry-intro-fire {
  position: absolute;
  z-index: 18;
  left: 50%;
  bottom: max(55px, calc(env(safe-area-inset-bottom) + 32px));
  width: 180px;
  height: 150px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 24px rgba(230,62,32,.24));
}

.entry-intro-fire::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 11px;
  width: 230px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(221,61,31,.25), rgba(105,20,22,.08) 38%, transparent 70%);
  filter: blur(10px);
  animation: entryFireGlow 1.5s ease-in-out infinite;
}

.entry-log {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 105px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4c2823, #211314 68%, #0d0a0b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), 0 8px 14px rgba(0,0,0,.44);
}
.entry-log-one { transform: translateX(-50%) rotate(15deg); }
.entry-log-two { transform: translateX(-50%) rotate(-15deg); }

.entry-flame {
  position: absolute;
  left: 50%;
  bottom: 34px;
  border-radius: 52% 48% 54% 46% / 66% 62% 38% 34%;
  transform-origin: 50% 100%;
  mix-blend-mode: screen;
}

.entry-flame-back {
  width: 84px;
  height: 104px;
  transform: translateX(-50%) rotate(4deg);
  background: radial-gradient(circle at 50% 72%, #ff9a42 0 12%, #dd3d24 44%, rgba(124,16,28,.32) 68%, transparent 72%);
  filter: blur(1px);
  animation: entryFlameBack 1.25s ease-in-out infinite alternate;
}

.entry-flame-mid {
  width: 58px;
  height: 88px;
  transform: translateX(-50%) rotate(-7deg);
  background: radial-gradient(circle at 48% 72%, #fff2a4 0 10%, #ff9c3e 34%, #e33f28 68%, transparent 72%);
  animation: entryFlameMid .94s ease-in-out infinite alternate;
}

.entry-flame-front {
  width: 34px;
  height: 63px;
  transform: translateX(-50%) rotate(5deg);
  background: radial-gradient(circle at 48% 74%, #fffde3 0 15%, #ffc75f 43%, #f16432 69%, transparent 73%);
  animation: entryFlameFront .72s ease-in-out infinite alternate;
}

.entry-ember {
  position: absolute;
  left: 50%;
  bottom: 82px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffb550;
  box-shadow: 0 0 8px rgba(255,142,58,.9);
  opacity: 0;
}
.entry-ember-one { animation: entryEmber 2.1s linear infinite .2s; }
.entry-ember-two { animation: entryEmberLeft 2.6s linear infinite .65s; }
.entry-ember-three { animation: entryEmberRight 2.4s linear infinite 1.1s; }
.entry-ember-four { animation: entryEmber 2.9s linear infinite 1.55s; }
.entry-ember-five { animation: entryEmberLeft 2.2s linear infinite 1.9s; }

.entry-intro-timer {
  position: absolute;
  z-index: 25;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(58vw, 280px);
  height: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
}
.entry-intro-timer span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(128,14,28,.4), #e13b50, #ff9a42);
  box-shadow: 0 0 12px rgba(225,59,80,.34);
  animation: entryTimer 6.3s linear forwards;
}

@keyframes entryLineOne {
  0%, 5% { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(5px); }
  12%, 26% { opacity: 1; transform: none; filter: none; }
  33%, 100% { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
}
@keyframes entryLineTwo {
  0%, 24% { opacity: 0; transform: translateY(14px); filter: blur(5px); }
  32%, 47% { opacity: 1; transform: none; filter: none; }
  54%, 100% { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
}
@keyframes entryBrandReveal {
  0%, 44% { opacity: 0; transform: scale(.95) translateY(12px); filter: blur(7px); }
  55%, 86% { opacity: 1; transform: none; filter: none; }
  94%, 100% { opacity: .9; transform: scale(1.015); }
}
@keyframes entryFinalLine {
  0%, 69% { opacity: 0; transform: translateY(9px); }
  77%, 94% { opacity: 1; transform: none; }
  100% { opacity: .78; }
}
@keyframes entryTimer { to { width: 100%; } }
@keyframes entryMarkPulse { 50% { opacity: .45; box-shadow: 0 0 8px rgba(229,59,82,.25); } }
@keyframes entryFilmGrain { 0% { transform: translate(0,0); } 50% { transform: translate(1px,-1px); } 100% { transform: translate(-1px,1px); } }
@keyframes entryHaze { 50% { transform: translateY(-8px) scale(1.03); opacity: .72; } }
@keyframes entryStar { 50% { opacity: .22; transform: scale(.72); } }
@keyframes entryFireGlow { 50% { transform: translateX(-50%) scale(1.06); opacity: .72; } }
@keyframes entryFlameBack { to { transform: translateX(-50%) scaleX(.9) scaleY(1.08) rotate(-4deg); } }
@keyframes entryFlameMid { to { transform: translateX(-50%) scaleX(1.08) scaleY(.92) rotate(4deg); } }
@keyframes entryFlameFront { to { transform: translateX(-50%) scaleX(.88) scaleY(1.1) rotate(-4deg); } }
@keyframes entryEmber {
  0% { opacity: 0; transform: translate(0,0) scale(.7); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(8px,-108px) scale(.15); }
}
@keyframes entryEmberLeft {
  0% { opacity: 0; transform: translate(0,0) scale(.7); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(-34px,-96px) scale(.15); }
}
@keyframes entryEmberRight {
  0% { opacity: 0; transform: translate(0,0) scale(.7); }
  14% { opacity: 1; }
  100% { opacity: 0; transform: translate(39px,-116px) scale(.15); }
}

@media (max-width: 560px) {
  .entry-intro-copy {
    transform: translateY(-9vh);
    min-height: 300px;
  }
  .entry-intro-fire {
    width: 150px;
    height: 132px;
    bottom: max(49px, calc(env(safe-area-inset-bottom) + 26px));
  }
  .entry-intro-brand h1 {
    font-size: clamp(2.8rem, 13vw, 4.3rem);
  }
  .entry-intro-brand p {
    max-width: 290px;
    font-size: .7rem;
    line-height: 1.5;
  }
  .entry-intro-line {
    font-size: clamp(1.9rem, 10vw, 3.2rem);
  }
  .entry-intro-final {
    bottom: 0;
    font-size: 1.04rem;
  }
  .entry-intro-mark {
    width: 62px;
    height: 62px;
    border-radius: 15px;
  }
  .entry-intro-mark span { font-size: 1.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .entry-intro * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .entry-intro-line,
  .entry-intro-final {
    display: none;
  }
  .entry-intro-brand {
    opacity: 1;
    transform: none;
    filter: none;
  }
}


/* ================================================================
   v0.20 — Realistic Story Cover Artwork
   Built from the approved v0.18 baseline.
   ================================================================ */

.vault-card-art {
  position: relative;
  height: 158px;
  overflow: hidden;
  background-color: #09080c;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.055),
    inset 0 -34px 44px rgba(0,0,0,.36),
    0 12px 30px rgba(0,0,0,.26);
}

.vault-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4,4,7,.02) 35%, rgba(4,4,7,.18) 72%, rgba(4,4,7,.66) 100%),
    radial-gradient(circle at 78% 20%, rgba(201,31,52,.08), transparent 38%);
  pointer-events: none;
}

.vault-card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.045),
    inset 0 0 34px rgba(0,0,0,.22);
  pointer-events: none;
}

.vault-card-art[data-art="room13"] {
  background-image: url("../img/story-covers/room13.webp");
  background-position: center 56%;
}

.vault-card-art[data-art="deadAir"] {
  background-image: url("../img/story-covers/deadAir.webp");
  background-position: center 54%;
}

.vault-card-art[data-art="lastCar"] {
  background-image: url("../img/story-covers/lastCar.webp");
  background-position: center 52%;
}

.vault-card-art[data-art="snowbound"] {
  background-image: url("../img/story-covers/snowbound.webp");
  background-position: center 58%;
}

.vault-card:hover .vault-card-art,
.vault-card.is-selected .vault-card-art {
  filter: brightness(1.035) contrast(1.025);
}

.hero-poster {
  background-color: #09080c;
  background-repeat: no-repeat;
  background-size: cover;
  transition: background-position 5s ease, filter .4s ease;
}

.hero-poster-prop {
  display: none;
}

#heroArt .hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,3,5,.03) 26%, rgba(3,3,5,.16) 66%, rgba(3,3,5,.72) 100%),
    radial-gradient(circle at 75% 18%, rgba(199,30,51,.1), transparent 38%);
  mix-blend-mode: normal;
}

#heroArt .hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.055),
    inset 0 0 48px rgba(0,0,0,.28);
  opacity: 1;
  pointer-events: none;
}

#heroArt[data-story="room13"] .hero-poster {
  background-image: url("../img/story-covers/room13.webp");
  background-position: 58% center;
  animation: realisticCoverDriftRoom 13s ease-in-out infinite alternate;
}

#heroArt[data-story="deadAir"] .hero-poster {
  background-image: url("../img/story-covers/deadAir.webp");
  background-position: 53% center;
  animation: realisticCoverDriftCenter 13s ease-in-out infinite alternate;
}

#heroArt[data-story="lastCar"] .hero-poster {
  background-image: url("../img/story-covers/lastCar.webp");
  background-position: center center;
  animation: realisticCoverDriftCenter 14s ease-in-out infinite alternate;
}

#heroArt[data-story="snowbound"] .hero-poster {
  background-image: url("../img/story-covers/snowbound.webp");
  background-position: 66% center;
  animation: realisticCoverDriftSnow 14s ease-in-out infinite alternate;
}

#heroArt .hero-art-caption {
  z-index: 4;
  left: 22px;
  right: 22px;
  bottom: 19px;
  padding-top: 42px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.28));
  text-shadow: 0 3px 16px rgba(0,0,0,.92);
}

#heroArt .hero-art-caption::before,
#heroArt .hero-art-caption::after {
  display: none !important;
  content: none !important;
}

@keyframes realisticCoverDriftRoom {
  from { background-position: 55% center; }
  to { background-position: 62% center; }
}

@keyframes realisticCoverDriftCenter {
  from { background-position: 48% center; }
  to { background-position: 54% center; }
}

@keyframes realisticCoverDriftSnow {
  from { background-position: 62% center; }
  to { background-position: 70% center; }
}

@media (max-width: 760px) {
  .vault-card-art {
    height: 148px;
  }

  .hero-poster {
    width: min(88vw, 380px);
    height: min(104vw, 470px);
  }

  #heroArt[data-story="room13"] .hero-poster {
    background-position: 62% center;
  }

  #heroArt[data-story="deadAir"] .hero-poster {
    background-position: 54% center;
  }

  #heroArt[data-story="lastCar"] .hero-poster {
    background-position: 50% center;
  }

  #heroArt[data-story="snowbound"] .hero-poster {
    background-position: 70% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #heroArt .hero-poster {
    animation: none !important;
  }
}


/* ================================================================
   v0.21 — Remove legacy artwork overlays from story cards/hero
   ================================================================ */

.vault-card-art::before,
.vault-card-art::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

.hero-poster-prop,
.hero-poster-prop::before,
.hero-poster-prop::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

#heroArt .hero-art-caption::before,
#heroArt .hero-art-caption::after {
  content: none !important;
  display: none !important;
}


/* ================================================================
   v0.22 — cache-bust fixes: remove leftover card overlays + smooth intro handoff
   ================================================================ */

body .site-header,
body main {
  transition: opacity .8s ease, transform .8s ease, filter .8s ease;
}

html.nightfall-lock .site-header,
html.nightfall-lock main {
  opacity: 0 !important;
  transform: translateY(10px) scale(.992);
  filter: blur(8px);
  pointer-events: none;
}

.vault-card-art,
.vault-card-art[data-art] {
  background-color: #09080c !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.vault-card-art::before,
.vault-card-art::after,
.vault-card-art[data-art]::before,
.vault-card-art[data-art]::after {
  content: none !important;
  display: none !important;
  animation: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hero-poster-prop,
.hero-poster-prop::before,
.hero-poster-prop::after {
  display: none !important;
  content: none !important;
}

#heroArt .hero-art-caption::before,
#heroArt .hero-art-caption::after {
  display: none !important;
  content: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body .site-header,
  body main {
    transition: none !important;
  }
}


/* ================================================================
   v0.23 — Room 13 realistic in-story image integration
   ================================================================ */
.scene-visual.has-real-art {
  background-color: #09080c !important;
  background-image:
    linear-gradient(180deg, rgba(5,5,8,.02) 0%, rgba(5,5,8,.08) 58%, rgba(5,5,8,.58) 100%),
    var(--scene-image) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

.scene-visual.has-real-art::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 7 !important;
  background:
    radial-gradient(circle at 75% 18%, rgba(192,28,47,.08), transparent 38%),
    linear-gradient(90deg, rgba(0,0,0,.12), transparent 24%, transparent 76%, rgba(0,0,0,.14)) !important;
  animation: none !important;
  pointer-events: none !important;
}

.scene-visual.has-real-art::after {
  content: "" !important;
  display: block !important;
  background:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.4)),
    radial-gradient(circle at 50% 45%, transparent 0 42%, rgba(0,0,0,.22) 100%) !important;
}

.scene-visual.has-real-art .scene-visual-prop,
.scene-visual.has-real-art .scene-visual-prop::before,
.scene-visual.has-real-art .scene-visual-prop::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.scene-visual.has-real-art.is-entering {
  animation: room13-image-enter .72s ease both !important;
}

@keyframes room13-image-enter {
  0% { opacity: .25; filter: brightness(.52) contrast(1.08); transform: scale(1.015); }
  20% { opacity: 1; filter: brightness(1.15) contrast(1.04); }
  35% { opacity: .72; filter: brightness(.78) contrast(1.08); }
  100% { opacity: 1; filter: none; transform: scale(1); }
}

.scene-visual.has-real-art[data-image-key="start"] { background-position: center 54% !important; }
.scene-visual.has-real-art[data-image-key="phone1"],
.scene-visual.has-real-art[data-image-key="phone2"],
.scene-visual.has-real-art[data-image-key="proof1"],
.scene-visual.has-real-art[data-image-key="choice1"] { background-position: center 56% !important; }
.scene-visual.has-real-art[data-image-key="mirror1"],
.scene-visual.has-real-art[data-image-key="mirror2"],
.scene-visual.has-real-art[data-image-key="glass1"] { background-position: center 48% !important; }
.scene-visual.has-real-art[data-image-key="bed1"],
.scene-visual.has-real-art[data-image-key="stairs1"],
.scene-visual.has-real-art[data-image-key="below1"] { background-position: center 62% !important; }

@media (max-width: 680px) {
  .scene-visual.has-real-art {
    height: clamp(210px, 54vw, 300px) !important;
  }
}


/* ================================================================
   v0.24 — Dead Air realistic in-story image integration
   ================================================================ */
.scene-visual.has-real-art[data-story="deadAir"] {
  background-position: center center !important;
}

.scene-visual.has-real-art[data-story="deadAir"][data-image-key="start"] {
  background-position: center 54% !important;
}

.scene-visual.has-real-art[data-story="deadAir"][data-image-key="onAir1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="booth1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="trace1"] {
  background-position: center 52% !important;
}

.scene-visual.has-real-art[data-story="deadAir"][data-image-key="names1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="archive1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadArchiveDeep1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadArchiveFinal"] {
  background-position: center 58% !important;
}

.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadNetwork1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadNetworkFinal"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadRemote1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadRoadFinal"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadSilence1"],
.scene-visual.has-real-art[data-story="deadAir"][data-image-key="deadSilenceFinal"] {
  background-position: center 50% !important;
}

@media (max-width: 680px) {
  .scene-visual.has-real-art[data-story="deadAir"] {
    height: clamp(210px, 54vw, 300px) !important;
  }
}


/* ================================================================
   v0.26 — Oval crimson story-choice buttons across every nightmare
   ================================================================ */

.choice-list {
  gap: 14px !important;
}

.choice-button {
  min-height: 62px !important;
  padding: 17px 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 119, 142, .72) !important;
  color: #fff8fa !important;
  background:
    linear-gradient(180deg, #df2946 0%, #bd1734 52%, #981028 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(55,0,12,.34),
    0 10px 25px rgba(128, 8, 31, .24) !important;
  font-weight: 650 !important;
  letter-spacing: .005em;
  text-shadow: 0 1px 2px rgba(55, 0, 13, .52);
  transition:
    transform .18s ease,
    filter .18s ease,
    border-color .18s ease,
    box-shadow .18s ease !important;
}

.choice-button::before {
  color: #ffe4e9 !important;
  opacity: .92 !important;
  text-shadow: 0 1px 3px rgba(65,0,14,.55);
}

.choice-button:hover,
.choice-button:focus-visible {
  color: #ffffff !important;
  border-color: rgba(255, 198, 208, .92) !important;
  background:
    linear-gradient(180deg, #ed3653 0%, #c91d3a 52%, #a3112c 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(55,0,12,.3),
    0 13px 30px rgba(158, 10, 40, .34) !important;
  transform: translateY(-2px) !important;
  filter: saturate(1.06) brightness(1.035);
}

.choice-button:focus-visible {
  outline: 3px solid rgba(255, 218, 225, .9) !important;
  outline-offset: 3px;
}

.choice-button:active {
  color: #fff4f7 !important;
  border-color: rgba(255, 131, 151, .78) !important;
  background:
    linear-gradient(180deg, #aa112c 0%, #8d0c23 100%) !important;
  box-shadow:
    inset 0 2px 5px rgba(61,0,13,.42),
    0 5px 14px rgba(112, 4, 26, .25) !important;
  transform: translateY(1px) scale(.994) !important;
}

.choice-button[disabled] {
  color: rgba(255, 244, 247, .78) !important;
  background:
    linear-gradient(180deg, #9b3042 0%, #762233 100%) !important;
  border-color: rgba(255, 141, 158, .36) !important;
  box-shadow: none !important;
  opacity: .58 !important;
}

@media (max-width: 680px) {
  .choice-list {
    gap: 13px !important;
  }

  .choice-button {
    min-height: 60px !important;
    padding: 16px 22px !important;
    border-radius: 999px !important;
    font-size: 1rem !important;
    line-height: 1.38 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-button {
    transition: none !important;
  }

  .choice-button:hover,
  .choice-button:focus-visible,
  .choice-button:active {
    transform: none !important;
  }
}


/* ================================================================
   v0.27 — Compact refined crimson story-choice buttons
   ================================================================ */

.choice-list {
  gap: 11px !important;
}

.choice-button {
  width: 100% !important;
  min-height: 50px !important;
  padding: 12px 19px !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255, 111, 133, .62) !important;

  color: #16080c !important;
  background:
    linear-gradient(180deg, #df3450 0%, #ca203d 50%, #ad1531 100%) !important;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.21),
    inset 0 -1px 0 rgba(74,0,15,.24),
    0 6px 16px rgba(104, 7, 26, .19) !important;

  font-size: .97rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;

  text-shadow:
    -1px -1px 0 rgba(255, 185, 197, .42),
     1px -1px 0 rgba(255, 185, 197, .42),
    -1px  1px 0 rgba(255, 185, 197, .42),
     1px  1px 0 rgba(255, 185, 197, .42);

  transition:
    transform .16s ease,
    filter .16s ease,
    border-color .16s ease,
    box-shadow .16s ease !important;
}

.choice-button::before {
  color: #240a10 !important;
  opacity: .88 !important;
  font-size: 1.02em !important;
  text-shadow:
    -1px 0 rgba(255, 178, 191, .3),
     1px 0 rgba(255, 178, 191, .3) !important;
}

.choice-button:hover,
.choice-button:focus-visible {
  color: #110609 !important;
  border-color: rgba(255, 168, 183, .84) !important;
  background:
    linear-gradient(180deg, #e9445e 0%, #d32644 50%, #b81835 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(74,0,15,.22),
    0 8px 20px rgba(124, 8, 31, .24) !important;
  transform: translateY(-1px) !important;
  filter: brightness(1.02);
}

.choice-button:focus-visible {
  outline: 2px solid rgba(255, 215, 222, .88) !important;
  outline-offset: 3px;
}

.choice-button:active {
  color: #0d0507 !important;
  background:
    linear-gradient(180deg, #bb1935 0%, #9c102a 100%) !important;
  border-color: rgba(255, 105, 127, .68) !important;
  box-shadow:
    inset 0 2px 5px rgba(70,0,15,.32),
    0 3px 9px rgba(90, 4, 22, .16) !important;
  transform: translateY(1px) !important;
}

.choice-button[disabled] {
  color: rgba(22, 8, 12, .66) !important;
  background:
    linear-gradient(180deg, #a65061 0%, #873646 100%) !important;
  border-color: rgba(255, 142, 160, .28) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: .56 !important;
}

@media (max-width: 680px) {
  .choice-list {
    gap: 10px !important;
  }

  .choice-button {
    min-height: 48px !important;
    padding: 11px 17px !important;
    border-radius: 26px !important;
    font-size: .94rem !important;
    line-height: 1.28 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-button {
    transition: none !important;
  }

  .choice-button:hover,
  .choice-button:focus-visible,
  .choice-button:active {
    transform: none !important;
  }
}


/* ================================================================
   v0.28 — High-contrast readable choice text
   ================================================================ */

.choice-button,
.choice-button:hover,
.choice-button:focus-visible,
.choice-button:active {
  color: #fffafc !important;
  font-weight: 650 !important;
  text-shadow: 0 1px 2px rgba(35, 0, 8, .82) !important;
  -webkit-text-stroke: 0 !important;
}

.choice-button::before,
.choice-button:hover::before,
.choice-button:focus-visible::before,
.choice-button:active::before {
  color: #fff2f5 !important;
  opacity: .96 !important;
  text-shadow: 0 1px 2px rgba(35, 0, 8, .82) !important;
  -webkit-text-stroke: 0 !important;
}

.choice-button[disabled] {
  color: rgba(255, 248, 250, .78) !important;
  text-shadow: 0 1px 2px rgba(35, 0, 8, .52) !important;
}

.choice-button[disabled]::before {
  color: rgba(255, 242, 246, .72) !important;
}

/* ================================================================
   v0.29 — Centered choice text
   ================================================================ */
.choice-button,
.choice-button:hover,
.choice-button:focus-visible,
.choice-button:active {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
}

.choice-button::before,
.choice-button:hover::before,
.choice-button:focus-visible::before,
.choice-button:active::before {
  position: static !important;
  margin-right: 12px !important;
  flex: 0 0 auto !important;
}

@media (max-width: 680px) {
  .choice-button,
  .choice-button:hover,
  .choice-button:focus-visible,
  .choice-button:active {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
