/* Прототип: нейтральная база под будущий дизайн */
@font-face {
  font-family: 'Toony Loons';
  src: url('./toony_loons.ttf.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /**
   * Плавный rem между опорными точками:
   * 0px -> 14px, 768px -> 13px.
   */
  --rem-base: clamp(13px, calc(14px - 100vw / 768), 14px);

  --bg: #f4f4f2;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --border: #d8d8d4;
  --hero-title: #fc801c;
  --hero-subtitle: #776b45;
  --accent: var(--hero-title);
  --accent-hover: #e67312;
  --myth: #f57842;
  --truth: #7ab54f;
  --feedback-wrong: #c13a3a;

  --radius: 0.75rem;
  --radius-sm: 0.25rem;
  --radius-ui: 0.5rem;
  --shadow-quiz-screen: 0 0.75rem 2.5rem rgba(0, 0, 0, 0.12);
  --shadow-card: 0 0.375rem 1.5rem rgba(0, 0, 0, 0.1);
  --paper-tile-size: 6.25rem;

  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Toony Loons', var(--font);
  /**
   * Базовая ширина контентной колонки:
   * <768px — 90%; ≥768px — 80%.
   */
  --maxw: 90%;
  --hero-block-h: 100vh;
  --hero-block-h-fixed: 100dvh;
  --page-inner-pad-y: 5rem;
  /** Ширина панды завязана на rem и потому меняется вместе с --rem-base. */
  --panda-width: calc(32.375 * var(--rem-base));
  --panda-mobile-max-w: min(92vw, var(--panda-width));
  --quiz-card-min-h: 11.25rem;
  --partner-logo-h: 2rem;
  --partner-logo-max-w: min(12.5rem, 45vw);
}

@media (min-width: 768px) {
  :root {
    /**
     * Плавный rem между опорными точками:
     * 768px -> 13px, 1378px -> 14px.
     */
    --rem-base: clamp(13px, calc(13px + (100vw - 768px) / 610), 14px);
    --maxw: 80%;
  }
}

@media (min-width: 1378px) {
  :root {
    /**
     * Плавный rem между опорными точками:
     * 1378px -> 14px, 1920px -> 16px.
     */
    --rem-base: clamp(14px, calc(14px + (100vw - 1378px) / 271), 16px);
  }
}

@media (min-width: 1920px) {
  :root {
    /** 1rem = 16px */
    --rem-base: 16px;
    --maxw: 1880px;
  }
}

html {
  font-size: var(--rem-base);
  scroll-behavior: smooth;
  background: transparent;
  /* Hero сам меняет высоту во время scroll, anchoring здесь даёт видимый джиттер. */
  overflow-anchor: none;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

/* Фон страницы: под всем контентом, без обрезки */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Небо: полная ширина, второй кадр — отражение по Y, стык по нижнему краю первого */
.page-bg__sky {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 0;
  transform-origin: center center;
  transform: scale(1.1);
}

.page-bg__sky-img {
  width: 100%;
  height: auto;
  display: block;
}

.page-bg__sky-img--mirror {
  transform: scaleY(-1);
}

.page-bg__grass {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center bottom;
  transform-origin: center center;
  transform: scale(1.1);
  transition: bottom 420ms ease;
}

.page-bg__panda-slot {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  line-height: 0;
  transform-origin: center center;
  transform: scale(1.1);
  opacity: 1;
  transition:
    right 420ms ease,
    bottom 420ms ease,
    opacity 320ms ease;
}

.experience--quiz-active .page-bg__panda-slot {
  opacity: 0.1;
}

.page-bg__panda {
  width: auto;
  height: var(--hero-block-h);
  max-height: var(--hero-block-h-fixed);
  max-width: 50vw;
  object-fit: contain;
  object-position: right bottom;
  display: block;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 768px) {
  .page-bg__panda {
    width: var(--panda-width);
    max-width: none;
    height: auto;
    max-height: none;
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  height: var(--hero-block-h);
  height: var(--hero-block-h-fixed);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4rem 1rem;
  box-sizing: border-box;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero__content {
  width: 50%;
  max-width: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  min-width: 0;
}

.hero__cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  width: 100%;
  min-width: 0;
}

/* Призыв: обёртка под shine; белый фон только у .hero-promo__ticket с бордером */
.hero-promo {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  position: relative;
  overflow: visible;
  border-radius: 1.5rem;
  isolation: isolate;
  transform: rotate(0deg);
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  cursor: default;
}

/* Три стопа: края прозрачны → центр полосы светлее → снова к прозрачным краям */
.hero-promo::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.62) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 46% 100%;
  background-repeat: no-repeat;
  background-position: 0% 50%;
  animation: hero-promo-shine 2.9s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes hero-promo-shine {
  from {
    background-position: -35% 50%;
  }

  to {
    background-position: 135% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-promo::after {
    animation: none;
    opacity: 0;
  }
}

.hero-promo__ticket {
  flex-shrink: 0;
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem 2rem 0.5rem 0.5rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #fff3e6 100%);
  border: 1px solid rgba(252, 128, 28, 0.28);
  box-shadow: 0 0.85rem 2rem rgba(252, 128, 28, 0.16);
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-promo__icon {
  flex-shrink: 0;
  display: block;
  height: 5.125rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.hero-promo__text {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1.75rem;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero-promo__muted {
  color: var(--text);
}

.hero-promo__brand {
  color: var(--hero-title);
  text-shadow: 0 0.08em 0 rgba(255, 255, 255, 0.55);
}

.hero__title {
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: normal;
  line-height: 0.75;
  margin: 0;
  color: var(--hero-title);
  cursor: default;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.05em;
  max-width: 100%;
  margin: 0;
  color: var(--hero-subtitle);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 1rem;
  padding: 1.25rem 3.5rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  cursor: pointer;
  user-select: none;
}

.hero-cta__arrow {
  flex-shrink: 0;
  display: block;
  width: 1em;
  height: 1em;
  object-fit: contain;
}

.hero-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

#btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: 1.5rem;
  padding: 1.625rem 3.5rem;
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

#btn-start:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.screen-intro-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  line-height: 1.2;
  text-align: center;
}

.screen-intro-lead {
  margin-bottom: 1rem;
  text-align: center;
}

#screen-intro .actions {
  justify-content: center;
}

@media (max-width: 767px) {
  .page-content__inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .page-main {
    width: 100%;
    min-height: 100dvh;
    padding: 3rem 0;
    box-sizing: border-box;
  }

  .hero__inner {
    padding: 3rem 0;
    gap: 3rem;
    justify-content: flex-start;
  }

  .hero__body {
    flex: 1 1 auto;
    min-height: 100%;
    justify-content: flex-start;
    align-items: center;
  }

  .hero__content {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    justify-content: stretch;
    text-align: center;
    row-gap: 3rem;
    column-gap: 0;
  }

  .hero__cta-row {
    grid-row: 4;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .hero__title {
    font-size: 6rem;
    line-height: 0.68;
    text-align: center;
  }

  .hero-cta {
    width: 100%;
    font-size: 2rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 2rem;
    gap: 1rem;
  }

  #btn-start {
    font-size: 10vw;
    letter-spacing: 0.05em;
    padding: 1.375rem 2rem;
  }

  .hero__subtitle {
    font-size: 2rem;
    text-align: center;
  }

  .hero-promo {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
  }

  .hero-promo__ticket {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    box-shadow: 0 0.65rem 1.4rem rgba(252, 128, 28, 0.14);
  }

  .hero-promo__text {
    font-size: 1.5rem;
    line-height: 1.05;
    text-align: left;
  }

  .hero-promo__icon {
    height: 3rem;
  }

  .page-bg__sky {
    top: -5dvh;
    left: 50%;
    width: 264dvh;
    height: 110dvh;
    margin-left: -132dvh;
  }

  .page-bg__sky-img {
    width: 100%;
    height: 50%;
    object-fit: cover;
  }

  .page-bg__grass {
    height: 25%;
  }

  .page-bg__panda-slot {
    left: auto;
    right: 0;
    top: auto;
    bottom: 0;
    height: 60dvh;
    transform-origin: right bottom;
  }

  .page-bg__panda {
    width: min(60vw, calc(var(--panda-mobile-max-w) * 0.7));
    max-width: 60vw;
    height: 100%;
    min-height: 60dvh;
    max-height: none;
  }

  .quiz-stage {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - 6rem);
    height: calc(100dvh - 6rem);
  }

  .quiz-stage > .screen:not([hidden]) {
    min-height: 100%;
    height: 100%;
    width: 100%;
    max-width: none;
    align-self: stretch;
  }

  #screen-intro .quiz-card-area--intro,
  #screen-result .quiz-card-area--result,
  #screen-quiz .quiz-card-area {
    min-height: 0;
  }

  #screen-quiz.screen--quiz {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    column-gap: 125px;
    min-height: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
  }

  #screen-quiz .quiz-top {
    margin-bottom: 0;
    min-height: 0;
    padding: 0;
  }

  #screen-quiz .quiz-card-area {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0;
  }

  #screen-quiz .card-wrap {
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
  }

  #screen-quiz .quiz-bottom {
    margin-top: 0;
    padding: 0;
  }

  #screen-quiz .quiz-buttons--main {
    min-height: 5.25rem;
  }

  #screen-quiz .quiz-actions-row,
  #screen-quiz .quiz-actions-row--next,
  #screen-quiz.quiz-screen--answered #quiz-answer-actions,
  #screen-quiz.quiz-screen--answered #quiz-next-actions {
    transform: none;
  }

  #screen-intro .quiz-card-area--intro {
    justify-content: center;
  }

  #screen-intro .screen-intro__body {
    justify-content: center;
  }

  #feedback-card #feedback-explanation {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* Experience v2: hero и quiz — два состояния одного экрана, без scroll-driven анимации */
