:root {
  --grass-1: #0d7a36;
  --grass-2: #19a14a;
  --grass-3: #36c76b;
  --sky: #dff7ff;
  --card: rgba(255, 255, 255, 0.92);
  --ink: #123126;
  --muted: #4f6a5b;
  --accent: #ffe45c;
  --red: #ef4444;
  --red-dark: #c62828;
  --green: #22c55e;
  --green-dark: #15803d;
  --shadow: 0 20px 45px rgba(7, 57, 22, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(180deg, var(--sky) 0%, #b7f1c7 24%, #4dc96f 24%, #0b7133 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 8%, transparent 8% 16%),
    linear-gradient(180deg, transparent 0 72%, rgba(0, 0, 0, 0.08) 72% 100%);
  background-size: 180px 100%, 100% 100%;
  pointer-events: none;
  opacity: 0.25;
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.hero-card,
.quiz-card,
.mascot-card {
  border: 4px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(217, 255, 225, 0.92)),
    var(--card);
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Rubik Mono One", sans-serif;
  font-size: 12px;
  color: #0f6e35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.96;
}

.subtitle {
  margin: 14px 0 0;
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--muted);
}

.scoreboard {
  display: grid;
  gap: 14px;
  min-width: 190px;
}

.scorebox {
  background: linear-gradient(180deg, #0a7b38, #0d5f2d);
  color: white;
  border-radius: 22px;
  padding: 14px 18px;
  text-align: center;
}

.score-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.78;
}

.scorebox strong {
  display: block;
  margin-top: 2px;
  font-size: 1.6rem;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  margin-top: 22px;
}

.quiz-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(18, 140, 61, 0.96), rgba(11, 103, 45, 0.96));
  color: white;
}

.pitch-lines {
  position: absolute;
  inset: 14px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  pointer-events: none;
}

.pitch-lines::before,
.pitch-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.45);
}

.pitch-lines::before {
  top: 8%;
  bottom: 8%;
  width: 0;
}

.pitch-lines::after {
  top: 50%;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quiz-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 244, 126, 0.95);
  color: #2d3600;
  font-weight: 800;
}

.chip-light {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

h2 {
  position: relative;
  z-index: 1;
  margin: 22px 0 18px;
  max-width: 720px;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
}

.answers {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.answer-button,
.next-button {
  appearance: none;
  border: 0;
  border-radius: 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.answer-button {
  min-height: 112px;
  padding: 18px 16px;
  font-size: 1.05rem;
  color: white;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.answer-button:hover,
.next-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.04);
}

.answer-button:active,
.next-button:active {
  transform: translateY(1px);
}

.answer-button.correct-option {
  background: linear-gradient(180deg, var(--green), var(--green-dark));
}

.answer-button.wrong-option {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
}

.answer-button[disabled] {
  cursor: default;
  opacity: 0.82;
}

.feedback {
  position: relative;
  z-index: 1;
  min-height: 34px;
  margin: 18px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
}

.next-button {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding: 14px 20px;
  background: linear-gradient(180deg, #fff5a7, #ffd94f);
  color: #314100;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12);
}

.mascot-card {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(232, 255, 236, 0.88) 38%, rgba(205, 255, 217, 0.96) 100%);
}

.stadium-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 236, 116, 0.75), transparent 65%);
  filter: blur(10px);
}

.cat-scene {
  position: relative;
  width: min(100%, 320px);
  height: 320px;
  margin: 8px auto 16px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, #b6ecff 0 38%, #1fa24d 38% 100%);
  border: 4px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.cat-scene::before {
  content: "";
  position: absolute;
  inset: auto 0 36px;
  height: 3px;
  background: rgba(255, 255, 255, 0.7);
}

.cat-scene::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 140px;
  height: 72px;
  transform: translateX(-50%);
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-bottom: 0;
  border-radius: 100px 100px 0 0;
}

.cat {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 130px;
  height: 170px;
  transform: translateX(-50%);
}

.cat-head,
.cat-body,
.cat-ear,
.cat-arm,
.cat-leg,
.cat-tail,
.ball {
  position: absolute;
}

.cat-head {
  left: 24px;
  top: 8px;
  width: 84px;
  height: 80px;
  border-radius: 50% 50% 46% 46%;
  background: #ffb55a;
  border: 4px solid #1f2d25;
  z-index: 3;
}

.cat-ear {
  top: 0;
  width: 28px;
  height: 28px;
  background: #ffb55a;
  border: 4px solid #1f2d25;
  border-radius: 6px 24px 6px 24px;
  z-index: 2;
}

.cat-ear-left {
  left: 20px;
  transform: rotate(-24deg);
}

.cat-ear-right {
  right: 18px;
  transform: scaleX(-1) rotate(-24deg);
}

.cat-eye {
  position: absolute;
  top: 28px;
  width: 12px;
  height: 16px;
  border-radius: 999px;
  background: #1f2d25;
}

.cat-eye-left {
  left: 21px;
}

