:root {
  --text-dark: #323244;
  --text-light: #f4f4f4;
  --highlight: #6636e4;
  --highlight-soft: #dfc5fe;
  --signal: #fff000;
  --accent: #ff3d81;
  --ink: var(--text-light);
  --ink-soft: rgba(244, 244, 244, 0.78);
  --deep: #0a0a14;
  --gold: var(--signal);
  --gold-deep: #827a00;
  --water: #323244;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  --stage-scale: 1;
}

.ludus-access-block {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 240, 0, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(102, 54, 228, 0.96), rgba(50, 50, 68, 0.98));
  color: #323244;
}

.ludus-access-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(223, 197, 254, 0.7);
  border-radius: 18px;
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  text-align: left;
}

.ludus-access-kicker {
  margin: 0 0 10px;
  color: #6636e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ludus-access-panel h1 {
  margin: 0;
  color: #323244;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
}

.ludus-access-panel p[data-ludus-access-message] {
  margin: 18px 0 0;
  color: rgba(50, 50, 68, 0.76);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.ludus-access-secondary {
  margin: 14px 0 0;
  color: rgba(50, 50, 68, 0.58);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

body.ludus-access-blocked {
  overflow: hidden;
}

@font-face {
  font-family: "Gilmer";
  src: url("assets/fonts/Gilmer-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilmer";
  src: url("assets/fonts/Gilmer-Medium.otf") format("opentype");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilmer";
  src: url("assets/fonts/Gilmer-Bold.otf") format("opentype");
  font-weight: 700 850;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gilmer";
  src: url("assets/fonts/Gilmer-Heavy.otf") format("opentype");
  font-weight: 860 1000;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--deep);
  color: var(--ink);
  font-family: "Gilmer", Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.game-shell {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

.scene {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  opacity: 0;
  transform: translateY(0);
  pointer-events: none;
  transition: opacity 720ms ease, transform 1280ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.scene.is-active {
  opacity: 1;
  pointer-events: auto;
}

.scene.depth-enter {
  opacity: 0;
  transform: translateY(5%);
}

.scene.depth-enter.is-active {
  opacity: 1;
  transform: translateY(0);
}

.scene.is-diving-out {
  opacity: 0;
  transform: translateY(-5%);
  pointer-events: none;
}

.intro-copy,
.float-copy,
.observe-layout,
.test-intro-copy,
.quiz-layout,
.sms-layout,
.call-layout,
.whatsapp-layout,
.qr-layout,
.memory-layout,
.final-bridge-card,
.final-question-card,
.result-feedback-card,
.recommendations-card,
.surface-final-card {
  scale: var(--stage-scale);
  transform-origin: center center;
}

.intro-copy,
.float-copy,
.surface-final-card {
  transform-origin: left center;
}

.scene-intro.is-past {
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.scene-intro.is-zooming {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1200ms ease 850ms;
}

.background-frame,
.float-background,
.observe-background {
  position: absolute;
  inset: 0;
  background-image: url("assets/fisherman-bg.jpg");
  background-size: cover;
  background-position: center center;
  transform-origin: 42.3% 53.4%;
  transition: transform 1800ms cubic-bezier(0.2, 0.9, 0.18, 1), filter 1800ms ease;
  z-index: 0;
}

.depth-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(223, 197, 254, 0.16), transparent 18%),
    radial-gradient(circle at 50% 110%, rgba(102, 54, 228, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(6, 18, 28, 0.96), rgba(1, 4, 10, 1));
}

.depth-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/deep-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: 0.24;
  filter: brightness(0.42) saturate(0.94);
}

.background-frame,
.float-background,
.observe-background,
.test-depth-background::before,
.sms-background::before,
.depth-background::before,
.surface-final-background {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.scene-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(50, 50, 68, 0.68) 0%, rgba(50, 50, 68, 0.26) 38%, rgba(50, 50, 68, 0.06) 72%),
    linear-gradient(0deg, rgba(50, 50, 68, 0.28), rgba(50, 50, 68, 0.02));
  z-index: 1;
}

.intro-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 46vw);
  align-self: center;
  margin-left: clamp(64px, 8vw, 140px);
  transform: translateY(18px);
}

.intro-line {
  margin: 0;
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(5px);
  color: rgba(244, 244, 244, 0.94);
  font-size: clamp(36px, 4.5vw, 72px);
  font-weight: 460;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  transition: opacity 1400ms ease, transform 1400ms cubic-bezier(0.2, 0.84, 0.22, 1), filter 1400ms ease;
}

.second-line {
  margin-top: 26px;
  max-width: 680px;
  color: var(--ink-soft);
}

.intro-line strong {
  color: var(--signal);
  font-weight: 850;
}

.first-line.is-visible,
.second-line.is-visible,
.start-button.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.start-button,
.continue-button {
  min-width: 286px;
  min-height: 58px;
  margin-top: 42px;
  padding: 16px 28px;
  border: 1px solid rgba(255, 244, 195, 0.5);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--signal), #dbc900);
  color: var(--text-dark);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, filter 180ms ease, opacity 900ms ease;
}

.start-button {
  display: block;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.start-button.is-visible {
  pointer-events: auto;
}

.start-button:hover,
.continue-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.start-hint {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  transform: translate(-50%, -50%);
  color: rgba(244, 244, 244, 0.72);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.44);
  transition: opacity 400ms ease, transform 400ms ease;
}

.start-hint span {
  display: inline-block;
  cursor: pointer;
}

.intro-logo {
  position: absolute;
  left: 50%;
  bottom: 15px;
  z-index: 2;
  display: block;
  width: 82px;
  height: auto;
  opacity: 0.72;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.36));
  transition: opacity 400ms ease, transform 400ms ease;
}

.start-hint.is-hidden + .intro-logo {
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
}

.start-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, -46%);
}

.scene-intro.is-zooming .background-frame {
  transform: scale(4.15) translate(8.2%, -0.8%);
  filter: saturate(0.9) contrast(1.04);
}

.scene-float {
  place-items: stretch;
  background:
    radial-gradient(circle at 75% 50%, rgba(255, 61, 129, 0.1), transparent 16%),
    linear-gradient(180deg, rgba(50, 50, 68, 0.08), rgba(50, 50, 68, 0.32));
}

.float-background {
  background-image: url("assets/float-close-bg.jpg");
  transform: scale(1.02);
  transform-origin: center center;
  filter: saturate(0.94) contrast(1.02) brightness(0.98);
}

.scene-float::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 244, 244, 0.84) 0%, rgba(244, 244, 244, 0.52) 38%, rgba(244, 244, 244, 0.02) 70%),
    linear-gradient(180deg, rgba(50, 50, 68, 0.02), rgba(50, 50, 68, 0.18));
  z-index: 1;
}

.float-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 52vw);
  align-self: center;
  margin-left: clamp(66px, 8vw, 142px);
  color: var(--text-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.kicker {
  margin: 0 0 12px;
  color: var(--highlight);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.float-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--text-dark);
}

.float-copy p:not(.kicker):not(.source-note) {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(50, 50, 68, 0.86);
  font-size: 24px;
  line-height: 1.42;
}

.float-copy p:not(.kicker):not(.source-note) strong,
.float-copy p:not(.kicker):not(.source-note)::selection {
  color: var(--highlight);
}

.source-note {
  max-width: 560px;
  margin-top: 6px;
  color: rgba(61, 61, 71, 0.34);
  font-size: 10px;
  line-height: 1.35;
}

.mission-copy {
  max-width: 680px;
  padding-left: 18px;
  border-left: 4px solid var(--highlight);
}

.mission-copy strong {
  color: var(--highlight);
  font-weight: 900;
}

.ready-question {
  margin-top: 28px;
  color: var(--highlight);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
}

.scene-float.is-descending .float-background {
  transform: scale(2.8) translateY(-12%);
  filter: saturate(0.82) contrast(1.12) brightness(0.36);
  transition: transform 2200ms cubic-bezier(0.16, 0.86, 0.25, 1), filter 2200ms ease;
}

.scene-float.is-descending::after {
  background:
    linear-gradient(180deg, rgba(50, 50, 68, 0.2), rgba(6, 6, 14, 0.98)),
    radial-gradient(circle at 50% 115%, rgba(102, 54, 228, 0.18), transparent 30%);
}

.scene-float.is-descending .float-copy {
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.scene-float.is-diving-out {
  transform: translateY(-5%);
}

.scene-observe {
  place-items: stretch;
  background: var(--deep);
}

.scene-urgency {
  place-items: stretch;
  background: #02070d;
}

.scene-attachments {
  place-items: stretch;
  background: #01050a;
}

.scene-test-intro {
  place-items: center;
  background: #02040a;
}

.scene-quiz {
  place-items: center;
  background: #03030a;
}

.observe-background {
  background-image: url("assets/deep-bg.jpg");
  background-position: center center;
  transform-origin: center center;
  filter: brightness(0.82) saturate(1.05);
}

.urgency-background {
  transform: scale(1.1);
  filter: brightness(0.58) saturate(1.12) hue-rotate(8deg);
}

.attachments-background {
  transform: scale(1.18) translateY(2%);
  filter: brightness(0.42) saturate(1.05) hue-rotate(18deg);
}

.scene-observe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, 0.7), rgba(5, 10, 18, 0.2) 45%, rgba(5, 10, 18, 0.58)),
    linear-gradient(180deg, rgba(223, 197, 254, 0.08), rgba(0, 0, 0, 0.18));
}

