@font-face {
  font-family: "UnikatAcme";
  src: url("../fonts/unikat-acme.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UnikatBalto";
  src: url("../fonts/unikat-balto.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "UnikatBalto";
  src: url("../fonts/unikat-balto-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #082b55;
  --blue-deep: #031b35;
  --gold: #d6a94b;
  --gold-light: #f3d37a;
  --red: #d71920;
  --white: #ffffff;
  --ink: #091525;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --screen-frame-inset: 1.25rem;
  --screen-frame-inner-gap: 0.85rem;
  --screen-padding-inline: clamp(1rem, 3vw, 1.25rem);
  --logo-flight-ms: 1200ms;
  --wheel-spin-duration: 4300ms;
  --wheel-spin-ease: cubic-bezier(0.52, 0.02, 0.16, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --game-header-content: clamp(12rem, 24svh, 14.5rem);
  --game-header-height: calc(var(--safe-top) + 1.875rem + var(--game-header-content));
  --font-body: "UnikatBalto", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "UnikatAcme", "Arial Narrow", Impact, Haettenschweiler, sans-serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html {
  height: 100%;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--blue-deep);
  color: var(--white);
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 169, 75, 0.24), transparent 32rem),
    linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 60%);
}

button {
  font: inherit;
}

.app-shell {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.8svh, 1.25rem);
  padding:
    calc(1rem + var(--safe-top))
    calc(var(--screen-padding-inline) + var(--safe-right))
    calc(1.15rem + var(--safe-bottom))
    calc(var(--screen-padding-inline) + var(--safe-left));
  text-align: center;
  position: relative;
  overflow: hidden;
}

.screen::before,
.screen::after {
  content: "";
  position: absolute;
  inset: var(--screen-frame-inset);
  border: 1px solid rgba(243, 211, 122, 0.24);
  border-radius: 24px;
  pointer-events: none;
}

.screen::after {
  inset: auto 2.5rem 2.5rem;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: goldLine 3.4s ease-in-out infinite;
}

.is-entering {
  animation: screenIn 420ms ease both;
}

.intro-card {
  width: min(100%, 46rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2svh, 1.35rem);
  padding: clamp(1rem, 3svh, 2.5rem) 1.25rem;
}

.screen-intro {
  justify-content: stretch;
}

.screen-intro .intro-card {
  flex: 1;
  width: 100%;
  max-width: none;
  justify-content: space-between;
  gap: clamp(0.85rem, 2.8svh, 1.75rem);
  padding:
    clamp(1.25rem, 5svh, 2.75rem)
    clamp(1rem, 4vw, 1.5rem)
    clamp(1.1rem, 4svh, 2rem);
}

.screen-intro .brand-logo {
  width: min(22rem, 78vw, 38svh);
  height: min(22rem, 78vw, 38svh);
  flex-shrink: 0;
  animation: logoFloat 4.8s ease-in-out infinite, introPop 620ms ease both;
}

.screen-intro h1,
.screen-intro .intro-title {
  animation: introRise 520ms ease 120ms both;
  max-width: min(100%, 28rem);
  width: 100%;
  line-height: 1.02;
  letter-spacing: 0.06rem;
  text-wrap: wrap;
}

.intro-title-line {
  display: block;
}

.screen-intro .lead {
  animation: introRise 520ms ease 220ms both;
  color: var(--gold-light);
  text-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.28);
}

.screen-intro .primary-btn {
  margin-top: auto;
  margin-bottom: clamp(1rem, 2.5svh, 1.75rem);
  width: min(100%, 32rem);
  animation: introRise 520ms ease 340ms both, buttonGlow 8.5s ease-in-out 1.8s infinite;
}

.screen-intro.is-transitioning .intro-card h1,
.screen-intro.is-transitioning .intro-card .intro-title,
.screen-intro.is-transitioning .intro-card .lead,
.screen-intro.is-transitioning .intro-card .primary-btn {
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
  transition: opacity 320ms ease, transform 320ms ease;
}

.screen-intro.is-transitioning .intro-card > .brand-logo {
  opacity: 0;
  transition: opacity 180ms ease;
}

.screen-question.is-logo-landing .game-header__logo .brand-logo {
  visibility: hidden;
}

.screen-question.is-content-waiting .game-header .round-pill,
.screen-question.is-content-waiting .game-header .category,
.screen-question.is-content-waiting .question-title {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
}

.screen-question.is-timer-waiting .question-timer-block {
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.25rem);
}

.screen-question.is-content-revealing .game-header .round-pill {
  animation: questionContentIn 520ms ease both;
  animation-delay: 80ms;
}

.screen-question.is-content-revealing .game-header .category {
  animation: questionContentIn 520ms ease both;
  animation-delay: 160ms;
}

.screen-question.is-content-revealing .question-title {
  animation: questionContentIn 620ms ease both;
  animation-delay: 240ms;
}

.screen-question.is-timer-revealing .question-timer-block {
  animation: questionContentIn 560ms ease both;
}

.question-timer-block {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 1.8svh, 1.25rem);
}

.screen-question .question-timer-block,
.screen-answers .answers-block,
.screen-answers .answers-list {
  width: min(
    100%,
    calc(100vw - ((var(--screen-frame-inset) + var(--screen-frame-inner-gap)) * 2))
  );
  margin-inline: auto;
  box-sizing: border-box;
}

.screen-success .screen-body > .primary-btn,
.screen-second-chance .screen-body > .primary-btn,
.screen-end .screen-body > .primary-btn,
.screen-prize .screen-body > .primary-btn {
  width: min(
    100%,
    calc(100vw - ((var(--screen-frame-inset) + var(--screen-frame-inner-gap)) * 2))
  );
  margin-inline: auto;
  box-sizing: border-box;
}

