:root {
  color-scheme: dark;
  --frame: #030303;
  --ink: #f8f5ec;
  --muted: rgba(248, 245, 236, 0.72);
  --panel: rgba(9, 11, 13, 0.72);
  --panel-strong: rgba(6, 7, 9, 0.88);
  --line: rgba(255, 255, 255, 0.18);
  --accent: #f1c27d;
  --accent-soft: rgba(241, 194, 125, 0.2);
  --danger: #ff9b91;
  --good: #9ef0bf;
  --shadow: rgba(0, 0, 0, 0.52);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.08), transparent 36rem),
    linear-gradient(135deg, #050505, #15110f 46%, #020202);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.app-frame {
  position: relative;
  min-height: 100vh;
  border: clamp(10px, 1.5vw, 18px) solid var(--frame);
  background: #070707;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 80px rgba(0, 0, 0, 0.86),
    0 0 60px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

.global-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(14rem, 22rem) auto;
  gap: 1rem;
  align-items: center;
  min-height: 5.8rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background:
    linear-gradient(180deg, rgba(12, 12, 12, 0.96), rgba(6, 6, 6, 0.84)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.brand-lockup {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.18), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.35);
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-lockup h1,
.start-panel h2,
.final-content h2,
.presentation-panel h2 {
  margin: 0;
  letter-spacing: 0;
}

.brand-lockup h1 {
  overflow: hidden;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-progress {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress-track {
  height: 0.48rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
}

.progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #fff7c1);
  box-shadow: 0 0 18px var(--accent);
  transition: width 550ms ease;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: end;
}

.primary-button,
.ghost-button,
.option-button,
.small-button {
  min-height: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  padding: 0.9rem 1.2rem;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, white), color-mix(in srgb, var(--accent) 64%, black));
  color: #111;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 32px var(--accent-soft);
}

.ghost-button,
.small-button {
  padding: 0.7rem 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.32);
}

.ghost-button.danger {
  color: #ffd4d0;
}

.primary-button:hover,
.ghost-button:hover,
.option-button:hover,
.small-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 24px var(--accent-soft);
}

.screen {
  min-height: calc(100vh - 5.8rem - clamp(20px, 3vw, 36px));
}

.start-screen {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 55% 70%, rgba(255, 186, 89, 0.24), transparent 18rem),
    radial-gradient(circle at 24% 20%, rgba(184, 213, 255, 0.14), transparent 19rem),
    linear-gradient(145deg, #13100d, #040505 48%, #130f12);
}

.start-screen::before,
.start-screen::after,
.final-backdrop::before,
.final-backdrop::after {
  content: "";
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.start-screen::before {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 8rem, rgba(0, 0, 0, 0.26) 12rem, transparent 18rem),
    repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 22px);
  opacity: 0.65;
  animation: slowDrift 24s linear infinite;
}

.start-screen::after {
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 176, 84, 0.28), transparent 16rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  filter: blur(16px);
}

.start-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.start-symbol {
  position: absolute;
  display: grid;
  width: clamp(4rem, 8vw, 8rem);
  height: clamp(4rem, 8vw, 8rem);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 58%, transparent);
  color: var(--accent);
  font-size: clamp(2rem, 5vw, 4rem);
  opacity: 0.24;
  filter: blur(0.2px) drop-shadow(0 0 22px currentColor);
  animation: floatSymbol 9s ease-in-out infinite;
}

.s1 { left: 8%; top: 18%; }
.s2 { right: 12%; top: 16%; animation-delay: -2s; }
.s3 { left: 17%; bottom: 13%; animation-delay: -4s; }
.s4 { right: 20%; bottom: 11%; animation-delay: -1s; }
.s5 { left: 47%; top: 8%; animation-delay: -5s; }

.start-panel {
  position: relative;
  z-index: 1;
  width: min(54rem, 100%);
  padding: clamp(1.4rem, 5vw, 4rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(5, 5, 5, 0.62);
  box-shadow:
    inset 0 0 70px rgba(255, 255, 255, 0.035),
    0 24px 70px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.start-panel h2 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.start-panel p:not(.eyebrow) {
  max-width: 45rem;
  margin: 1.2rem 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.game-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(4.2rem, 5.5rem) minmax(0, 1fr);
  overflow: hidden;
  background: #040404;
}

.symbol-rail {
  position: relative;
  z-index: 4;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 1rem 0.7rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(0, 0, 0, 0.62);
  box-shadow: inset -18px 0 28px rgba(0, 0, 0, 0.35);
}

.symbol-token {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  filter: grayscale(1);
  transition: filter 300ms ease, color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.symbol-token::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 0.65rem);
  top: 50%;
  width: max-content;
  max-width: 14rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.76);
  color: var(--ink);
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-0.3rem);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 10;
}

.symbol-token:hover::after,
.symbol-token:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%);
}

.symbol-token.active,
.symbol-token.current {
  filter: none;
  color: var(--token-color, var(--accent));
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.1),
    0 0 22px color-mix(in srgb, var(--token-color, var(--accent)) 60%, transparent);
}

.symbol-token.current {
  transform: scale(1.05);
}

.symbol-token.arrived {
  animation: railArrive 750ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.layer-stage {
  position: relative;
  min-height: calc(100vh - 5.8rem - clamp(20px, 3vw, 36px));
  overflow: hidden;
  background: #090909;
}

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

.layer-stage::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 50% 75%, var(--accent-soft), transparent 25rem);
  mix-blend-mode: screen;
}

.layer-stage::after {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), transparent 16%, transparent 82%, rgba(0, 0, 0, 0.58)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 20%, rgba(0, 0, 0, 0.62));
}

.layer-shell {
  position: relative;
  z-index: 1;
  min-height: inherit;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--scene-background);
}

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

.layer-shell::before {
  opacity: 0.45;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px),
    radial-gradient(circle at 64% 68%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px);
  background-size: 24px 24px, 38px 38px;
  animation: dustFloat 18s linear infinite;
}

