:root {
  --bg: #07111f;
  --bg-deep: #030813;
  --panel: rgba(7, 14, 27, 0.84);
  --panel-strong: rgba(11, 20, 36, 0.92);
  --panel-soft: rgba(17, 28, 47, 0.64);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(232, 212, 173, 0.24);
  --gold: #d9b370;
  --gold-strong: #f3d59d;
  --gold-soft: rgba(217, 179, 112, 0.14);
  --cream: #f7f0e4;
  --text: #f7f2e9;
  --muted: #c3cfdb;
  --muted-strong: #e2e9f1;
  --blue: #84c3ff;
  --blue-soft: rgba(132, 195, 255, 0.12);
  --mint: #8ad5b3;
  --mint-soft: rgba(138, 213, 179, 0.14);
  --coral: #f2b28f;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
  --radius: 30px;
  --radius-sm: 18px;
  --content-width: 1180px;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68, 102, 162, 0.26), transparent 34%),
    radial-gradient(circle at 85% 14%, rgba(217, 179, 112, 0.12), transparent 20%),
    radial-gradient(circle at 20% 100%, rgba(67, 119, 197, 0.18), transparent 30%),
    linear-gradient(135deg, #050a12 0%, #0a1629 48%, #050a12 100%);
  overflow-x: hidden;
}

body.secret-mode {
  background:
    radial-gradient(circle at top left, rgba(92, 135, 210, 0.28), transparent 35%),
    radial-gradient(circle at 82% 14%, rgba(217, 179, 112, 0.16), transparent 24%),
    radial-gradient(circle at 24% 100%, rgba(110, 164, 238, 0.2), transparent 34%),
    linear-gradient(135deg, #040912 0%, #0a1730 50%, #040911 100%);
}

body.final-mode {
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 179, 112, 0.16), transparent 26%),
    radial-gradient(circle at 80% 10%, rgba(94, 153, 255, 0.18), transparent 24%),
    radial-gradient(circle at center, rgba(245, 226, 183, 0.06), transparent 34%),
    linear-gradient(140deg, #050914 0%, #09152a 45%, #040710 100%);
}

.ambient,
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
}

.ambient {
  filter: blur(30px);
  opacity: 0.85;
}

.ambient-a {
  width: 32rem;
  height: 32rem;
  inset: auto auto 62% -10%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(89, 130, 204, 0.26), transparent 68%);
  animation: drift-a 14s ease-in-out infinite alternate;
}

.ambient-b {
  width: 26rem;
  height: 26rem;
  inset: 8% -8% auto auto;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(217, 179, 112, 0.18), transparent 68%);
  animation: drift-b 16s ease-in-out infinite alternate;
}

.ambient-c {
  width: 18rem;
  height: 18rem;
  inset: auto auto 10% 58%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(120, 184, 255, 0.2), transparent 72%);
  animation: drift-c 12s ease-in-out infinite alternate;
}

.noise {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 100%);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 24px;
}

.glass-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 28px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(217, 179, 112, 0.16), rgba(118, 172, 255, 0.12)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.26);
}

.logo-mark span {
  width: 22px;
  height: 22px;
  display: block;
  border: 2px solid var(--gold-strong);
  border-radius: 7px;
  transform: rotate(45deg);
  box-shadow: 0 0 20px rgba(217, 179, 112, 0.34);
}

.eyebrow,
.panel-label,
.step-kicker p,
.tiny-label,
.eyebrow-tag,
.ticket-tag,
.pill,
.protocol-pill,
.metric-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.panel-label,
.step-kicker p,
.tiny-label,
.protocol-pill,
.metric-kicker {
  color: var(--muted);
}

.brand-wrap h1,
.screen h2,
.panel-title,
.hero-card h3,
.feature-card h3,
.unlock-banner strong,
.ticket-title,
.poster-fallback h3,
.message-box h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

.brand-wrap h1 {
  margin: 6px 0 0;
  font-size: clamp(1.45rem, 1.8vw, 1.9rem);
  font-weight: 600;
}

.topbar-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.pill-live {
  color: var(--mint);
  border-color: rgba(138, 213, 179, 0.22);
  background: var(--mint-soft);
}