.screen-question .question-timer-block .ghost-action {
  width: 100%;
  max-width: 100%;
  min-height: clamp(3.5rem, 6svh, 4.35rem);
  margin-inline: 0;
  align-self: stretch;
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  letter-spacing: 0.06rem;
}

.logo-flight {
  position: absolute;
  z-index: 30;
  display: grid;
  place-items: center;
  pointer-events: none;
  margin: 0;
  transform-origin: center top;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, opacity;
  transition:
    transform var(--logo-flight-ms) cubic-bezier(0.18, 0.88, 0.18, 1),
    opacity 220ms ease;
}

.logo-flight.is-landing {
  transform:
    translate3d(var(--logo-flight-x, 0px), var(--logo-flight-y, 0px), 0)
    scale(var(--logo-flight-scale, 1));
}

.logo-flight.is-fading {
  opacity: 0;
}

.brand-logo.logo-flight {
  position: absolute;
}

.brand-logo {
  width: min(18rem, 58vw, 28svh);
  height: min(18rem, 58vw, 28svh);
  display: grid;
  place-items: center;
  position: relative;
  overflow: visible;
}

.brand-logo img {
  width: auto;
  height: 100%;
  max-width: 100%;
  display: block;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.34));
}

.brand-logo::before,
.brand-logo::after {
  content: "";
  position: absolute;
  left: var(--spark-x, 50%);
  top: var(--spark-y, 9%);
  width: var(--spark-size, 20%);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.45) rotate(var(--spark-rotation, 0deg));
  transform-origin: center;
  opacity: 0;
  z-index: 2;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.brand-logo::before {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 8%, rgba(243, 211, 122, 0.88) 9% 18%, transparent 34%),
    conic-gradient(
      from 8deg,
      transparent 0 8deg,
      rgba(255, 255, 255, 0.78) 12deg,
      transparent 20deg 42deg,
      rgba(243, 211, 122, 0.72) 47deg,
      transparent 55deg 82deg,
      rgba(255, 255, 255, 0.82) 88deg,
      transparent 96deg 132deg,
      rgba(243, 211, 122, 0.66) 137deg,
      transparent 146deg 174deg,
      rgba(255, 255, 255, 0.76) 180deg,
      transparent 190deg 222deg,
      rgba(243, 211, 122, 0.68) 228deg,
      transparent 237deg 264deg,
      rgba(255, 255, 255, 0.82) 270deg,
      transparent 280deg 312deg,
      rgba(243, 211, 122, 0.62) 318deg,
      transparent 328deg 360deg
    );
  -webkit-mask-image: radial-gradient(circle, #000 0 62%, transparent 73%);
  mask-image: radial-gradient(circle, #000 0 62%, transparent 73%);
  filter:
    blur(1.35px)
    drop-shadow(0 0 0.35rem rgba(255, 255, 255, 0.52))
    drop-shadow(0 0 0.85rem rgba(243, 211, 122, 0.48));
}

.brand-logo::after {
  width: calc(var(--spark-size, 20%) * 0.46);
  left: calc(var(--spark-x, 50%) + var(--spark-small-x, 7%));
  top: calc(var(--spark-y, 9%) + var(--spark-small-y, 6%));
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 10%, rgba(243, 211, 122, 0.75) 11% 24%, transparent 42%),
    conic-gradient(
      transparent 0 15deg,
      rgba(255, 255, 255, 0.7) 22deg,
      transparent 34deg 76deg,
      rgba(243, 211, 122, 0.68) 84deg,
      transparent 96deg 166deg,
      rgba(255, 255, 255, 0.68) 176deg,
      transparent 188deg 256deg,
      rgba(243, 211, 122, 0.62) 266deg,
      transparent 278deg 360deg
    );
  -webkit-mask-image: radial-gradient(circle, #000 0 62%, transparent 75%);
  mask-image: radial-gradient(circle, #000 0 62%, transparent 75%);
  filter:
    blur(1px)
    drop-shadow(0 0 0.55rem rgba(243, 211, 122, 0.48));
}

.brand-logo.is-sparking::before {
  animation: logoSpark var(--spark-duration, 900ms) ease-out both;
}

.brand-logo.is-sparking::after {
  animation: logoSparkSmall var(--spark-small-duration, 720ms) ease-out var(--spark-small-delay, 120ms) both;
}

.logo-fallback::after {
  content: "ŠARIŠ UNIKÁT";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.085rem;
}

.logo-fallback img {
  display: none;
}

.game-header {
  position: absolute;
  top: calc(var(--safe-top) + 1.25rem + 0.625rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.game-header__logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.game-header__reset {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  pointer-events: auto;
  border-radius: 999px;
  transition: transform 160ms ease, filter 160ms ease;
}

.game-header__reset:active {
  transform: scale(0.96);
}

.game-header__reset:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 0.45rem;
}

.game-header .brand-logo {
  width: clamp(3.4rem, 8.5vw, 4rem);
  height: auto;
  aspect-ratio: 78 / 144;
  overflow: hidden;
}

.game-header .brand-logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0.35rem 0.65rem rgba(0, 0, 0, 0.24));
}

.game-header .brand-logo::before,
.game-header .brand-logo::after {
  display: none;
}

.screen-wheel .game-header .brand-logo {
  transform: scale(1);
  transform-origin: center top;
  overflow: visible;
  transition: transform var(--wheel-spin-duration) var(--wheel-spin-ease);
}

.screen-wheel.is-wheel-spinning .game-header .brand-logo {
  transform: scale(1.55);
}

.screen-wheel.is-wheel-logo-held .game-header .brand-logo {
  transform: scale(1.55);
  transition: none;
}

.screen-prize.is-prize-from-wheel .game-header .brand-logo {
  transform: scale(1.55);
  transform-origin: center top;
  overflow: visible;
}

.game-header .round-pill {
  margin-top: 1.75rem;
  flex-shrink: 0;
}

.game-header .category {
  margin-top: 0.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.category-label {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

.category-value {
  color: var(--gold-light);
  font-weight: 600;
}

.screen:has(.game-header) {
  justify-content: flex-start;
  padding-top: var(--game-header-height);
}

.reset-dialog {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding:
    calc(1.25rem + var(--safe-top))
    calc(1.25rem + var(--safe-right))
    calc(1.25rem + var(--safe-bottom))
    calc(1.25rem + var(--safe-left));
  background: rgba(3, 27, 53, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: resetDialogIn 180ms ease both;
}

.reset-dialog__panel {
  width: min(100%, 34rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid rgba(243, 211, 122, 0.48);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(8, 43, 85, 0.98), rgba(3, 27, 53, 0.98));
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.42),
    0 0 2.2rem rgba(214, 169, 75, 0.18);
  text-align: center;
}

.reset-dialog__panel h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

.reset-dialog__panel p {
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.35;
}

.reset-dialog__actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.reset-dialog__button {
  min-height: clamp(3.6rem, 8svh, 4.7rem);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.085rem;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.reset-dialog__button:active {
  transform: scale(0.98);
}

.reset-dialog__button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 0.2rem;
}

.reset-dialog__button--secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.reset-dialog__button--primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 0.9rem 2rem rgba(215, 25, 32, 0.28);
}

.screen-body {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.8svh, 1.25rem);
}

.screen-question .screen-body,
.screen-answers .screen-body {
  justify-content: flex-start;
  padding-top: 0.75rem;
}

.screen-answers .screen-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1.5svh, 1rem);
}