body.experience {
  min-height: 100dvh;
  overflow: hidden;
}

.experience-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.experience-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.experience-shell .hero,
.experience-shell .page-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  transition:
    opacity 360ms ease,
    visibility 360ms linear;
}

.experience-shell .page-content {
  overflow: auto;
  overscroll-behavior: contain;
}

.experience--landing .page-content,
.experience--transitioning .page-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experience--landing .hero,
.experience--transitioning .hero {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.experience--transitioning .hero {
  pointer-events: none;
}

.experience--quiz-active .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experience--quiz-active .page-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.experience-shell #screen-intro {
  display: none !important;
}

.experience-shell .page-content__inner {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.experience-shell .page-main {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 3rem 0;
  background: transparent;
}

.experience-shell .quiz-stage {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--maxw);
  min-height: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  transition: none;
}

.experience-shell .quiz-stage > .screen:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  max-width: min(40rem, 100%);
  min-height: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  align-self: stretch;
  padding: 0;
}

.experience-shell #screen-quiz:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  column-gap: 125px;
  height: 100%;
  overflow: hidden;
}

.experience-shell #screen-quiz .quiz-top {
  margin-bottom: 0;
}

.experience-shell #screen-quiz .quiz-card-area {
  min-height: 0;
}

.experience-shell #screen-quiz .card-wrap {
  margin: 0;
}

.experience-shell .quiz-stage .screen {
  background: transparent;
  border: none;
  box-shadow: none;
}

.experience-shell .site-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .experience-shell .page-main {
    padding: 3rem 2rem;
  }

  .experience-shell .quiz-stage {
    max-width: none;
  }

  .experience-shell .quiz-stage > .screen:not([hidden]) {
    max-width: none;
  }
}

/* Experience shell: hero и quiz живут как два состояния одного экрана, footer всегда снизу */
body.experience {
  min-height: 100dvh;
  overflow: hidden;
}

.experience-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
}

.experience-main {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.experience-shell .hero,
.experience-shell .page-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.experience-shell .hero,
.experience-shell .page-content {
  transition:
    opacity 360ms ease,
    visibility 360ms linear;
}

.experience-shell .hero {
  height: auto;
  min-height: 0;
}

.experience-shell .page-content {
  overflow: auto;
  overscroll-behavior: contain;
}

.experience--landing .page-content,
.experience--transitioning .page-content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experience--landing .hero,
.experience--transitioning .hero {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.experience--transitioning .hero {
  pointer-events: none;
}

.experience--quiz-active .hero {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.experience--quiz-active .page-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.experience-shell .page-content__inner {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.experience-shell .page-main {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.experience-shell .quiz-stage {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--maxw);
  min-height: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

.experience-shell .quiz-stage > .screen:not([hidden]) {
  flex: 1 1 auto;
  width: 100%;
  max-width: min(40rem, 100%);
  min-height: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  align-self: stretch;
}

.experience-shell #screen-intro {
  display: none !important;
}

.experience-shell .site-footer {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .experience-shell .page-main {
    padding: 3rem 2rem;
  }

  .experience-shell .quiz-stage {
    max-width: none;
    padding: 0;
  }

  .experience-shell .quiz-stage > .screen:not([hidden]) {
    max-width: none;
  }
}

/* Main + баннер: фон на всю ширину; ограничение колонки — как у .hero__inner */
.page-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 32%,
    rgba(255, 255, 255, 0.92) 58%,
    #fff 100%
  );
}

.page-content__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--page-inner-pad-y) 0 0;
  box-sizing: border-box;
}

.page-main {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Блок квиза: общая минимальная высота, сменяющиеся экраны заполняют её */
.quiz-stage {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  scroll-margin-top: 0;
  min-height: 0;
  height: auto;
  overflow: visible;
}

.quiz-stage > .screen:not([hidden]) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}

.quiz-stage .screen {
  box-shadow: none;
  border: none;
  background: transparent;
}