.layer-shell::after {
  background:
    radial-gradient(circle at 50% 54%, transparent 0 20rem, rgba(0, 0, 0, 0.2) 30rem, rgba(0, 0, 0, 0.55)),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.layer-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(19rem, 0.9fr) minmax(24rem, 1.1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  max-width: 1340px;
  min-height: calc(100vh - 9.8rem);
  margin: 0 auto;
}

.scene-panel,
.puzzle-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow:
    inset 0 0 72px rgba(255, 255, 255, 0.025),
    0 22px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
}

.scene-panel {
  min-height: 34rem;
}

.scene-depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 58%, var(--accent-soft), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 36%);
}

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

.scene-depth::before {
  background:
    linear-gradient(105deg, transparent 0 20%, rgba(255, 255, 255, 0.08) 30%, transparent 40% 100%),
    radial-gradient(circle at 30% 75%, rgba(0, 0, 0, 0.35), transparent 16rem);
  opacity: 0.55;
}

.scene-depth::after {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 7px);
  opacity: 0.4;
}

.prop {
  position: absolute;
  pointer-events: none;
}

.prop-one,
.prop-two,
.prop-three {
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}

.core-symbol-ring {
  position: absolute;
  left: 50%;
  top: 46%;
  display: grid;
  width: clamp(10rem, 22vw, 17rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle, var(--accent-soft), transparent 68%),
    rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 0 36px rgba(255, 255, 255, 0.05),
    0 0 72px var(--accent-soft),
    0 30px 70px rgba(0, 0, 0, 0.46);
  transform: translate(-50%, -50%);
}

.core-symbol-ring::before {
  content: "";
  position: absolute;
  inset: -0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  animation: symbolPulse 3.2s ease-in-out infinite;
}

.core-symbol {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: clamp(4.4rem, 11vw, 8.6rem);
  line-height: 1;
  filter: drop-shadow(0 0 26px var(--accent)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.62));
  text-shadow: 0 0 30px var(--accent-soft);
}

.scene-caption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.scene-caption h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

.scene-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.puzzle-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 34rem;
  max-height: calc(100vh - 10.3rem);
}

.puzzle-header {
  padding: 1.15rem 1.2rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, var(--accent-soft), transparent 62%),
    rgba(0, 0, 0, 0.2);
}

.puzzle-header h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.focus-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.layer-progress {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.85rem 1.2rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mini-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.mini-dot.solved {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.question-list,
.reflection-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.2rem;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.08);
}

.question-list {
  scroll-padding: 1rem;
}

.question-card,
.reflection-card,
.summary-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.02);
}

.question-card {
  flex: 0 0 auto;
  padding: 0.95rem;
}

.question-card::before,
.reflection-card::before,
.summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
  opacity: 0.8;
}

.question-card.solved {
  border-color: color-mix(in srgb, var(--good) 70%, transparent);
  background:
    linear-gradient(180deg, rgba(158, 240, 191, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.34);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.difficulty,
.type-chip,
.family-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.45rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.family-chip {
  color: var(--accent);
}

.question-prompt {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.options-grid {
  display: grid;
  gap: 0.55rem;
}

.option-button {
  width: 100%;
  padding: 0.75rem 0.85rem;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
}

.option-button.correct {
  border-color: color-mix(in srgb, var(--good) 75%, white);
  color: var(--good);
}

.option-button.wrong {
  border-color: color-mix(in srgb, var(--danger) 80%, white);
  color: var(--danger);
}

.short-row,
.match-row,
.sequence-row {
  display: grid;
  gap: 0.55rem;
}

.short-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.short-answer input,
.code-lock input,
.reflection-card textarea,
.match-row select,
.sequence-row select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.42);
  color: var(--ink);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.short-answer input,
.code-lock input,
.match-row select,
.sequence-row select {
  min-height: 2.7rem;
  padding: 0.7rem 0.8rem;
}

.short-answer input:focus,
.code-lock input:focus,
.reflection-card textarea:focus,
.match-row select:focus,
.sequence-row select:focus {
  border-color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.match-grid,
.sequence-grid {
  display: grid;
  gap: 0.55rem;
}

.match-row,
.sequence-row {
  grid-template-columns: minmax(8rem, 0.7fr) minmax(11rem, 1fr);
  align-items: center;
}

.match-label,
.sequence-label {
  color: var(--muted);
  font-weight: 800;
}

.feedback {
  min-height: 1.4rem;
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.feedback.good {
  color: var(--good);
}

.feedback.bad {
  color: var(--danger);
}

.code-lock {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), var(--accent-soft), rgba(0, 0, 0, 0.55)),
    rgba(0, 0, 0, 0.5);
}

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

.code-head h4 {
  margin: 0;
  font-size: 1rem;
}

.code-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.fragment {
  display: grid;
  min-width: 2.15rem;
  min-height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.14), transparent),
    rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.35);
  font-weight: 900;
}

.fragment.revealed {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 18px var(--accent-soft);
}

.code-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
}

.code-message {
  margin: 0;
  color: var(--muted);
  min-height: 1.3rem;
}

.code-message.good {
  color: var(--good);
}

.code-message.bad {
  color: var(--danger);
}

.code-lock.ready {
  box-shadow: inset 0 0 32px var(--accent-soft);
}

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

.reflection-card {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.reflection-card h4 {
  margin: 0;
  font-size: 1rem;
}

.reflection-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.reflection-card textarea {
  min-height: 7.5rem;
  resize: vertical;
  padding: 0.8rem;
  line-height: 1.45;
}

.reflection-card.locked {
  border-color: color-mix(in srgb, var(--good) 68%, transparent);
}

.reflection-feedback {
  min-height: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.reflection-feedback.good {
  color: var(--good);
}

.reflection-feedback.bad {
  color: var(--danger);
}

.ghost-symbol {
  position: fixed;
  z-index: 80;
  display: grid;
  place-items: center;
  width: var(--ghost-size, 7rem);
  height: var(--ghost-size, 7rem);
  border-radius: 50%;
  color: var(--accent);
  font-size: calc(var(--ghost-size, 7rem) * 0.58);
  pointer-events: none;
  filter: drop-shadow(0 0 28px var(--accent));
}

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020202;
  color: var(--ink);
  pointer-events: auto;
  animation: overlayHold 2850ms cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

.transition-overlay[hidden] {
  display: none;
}

.transition-inner {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 24rem),
    linear-gradient(135deg, #050505, #171717 45%, #050505);
}

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

.transition-inner::before {
  z-index: 1;
}

.transition-inner::after {
  z-index: 3;
}

.transition-vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 14rem, rgba(0, 0, 0, 0.45) 30rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.75));
}