.screen-answers .question-title {
  flex-shrink: 0;
}

.screen-answers .answers-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(0.75rem, 3svh, 1.5rem);
}

.screen-answers .answers-list {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(var(--answer-count, 6), minmax(0, 1fr));
  gap: clamp(0.45rem, 1svh, 0.7rem);
}

.screen-answers .answers-list .answer-btn,
.screen-answers .answers-list .wrong-btn {
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.85rem;
  text-wrap: balance;
  line-height: 1.08;
}

.screen-success .screen-body,
.screen-second-chance .screen-body,
.screen-end .screen-body,
.screen-prize .screen-body {
  justify-content: flex-start;
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.success-content,
.outcome-content {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: clamp(4rem, 16svh, 8rem);
  gap: clamp(0.75rem, 1.8svh, 1.25rem);
  text-align: center;
}

.screen-success .screen-body > .primary-btn,
.screen-second-chance .screen-body > .primary-btn,
.screen-end .screen-body > .primary-btn,
.screen-prize .screen-body > .primary-btn {
  max-width: 100%;
  flex-shrink: 0;
  margin-top: auto;
  align-self: center;
  margin-bottom: clamp(3.4rem, 7.5svh, 4.25rem);
}

.screen-body.is-body-leaving {
  animation: bodyLeave 280ms ease both;
  pointer-events: none;
}

.screen-body.is-body-entering {
  animation: bodyEnter 520ms ease both;
}

.game-header .round-pill.is-header-leaving,
.game-header .category.is-header-leaving {
  animation: headerMetaLeave 260ms ease both;
  pointer-events: none;
}

.game-header .round-pill.is-header-entering,
.game-header .category.is-header-entering {
  animation: headerMetaEnter 520ms ease both;
}

.screen:has(.game-header):not(.screen-question):not(.screen-answers) {
  justify-content: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 7.4rem);
  line-height: 1.08;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.085rem;
  text-wrap: balance;
  text-shadow: 0 0.35rem 1.5rem rgba(0, 0, 0, 0.28);
}

.lead {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.15rem, 2.6vw, 2rem);
  line-height: 1.25;
  font-weight: 650;
}

.primary-btn {
  width: min(100%, 32rem);
  min-height: clamp(4.7rem, 8.6svh, 6.4rem);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.085rem;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, scale 520ms ease, filter 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
  position: relative;
  overflow: hidden;
  animation: buttonGlow 8.5s ease-in-out 1.8s infinite;
}

.primary-btn::before {
  content: "";
  position: absolute;
  inset: -40% -70%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.56) 48%, transparent 60%);
  transform: translateX(-65%) rotate(8deg);
  animation: buttonShimmer 9.5s ease-in-out 1.8s infinite;
  pointer-events: none;
}

.ghost-action,
.answer-btn,
.wrong-btn {
  width: min(100%, 32rem);
  min-height: clamp(3.85rem, 7.1svh, 5.3rem);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.085rem;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, scale 520ms ease, filter 160ms ease, opacity 160ms ease, box-shadow 160ms ease;
}

.primary-btn {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: var(--blue-deep);
  box-shadow:
    0 1.15rem 3rem rgba(0, 0, 0, 0.34),
    0 0 1.8rem rgba(243, 211, 122, 0.28);
}