.pill-gold {
  color: var(--gold-strong);
  border-color: rgba(243, 213, 157, 0.24);
  background: var(--gold-soft);
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.side-panel,
.main-panel {
  border-radius: var(--radius);
}

.side-panel {
  position: sticky;
  top: 24px;
  padding: 22px;
}

.panel-section + .panel-section {
  margin-top: 22px;
}

.panel-title {
  margin: 8px 0 10px;
  font-size: 1.38rem;
  line-height: 1.25;
}

.panel-copy,
.small-print p,
.feature-card p,
.hero-copy p,
.hero-card p,
.question-copy,
.feedback-panel p,
.metric-copy,
.unlock-copy,
.transition-copy,
.ticket-copy,
.message-box p {
  color: var(--muted);
  line-height: 1.65;
}

.panel-copy,
.hero-copy p,
.hero-card p,
.question-copy,
.feedback-panel p,
.transition-copy,
.message-box p,
.small-print p,
.protocol-list {
  font-size: 1.02rem;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--muted-strong);
}

.progress-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(125, 185, 255, 0.9), rgba(243, 213, 157, 0.96));
  box-shadow: 0 0 26px rgba(217, 179, 112, 0.32);
  transition: width 0.45s ease;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 108px;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(25, 37, 58, 0.76);
  border: 1px solid var(--line);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.protocol-box {
  padding: 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(217, 179, 112, 0.06), transparent),
    rgba(23, 34, 53, 0.8);
  border: 1px solid rgba(217, 179, 112, 0.14);
}

.protocol-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.protocol-list li + li {
  margin-top: 8px;
}

.small-print {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.main-panel {
  min-height: 760px;
  padding: 28px;
}

.step-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.section-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gold-strong);
  box-shadow: 0 0 18px rgba(217, 179, 112, 0.48);
}

.screen {
  min-height: 650px;
  animation: screen-in 0.55s ease;
}

.screen-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-layout,
.reveal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
}

.hero-copy h2,
.question-title,
.unlock-title,
.reveal-copy h2 {
  margin: 0;
  font-size: clamp(1.95rem, 3.8vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-copy .lede,
.reveal-copy .lede {
  font-size: 1.1rem;
  color: var(--muted-strong);
}

.hero-card,
.feature-card,
.feedback-panel,
.question-shell,
.option-button,
.trait-card,
.signal-panel,
.analysis-console,
.unlock-banner,
.summary-card,
.transition-box,
.ticket-card,
.poster-frame,
.message-box,
.mini-stat {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(20, 31, 49, 0.76);
}

.hero-card,
.feature-card,
.feedback-panel,
.question-shell,
.signal-panel,
.analysis-console,
.unlock-banner,
.transition-box,
.ticket-card,
.message-box {
  padding: 22px;
}

.hero-card::before,
.feature-card::before,
.feedback-panel::before,
.question-shell::before,
.signal-panel::before,
.analysis-console::before,
.unlock-banner::before,
.transition-box::before,
.ticket-card::before,
.poster-frame::before,
.message-box::before {
  content: "";
  position: absolute;
  inset: auto auto 82% 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.hero-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(217, 179, 112, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.03);
}

.hero-points,
.feature-list,
.summary-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted-strong);
  line-height: 1.65;
}