.observe-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(560px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: min(1540px, calc(100vw - 96px));
  margin: 0 auto;
}

.urgency-layout {
  grid-template-columns: minmax(450px, 0.78fr) minmax(390px, 0.62fr);
  width: min(1380px, calc(100vw - 96px));
}

.attachments-layout {
  grid-template-columns: minmax(410px, 0.68fr) minmax(640px, 1fr);
  width: min(1480px, calc(100vw - 96px));
}

.observe-copy {
  color: var(--text-light);
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.observe-copy > *,
.test-intro-copy > * {
  opacity: 0;
  transform: translateY(16px);
}

.scene-observe.is-active .observe-copy > *,
.scene-urgency.is-active .observe-copy > *,
.scene-attachments.is-active .observe-copy > *,
.scene-test-intro.is-active .test-intro-copy > * {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.scene-observe.is-active .observe-copy > :nth-child(1),
.scene-urgency.is-active .observe-copy > :nth-child(1),
.scene-attachments.is-active .observe-copy > :nth-child(1),
.scene-test-intro.is-active .test-intro-copy > :nth-child(1) {
  animation-delay: 80ms;
}

.scene-observe.is-active .observe-copy > :nth-child(2),
.scene-urgency.is-active .observe-copy > :nth-child(2),
.scene-attachments.is-active .observe-copy > :nth-child(2),
.scene-test-intro.is-active .test-intro-copy > :nth-child(2) {
  animation-delay: 170ms;
}

.scene-observe.is-active .observe-copy > :nth-child(3),
.scene-urgency.is-active .observe-copy > :nth-child(3),
.scene-attachments.is-active .observe-copy > :nth-child(3),
.scene-test-intro.is-active .test-intro-copy > :nth-child(3) {
  animation-delay: 260ms;
}

.scene-observe.is-active .observe-copy > :nth-child(4),
.scene-urgency.is-active .observe-copy > :nth-child(4),
.scene-attachments.is-active .observe-copy > :nth-child(4),
.scene-test-intro.is-active .test-intro-copy > :nth-child(4) {
  animation-delay: 350ms;
}

.scene-observe.is-active .observe-copy > :nth-child(n + 5),
.scene-urgency.is-active .observe-copy > :nth-child(n + 5),
.scene-attachments.is-active .observe-copy > :nth-child(n + 5),
.scene-test-intro.is-active .test-intro-copy > :nth-child(n + 5) {
  animation-delay: 440ms;
}

.comparison-card {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
}

.scene-observe.is-active .comparison-card,
.scene-urgency.is-active .comparison-card,
.scene-attachments.is-active .comparison-card {
  animation: revealDepthItem 680ms cubic-bezier(0.2, 0.84, 0.22, 1) 520ms both;
}

.scene.is-diving-out .observe-copy > *,
.scene.is-diving-out .test-intro-copy > *,
.scene.is-diving-out .comparison-card {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

.observe-copy h1 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

.observe-question {
  margin: 14px 0 30px;
  color: var(--highlight-soft);
  font-size: 26px;
  font-weight: 850;
  line-height: 1.22;
}

.observe-copy h2 {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: 30px;
  line-height: 1.1;
}

.observe-copy p {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(244, 244, 244, 0.86);
  font-size: 20px;
  line-height: 1.44;
}

.observe-copy strong {
  color: var(--signal);
}

.urgency-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.urgency-list li {
  width: fit-content;
  padding: 8px 12px;
  border-left: 4px solid var(--accent);
  background: rgba(244, 244, 244, 0.1);
  color: var(--text-light);
  font-size: 19px;
  font-weight: 850;
}

.observe-insight {
  padding-left: 16px;
  border-left: 4px solid var(--highlight-soft);
  color: var(--text-light);
}

.observe-button {
  margin-top: 30px;
}

.comparison-card {
  display: grid;
  gap: 12px;
}

.vertical-comparison {
  justify-items: center;
}

.comparison-slider {
  --reveal: 50%;
  position: relative;
  width: 100%;
  aspect-ratio: 2000 / 1167;
  overflow: hidden;
  border: 1px solid rgba(244, 244, 244, 0.22);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.first-signal-slider {
  --reveal: 34%;
}

.comparison-slider-vertical {
  width: min(430px, 100%);
  max-height: 78dvh;
  aspect-ratio: 1206 / 1719;
}

.comparison-slider-horizontal .marked-layer {
  clip-path: inset(0 0 calc(100% - var(--reveal)) 0);
}

.comparison-slider-horizontal .comparison-handle {
  top: var(--reveal);
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 4px;
  transform: translateY(-2px);
}

.comparison-slider-horizontal .comparison-handle span::before {
  top: 14px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

.comparison-slider-horizontal .comparison-handle span::after {
  right: auto;
  bottom: 14px;
  left: 50%;
  top: auto;
  transform: translateX(-50%) rotate(-135deg);
}

.comparison-slider-wide {
  aspect-ratio: 1236 / 854;
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f4f4;
  pointer-events: none;
}

.marked-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  width: 4px;
  transform: translateX(-2px);
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(50, 50, 68, 0.18);
  pointer-events: none;
}

.comparison-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--text-light);
  border-radius: 999px;
  background: var(--highlight);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.comparison-handle span::before,
.comparison-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--text-light);
  border-left: 2px solid var(--text-light);
}

.comparison-handle span::before {
  left: 13px;
  transform: translateY(-50%) rotate(-45deg);
}

.comparison-handle span::after {
  right: 13px;
  transform: translateY(-50%) rotate(135deg);
}

.comparison-caption {
  margin: 0;
  color: rgba(244, 244, 244, 0.72);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.scene-observe.is-diving-out .observe-background,
.scene-observe.is-diving-out .observe-layout {
  opacity: 1;
  filter: brightness(0.66) saturate(0.96);
  transition: filter 1280ms ease;
}

.scene-urgency.is-active .urgency-background {
  animation: settleDeeper 1600ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.scene-urgency.is-diving-out .urgency-background,
.scene-urgency.is-diving-out .urgency-layout {
  opacity: 1;
  filter: brightness(0.5) saturate(0.9);
  transition: filter 1280ms ease;
}

.scene-attachments.is-active .attachments-background {
  animation: settleDeepest 1600ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.scene-attachments.is-diving-out .attachments-background,
.scene-attachments.is-diving-out .attachments-layout {
  opacity: 1;
  filter: brightness(0.42) saturate(0.9);
  transition: filter 1280ms ease;
}

.scene-test-intro.is-diving-out .test-depth-background,
.scene-test-intro.is-diving-out .hooks-field,
.scene-test-intro.is-diving-out .test-intro-copy {
  opacity: 1;
}

.test-depth-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(223, 197, 254, 0.18), transparent 18%),
    radial-gradient(circle at 50% 110%, rgba(102, 54, 228, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(6, 18, 28, 0.96), rgba(1, 4, 10, 1));
}

.test-depth-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/deep-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: brightness(0.44) saturate(0.9);
}

.hooks-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.34;
}

.hook {
  position: absolute;
  width: 72px;
  height: 104px;
  border-right: 7px solid var(--highlight-soft);
  border-bottom: 7px solid var(--highlight-soft);
  border-radius: 0 0 46px 0;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.48));
}

.hook::before {
  content: "";
  position: absolute;
  top: -84px;
  right: -7px;
  width: 2px;
  height: 90px;
  background: rgba(223, 197, 254, 0.62);
}

.hook::after {
  content: "";
  position: absolute;
  right: 42px;
  bottom: -8px;
  width: 24px;
  height: 24px;
  border-left: 6px solid var(--highlight-soft);
  transform: rotate(-42deg);
}

.hook-one {
  left: 12%;
  top: 24%;
  transform: rotate(18deg) scale(0.8);
}

.hook-two {
  right: 14%;
  top: 18%;
  transform: rotate(-24deg) scale(1.05);
}

.hook-three {
  left: 22%;
  bottom: 12%;
  transform: rotate(-12deg) scale(0.72);
}

.hook-four {
  right: 25%;
  bottom: 18%;
  transform: rotate(28deg) scale(0.64);
}

.test-intro-copy {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100vw - 160px));
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.test-intro-copy h1 {
  margin: 0;
  color: var(--text-light);
  font-size: clamp(42px, 5.2vw, 82px);
  line-height: 0.98;
}

.test-intro-copy p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(244, 244, 244, 0.86);
  font-size: 24px;
  line-height: 1.38;
}

.test-mission {
  display: inline-block;
  margin-top: 30px;
  padding-left: 0;
  border-left: 0;
  color: var(--signal);
  font-size: 30px;
  font-weight: 900;
}

.tip-copy {
  color: rgba(223, 197, 254, 0.9);
  font-size: 18px;
}

.test-button {
  margin-top: 38px;
}