.ghost-action {
  min-height: 4.35rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.answer-btn {
  background: rgba(255, 255, 255, 0.96);
  color: var(--blue-deep);
  animation: answerIn 360ms ease both;
}

.screen-answers .answers-block .wrong-btn {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  background: var(--red);
  color: var(--white);
}

.screen-answers::after {
  display: none;
}

.wrong-mark {
  position: relative;
  flex-shrink: 0;
  width: min(8rem, 22vw, 18svh);
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow);
  animation: successMarkPop 480ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.wrong-mark__svg {
  width: 78%;
  height: auto;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.wrong-mark__line {
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}

.wrong-mark__line--a {
  animation: successCheckDraw 420ms cubic-bezier(0.33, 1, 0.42, 1) 420ms forwards;
}

.wrong-mark__line--b {
  animation: successCheckDraw 420ms cubic-bezier(0.33, 1, 0.42, 1) 560ms forwards;
}

.primary-btn:active,
.ghost-action:active,
.answer-btn:active,
.wrong-btn:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.primary-btn:hover,
.answer-btn:hover,
.ghost-action:hover {
  transform: translateY(-0.12rem);
}

.primary-btn.is-breathing {
  scale: var(--button-breathe-scale, 1.035);
  transition-duration: var(--button-breathe-transition, 620ms);
  will-change: scale;
}

.primary-btn.has-afterglow {
  box-shadow:
    0 1.15rem 3rem rgba(0, 0, 0, 0.34),
    0 0 4.8rem rgba(243, 211, 122, 0.58),
    0 0 0 0.72rem rgba(243, 211, 122, 0.1);
  transition-duration: var(--button-afterglow-transition, 920ms);
}

.primary-btn:disabled {
  opacity: 0.62;
  cursor: wait;
}

.round-pill,
.category {
  color: var(--gold-light);
  font-family: var(--font-body);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0;
}

.round-pill {
  margin-top: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(243, 211, 122, 0.48);
  border-radius: 999px;
  background: rgba(3, 27, 53, 0.48);
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.category {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
}

.question-title {
  max-width: 16ch;
  font-size: clamp(2.35rem, 6.3vw, 6rem);
  line-height: 1.14;
}

.question-title.is-medium {
  max-width: 20ch;
  font-size: clamp(2rem, 5.4vw, 4.8rem);
  line-height: 1.12;
}

.question-title.is-long {
  max-width: 24ch;
  font-size: clamp(1.65rem, 4.6vw, 3.6rem);
  line-height: 1.1;
}

.question-title.compact {
  max-width: 21ch;
  font-size: clamp(1.7rem, 4.6vw, 4rem);
  line-height: 1.16;
}

.question-title.compact.is-medium {
  max-width: 24ch;
  font-size: clamp(1.5rem, 4vw, 3.4rem);
  line-height: 1.12;
}

.question-title.compact.is-long {
  max-width: 28ch;
  font-size: clamp(1.35rem, 3.5vw, 2.85rem);
  line-height: 1.1;
}

.host-note {
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.15rem;
  font-weight: 650;
}

.timer-wrap {
  width: min(58vw, 22rem, 30svh);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.timer-ring {
  --progress: 1;
  --timer-color: rgb(72, 180, 98);
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--blue-deep) 0 58%, transparent 59%),
    conic-gradient(var(--timer-color) calc(var(--progress) * 360deg), rgba(255, 255, 255, 0.16) 0);
  box-shadow: inset 0 0 0 0.55rem rgba(255, 255, 255, 0.09), var(--shadow);
}

.timer-ring span {
  font-family: var(--font-body);
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--white);
}

.timer-ring.is-ending {
  animation: pulse 720ms ease-in-out infinite;
  background:
    radial-gradient(circle, var(--blue-deep) 0 58%, transparent 59%),
    conic-gradient(var(--red) calc(var(--progress) * 360deg), rgba(255, 255, 255, 0.16) 0);
}

.answers-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.5rem, 1.15svh, 0.75rem);
}

.answers-grid {
  width: 100%;
  display: grid;
  gap: clamp(0.5rem, 1.15svh, 0.75rem);
}

.success-mark {
  position: relative;
  flex-shrink: 0;
  width: min(8rem, 22vw, 18svh);
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: var(--shadow);
  animation: successMarkPop 480ms cubic-bezier(0.2, 0.82, 0.2, 1) both;
}

.success-mark__svg {
  width: 78%;
  height: auto;
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.success-mark__check {
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 7.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
  animation: successCheckDraw 620ms cubic-bezier(0.33, 1, 0.42, 1) 420ms forwards;
}

.success-mark__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.success-mark__sparkles i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 16%, rgba(243, 211, 122, 0.88) 17% 38%, transparent 42%),
    conic-gradient(
      from 0deg,
      transparent 0 14deg,
      rgba(255, 255, 255, 0.78) 20deg,
      transparent 30deg 74deg,
      rgba(243, 211, 122, 0.72) 82deg,
      transparent 92deg 156deg,
      rgba(255, 255, 255, 0.76) 164deg,
      transparent 176deg 360deg
    );
  transform: translate(-50%, -50%) scale(0.35);
}

.success-mark__sparkles i:nth-child(1) {
  animation: successSpark 780ms ease 540ms both;
  --spark-x: -125%;
  --spark-y: -135%;
  --spark-rot: -22deg;
}

.success-mark__sparkles i:nth-child(2) {
  animation: successSpark 820ms ease 580ms both;
  --spark-x: 130%;
  --spark-y: -120%;
  --spark-rot: 18deg;
}

.success-mark__sparkles i:nth-child(3) {
  animation: successSpark 760ms ease 620ms both;
  --spark-x: 145%;
  --spark-y: 20%;
  --spark-rot: 32deg;
}

.success-mark__sparkles i:nth-child(4) {
  animation: successSpark 800ms ease 660ms both;
  --spark-x: 95%;
  --spark-y: 135%;
  --spark-rot: 12deg;
}

.success-mark__sparkles i:nth-child(5) {
  animation: successSpark 780ms ease 700ms both;
  --spark-x: -110%;
  --spark-y: 125%;
  --spark-rot: -14deg;
}

.success-mark__sparkles i:nth-child(6) {
  animation: successSpark 840ms ease 740ms both;
  --spark-x: -145%;
  --spark-y: -5%;
  --spark-rot: -28deg;
}

.wheel-stage {
  width: min(78vw, 42rem, 46svh);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  margin: clamp(0.8rem, 2svh, 1.25rem) 0 0;
  filter: drop-shadow(0 1.5rem 3.5rem rgba(0, 0, 0, 0.42));
  container-type: inline-size;
  container-name: wheel-stage;
}

