:root {
  --bg: #0b1c18;
  --grass-1: #0e5f42;
  --grass-2: #0b4e36;
  --line: rgba(255, 255, 255, 0.5);
  --goal: #e2f2ff;
  --accent: #f8d948;
  --danger: #ff6f59;
  --text: #f5f7f6;
  --muted: rgba(245, 247, 246, 0.65);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at top, #123428 10%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  display: grid;
  gap: 28px;
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.sub {
  margin: 0;
  color: var(--muted);
  max-width: 500px;
}

.sub-mobile {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
  min-width: 260px;
}

.stats-mobile {
  display: none;
}

.stat {
  background: rgba(12, 50, 40, 0.8);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.value {
  font-size: 1.6rem;
  font-weight: 600;
}

.arena {
  display: grid;
  place-items: center;
}

.pitch {
  position: relative;
  width: min(92vw, 820px);
  height: min(70vh, 520px);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
      90deg,
      var(--grass-1) 0,
      var(--grass-1) 60px,
      var(--grass-2) 60px,
      var(--grass-2) 120px
    );
  border: 3px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--line);
}

.pitch::before {
  width: 70%;
  height: 50%;
  top: 8%;
  border-radius: 0 0 40% 40%;
}

.pitch::after {
  width: 28%;
  height: 18%;
  top: 12%;
  border-radius: 0 0 40% 40%;
}

.goal {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 20%;
  border: 8px solid var(--goal);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  background: rgba(226, 242, 255, 0.05);
  box-shadow: inset 0 -10px 20px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.net {
  position: absolute;
  inset: 10% 6% 6%;
  background-image: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.25) 0,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.25) 0,
      rgba(255, 255, 255, 0.25) 1px,
      transparent 1px
    );
  background-size: 14px 14px;
  border-radius: 8px 8px 0 0;
  opacity: 0.7;
  box-shadow: inset 0 -14px 24px rgba(0, 0, 0, 0.25);
}

.goalie {
  position: absolute;
  top: 12%;
  width: 70px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
}

.player {
  position: absolute;
  bottom: 6%;
  width: 70px;
  height: 70px;
  background: linear-gradient(160deg, #f9f7f2 0%, #d7dee4 100%);
  border-radius: 50% 50% 12px 12px;
  border: 3px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.ball {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f2f2f2 45%, #b7b7b7 100%);
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35);
}

.aim-line {
  position: absolute;
  bottom: 16%;
  left: 50%;
  width: 2px;
  height: 130px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent);
  transform-origin: bottom center;
  opacity: 0.6;
}

.message {
  position: absolute;
  right: 24px;
  bottom: 20px;
  background: rgba(8, 24, 20, 0.7);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 8px;
}

.control-block {
  background: rgba(12, 50, 40, 0.7);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.control-block h2 {
  margin-top: 0;
}

.controls-mobile {
  display: none;
}

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  margin-right: 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

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

  .message {
    right: 12px;
    bottom: 12px;
    font-size: 0.7rem;
  }
}

@media (max-width: 860px) {
  .stats-desktop {
    display: none;
  }

  .stats-mobile {
    display: grid;
    margin-top: -6px;
  }

  .controls-desktop {
    display: none;
  }

  .controls-mobile {
    display: block;
  }

  .sub-desktop {
    display: none;
  }

  .sub-mobile {
    display: block;
  }
}