.transition-symbol-big {
  position: relative;
  z-index: 6;
  display: grid;
  width: clamp(9rem, 20vw, 15rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--transition-color) 70%, transparent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, 0.18), transparent 36%),
    radial-gradient(circle, color-mix(in srgb, var(--transition-color) 26%, transparent), transparent 70%),
    rgba(0, 0, 0, 0.24);
  color: var(--transition-color);
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 1;
  text-shadow: 0 0 34px var(--transition-color);
  box-shadow:
    inset 0 0 45px rgba(255, 255, 255, 0.04),
    0 0 70px color-mix(in srgb, var(--transition-color) 45%, transparent),
    0 28px 80px rgba(0, 0, 0, 0.65);
  animation: transitionSymbolSurge 2850ms ease forwards;
}

.transition-title-card {
  position: absolute;
  left: 50%;
  bottom: clamp(2rem, 8vh, 5rem);
  z-index: 7;
  width: min(42rem, calc(100% - 2rem));
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.transition-title-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.transition-title-card h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

.transition-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.fx-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: particleLift 2800ms ease-out forwards;
  animation-delay: var(--d);
}

.transition-burn {
  background: #050100;
}

.transition-burn .transition-inner {
  background:
    radial-gradient(circle at 50% 64%, rgba(255, 205, 94, 0.42), transparent 14rem),
    radial-gradient(circle at 50% 82%, rgba(255, 63, 25, 0.55), transparent 20rem),
    linear-gradient(180deg, #100706, #2a0d05 46%, #050100);
}

.transition-burn .transition-inner::before {
  background:
    radial-gradient(circle at 10% 100%, rgba(255, 204, 88, 0.96) 0 3rem, transparent 6rem),
    radial-gradient(circle at 27% 100%, rgba(255, 71, 28, 0.95) 0 4rem, transparent 8rem),
    radial-gradient(circle at 44% 100%, rgba(255, 222, 120, 0.92) 0 5rem, transparent 9rem),
    radial-gradient(circle at 62% 100%, rgba(255, 83, 34, 0.95) 0 4rem, transparent 8rem),
    radial-gradient(circle at 82% 100%, rgba(255, 190, 67, 0.96) 0 4rem, transparent 8rem),
    linear-gradient(0deg, rgba(255, 89, 31, 0.96), transparent 72%);
  filter: blur(4px) saturate(1.25);
  animation: fireCurtain 2850ms cubic-bezier(0.16, 0.8, 0.18, 1) forwards;
}

.transition-burn .transition-inner::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 12%),
    repeating-linear-gradient(93deg, rgba(0, 0, 0, 0.72) 0 14px, rgba(73, 30, 13, 0.65) 14px 19px, transparent 19px 35px);
  clip-path: inset(0 0 100% 0);
  animation: ashSweep 2850ms ease forwards;
}

.transition-burn .fx-particle {
  border-radius: 50%;
  background: radial-gradient(circle, #fff2a4, #ff6d2d 58%, transparent 70%);
  box-shadow: 0 0 16px #ff8c36;
}

.transition-crack .transition-inner {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 230, 163, 0.22), transparent 13rem),
    linear-gradient(90deg, #21150e, #070707 50%, #21150e);
}

.transition-crack .transition-inner::before,
.transition-crack .transition-inner::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent, rgba(0, 0, 0, 0.35)),
    repeating-linear-gradient(90deg, rgba(128, 82, 43, 0.9) 0 18px, rgba(75, 45, 26, 0.95) 18px 34px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.66);
}

.transition-crack .transition-inner::before {
  right: 50%;
  clip-path: polygon(0 0, 100% 0, 88% 32%, 100% 58%, 84% 100%, 0 100%);
  animation: churchDoorLeft 2850ms cubic-bezier(0.17, 0.74, 0.19, 1) forwards;
}

.transition-crack .transition-inner::after {
  left: 50%;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 16% 100%, 0 58%, 12% 32%);
  animation: churchDoorRight 2850ms cubic-bezier(0.17, 0.74, 0.19, 1) forwards;
}

.transition-crack .fx-particle {
  width: calc(var(--s) * 1.8);
  height: 2px;
  background: rgba(255, 225, 162, 0.72);
  box-shadow: 0 0 14px rgba(255, 225, 162, 0.75);
}