.wheel-stage::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 211, 122, 0.22) 0%, rgba(243, 211, 122, 0.08) 42%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.screen-wheel.is-wheel-spinning .wheel-stage::before {
  animation: wheelAura var(--wheel-spin-duration) ease-in-out infinite;
}

.wheel-stage::after {
  content: "";
  position: absolute;
  top: 0.8%;
  left: 50%;
  width: clamp(2.2rem, 6.6vw, 3rem);
  height: clamp(0.9rem, 2.6vw, 1.25rem);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(3, 27, 53, 0.38) 0%, rgba(3, 27, 53, 0.18) 46%, transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}

.screen-wheel {
  justify-content: flex-start;
}

.screen-wheel .screen-body {
  justify-content: flex-start;
  align-items: center;
  padding-top: 0;
}

.wheel-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.5svh, 1rem);
  text-align: center;
}

.wheel-content.is-wheel-leaving {
  animation: bodyLeave 280ms ease both;
  pointer-events: none;
}

.prize-result-content .prize-image,
.prize-result-content .image-fallback {
  width: min(12rem, 34vw);
}

.wheel {
  width: 100%;
  height: 100%;
  border: clamp(0.45rem, 2.4cqw, 0.85rem) solid var(--gold-light);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 0.2rem rgba(255, 255, 255, 0.28),
    inset 0 0 2.5rem rgba(0, 0, 0, 0.28),
    0 0.75rem 2rem rgba(0, 0, 0, 0.34),
    0 0 2.4rem rgba(243, 211, 122, 0.18);
  transition: transform var(--wheel-spin-duration) var(--wheel-spin-ease);
  z-index: 1;
}

.wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34) 0%, transparent 34%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.16) 0%, transparent 38%);
  pointer-events: none;
  z-index: 2;
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 2px solid rgba(3, 27, 53, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

.wheel-divider {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  pointer-events: none;
  z-index: 1;
}

.wheel-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8%;
  bottom: 8%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(3, 27, 53, 0.34) 48%,
    rgba(255, 255, 255, 0.32) 100%
  );
  box-shadow: 0 0 0.35rem rgba(0, 0, 0, 0.18);
}

.wheel-rim-marker {
  position: absolute;
  inset: 0;
  transform: rotate(var(--angle));
  pointer-events: none;
  z-index: 4;
}

.wheel-rim-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.85rem;
  width: clamp(0.52rem, 1.65vw, 0.82rem);
  height: 18%;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff2b8 0%, var(--gold-light) 36%, var(--gold) 100%);
  box-shadow:
    0 0.15rem 0.45rem rgba(3, 27, 53, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -0.12rem 0.22rem rgba(3, 27, 53, 0.22);
}

.wheel-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11%;
  transform: rotate(var(--angle));
  z-index: 3;
}

.wheel-label__chip {
  width: min(24cqw, 6.4rem);
  min-height: clamp(1.15rem, 6.5cqw, 2.35rem);
  display: grid;
  place-items: center;
  padding: 0.12em 0.28em;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: clamp(0.48rem, 3.4cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  transform: rotate(90deg);
  box-shadow:
    0 0.35rem 0.85rem rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

@supports not (width: 1cqw) {
  .wheel-label__chip {
    width: min(24%, 6.4rem);
    min-height: clamp(1.15rem, 7%, 2.35rem);
    font-size: clamp(0.48rem, 1.35vw, 0.78rem);
  }
}

.wheel-label__chip.is-tone-dark {
  color: var(--blue-deep);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
}

.wheel-label__chip.is-tone-light {
  color: var(--gold-light);
  background: linear-gradient(180deg, rgba(3, 27, 53, 0.92), rgba(8, 43, 85, 0.88));
  box-shadow:
    0 0.35rem 0.85rem rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.wheel-label__chip.is-lose {
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.94), rgba(8, 43, 85, 0.92));
}

.wheel-pointer {
  position: absolute;
  top: -0.1rem;
  z-index: 8;
  width: clamp(2.35rem, 7vw, 3rem);
  height: clamp(2.85rem, 8.2vw, 3.5rem);
  display: grid;
  place-items: start center;
  perspective: 8rem;
  filter:
    drop-shadow(0 0.65rem 0.55rem rgba(0, 0, 0, 0.34))
    drop-shadow(0 0.05rem 0.25rem rgba(243, 211, 122, 0.38));
}

.wheel-pointer::before {
  content: "";
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 94%, 10% 24%, 30% 9%, 50% 0, 70% 9%, 90% 24%);
  background:
    linear-gradient(90deg, rgba(3, 27, 53, 0.28), transparent 22%, transparent 78%, rgba(3, 27, 53, 0.28)),
    linear-gradient(145deg, #fff4bd 0%, var(--gold-light) 28%, var(--gold) 58%, #9e6b25 100%);
  box-shadow:
    inset 0 0.18rem 0.18rem rgba(255, 255, 255, 0.78),
    inset 0 -0.55rem 0.55rem rgba(3, 27, 53, 0.26);
  transform: rotateX(10deg);
  transform-origin: center 20%;
}

.wheel-pointer::after {
  content: "";
  position: absolute;
  top: 0.48rem;
  width: 56%;
  height: 58%;
  clip-path: polygon(50% 96%, 12% 12%, 34% 0, 50% 9%, 66% 0, 88% 12%);
  background:
    radial-gradient(circle at 38% 20%, rgba(255, 255, 255, 0.46), transparent 24%),
    linear-gradient(145deg, #ff4b4f 0%, var(--red) 48%, #8d0d12 100%);
  box-shadow:
    inset 0 0.16rem 0.18rem rgba(255, 255, 255, 0.42),
    inset 0 -0.45rem 0.45rem rgba(55, 0, 0, 0.32);
  transform: rotateX(12deg);
  transform-origin: center 15%;
}


.wheel-center {
  position: absolute;
  z-index: 4;
  width: 28%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.16) 0%, transparent 42%),
    linear-gradient(180deg, #0a3568, var(--blue-deep));
  border: clamp(0.22rem, 1.4cqw, 0.4rem) solid var(--gold-light);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 3.8cqw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.04rem;
  line-height: 1.05;
  box-shadow:
    0 0.6rem 2rem rgba(0, 0, 0, 0.34),
    inset 0 0 0 0.15rem rgba(255, 255, 255, 0.12),
    0 0 1.2rem rgba(243, 211, 122, 0.22);
}

@supports not (width: 1cqw) {
  .wheel-center {
    border-width: 0.3rem;
    font-size: clamp(0.55rem, 1.8vw, 0.95rem);
  }
}

.screen-wheel.is-wheel-spinning .wheel-center {
  animation: wheelHubPulse var(--wheel-spin-duration) ease-in-out infinite;
}

.wheel-result {
  width: min(100%, 34rem);
  min-height: 0;
}

.result-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: screenIn 320ms ease both;
}