.screen {
  background: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 12rem;
}

/* Intro и result: та же сетка и min-height зоны, что у квиза */
#screen-intro.screen--quiz-layout,
#screen-result.screen--quiz-layout {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  min-height: 0;
}

#screen-intro .quiz-top--intro,
#screen-result .quiz-top--result {
  flex: 0 0 auto;
  margin-bottom: 0.75rem;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.screen-intro-count {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: normal;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  color: var(--hero-subtitle);
  letter-spacing: 0.04em;
}

#screen-intro .quiz-card-area--intro,
#screen-result .quiz-card-area--result {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 0;
}

#screen-result .quiz-card-area--result {
  flex: 0 0 auto;
}

#screen-intro .screen-intro__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0 0.5rem;
  text-align: center;
  gap: 1rem;
}

#screen-intro .screen-intro__actions {
  margin-top: 0;
  justify-content: center;
  width: 100%;
}

#screen-intro .screen-intro-lead {
  margin-bottom: 0;
}

#screen-intro #btn-start {
  width: 100%;
}

#screen-intro .quiz-bottom--intro,
#screen-result .quiz-bottom--result {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 1rem;
}

#screen-intro .quiz-bottom--intro .swipe-hint--invisible {
  margin-top: 0.9rem;
}

@media (min-width: 768px) {
  #screen-intro.screen--quiz-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60dvh;
  }

  #screen-intro .quiz-top--intro,
  #screen-intro .quiz-card-area--intro,
  #screen-intro .quiz-bottom--intro {
    width: 100%;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }

  #screen-intro .quiz-top--intro {
    min-height: 0;
    margin-bottom: 1.25rem;
  }

  #screen-intro .quiz-card-area--intro {
    flex: 0 0 auto;
    justify-content: center;
  }

  #screen-intro .screen-intro__body {
    padding: 0;
  }

  #screen-intro .quiz-bottom--intro {
    flex: 0 0 auto;
    margin-top: 1.25rem;
  }
}

/* Квиз и пояснение: одна сетка и те же размеры трёх зон */
#screen-quiz.screen--quiz,
#screen-quiz .quiz-top {
  flex: 0 0 auto;
  margin-bottom: 0.75rem;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

#screen-quiz.screen--quiz {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  column-gap: 125px;
  height: 100%;
  border-radius: 1.5rem;
  overflow: visible;
}

.page-bg__quiz-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition:
    opacity 280ms ease,
    visibility 280ms linear;
}

body.quiz-screen-active .page-bg__quiz-clouds {
  opacity: 1;
  visibility: visible;
  animation: quiz-clouds-drift 26s linear infinite alternate;
}

.page-bg__quiz-cloud {
  position: absolute;
  opacity: 0.78;
  user-select: none;
  -webkit-user-drag: none;
}

.page-bg__quiz-cloud--1 {
  top: 8%;
  left: 4%;
  width: clamp(14rem, 24vw, 22rem);
}

.page-bg__quiz-cloud--2 {
  top: 31%;
  right: 7%;
  width: clamp(12rem, 22vw, 20rem);
}

.page-bg__quiz-cloud--3 {
  bottom: 16%;
  left: 36%;
  width: clamp(14rem, 26vw, 24rem);
}

@keyframes quiz-clouds-drift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(5vw, -2.5vh, 0);
  }
}

#screen-quiz .quiz-card-area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  min-height: 45dvh;
}

@media (min-width: 768px) {
  #screen-quiz .quiz-card-area {
    min-height: 60dvh;
  }
}

#screen-quiz .card-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 0;
  width: 100%;
  align-self: stretch;
}

#screen-quiz .card-wrap {
  flex: 0 0 auto;
}

.quiz-card-stack {
  display: grid;
  width: 100%;
  align-items: start;
  max-width: min(40rem, 100%);
}

.quiz-card-stack > #quiz-card,
.quiz-card-stack > .quiz-feedback-inline {
  grid-area: 1 / 1;
}

.quiz-feedback-inline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 360ms ease;
  z-index: 1;
}

#screen-quiz.quiz-screen--answered .quiz-feedback-inline {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#screen-quiz .quiz-bottom {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 1rem;
  max-width: min(40rem, 100%);
}

#screen-quiz .quiz-buttons--main {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  gap: 1rem;
}

#screen-quiz .swipe-hint {
  margin-top: 0.9rem;
  margin-bottom: 0;
  min-height: calc(0.8rem * 1.5);
  transition: opacity 220ms ease;
}

.swipe-hint--invisible {
  visibility: hidden;
  user-select: none;
}

#screen-quiz.quiz-screen--answered #quiz-swipe-hint {
  opacity: 0;
}

/* Результат — колонка и кнопки снизу */
#screen-result {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: min(40rem, 100%);
}

#screen-result {
  overflow: visible;
}

#screen-result .result-actions {
  margin-top: 0;
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

#screen-result .screen-result__body {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-height: auto;
  padding: 0 0.5rem;
  text-align: center;
  gap: 1rem;
}

#screen-result .quiz-top--result {
  margin-bottom: 2rem;
}

#screen-result .quiz-top--result h1 {
  margin-bottom: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: normal;
  line-height: 0.95;
  color: var(--text);
  cursor: default;
}

#screen-result #result-score,
#screen-result #result-tier-message,
#screen-result .result-partner,
#screen-result .result-form-panel,
#screen-result .screen-result__lead,
#screen-result .lead-form {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

#screen-result .result-form-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(252, 128, 28, 0.1);
  border-radius: 1.5rem;
}

#screen-result .screen-result__lead {
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--text);
  cursor: default;
}

#screen-result #result-score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: normal;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.02em;
  cursor: default;
}

#screen-result[data-result-tone='warm'] .quiz-top--result h1 {
  color: #d5a31a;
}

#screen-result[data-result-tone='mid'] .quiz-top--result h1 {
  color: #77a63a;
}

#screen-result[data-result-tone='strong'] .quiz-top--result h1 {
  color: var(--truth);
}

#screen-result #result-tier-message p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  white-space: break-spaces;
}

#screen-result .result-partner {
  align-self: center;
  margin-top: 0.25rem;
  margin-bottom: 2rem;
  cursor: pointer;
  user-select: none;
}

#screen-result .lead-form {
  margin-top: 0;
  text-align: left;
}

#screen-result .result-actions {
  width: 100%;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

#screen-result .lead-form input:not([type='checkbox']) {
  max-width: none;
  min-height: 3.75rem;
  padding: 0.9rem 1rem;
  font-size: 1.1rem;
  border-radius: 0.875rem;
}

#screen-result .consent {
  text-align: left;
}

#screen-result .quiz-bottom--result {
  display: none;
}

