
:root {
  --maroon: #4a1426;
  --ink: #3d0f1f;
  --rose: #b4476f;
  --rose-dark: #8e2f55;
  --peach: #f6bd86;
  --pink: #ffc2dd;
  --cream: #fbf1e1;
  --good: #2e8b57;
  --bad: #d23c4b;

  --font-title: "Marcellus", Georgia, serif;
  --font-script: "Yellowtail", cursive;
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background: linear-gradient(180deg, var(--rose-dark) 0%, #c45f7c 45%, #e8957c 72%, var(--peach) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1800px;
  margin: 0 auto;
  padding: 28px clamp(20px, 3vw, 48px);
}

.logo {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 2px 2px 0 var(--maroon);
}

.on-air {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d6d;
  box-shadow: 0 0 10px #ff4d6d;
  animation: blink 1.6s infinite;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-areas:
    "title title"
    "tv    cta";
  align-items: center;
  gap: 32px clamp(48px, 8vw, 140px);
  max-width: 1800px;
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 16px clamp(20px, 3vw, 48px) 48px;
}

.hero-title {
  grid-area: title;
  text-align: center;
  animation: rise 0.8s ease-out both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--pink);
}

h1 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.script {
  display: inline-block;
  margin-left: 0.1em;
  font-family: var(--font-script);
  font-size: 1.7em;
  line-height: 0.6;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pink);
  text-shadow: 4px 4px 0 var(--maroon);
  transform: rotate(-8deg) translateY(0.1em);
}

.hero-cta {
  grid-area: cta;
  max-width: 440px;
  animation: rise 0.8s 0.3s ease-out both;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

.stats {
  display: flex;
  gap: 28px;
  margin: 26px 0 34px;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.btn {
  display: inline-block;
  padding: 18px 56px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: var(--rose);
  box-shadow: 0 7px 0 var(--maroon), 0 14px 24px rgba(61, 15, 31, 0.35);
  font-family: var(--font-title);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:hover {
  background: #c4527c;
  transform: translateY(-2px);
  box-shadow: 0 9px 0 var(--maroon), 0 18px 28px rgba(61, 15, 31, 0.4);
}

.btn:active {
  transform: translateY(6px);
  box-shadow: 0 1px 0 var(--maroon), 0 4px 10px rgba(61, 15, 31, 0.3);
}

.btn:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.tv-wrap {
  grid-area: tv;
  position: relative;
  display: flex;
  justify-content: center;
  animation: rise 0.8s 0.15s ease-out both;
}

.tv-wrap::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 228, 210, 0.45), transparent 65%);
}

.tv-box {
  position: relative;
  width: min(100%, 580px);
  animation: bob 6s ease-in-out infinite;
}

.tv-model {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  --poster-color: transparent;
  cursor: grab;
}

.tv-model:active {
  cursor: grabbing;
}

.credit {
  padding: 0 24px 24px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--ink);
  opacity: 0.75;
}

.credit a {
  color: inherit;
}

.cube {
  position: relative;
  width: var(--size);
  height: var(--size);
  transform-style: preserve-3d;
  animation: spin 9s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  border: 3px solid var(--rose);
  background: rgba(180, 71, 111, 0.12);
}

.front  { transform: translateZ(calc(var(--size) / 2)); }
.back   { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.right  { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.left   { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.top    { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }

.hero {
  position: relative;
  isolation: isolate;
}

.shape {
  position: absolute;
  z-index: -1;
  animation: drift 8s ease-in-out infinite;
}

.shape .face {
  border: 2px solid rgba(255, 194, 221, 0.7);
  background: rgba(255, 194, 221, 0.1);
}

.shape-1 { --size: 70px; top: 6%;  left: 4%; }
.shape-2 { --size: 44px; top: 30%; right: 6%; animation-delay: -3s; }
.shape-3 { --size: 56px; bottom: 8%; right: 38%; animation-delay: -5s; }

.shape-2 .cube { animation-duration: 12s; animation-direction: reverse; }
.shape-3 .cube { animation-duration: 15s; }

.page {
  max-width: 1700px;
  margin: 0 auto;
  padding: 16px clamp(20px, 3vw, 48px) 72px;
}

.page-title {
  text-align: center;
  margin-bottom: 56px;
  animation: rise 0.8s ease-out both;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  animation: rise 0.8s 0.15s ease-out both;
}

.step {
  padding: 28px 24px;
  border: 2px solid var(--maroon);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--maroon);
  color: var(--ink);
  transition: transform 0.2s ease;
}

.step:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--rose);
}

.step h2 {
  margin: 10px 0 8px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step p {
  font-size: 0.95rem;
  line-height: 1.55;
}

.levels {
  margin-top: 64px;
  text-align: center;
  animation: rise 0.8s 0.3s ease-out both;
}

.section-label {
  margin-bottom: 24px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--maroon);
}

.level-list {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.level-card {
  flex: 1;
  max-width: 260px;
  padding: 22px 16px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: rgba(180, 71, 111, 0.55);
}

.level-ch {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--pink);
}