.quiz-background {
  opacity: 0.74;
  filter: brightness(0.34) saturate(0.92) hue-rotate(14deg);
}

.scene-sms {
  place-items: center;
  background: #02040a;
}

.sms-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(223, 197, 254, 0.12), transparent 18%),
    radial-gradient(circle at 50% 110%, rgba(102, 54, 228, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(5, 15, 24, 0.98), rgba(1, 4, 10, 1));
}

.sms-background::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border-radius: 8px;
  background-image: url("assets/deep-bg.jpg");
  background-size: cover;
  background-position: center;
  transform: none;
  opacity: 0.2;
  filter: brightness(0.42) saturate(0.94);
}

.sms-background::after {
  content: none;
}

.sms-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 0.85fr) minmax(460px, 0.9fr);
  gap: clamp(42px, 6vw, 96px);
  align-items: center;
  width: min(1480px, calc(100vw - 96px));
  height: min(820px, calc(100dvh - 64px));
}

.sms-phone {
  display: grid;
  align-items: end;
  justify-items: center;
  height: 100%;
  margin: 0;
}

.sms-phone img {
  display: block;
  width: min(660px, 100%);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.42));
}

.sms-phone,
.sms-question-card {
  opacity: 0;
  transform: translateY(18px);
}

.scene-sms.is-active .sms-phone {
  animation: revealDepthItem 680ms cubic-bezier(0.2, 0.84, 0.22, 1) 120ms both;
}

.scene-sms.is-active .sms-question-card {
  animation: revealDepthItem 680ms cubic-bezier(0.2, 0.84, 0.22, 1) 360ms both;
}

.sms-question-card {
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.sms-question-card h1 {
  margin: 0;
  color: var(--signal);
  font-size: clamp(34px, 3.6vw, 58px);
  line-height: 1.05;
}

.sms-answer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 42px;
}

.sms-answer-button {
  min-height: 64px;
  padding: 16px 22px;
  border: 2px solid rgba(244, 244, 244, 0.78);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.06);
  color: var(--text-light);
  cursor: pointer;
  font-size: 23px;
  font-weight: 850;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.sms-answer-button:hover,
.sms-answer-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--signal);
  background: rgba(255, 240, 0, 0.12);
  outline: none;
}

.scene-call {
  place-items: center;
  background: #02040a;
}

.scene-whatsapp {
  place-items: center;
  background: #02040a;
}

.scene-qr {
  place-items: center;
  background: #02040a;
}

.scene-memory {
  place-items: center;
  padding: 28px 0;
  overflow: hidden;
  background: #02040a;
}

.scene-final-bridge {
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #02040a;
}

.scene-final-question {
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #02040a;
}

.scene-result-feedback {
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #02040a;
}

.scene-recommendations {
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
  background: #02040a;
}

.scene-recommendations.is-active {
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.scene-surface-final {
  place-items: start start;
  padding: max(24px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #e8f0e6;
}

.call-background::before {
  left: 0;
  right: auto;
  top: 0;
  width: auto;
  height: auto;
  border-radius: 0;
}

.call-background::after {
  content: none;
}

.whatsapp-background::after {
  content: none;
}

.qr-background::after {
  content: none;
}

.memory-background::after {
  content: none;
}

.call-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) minmax(380px, 0.72fr);
  gap: clamp(34px, 5vw, 92px);
  align-items: center;
  width: min(1420px, calc(100vw - 96px));
  height: min(780px, calc(100dvh - 72px));
}

.call-phone {
  position: relative;
  display: block;
  justify-self: center;
  width: min(360px, calc((100dvh - 72px) * 0.4895), 100%);
  height: auto;
  margin: 0;
}

.call-phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.42));
}

.answer-call-hotspot {
  position: absolute;
  left: 78.7%;
  top: 87.7%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(71, 170, 51, 0.12);
  cursor: pointer;
}

.answer-call-hotspot span,
.answer-call-hotspot::before,
.answer-call-hotspot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 3px solid rgba(244, 244, 244, 0.34);
  background: rgba(244, 244, 244, 0.08);
  animation: callPulse 1700ms ease-out infinite;
  transform-origin: center;
}

.answer-call-hotspot::before {
  animation-delay: 420ms;
}

.answer-call-hotspot::after {
  animation-delay: 840ms;
}

.answer-call-hotspot:hover,
.answer-call-hotspot:focus-visible {
  outline: none;
}

.answer-call-copy {
  position: absolute;
  left: calc(100% + 22px);
  top: 82%;
  margin: 0;
  color: rgba(244, 244, 244, 0.9);
  font-size: 21px;
  line-height: 1.12;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  pointer-events: none;
}

.scene-call.is-answered .answer-call-hotspot,
.scene-call.is-answered .answer-call-copy {
  display: none;
}

.call-question-card {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.scene-call.is-question-visible .call-question-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.call-question-card h1 {
  margin: 0;
  color: var(--signal);
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.08;
}

.whatsapp-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.76fr) minmax(520px, 1fr);
  gap: clamp(46px, 7vw, 118px);
  align-items: center;
  width: min(1360px, calc(100vw - 112px));
  height: min(780px, calc(100dvh - 72px));
}

.whatsapp-phone {
  display: grid;
  align-items: center;
  justify-items: center;
  height: 100%;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
}

.whatsapp-phone img {
  display: block;
  width: min(390px, calc((100dvh - 72px) * 0.4895), 100%);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.44));
}

.whatsapp-question-card {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.scene-whatsapp.is-active .whatsapp-phone {
  animation: revealDepthItem 680ms cubic-bezier(0.2, 0.84, 0.22, 1) 120ms both;
}

.scene-whatsapp.is-question-visible .whatsapp-question-card {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-question-card h1 {
  margin: 0;
  color: var(--signal);
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.08;
}

.qr-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(520px, 0.9fr) minmax(420px, 0.74fr);
  gap: clamp(44px, 7vw, 120px);
  align-items: center;
  width: min(1400px, calc(100vw - 108px));
  height: min(780px, calc(100dvh - 72px));
}

.qr-question-card {
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translateY(18px);
}

.qr-question-card h1 {
  margin: 0;
  color: var(--signal);
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.08;
}

.qr-postcard {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  margin: 0;
  padding: 18px 18px 54px;
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.96);
  box-shadow: 0 34px 72px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: rotate(2.2deg) translateY(20px);
}

.qr-postcard::after {
  content: "QR MENU";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: rgba(50, 50, 68, 0.64);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.qr-postcard img {
  display: block;
  width: min(430px, 100%);
  max-height: min(620px, calc(100dvh - 160px));
  border-radius: 5px;
  object-fit: contain;
}

.scene-qr.is-active .qr-question-card {
  animation: revealDepthItem 680ms cubic-bezier(0.2, 0.84, 0.22, 1) 160ms both;
}

.scene-qr.is-active .qr-postcard {
  animation: revealQrPostcard 760ms cubic-bezier(0.2, 0.84, 0.22, 1) 360ms both;
}

@keyframes revealQrPostcard {
  from {
    opacity: 0;
    transform: rotate(2.2deg) translateY(26px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: rotate(2.2deg) translateY(0) scale(1);
  }
}

.memory-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  justify-items: center;
  width: min(1240px, calc(100vw - 96px));
  height: min(820px, calc(100dvh - 56px));
  min-height: 0;
}

.memory-header {
  width: min(840px, 100%);
  text-align: center;
  color: var(--text-light);
  opacity: 0;
  transform: translateY(16px);
}

.memory-header h1 {
  margin: 4px 0 0;
  color: var(--signal);
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 0.98;
}

.memory-header p:last-child {
  margin: 12px auto 0;
  max-width: 760px;
  color: rgba(223, 197, 254, 0.92);
  font-size: 21px;
  font-weight: 760;
  line-height: 1.22;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  width: min(1060px, calc((100dvh - 250px) * 2.08), 100%);
  margin-top: 22px;
  opacity: 0;
  transform: translateY(18px);
}

.memory-card {
  position: relative;
  aspect-ratio: 1.05;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  perspective: 1000px;
}

.memory-card:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 5px;
}

.memory-card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.memory-card.is-flipped .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(244, 244, 244, 0.72);
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.memory-card-back {
  background:
    radial-gradient(circle at 26% 22%, rgba(255, 240, 0, 0.32), transparent 18%),
    radial-gradient(circle at 76% 78%, rgba(255, 61, 129, 0.28), transparent 22%),
    linear-gradient(145deg, #6636e4, #323244);
  color: #fff000;
  font-size: clamp(76px, 8vw, 118px);
  font-weight: 950;
  text-shadow: 9px 8px 0 rgba(255, 61, 129, 0.8);
}

.memory-card-back::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(223, 197, 254, 0.42);
  border-radius: 6px;
}

.memory-card-front {
  transform: rotateY(180deg);
  background: rgba(244, 244, 244, 0.94);
}

.memory-card-front::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(50, 50, 68, 0), rgba(50, 50, 68, 0.62));
  pointer-events: none;
}

.memory-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card[data-pair="qrishing"] .memory-card-front img {
  object-position: 100% 100%;
  transform: scale(1.72) translateY(-34px);
  transform-origin: 100% 100%;
}

