:root {
  --bg-dark: #071923;
  --bg-mid: #0f2d3d;
  --accent: #f2a900;
  --accent-2: #18b07a;
  --text: #f2f7f9;
  --muted: #b8cbd5;
  --line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, #134865 0%, var(--bg-dark) 60%);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 54vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(7, 25, 35, 0.92), rgba(15, 45, 61, 0.65)),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255,255,255,0.04) 58px 59px),
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(255,255,255,0.04) 58px 59px);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 5rem 0 4rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: 700;
}

h1, h2, h3 {
  font-family: "Oswald", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.05;
  margin-top: 0.4rem;
}

.subtitle {
  color: var(--muted);
  max-width: 62ch;
  margin: 1rem 0 1.8rem;
  font-size: 1.08rem;
}

.cta {
  display: inline-block;
  color: #001018;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 0.72rem 1.15rem;
  border-radius: 0.4rem;
}

.board-section { padding: 2rem 0; }

.section-subtitle { color: var(--muted); }

.controls {
  margin: 1rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

select {
  background: var(--bg-mid);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.4rem 0.6rem;
}

.pitch {
  position: relative;
  border: 2px solid var(--line);
  border-radius: 0.7rem;
  width: min(100%, 560px);
  aspect-ratio: 68 / 105;
  margin: 0 auto;
  background:
    linear-gradient(180deg, #1e9c4f, #187f40),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 2px, transparent 2px 86px);
  overflow: hidden;
}

.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,0.45);
}

.pitch::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  transform: translateY(-50%);
}

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

.pitch-mark {
  position: absolute;
  border: 2px solid rgba(255,255,255,0.45);
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.goal-box-top {
  top: 0;
  width: 44%;
  height: 14%;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.goal-box-bottom {
  bottom: 0;
  width: 44%;
  height: 14%;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.goal-top {
  top: -2px;
  width: 16%;
  height: 4%;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.goal-bottom {
  bottom: -2px;
  width: 16%;
  height: 4%;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.player {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--bg-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  cursor: grab;
  user-select: none;
  font-weight: 700;
}

.opponent-player {
  background: #7d1f1f;
}

.ball {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background-color: transparent;
  background-image: url("assets/ball.svg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  cursor: grab;
  z-index: 5;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2.1rem 0 2.6rem;
}

.features article {
  background: rgba(8, 31, 44, 0.84);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 1rem;
}

.features p { color: var(--muted); }

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem 0 2rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .features {
    grid-template-columns: 1fr;
  }
}