.hero-points li + li,
.feature-list li + li,
.summary-list li + li {
  margin-top: 8px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.primary-button,
.secondary-button,
.ghost-button,
.signal-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 600;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.primary-button {
  color: #11203a;
  background: linear-gradient(135deg, #f4d7a4, #d0aa63);
  box-shadow: 0 16px 34px rgba(217, 179, 112, 0.3);
}

.secondary-button {
  color: var(--text);
  background: linear-gradient(135deg, rgba(125, 185, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(125, 185, 255, 0.22);
}

.ghost-button {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.signal-button:hover,
.option-button:hover,
.trait-card:hover,
.signal-bubble:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.signal-button:disabled,
.option-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.metrics-row,
.feature-grid,
.summary-grid,
.ticket-grid {
  display: grid;
  gap: 14px;
}

.metrics-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-stat,
.summary-card {
  padding: 18px;
}

.mini-stat,
.summary-card,
.stat-card,
.feature-card,
.feedback-panel,
.question-shell,
.signal-panel,
.analysis-console,
.unlock-banner,
.transition-box,
.message-box {
  backdrop-filter: blur(14px);
}

.mini-stat span,
.summary-card span,
.ticket-meta span,
.analysis-status span,
.signal-meta span,
.selection-bar span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.mini-stat strong,
.summary-card strong,
.ticket-meta strong,
.analysis-status strong,
.signal-meta strong,
.selection-bar strong {
  display: block;
  font-size: 1.08rem;
}

.question-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold-strong);
  background: var(--gold-soft);
  border: 1px solid rgba(243, 213, 157, 0.18);
}

.question-copy {
  margin: 0;
  max-width: 60ch;
  font-size: 1.06rem;
  color: var(--muted-strong);
}

.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-button {
  min-height: 122px;
  padding: 18px 18px 20px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(29, 42, 63, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.option-button strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--gold-strong);
  background: rgba(217, 179, 112, 0.12);
}

.option-button span {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--cream);
  font-weight: 600;
}

.option-button.is-selected {
  border-color: rgba(243, 213, 157, 0.34);
  background:
    linear-gradient(180deg, rgba(217, 179, 112, 0.12), transparent),
    rgba(51, 63, 83, 0.9);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.option-button:disabled {
  opacity: 0.82;
}

.feedback-panel {
  background:
    radial-gradient(circle at top right, rgba(217, 179, 112, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.03);
}

.feedback-panel strong,
.unlock-banner strong,
.ticket-accent,
.big-reveal {
  display: block;
  color: var(--gold-strong);
}

.feedback-panel strong,
.unlock-banner strong {
  margin-bottom: 10px;
  font-size: 1.06rem;
}

.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(22, 34, 52, 0.84);
  border: 1px solid var(--line);
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sequence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trait-card {
  padding: 18px;
  min-height: 116px;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(26, 38, 58, 0.8);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.trait-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.trait-card strong {
  display: block;
  line-height: 1.45;
  font-size: 1rem;
  color: var(--cream);
}

.trait-card.is-selected {
  border-color: rgba(125, 185, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(125, 185, 255, 0.12), transparent),
    rgba(255, 255, 255, 0.05);
}

.trait-card.is-locked {
  cursor: default;
}

.signal-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.signal-board {
  position: relative;
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at center, rgba(113, 157, 231, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.02));
  overflow: hidden;
}

.signal-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.signal-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent),
    rgba(10, 18, 32, 0.82);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  animation: bubble-float var(--bubble-speed, 6.2s) ease-in-out infinite;
  animation-delay: var(--bubble-delay, 0s);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.signal-bubble.is-positive {
  border-color: rgba(125, 185, 255, 0.18);
}

.signal-bubble.is-negative {
  color: var(--muted);
}

.signal-bubble.is-hit {
  background:
    linear-gradient(180deg, rgba(138, 213, 179, 0.16), transparent),
    rgba(11, 28, 31, 0.95);
  border-color: rgba(138, 213, 179, 0.28);
  color: #dff9ee;
}

.signal-bubble.is-miss {
  background:
    linear-gradient(180deg, rgba(242, 178, 143, 0.14), transparent),
    rgba(34, 20, 16, 0.92);
  border-color: rgba(242, 178, 143, 0.24);
}

.analysis-console {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.analysis-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.analysis-log {
  display: grid;
  gap: 10px;
}

.log-line {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
}

.log-line.is-dim {
  color: var(--muted);
}

.unlock-banner {
  background:
    radial-gradient(circle at top right, rgba(217, 179, 112, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.03);
}

.unlock-title {
  margin: 0 0 12px;
}

.transition-box {
  background:
    radial-gradient(circle at top left, rgba(125, 185, 255, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.03);
}

.transition-highlight {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(125, 185, 255, 0.08);
  border: 1px solid rgba(125, 185, 255, 0.16);
  color: var(--muted-strong);
}

.celebration-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top center, rgba(217, 179, 112, 0.12), transparent 26%),
    radial-gradient(circle at 18% 24%, rgba(120, 184, 255, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(16, 27, 44, 0.82);
  backdrop-filter: blur(16px);
}

.celebration-panel::before {
  content: "";
  position: absolute;
  inset: auto auto 82% 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.celebration-stage {
  position: relative;
  min-height: 420px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(243, 213, 157, 0.14);
  background:
    radial-gradient(circle at top center, rgba(243, 213, 157, 0.12), transparent 22%),
    radial-gradient(circle at 20% 30%, rgba(120, 184, 255, 0.08), transparent 22%),
    radial-gradient(circle at 80% 18%, rgba(217, 179, 112, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(8, 15, 28, 0.74), rgba(5, 10, 19, 0.96)),
    #050a12;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 26px 54px rgba(0, 0, 0, 0.26);
}

.celebration-stage::before,
.celebration-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.celebration-stage::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 42%, transparent 100%);
}

.celebration-stage::after {
  inset: 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(243, 213, 157, 0.06);
}

.celebration-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.celebration-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: min(78%, 560px);
  padding: 30px 26px;
  border-radius: 30px;
  transform: translate(-50%, -50%);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(10, 19, 34, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.celebration-orb {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 251, 237, 0.98), rgba(243, 213, 157, 0.9) 26%, rgba(217, 179, 112, 0.18) 54%, transparent 72%);
  box-shadow:
    0 0 28px rgba(243, 213, 157, 0.34),
    0 0 72px rgba(120, 184, 255, 0.16);
  animation: pulse-orb 2.8s ease-in-out infinite;
}

#celebrationStatus {
  margin: 0;
  color: var(--cream);
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: balance;
}

.confetti-piece {
  position: absolute;
  top: -12%;
  width: 9px;
  height: 24px;
  border-radius: 999px;
  opacity: 0;
  animation: confetti-fall var(--confetti-duration, 3.8s) linear infinite;
  animation-delay: var(--confetti-delay, 0s);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.14));
}

.confetti-piece:nth-child(odd) {
  width: 7px;
  height: 18px;
}

.confetti-gold {
  background: linear-gradient(180deg, #fff1ca, #d2aa63);
}

.confetti-blue {
  background: linear-gradient(180deg, #dff0ff, #77b7ff);
}

.confetti-cream {
  background: linear-gradient(180deg, #ffffff, #f0e5cf);
}

.firework-burst {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.18);
  opacity: 0;
  animation: firework-burst 1.9s ease-out infinite;
  animation-delay: var(--burst-delay, 0s);
}

.firework-burst::before,
.firework-burst::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.firework-burst::before {
  width: 10px;
  height: 10px;
  box-shadow:
    0 -38px 0 0 rgba(243, 213, 157, 0.96),
    27px -27px 0 0 rgba(132, 195, 255, 0.88),
    38px 0 0 0 rgba(255, 248, 231, 0.92),
    27px 27px 0 0 rgba(243, 213, 157, 0.82),
    0 38px 0 0 rgba(132, 195, 255, 0.84),
    -27px 27px 0 0 rgba(255, 248, 231, 0.86),
    -38px 0 0 0 rgba(243, 213, 157, 0.86),
    -27px -27px 0 0 rgba(132, 195, 255, 0.82);
}

.firework-burst::after {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 24px rgba(243, 213, 157, 0.2),
    inset 0 0 18px rgba(132, 195, 255, 0.08);
}

.reveal-layout {
  align-items: stretch;
}

.reveal-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.big-reveal {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
}

.luxury-reveal-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(243, 213, 157, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.luxury-reveal-card::before,
.luxury-reveal-card::after {
  content: "";
  position: absolute;
  top: 72%;
  z-index: 3;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #07111f;
  border: 1px solid rgba(243, 213, 157, 0.12);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.24);
}

.luxury-reveal-card::before {
  left: -13px;
}

.luxury-reveal-card::after {
  right: -13px;
}

.reveal-visual {
  position: relative;
  min-height: 700px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 179, 112, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(5, 11, 20, 0.8), rgba(5, 10, 18, 0.96)),
    #07111f;
}

.reveal-visual::before,
.reveal-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.reveal-visual::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.08), transparent 1.6%),
    radial-gradient(circle at 62% 22%, rgba(255, 255, 255, 0.08), transparent 1.4%),
    radial-gradient(circle at 84% 38%, rgba(255, 255, 255, 0.06), transparent 1.2%),
    radial-gradient(circle at 30% 74%, rgba(255, 255, 255, 0.07), transparent 1.3%),
    radial-gradient(circle at 72% 80%, rgba(255, 255, 255, 0.06), transparent 1.1%);
  opacity: 0.6;
}