.transition-gears .transition-inner {
  background:
    radial-gradient(circle at 50% 50%, rgba(184, 232, 240, 0.24), transparent 14rem),
    conic-gradient(from 90deg at 50% 50%, rgba(220, 181, 101, 0.25), transparent 18%, rgba(166, 221, 232, 0.2), transparent 45%),
    linear-gradient(135deg, #101a1f, #070909 52%, #2a2114);
}

.transition-gears .transition-inner::before {
  inset: -20%;
  background:
    repeating-radial-gradient(circle at 35% 48%, transparent 0 36px, rgba(232, 197, 126, 0.2) 37px 40px, transparent 41px 55px),
    repeating-radial-gradient(circle at 67% 48%, transparent 0 42px, rgba(184, 232, 240, 0.18) 43px 47px, transparent 48px 65px);
  animation: transitionGearSpin 2850ms linear forwards;
}

.transition-gears .transition-inner::after {
  background: linear-gradient(90deg, transparent, rgba(200, 245, 255, 0.34), transparent);
  transform: translateX(-100%) skewX(-18deg);
  animation: logicBeam 2850ms ease forwards;
}

.transition-gears .fx-particle {
  border: 2px solid rgba(232, 197, 126, 0.75);
  border-radius: 50%;
  background: transparent;
  animation-name: gearParticle;
}

.transition-mist .transition-inner {
  background:
    radial-gradient(circle at 67% 22%, rgba(225, 238, 255, 0.4), transparent 9rem),
    radial-gradient(circle at 50% 55%, rgba(219, 143, 197, 0.28), transparent 17rem),
    linear-gradient(140deg, #06090e, #261b2f 52%, #06080a);
}

.transition-mist .transition-inner::before,
.transition-mist .transition-inner::after {
  inset: -20%;
  background:
    radial-gradient(ellipse at 30% 65%, rgba(255, 255, 255, 0.24), transparent 20rem),
    radial-gradient(ellipse at 70% 45%, rgba(255, 255, 255, 0.18), transparent 18rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  filter: blur(18px);
  animation: fogFlood 2850ms ease forwards;
}

.transition-mist .transition-inner::after {
  animation-direction: reverse;
  opacity: 0.65;
}

.transition-mist .fx-particle {
  border-radius: 50%;
  background: rgba(231, 183, 219, 0.32);
  filter: blur(8px);
}

.transition-world .transition-inner {
  background:
    radial-gradient(circle at 50% 48%, rgba(189, 234, 188, 0.26), transparent 15rem),
    linear-gradient(180deg, #0d2022, #1d1f18 52%, #0b0a08);
}

.transition-world .transition-inner::before {
  inset: -15%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(800px) rotateX(62deg) translateY(20%);
  animation: mapRoll 2850ms ease forwards;
}

.transition-world .transition-inner::after {
  width: min(62vw, 34rem);
  aspect-ratio: 1;
  inset: 50% auto auto 50%;
  border: 1px solid rgba(200, 230, 186, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(200, 230, 186, 0.42), transparent 18%),
    radial-gradient(circle at 64% 60%, rgba(100, 150, 119, 0.5), transparent 16%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px 35px);
  transform: translate(-50%, -50%) scale(0.65);
  animation: globeTurn 2850ms ease forwards;
}

.transition-world .fx-particle {
  width: calc(var(--s) * 2.4);
  height: 1px;
  background: rgba(200, 230, 186, 0.62);
}

.transition-gold .transition-inner {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 232, 151, 0.38), transparent 14rem),
    radial-gradient(circle at 70% 70%, rgba(84, 215, 210, 0.16), transparent 16rem),
    linear-gradient(135deg, #080807, #2d2415 48%, #07191a);
}

.transition-gold .transition-inner::before {
  background:
    repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 224, 123, 0.2) 27px 30px, transparent 31px 60px),
    radial-gradient(circle at 50% 50%, rgba(255, 238, 160, 0.28), transparent 18rem);
  animation: artDecoFlash 2850ms ease forwards;
}

.transition-gold .transition-inner::after {
  background: radial-gradient(circle, rgba(255, 242, 170, 0.8) 0 1px, transparent 2px);
  background-size: 34px 34px;
  animation: glitterFall 2850ms ease forwards;
}

.transition-gold .fx-particle {
  border-radius: 2px;
  background: linear-gradient(135deg, #fff5a3, #e2a93d);
  box-shadow: 0 0 14px rgba(255, 220, 110, 0.8);
  animation-name: goldScatter;
}

.transition-break .transition-inner {
  background:
    radial-gradient(circle at 50% 34%, rgba(217, 208, 197, 0.2), transparent 12rem),
    linear-gradient(140deg, #070808, #2a231f 50%, #070708);
}

.transition-break .transition-inner::before,
.transition-break .transition-inner::after {
  top: 42%;
  bottom: auto;
  height: 6rem;
  border: 12px solid rgba(150, 150, 142, 0.64);
  border-radius: 999px;
  background: transparent;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.7), 0 0 38px rgba(255, 255, 255, 0.08);
}

.transition-break .transition-inner::before {
  left: 7%;
  right: 48%;
  transform: rotate(-16deg);
  animation: chainLeft 2850ms cubic-bezier(0.15, 0.8, 0.18, 1) forwards;
}

.transition-break .transition-inner::after {
  left: 48%;
  right: 7%;
  transform: rotate(16deg);
  animation: chainRight 2850ms cubic-bezier(0.15, 0.8, 0.18, 1) forwards;
}

.transition-break .fx-particle {
  background: linear-gradient(135deg, #f2eee7, #6c6c66);
  clip-path: polygon(20% 0, 100% 30%, 68% 100%, 0 70%);
  animation-name: metalShard;
}

.transition-threads .transition-inner {
  background:
    radial-gradient(circle at 50% 56%, rgba(245, 177, 168, 0.24), transparent 15rem),
    radial-gradient(circle at 73% 24%, rgba(255, 225, 158, 0.17), transparent 12rem),
    linear-gradient(135deg, #32181b, #090b0c 50%, #4a1f1d);
}

.transition-threads .transition-inner::before {
  background:
    linear-gradient(24deg, transparent 48%, rgba(255, 111, 102, 0.45) 49%, transparent 51%),
    linear-gradient(156deg, transparent 47%, rgba(255, 193, 140, 0.35) 49%, transparent 51%),
    linear-gradient(90deg, transparent 48%, rgba(255, 111, 102, 0.42) 49%, transparent 51%);
  transform: scaleX(0);
  animation: threadWeave 2850ms ease forwards;
}

.transition-threads .transition-inner::after {
  inset: 18% 14%;
  border: 1px solid rgba(255, 222, 180, 0.2);
  border-radius: 8px;
  background:
    repeating-conic-gradient(from 45deg, rgba(255, 241, 203, 0.18) 0 12deg, rgba(132, 41, 44, 0.2) 12deg 24deg);
  transform: perspective(700px) rotateX(56deg) scale(0.5);
  animation: mahjongTable 2850ms ease forwards;
}

.transition-threads .fx-particle {
  width: calc(var(--s) * 4);
  height: 2px;
  background: rgba(255, 132, 124, 0.7);
  box-shadow: 0 0 14px rgba(255, 132, 124, 0.8);
}

.transition-reveal .transition-inner {
  background:
    radial-gradient(circle at 50% 50%, rgba(189, 233, 221, 0.28), transparent 15rem),
    conic-gradient(from 0deg, rgba(245, 181, 107, 0.16), rgba(185, 231, 238, 0.16), rgba(231, 183, 219, 0.15), rgba(200, 230, 186, 0.15), rgba(245, 181, 107, 0.16)),
    linear-gradient(135deg, #071111, #08080a 55%, #17101d);
}

.transition-reveal .transition-inner::before {
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 24%, rgba(255, 255, 255, 0.12) 25% 26%, transparent 27%),
    conic-gradient(from 45deg, transparent, rgba(255, 255, 255, 0.16), transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: identityIris 2850ms ease forwards;
}

.transition-reveal .transition-inner::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px);
  background-size: 45px 45px;
  animation: starReveal 2850ms ease forwards;
}

.transition-reveal .fx-particle {
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, var(--transition-color) 55%, transparent 70%);
  box-shadow: 0 0 18px var(--transition-color);
}

.layer-stage.exiting .layer-shell {
  animation: layerDissolve 1100ms ease forwards;
}

.layer-stage.exiting.burn .layer-shell {
  animation-name: burnAway;
}

.layer-stage.exiting.crack .layer-shell {
  animation-name: crackOpen;
}

.layer-stage.exiting.gears .layer-shell {
  animation-name: gearUnlock;
}

.layer-stage.exiting.mist .layer-shell {
  animation-name: mistFade;
}

.layer-stage.exiting.world .layer-shell {
  animation-name: worldTurn;
}

.layer-stage.exiting.gold .layer-shell {
  animation-name: goldDissolve;
}

.layer-stage.exiting.break .layer-shell {
  animation-name: chainBreak;
}

.layer-stage.exiting.threads .layer-shell {
  animation-name: storiesConnect;
}

.layer-stage.exiting.reveal .layer-shell {
  animation-name: finalUnlock;
}

.theme-native {
  --scene-background:
    radial-gradient(circle at 50% 58%, rgba(255, 133, 63, 0.35), transparent 8rem),
    radial-gradient(circle at 50% 85%, rgba(255, 83, 43, 0.22), transparent 16rem),
    linear-gradient(115deg, rgba(79, 52, 31, 0.82), rgba(22, 38, 31, 0.9) 48%, rgba(70, 42, 26, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px);
}

.theme-native .prop-one {
  left: 7%;
  bottom: 4%;
  width: 26%;
  height: 38%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(120deg, rgba(60, 35, 19, 0.84), rgba(151, 107, 61, 0.22));
  transform: skewX(-8deg);
}

.theme-native .prop-two {
  right: 9%;
  top: 13%;
  width: 22%;
  height: 55%;
  border-left: 3px solid rgba(255, 222, 166, 0.22);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent);
  transform: rotate(10deg);
}

.theme-native .prop-three {
  left: 42%;
  bottom: 10%;
  width: 18%;
  height: 5%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.7), transparent 72%);
}