.screen[hidden] {
  display: none !important;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.subtitle {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.consent {
  margin: 1rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.consent input {
  margin: 0;
  align-self: flex-start;
}

.consent--form {
  display: flex;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
}

.consent--form input {
  flex: 0 0 auto;
  margin: 0;
}

.consent--form span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

button,
.btn {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius-ui);
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  letter-spacing: 0.05em;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:disabled {
  cursor: default;
  opacity: 0.8;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  border-color: rgba(252, 128, 28, 0.32);
  cursor: pointer;
  user-select: none;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(252, 128, 28, 0.52);
  color: var(--accent-hover);
}

.btn-secondary:disabled {
  cursor: default;
  opacity: 0.8;
}

.btn-myth {
  background: var(--myth);
  border-color: var(--myth);
  color: #fff;
}

.btn-truth {
  background: var(--truth);
  border-color: var(--truth);
  color: #fff;
}

.btn-myth:hover:not(:disabled) {
  background: var(--myth);
  border-color: var(--myth);
  color: #fff;
}

.btn-truth:hover:not(:disabled) {
  background: var(--truth);
  border-color: var(--truth);
  color: #fff;
}

/* Фирменный шрифт: миф / правда / далее — одинаковая строка кнопок */
#btn-myth,
#btn-truth,
#btn-feedback-next,
#btn-review-prev,
#btn-review-next {
  font-family: var(--font-display);
  font-weight: normal;
}

.quiz-buttons--main #btn-myth,
.quiz-buttons--main #btn-truth,
.quiz-buttons--main #btn-feedback-next {
  flex: 1 1 0;
  min-width: 0;
  font-size: clamp(1.25rem, 3.8vw, 1.65rem);
  line-height: 1.1;
  cursor: pointer;
  user-select: none;
}

.quiz-buttons--main #btn-myth,
.quiz-buttons--main #btn-truth {
  padding: 1.5rem 1.5rem;
}

.quiz-buttons--main #btn-feedback-next {
  padding: 1.15rem 1.5rem;
}

#btn-myth,
#btn-truth {
  border-radius: 1rem;
}

.quiz-top {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.quiz-top__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.quiz-top__progress-group {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: visible;
  overflow-y: visible;
}

.quiz-runner {
  width: 100%;
  margin-top: 0.35rem;
  overflow-x: visible;
  overflow-y: visible;
}

#screen-quiz .quiz-top {
  overflow-x: visible;
  overflow-y: visible;
}

#screen-quiz .quiz-top,
#screen-quiz .quiz-bottom {
  position: relative;
  z-index: 6;
}

.quiz-runner__track {
  --quiz-runner-steps: 14;
  --quiz-runner-size: min(9dvh, 5.25rem);
  --quiz-runner-overlap: calc(var(--quiz-runner-size) * 0.2);
  --quiz-runner-tail-space: 1.15rem;
  --quiz-runner-ticket-h: min(4.25rem, 11dvh);
  --quiz-runner-ticket-max-w: min(36vw, 6rem);
  --quiz-runner-stone-scale: 0.6;
  /* Пропорции ассетов:
     панда 243x243, тайл травы 310x84, камень (1 кадр) 131x162 */
  --quiz-runner-grass-w: calc(var(--quiz-runner-size) * 310 / 243);
  --quiz-runner-grass-h: calc(var(--quiz-runner-grass-w) * 84 / 310);
  --quiz-runner-stone-w: calc(var(--quiz-runner-grass-w) * 131 / 310 * var(--quiz-runner-stone-scale));
  --quiz-runner-stone-h: calc(var(--quiz-runner-stone-w) * 162 / 131);
  position: relative;
  width: 100%;
  height: calc(
    var(--quiz-runner-size) +
    (var(--quiz-runner-grass-h) - var(--quiz-runner-overlap)) +
    var(--quiz-runner-tail-space)
  );
  /*
    overflow-x: hidden ломает overflow-y: visible (в треке Y становится auto и прыжок режется).
    Перекрытие по X даёт clip — вертикаль остаётся visible.
  */
  overflow-x: clip;
  overflow-y: visible;
}

.quiz-runner__world {
  position: relative;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: var(--quiz-runner-world-w, 100%);
  min-width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  z-index: 0;
}

.quiz-runner__stones {
  position: absolute;
  left: 0;
  bottom: 10%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: calc(var(--quiz-runner-grass-h) + var(--quiz-runner-stone-h));
  z-index: 1;
  pointer-events: none;
}

.quiz-runner__tickets {
  position: absolute;
  right: 0;
  bottom: 10%;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.5);
  transition:
    opacity 320ms ease,
    transform 320ms ease,
    visibility 0ms linear 320ms;
}

.quiz-runner__tickets.quiz-runner__tickets--visible {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    visibility 0ms linear 0ms;
}

@media (hover: hover) and (pointer: fine) {
  .quiz-runner__tickets.quiz-runner__tickets--visible {
    pointer-events: auto;
    cursor: pointer;
  }
}

.quiz-runner__tickets.quiz-runner__tickets--picked {
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.quiz-runner__tickets.quiz-runner__tickets--pulsing {
  animation: quiz-runner-tickets-pulse 1400ms ease-in-out infinite;
}

@keyframes quiz-runner-tickets-pulse {
  0% {
    transform: scale(0.45);
  }
  50% {
    transform: scale(0.55);
  }
  100% {
    transform: scale(0.45);
  }
}

.quiz-runner__tickets-img {
  display: block;
  margin: 0;
  padding: 0;
  width: auto;
  height: var(--quiz-runner-ticket-h);
  max-width: var(--quiz-runner-ticket-max-w);
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.quiz-runner__stone {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: var(--quiz-runner-stone-w);
  height: var(--quiz-runner-stone-h);
  background-image: url('/static/na-odnom-dyhanii/images/partners/stone.webp');
  background-repeat: no-repeat;
  background-size: 400% 100%;
  background-position: var(--quiz-runner-stone-sprite-x, 0%) bottom;
  opacity: 0.95;
}

.quiz-runner__grass {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--quiz-runner-grass-h);
  background-image: url('/static/na-odnom-dyhanii/images/partners/gras-tile.webp');
  background-repeat: repeat-x;
  background-size: var(--quiz-runner-grass-w) var(--quiz-runner-grass-h);
  background-position: center bottom;
  z-index: 3;
  pointer-events: none;
}

.quiz-runner__panda {
  position: absolute;
  left: 0;
  bottom: calc(var(--quiz-runner-grass-h) - var(--quiz-runner-overlap));
  width: var(--quiz-runner-size);
  height: var(--quiz-runner-size);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  z-index: 6;
  pointer-events: none;
}

.quiz-runner__sprite {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('/static/na-odnom-dyhanii/images/partners/pspritesheet.webp');
  background-repeat: no-repeat;
  background-size: 500% 200%;
  background-position: 0% 0%;
  image-rendering: auto;
  will-change: background-position;
}

.quiz-top__restart {
  display: none;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  border-radius: 1.125rem;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.card-wrap {
  touch-action: pan-y;
  user-select: none;
  margin: 1rem 0;
}

#screen-quiz .card-wrap {
  margin: 0;
}

#quiz-card,
#feedback-card.quiz-card {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: var(--quiz-card-min-h);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
  box-shadow: var(--shadow-card);
}