.reveal-visual::after {
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(243, 213, 157, 0.08);
}

.reveal-background,
.reveal-placeholder,
.reveal-dim {
  position: absolute;
  inset: 0;
}

.reveal-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  filter: saturate(0.9) brightness(0.42);
  transform: scale(1.03);
}

.reveal-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background:
    radial-gradient(circle at 50% 16%, rgba(243, 213, 157, 0.28), transparent 16%),
    radial-gradient(circle at 18% 22%, rgba(120, 184, 255, 0.14), transparent 18%),
    radial-gradient(circle at 82% 20%, rgba(217, 179, 112, 0.12), transparent 16%),
    radial-gradient(circle at 50% 76%, rgba(255, 210, 120, 0.08), transparent 18%),
    linear-gradient(180deg, rgba(8, 17, 31, 0.16), rgba(6, 11, 20, 0.98)),
    linear-gradient(135deg, #0a1323 0%, #08101b 50%, #050a12 100%);
}

.placeholder-stamp,
.placeholder-venue-mark {
  position: absolute;
  z-index: 1;
  color: rgba(255, 247, 234, 0.18);
  pointer-events: none;
  text-transform: uppercase;
}

.placeholder-stamp {
  right: 24px;
  top: 28px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 213, 157, 0.16);
  background: rgba(10, 16, 28, 0.28);
  color: rgba(243, 213, 157, 0.58);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
}