.theme-puritan {
  --scene-background:
    radial-gradient(circle at 66% 20%, rgba(255, 224, 155, 0.22), transparent 12rem),
    linear-gradient(90deg, rgba(52, 35, 26, 0.95), rgba(11, 12, 14, 0.92) 52%, rgba(59, 43, 31, 0.92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 2px, transparent 2px 22px);
}

.theme-puritan .prop-one {
  left: 8%;
  top: 8%;
  width: 32%;
  height: 84%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 12% 88%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, rgba(137, 91, 47, 0.58) 0 13px, rgba(77, 49, 30, 0.62) 13px 24px);
  clip-path: polygon(0 0, 100% 0, 92% 100%, 8% 100%);
}

.theme-puritan .prop-two {
  right: 14%;
  top: 10%;
  width: 12%;
  height: 66%;
  background: linear-gradient(180deg, rgba(252, 218, 142, 0.24), rgba(68, 40, 22, 0.08));
  clip-path: polygon(43% 0, 57% 0, 57% 35%, 100% 35%, 100% 48%, 57% 48%, 57% 100%, 43% 100%, 43% 48%, 0 48%, 0 35%, 43% 35%);
}

.theme-puritan .prop-three {
  right: 7%;
  bottom: 9%;
  width: 20%;
  height: 35%;
  background: radial-gradient(circle at 50% 10%, rgba(255, 220, 135, 0.6), transparent 14%), linear-gradient(#674425, #1d120c);
  clip-path: polygon(44% 0, 56% 0, 62% 100%, 38% 100%);
  animation: candleFlicker 2.4s ease-in-out infinite;
}

.theme-rationalism {
  --scene-background:
    radial-gradient(circle at 50% 35%, rgba(187, 222, 232, 0.25), transparent 13rem),
    conic-gradient(from 0deg at 48% 56%, rgba(214, 177, 110, 0.16), transparent 18%, rgba(151, 193, 205, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(34, 45, 52, 0.95), rgba(8, 11, 13, 0.95) 50%, rgba(74, 59, 34, 0.86));
}

.theme-rationalism .prop-one,
.theme-rationalism .prop-two,
.theme-rationalism .prop-three {
  border: 3px solid rgba(231, 199, 132, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 38%, rgba(235, 207, 141, 0.18) 39% 43%, transparent 44%),
    conic-gradient(rgba(255, 255, 255, 0.12), transparent, rgba(255, 255, 255, 0.08));
}

.theme-rationalism .prop-one {
  left: 7%;
  bottom: 8%;
  width: 22%;
  aspect-ratio: 1;
  animation: rotateSlow 18s linear infinite;
}

.theme-rationalism .prop-two {
  right: 9%;
  top: 11%;
  width: 26%;
  aspect-ratio: 1;
  animation: rotateSlow 24s linear reverse infinite;
}

.theme-rationalism .prop-three {
  right: 20%;
  bottom: 14%;
  width: 14%;
  aspect-ratio: 1;
  animation: rotateSlow 13s linear infinite;
}

.theme-romanticism {
  --scene-background:
    radial-gradient(circle at 68% 18%, rgba(213, 230, 255, 0.3), transparent 8rem),
    radial-gradient(circle at 42% 62%, rgba(188, 128, 164, 0.22), transparent 15rem),
    linear-gradient(140deg, rgba(12, 16, 24, 0.96), rgba(34, 26, 41, 0.92) 52%, rgba(9, 13, 16, 0.98));
}

.theme-romanticism .prop-one {
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(9, 13, 12, 0.72) 39%),
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.55), transparent 6%),
    repeating-linear-gradient(88deg, transparent 0 7%, rgba(255, 255, 255, 0.035) 7% 7.4%, transparent 7.4% 13%);
  filter: blur(0.3px);
}