#quiz-card {
  background-color: #fff;
  background-image: url('/static/na-odnom-dyhanii/images/quiz/paper.webp');
  background-size: var(--paper-tile-size) var(--paper-tile-size);
  background-repeat: repeat;
  height: fit-content;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1.5rem;
  cursor: grab;
  touch-action: pan-y;
  will-change: transform;
  z-index: 2;
}

#quiz-card:active {
  cursor: grabbing;
}

.card-question-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  flex: 0 0 auto;
}

#feedback-card.quiz-card--feedback {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  cursor: default;
  will-change: auto;
}

#feedback-card.quiz-card--feedback:active {
  cursor: default;
}

#card-question-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#feedback-card #feedback-explanation {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  line-height: 1.55;
  width: 100%;
  background: transparent;
  white-space: break-spaces;
  text-align: justify;
}

#feedback-media-frame {
  display: none;
  width: 100%;
  margin: 0;
  flex: 0 0 auto;
}

#feedback-question-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#feedback-question-text {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.25;
  color: var(--text);
  text-align: left;
  letter-spacing: 0.045em;
}

#feedback-card #feedback-explanation .inline-note-ref {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.15rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: super;
  text-decoration: underline;
  text-underline-offset: 0.08em;
  cursor: pointer;
}

#feedback-card #feedback-explanation .inline-note-ref:hover,
#feedback-card #feedback-explanation .inline-note-ref:focus-visible {
  color: var(--accent-hover);
}

.inline-note-popover {
  position: fixed;
  z-index: 80;
  max-width: min(34rem, calc(100vw - 1rem));
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  word-break: break-word;
}

.inline-note-popover--promo {
  max-width: min(32rem, calc(100vw - 1rem));
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.inline-note-popover--promo .hero-promo__ticket--popover {
  transform: scale(0.75);
  transform-origin: center right;
  animation: promo-ticket-popover-enter 180ms ease;
}

@keyframes promo-ticket-popover-enter {
  from {
    opacity: 0;
    transform: translate3d(0.75rem, 0, 0) scale(0.7);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.75);
  }
}

.inline-note-popover__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.inline-note-popover__link {
  display: inline-flex;
  margin-top: 0.65rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
}

.inline-note-popover__link:hover {
  color: var(--accent-hover);
}

#feedback-card .sources-block {
  margin: 1.25rem 0 0;
}

#quiz-progress,
#feedback-progress {
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  letter-spacing: 0.03em;
  color: var(--hero-subtitle);
  cursor: default;
}

#card-question-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: normal;
  margin: 0;
  text-align: center;
  width: 100%;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: 0.045em;
}

.swipe-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.swipe-hint--feedback-next {
  min-height: calc(0.8rem * 1.5);
  padding: 0;
  margin-top: 0.9rem;
  user-select: none;
  touch-action: auto;
  cursor: default;
}

.swipe-hint--feedback-next:active {
  cursor: default;
}

.quiz-buttons {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.quiz-buttons--main {
  flex-wrap: nowrap;
  align-items: stretch;
}

.quiz-actions-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.quiz-actions-row {
  grid-area: 1 / 1;
  display: flex;
  gap: 1rem;
  width: 100%;
  transition:
    opacity 260ms ease,
    transform 320ms ease;
}

.quiz-actions-row--next {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.65rem);
}

.quiz-actions-row--review {
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.65rem);
  justify-content: stretch;
}

.quiz-actions-row--review > button {
  flex: 1 1 0;
  min-width: 0;
}

#screen-quiz.quiz-screen--answered #quiz-answer-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.45rem);
}

#screen-quiz.quiz-screen--answered #quiz-next-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#screen-quiz.quiz-screen--review #quiz-answer-actions,
#screen-quiz.quiz-screen--review #quiz-next-actions {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.45rem);
}

#screen-quiz.quiz-screen--review #quiz-review-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#screen-quiz.quiz-screen--review .quiz-card-area {
  justify-content: flex-start;
  gap: 0;
}

#screen-quiz.quiz-screen--review .card-wrap {
  align-items: flex-start;
  justify-content: flex-start;
}

#screen-quiz.quiz-screen--review .quiz-card-stack {
  display: block;
  align-items: stretch;
}

#screen-quiz.quiz-screen--review #quiz-card {
  cursor: default;
}

#screen-quiz.quiz-screen--review #quiz-card #card-question-text {
  display: none;
}

#screen-quiz.quiz-screen--review #quiz-card {
  box-shadow: none;
  padding: 0;
  background: none;
  pointer-events: none;
}

#screen-quiz.quiz-screen--review .quiz-feedback-inline {
  order: 1;
}

#screen-quiz.quiz-screen--review .quiz-feedback-inline {
  width: 100%;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

#screen-quiz.quiz-screen--review #feedback-card #feedback-explanation,
#screen-quiz.quiz-screen--answered:not(.quiz-screen--review) #feedback-card #feedback-explanation {
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 0.9rem;
}

#screen-quiz.quiz-screen--review .feedback-head,
#screen-quiz.quiz-screen--answered:not(.quiz-screen--review) .feedback-head {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#screen-quiz.quiz-screen--review .sources-block,
#screen-quiz.quiz-screen--answered:not(.quiz-screen--review) .sources-block {
  margin-top: 0.9rem;
}

#screen-quiz.quiz-screen--review .source-tag,
#screen-quiz.quiz-screen--answered:not(.quiz-screen--review) .source-tag {
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
}

#screen-quiz.quiz-screen--review .quiz-top__row {
  justify-content: space-between;
  align-items: flex-start;
}

#screen-quiz.quiz-screen--review .quiz-top__restart {
  display: inline-flex;
}

#screen-quiz.quiz-screen--review .quiz-runner {
  display: none;
}

#screen-quiz.quiz-screen--review #quiz-swipe-hint {
  display: none;
}

#screen-quiz.quiz-screen--answer-settled:not(.quiz-screen--review) #quiz-card {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  #screen-quiz.quiz-screen--review #feedback-card #feedback-explanation,
  #screen-quiz.quiz-screen--answered:not(.quiz-screen--review) #feedback-card #feedback-explanation {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  #screen-quiz.quiz-screen--review .feedback-head,
  #screen-quiz.quiz-screen--answered:not(.quiz-screen--review) .feedback-head {
    font-size: 1.65rem;
  }

  #feedback-question-text {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: 0.045em;
  }

  .page-bg__quiz-cloud {
    opacity: 0.72;
  }

  .page-bg__quiz-cloud--1 {
    top: 10%;
    width: clamp(11rem, 42vw, 15rem);
  }

  .page-bg__quiz-cloud--2 {
    top: 35%;
    width: clamp(10rem, 38vw, 14rem);
  }

  .page-bg__quiz-cloud--3 {
    bottom: 20%;
    left: 24%;
    width: clamp(11.5rem, 44vw, 16rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg__quiz-clouds {
    animation: none !important;
  }

  .page-bg__quiz-cloud {
    animation: none !important;
  }
}

.feedback-head {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 8vw, 3rem);
  font-weight: normal;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  display: block;
  text-align: left;
  width: 100%;
}