.memory-card-name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 12px;
  z-index: 2;
  color: var(--text-light);
  font-size: clamp(16px, 1.5vw, 24px);
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.72);
}

.memory-card.is-matched .memory-card-face {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 240, 0, 0.3), 0 18px 42px rgba(0, 0, 0, 0.28);
}

.scene-memory.is-active .memory-header {
  animation: revealDepthItem 640ms cubic-bezier(0.2, 0.84, 0.22, 1) 120ms both;
}

.scene-memory.is-active .memory-board {
  animation: revealDepthItem 700ms cubic-bezier(0.2, 0.84, 0.22, 1) 320ms both;
}

.final-bridge-background {
  opacity: 0.88;
  filter: brightness(0.32) saturate(0.88);
}

.final-bridge-hooks {
  opacity: 0.28;
  pointer-events: none;
}

.final-bridge-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(900px, calc(100vw - 96px));
  text-align: center;
  transform: translateY(-18px);
}

.final-bridge-card h1 {
  margin-top: 6px;
  font-size: clamp(56px, 7vw, 96px);
}

.final-bridge-card p {
  max-width: 760px;
}

.final-bridge-card .kicker {
  color: var(--highlight);
}

.final-bridge-card p:not(.kicker):not(.challenge-copy) {
  margin-top: 12px;
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.22;
}

.final-bridge-card .challenge-copy {
  margin-top: 14px;
}

.final-bridge-card .test-button {
  margin-top: 18px;
}

.final-question-background {
  opacity: 0.9;
  filter: brightness(0.3) saturate(0.9);
}

.final-question-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(980px, calc(100vw - 96px));
  color: var(--text-light);
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}

.scene-final-question.is-active .final-question-card {
  animation: revealDepthItem 720ms cubic-bezier(0.2, 0.84, 0.22, 1) 120ms both;
}

.final-question-card h1 {
  max-width: 920px;
  margin: 8px 0 0;
  color: var(--text-light);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.02;
}

.final-question-card > p {
  margin: 22px 0 0;
  color: rgba(223, 197, 254, 0.92);
  font-size: 22px;
  font-weight: 780;
}

.final-choice-list {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
  margin-top: 34px;
}

.final-choice {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 68px;
  padding: 14px 20px;
  border: 2px solid rgba(244, 244, 244, 0.34);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.06);
  color: var(--text-light);
  cursor: pointer;
  font-size: 24px;
  font-weight: 850;
  line-height: 1.12;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.final-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 240, 0, 0.82);
  background: rgba(255, 240, 0, 0.1);
}

.final-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.final-choice-mark {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(244, 244, 244, 0.74);
  border-radius: 6px;
  background: rgba(244, 244, 244, 0.08);
  box-shadow: inset 0 0 0 3px rgba(50, 50, 68, 0.28);
}

.final-choice input:checked + .final-choice-mark {
  border-color: var(--signal);
  background: var(--signal);
}

.final-choice input:focus-visible + .final-choice-mark {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

.final-choice input:checked + .final-choice-mark::after {
  content: "✓";
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 950;
}

.final-choice:has(input:checked) {
  border-color: var(--signal);
  background: rgba(255, 240, 0, 0.14);
}

.final-answer-button {
  margin-top: 34px;
}

.result-feedback-background {
  opacity: 0.92;
  filter: brightness(0.26) saturate(0.9);
}

.result-feedback-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(1120px, calc(100vw - 96px));
  color: var(--text-light);
  text-align: center;
}

.result-feedback-card .kicker,
.result-feedback-score,
.result-progress,
.result-threat-map,
.result-feedback-card h1,
.result-feedback-message,
.result-feedback-common,
.result-feedback-button {
  opacity: 0;
  transform: translateY(16px);
}

.result-feedback-card h1 {
  margin: 30px 0 0;
  color: var(--text-light);
  font-size: clamp(46px, 5.4vw, 84px);
  line-height: 0.98;
}

.result-feedback-score {
  margin: 12px 0 0;
  color: rgba(244, 244, 244, 0.9);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 850;
  line-height: 1.12;
}

.result-feedback-score strong {
  color: var(--signal);
  font-size: 1.18em;
  font-weight: 980;
}

.result-progress {
  position: relative;
  width: min(760px, 100%);
  margin-top: 28px;
  padding-top: 24px;
}

.result-progress-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 2px solid rgba(223, 197, 254, 0.2);
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.07);
  box-shadow: inset 0 0 0 1px rgba(244, 244, 244, 0.06), 0 22px 54px rgba(0, 0, 0, 0.24);
}

.result-progress-track span {
  height: 16px;
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.16);
}

.result-progress-track span.is-filled {
  background: linear-gradient(180deg, var(--signal), #dbc900);
  box-shadow: 0 0 24px rgba(255, 240, 0, 0.34);
}

.result-progress-pin {
  position: absolute;
  left: clamp(28px, var(--progress, 0%), calc(100% - 28px));
  top: 0;
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 950;
  transform: translateX(-50%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.result-progress-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-top-color: var(--signal);
  transform: translateX(-50%);
}

.result-threat-map {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  width: min(760px, 100%);
  margin-top: 16px;
}

.result-threat-chip {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 38px;
  padding: 0 10px;
  border: 2px solid rgba(244, 244, 244, 0.18);
  border-radius: 999px;
  background: rgba(244, 244, 244, 0.08);
  color: rgba(244, 244, 244, 0.82);
  font-size: 13px;
  font-weight: 950;
}

.result-threat-chip.is-detected {
  border-color: rgba(255, 240, 0, 0.7);
  background: rgba(255, 240, 0, 0.16);
  color: var(--signal);
}

.result-threat-chip.is-missed {
  border-color: rgba(255, 61, 129, 0.5);
  background: rgba(255, 61, 129, 0.1);
}

.result-threat-chip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 3;
  width: max-content;
  max-width: 220px;
  padding: 8px 10px;
  border: 1px solid rgba(223, 197, 254, 0.32);
  border-radius: 8px;
  background: rgba(10, 10, 20, 0.94);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.result-threat-chip:hover::after,
.result-threat-chip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.result-feedback-message {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(900px, 100%);
  margin-top: 22px;
  color: rgba(244, 244, 244, 0.88);
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 680;
  line-height: 1.38;
}

.result-feedback-message p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(223, 197, 254, 0.18);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.065);
  text-align: justify;
  text-align-last: center;
}

.result-feedback-message p:nth-child(3):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(640px, 100%);
}

.result-feedback-message strong {
  color: var(--signal);
  font-weight: 900;
}

.result-feedback-common {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 24px 0 0;
  color: rgba(223, 197, 254, 0.95);
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  line-height: 1.24;
}

.result-feedback-common span {
  flex-basis: 100%;
}

.result-feedback-common strong {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(223, 197, 254, 0.28);
  border-radius: 999px;
  background: rgba(102, 54, 228, 0.18);
  color: var(--highlight-soft);
}

.result-feedback-button {
  margin-top: 24px;
}

.scene-result-feedback.is-active .result-feedback-card .kicker {
  animation: revealDepthItem 560ms cubic-bezier(0.2, 0.84, 0.22, 1) 120ms both;
}

.scene-result-feedback.is-active .result-feedback-score {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 320ms both;
}

.scene-result-feedback.is-active .result-progress {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 560ms both;
}

.scene-result-feedback.is-active .result-threat-map {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 820ms both;
}

.scene-result-feedback.is-active .result-feedback-card h1 {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 1120ms both;
}

.scene-result-feedback.is-active .result-feedback-message {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 1380ms both;
}

.scene-result-feedback.is-active .result-feedback-common {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 1640ms both;
}

.scene-result-feedback.is-active .result-feedback-button {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 1880ms both;
}

@media (max-height: 760px) {
  .result-feedback-card {
    width: min(1060px, calc(100vw - 56px));
  }

  .result-feedback-card h1 {
    margin-top: 18px;
    font-size: clamp(34px, 4.6vw, 60px);
  }

  .result-feedback-score {
    margin-top: 8px;
    font-size: clamp(20px, 2.1vw, 28px);
  }

  .result-progress {
    width: min(680px, 100%);
    margin-top: 18px;
    padding-top: 20px;
  }

  .result-threat-map {
    margin-top: 10px;
  }

  .result-threat-chip {
    min-width: 42px;
    height: 32px;
    font-size: 12px;
  }

  .result-feedback-message {
    gap: 10px;
    width: min(860px, 100%);
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.3;
  }

  .result-feedback-message p {
    padding: 12px 14px;
  }

  .result-feedback-common {
    margin-top: 14px;
    font-size: 15px;
  }

  .result-feedback-button {
    min-height: 50px;
    margin-top: 16px;
    padding: 12px 24px;
    font-size: 16px;
  }
}