.theme-romanticism .prop-two {
  left: -10%;
  bottom: 0;
  width: 130%;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(214, 222, 236, 0.16), rgba(255, 255, 255, 0.03));
  filter: blur(16px);
  animation: mistMove 12s ease-in-out infinite alternate;
}

.theme-romanticism .prop-three {
  left: 12%;
  bottom: 8%;
  width: 28%;
  height: 56%;
  background: linear-gradient(90deg, transparent 45%, rgba(0, 0, 0, 0.6) 46% 52%, transparent 53%);
  clip-path: polygon(45% 0, 56% 0, 56% 74%, 100% 100%, 0 100%, 45% 74%);
}

.theme-realism {
  --scene-background:
    radial-gradient(circle at 32% 22%, rgba(180, 216, 185, 0.2), transparent 13rem),
    linear-gradient(180deg, rgba(116, 146, 151, 0.7), rgba(74, 72, 58, 0.85) 46%, rgba(45, 38, 31, 0.95)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 18px);
}

.theme-realism .prop-one {
  left: 6%;
  bottom: 16%;
  width: 86%;
  height: 48%;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, rgba(242, 218, 164, 0.19) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(242, 218, 164, 0.16) 0 1px, transparent 1px 38px);
  transform: perspective(520px) rotateX(58deg);
}

.theme-realism .prop-two {
  right: 9%;
  bottom: 30%;
  width: 22%;
  height: 38%;
  background: linear-gradient(180deg, rgba(224, 209, 163, 0.2), rgba(68, 57, 45, 0.6));
  clip-path: polygon(0 28%, 50% 0, 100% 28%, 100% 100%, 0 100%);
}

.theme-realism .prop-three {
  left: 9%;
  bottom: 29%;
  width: 26%;
  height: 28%;
  background:
    linear-gradient(90deg, rgba(74, 71, 63, 0.9), rgba(151, 129, 92, 0.46)),
    repeating-linear-gradient(90deg, transparent 0 21%, rgba(0, 0, 0, 0.32) 21% 23%);
  clip-path: polygon(0 45%, 18% 25%, 30% 45%, 48% 18%, 70% 45%, 100% 22%, 100% 100%, 0 100%);
}

.theme-gatsby {
  --scene-background:
    radial-gradient(circle at 50% 20%, rgba(255, 242, 175, 0.28), transparent 12rem),
    radial-gradient(circle at 18% 72%, rgba(114, 220, 205, 0.16), transparent 14rem),
    linear-gradient(135deg, rgba(20, 19, 24, 0.96), rgba(37, 33, 27, 0.94) 48%, rgba(9, 35, 39, 0.92));
}

.theme-gatsby .prop-one {
  inset: 6% 14%;
  border: 2px solid rgba(255, 213, 115, 0.28);
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 220, 128, 0.16) 10% 11%, transparent 11% 89%, rgba(255, 220, 128, 0.16) 89% 90%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 44px);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
}

.theme-gatsby .prop-two {
  right: 9%;
  bottom: 11%;
  width: 22%;
  height: 58%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 20%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 223, 134, 0.28), rgba(255, 255, 255, 0.06));
  clip-path: polygon(36% 0, 64% 0, 72% 72%, 100% 100%, 0 100%, 28% 72%);
}

.theme-gatsby .prop-three {
  left: 8%;
  bottom: 8%;
  width: 84%;
  height: 18%;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 244, 180, 0.9), transparent 2%),
    radial-gradient(circle at 28% 45%, rgba(255, 244, 180, 0.7), transparent 2%),
    radial-gradient(circle at 49% 52%, rgba(255, 244, 180, 0.85), transparent 2%),
    radial-gradient(circle at 68% 38%, rgba(255, 244, 180, 0.65), transparent 2%),
    radial-gradient(circle at 84% 55%, rgba(255, 244, 180, 0.8), transparent 2%);
  animation: shimmer 3.8s ease-in-out infinite;
}

.theme-blackboy {
  --scene-background:
    radial-gradient(circle at 50% 18%, rgba(207, 207, 190, 0.17), transparent 12rem),
    linear-gradient(140deg, rgba(22, 23, 24, 0.98), rgba(50, 41, 35, 0.9) 48%, rgba(13, 14, 16, 0.98));
}

.theme-blackboy .prop-one {
  left: 14%;
  top: 20%;
  width: 72%;
  height: 18%;
  border: 9px solid rgba(110, 110, 104, 0.38);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.theme-blackboy .prop-two {
  left: 19%;
  top: 46%;
  width: 62%;
  height: 18%;
  border: 9px solid rgba(110, 110, 104, 0.36);
  border-radius: 999px;
  transform: rotate(18deg);
}

.theme-blackboy .prop-three {
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 20px);
}

.theme-joyluck {
  --scene-background:
    radial-gradient(circle at 50% 45%, rgba(244, 182, 163, 0.24), transparent 14rem),
    radial-gradient(circle at 75% 18%, rgba(255, 230, 164, 0.16), transparent 11rem),
    linear-gradient(135deg, rgba(70, 30, 35, 0.94), rgba(18, 21, 23, 0.95) 52%, rgba(91, 45, 38, 0.9));
}

.theme-joyluck .prop-one {
  left: 11%;
  right: 11%;
  bottom: 8%;
  height: 36%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 226, 178, 0.14), transparent 48%),
    linear-gradient(90deg, rgba(99, 41, 36, 0.76), rgba(185, 117, 76, 0.34), rgba(86, 33, 33, 0.72));
  transform: perspective(500px) rotateX(60deg);
}

.theme-joyluck .prop-two {
  left: 25%;
  bottom: 25%;
  width: 50%;
  height: 25%;
  background:
    repeating-conic-gradient(from 45deg, rgba(255, 241, 203, 0.22) 0 12deg, rgba(132, 41, 44, 0.28) 12deg 24deg);
  border-radius: 8px;
  transform: perspective(500px) rotateX(56deg);
}