#feedback-card.feedback--result-correct .feedback-head {
  color: var(--truth);
}

#feedback-card.feedback--result-incorrect .feedback-head {
  color: var(--feedback-wrong);
}

.sources-block {
  margin: 1.25rem 0 0;
}

.sources-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.sources-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.source-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  background: #e8e8e6;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.3;
  max-width: 100%;
}

.source-tag--plain {
  cursor: default;
}

.source-tag:hover {
  background: #dededc;
  color: var(--text);
}

.source-tag__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-tag__icon {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  display: block;
}

.source-note-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.source-note-trigger:hover,
.source-note-trigger:focus-visible {
  border-color: rgba(0, 0, 0, 0.2);
  color: var(--text);
}

.source-note {
  display: none;
  flex: 1 1 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-line;
}

.source-item.is-note-open .source-note {
  display: block;
}

.result-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#btn-to-form {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.02em;
  border-radius: 1rem;
  padding: 1.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  border: none;
  user-select: none;
}

#btn-to-form:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.65);
  color: var(--accent-hover);
}

#btn-to-form.is-ready {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

#btn-to-form.is-ready:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

@media (min-width: 768px) {
  #btn-to-form {
    font-size: 2rem;
  }

  #screen-result #result-score {
    max-width: none;
  }

  .site-footer {
    justify-content: flex-start;
  }

  .site-footer__disclaimer {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 0.75rem;
    background: rgba(0, 0, 0, 0.1);
  }

  .site-footer__disclaimer p + p {
    margin-top: 0;
  }

  .site-footer__row {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .site-footer__row a {
    padding: 0.25rem 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
  }

  .site-footer__row a:last-child {
    border-right: none;
    padding-right: 0.5rem;
  }

  .site-footer {
    font-size: 1.5rem;
  }

  .site-footer__disclaimer {
    font-size: 0.9rem;
  }
}

.result-partner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns:
    calc(var(--partner-logo-h) * 149 / 58)
    minmax(0, 1fr)
    calc(var(--partner-logo-h) * 149 / 58);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 1rem;
  background: linear-gradient(135deg, #ff9c4f 0%, var(--accent) 100%);
  text-decoration: none;
  color: #fff;
  align-self: center;
  justify-content: stretch;
  max-width: 32rem;
  box-sizing: border-box;
  box-shadow: 0 1rem 2.25rem rgba(252, 128, 28, 0.24);
  cursor: pointer;
  user-select: none;
}

.result-partner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 55% 100%;
  background-repeat: no-repeat;
  background-position: 0% 50%;
  animation: hero-promo-shine 4.6s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.result-partner > * {
  position: relative;
  z-index: 2;
}

.result-partner:hover {
  border-color: var(--accent-hover);
  background: linear-gradient(135deg, #ffab66 0%, var(--accent-hover) 100%);
  color: #fff;
}

.result-partner__text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: normal;
  line-height: 1.05;
  text-align: center;
  letter-spacing: 0.02em;
  white-space: break-spaces;
}

.result-partner__logo {
  flex-shrink: 0;
  width: calc(var(--partner-logo-h) * 149 / 58);
  height: var(--partner-logo-h);
  max-width: none;
  display: block;
  object-fit: contain;
}

.result-partner__icon-slot {
  width: calc(var(--partner-logo-h) * 149 / 58);
  min-width: calc(var(--partner-logo-h) * 149 / 58);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.result-partner__icon {
  flex-shrink: 0;
  margin-left: 0;
  color: #fff;
}

.result-partner__label {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-rules-link {
  color: var(--accent);
  text-decoration: underline;
}

.form-rules-link:hover {
  color: var(--accent-hover);
}

.lead-form label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--muted);
}

.result-form-consents {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.25rem;
}

.lead-form input {
  width: 100%;
  max-width: 24rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-ui);
  font: inherit;
  margin-bottom: 1rem;
  outline: 0;
}

#screen-result .lead-form .consent--form {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  font-size: 0.9rem;
  line-height: 1.45;
  gap: 0;
  margin: 0;
}

#screen-result .lead-form .consent--form input[type='checkbox'] {
  flex: 0 0 auto;
  width: calc(0.9rem * 1.45);
  min-width: calc(0.9rem * 1.45);
  max-width: none;
  height: calc(0.9rem * 1.45);
  min-height: 0;
  margin: 0 0.5rem;
  align-self: start;
}

#screen-result .lead-form .consent--form span {
  display: block;
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
  line-height: inherit;
  align-self: start;
}

.lead-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border-top: 1px solid #d8d8d4;
  font-size: 0.85rem;
  color: var(--muted);
  transition:
    color 260ms ease,
    background-color 260ms ease,
    border-color 260ms ease;
}

.site-footer__inner {
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  border-radius: 2rem;
  overflow: hidden;
  background: #3f8f57;
}

.site-footer__row {
  width: 100%;
  margin: 0;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-footer__row a {
  color: var(--hero-subtitle);
  text-decoration: underline;
  transition: color 260ms ease;
}

.site-footer__row a:hover {
  color: var(--text);
}

.site-footer__corner {
  margin: 0;
  flex: 0 0 auto;
  max-width: 14rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  text-align: right;
  transition: color 260ms ease;
}

.site-footer__disclaimer {
  width: 100%;
  margin: 0;
  padding: 2rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: color 260ms ease;
}

.site-footer__disclaimer p {
  margin: 0;
}

.site-footer__disclaimer p + p {
  margin-top: 0.7rem;
}

.experience--landing .site-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  z-index: 3;
  background: transparent;
  border-top-color: transparent;
  color: rgba(255, 255, 255, 0.82);
}

.experience--landing .site-footer__row a,
.experience--landing .site-footer__corner,
.experience--landing .site-footer__disclaimer {
  color: #fff;
}

.experience--landing .site-footer__inner {
  background: #3f8f57;
}

.experience:not(.experience--landing) .site-footer__inner,
.experience:not(.experience--landing) .site-footer__row {
  background: transparent;
}