@media (max-height: 560px) {
  .scene-final-bridge,
  .scene-final-question,
  .scene-result-feedback,
  .scene-recommendations {
    place-items: start center;
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .scene-surface-final {
    place-items: start start;
    padding-top: max(6px, env(safe-area-inset-top));
    padding-bottom: max(6px, env(safe-area-inset-bottom));
  }

  .result-feedback-card {
    width: min(960px, calc(100vw - 28px));
  }

  .result-feedback-card h1 {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 46px);
  }

  .result-feedback-score {
    margin-top: 4px;
    font-size: clamp(17px, 2vw, 22px);
  }

  .result-progress {
    width: min(620px, 100%);
    margin-top: 10px;
    padding-top: 16px;
  }

  .result-progress-track {
    gap: 5px;
    padding: 6px;
  }

  .result-progress-track span {
    height: 10px;
  }

  .result-progress-pin {
    min-width: 46px;
    height: 26px;
    font-size: 12px;
  }

  .result-threat-map {
    gap: 6px;
    margin-top: 8px;
  }

  .result-threat-chip {
    min-width: 34px;
    height: 26px;
    padding: 0 8px;
    font-size: 10px;
  }

  .result-feedback-message {
    gap: 8px;
    width: min(760px, 100%);
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.22;
  }

  .result-feedback-message p {
    padding: 8px 10px;
  }

  .result-feedback-common {
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.12;
  }

  .result-feedback-common strong {
    min-height: 26px;
    padding: 4px 9px;
  }

  .result-feedback-button {
    min-height: 42px;
    margin-top: 8px;
    padding: 9px 18px;
    font-size: 13px;
  }
}

.recommendations-background {
  opacity: 0.92;
  filter: brightness(0.28) saturate(0.88);
}

.recommendations-card {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(1080px, calc(100vw - 96px));
  min-height: min(760px, calc(100dvh - 56px));
  margin: auto 0;
  padding: 18px 0;
  align-content: center;
  color: var(--text-light);
  text-align: center;
}

.recommendations-card .kicker,
.recommendations-card h1,
.recommendations-lead,
.recommendation-item,
.recommendations-button {
  opacity: 0;
  transform: translateY(16px);
}

.recommendations-card h1 {
  margin: 8px 0 0;
  color: var(--text-light);
  font-size: clamp(44px, 5.8vw, 78px);
  line-height: 0.98;
}

.recommendations-lead {
  max-width: 840px;
  margin: 22px 0 0;
  color: rgba(244, 244, 244, 0.88);
  font-size: 22px;
  font-weight: 740;
  line-height: 1.34;
}

.recommendations-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(980px, 100%);
  margin-top: 28px;
}

.recommendation-item {
  position: relative;
  min-height: 220px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  text-align: left;
  opacity: 0;
  transform: translateY(38px) scale(0.96);
  pointer-events: none;
  perspective: 1000px;
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.recommendation-item.is-available {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scene-recommendations.is-active .recommendation-item.is-available:not(.is-revealed) {
  animation: recommendationCardIn 680ms cubic-bezier(0.2, 0.84, 0.22, 1) var(--recommendation-delay, 120ms) both;
}

.recommendation-card-inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 680ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.recommendation-item.is-revealed .recommendation-card-inner {
  transform: rotateY(180deg);
}

.recommendation-card-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 18px;
  border: 2px solid rgba(223, 197, 254, 0.22);
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.22);
}

.recommendation-card-back {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 240, 0, 0.22), transparent 22%),
    radial-gradient(circle at 78% 82%, rgba(255, 61, 129, 0.2), transparent 24%),
    linear-gradient(145deg, rgba(102, 54, 228, 0.82), rgba(50, 50, 68, 0.92));
  text-align: center;
}

.recommendation-card-front {
  align-content: start;
  justify-items: start;
  place-items: start;
  background: rgba(244, 244, 244, 0.075);
  transform: rotateY(180deg);
}

.recommendation-question {
  color: var(--signal);
  font-size: clamp(76px, 7vw, 112px);
  font-weight: 950;
  line-height: 1;
  text-shadow: 8px 7px 0 rgba(255, 61, 129, 0.78);
}

.recommendation-hint {
  margin-top: 8px;
  color: rgba(244, 244, 244, 0.86);
  font-size: 15px;
  font-weight: 850;
}

.recommendation-item.is-revealed {
  transform: translateY(0) scale(1);
}

.recommendation-item:hover .recommendation-card-face,
.recommendation-item:focus-visible .recommendation-card-face {
  border-color: rgba(255, 240, 0, 0.74);
  background-color: rgba(255, 240, 0, 0.1);
}

.recommendation-item:focus-visible {
  outline: none;
}

.recommendation-item h2 {
  margin: 0;
  color: var(--signal);
  font-size: 20px;
  line-height: 1.16;
}

.recommendation-item p {
  margin: 12px 0 0;
  color: rgba(244, 244, 244, 0.86);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.34;
}

.recommendations-button {
  margin-top: 30px;
  visibility: hidden;
  pointer-events: none;
}

.recommendations-button.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.scene-recommendations.is-active .recommendations-card .kicker {
  animation: revealDepthItem 560ms cubic-bezier(0.2, 0.84, 0.22, 1) 120ms both;
}

.scene-recommendations.is-active .recommendations-card h1 {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 360ms both;
}

.scene-recommendations.is-active .recommendations-lead {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 720ms both;
}

.scene-recommendations.is-active .recommendations-button.is-visible {
  animation: revealDepthItem 620ms cubic-bezier(0.2, 0.84, 0.22, 1) 240ms both;
}

.surface-final-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/surface-final-bg.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 1600ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.scene-surface-final.is-active .surface-final-background {
  opacity: 1;
  transform: scale(1);
}

.surface-final-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 244, 244, 0.88), rgba(244, 244, 244, 0.5) 36%, rgba(244, 244, 244, 0.05) 72%),
    linear-gradient(180deg, rgba(244, 244, 244, 0.2), rgba(102, 54, 228, 0.08));
}

.surface-ascent {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 52% 0%, rgba(244, 244, 244, 0.95), transparent 22%),
    linear-gradient(180deg, rgba(4, 20, 30, 0.9), rgba(18, 68, 92, 0.72), rgba(244, 244, 244, 0.92));
}

.surface-ascent span {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(244, 244, 244, 0.2), transparent);
  filter: blur(8px);
}

.surface-ascent span:nth-child(1) {
  top: -18%;
}

.surface-ascent span:nth-child(2) {
  top: 24%;
}

.surface-ascent span:nth-child(3) {
  top: 62%;
}

.scene-surface-final.is-ascending .surface-ascent {
  animation: surfaceAscent 1800ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.scene-surface-final.is-ascending .surface-ascent span {
  animation: surfaceStreaks 880ms linear 2 both;
}

.surface-final-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100vw - 108px));
  margin-top: clamp(24px, 7dvh, 86px);
  margin-bottom: max(24px, env(safe-area-inset-bottom));
  margin-left: clamp(48px, 8vw, 150px);
  color: var(--text-dark);
  opacity: 0;
  transform: translateY(24px);
}

.scene-surface-final.is-active .surface-final-card {
  animation: revealDepthItem 820ms cubic-bezier(0.2, 0.84, 0.22, 1) 1450ms both;
}

.surface-final-card .kicker {
  color: var(--highlight);
  font-size: 22px;
}

.surface-final-card h1 {
  margin: 12px 0 0;
  color: var(--text-dark);
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1.02;
}

.surface-title {
  margin: 16px 0 0;
  color: var(--highlight);
  font-size: clamp(42px, 5.8vw, 78px);
  font-weight: 950;
  line-height: 1;
}

.surface-thanks {
  margin: 34px 0 0;
  color: var(--text-dark);
  font-size: 26px;
  font-weight: 900;
}

.surface-copy,
.surface-close {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(50, 50, 68, 0.9);
  font-size: 22px;
  font-weight: 720;
  line-height: 1.35;
}

.surface-copy strong {
  color: var(--highlight);
  font-weight: 950;
}

.surface-close {
  font-size: 20px;
  color: rgba(50, 50, 68, 0.72);
}

.surface-disclaimer {
  max-width: 650px;
  margin-top: 6px;
  color: rgba(50, 50, 68, 0.38);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.35;
}

.surface-disclaimer p {
  margin: 2px 0 0;
}

.experience-rating {
  max-width: 650px;
  margin-top: 18px;
  color: var(--text-dark);
}

.experience-rating-question {
  margin: 0 0 8px;
  color: rgba(50, 50, 68, 0.88);
  font-size: 18px;
  font-weight: 900;
}

.experience-stars {
  display: inline-flex;
  gap: 6px;
  padding: 6px 8px 6px 0;
}

.experience-star {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(50, 50, 68, 0.24);
  cursor: pointer;
  font-size: 31px;
  line-height: 1;
  text-shadow: 0 6px 16px rgba(102, 54, 228, 0.12);
  transform: translateY(0) scale(1);
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.experience-star:hover,
.experience-star.is-selected {
  color: #fff000;
  text-shadow: 0 7px 18px rgba(102, 54, 228, 0.2), 0 0 0 1px rgba(50, 50, 68, 0.18);
}

.experience-star:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.06);
}

.experience-star:disabled {
  cursor: default;
}

