:root {
  --ink: #08008a;
  --ink-soft: #342d98;
  --muted: #6e6a87;
  --line: #08008a;
  --wash: #ebe9ff;
  --pink: #fde8fb;
  --surface: rgba(239, 238, 255, 0.86);
  --surface-strong: #ecebff;
  --white: #fffaff;
  --shadow: 0 22px 60px rgba(8, 0, 138, 0.12);
  --pink-shadow: 0 0 20px rgba(244, 91, 139, 0.18), 0 0 42px rgba(244, 91, 139, 0.1);
  --headline-font: "Archivo Black", Inter, ui-sans-serif, system-ui, sans-serif;
  --mobile-shell: min(500px, calc(100vw - 48px));
  --quiz-unit-width: var(--mobile-shell);
  --quiz-unit-height: min(90dvh, 780px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  max-width: 100vw;
  min-height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 233, 252, 0.95), rgba(235, 237, 255, 0.96) 52%, rgba(255, 232, 251, 0.95)),
    #f8e9fb;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  position: relative;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 8rem),
    linear-gradient(90deg, var(--pink), var(--wash) 52%, var(--pink));
}

.chrome-button {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1.4px solid rgba(8, 0, 138, 0.7);
  border-radius: 50%;
  background: rgba(255, 250, 255, 0.42);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
}

.chrome-button span {
  position: absolute;
  width: 21px;
  height: 1.6px;
  background: #4b43ff;
  border-radius: 99px;
}

.chrome-button span:first-child {
  transform: rotate(45deg);
}

.chrome-button span:last-child {
  transform: rotate(-45deg);
}

.close-button {
  top: 24px;
  left: 24px;
}

.live-link {
  position: absolute;
  top: 44px;
  right: 34px;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  font-weight: 500;
  z-index: 4;
}

.screen {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100dvh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(0, 12px, 0);
  transition: opacity 360ms ease, transform 360ms ease;
}

.screen.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.start-screen {
  grid-template-rows: 0.72fr auto 1fr;
  padding: 8rem 1.25rem 3.8rem;
  row-gap: clamp(1.2rem, 4vh, 2.4rem);
}

.start-copy {
  align-self: end;
  text-align: center;
  width: var(--mobile-shell);
  max-width: var(--mobile-shell);
}

.start-copy h1,
.signup-copy h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  line-height: 1.02;
  color: var(--ink);
  font-weight: 850;
}

.start-copy p,
.signup-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0;
}

.week-strip {
  display: flex;
  justify-content: center;
  gap: 1.55rem;
  margin-top: 1.9rem;
}

.day {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  color: rgba(8, 0, 138, 0.72);
  font-weight: 680;
  font-size: 1rem;
}

.day span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  display: block;
}

.day.active span {
  background: var(--ink);
  box-shadow: 0 0 15px rgba(8, 0, 138, 0.46);
}

.start-orbit {
  position: relative;
  align-self: start;
  width: clamp(190px, 18vw, 270px);
  max-width: calc(100vw - 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid rgba(8, 0, 138, 0.12);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 55px rgba(8, 0, 138, 0.04);
  cursor: pointer;
  animation: orbitPulse 2.6s ease-in-out infinite;
}

.start-core {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 255, 0.58);
  color: #77728c;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: 0 15px 25px rgba(54, 49, 101, 0.12);
  transition: transform 220ms ease, color 220ms ease;
}

.start-orbit:hover .start-core {
  color: var(--ink);
  transform: scale(1.04);
}

@keyframes orbitPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(8, 0, 138, 0);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 44px rgba(8, 0, 138, 0.08);
  }
}