.cat-eye-right {
  right: 21px;
}

.cat-mouth {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 26px;
  height: 14px;
  transform: translateX(-50%);
  border-bottom: 4px solid #1f2d25;
  border-radius: 0 0 22px 22px;
}

.cat-tear {
  position: absolute;
  top: 42px;
  width: 8px;
  height: 20px;
  border-radius: 999px;
  background: #6ad9ff;
  opacity: 0;
}

.cat-tear-left {
  left: 14px;
}

.cat-tear-right {
  right: 14px;
}

.cat-body {
  left: 28px;
  top: 76px;
  width: 74px;
  height: 76px;
  border-radius: 38px 38px 22px 22px;
  background: #ffb55a;
  border: 4px solid #1f2d25;
}

.cat-arm {
  top: 90px;
  width: 18px;
  height: 56px;
  border-radius: 18px;
  background: #ffb55a;
  border: 4px solid #1f2d25;
  transform-origin: top center;
}

.cat-arm-left {
  left: 16px;
}

.cat-arm-right {
  right: 16px;
}

.cat-leg {
  top: 136px;
  width: 18px;
  height: 42px;
  border-radius: 18px;
  background: #ffb55a;
  border: 4px solid #1f2d25;
  transform-origin: top center;
}

.cat-leg-left {
  left: 38px;
}

.cat-leg-right {
  right: 38px;
}

.cat-tail {
  right: 4px;
  top: 96px;
  width: 50px;
  height: 16px;
  border: 4px solid #1f2d25;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: #ffb55a;
  transform-origin: left center;
}

.ball {
  left: 50%;
  bottom: 10px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, #1f2d25 0 18%, transparent 19%),
    radial-gradient(circle at 50% 8%, #1f2d25 0 11%, transparent 12%),
    radial-gradient(circle at 16% 42%, #1f2d25 0 10%, transparent 11%),
    radial-gradient(circle at 84% 42%, #1f2d25 0 10%, transparent 11%),
    radial-gradient(circle at 28% 83%, #1f2d25 0 10%, transparent 11%),
    radial-gradient(circle at 72% 83%, #1f2d25 0 10%, transparent 11%),
    #ffffff;
  border: 4px solid #1f2d25;
}

.mascot-text {
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #28583e;
}

[data-mood="dance"] .cat {
  animation: cat-bounce 0.55s ease-in-out infinite alternate;
}

[data-mood="dance"] .cat-arm-left {
  animation: arm-wave-left 0.35s ease-in-out infinite alternate;
}

[data-mood="dance"] .cat-arm-right {
  animation: arm-wave-right 0.35s ease-in-out infinite alternate;
}

[data-mood="dance"] .cat-leg-left,
[data-mood="dance"] .cat-leg-right {
  animation: kick 0.4s ease-in-out infinite alternate;
}

[data-mood="dance"] .cat-tail {
  animation: tail-wag 0.28s ease-in-out infinite alternate;
}

[data-mood="dance"] .ball {
  animation: ball-jump 0.45s ease-in-out infinite alternate;
}

[data-mood="cry"] .cat {
  animation: cat-sad 1.1s ease-in-out infinite;
}

[data-mood="cry"] .cat-mouth {
  border-bottom: 0;
  border-top: 4px solid #1f2d25;
  border-radius: 22px 22px 0 0;
}

[data-mood="cry"] .cat-tear {
  opacity: 1;
  animation: tear-drop 0.9s ease-in infinite;
}

[data-mood="cry"] .ball {
  animation: ball-still 0.9s ease-in-out infinite;
}

@keyframes cat-bounce {
  from {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }
  to {
    transform: translateX(-50%) translateY(-16px) rotate(2deg);
  }
}

@keyframes arm-wave-left {
  from {
    transform: rotate(-28deg);
  }
  to {
    transform: rotate(-74deg);
  }
}

@keyframes arm-wave-right {
  from {
    transform: rotate(28deg);
  }
  to {
    transform: rotate(74deg);
  }
}

@keyframes kick {
  from {
    transform: rotate(-8deg);
  }
  to {
    transform: rotate(24deg);
  }
}

@keyframes tail-wag {
  from {
    transform: rotate(-12deg);
  }
  to {
    transform: rotate(22deg);
  }
}

@keyframes ball-jump {
  from {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }
  to {
    transform: translateX(-50%) translateY(-24px) rotate(18deg);
  }
}

@keyframes cat-sad {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) rotate(-4deg);
  }
}

@keyframes tear-drop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(18px);
  }
}

@keyframes ball-still {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(0.96);
  }
}

@media (max-width: 900px) {
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .mascot-card {
    order: -1;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 16px 12px 28px;
  }

  .hero-card,
  .quiz-card,
  .mascot-card {
    border-radius: 22px;
  }

  .hero-card,
  .quiz-card {
    padding: 18px;
  }

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

  .answer-button {
    min-height: 92px;
    font-size: 1rem;
  }

  .cat-scene {
    height: 280px;
  }
}