.experience-star.is-pop {
  animation: ratingStarPop 540ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.experience-rating-response {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  animation: revealDepthItem 360ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.experience-rating-response p,
.experience-comment-thanks,
.experience-rating-registered {
  margin: 0;
  color: var(--highlight);
  font-size: 17px;
  font-weight: 950;
}

.experience-rating-response button,
.experience-comment-form button {
  border: 0;
  border-radius: 999px;
  background: rgba(102, 54, 228, 0.1);
  color: var(--highlight);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  padding: 9px 14px;
  transition: background 180ms ease, transform 180ms ease;
}

.experience-rating-response button:hover,
.experience-comment-form button:hover {
  background: rgba(102, 54, 228, 0.18);
  transform: translateY(-1px);
}

.experience-comment-form {
  max-width: 480px;
  margin-top: 12px;
  animation: revealDepthItem 360ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.experience-comment-form label {
  display: block;
  color: rgba(50, 50, 68, 0.72);
  font-size: 15px;
  font-weight: 850;
}

.experience-comment-form textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  margin: 8px 0 10px;
  border: 1px solid rgba(102, 54, 228, 0.24);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-dark);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.experience-comment-form textarea:focus {
  border-color: rgba(102, 54, 228, 0.68);
  box-shadow: 0 0 0 4px rgba(223, 197, 254, 0.52);
}

.experience-comment-thanks {
  margin-top: 10px;
  animation: revealDepthItem 360ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.surface-logo {
  display: block;
  width: 112px;
  height: auto;
  margin-top: 22px;
  opacity: 0.9;
}

@keyframes ratingStarPop {
  0% {
    transform: translateY(0) scale(1);
  }

  38% {
    transform: translateY(-5px) scale(1.24) rotate(-5deg);
  }

  72% {
    transform: translateY(1px) scale(0.96) rotate(3deg);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes surfaceAscent {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }

  16% {
    opacity: 1;
  }

  72% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
  }

  100% {
    opacity: 0;
    transform: translateY(-18%) scale(1.08);
  }
}

@keyframes surfaceStreaks {
  from {
    transform: translateY(60%);
  }

  to {
    transform: translateY(-220%);
  }
}

.quiz-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(350px, 1fr) minmax(220px, 0.44fr) minmax(350px, 1fr);
  gap: clamp(18px, 2.2vw, 38px);
  align-items: center;
  width: min(1580px, calc(100vw - 72px));
}

.quiz-card {
  display: grid;
  gap: 26px;
  justify-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}

.quiz-image-frame {
  position: relative;
  width: min(480px, 100%);
  padding: 0;
  border: 1px solid rgba(244, 244, 244, 0.2);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.06);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.quiz-image-frame[role="button"] {
  cursor: zoom-in;
}

.quiz-image-frame[role="button"]:hover,
.quiz-image-frame[role="button"]:focus-visible {
  transform: translateY(-4px);
  border-color: var(--highlight-soft);
  background: rgba(102, 54, 228, 0.12);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34), 0 0 0 3px rgba(223, 197, 254, 0.12);
}

.quiz-image-frame[role="button"]:focus-visible {
  outline: 3px solid rgba(223, 197, 254, 0.9);
  outline-offset: 3px;
}

.quiz-image-frame[role="button"]:hover .zoom-button,
.quiz-image-frame[role="button"]:focus-visible .zoom-button {
  border-color: var(--highlight-soft);
  background: var(--highlight);
  transform: translateY(-2px) scale(1.04);
}

.quiz-image-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 1130;
  object-fit: cover;
}

#attachmentQuizScene .quiz-image-frame {
  width: min(520px, 100%);
  background: #f4f4f4;
}

#attachmentQuizScene .quiz-image-frame img {
  aspect-ratio: 1456 / 1280;
  object-fit: contain;
}

#sharepointQuizScene .quiz-image-frame {
  width: min(500px, 100%);
  background: #f4f4f4;
}

#sharepointQuizScene .quiz-image-frame img {
  aspect-ratio: 1378 / 1406;
  object-fit: contain;
}

.zoom-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(244, 244, 244, 0.72);
  border-radius: 999px;
  background: rgba(24, 24, 34, 0.82);
  color: var(--text-light);
  cursor: zoom-in;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.zoom-button:hover,
.zoom-button:focus-visible {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--highlight-soft);
  background: var(--highlight);
  outline: none;
}

.zoom-button span[aria-hidden="true"] {
  font-size: 20px;
  transform: translateY(-1px);
}

.zoom-label {
  position: static;
  width: auto;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: none;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.zoom-label::after {
  content: none;
}

.select-phishing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-width: 228px;
  min-height: 44px;
  padding: 11px 20px;
  border: 2px solid rgba(255, 240, 0, 0.7);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--signal), #dfd103);
  color: var(--text-dark);
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 240, 0, 0.08);
  transition: filter 180ms ease, transform 180ms ease;
}

.select-phishing-button::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.select-phishing-button:hover,
.select-phishing-button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px);
  outline: 3px solid rgba(244, 244, 244, 0.9);
  outline-offset: 2px;
}

.answer-card.is-selected .select-phishing-button {
  filter: brightness(1.08);
  box-shadow: 0 0 0 5px rgba(255, 240, 0, 0.18), 0 18px 42px rgba(0, 0, 0, 0.34);
}

.quiz-center {
  color: var(--text-light);
  text-align: center;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

.quiz-center h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
}

.hint-box {
  position: relative;
  display: inline-grid;
  justify-items: center;
  margin-top: 76px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 500ms ease, transform 500ms ease;
}

.hint-box.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.hint-trigger {
  min-height: 58px;
  padding: 13px 32px;
  border: 0;
  border-radius: 999px;
  background: var(--highlight-soft);
  color: var(--highlight);
  cursor: help;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, background 180ms ease;
}

.hint-trigger:hover,
.hint-trigger:focus-visible {
  transform: translateY(-2px);
  background: var(--signal);
}

.tooltip-bubble {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  z-index: 5;
  width: 300px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(223, 197, 254, 0.44);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.96);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  text-shadow: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.tooltip-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 16px;
  height: 16px;
  background: rgba(244, 244, 244, 0.96);
  transform: translateX(-50%) rotate(45deg);
}

.hint-box:hover .tooltip-bubble,
.hint-box:focus-within .tooltip-bubble,
.zoom-info:hover + .tooltip-bubble,
.zoom-info:focus-visible + .tooltip-bubble {
  opacity: 1;
  transform: translate(-50%, 0);
}

.zoom-modal {
  width: min(940px, calc(100vw - 96px));
  max-height: calc(100dvh - 72px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: zoom-out;
}

.zoom-modal::backdrop {
  background: rgba(1, 4, 10, 0.88);
}

.zoom-modal img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 72px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.54);
}

.privacy-link {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 20;
  border: 1px solid rgba(244, 244, 244, 0.14);
  border-radius: 999px;
  background: rgba(10, 10, 20, 0.12);
  color: rgba(244, 244, 244, 0.56);
  cursor: pointer;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 8px 10px;
  backdrop-filter: blur(10px);
  opacity: 0.72;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  background: rgba(102, 54, 228, 0.42);
  color: #fff;
  opacity: 0.92;
  outline: none;
  transform: translateY(-1px);
}

.privacy-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--text-dark);
  padding: 0;
}

.privacy-modal::backdrop {
  background: rgba(10, 10, 20, 0.58);
  backdrop-filter: blur(5px);
}