.level-card h3 {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  text-shadow: 2px 2px 0 var(--maroon);
}

.level-card p {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.levels-note {
  max-width: 520px;
  margin: 28px auto 0;
  line-height: 1.6;
  color: var(--ink);
}

.page-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 48px;
}

.link-back {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.link-back:hover {
  color: var(--maroon);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .page {
    padding: 8px 20px 56px;
  }

  .page-title {
    margin-bottom: 36px;
  }

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

  .level-list {
    flex-direction: column;
    align-items: center;
  }

  .level-card {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}

.score-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.quiz {
  padding-bottom: 200px;
}

.quiz-head {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}

.progress {
  height: 12px;
  border: 2px solid var(--cream);
  border-radius: 999px;
  background: rgba(74, 20, 38, 0.3);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: var(--pink);
  transition: width 0.4s ease;
}

.progress-text {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.question-card {
  text-align: center;
}

.question-type {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--maroon);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pink);
}

.question-text {
  max-width: 800px;
  margin: 16px auto 0;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.options-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1500px;
}

.options-4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1700px;
}

.option {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 12px 12px 14px;
  border: 3px solid var(--maroon);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--maroon);
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.option:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: 8px 10px 0 var(--maroon);
}

.option:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.option:disabled {
  cursor: default;
}

.shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  background: #2a0a16;
  overflow: hidden;
}

.shot::before {
  content: attr(data-missing);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
  color: var(--pink);
}

.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-letter {
  display: block;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.options-4 .option-letter {
  font-size: 1.2rem;
}

.option.correct {
  border-color: var(--good);
  box-shadow: 6px 6px 0 var(--good);
}

.option.correct .option-letter {
  color: var(--good);
}

.option.correct .option-letter::after {
  content: " \2713  Correct";
}

.option.wrong {
  border-color: var(--bad);
  box-shadow: 6px 6px 0 var(--bad);
}

.option.wrong .option-letter {
  color: var(--bad);
}

.option.wrong .option-letter::after {
  content: " \2717  Your answer";
}

.feedback {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(760px, calc(100% - 32px));
  padding: 20px 24px;
  border: 3px solid var(--maroon);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 6px 6px 0 var(--maroon);
  color: var(--ink);
  transform: translateX(-50%);
  animation: pop-up 0.3s ease-out;
}

.feedback-title {
  font-family: var(--font-script);
  font-size: 2.2rem;
  line-height: 1.1;
}

.feedback.good .feedback-title {
  color: var(--good);
}

.feedback.bad .feedback-title {
  color: var(--bad);
}

.feedback-tip {
  margin-top: 4px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-small {
  flex-shrink: 0;
  padding: 14px 30px;
  font-size: 1rem;
  white-space: nowrap;
  cursor: pointer;
}

@keyframes pop-up {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 1100px) {
  .options-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .options-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .options,
  .options-3,
  .options-4 {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .quiz {
    padding-bottom: 300px;
  }

  .feedback {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    bottom: 12px;
    padding: 16px 18px;
  }

  .feedback-title {
    font-size: 1.8rem;
  }
}

button.btn {
  cursor: pointer;
}

.result-card {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 32px;
  border: 2px solid var(--maroon);
  border-radius: 28px;
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--maroon);
  text-align: center;
  color: var(--ink);
  animation: rise 0.8s 0.15s ease-out both;
}

.result-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rose-dark);
}

.result-score {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--maroon);
}

.result-total {
  font-size: 0.4em;
  color: var(--rose);
}

.result-percent {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--maroon);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.result-rank {
  margin: 22px 0 8px;
  font-family: var(--font-script);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--rose);
}

.result-message {
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.6;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 620px;
  margin: 32px auto 0;
  list-style: none;
  animation: rise 0.8s 0.3s ease-out both;
}

.stat-card {
  padding: 18px 12px;
  border: 2px solid var(--maroon);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 5px 5px 0 var(--maroon);
  text-align: center;
  color: var(--ink);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: var(--maroon);
}

.stat-num.good {
  color: var(--good);
}

.stat-num.bad {
  color: var(--bad);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .result-card {
    padding: 28px 20px;
  }

  .result-stats {
    gap: 12px;
  }

  .stat-num {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotateX(0deg) rotateY(0deg); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-24px); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) {
  .topbar {
    padding: 18px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "tv"
      "cta";
    padding: 8px 20px 56px;
    text-align: center;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .stats {
    justify-content: center;
  }

}

@media (max-width: 480px) {
  .logo {
    font-size: 1.6rem;
  }

  .eyebrow::before,
  .eyebrow::after {
    display: none;
  }

  .eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.75rem;
  }

  .btn {
    width: 100%;
    padding: 18px 24px;
  }

  .shape-3 {
    display: none;
  }

  .shape-1 {
    --size: 40px;
    top: 50%;
    left: 6%;
  }
}