.placeholder-venue-mark {
  left: 24px;
  bottom: 28px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1.05;
  letter-spacing: 0.08em;
}

.reveal-placeholder::before,
.reveal-placeholder::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}

.reveal-placeholder::before {
  top: -2%;
  bottom: 24%;
  background:
    linear-gradient(72deg, transparent 34%, rgba(255, 255, 255, 0.05) 42%, transparent 51%),
    linear-gradient(108deg, transparent 37%, rgba(132, 195, 255, 0.07) 46%, transparent 56%),
    linear-gradient(90deg, transparent 44%, rgba(243, 213, 157, 0.08) 50%, transparent 56%),
    radial-gradient(circle at 50% 18%, rgba(255, 244, 214, 0.18), transparent 20%);
  opacity: 0.95;
}

.reveal-placeholder::after {
  left: 50%;
  bottom: -10%;
  width: 110%;
  height: 58%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background:
    radial-gradient(ellipse at center bottom, rgba(255, 220, 140, 0.12) 0 14%, rgba(6, 10, 18, 0) 14.8%),
    radial-gradient(ellipse at center bottom, transparent 0 42%, rgba(243, 213, 157, 0.36) 42.7% 43.4%, transparent 44.3%),
    radial-gradient(ellipse at center bottom, transparent 0 33%, rgba(255, 255, 255, 0.14) 33.5% 34.1%, transparent 34.8%),
    linear-gradient(180deg, transparent 0 26%, rgba(6, 10, 18, 0.56) 26%, rgba(6, 10, 18, 0.98) 68%),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.1) 0 2%,
      transparent 2% 7%,
      rgba(255, 255, 255, 0.08) 7% 10%,
      transparent 10% 15%,
      rgba(255, 255, 255, 0.1) 15% 19%,
      transparent 19% 24%,
      rgba(255, 255, 255, 0.09) 24% 28%,
      transparent 28% 33%,
      rgba(255, 255, 255, 0.08) 33% 37%,
      transparent 37% 42%,
      rgba(255, 255, 255, 0.1) 42% 46%,
      transparent 46% 52%,
      rgba(255, 255, 255, 0.09) 52% 56%,
      transparent 56% 62%,
      rgba(255, 255, 255, 0.1) 62% 67%,
      transparent 67% 73%,
      rgba(255, 255, 255, 0.08) 73% 78%,
      transparent 78% 84%,
      rgba(255, 255, 255, 0.12) 84% 89%,
      transparent 89% 100%
    );
  box-shadow:
    0 -24px 56px rgba(243, 213, 157, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0.94;
}

.reveal-dim {
  background:
    radial-gradient(circle at top center, rgba(217, 179, 112, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.24), rgba(4, 8, 15, 0.58) 34%, rgba(4, 8, 15, 0.94));
}

.reveal-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
  min-height: 700px;
  padding: 26px;
}