.privacy-panel {
  position: relative;
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(223, 197, 254, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  padding: 28px 28px 34px;
}

.privacy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(102, 54, 228, 0.1);
  color: var(--highlight);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.privacy-kicker {
  margin: 0 0 8px;
  color: var(--highlight);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.privacy-panel h2 {
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.privacy-scope,
.privacy-owner {
  margin: 14px 0 0;
  color: rgba(50, 50, 68, 0.7);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.42;
}

.privacy-scope {
  margin-top: 22px;
  border-top: 1px solid rgba(223, 197, 254, 0.72);
  color: rgba(50, 50, 68, 0.82);
  font-weight: 850;
  padding-top: 16px;
}

.privacy-owner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding-bottom: 4px;
}

.privacy-owner-logo {
  width: 36px;
  height: auto;
  opacity: 0.72;
}

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

.privacy-grid section {
  border: 1px solid rgba(223, 197, 254, 0.68);
  border-radius: 14px;
  background: #fbfaff;
  padding: 14px;
}

.privacy-grid h3 {
  margin: 0;
  color: var(--highlight);
  font-size: 14px;
  font-weight: 950;
}

.privacy-grid p,
.privacy-grid ul {
  margin: 8px 0 0;
  color: rgba(50, 50, 68, 0.75);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.42;
}

.privacy-grid ul {
  padding-left: 18px;
}

.privacy-grid li + li {
  margin-top: 3px;
}

@media (max-width: 720px) {
  .privacy-link {
    right: 12px;
    bottom: 12px;
    padding: 7px 10px;
  }

  .privacy-panel {
    padding: 22px 22px 30px;
  }

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

.result-modal {
  width: min(1060px, calc(100vw - 80px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dark);
  overflow: visible;
}

.result-modal::backdrop {
  background: rgba(1, 4, 10, 0.78);
  backdrop-filter: blur(6px);
}

.result-modal[open]::backdrop {
  animation: resultBackdropIn 520ms ease both;
}

.result-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 34px;
  align-items: center;
  min-height: min(560px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 42px 48px 112px;
  border: 3px solid var(--signal);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 12%, rgba(223, 197, 254, 0.42), transparent 26%),
    linear-gradient(135deg, rgba(244, 244, 244, 0.98), rgba(237, 241, 248, 0.96));
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.48);
}

.result-modal[open] .result-panel {
  animation: resultPanelIn 620ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.result-zoom-card {
  display: grid;
  gap: 18px;
  align-content: center;
}

.result-zoom-card p {
  max-width: 440px;
  margin: 0;
  color: var(--text-dark);
  font-size: 18px;
  line-height: 1.38;
  text-align: center;
}

.domain-zoom {
  position: relative;
  height: 250px;
  border-radius: 8px;
  background-image: url("assets/netflix-phishing.png");
  background-repeat: no-repeat;
  background-size: 175%;
  background-position: 54% 78%;
  box-shadow: inset 0 0 0 1px rgba(50, 50, 68, 0.1), 0 18px 44px rgba(50, 50, 68, 0.16);
  overflow: visible;
}

.zoom-info {
  position: absolute;
  top: 42%;
  left: 39%;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(244, 244, 244, 0.9);
  border-radius: 999px;
  background: var(--highlight);
  color: var(--text-light);
  cursor: help;
  font-size: 40px;
  font-weight: 300;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(102, 54, 228, 0.4);
}

.domain-tooltip {
  top: auto;
  bottom: calc(100% + 12px);
  width: 270px;
}

.domain-tooltip::after {
  top: auto;
  bottom: -8px;
}

.result-copy h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 26px;
  color: #28761f;
  font-size: 42px;
  line-height: 1;
}

.result-panel.is-wrong .result-copy h2 {
  color: #c01818;
}

.result-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2fb344;
  color: var(--text-light);
  font-size: 32px;
  line-height: 1;
}

.result-panel.is-wrong .result-icon {
  background: #df1b1b;
}

.result-copy p {
  margin: 0 0 24px;
  color: var(--text-dark);
  font-size: 23px;
  line-height: 1.44;
}

.result-copy strong {
  color: var(--text-dark);
  font-weight: 950;
}

.result-tip {
  position: relative;
  padding-left: 28px;
}

.result-tip::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--highlight);
}

.result-next {
  position: absolute;
  left: 50%;
  bottom: 24px;
  min-width: 300px;
  min-height: 68px;
  padding: 16px 34px;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  color: var(--highlight);
  cursor: pointer;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
  transform: translateX(-50%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.result-next:hover,
.result-next:focus-visible {
  background: var(--highlight-soft);
}

.sms-result-modal {
  width: min(760px, calc(100vw - 120px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dark);
  overflow: visible;
}

.sms-result-modal::backdrop {
  background: rgba(1, 4, 10, 0.72);
  backdrop-filter: blur(5px);
}

.sms-result-modal[open]::backdrop {
  animation: resultBackdropIn 520ms ease both;
}

.sms-result-panel {
  position: relative;
  padding: 48px 58px 104px;
  border: 3px solid var(--signal);
  border-radius: 8px;
  background: rgba(244, 244, 244, 0.98);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.48);
  animation: resultPanelIn 620ms cubic-bezier(0.2, 0.84, 0.22, 1) both;
}

.sms-result-panel h2 {
  margin: 0 0 26px;
  color: #4b8c24;
  font-size: 46px;
  line-height: 1;
}

.sms-result-panel.is-wrong h2 {
  color: #c01818;
}

.sms-result-panel p {
  margin: 0;
  color: var(--text-dark);
  font-size: 24px;
  line-height: 1.45;
}

.sms-result-panel strong {
  font-weight: 950;
}

.sms-result-next {
  bottom: -34px;
  text-transform: lowercase;
}

@keyframes settleDeeper {
  from {
    transform: translateY(10%) scale(1.22);
    filter: brightness(0.5) saturate(0.96);
  }
  to {
    transform: scale(1.1);
    filter: brightness(0.58) saturate(1.12) hue-rotate(8deg);
  }
}

@keyframes settleDeepest {
  from {
    transform: translateY(12%) scale(1.34);
    filter: brightness(0.4) saturate(0.9);
  }
  to {
    transform: scale(1.18) translateY(2%);
    filter: brightness(0.42) saturate(1.05) hue-rotate(18deg);
  }
}

@keyframes revealDepthItem {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes recommendationCardIn {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.94) rotateX(8deg);
    filter: blur(5px);
  }
  62% {
    opacity: 1;
    transform: translateY(-4px) scale(1.015) rotateX(0);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
    filter: blur(0);
  }
}

@keyframes selectedPulse {
  0% {
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.34);
  }
  42% {
    box-shadow: 0 0 0 8px rgba(255, 240, 0, 0.18), 0 34px 88px rgba(0, 0, 0, 0.42);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 240, 0, 0), 0 28px 76px rgba(0, 0, 0, 0.34);
  }
}

@keyframes resultBackdropIn {
  from {
    background: rgba(1, 4, 10, 0);
    backdrop-filter: blur(0);
  }
  to {
    background: rgba(1, 4, 10, 0.78);
    backdrop-filter: blur(6px);
  }
}