.result-panel h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.prize-image {
  width: min(12rem, 34vw);
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}

.image-fallback {
  width: min(12rem, 34vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
  font-weight: 700;
}

@keyframes questionContentIn {
  from {
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@keyframes bodyLeave {
  to {
    opacity: 0;
    transform: translateY(-0.85rem);
  }
}

@keyframes bodyEnter {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerMetaLeave {
  to {
    opacity: 0;
    transform: translateY(-0.65rem);
  }
}

@keyframes headerMetaEnter {
  from {
    opacity: 0;
    transform: translateY(-0.65rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successMarkPop {
  0% {
    opacity: 0;
    transform: scale(0.72);
  }

  70% {
    opacity: 1;
    transform: scale(1.06);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes successCheckDraw {
  from {
    opacity: 1;
    stroke-dashoffset: 1;
  }

  to {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes successSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) scale(0.35) rotate(0deg);
  }

  30% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--spark-x), var(--spark-y)) scale(1) rotate(var(--spark-rot));
  }
}

@keyframes screenIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes resetDialogIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes introPop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introRise {
  from {
    opacity: 0;
    transform: translateY(1.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.55rem;
  }
}

@keyframes buttonGlow {
  0%,
  100% {
    box-shadow:
      0 1.15rem 3rem rgba(0, 0, 0, 0.34),
      0 0 1.2rem rgba(243, 211, 122, 0.24),
      0 0 0 0 rgba(243, 211, 122, 0.18);
  }
  50% {
    box-shadow:
      0 1.25rem 3.2rem rgba(0, 0, 0, 0.38),
      0 0 2.1rem rgba(243, 211, 122, 0.42),
      0 0 0 0.32rem rgba(243, 211, 122, 0.08);
  }
}

@keyframes buttonShimmer {
  0%,
  38% {
    transform: translateX(-65%) rotate(8deg);
  }
  68%,
  100% {
    transform: translateX(65%) rotate(8deg);
  }
}

@keyframes logoSpark {
  0%,
  18%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.52) rotate(calc(var(--spark-rotation, 0deg) - 10deg));
  }
  38% {
    opacity: 0.62;
    transform: translate(-50%, -50%) scale(0.88) rotate(calc(var(--spark-rotation, 0deg) + 8deg));
  }
  62% {
    opacity: 0.34;
    transform: translate(-50%, -50%) scale(0.78) rotate(calc(var(--spark-rotation, 0deg) + 24deg));
  }
  82% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95) rotate(calc(var(--spark-rotation, 0deg) + 38deg));
  }
}

@keyframes logoSparkSmall {
  0%,
  32%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(calc(var(--spark-rotation, 0deg) - 8deg));
  }
  50% {
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.82) rotate(calc(var(--spark-rotation, 0deg) + 12deg));
  }
  72% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(calc(var(--spark-rotation, 0deg) + 28deg));
  }
}