.reveal-top {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ticket-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-head-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-head-copy span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ticket-head-copy strong {
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.35;
}

.reveal-manifest {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manifest-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manifest-pill-accent {
  border-color: rgba(243, 213, 157, 0.24);
  background: rgba(217, 179, 112, 0.12);
  color: var(--gold-strong);
}

.route-board {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top right, rgba(243, 213, 157, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(9, 16, 29, 0.58);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(0, 0, 0, 0.16);
}

.route-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.route-head span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-head strong {
  font-size: 1rem;
  line-height: 1.4;
}

.route-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.route-city {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-city-arrival {
  text-align: right;
}

.route-city span {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-city strong {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.08em;
}

.route-city em {
  color: var(--cream);
  font-style: normal;
  font-size: 0.96rem;
}

.route-connector {
  position: relative;
  height: 34px;
}

.route-connector::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    90deg,
    rgba(243, 213, 157, 0.14),
    rgba(243, 213, 157, 0.78) 28%,
    rgba(132, 195, 255, 0.82) 72%,
    rgba(132, 195, 255, 0.16)
  );
}

.route-connector::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 10px;
  transform: translateY(-50%);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 18px 10px;
  opacity: 0.55;
}

.route-plane {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent),
    rgba(11, 20, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold-strong);
  box-shadow:
    0 0 24px rgba(243, 213, 157, 0.18),
    0 0 40px rgba(132, 195, 255, 0.12);
}

.ticket-stub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ticket-stub {
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(10, 17, 30, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ticket-stub span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticket-stub strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--cream);
}

.private-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(243, 213, 157, 0.22);
  background: rgba(12, 19, 32, 0.5);
  color: var(--gold-strong);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.reveal-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.reveal-title-block h3,
.reveal-title-block p,
.going-copy,
.reveal-footer {
  margin: 0;
}

.reveal-title-block h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
}

.reveal-title-block p {
  margin-top: 14px;
  color: var(--gold-strong);
  font-size: clamp(0.98rem, 2vw, 1.35rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.going-copy {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 0.98;
  color: var(--cream);
  text-shadow: 0 0 24px rgba(255, 244, 214, 0.14);
}

.reveal-bottom {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed rgba(243, 213, 157, 0.22);
}

.reveal-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.reveal-info-card {
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(9, 16, 29, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.reveal-info-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-strong);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal-info-card strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.5;
}

.reveal-info-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.reveal-footer {
  color: var(--muted-strong);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.ticket-card {
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(217, 179, 112, 0.12), transparent 30%),
    radial-gradient(circle at 15% 20%, rgba(125, 185, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(255, 255, 255, 0.035);
}

.ticket-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 50%;
  height: 160%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  animation: shimmer 5s linear infinite;
}

.ticket-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold-strong);
  background: rgba(217, 179, 112, 0.14);
  border: 1px solid rgba(243, 213, 157, 0.18);
}

.ticket-title {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.ticket-copy {
  margin: 0 0 18px;
}

.ticket-grid article {
  min-height: 140px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(255, 255, 255, 0.028);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-grid strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.4;
}

.poster-frame {
  min-height: 100%;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(217, 179, 112, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.03);
}

.poster-surface {
  position: relative;
  height: 100%;
  min-height: 540px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 179, 112, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    #0a1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.poster-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.1), transparent 6%),
    radial-gradient(circle at 65% 35%, rgba(255, 255, 255, 0.08), transparent 5%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08), transparent 5%),
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08), transparent 5%);
  opacity: 0.7;
  pointer-events: none;
}

.poster-surface img,
.poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.poster-surface img {
  object-fit: cover;
}

.poster-fallback {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(6, 13, 22, 0.1), rgba(6, 13, 22, 0.95)),
    radial-gradient(circle at top center, rgba(217, 179, 112, 0.14), transparent 30%);
}

.poster-fallback h3 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.poster-fallback p {
  margin: 12px 0 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.message-box {
  display: none;
}

.message-box.is-visible {
  display: block;
  animation: screen-in 0.4s ease;
}

.message-box h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.reveal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.noscript {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 4;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(10, 20, 34, 0.94);
  border: 1px solid rgba(242, 178, 143, 0.26);
  color: var(--text);
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubble-float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-10px);
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(40px, -20px, 0) scale(1.12);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-34px, 26px, 0) scale(1.08);
  }
}

@keyframes drift-c {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(24px, -18px, 0) scale(1.1);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(0) rotate(18deg);
  }

  to {
    transform: translateX(540px) rotate(18deg);
  }
}

@keyframes pulse-orb {
  0%,
  100% {
    transform: scale(0.94);
    box-shadow:
      0 0 28px rgba(243, 213, 157, 0.34),
      0 0 72px rgba(120, 184, 255, 0.16);
  }

  50% {
    transform: scale(1.06);
    box-shadow:
      0 0 34px rgba(243, 213, 157, 0.42),
      0 0 94px rgba(120, 184, 255, 0.22);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8%, 0) rotate(0deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(22px, 500px, 0) rotate(540deg);
  }
}