.login-link {
  align-self: end;
  max-width: var(--mobile-shell);
  border: 1px solid rgba(8, 0, 138, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(8, 0, 138, 0.45);
  padding: 0.78rem 1rem;
  cursor: pointer;
}

.intro-card {
  place-items: center;
}

.intro-card.is-active {
  transform: translate3d(0, 0, 0);
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  top: 9rem;
  background: rgba(229, 227, 255, 0.44);
}

.intro-inner {
  position: relative;
  width: var(--quiz-unit-width);
  height: var(--quiz-unit-height);
  min-height: 0;
  border: 1.6px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(255, 232, 236, 0.72), rgba(232, 233, 255, 0.94));
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2.1rem;
  padding: 2rem;
  text-align: center;
  opacity: 1;
  transition: opacity 260ms ease;
}

.intro-card:not(.is-active) .intro-inner {
  opacity: 0;
}

.card-close {
  top: calc(50% - min(43svh, 460px) - 9px);
  left: calc(50% - min(415px, calc(50vw - 1rem)) - 19px);
  width: 42px;
  height: 42px;
  background: rgba(255, 237, 252, 0.86);
}

.date-pill {
  margin: 0;
  padding: 0.5rem 1.15rem;
  border-radius: 99px;
  background: rgba(255, 250, 255, 0.52);
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.intro-inner h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(1.68rem, 3.7vw, 2.7rem);
  line-height: 1.02;
  font-family: var(--headline-font);
  font-weight: 400;
}

.zone-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.primary-action {
  width: min(390px, 88%);
  min-height: 58px;
  padding: 0.75rem 1.45rem 0.82rem;
  border: 1.2px solid rgba(8, 0, 138, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: var(--ink);
  font-size: clamp(0.98rem, 1.75vw, 1.12rem);
  font-weight: 520;
  letter-spacing: 0.004em;
  cursor: pointer;
  box-shadow: var(--pink-shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.primary-action:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(8, 0, 138, 0.62);
  box-shadow: 0 0 24px rgba(244, 91, 139, 0.22), 0 0 44px rgba(244, 91, 139, 0.12);
  transform: translateY(-1px);
}

.quiz-stage {
  place-items: center;
  background: linear-gradient(180deg, transparent 0 8rem, rgba(229, 227, 255, 0.5) 8rem 100%);
}

.quiz-stage.is-active {
  transform: translate3d(0, 0, 0);
}

.quiz-card {
  position: relative;
  width: var(--quiz-unit-width);
  height: var(--quiz-unit-height);
  min-height: 0;
  overflow: visible;
  border: 1.7px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 260ms ease;
}

.quiz-stage.is-active .quiz-card {
  opacity: 1;
}

.quiz-card .card-close {
  top: -25px;
  left: -25px;
}

.progress-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff0ff;
  display: grid;
  place-items: center;
  z-index: 3;
  font-family: var(--headline-font);
  font-size: 1.2rem;
  font-weight: 400;
}

.media-window {
  position: relative;
  height: 49%;
  overflow: hidden;
  border-bottom: 1.5px solid var(--line);
  border-radius: 20px 20px 0 0;
  contain: layout paint;
}

.image-rail {
  position: absolute;
  inset: 0;
  height: 100%;
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.24, 1);
  will-change: transform;
}

.quiz-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #d9ddf1;
  transform: translate3d(0, var(--offset), 0);
}

.question-panel {
  height: 51%;
  display: grid;
  grid-template-rows: 1fr auto 2.8rem;
  align-items: center;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 3.4rem) clamp(0.8rem, 2.6vw, 2rem) 2.35rem;
}

.question-text {
  position: relative;
  max-width: 640px;
  text-align: center;
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.44;
  color: var(--ink);
  font-weight: 380;
  letter-spacing: 0.006em;
}

.reaction-emoji {
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.clap-gif {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.15rem);
  display: block;
  width: clamp(38px, 7.5vw, 54px);
  height: clamp(38px, 7.5vw, 54px);
  margin: 0;
  object-fit: contain;
  border-radius: 10px;
  transform-origin: 50% 70%;
  animation: clapPop 680ms cubic-bezier(0.2, 0.9, 0.22, 1) both;
}

