:root {
  color-scheme: light;
  --ink: #11100f;
  --paper: #f4f1ec;
  --gold: #b88a38;
  --line: rgba(17, 16, 15, 0.17);
  --serif: Didot, "Bodoni 72", "Bodoni MT", Baskerville, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

button, a { font: inherit; }
button { color: inherit; }

button,
a,
.swipe-card {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

h1:focus { outline: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem;
  text-align: center;
}

.brand-header {
  position: relative;
  z-index: 20;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 5.5vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand-header--dark {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
  backdrop-filter: blur(6px);
}

.brand-wordmark {
  display: block;
  flex: 0 0 auto;
  padding: 0.35rem 0;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.brand-logo {
  display: block;
  width: clamp(150px, 16vw, 220px);
  height: auto;
  object-fit: contain;
}

.brand-collection {
  order: -1;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: left;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.intro-view {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f7f7f7;
}

.intro-hero {
  min-height: calc(100svh - 138px);
  min-height: calc(100dvh - 138px);
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  padding: clamp(3rem, 7vw, 8rem) 7vw;
  background-color: #efefef;
  background-image: url("./hero.jpg");
  background-position: center;
  background-size: cover;
}

.intro-copy {
  width: min(42vw, 630px);
  text-align: center;
}

.intro-copy h1 {
  max-width: 13ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 4.4vw, 5.4rem);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.intro-copy h1 em {
  color: #9f772d;
  font-weight: 400;
}

.intro-deck {
  max-width: 37rem;
  margin: 2rem auto 0;
  font-size: clamp(0.95rem, 1.16vw, 1.16rem);
  line-height: 1.55;
}

.primary-button,
.result-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
  min-width: 250px;
  min-height: 58px;
  margin-top: 2.2rem;
  padding: 0.95rem 1.4rem;
  color: #fff;
  background: #090909;
  border: 1px solid #090909;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-button:hover,
.result-cta:hover {
  color: #111;
  background: transparent;
  transform: translateY(-2px);
}

.intro-meta {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  margin: 1.5rem 0 0;
  color: #54504c;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-meta span + span::before {
  content: "·";
  margin-right: 1.15rem;
}

.intro-footer,
.quiz-footer,
.result-footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 5.5vw;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.intro-footer {
  color: #fff;
  background: #080808;
}

.intro-footer div {
  display: flex;
  gap: 0.7rem;
}

.intro-footer p {
  margin: 0;
  text-transform: none;
}

.quiz-view,
.result-view {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  color: #fff;
  background: #27101a;
}

.ambient-video,
.result-video,
.quiz-wash,
.result-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ambient-video,
.result-video { object-fit: cover; }

.quiz-wash {
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 7, 13, 0.12), rgba(16, 5, 10, 0.32));
  pointer-events: none;
}

.quiz-dynamic {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(0.7rem, 1.8vh, 1.25rem) 5.5vw 3.5rem;
}

.quiz-progress { width: min(100%, 1120px); }

.quiz-progress__labels {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.61rem;
  letter-spacing: 0.14em;
}

.progress-track {
  width: 100%;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.progress-track span {
  display: block;
  height: 100%;
  background: #fff;
  transition: width 500ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.chapter-context {
  width: min(100%, 850px);
  margin: clamp(0.65rem, 1.5vh, 1.1rem) auto clamp(0.5rem, 1.3vh, 0.9rem);
  text-align: center;
}

.chapter-context p {
  margin: 0 0 0.28rem;
  font-size: 0.56rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  opacity: 0.78;
}

.chapter-context h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.65vw, 1.72rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.chapter-context.is-new-chapter {
  animation: chapter-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.deck-region {
  width: 100%;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-deck {
  --deck-width: min(330px, 78vw, calc((100dvh - 270px) * 0.8));
  position: relative;
  width: var(--deck-width);
  aspect-ratio: 0.833;
  flex: 0 0 auto;
  isolation: isolate;
}

.deck-card,
.swipe-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 17px;
  box-shadow: 0 24px 48px rgba(16, 5, 10, 0.3);
}

.deck-card {
  background: rgba(66, 37, 48, 0.76);
  transform-origin: center top;
}

.deck-card img,
.deck-card span {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.deck-card img {
  object-fit: cover;
  filter: saturate(0.55) brightness(0.58);
}

.deck-card span { background: rgba(32, 15, 23, 0.28); }

.deck-card--1 {
  z-index: 3;
  opacity: 0.7;
  transform: translateY(10px) scale(0.99);
}

.deck-card--2 {
  z-index: 2;
  opacity: 0.48;
  transform: translateY(18px) scale(0.98);
}

.deck-card--3 {
  z-index: 1;
  opacity: 0.28;
  transform: translateY(26px) scale(0.97);
}

.swipe-card {
  --yes-opacity: 0;
  --no-opacity: 0;
  z-index: 10;
  color: #fff;
  background: #2d2224;
  cursor: grab;
  isolation: isolate;
  touch-action: none;
  user-select: none;
  will-change: transform, opacity;
}

.swipe-card.is-dragging {
  cursor: grabbing;
  box-shadow: 0 30px 60px rgba(13, 4, 8, 0.42);
}

.swipe-card.is-springing {
  transition: transform 350ms cubic-bezier(0.18, 0.88, 0.2, 1.18);
}

.swipe-card.is-exiting {
  pointer-events: none;
  transition: transform 380ms cubic-bezier(0.32, 0.02, 0.45, 1), opacity 330ms ease;
}

.swipe-card__image,
.swipe-card__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.swipe-card__image {
  z-index: -2;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(0.72) contrast(1.02) brightness(0.9);
}

.swipe-card__wash {
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 12, 13, 0.08) 20%, rgba(18, 11, 14, 0.28) 55%, rgba(16, 10, 12, 0.91) 100%);
}

.swipe-card__number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  margin: 0;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.45);
}

.swipe-card__content {
  position: absolute;
  right: clamp(1rem, 1.8vw, 1.45rem);
  bottom: clamp(1.1rem, 2vw, 1.6rem);
  left: clamp(1rem, 1.8vw, 1.45rem);
}

.swipe-card__accent {
  display: block;
  width: 2rem;
  height: 2px;
  margin-bottom: 0.72rem;
  background: rgba(255, 255, 255, 0.92);
}

.swipe-card__content h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.72rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

.swipe-card__content p {
  margin: 0.72rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.swipe-stamp {
  position: absolute;
  z-index: 5;
  top: 3.4rem;
  padding: 0.35rem 0.65rem 0.25rem;
  border: 2px solid currentColor;
  border-radius: 3px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}

.swipe-stamp--no {
  left: 1rem;
  color: #ff8f91;
  opacity: var(--no-opacity);
  transform: rotate(-10deg);
}

.swipe-stamp--yes {
  right: 1rem;
  color: #c9f2ce;
  opacity: var(--yes-opacity);
  transform: rotate(10deg);
}

.decision-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3.3rem, 7vw, 5.2rem);
  margin-top: clamp(1rem, 2.2vh, 1.35rem);
}

.decision-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(29, 12, 20, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.decision-button span {
  display: block;
  font-family: var(--serif);
  font-size: 1.72rem;
  line-height: 1;
  transform: translateY(-1px);
}

.decision-button--yes span {
  font-size: 1.55rem;
  transform: translateY(0);
}

.decision-button:hover {
  color: #15100f;
  background: rgba(255, 255, 255, 0.92);
  border-color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.decision-button:disabled {
  cursor: default;
  opacity: 0.55;
}

.swipe-helper {
  margin: 0.62rem 0 0;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.015em;
  opacity: 0.72;
}

.quiz-footer,
.result-footer {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.result-view { background: #0d0606; }

.result-view {
  overflow-x: hidden;
  overflow-y: auto;
}

.result-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.26));
  pointer-events: none;
}

.result-frame {
  display: none;
}

.result-footer { border-top: 0; }

.result-view--light {
  color: #111;
  background: #efede5;
}

.result-view--light .result-overlay { background: rgba(255, 255, 255, 0.15); }

.result-shell {
  position: relative;
  z-index: 3;
  min-height: calc(100svh - 112px);
  min-height: calc(100dvh - 112px);
  width: min(100% - 16vw, 1240px);
  display: grid;
  grid-template-columns: minmax(280px, 400px) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(4rem, 10vw, 10rem);
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

.result-card-wrap {
  position: relative;
  width: min(100%, 400px, calc((100svh - 230px) * 0.665));
  justify-self: center;
}

.result-card {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.2));
}

.result-copy { max-width: 650px; }

.result-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.3rem, 5.2vw, 6.2rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.result-copy > p:not(.eyebrow) {
  max-width: 37rem;
  margin: 3rem 0 0;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.35;
}

.result-cta {
  min-width: 260px;
  margin-top: 2.6rem;
}

.result-view:not(.result-view--light) .result-cta {
  color: #fff;
  background: #050505;
  border-color: rgba(255, 255, 255, 0.4);
}

.result-view:not(.result-view--light) .result-cta:hover { background: rgba(5, 5, 5, 0.35); }

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.result-actions button {
  padding: 0 0 0.28rem;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  font-size: 0.75rem;
}

.score-details {
  max-width: 34rem;
  margin-top: 1.6rem;
  font-size: 0.7rem;
  line-height: 1.5;
}

.score-details summary {
  cursor: pointer;
  opacity: 0.78;
}

.score-details p {
  margin: 0.65rem 0 0;
  opacity: 0.76;
}

.result-view--light .brand-header {
  color: #111;
  background: #fff;
  border-color: rgba(17, 17, 17, 0.2);
}

.result-view--light .result-footer {
  color: #111;
  border-color: rgba(17, 17, 17, 0.22);
}

.view-enter { animation: view-in 540ms cubic-bezier(0.2, 0.78, 0.2, 1) both; }

.view-leave {
  pointer-events: none;
  animation: view-out 280ms ease both;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes view-out {
  to { opacity: 0; transform: translateY(-6px); }
}

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

@media (max-width: 800px) {
  html,
  body {
    width: 100%;
    min-width: 0;
  }

  .brand-header {
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }

  .brand-collection {
    max-width: 15rem;
    font-size: 0.58rem;
  }

  .brand-logo { width: clamp(132px, 39vw, 175px); }

  .intro-hero {
    min-height: auto;
    display: block;
    padding: min(71vw, 34rem) 1.1rem 3rem;
    background-position: 28% top;
    background-size: auto min(72vw, 35rem);
    background-repeat: no-repeat;
  }

  .intro-copy {
    width: 100%;
    padding: clamp(1.8rem, 7vw, 2.5rem) clamp(1rem, 5vw, 1.35rem);
    background: rgba(248, 248, 247, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.08);
  }

  .intro-copy h1 { font-size: clamp(2.35rem, 11.5vw, 4.5rem); }
  .intro-deck { margin-top: 1.5rem; }

  .primary-button,
  .result-cta {
    width: min(100%, 320px);
    min-width: 0;
  }
  .intro-meta { display: none; }

  .intro-footer,
  .quiz-footer,
  .result-footer {
    min-height: 44px;
    padding-left: max(1.2rem, env(safe-area-inset-left));
    padding-right: max(1.2rem, env(safe-area-inset-right));
  }

  .quiz-footer {
    min-height: calc(44px + env(safe-area-inset-bottom));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  .intro-footer p,
  .quiz-footer span:last-child,
  .result-footer span:last-child { display: none; }

  .quiz-dynamic {
    min-height: calc(100svh - 60px);
    min-height: calc(100dvh - 60px - env(safe-area-inset-top));
    padding: 0.7rem max(1.1rem, env(safe-area-inset-right)) max(3.1rem, calc(2.7rem + env(safe-area-inset-bottom))) max(1.1rem, env(safe-area-inset-left));
  }

  .chapter-context { margin-block: 0.65rem 0.45rem; }
  .chapter-context h1 { font-size: clamp(1.08rem, 5vw, 1.35rem); }

  .card-deck {
    --deck-width: min(84vw, 330px, max(220px, calc((100dvh - 278px) * 0.8)));
  }

  .decision-controls { margin-top: 1rem; }

  .decision-button {
    width: 56px;
    height: 56px;
  }

  .result-video,
  .result-overlay,
  .result-frame {
    position: fixed;
  }

  .result-frame {
    inset: max(1rem, env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1.2rem, env(safe-area-inset-left));
  }

  .result-shell {
    width: calc(100% - 2.5rem);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.45rem;
    padding: 1.75rem 0 2rem;
    text-align: center;
  }

  .result-card-wrap {
    width: min(64vw, 250px);
  }

  .result-copy { max-width: 100%; }
  .result-copy h1 { font-size: clamp(2.8rem, 13vw, 4.7rem); }
  .result-copy > p:not(.eyebrow) { margin-top: 1.5rem; }
  .result-cta { margin-top: 1.6rem; }

  .result-actions {
    justify-content: center;
    margin-top: 1.25rem;
  }

  .score-details { margin-inline: auto; }

  .result-footer {
    position: relative;
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 800px) and (max-height: 700px) {
  .brand-header { min-height: calc(56px + env(safe-area-inset-top)); }

  .quiz-dynamic {
    min-height: calc(100dvh - 52px - env(safe-area-inset-top));
    padding-top: 0.5rem;
  }

  .chapter-context { margin-block: 0.42rem 0.3rem; }
  .chapter-context h1 { font-size: clamp(1rem, 4.6vw, 1.2rem); }

  .card-deck {
    --deck-width: min(75vw, 276px, max(205px, calc((100dvh - 244px) * 0.8)));
  }

  .decision-controls { margin-top: 0.72rem; }

  .decision-button {
    width: 50px;
    height: 50px;
  }

  .swipe-helper {
    margin-top: 0.4rem;
    font-size: 0.64rem;
  }
}

@media (max-width: 950px) and (max-height: 520px) {
  .brand-header {
    min-height: calc(48px + env(safe-area-inset-top));
    padding-inline: max(1rem, env(safe-area-inset-left));
  }

  .brand-logo { width: 125px; }
  .brand-collection { font-size: 0.5rem; }

  .intro-footer,
  .quiz-footer,
  .result-footer { display: none; }

  .intro-hero {
    min-height: calc(100dvh - 48px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.8rem max(1rem, env(safe-area-inset-right)) 0.8rem max(1rem, env(safe-area-inset-left));
    background-position: center;
    background-size: cover;
  }

  .intro-copy {
    width: min(54%, 430px);
    padding: 1rem;
  }

  .intro-copy .eyebrow { margin-bottom: 0.55rem; }
  .intro-copy h1 { font-size: clamp(1.65rem, 5vw, 2.5rem); }
  .intro-meta { display: none; }

  .intro-deck {
    margin-top: 0.7rem;
    font-size: 0.76rem;
    line-height: 1.35;
  }

  .primary-button {
    min-height: 42px;
    margin-top: 0.8rem;
    font-size: 0.76rem;
  }

  .quiz-dynamic {
    min-height: calc(100dvh - 48px - env(safe-area-inset-top));
    padding: 0.35rem max(1rem, env(safe-area-inset-right)) 0.45rem max(1rem, env(safe-area-inset-left));
  }

  .quiz-progress__labels { margin-bottom: 0.28rem; }

  .chapter-context {
    margin-block: 0.3rem 0.2rem;
  }

  .chapter-context p { display: none; }
  .chapter-context h1 { font-size: clamp(0.95rem, 2.5vw, 1.25rem); }

  .deck-region {
    flex-direction: row;
    gap: clamp(1rem, 4vw, 2.5rem);
  }

  .card-deck {
    --deck-width: min(36vw, calc((100dvh - 126px) * 0.833));
  }

  .decision-controls {
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
  }

  .decision-button {
    width: 48px;
    height: 48px;
  }

  .swipe-helper { display: none; }

  .result-shell {
    width: min(calc(100% - 3rem), 880px);
    min-height: calc(100dvh - 48px);
    grid-template-columns: minmax(130px, 0.62fr) minmax(280px, 1.38fr);
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: 0.8rem 0;
    text-align: left;
  }

  .result-card-wrap {
    width: min(25vw, calc((100dvh - 78px) * 0.665));
  }

  .result-copy .eyebrow { margin-bottom: 0.55rem; }
  .result-copy h1 { font-size: clamp(2rem, 6.5vh, 3.3rem); }

  .result-copy > p:not(.eyebrow) {
    margin-top: 0.7rem;
    font-size: 0.78rem;
  }

  .result-cta {
    width: auto;
    min-width: 220px;
    min-height: 42px;
    margin-top: 0.8rem;
    font-size: 0.76rem;
  }

  .result-actions {
    justify-content: flex-start;
    margin-top: 0.65rem;
  }

  .score-details { display: none; }
}

@media (max-height: 650px) and (min-width: 951px) {
  .brand-header { min-height: 62px; }

  .quiz-dynamic {
    min-height: calc(100svh - 58px);
    padding-top: 0.55rem;
  }

  .chapter-context { margin-block: 0.5rem 0.3rem; }

  .card-deck {
    --deck-width: min(286px, calc((100svh - 235px) * 0.8));
  }

  .decision-controls { margin-top: 0.75rem; }
  .swipe-helper { margin-top: 0.35rem; }
}

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

}