.theme-joyluck .prop-three {
  right: 12%;
  top: 12%;
  width: 24%;
  height: 50%;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 216, 145, 0.7), transparent 8%),
    linear-gradient(90deg, rgba(141, 31, 40, 0.52), rgba(255, 199, 136, 0.15), rgba(141, 31, 40, 0.48));
  clip-path: polygon(42% 0, 58% 0, 70% 100%, 30% 100%);
}

.theme-personal {
  --scene-background:
    radial-gradient(circle at 50% 40%, rgba(195, 229, 222, 0.24), transparent 14rem),
    radial-gradient(circle at 18% 78%, rgba(248, 210, 148, 0.18), transparent 13rem),
    linear-gradient(135deg, rgba(31, 45, 48, 0.96), rgba(14, 15, 18, 0.96) 50%, rgba(47, 36, 55, 0.9));
}

.theme-personal .prop-one {
  left: 8%;
  top: 12%;
  width: 84%;
  height: 76%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.55;
}

.theme-personal .prop-two {
  left: 13%;
  bottom: 13%;
  width: 24%;
  height: 34%;
  background: linear-gradient(160deg, rgba(255, 245, 214, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  transform: rotate(-7deg);
}

.theme-personal .prop-three {
  right: 11%;
  top: 16%;
  width: 28%;
  height: 38%;
  background: linear-gradient(160deg, rgba(207, 229, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: rotate(8deg);
}

.final-screen,
.presentation-screen {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 50% 50%, rgba(241, 194, 125, 0.2), transparent 19rem),
    linear-gradient(135deg, #0d0e0f, #070505 54%, #111515);
}

.final-screen[hidden],
.presentation-screen[hidden],
.game-screen[hidden],
.start-screen[hidden] {
  display: none;
}

.final-backdrop {
  position: absolute;
  inset: 0;
}

.final-backdrop::before {
  background:
    conic-gradient(from 90deg at 50% 50%, rgba(255, 210, 129, 0.18), rgba(149, 216, 209, 0.14), rgba(220, 166, 201, 0.13), rgba(255, 210, 129, 0.18));
  animation: rotateSlow 36s linear infinite;
}

.final-backdrop::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 16rem, rgba(0, 0, 0, 0.55) 32rem),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 30px);
}

.final-content,
.presentation-panel {
  position: relative;
  z-index: 1;
  width: min(76rem, 100%);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.62);
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
}

.final-content {
  display: grid;
  justify-items: center;
  padding: clamp(1.3rem, 4vw, 3rem);
  text-align: center;
}

.final-content h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
}

.final-content p {
  max-width: 55rem;
  color: var(--muted);
  line-height: 1.7;
}

.identity-wheel {
  position: relative;
  width: min(74vw, 28rem);
  aspect-ratio: 1;
  margin: 1rem auto 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.22), transparent 54%),
    conic-gradient(from 0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 64px rgba(255, 255, 255, 0.04), 0 0 60px var(--accent-soft);
}

.identity-wheel::before {
  content: "IDENTITY";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 7.2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.64);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transform: translate(-50%, -50%);
}

.wheel-token {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 4.1rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.16), transparent 44%),
    rgba(0, 0, 0, 0.55);
  color: var(--token-color, var(--accent));
  font-size: 2rem;
  box-shadow: 0 0 24px color-mix(in srgb, var(--token-color, var(--accent)) 55%, transparent);
  transform:
    translate(-50%, -50%)
    rotate(calc(360deg / var(--count) * var(--i)))
    translate(min(33vw, 11.4rem))
    rotate(calc(-360deg / var(--count) * var(--i)));
}

.wheel-token span {
  position: absolute;
  top: calc(100% + 0.28rem);
  width: 8rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.presentation-panel {
  padding: clamp(1rem, 3vw, 1.4rem);
}

.presentation-header {
  display: flex;
  gap: 1rem;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.presentation-header h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.presentation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-height: calc(100vh - 14rem);
  overflow: auto;
  padding-top: 1rem;
}

.summary-card {
  padding: 1rem;
}

.summary-card h3 {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.summary-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.presentation-route {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
}

.route-step {
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.45;
}

@keyframes slowDrift {
  from { transform: translateX(-2%) rotate(0deg); }
  to { transform: translateX(2%) rotate(4deg); }
}

@keyframes floatSymbol {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1rem) scale(1.05); }
}

@keyframes dustFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-24px, -38px, 0); }
}

@keyframes symbolPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}

@keyframes candleFlicker {
  0%, 100% { opacity: 0.72; filter: blur(0); }
  45% { opacity: 1; filter: blur(0.6px); }
  60% { opacity: 0.55; }
}

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

@keyframes mistMove {
  from { transform: translateX(-4%); }
  to { transform: translateX(4%); }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.62; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.5); }
}

@keyframes railArrive {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.18); opacity: 1; }
  100% { transform: scale(1); }
}

@keyframes overlayHold {
  0% { opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes transitionSymbolSurge {
  0% { opacity: 0; transform: scale(0.6) rotate(-4deg); }
  22% { opacity: 1; transform: scale(1.02); }
  64% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(0.35) rotate(8deg); filter: blur(6px); }
}

@keyframes particleLift {
  0% { opacity: 0; transform: translate(-50%, 40%) scale(0.45); }
  18% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-220% + var(--dy))) scale(1.5) rotate(160deg); }
}

@keyframes fireCurtain {
  0% { transform: translateY(100%); opacity: 0.5; }
  25% { transform: translateY(32%); opacity: 1; }
  62% { transform: translateY(-12%); opacity: 1; }
  100% { transform: translateY(-116%); opacity: 0; }
}

@keyframes ashSweep {
  0% { clip-path: inset(0 0 100% 0); opacity: 0; }
  42% { clip-path: inset(0 0 0 0); opacity: 0.9; }
  100% { clip-path: inset(100% 0 0 0); opacity: 0; }
}

@keyframes churchDoorLeft {
  0% { transform: translateX(0) rotateY(0); }
  38% { transform: translateX(0) rotateY(0); filter: brightness(1.2); }
  100% { transform: translateX(-42%) rotateY(-18deg); opacity: 0; }
}