.stress-emoji {
  margin-left: 0.22rem;
  font-size: 1.05em;
  transform-origin: 50% 70%;
  animation: stressWobble 640ms ease both;
}

.question-text strong {
  font-weight: 620;
}

.reveal-phrase {
  display: inline-block;
  font-weight: 760;
  opacity: 0;
  filter: blur(3px);
  animation: phraseReveal 360ms ease 60ms forwards;
}

@keyframes phraseReveal {
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes clapPop {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: translateX(-50%) translateY(6px) scale(0.72) rotate(-8deg);
  }
  42% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) scale(1.12) rotate(8deg);
  }
  68% {
    transform: translateX(-50%) translateY(0) scale(0.98) rotate(-4deg);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes stressWobble {
  0% {
    opacity: 0;
    transform: translateY(3px) scale(0.85) rotate(-6deg);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1.08) rotate(6deg);
  }
  58% {
    transform: rotate(-4deg);
  }
  82% {
    transform: rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.answer-row {
  display: flex;
  justify-content: center;
  gap: clamp(0.55rem, 1.9vw, 1.1rem);
  flex-wrap: nowrap;
  width: 100%;
}

.answer-button {
  flex: 1 1 0;
  min-width: 0;
  max-width: 190px;
  min-height: 52px;
  padding: 0.58rem 0.85rem 0.65rem;
  border: 1.25px solid rgba(8, 0, 138, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  font-size: clamp(0.92rem, 1.85vw, 1.14rem);
  font-weight: 380;
  letter-spacing: 0.006em;
  cursor: pointer;
  box-shadow: var(--pink-shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.answer-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--line);
  box-shadow: 0 0 24px rgba(244, 91, 139, 0.24), 0 0 48px rgba(244, 91, 139, 0.13);
}

.answer-button:disabled {
  cursor: default;
}

.answer-button.is-correct {
  background: #f2fffa;
  border-color: #05875b;
  color: #03704b;
}

.answer-button.is-wrong {
  background: #fff3f7;
  border-color: #cf2f68;
  color: #a51c4e;
}

.got-it-button {
  min-width: min(220px, 70vw);
  min-height: 52px;
  padding: 0.62rem 1.35rem 0.7rem;
  border: 1.15px solid rgba(8, 0, 138, 0.48);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--ink);
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  font-weight: 560;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--pink-shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.got-it-button:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(8, 0, 138, 0.64);
  box-shadow: 0 0 24px rgba(244, 91, 139, 0.24), 0 0 48px rgba(244, 91, 139, 0.13);
}

.micro-feedback {
  margin: 0;
  min-height: 1.4em;
  color: var(--ink);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  font-family: var(--headline-font);
  font-weight: 400;
  opacity: 1;
  transition: opacity 360ms ease, filter 360ms ease, transform 360ms ease;
}

.micro-feedback.is-fading {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(4px);
}

.buzz {
  animation: buzz 260ms ease;
}

@keyframes buzz {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px) rotate(-0.35deg);
  }
  55% {
    transform: translateX(8px) rotate(0.35deg);
  }
  78% {
    transform: translateX(-4px);
  }
}

.signup-screen {
  place-items: center;
  padding: 5rem 1.25rem 3rem;
  text-align: center;
  transform: none;
  transition: opacity 420ms ease;
}

.signup-screen.is-active {
  transform: none;
}

.signup-screen .signup-copy,
.signup-screen .signup-form,
.signup-screen .video-bubble {
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms ease, filter 420ms ease;
}

.signup-screen .signup-copy {
  filter: blur(2px);
}

.signup-screen .signup-form {
  filter: blur(2px);
}

.signup-screen.stage-copy .signup-copy,
.signup-screen.stage-signup .signup-form,
.signup-screen.stage-signup .video-bubble {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0);
}

.signup-copy {
  position: absolute;
  top: clamp(3.3rem, 8vh, 6rem);
  left: 50%;
  width: min(680px, calc(100vw - 2rem));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
}