@keyframes answerIn {
  from {
    opacity: 0;
    transform: translateY(0.7rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wheelAura {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@keyframes wheelHubPulse {
  0%,
  100% {
    box-shadow:
      0 0.6rem 2rem rgba(0, 0, 0, 0.34),
      inset 0 0 0 0.15rem rgba(255, 255, 255, 0.12),
      0 0 1.2rem rgba(243, 211, 122, 0.22);
  }

  50% {
    box-shadow:
      0 0.75rem 2.2rem rgba(0, 0, 0, 0.38),
      inset 0 0 0 0.15rem rgba(255, 255, 255, 0.18),
      0 0 2rem rgba(243, 211, 122, 0.42);
  }
}

@keyframes goldLine {
  0%,
  100% {
    opacity: 0.46;
    transform: scaleX(0.72);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

@media (min-width: 760px) {
  .screen {
    padding-inline: 3rem;
  }

  .screen-answers .answers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--answer-rows, 3), minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .screen-intro {
    padding-inline: clamp(0.65rem, 3vw, 1rem);
  }

  .screen-intro::before {
    inset: 0.55rem;
  }

  .screen-intro .brand-logo {
    width: min(21rem, 82vw, 40svh);
    height: min(21rem, 82vw, 40svh);
  }

  .screen-intro h1,
  .screen-intro .intro-title {
    font-size: clamp(2.35rem, 10.5vw, 3.6rem);
    max-width: min(100%, 24rem);
  }

  .screen-intro .lead {
    font-size: clamp(1.1rem, 4.6vw, 1.45rem);
    max-width: 22rem;
  }
}

@media (min-width: 1100px) and (orientation: landscape) {
  body {
    background:
      radial-gradient(circle at 18% 22%, rgba(214, 169, 75, 0.2), transparent 24rem),
      radial-gradient(circle at 86% 78%, rgba(215, 25, 32, 0.14), transparent 22rem),
      linear-gradient(125deg, var(--blue) 0%, var(--blue-deep) 62%);
  }

  .screen {
    min-height: 100vh;
    padding: 7rem 6vw 3.5rem;
    gap: 1rem;
  }

  .screen::before {
    inset: 2rem;
    border-radius: 28px;
  }

  .screen::after {
    left: 8vw;
    right: 8vw;
    bottom: 2.2rem;
  }

  .game-header {
    top: calc(2rem + 0.625rem);
  }

  .game-header .brand-logo {
    width: clamp(3.2rem, 4.8vw, 3.75rem);
  }

  .game-header .round-pill {
    margin-top: 1.5rem;
  }

  .game-header .category {
    margin-top: 0.45rem;
  }

  h1 {
    font-size: clamp(3.2rem, 5vw, 5.8rem);
  }

  .lead {
    font-size: clamp(1.2rem, 1.7vw, 1.75rem);
  }

  .primary-btn {
    width: min(100%, 28rem);
    min-height: 5.8rem;
    font-size: clamp(1.7rem, 2.5vw, 2.6rem);
  }

  .ghost-action,
  .answer-btn,
  .wrong-btn {
    width: min(100%, 28rem);
    min-height: 4.4rem;
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
  }

  .screen-intro .intro-card {
    width: min(88vw, 76rem);
    display: grid;
    grid-template-columns: minmax(17rem, 24rem) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    align-items: center;
    justify-items: start;
    justify-content: initial;
    column-gap: 4.5rem;
    text-align: left;
    padding: 0;
  }

  .screen-intro .brand-logo {
    grid-row: 1 / 4;
    width: min(24rem, 25vw);
    height: min(24rem, 25vw);
  }

  .screen-intro h1,
  .screen-intro .intro-title {
    max-width: min(100%, 30rem);
  }

  .screen-intro .lead {
    max-width: 31rem;
  }

  .screen-intro .primary-btn {
    width: min(100%, 30rem);
    margin-top: clamp(1.25rem, 4svh, 2.5rem);
  }

  .screen-question,
  .screen-answers {
    padding-top: var(--game-header-height);
  }

  .screen-question .screen-body,
  .screen-answers .screen-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 28rem);
    grid-template-rows: auto auto auto auto;
    align-content: center;
    align-items: center;
    justify-items: start;
    column-gap: 5rem;
    text-align: left;
    flex: 1;
    width: 100%;
  }

  .screen-answers .screen-body {
    align-content: stretch;
    align-items: stretch;
    grid-template-columns: minmax(22rem, 35rem) minmax(0, 48rem);
    grid-template-rows: minmax(0, 1fr);
    min-height: 0;
  }

  .screen-question .timer-wrap {
    grid-column: 2;
    grid-row: 1 / 5;
    width: min(26vw, 21rem);
    justify-self: center;
  }

  .screen-question .host-note {
    max-width: 28rem;
  }

  .screen-question .ghost-action {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .screen-answers .answers-block {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    align-self: stretch;
    min-height: 0;
  }

  .screen-answers .answers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--answer-rows, 3), minmax(0, 1fr));
  }

  .question-title {
    max-width: 18ch;
    font-size: clamp(3rem, 4.4vw, 5.2rem);
    line-height: 1.14;
  }

  .question-title.compact {
    max-width: 14ch;
    font-size: clamp(2.4rem, 3.4vw, 4rem);
    line-height: 1.16;
  }

  .question-title.is-medium {
    max-width: 22ch;
    font-size: clamp(2.5rem, 3.8vw, 4.4rem);
  }

  .question-title.is-long {
    max-width: 26ch;
    font-size: clamp(2rem, 3.2vw, 3.5rem);
  }

  .question-title.compact.is-medium {
    max-width: 24ch;
    font-size: clamp(2.1rem, 3vw, 3.2rem);
  }

  .question-title.compact.is-long {
    max-width: 28ch;
    font-size: clamp(1.85rem, 2.7vw, 2.75rem);
  }

  .screen-success,
  .screen-second-chance,
  .screen-end,
  .screen-prize {
    text-align: left;
    align-items: flex-start;
    padding-left: 12vw;
  }

  .screen-success .success-content,
  .screen-second-chance .outcome-content,
  .screen-end .outcome-content,
  .screen-prize .outcome-content {
    align-items: flex-start;
    text-align: left;
  }

  .screen-success .screen-body > .primary-btn,
  .screen-second-chance .screen-body > .primary-btn,
  .screen-end .screen-body > .primary-btn,
  .screen-prize .screen-body > .primary-btn {
    align-self: center;
  }

  .screen-success h1,
  .screen-second-chance h1,
  .screen-end h1,
  .screen-prize h1 {
    max-width: 14ch;
  }

  .screen-wheel {
    text-align: center;
    align-items: center;
    padding-left: 0;
  }

  .screen-wheel .wheel-content {
    align-items: flex-start;
    text-align: left;
    width: min(100%, 34rem);
  }

  .screen-wheel .wheel-content h1 {
    max-width: 10ch;
  }

  .result-panel {
    align-items: flex-start;
    text-align: left;
  }

  .result-panel h2 {
    max-width: 13ch;
    font-size: clamp(1.9rem, 2.7vw, 3rem);
  }

  .prize-image,
  .image-fallback {
    width: min(9rem, 12vw);
  }
}

@media (min-width: 1100px) and (orientation: portrait) {
  .screen {
    padding-inline: 7vw;
  }

  .question-title {
    max-width: 18ch;
    line-height: 1.14;
  }

  .answers-grid {
    width: min(100%, 56rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wheel-stage {
    width: min(62vw, 42rem, 46svh);
  }
}

@media (max-height: 760px) {
  .screen {
    gap: 0.55rem;
    padding-top: calc(0.8rem + var(--safe-top));
    padding-bottom: calc(0.9rem + var(--safe-bottom));
  }

  .screen::before {
    inset: 0.8rem;
    border-radius: 18px;
  }

  .screen::after {
    bottom: 1.1rem;
  }

  .intro-card {
    gap: 0.65rem;
    padding-block: 0.75rem;
  }

  .brand-logo {
    width: min(13rem, 48vw, 23svh);
    height: min(13rem, 48vw, 23svh);
  }

  .screen-intro .intro-card {
    gap: clamp(0.75rem, 2.5svh, 1.35rem);
    padding:
      clamp(1rem, 4svh, 2rem)
      clamp(0.85rem, 3.5vw, 1.25rem)
      clamp(0.9rem, 3.5svh, 1.5rem);
  }

  .screen-intro .brand-logo {
    width: min(19rem, 80vw, 36svh);
    height: min(19rem, 80vw, 36svh);
  }

  .screen-intro h1 {
    font-size: clamp(2.35rem, 8.5vw, 4rem);
  }

  .screen-intro .lead {
    font-size: clamp(1.05rem, 3.8vw, 1.4rem);
  }

  h1 {
    font-size: clamp(2.25rem, 6.2vw, 4.4rem);
  }

  .lead {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    line-height: 1.18;
  }

  .round-pill {
    padding: 0.45rem 0.9rem;
    font-size: clamp(0.95rem, 2.1vw, 1.2rem);
  }

  .timer-wrap {
    width: min(43vw, 14rem, 25svh);
  }

  .primary-btn {
    min-height: clamp(3.85rem, 7.1svh, 5.3rem);
    font-size: clamp(1.35rem, 3.8vw, 2rem);
  }

  .ghost-action,
  .answer-btn,
  .wrong-btn {
    min-height: 3.45rem;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
  }

  .screen-intro .primary-btn {
    margin-top: auto;
  }

  .question-title {
    font-size: clamp(1.95rem, 5vw, 3.4rem);
    line-height: 1.12;
  }

  .question-title.compact {
    font-size: clamp(1.45rem, 3.8vw, 2.5rem);
    line-height: 1.14;
  }

  .host-note {
    font-size: 0.95rem;
  }

  .answers-grid {
    gap: 0.45rem;
  }

  .wheel-stage {
    width: min(64vw, 20rem, 40svh);
  }

  .wheel-label__chip {
    width: min(22cqw, 5.4rem);
    min-height: clamp(1rem, 6cqw, 1.85rem);
    font-size: clamp(0.45rem, 3.1cqw, 0.72rem);
  }

  @supports not (width: 1cqw) {
    .wheel-label__chip {
      width: min(22%, 5.4rem);
      min-height: 1.35rem;
      font-size: clamp(0.45rem, 1.15vw, 0.68rem);
    }
  }

  .success-mark,
  .wrong-mark {
    width: min(5.5rem, 20vw, 16svh);
  }
}

@media (max-height: 640px) {
  .game-header {
    top: calc(var(--safe-top) + 0.8rem + 0.625rem);
  }

  .game-header .brand-logo {
    width: 3rem;
  }

  .game-header .round-pill {
    margin-top: 1.35rem;
  }

  .screen-intro .brand-logo {
    width: min(17rem, 76vw, 34svh);
    height: min(17rem, 76vw, 34svh);
  }

  .screen-intro h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
  }

  .screen-intro .lead {
    max-width: 24rem;
  }

  .screen-intro .primary-btn {
    margin-top: auto;
  }

  .screen-question,
  .screen-answers,
  .screen-wheel {
    gap: 0.45rem;
  }

  .success-mark,
  .wrong-mark {
    width: min(5rem, 18vw, 14svh);
  }

  .result-panel {
    gap: 0.55rem;
  }

  .result-panel h2 {
    font-size: clamp(1.45rem, 4vw, 2.25rem);
  }
}

@media (min-width: 1100px) and (orientation: landscape) and (max-height: 760px) {
  .screen {
    padding: 5rem 5vw 2.3rem;
  }

  .screen-intro .brand-logo {
    width: min(17rem, 20vw, 42svh);
    height: min(17rem, 20vw, 42svh);
  }

  .screen-intro h1 {
    font-size: clamp(2.8rem, 4vw, 4.2rem);
  }

  .screen-question .screen-body,
  .screen-answers .screen-body {
    column-gap: 3rem;
  }

  .screen-question .timer-wrap {
    width: min(20vw, 14rem, 34svh);
  }

  .question-title {
    font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  }

  .question-title.compact {
    font-size: clamp(2rem, 2.8vw, 3rem);
  }

  .screen-wheel {
    column-gap: 3rem;
  }

  .wheel-stage {
    width: min(30vw, 24rem, 68svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-question.is-content-waiting .game-header .round-pill,
  .screen-question.is-content-waiting .game-header .category,
  .screen-question.is-content-waiting .question-title,
  .screen-question.is-timer-waiting .question-timer-block {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .screen-question.is-content-revealing .game-header .round-pill,
  .screen-question.is-content-revealing .game-header .category,
  .screen-question.is-content-revealing .question-title,
  .screen-question.is-timer-revealing .question-timer-block {
    animation: none;
  }

  .screen-body.is-body-leaving,
  .screen-body.is-body-entering,
  .wheel-content.is-wheel-leaving,
  .game-header .round-pill.is-header-leaving,
  .game-header .category.is-header-leaving,
  .screen-wheel.is-wheel-spinning .game-header .brand-logo,
  .screen-wheel.is-wheel-spinning .game-header .brand-logo img,
  .screen-wheel.is-wheel-spinning .wheel-stage::before,
  .screen-wheel.is-wheel-spinning .wheel-center,
  .success-mark,
  .success-mark__check,
  .success-mark__sparkles i,
  .wrong-mark,
  .wrong-mark__line {
    animation: none;
  }

  .success-mark__check,
  .wrong-mark__line {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  .success-mark__sparkles i {
    opacity: 0;
  }

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