.experience--landing .site-footer__row a:hover {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 767px) {
  .page-content__inner {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .page-main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 3rem 2rem;
    box-sizing: border-box;
  }

  .quiz-stage {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    margin: 0;
    transition: none;
  }

  .quiz-stage > .screen:not([hidden]) {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    max-width: none;
    min-height: 0;
    height: auto;
    margin: 0;
    align-self: stretch;
    padding: 0;
  }

  #screen-quiz.screen--quiz {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 24px;
    column-gap: 125px;
    min-height: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }

  #screen-quiz .quiz-top {
    flex: none;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  #screen-quiz .quiz-card-area {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  #screen-quiz .card-wrap {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin: 0;
  }

  .quiz-card-stack {
    align-items: stretch;
  }

  #screen-quiz .quiz-bottom {
    flex: none;
    width: 100%;
    margin: 0;
    padding: 0;
    align-self: end;
  }

  #screen-quiz .quiz-buttons--main {
    width: 100%;
    min-height: 5.25rem;
    gap: 1rem;
  }

  #screen-quiz .quiz-actions-stack {
    width: 100%;
  }

  #screen-quiz .quiz-actions-row,
  #screen-quiz .quiz-actions-row--next,
  #screen-quiz.quiz-screen--answered #quiz-answer-actions,
  #screen-quiz.quiz-screen--answered #quiz-next-actions {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 5.25rem;
  }

  .quiz-buttons--main #btn-myth,
  .quiz-buttons--main #btn-truth,
  .quiz-buttons--main #btn-feedback-next {
    font-size: 2rem;
  }

  #btn-myth,
  #btn-truth,
  #btn-feedback-next,
  #btn-review-prev,
  #btn-review-next {
    border-radius: 1rem;
  }

  #btn-myth,
  #btn-truth {
    border-radius: 1rem;
  }

  #quiz-next-actions {
    display: flex;
    align-items: stretch;
  }

  #btn-feedback-next {
    flex: 1 1 auto;
    width: 100%;
  }

  #screen-quiz .swipe-hint {
    margin-top: 0.9rem;
    margin-bottom: 0;
  }

  #feedback-card #feedback-explanation {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* Experience v2 final overrides: click-only hero -> quiz transition */
body.experience {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.experience-shell {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100dvh;
}

.experience-main {
  position: relative;
  min-height: 100dvh;
}

.experience-shell .hero,
.experience-shell .page-content {
  width: 100%;
  min-height: 100dvh;
}

.experience-shell .page-content {
  display: none;
  overflow: visible;
}

.experience--landing .hero,
.experience--transitioning .hero {
  display: flex;
}

.experience--landing .page-content,
.experience--transitioning .page-content {
  display: none;
}

.experience--quiz-active .hero {
  display: none;
}

.experience--quiz-active .page-content {
  display: block;
}

.experience-shell #screen-intro {
  display: none !important;
}

.experience-shell .page-content__inner {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  height: auto;
  padding: 0;
}

.experience-shell .page-main {
  display: flex;
  width: 100%;
  min-height: 100dvh;
  height: auto;
  padding: 3rem 0;
  background: transparent;
}

.experience-shell .quiz-stage {
  display: flex;
  width: 100%;
  max-width: var(--maxw);
  min-height: calc(100dvh - 6rem);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  transition: none;
}

.experience-shell .quiz-stage > .screen:not([hidden]) {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(40rem, 100%);
  min-height: calc(100dvh - 6rem);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  align-self: stretch;
  padding: 0;
}

.experience-shell #screen-quiz:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  column-gap: 125px;
  min-height: calc(100dvh - 6rem);
  overflow: hidden;
}

.experience-shell #screen-quiz .quiz-top {
  margin-bottom: 0;
}

.experience-shell #screen-quiz .quiz-card-area {
  min-height: 0;
}

.experience-shell #screen-quiz .card-wrap {
  margin: 0;
}

.experience-shell .quiz-stage .screen {
  background: transparent;
  border: none;
  box-shadow: none;
}

.experience-shell .site-footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .experience-shell .page-main {
    padding: 3rem 2rem;
  }

  .experience-shell .quiz-stage {
    max-width: none;
    min-height: calc(100dvh - 6rem);
  }

  .experience-shell .quiz-stage > .screen:not([hidden]) {
    max-width: none;
    min-height: calc(100dvh - 6rem);
  }
}

/* Experience v3: body = stage + footer */
body.experience {
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.experience-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
}

.experience-stage .hero,
.experience-stage .page-content {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.experience-stage .page-content,
.experience-stage .success-screen {
  display: none;
}

.experience-stage .page-content {
  overflow: auto;
}

.experience--landing .experience-stage .hero,
.experience--transitioning .experience-stage .hero {
  display: flex;
}

.experience--landing .experience-stage .page-content,
.experience--transitioning .experience-stage .page-content {
  display: none;
}

.experience--quiz-active .experience-stage .hero {
  display: none;
}

.experience--quiz-active .experience-stage .page-content {
  display: block;
}

.experience--success-active .experience-stage .hero,
.experience--success-active .experience-stage .page-content {
  display: none;
}

.experience--success-active .experience-stage .success-screen {
  display: flex;
}

.experience--success-active .page-bg__grass {
  bottom: -8vh;
}

.experience--success-active .page-bg__panda-slot {
  right: -8vw;
  bottom: -14vh;
}

.experience-stage #screen-intro {
  display: none !important;
}

.experience-stage .page-content__inner {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.experience-stage .page-main {
  display: flex;
  width: 100%;
  min-height: 100%;
  height: 100%;
  padding: 3rem 0;
  background: transparent;
}

.experience-stage .quiz-stage {
  display: flex;
  flex: 1 1 auto;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  transition: none;
}

.experience-stage .quiz-stage > .screen:not([hidden]) {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  align-self: stretch;
  padding: 0;
}

.experience--result-view .experience-stage .page-content__inner,
.experience--result-view .experience-stage .page-main,
.experience--result-view .experience-stage .quiz-stage {
  min-height: 0;
  height: auto;
}

.experience--result-view .experience-stage .page-main,
.experience--result-view .experience-stage .quiz-stage {
  display: block;
}

.experience--result-view .experience-stage .quiz-stage > .screen:not([hidden]) {
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  align-self: auto;
}

.experience-stage #screen-quiz:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  column-gap: 125px;
  height: 100%;
  overflow: hidden;
}

body.experience--quiz-active:not(.experience--result-view) .experience-stage #screen-quiz:not([hidden]) {
  overflow-x: clip;
  overflow-y: visible;
}

.experience-stage #screen-quiz .quiz-top {
  margin-bottom: 0;
}

.experience-stage #screen-quiz .quiz-card-area {
  min-height: 0;
}

.experience-stage #screen-quiz .card-wrap {
  margin: 0;
}

.experience-stage .quiz-stage .screen {
  background: transparent;
  border: none;
  box-shadow: none;
}

.success-screen {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
}

.success-screen__inner {
  width: 100%;
  max-width: min(38rem, 100%);
  margin: 0 auto;
}

.success-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.success-screen__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--hero-subtitle);
  cursor: default;
}

.success-screen__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: normal;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.95;
  color: var(--hero-title);
  cursor: default;
}