.signup-screen.stage-copy .signup-copy {
  transform: translateX(-50%);
}

.signed {
  margin-top: 2.3rem;
}

.signup-copy .signed .day.active span {
  background: var(--white);
  box-shadow: none;
  transition: background 360ms ease, box-shadow 460ms ease;
}

.signup-screen.stage-week .signup-copy .signed .day.active span {
  background: var(--ink);
  box-shadow: 0 0 15px rgba(8, 0, 138, 0.46);
}

.streak-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.streak-ring {
  width: clamp(190px, 20vw, 270px);
  aspect-ratio: 1;
  border: 3px solid rgba(8, 0, 138, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 55px rgba(8, 0, 138, 0.04);
  opacity: 0;
  transform: scale(0.96);
  transition:
    width 520ms cubic-bezier(0.2, 0.9, 0.22, 1),
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.2, 0.9, 0.22, 1),
    border-color 520ms ease,
    box-shadow 520ms ease,
    background 520ms ease;
}

.signup-screen.stage-ring .streak-ring {
  opacity: 1;
  transform: scale(1);
}

.signup-screen.stage-streak .streak-ring {
  width: clamp(210px, 23vw, 300px);
  border-color: rgba(8, 0, 138, 0.72);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 60px rgba(8, 0, 138, 0.08);
}

.celebration-start {
  position: absolute;
  inset: 25%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 250, 255, 0.58);
  color: #77728c;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: 0 15px 25px rgba(54, 49, 101, 0.12);
  opacity: 1;
  transform: scale(1);
  transition: opacity 260ms ease, transform 320ms ease;
}

.streak-content {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0.92);
  filter: blur(4px);
  transition: opacity 360ms ease 70ms, transform 440ms ease 70ms, filter 440ms ease 70ms;
}

.signup-screen.stage-streak .celebration-start {
  opacity: 0;
  transform: scale(0.82);
}

.signup-screen.stage-streak .streak-content {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.streak-ring strong {
  font-size: clamp(4rem, 7vw, 5.6rem);
  line-height: 0.9;
}

.streak-content > span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.1rem;
}

.video-bubble {
  position: absolute;
  right: max(-115px, -11vw);
  bottom: -35px;
  width: clamp(112px, 13vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d9ddcb;
  box-shadow: 0 12px 22px rgba(15, 14, 48, 0.18);
  display: grid;
  place-items: center;
}

.welcome-video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
  background: #d9ddcb;
}

.sound-toggle {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: #f1d0ff;
  color: #a56cff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.sound-toggle {
  bottom: 0;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, 35%);
}

.sound-toggle.is-on {
  background: var(--ink);
  color: white;
}

.signup-form {
  position: absolute;
  left: 50%;
  bottom: clamp(2.25rem, 7vh, 5rem);
  width: min(680px, calc(100vw - 2rem));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 1rem;
}

.signup-screen.stage-signup .signup-form {
  transform: translateX(-50%);
}

