:root {
  --bg: #050b16;
  --surface: rgba(12, 26, 48, 0.88);
  --line: rgba(144, 201, 255, 0.18);
  --text: #f4f8ff;
  --muted: #aebfd7;
  --cyan: #53dcff;
  --amber: #ffc15a;
  --pink: #ff5dac;
  --danger: #ff7287;
  --success: #65e5ae;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 5%, rgba(41, 102, 184, 0.22), transparent 34rem),
    radial-gradient(circle at 95% 88%, rgba(234, 73, 158, 0.12), transparent 28rem),
    linear-gradient(160deg, #071426 0%, #050a13 58%, #080b18 100%);
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.ambient {
  position: fixed;
  z-index: 0;
  width: 22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.18;
}

.ambient-one { top: -10rem; right: -9rem; background: var(--cyan); }
.ambient-two { bottom: -12rem; left: -10rem; background: var(--pink); }

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

.masthead {
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 740;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 1.8rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(83, 220, 255, 0.55);
  border-radius: 50%;
  color: var(--amber);
  box-shadow: 0 0 24px rgba(83, 220, 255, 0.18);
}

.gift-label {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.story { flex: 1; display: grid; align-items: stretch; }

.experience {
  position: relative;
  display: grid;
  min-height: min(750px, calc(100svh - 7.5rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.65rem;
  background: rgba(7, 17, 33, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  animation: enter 480ms ease both;
}

.art-panel {
  position: relative;
  min-height: 16.5rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 11, 24, 0.02) 22%, rgba(5, 12, 25, 0.86) 100%),
    url("./story-chemistry.webp") center 54% / cover no-repeat;
  transition: filter 720ms ease;
}

.scene-experience .art-panel {
  filter: saturate(var(--impact-sat)) brightness(var(--impact-bright));
}

.art-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle at 62% 32%, transparent 12%, rgba(2, 7, 17, .82) 100%);
  opacity: var(--impact-opacity);
  transition: opacity 720ms ease;
  pointer-events: none;
}

.art-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(3, 11, 23, 0.12), transparent 65%);
  pointer-events: none;
}

.art-panel::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: color;
  opacity: 0.2;
  transition: background 500ms ease, opacity 500ms ease;
}

.art-panel.theme-bedroom { background-position: 43% 54%; }
.art-panel.theme-bathroom { background-position: 74% 49%; }
.art-panel.theme-kitchen { background-position: 57% 74%; }
.art-panel.theme-door { background-position: 70% 40%; }
.art-panel.theme-street { background-position: 78% 17%; }
.art-panel.theme-inside { background-position: 46% 62%; }
.art-panel.theme-bedroom::before { background: rgba(58, 139, 255, 0.28); }
.art-panel.theme-bathroom::before { background: rgba(55, 224, 214, 0.26); }
.art-panel.theme-kitchen::before { background: rgba(255, 161, 72, 0.3); }
.art-panel.theme-door::before { background: rgba(220, 85, 191, 0.25); }
.art-panel.theme-street::before { background: rgba(44, 116, 193, 0.34); }
.art-panel.theme-inside::before { background: rgba(163, 70, 219, 0.28); }