.success-screen__text {
  width: 100%;
  max-width: 32rem;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
}

.success-screen__actions {
  width: 100%;
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.success-screen__secondary-action {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--hero-subtitle);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.success-screen__secondary-action:hover {
  color: var(--text);
}

.success-screen__link {
  color: var(--hero-subtitle);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.success-screen__link:hover {
  color: var(--text);
}

.experience--result-view .experience-stage {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

.experience--result-view .experience-stage .page-content {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

.experience--quiz-active:not(.experience--result-view) .experience-stage {
  overflow: visible;
}

.experience--quiz-active:not(.experience--result-view) .experience-stage .page-content__inner,
.experience--quiz-active:not(.experience--result-view) .experience-stage .page-main,
.experience--quiz-active:not(.experience--result-view) .experience-stage .quiz-stage,
.experience--quiz-active:not(.experience--result-view) .experience-stage .quiz-stage > .screen:not([hidden]) {
  height: 100%;
  min-height: 0;
}

.experience--result-view .experience-stage .page-content__inner,
.experience--result-view .experience-stage .page-main,
.experience--result-view .experience-stage .quiz-stage,
.experience--result-view .experience-stage .quiz-stage > .screen:not([hidden]) {
  height: auto;
  min-height: 0;
}

.experience--success-active .experience-stage {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

.experience--success-active .experience-stage .success-screen {
  position: relative;
  inset: auto;
  min-height: 100dvh;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz.screen--quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  column-gap: 125px;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-top {
  margin: 0;
  max-width: min(40rem, 100%);
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-card-area {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1rem;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-card-area::-webkit-scrollbar {
  display: none;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-card-area-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-radius: 0 0 1rem 1rem;
  overflow-x: hidden;
  overflow-y: hidden;
  z-index: 1;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-card-area-frame .quiz-card-area {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz:not(.quiz-screen--answered):not(.quiz-screen--review) {
  overflow: visible;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz:not(.quiz-screen--answered):not(.quiz-screen--review) .quiz-card-area-frame,
.experience--quiz-active:not(.experience--result-view) #screen-quiz:not(.quiz-screen--answered):not(.quiz-screen--review) .quiz-card-area {
  overflow-x: hidden;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz.quiz-screen--answered,
.experience--quiz-active:not(.experience--result-view) #screen-quiz.quiz-screen--review {
  overflow-x: clip;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz.quiz-screen--answered .quiz-card-area-frame,
.experience--quiz-active:not(.experience--result-view) #screen-quiz.quiz-screen--review .quiz-card-area-frame {
  overflow-x: hidden;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz.quiz-screen--answered .quiz-card-area,
.experience--quiz-active:not(.experience--result-view) #screen-quiz.quiz-screen--review .quiz-card-area {
  overflow-x: hidden;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .card-wrap {
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-bottom {
  margin: 0;
}

.quiz-card-overflow-hint {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5rem;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition:
    opacity 200ms ease,
    transform 220ms ease;
}

.quiz-card-overflow-hint--top {
  top: 0;
  transform: translate3d(0, -100%, 0);
  background: linear-gradient(
    to top,
    rgba(237, 249, 255, 0) 0%,
    rgba(237, 249, 255, 0.82) 55%,
    #edf9ff 100%
  );
}

.quiz-card-overflow-hint--bottom {
  bottom: 0;
  transform: translate3d(0, 100%, 0);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.82) 55%,
    #fff 100%
  );
}

#screen-quiz .quiz-card-area-frame.quiz-card-area--overflow-start .quiz-card-overflow-hint--top {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#screen-quiz .quiz-card-area-frame.quiz-card-area--overflowing:not(.quiz-card-area--overflow-end) .quiz-card-overflow-hint--bottom {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

#screen-quiz:not(.quiz-screen--answered):not(.quiz-screen--review) .quiz-card-overflow-hint {
  display: none;
}

@media (max-width: 767px) {
  .experience--quiz-active:not(.experience--result-view) #screen-quiz.screen--quiz {
    height: 100%;
    min-height: 0;
  }

  .experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-card-area-frame {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  .experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-card-area {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .experience--quiz-active:not(.experience--result-view) #screen-quiz .quiz-bottom {
    flex: 0 0 auto;
    margin: 0;
  }

  .experience--result-view .experience-stage {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .experience--result-view .experience-stage .page-content {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .experience--result-view .experience-stage .page-content__inner,
  .experience--result-view .experience-stage .page-main,
  .experience--result-view .experience-stage .quiz-stage,
  .experience--result-view .experience-stage .quiz-stage > .screen:not([hidden]) {
    height: auto;
    min-height: 0;
  }

  .experience-stage .page-main {
    padding: 1rem;
  }

  .experience--result-view .experience-stage .page-main {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .site-footer__row {
    margin: 0;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__row {
    gap: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .experience:not(.experience--landing) .site-footer__inner,
  .experience:not(.experience--landing) .site-footer__row {
    background: transparent;
  }

  .site-footer__row a {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
  }

  .site-footer__disclaimer {
    margin-top: 0;
    padding: 2rem;
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .experience-stage .quiz-stage {
    max-width: none;
  }

  .experience-stage .quiz-stage > .screen:not([hidden]) {
    max-width: none;
  }

  .quiz-top__row {
    justify-content: space-between;
    gap: 0.75rem;
  }

  .quiz-top__restart {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }

  .quiz-runner__track {
    --quiz-runner-size: 7.5dvh;
    --quiz-runner-tail-space: calc(var(--quiz-runner-size) * 0.18);
    --quiz-runner-ticket-h: calc(var(--quiz-runner-size) * 0.9);
    --quiz-runner-ticket-max-w: calc(var(--quiz-runner-ticket-h) * 1.4);
  }

  .success-screen {
    padding: 3rem 2rem;
  }

  .success-screen__title {
    font-size: 3rem;
    line-height: 0.95;
  }

  .success-screen__text {
    font-size: 1rem;
  }

  #screen-result .quiz-top--result {
    margin-bottom: 0.75rem;
  }

  #screen-result .screen-result__body {
    padding: 0;
    gap: 1rem;
  }

  #screen-result #result-score {
    font-size: 1.55rem;
  }

  #screen-result #result-tier-message p {
    font-size: 1rem;
  }

  #screen-quiz.quiz-screen--review .quiz-top {
    margin-bottom: 0.75rem;
  }

  #screen-result .quiz-top--result {
    margin-bottom: 0.75rem;
  }

  .experience--success-active .page-bg__grass {
    bottom: -10vh;
  }

  .experience--success-active .page-bg__panda-slot {
    right: -10vw;
    bottom: -16vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-partner::after {
    animation: none;
    opacity: 0;
  }
}

.result-error {
  margin: 10px 0 0;
  cursor: default;
  font-size: 15px;
  line-height: 20px;
  color: red;
  white-space: break-spaces;
}