.signup-form label {
  color: rgba(8, 0, 138, 0.48);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.email-row {
  width: min(620px, calc(100vw - 2rem));
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr 145px;
  border: 1px solid rgba(8, 0, 138, 0.18);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 28px rgba(54, 49, 101, 0.12);
}

.email-row input {
  border: 0;
  min-width: 0;
  background: transparent;
  padding: 0 1.7rem;
  color: var(--ink);
  font-size: 1.05rem;
  outline: none;
}

.email-row button {
  border: 0;
  background: var(--ink);
  color: white;
  font-weight: 850;
  cursor: pointer;
}

.form-note {
  min-height: 1.3rem;
  margin: 0;
  color: #05734e;
}

.continue-offer {
  color: white;
  background: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 1rem 1.3rem;
  font-weight: 850;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.continue-offer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  :root {
    --mobile-shell: min(500px, calc(100vw - 20px));
    --quiz-unit-height: calc(100dvh - 1.25rem);
  }

  .close-button {
    top: 14px;
    left: 14px;
    width: 46px;
    height: 46px;
  }

  .live-link {
    top: 26px;
    right: 14px;
  }

  .start-screen {
    grid-template-rows: 0.64fr auto 1fr;
    padding: 5.1rem 12px 2.4rem;
    justify-items: center;
    row-gap: clamp(1rem, 3.5vh, 1.8rem);
  }

  .start-copy h1,
  .signup-copy h2 {
    font-size: clamp(1.5rem, 7vw, 1.9rem);
  }

  .start-copy p,
  .signup-copy p {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .start-orbit {
    width: min(210px, calc(100vw - 118px));
  }

  .login-link {
    width: auto;
    max-width: calc(100vw - 48px);
    font-size: 0.92rem;
    white-space: nowrap;
  }

  .week-strip {
    gap: 1.18rem;
    margin-top: 1.55rem;
  }

  .day span {
    width: 20px;
    height: 20px;
  }

  .day {
    gap: 0.62rem;
    font-size: 0.92rem;
    color: rgba(8, 0, 138, 0.66);
    font-weight: 650;
  }

  .intro-inner {
    width: var(--quiz-unit-width);
    height: var(--quiz-unit-height);
    border-radius: 19px;
    gap: 1.4rem;
    padding-inline: 1.35rem;
  }

  .intro-inner h2 {
    max-width: 390px;
    font-size: clamp(1.82rem, 9vw, 2.85rem);
    line-height: 1.02;
  }

  .zone-line {
    font-size: clamp(0.98rem, 4.2vw, 1.18rem);
    line-height: 1.25;
  }

  .card-close {
    top: calc(50% - min(39svh, 360px) - 8px);
    left: 11px;
  }

  .primary-action {
    width: min(330px, 92%);
    min-height: 54px;
  }

  .quiz-card {
    width: var(--quiz-unit-width);
    height: var(--quiz-unit-height);
    min-height: 0;
    max-height: 780px;
    border-radius: 19px;
  }

  .media-window {
    border-radius: 17px 17px 0 0;
  }

  .quiz-card .card-close {
    left: -14px;
  }

  .progress-bubble {
    width: 58px;
    height: 58px;
  }

  .media-window {
    height: 44%;
  }

  .question-panel {
    height: 56%;
    grid-template-rows: 1fr auto 2.3rem;
    padding: clamp(1.1rem, 4.5vw, 2.1rem) 0.65rem 1.65rem;
  }

  .question-text {
    font-size: clamp(0.94rem, 4.65vw, 1.16rem);
    line-height: 1.42;
    max-width: 96%;
  }

  .answer-row {
    width: 100%;
    gap: 0.52rem;
  }

  .answer-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding-inline: 0.45rem;
    font-size: clamp(0.84rem, 4.25vw, 1.02rem);
  }

  .answer-row:has(.answer-button:nth-child(3)) {
    gap: 0.42rem;
  }

  .answer-row:has(.answer-button:nth-child(3)) .answer-button {
    min-width: 0;
    padding-inline: 0.35rem;
    font-size: clamp(0.78rem, 3.8vw, 0.94rem);
  }

  .video-bubble {
    right: -58px;
    bottom: -42px;
    width: clamp(104px, 30vw, 132px);
    z-index: 2;
  }

  .sound-toggle {
    width: 30px;
    height: 30px;
  }

  .signup-form {
    bottom: clamp(1.1rem, 4.2vh, 2.1rem);
    gap: 0.72rem;
  }

  .signup-form label {
    max-width: min(390px, calc(100vw - 2.5rem));
    font-size: clamp(0.88rem, 3.9vw, 1rem);
    line-height: 1.22;
    padding-inline: 1.2rem;
  }

  .email-row {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .email-row input,
  .email-row button {
    min-height: 58px;
  }
}

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