.art-time {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(3, 10, 22, 0.58);
  backdrop-filter: blur(10px);
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.art-caption {
  position: absolute;
  z-index: 2;
  inset: auto 1.25rem 1.15rem;
  color: rgba(240, 248, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experiment-seal {
  position: absolute;
  z-index: 3;
  right: 1.25rem;
  bottom: 3.7rem;
  width: 7.4rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 193, 90, 0.5);
  border-radius: 50%;
  color: var(--amber);
  background: rgba(4, 12, 26, 0.66);
  box-shadow: 0 0 0 0.55rem rgba(255, 193, 90, 0.06), 0 0 40px rgba(255, 193, 90, 0.14);
  backdrop-filter: blur(10px);
}
.experiment-seal span { font-size: 2.15rem; font-weight: 880; line-height: 1; letter-spacing: -0.06em; }
.experiment-seal small { margin-top: 0.35rem; color: #f4d9a9; font-size: 0.58rem; font-weight: 820; letter-spacing: 0.12em; }
.final-seal { border-color: rgba(83, 220, 255, 0.6); color: var(--cyan); box-shadow: 0 0 0 0.55rem rgba(83, 220, 255, 0.06), 0 0 40px rgba(83, 220, 255, 0.16); }
.final-seal span { font-size: 1.7rem; }
.room-index {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 2.7rem;
  color: rgba(255, 255, 255, 0.16);
  font-size: clamp(5.5rem, 14vw, 9rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.09em;
}

.content-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 5vw, 2.7rem);
  background:
    radial-gradient(circle at 88% 8%, rgba(80, 138, 255, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(10, 24, 46, 0.96), rgba(6, 15, 30, 0.98));
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  margin-bottom: 1rem;
  max-width: 17ch;
  font-size: clamp(2.05rem, 8.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
h2 { font-size: clamp(2rem, 7vw, 3.65rem); }

.lead {
  max-width: 38rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.62;
}

.start-note { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.35rem 0 1.5rem; }
.pill {
  padding: 0.46rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #c9d8eb;
  background: rgba(115, 170, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 680;
}

.mission-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  margin: 0.35rem 0 1.2rem;
  padding: 1rem;
  border: 1px solid rgba(83, 220, 255, 0.2);
  border-radius: 1.15rem;
  background: rgba(83, 220, 255, 0.055);
}
.mission-number { color: var(--amber); font-size: 1.4rem; font-weight: 880; line-height: 1; }
.mission-card strong { display: block; margin-bottom: 0.28rem; color: #fff; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mission-card p { margin: 0; color: #becde0; font-size: 0.92rem; line-height: 1.5; }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: auto; padding-top: 1.2rem; }
.primary-button, .secondary-button, .remove-button, .quiet-button {
  min-height: 3.35rem;
  border: 0;
  border-radius: 1rem;
  padding: 0.86rem 1.15rem;
  cursor: pointer;
  font-weight: 820;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, background 180ms ease;
}
.primary-button {
  color: #06101f;
  background: linear-gradient(135deg, var(--cyan), #8cc7ff 62%, #a4a1ff);
  box-shadow: 0 13px 34px rgba(71, 190, 255, 0.22);
}
.secondary-button { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.035); }
.quiet-button {
  color: #b9c9dc;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
}
.quiet-button:hover { color: #fff; border-color: var(--line); background: rgba(255,255,255,.025); }
.remove-button {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 92, 152, 0.5);
  background: linear-gradient(120deg, rgba(190, 30, 97, 0.84), rgba(117, 42, 163, 0.9));
  box-shadow: 0 13px 34px rgba(164, 35, 114, 0.22);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
}
.remove-button:disabled {
  cursor: not-allowed;
  opacity: .5;
  filter: saturate(.45);
  box-shadow: none;
}
.remove-button:disabled::before { animation: none; }
.remove-button:disabled:hover { transform: none; filter: saturate(.45); }
.remove-button span, .remove-button small { position: relative; z-index: 1; }
.remove-button small { color: rgba(255,255,255,.72); font-size: .72rem; font-weight: 650; letter-spacing: .02em; }
.remove-button.is-processing { border-color: rgba(255,255,255,.18); background: linear-gradient(120deg, rgba(61, 68, 94, 0.86), rgba(48, 28, 74, 0.92)); }
.remove-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.24) 46%, transparent 68%);
  transform: translateX(-120%);
  animation: shimmer 2.7s ease-in-out infinite;
}
.primary-button:hover, .secondary-button:hover, .remove-button:hover, .quiet-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary-button:active, .secondary-button:active, .remove-button:active, .quiet-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .72; }

.progress-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.progress-label { color: var(--muted); font-size: 0.82rem; font-weight: 720; font-variant-numeric: tabular-nums; }
.progress-dots { display: flex; flex: 1; gap: 0.34rem; }
.progress-dot { flex: 1; width: auto; max-width: 1.65rem; height: 0.28rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.progress-dot::after { content: ""; display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--amber)); transition: width 360ms ease; }
.progress-dot.done::after, .progress-dot.current::after { width: 100%; }
.progress-dot.current { box-shadow: 0 0 14px rgba(83, 220, 255, 0.36); }

.chapter-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.chapter-progress > span { color: #8fa3bd; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; white-space: nowrap; }
.chapter-steps { display: flex; flex: 1; gap: 0.38rem; }
.chapter-step { flex: 1; max-width: 2.4rem; height: 0.25rem; border-radius: 999px; background: rgba(255,255,255,.1); transition: background 280ms ease, box-shadow 280ms ease; }
.chapter-step.done { background: var(--cyan); }
.chapter-step.current { background: var(--amber); box-shadow: 0 0 13px rgba(255,193,90,.3); }

.experiment-status {
  margin-bottom: 1.35rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(83, 220, 255, 0.13);
  border-radius: 0.9rem;
  background: rgba(2, 10, 23, 0.34);
}
.status-copy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; margin-bottom: 0.55rem; }
.status-copy span { display: inline-flex; align-items: baseline; gap: .35rem; color: #8fa4bf; font-size: 0.61rem; font-weight: 820; letter-spacing: 0.075em; }
.status-copy strong { color: var(--cyan); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.discovery-track { height: 0.34rem; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.075); }
.discovery-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), #8d9dff 68%, var(--pink)); box-shadow: 0 0 12px rgba(83,220,255,.28); transition: width 500ms cubic-bezier(.2,.8,.2,1); }

.hub-content h2 { margin-bottom: 0.8rem; }
.chapter-copy { margin-bottom: 1.15rem; }
.choice-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0.2rem 0 0.72rem; }
.choice-heading strong { color: #fff; font-size: 1rem; }
.choice-heading span { color: #8094af; font-size: 0.75rem; white-space: nowrap; }
.moment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.72rem; }
.moment-choice {
  min-height: 9.7rem;
  padding: 1rem;
  border: 1px solid rgba(140, 199, 255, 0.18);
  border-radius: 1.1rem;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(83,220,255,.09), transparent 9rem),
    rgba(11, 27, 51, 0.76);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.moment-choice:hover { transform: translateY(-3px); border-color: rgba(83,220,255,.48); background-color: rgba(16, 39, 72, 0.88); box-shadow: 0 16px 28px rgba(0,0,0,.18); }
.moment-choice:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.moment-choice.is-found { border-color: rgba(85, 226, 187, 0.28); background: linear-gradient(140deg, rgba(25, 70, 69, .33), rgba(11, 27, 51, .78)); }
.choice-topline { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.choice-symbol { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border: 1px solid rgba(83,220,255,.25); border-radius: .72rem; color: var(--amber); background: rgba(83,220,255,.06); font-size: 1.1rem; }
.choice-time { color: #8195af; font-size: .72rem; font-weight: 760; letter-spacing: .06em; }
.moment-choice > strong { display: block; min-height: 2.5rem; margin-bottom: 1rem; font-size: 1rem; line-height: 1.25; letter-spacing: -.015em; }
.choice-status { color: var(--cyan); font-size: .65rem; font-weight: 850; letter-spacing: .075em; }
.moment-choice.is-found .choice-status { color: #63e2bc; }
.moment-choice.is-found:not(.was-correct) .choice-status { color: #e7bb73; }
.chapter-complete { display: flex; gap: .75rem; align-items: flex-start; margin-top: .85rem; padding: .85rem .95rem; border: 1px solid rgba(99,226,188,.2); border-radius: .95rem; background: rgba(30, 105, 86, .12); }
.chapter-complete > span { color: #63e2bc; }
.chapter-complete p { margin: 0; color: #b8c9dc; font-size: .82rem; line-height: 1.45; }
.chapter-complete strong { color: #eafdf7; }

.scene-symbol {
  display: grid;
  place-items: center;
  width: 3.5rem;
  aspect-ratio: 1;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(83, 220, 255, 0.3);
  border-radius: 1.1rem;
  color: var(--amber);
  background: rgba(83, 220, 255, 0.07);
  font-size: 1.65rem;
  box-shadow: inset 0 0 24px rgba(83, 220, 255, 0.06);
}

.scene-heading-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.05rem; }
.scene-heading-row .scene-symbol { flex: 0 0 auto; margin-bottom: 0; }
.chapter-chip { padding: .42rem .62rem; border: 1px solid rgba(255,193,90,.2); border-radius: 999px; color: #e8c987; background: rgba(255,193,90,.055); font-size: .65rem; font-weight: 820; letter-spacing: .08em; }

.scene-copy { margin-bottom: 1.2rem; }

.prediction-card {
  min-width: 0;
  margin: .15rem 0 .85rem;
  padding: 1rem;
  border: 1px solid rgba(83, 220, 255, .2);
  border-radius: 1.15rem;
  background: linear-gradient(145deg, rgba(23, 52, 88, .48), rgba(8, 20, 39, .68));
}
.prediction-card legend { padding: 0 .35rem; color: #fff; font-size: 1rem; font-weight: 820; }
.prediction-card > p { margin: -.1rem 0 .78rem; color: #92a7c1; font-size: .8rem; line-height: 1.4; }
.prediction-list { display: grid; gap: .55rem; }
.prediction-choice {
  display: flex;
  align-items: center;
  gap: .72rem;
  width: 100%;
  min-height: 3.15rem;
  padding: .66rem .75rem;
  border: 1px solid rgba(164, 196, 230, .15);
  border-radius: .9rem;
  color: #eaf2fc;
  background: rgba(255,255,255,.035);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}
.prediction-choice:hover:not(:disabled) { transform: translateX(.22rem); border-color: rgba(83, 220, 255, .48); background: rgba(83, 220, 255, .08); }
.prediction-choice:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.prediction-choice:disabled { cursor: default; opacity: .54; }
.prediction-letter { flex: 0 0 auto; display: grid; place-items: center; width: 1.85rem; aspect-ratio: 1; border: 1px solid rgba(83, 220, 255, .22); border-radius: .58rem; color: var(--cyan); background: rgba(83, 220, 255, .06); font-size: .74rem; font-weight: 900; }
.prediction-choice.is-correct { opacity: 1; border-color: rgba(101, 229, 174, .5); background: rgba(101, 229, 174, .1); }
.prediction-choice.is-wrong { opacity: 1; border-color: rgba(255, 114, 135, .5); background: rgba(255, 114, 135, .1); }
.prediction-choice.is-processing { opacity: 1; border-color: rgba(255, 193, 90, .55); background: rgba(255, 193, 90, .09); animation: choice-processing 520ms ease-in-out infinite alternate; }
.prediction-choice.is-selected { border-color: rgba(255, 193, 90, .72); background: rgba(255, 193, 90, .11); box-shadow: inset 0 0 0 1px rgba(255, 193, 90, .2); }
.prediction-choice.is-selected .prediction-letter { color: #261500; border-color: transparent; background: var(--amber); }
.prediction-choice.is-correct .prediction-letter { color: #052117; border-color: transparent; background: var(--success); }
.prediction-choice.is-wrong .prediction-letter { color: #28060e; border-color: transparent; background: var(--danger); }
.prediction-choice.is-processing .prediction-letter { color: #2a1700; border-color: transparent; background: var(--amber); }
.removal-instruction { margin: 0 0 .2rem; color: #afbed1; font-size: .9rem; line-height: 1.48; }
.removal-instruction strong { color: var(--amber); }

.processing-note {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.35rem;
  padding: .78rem 1rem;
  border: 1px solid rgba(255,193,90,.2);
  border-radius: 1rem;
  background: rgba(255,193,90,.06);
}
.processing-note > div { display: grid; gap: .08rem; }
.processing-note strong { color: #fff; font-size: .9rem; }
.processing-note small { color: #ad9a7d; font-size: .7rem; }
.processing-pulse { width: .72rem; aspect-ratio: 1; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 .35rem rgba(255,193,90,.08); animation: processing-pulse 600ms ease-in-out infinite alternate; }
.reveal-card {
  position: relative;
  overflow: hidden;
  margin-top: 0.25rem;
  padding: 1.15rem;
  border: 1px solid rgba(255, 114, 135, 0.25);
  border-radius: 1.15rem;
  background: linear-gradient(140deg, rgba(106, 25, 73, 0.28), rgba(19, 34, 61, 0.82));
  animation: reveal 520ms cubic-bezier(.2,.8,.2,1) both;
}
.reveal-card::before { content: ""; position: absolute; width: 11rem; aspect-ratio: 1; top: -7rem; right: -5rem; border-radius: 50%; background: var(--pink); filter: blur(58px); opacity: 0.15; }
.discovery-stamp { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .75rem; padding: .34rem .52rem; border: 1px solid rgba(83,220,255,.2); border-radius: 999px; color: var(--cyan); background: rgba(83,220,255,.055); font-size: .63rem; font-weight: 850; letter-spacing: .08em; }
.prediction-result { margin-bottom: .35rem !important; font-size: .7rem; font-weight: 880; letter-spacing: .1em; text-transform: uppercase; }
.prediction-result.is-correct { color: var(--success) !important; }
.prediction-result.is-wrong { color: var(--danger) !important; }
.without-chemistry { position: relative; margin-top: .45rem; padding: .95rem; border: 1px solid rgba(255,114,135,.28); border-radius: .95rem; background: rgba(255,114,135,.075); }
.reveal-kicker { margin-bottom: 0.45rem; color: var(--danger) !important; font-size: 0.73rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.reveal-card h3 { position: relative; margin-bottom: 0; font-size: 1.32rem; line-height: 1.2; letter-spacing: -0.025em; }
.reality-explanation { position: relative; margin-top: .75rem; padding: .95rem; border: 1px solid rgba(83,220,255,.22); border-radius: .95rem; background: rgba(83,220,255,.055); }
.reality-kicker { margin-bottom: .48rem !important; color: var(--cyan) !important; font-size: .73rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.reveal-card p { position: relative; margin-bottom: 0; color: #cbd7e9; line-height: 1.58; }
.science-note { display: flex; gap: 0.7rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,.08); color: #e3ecf9 !important; font-size: 0.92rem; }
.science-note span { color: var(--cyan); font-weight: 900; }
.science-note > span:last-child { display: grid; gap: .18rem; color: #e3ecf9; font-weight: 500; }
.science-note strong { color: var(--amber); font-size: .7rem; letter-spacing: .09em; }
.experience.is-revealed .scene-symbol { color: var(--danger); border-color: rgba(255, 114, 135, 0.35); animation: pulse-out 520ms ease both; }
.final-experience .art-panel { background-position: center 58%; }

.collapse-layer {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .25rem;
  color: #fff;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 5px),
    rgba(3, 6, 15, 0.9);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.collapse-layer span { color: #c1ccdd; font-size: .7rem; font-weight: 820; letter-spacing: .16em; }
.collapse-layer strong { color: var(--danger); font-size: clamp(4.5rem, 14vw, 8rem); line-height: .9; letter-spacing: -.06em; text-shadow: 0 0 42px rgba(255, 75, 112, .35); }
.scene-experience.is-removing .collapse-layer { visibility: visible; animation: system-off 1050ms ease both; }
.scene-experience.is-removing .art-panel,
.scene-experience.is-removing .content-panel { animation: interference 210ms steps(2, end) infinite; }

.final-insight {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  margin: .25rem 0 1rem;
  padding: .95rem 1rem;
  border-left: 2px solid var(--amber);
  background: rgba(255,193,90,.045);
}
.final-insight > span { color: var(--amber); font-family: Georgia, serif; font-size: 2.2rem; line-height: .8; }
.final-insight p { margin: 0; color: #d7e1ee; font-size: .94rem; line-height: 1.5; }

.result-card {
  position: relative;
  overflow: hidden;
  min-height: 19.5rem;
  margin: 0.35rem 0 0.8rem;
  padding: 1.4rem;
  border: 1px solid rgba(83, 220, 255, 0.32);
  border-radius: 1.35rem;
  background: radial-gradient(circle at 88% 5%, rgba(255, 193, 90, 0.24), transparent 32%), radial-gradient(circle at 10% 95%, rgba(83, 220, 255, 0.2), transparent 35%), linear-gradient(145deg, #10284a, #09162c 62%, #160e2b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 20px 50px rgba(0,0,0,.24);
}
.result-card::after { content: ""; position: absolute; width: 10rem; aspect-ratio: 1; right: -4.8rem; bottom: -5rem; border: 1px solid rgba(83, 220, 255, 0.34); border-radius: 50%; box-shadow: 0 0 0 1.6rem rgba(83, 220, 255, 0.035), 0 0 0 3.2rem rgba(255, 93, 172, 0.025); }
.result-brand { color: var(--cyan); font-size: 0.72rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.result-count { display: inline-flex; align-items: baseline; gap: .25rem; margin: 2.2rem 0 1rem; color: var(--amber); font-size: 3.9rem; font-weight: 880; line-height: .8; letter-spacing: -.07em; }
.result-count small { color: #9db0c9; font-size: .9rem; font-weight: 760; letter-spacing: .02em; }
.result-card blockquote { position: relative; z-index: 1; max-width: 25ch; margin: 0; color: #fff; font-size: clamp(1.45rem, 6vw, 2.2rem); font-weight: 820; line-height: 1.12; letter-spacing: -.035em; }
.result-stats { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.result-stats span { padding: .38rem .55rem; border: 1px solid rgba(83,220,255,.18); border-radius: 999px; color: #a9c5df; background: rgba(83,220,255,.045); font-size: .68rem; font-weight: 760; }
.share-hint { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.site-footer { padding: 0.9rem 0 0.1rem; color: rgba(174, 191, 215, 0.62); font-size: 0.74rem; text-align: center; }

.loading-card { min-height: 60vh; display: grid; place-items: center; align-content: center; gap: 1rem; color: var(--muted); }
.loading-orbit { width: 2.8rem; aspect-ratio: 1; border: 2px solid rgba(83, 220, 255, 0.18); border-top-color: var(--cyan); border-radius: 50%; animation: spin 800ms linear infinite; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 2rem); padding: .78rem 1rem; border: 1px solid rgba(83, 220, 255, .25); border-radius: .9rem; color: #fff; background: rgba(7, 21, 40, .94); box-shadow: 0 16px 45px rgba(0,0,0,.34); transform: translate(-50%, 160%); transition: transform 300ms ease; pointer-events: none; font-size: .88rem; }
.toast.show { transform: translate(-50%, 0); }
noscript { display: block; margin: 2rem; color: white; text-align: center; }

@media (min-width: 760px) {
  .app-shell { padding-inline: 1.5rem; }
  .experience { grid-template-columns: minmax(19rem, .86fr) minmax(25rem, 1.14fr); }
  .art-panel { min-height: 100%; }
  .content-panel { padding: clamp(2.2rem, 5vw, 4rem); }
  .remove-button { width: auto; min-width: 14rem; }
  .site-footer { text-align: right; }
}

@media (max-width: 430px) {
  .gift-label { font-size: .62rem; letter-spacing: .08em; }
  .brand { font-size: .82rem; }
  .brand-mark { width: 1.55rem; }
  .experience { border-radius: 1.3rem; }
  .content-panel { padding: 1.25rem; }
  .art-panel { min-height: 14.5rem; }
  .prediction-card { padding: .85rem; }
  .prediction-choice { padding: .62rem; font-size: .92rem; }
  .actions > * { width: 100%; }
  .moment-grid { grid-template-columns: 1fr; }
  .moment-choice { min-height: 8.4rem; }
  .choice-heading { display: block; }
  .choice-heading span { display: block; margin-top: .2rem; }
  .experiment-seal { width: 6.2rem; }
  .room-index { bottom: 2.5rem; font-size: 5.6rem; }
}

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

@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0%, 45% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }
@keyframes pulse-out { 0% { transform: scale(1); } 45% { transform: scale(.86); opacity: .45; } 100% { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes system-off {
  0% { opacity: 0; filter: brightness(2); }
  12% { opacity: .96; }
  22% { opacity: .72; transform: translateX(-3px); }
  34% { opacity: 1; transform: translateX(3px); }
  72% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; filter: brightness(.45); }
}
@keyframes interference {
  0% { filter: grayscale(.2) contrast(1); transform: translateX(0); }
  50% { filter: grayscale(.9) contrast(1.35); transform: translateX(1px); }
  100% { filter: grayscale(.5) contrast(.9); transform: translateX(-1px); }
}
@keyframes choice-processing { from { filter: brightness(.9); } to { filter: brightness(1.18); } }
@keyframes processing-pulse { from { transform: scale(.72); opacity: .62; } to { transform: scale(1.05); opacity: 1; } }
