:root {
  --grass-deep: #0b3d2e;
  --grass: #145c43;
  --line: rgba(245, 240, 230, 0.22);
  --cream: #f5f0e6;
  --ink: #10231c;
  --accent: #e8c547;
  --ok: #7dcf8a;
  --bad: #e07a6a;
  --panel: rgba(8, 28, 22, 0.72);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 20% 10%, rgba(232, 197, 71, 0.12), transparent 45%),
    linear-gradient(160deg, #071a14 0%, var(--grass-deep) 45%, #0a2f24 100%);
}

.pitch {
  min-height: 100vh;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.8;
  font-size: 0.95rem;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.hero,
.round {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(1.35rem, 3.5vw, 2rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.platform-body .hero,
.platform-body .round {
  border-color: var(--qr-border);
  background: linear-gradient(145deg, rgba(20, 28, 43, 0.94), rgba(10, 14, 24, 0.96));
}

.game-hub {
  width: min(70rem, 100%);
  margin: 0 auto;
}

.hub-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.game-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.game-card {
  position: relative;
  display: flex;
  min-height: 19rem;
  padding: clamp(1.2rem, 3.5vw, 1.8rem);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(20, 92, 67, 0.92), rgba(7, 26, 20, 0.96));
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.24);
  transition: transform 220ms cubic-bezier(0.2, 0.75, 0.25, 1), border-color 180ms ease, box-shadow 220ms ease;
}

.game-card::after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -26%;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(245, 240, 230, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(245, 240, 230, 0.025);
  pointer-events: none;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(232, 197, 71, 0.72);
  box-shadow: 0 1.6rem 3.5rem rgba(0, 0, 0, 0.32);
}

.game-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.quiz-card {
  background:
    linear-gradient(155deg, rgba(58, 78, 133, 0.92), rgba(15, 27, 53, 0.97));
}

.competition-card {
  background:
    linear-gradient(155deg, rgba(27, 105, 130, 0.92), rgba(7, 35, 47, 0.97));
}

.game-card-number {
  color: var(--accent);
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.game-card-content {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  z-index: 1;
}

.game-card-content strong {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.game-card-content span {
  max-width: 24rem;
  color: rgba(245, 240, 230, 0.78);
  font-size: 1.02rem;
  line-height: 1.55;
}

.game-card-action {
  color: var(--accent);
  font-weight: 700;
  z-index: 1;
}

.mode-hub {
  width: min(62rem, 100%);
}

.mode-cards .game-card {
  min-height: 19rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--accent);
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  font-weight: 400;
  line-height: 1;
}

.lead,
.hint {
  font-size: 1.08rem;
  line-height: 1.65;
  color: rgba(245, 240, 230, 0.88);
}

.lead em,
.hint em {
  color: var(--accent);
  font-style: normal;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  margin-top: 1.25rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 11px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(232, 197, 71, 0.2);
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 17px 34px rgba(232, 197, 71, 0.27);
}

.btn:focus-visible,
.game-card:focus-visible,
.back a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.letter-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.letter-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  opacity: 0.8;
}

.letter {
  font-family: "Bebas Neue", sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
}

.answers {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slot {
  display: grid;
  gap: 0.35rem;
}

.pos {
  font-weight: 700;
}

.pos small {
  font-weight: 400;
  opacity: 0.65;
  margin-left: 0.35rem;
}

input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font: inherit;
}

input[type="text"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

input[type="text"]::placeholder {
  color: rgba(245, 240, 230, 0.4);
}

code {
  font-size: 0.9em;
  color: var(--accent);
}

.score {
  text-align: center;
  color: var(--accent);
}

.results {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.result {
  padding: 1rem 1.1rem;
  border-left: 4px solid transparent;
  border-radius: 0 13px 13px 0;
  background: rgba(255, 255, 255, 0.04);
}

.result.ok {
  border-left-color: var(--ok);
}

.result.bad {
  border-left-color: var(--bad);
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.your-answer,
.player-line,
.reason {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  color: rgba(245, 240, 230, 0.85);
}

.reason {
  color: var(--bad);
}

.back {
  margin-top: 1rem;
}

.back a {
  color: var(--cream);
  opacity: 0.75;
}

.back a:hover {
  color: var(--accent);
  opacity: 1;
}

@media (max-width: 720px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .game-cards {
    grid-template-columns: 1fr;
  }

  .game-card,
  .mode-cards .game-card {
    min-height: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .btn {
    transition: none;
  }
}