@keyframes churchDoorRight {
  0% { transform: translateX(0) rotateY(0); }
  38% { transform: translateX(0) rotateY(0); filter: brightness(1.2); }
  100% { transform: translateX(42%) rotateY(18deg); opacity: 0; }
}

@keyframes transitionGearSpin {
  0% { transform: rotate(0deg) scale(0.86); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: rotate(185deg) scale(1.2); opacity: 0; }
}

@keyframes logicBeam {
  0% { opacity: 0; transform: translateX(-120%) skewX(-18deg); }
  34% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%) skewX(-18deg); }
}

@keyframes gearParticle {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(420deg) scale(1.2); }
}

@keyframes fogFlood {
  0% { opacity: 0; transform: translateX(-16%) scale(0.9); }
  40% { opacity: 0.92; }
  100% { opacity: 0; transform: translateX(16%) scale(1.25); }
}

@keyframes mapRoll {
  0% { opacity: 0; transform: perspective(800px) rotateX(72deg) translateY(48%); }
  38% { opacity: 1; }
  100% { opacity: 0; transform: perspective(800px) rotateX(48deg) translateY(-22%); }
}

@keyframes globeTurn {
  0% { opacity: 0; transform: translate(-50%, -50%) rotateY(0deg) scale(0.4); }
  28% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) rotateY(180deg) scale(1.15); }
}

@keyframes artDecoFlash {
  0% { opacity: 0; transform: scaleX(0.35); }
  30% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1.3); filter: blur(8px); }
}

@keyframes glitterFall {
  0% { opacity: 0; transform: translateY(-20%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(26%); }
}

@keyframes goldScatter {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.3); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(580deg) scale(1.15); }
}

@keyframes chainLeft {
  0%, 38% { transform: translateX(0) rotate(-16deg); }
  46% { transform: translateX(1.1rem) rotate(-10deg); }
  100% { transform: translate(-24%, 22%) rotate(-36deg); opacity: 0; }
}

@keyframes chainRight {
  0%, 38% { transform: translateX(0) rotate(16deg); }
  46% { transform: translateX(-1.1rem) rotate(10deg); }
  100% { transform: translate(24%, 22%) rotate(36deg); opacity: 0; }
}

@keyframes metalShard {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0deg) scale(0.3); }
  32% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(300deg) scale(1.2); }
}

@keyframes threadWeave {
  0% { opacity: 0; transform: scaleX(0); }
  38% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1.2); }
}

@keyframes mahjongTable {
  0% { opacity: 0; transform: perspective(700px) rotateX(66deg) scale(0.45); }
  42% { opacity: 0.88; transform: perspective(700px) rotateX(56deg) scale(1); }
  100% { opacity: 0; transform: perspective(700px) rotateX(48deg) scale(1.2); }
}

@keyframes identityIris {
  0% { opacity: 0; transform: rotate(0deg) scale(0.3); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: rotate(180deg) scale(1.22); }
}

@keyframes starReveal {
  0% { opacity: 0; transform: scale(0.8); }
  42% { opacity: 0.8; }
  100% { opacity: 0; transform: scale(1.2); }
}

@keyframes layerDissolve {
  to { opacity: 0; filter: blur(14px); transform: scale(1.04); }
}

@keyframes burnAway {
  0% { clip-path: inset(0 0 0 0); filter: saturate(1); }
  55% { filter: saturate(1.6) brightness(1.2); }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; filter: blur(12px) brightness(1.7); }
}

@keyframes crackOpen {
  0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 47% 0, 41% 100%, 0 100%, 0 0, 100% 0, 100% 100%, 60% 100%, 53% 0); opacity: 0; transform: scale(1.03); }
}

@keyframes gearUnlock {
  100% { opacity: 0; transform: rotate(2deg) scale(1.08); filter: blur(9px) brightness(1.25); }
}

@keyframes mistFade {
  100% { opacity: 0; transform: translateY(-1rem) scale(1.02); filter: blur(18px); }
}

@keyframes worldTurn {
  100% { opacity: 0; transform: perspective(800px) rotateY(32deg) scale(0.98); filter: blur(7px); }
}

@keyframes goldDissolve {
  0% { filter: brightness(1); }
  70% { filter: brightness(1.8) saturate(1.4); }
  100% { opacity: 0; transform: translateY(1.5rem) scale(1.03); filter: blur(11px) brightness(2); }
}

@keyframes chainBreak {
  45% { transform: translateX(-0.4rem); }
  55% { transform: translateX(0.4rem); }
  100% { opacity: 0; transform: translateY(1rem) scale(1.06); filter: blur(10px); }
}

@keyframes storiesConnect {
  100% { opacity: 0; transform: scale(0.92); filter: blur(12px) sepia(0.6); }
}

@keyframes finalUnlock {
  100% { opacity: 0; transform: scale(1.16); filter: blur(18px) brightness(1.4); }
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .top-actions {
    justify-content: start;
  }

  .layer-grid {
    grid-template-columns: 1fr;
  }

  .scene-panel,
  .puzzle-panel {
    min-height: auto;
  }

  .scene-panel {
    height: 28rem;
  }

  .puzzle-panel {
    max-height: none;
  }

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

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

@media (max-width: 720px) {
  .app-frame {
    border-width: 8px;
  }

  .game-screen {
    grid-template-columns: 1fr;
  }

  .symbol-rail {
    position: sticky;
    top: 0;
    grid-template-columns: repeat(9, minmax(2.35rem, 1fr));
    padding: 0.55rem;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .symbol-token::after {
    display: none;
  }

  .layer-shell {
    padding: 0.75rem;
  }

  .scene-panel {
    height: 22rem;
  }

  .short-answer,
  .code-entry,
  .match-row,
  .sequence-row,
  .reflection-grid,
  .presentation-grid,
  .presentation-route {
    grid-template-columns: 1fr;
  }

  .start-panel h2,
  .final-content h2 {
    max-width: none;
  }

  .wheel-token {
    width: 3.4rem;
    font-size: 1.55rem;
  }

  .wheel-token span {
    display: none;
  }
}

.reduced-effects *,
.reduced-effects *::before,
.reduced-effects *::after {
  animation-duration: 1ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 1ms !important;
}

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