@keyframes firework-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.14);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@media (max-width: 1080px) {
  .layout,
  .hero-layout,
  .reveal-layout {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: relative;
    top: 0;
  }

  .feature-grid,
  .summary-grid,
  .metrics-row,
  .signal-meta,
  .analysis-status,
  .ticket-grid,
  .reveal-info-grid,
  .ticket-stub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .main-panel {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .answer-grid,
  .feature-grid,
  .summary-grid,
  .ticket-grid,
  .signal-meta,
  .analysis-status {
    grid-template-columns: 1fr;
  }

  .question-title {
    font-size: clamp(1.9rem, 6vw, 2.7rem);
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px;
  }

  .topbar,
  .main-panel,
  .side-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-pills {
    justify-content: flex-start;
  }

  .stats-grid,
  .answer-grid,
  .feature-grid,
  .summary-grid,
  .metrics-row,
  .signal-meta,
  .analysis-status,
  .ticket-grid,
  .trait-grid,
  .reveal-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trait-grid {
    gap: 12px;
  }

  .screen {
    min-height: auto;
  }

  .screen-content {
    gap: 18px;
  }

  .question-shell,
  .signal-panel,
  .analysis-console,
  .unlock-banner,
  .transition-box,
  .celebration-panel,
  .ticket-card,
  .message-box {
    padding: 18px;
  }

  .hero-copy h2,
  .question-title,
  .unlock-title,
  .reveal-copy h2 {
    font-size: clamp(1.72rem, 9vw, 2.35rem);
    line-height: 1.08;
  }

  .question-copy,
  .panel-copy,
  .small-print p,
  .hero-copy p,
  .hero-card p,
  .feedback-panel p,
  .protocol-list {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .signal-board {
    min-height: 500px;
  }

  .selection-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .option-button,
  .trait-card {
    min-height: auto;
    padding: 16px;
  }

  .option-button span,
  .trait-card strong {
    font-size: 0.98rem;
  }

  .stat-card,
  .mini-stat,
  .summary-card {
    min-height: auto;
  }

  .reveal-visual {
    min-height: 0;
  }

  .luxury-reveal-card::before,
  .luxury-reveal-card::after {
    width: 20px;
    height: 20px;
    top: 73%;
  }

  .reveal-overlay {
    min-height: 0;
    gap: 18px;
    padding: 16px;
  }

  .reveal-top {
    gap: 14px;
  }

  .ticket-head {
    gap: 10px;
  }

  .route-board {
    gap: 14px;
    padding: 14px;
  }

  .route-city,
  .route-city-arrival {
    text-align: left;
  }

  .route-visual {
    gap: 10px;
  }

  .route-connector {
    height: 30px;
  }

  .ticket-stub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .ticket-stub {
    padding: 12px;
    border-radius: 18px;
  }

  .ticket-stub strong {
    font-size: 0.92rem;
  }

  .celebration-stage {
    min-height: 360px;
    margin-top: 18px;
  }

  .celebration-core {
    width: calc(100% - 32px);
    padding: 24px 18px;
  }

  .celebration-orb {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }

  #celebrationStatus {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .reveal-title-block h3 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 0.92;
  }

  .going-copy {
    font-size: clamp(1.75rem, 10vw, 2.8rem);
    line-height: 1;
  }

  .reveal-info-card {
    min-height: auto;
    padding: 14px;
    border-radius: 18px;
  }

  .reveal-info-card strong {
    font-size: 0.94rem;
    line-height: 1.4;
  }

  .reveal-info-card small {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .reveal-footer {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .manifest-pill,
  .private-tag,
  .route-head span,
  .route-city span,
  .ticket-head-copy span,
  .ticket-stub span,
  .placeholder-stamp {
    font-size: 0.68rem;
  }

  .placeholder-stamp {
    right: 16px;
    top: 16px;
    padding: 8px 10px;
  }

  .placeholder-venue-mark {
    left: 16px;
    bottom: 18px;
    font-size: clamp(1rem, 6vw, 1.4rem);
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .reveal-info-grid,
  .ticket-stub-grid {
    grid-template-columns: 1fr;
  }

  .route-visual {
    grid-template-columns: 1fr;
  }

  .route-city strong {
    font-size: 1.5rem;
  }

  .route-city em,
  .ticket-head-copy strong {
    font-size: 0.9rem;
  }
}

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