@keyframes resultPanelIn {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    filter: blur(0);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes callPulse {
  from {
    opacity: 0.65;
    transform: scale(0.68);
  }
  to {
    opacity: 0;
    transform: scale(2.9);
  }
}

@media (max-height: 900px) {
  :root {
    --stage-scale: 0.94;
  }
}

@media (max-height: 820px) {
  :root {
    --stage-scale: 0.88;
  }

  .continue-button,
  .start-button,
  .result-next,
  .sms-answer-button {
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .start-button,
  .continue-button,
  .test-button,
  .observe-button,
  .final-answer-button,
  .recommendations-button,
  .result-feedback-button {
    margin-top: 18px;
  }

  .float-copy p:not(.kicker):not(.source-note),
  .observe-copy p,
  .test-intro-copy p,
  .sms-question-card p,
  .call-question-card p,
  .whatsapp-question-card p,
  .qr-question-card p {
    font-size: 20px;
    line-height: 1.3;
  }

  .float-copy h1,
  .observe-copy h1,
  .test-intro-copy h1,
  .sms-question-card h1,
  .call-question-card h1,
  .whatsapp-question-card h1,
  .qr-question-card h1 {
    line-height: 1.02;
  }

  .observe-layout,
  .urgency-layout,
  .attachments-layout,
  .sms-layout,
  .call-layout,
  .whatsapp-layout,
  .qr-layout {
    width: min(1400px, calc(100vw - 56px));
    min-height: calc(100dvh - 48px);
    height: auto;
    padding-block: 24px;
  }

  .comparison-slider {
    max-height: calc(100dvh - 150px);
  }

  .test-intro-copy {
    width: min(860px, calc(100vw - 80px));
  }

  .test-intro-copy p {
    margin-top: 12px;
  }

  .test-mission {
    margin-top: 18px;
    font-size: 24px;
  }

  .quiz-layout {
    width: min(1420px, calc(100vw - 56px));
    gap: 18px;
    padding-block: 18px;
  }

  .quiz-card {
    gap: 26px;
    padding: 0;
  }

  .quiz-center h1 {
    font-size: clamp(34px, 4.2vw, 58px);
  }

  .sms-answer-grid {
    margin-top: 24px;
  }

  .sms-answer-button {
    font-size: 19px;
  }

  .call-phone,
  .whatsapp-phone {
    width: min(330px, calc((100dvh - 72px) * 0.4895), 100%);
  }

  .qr-postcard img {
    max-height: min(520px, calc(100dvh - 150px));
  }

  .final-question-card h1 {
    font-size: clamp(38px, 5vw, 64px);
  }

  .final-choice-list {
    gap: 10px;
    margin-top: 22px;
  }

  .final-choice {
    min-height: 56px;
    font-size: 20px;
  }

  .recommendations-card {
    min-height: calc(100dvh - 48px);
  }

  .recommendations-list {
    margin-top: 20px;
  }

  .recommendation-item {
    min-height: 210px;
  }
}

@media (max-height: 680px) {
  .result-modal {
    width: min(984px, calc(100vw - 32px));
    max-height: calc(100dvh - 20px);
  }

  .result-panel {
    grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1fr);
    gap: 20px;
    min-height: min(520px, calc(100dvh - 20px));
    max-height: calc(100dvh - 20px);
    padding: 24px 30px 82px;
  }

  .result-zoom-card {
    gap: 12px;
  }

  .result-zoom-card p {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.28;
  }

  .domain-zoom {
    height: 168px;
  }

  .zoom-info {
    width: 46px;
    height: 46px;
    font-size: 31px;
  }

  .domain-tooltip {
    width: 230px;
    font-size: 14px;
  }

  .result-copy h2 {
    gap: 10px;
    margin-bottom: 14px;
    font-size: 32px;
  }

  .result-icon {
    width: 34px;
    height: 34px;
    font-size: 25px;
  }

  .result-copy p {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.28;
  }

  .result-tip {
    padding-left: 22px;
  }

  .result-tip::before {
    top: 9px;
  }

  .result-next {
    bottom: 16px;
    min-width: 244px;
    min-height: 52px;
    padding: 12px 28px;
    font-size: 22px;
  }
}

@media (max-width: 760px), (max-height: 460px) {
  .result-modal {
    width: min(1000px, calc(100vw - 12px));
    max-height: calc(100dvh - 8px);
  }

  .result-panel {
    grid-template-columns: minmax(190px, 0.82fr) minmax(240px, 1fr);
    gap: 10px;
    min-height: min(390px, calc(100dvh - 8px));
    max-height: calc(100dvh - 8px);
    padding: 12px 14px 50px;
    border-width: 2px;
  }

  .result-zoom-card {
    gap: 6px;
  }

  .result-zoom-card p {
    max-width: 260px;
    font-size: 11px;
    line-height: 1.16;
  }

  .domain-zoom {
    height: 92px;
  }

  .zoom-info {
    width: 32px;
    height: 32px;
    border-width: 2px;
    font-size: 22px;
  }

  .domain-tooltip {
    width: 190px;
    font-size: 11px;
  }

  .result-copy h2 {
    gap: 6px;
    margin-bottom: 6px;
    font-size: 21px;
  }

  .result-icon {
    width: 26px;
    height: 26px;
    font-size: 18px;
  }

  .result-copy p {
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.14;
  }

  .result-tip {
    padding-left: 16px;
  }

  .result-tip::before {
    top: 6px;
    width: 6px;
    height: 6px;
  }

  .result-next {
    bottom: 7px;
    min-width: 176px;
    min-height: 34px;
    padding: 7px 18px;
    font-size: 14px;
  }
}

@media (max-height: 760px) {
  :root {
    --stage-scale: 0.82;
  }

  .intro-line {
    font-size: clamp(32px, 4.2vw, 62px);
  }

  .start-button {
    margin-top: 28px;
  }
}

@media (max-height: 680px) {
  :root {
    --stage-scale: 0.74;
  }
}

@media (max-height: 620px) {
  :root {
    --stage-scale: 0.68;
  }

  .result-modal {
    width: min(996px, calc(100vw - 20px));
    max-height: calc(100dvh - 12px);
  }

  .result-panel {
    gap: 16px;
    min-height: min(500px, calc(100dvh - 12px));
    max-height: calc(100dvh - 12px);
    padding: 20px 24px 72px;
  }

  .domain-zoom {
    height: 150px;
  }

  .result-copy h2 {
    margin-bottom: 10px;
    font-size: 29px;
  }

  .result-copy p {
    margin-bottom: 9px;
    font-size: 17px;
    line-height: 1.22;
  }

  .result-next {
    bottom: 12px;
    min-height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 900px) {
  :root {
    --stage-scale: 0.72;
  }

  .intro-copy,
  .float-copy,
  .surface-final-card {
    width: min(720px, calc(100vw - 28px));
    margin-left: clamp(16px, 4vw, 36px);
  }
}

@media (max-width: 760px) {
  :root {
    --stage-scale: 0.58;
  }
}

@media (max-height: 520px) {
  :root {
    --stage-scale: 0.58;
  }

  .intro-copy,
  .float-copy {
    width: min(760px, calc(100vw - 32px));
    margin-left: clamp(18px, 5vw, 48px);
  }

  .start-button,
  .continue-button,
  .test-button,
  .observe-button,
  .final-answer-button,
  .recommendations-button,
  .result-feedback-button {
    min-width: 216px;
    min-height: 42px;
    margin-top: 12px;
    padding: 9px 18px;
    font-size: 13px;
  }

  .kicker {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .float-copy h1,
  .observe-copy h1,
  .test-intro-copy h1,
  .sms-question-card h1,
  .call-question-card h1,
  .whatsapp-question-card h1,
  .qr-question-card h1,
  .final-bridge-card h1,
  .final-question-card h1,
  .recommendations-card h1,
  .surface-final-card h1,
  .surface-title {
    line-height: 0.96;
  }

  .surface-final-card {
    width: min(680px, calc(100vw - 36px));
    margin-left: clamp(18px, 5vw, 46px);
  }

  .surface-final-card .kicker {
    font-size: 16px;
  }

  .surface-final-card h1 {
    margin-top: 6px;
    font-size: clamp(30px, 5vw, 48px);
  }

  .surface-title {
    margin-top: 8px;
    font-size: clamp(30px, 5.2vw, 50px);
  }

  .surface-thanks {
    margin-top: 14px;
    font-size: 18px;
  }

  .surface-copy,
  .surface-close {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.18;
  }

  .experience-rating {
    margin-top: 8px;
  }

  .experience-rating-question {
    margin-bottom: 4px;
    font-size: 13px;
  }

  .experience-stars {
    gap: 3px;
    padding: 2px 4px 2px 0;
  }

  .experience-star {
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
}

@media (max-height: 460px) {
  :root {
    --stage-scale: 0.48;
  }

  .result-modal {
    width: min(1000px, calc(100vw - 10px));
    max-height: calc(100dvh - 6px);
  }

  .result-panel {
    grid-template-columns: minmax(180px, 0.82fr) minmax(230px, 1fr);
    gap: 8px;
    min-height: min(360px, calc(100dvh - 6px));
    max-height: calc(100dvh - 6px);
    padding: 10px 12px 46px;
  }

  .result-zoom-card {
    gap: 5px;
  }

  .result-zoom-card p {
    max-width: 250px;
    font-size: 10px;
    line-height: 1.12;
  }

  .domain-zoom {
    height: 82px;
  }

  .zoom-info {
    width: 28px;
    height: 28px;
    font-size: 19px;
  }

  .domain-tooltip {
    width: 170px;
    font-size: 10px;
  }

  .result-copy h2 {
    margin-bottom: 5px;
    font-size: 19px;
  }

  .result-icon {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }

  .result-copy p {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.12;
  }

  .result-next {
    bottom: 6px;
    min-width: 160px;
    min-height: 30px;
    padding: 6px 14px;
    font-size: 13px;
  }

  .intro-line {
    font-size: clamp(25px, 4vw, 48px);
  }

  .second-line {
    margin-top: 12px;
  }

  .result-feedback-card {
    width: min(900px, calc(100vw - 18px));
  }

  .result-feedback-card h1 {
    margin-top: 5px;
    font-size: clamp(24px, 3.8vw, 38px);
  }

  .result-feedback-message {
    font-size: 11px;
  }

  .result-feedback-common {
    font-size: 11px;
  }
}

@media (max-height: 320px) {
  :root {
    --stage-scale: 0.36;
  }

  .result-panel {
    grid-template-columns: minmax(150px, 0.8fr) minmax(205px, 1fr);
    gap: 6px;
    min-height: min(270px, calc(100dvh - 6px));
    padding: 8px 10px 38px;
  }

  .result-zoom-card p {
    font-size: 9px;
  }

  .domain-zoom {
    height: 58px;
  }

  .zoom-info {
    width: 22px;
    height: 22px;
    font-size: 15px;
  }

  .result-copy h2 {
    margin-bottom: 3px;
    font-size: 16px;
  }

  .result-icon {
    width: 19px;
    height: 19px;
    font-size: 14px;
  }

  .result-copy p {
    margin-bottom: 3px;
    font-size: 9px;
    line-height: 1.08;
  }

  .result-tip {
    padding-left: 12px;
  }

  .result-tip::before {
    top: 4px;
    width: 4px;
    height: 4px;
  }

  .result-next {
    min-width: 132px;
    min-height: 25px;
    font-size: 10px;
  }

  .intro-copy,
  .float-copy,
  .surface-final-card {
    margin-left: 14px;
  }

  .start-button,
  .continue-button,
  .test-button,
  .observe-button,
  .final-answer-button,
  .recommendations-button,
  .result-feedback-button {
    min-width: 168px;
    min-height: 30px;
    margin-top: 7px;
    padding: 6px 12px;
    font-size: 10px;
  }

  .result-feedback-message p {
    padding: 5px 7px;
  }

  .surface-final-card {
    margin-top: 12px;
    margin-bottom: 16px;
  }

  .surface-thanks,
  .surface-copy,
  .surface-close {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.08;
  }

  .experience-rating {
    margin-top: 5px;
  }
}

@media (max-height: 860px) {
  .scene-memory {
    padding: 12px 0;
  }

  .memory-layout {
    width: min(1120px, calc(100vw - 56px));
    height: min(760px, calc(100dvh - 24px));
  }

  .memory-header h1 {
    font-size: clamp(28px, 3.5vw, 48px);
  }

  .memory-header p:last-child {
    margin-top: 8px;
    max-width: 700px;
    font-size: 17px;
  }

  .memory-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 16px);
    width: min(960px, calc((100dvh - 260px) * 2.08), 100%);
    margin-top: 12px;
  }

  .memory-card-back {
    font-size: clamp(54px, 7vw, 86px);
  }

  .memory-card-back::before {
    inset: 10px;
  }

  .memory-card-name {
    bottom: 9px;
    font-size: clamp(13px, 1.3vw, 19px);
  }

  .memory-continue {
    min-height: 50px;
    margin-top: 14px;
    padding: 12px 24px;
    font-size: 16px;
  }
}
