:root {
  --pitch-deep: #0b3d2c;
  --pitch: #14593f;
  --pitch-light: #1a7a55;
  --pitch-line: rgba(255, 255, 255, 0.18);
  --cream: #f5efe1;
  --cream-soft: #faf6ec;
  --ink: #0f1a14;
  --ink-soft: #4a5b52;
  --muted: #7a8a82;
  --gold: #d4a437;
  --gold-deep: #b8881e;
  --accent: #e63946;
  --line: rgba(11, 61, 44, 0.12);
  --shadow-sm: 0 1px 3px rgba(11, 61, 44, 0.08);
  --shadow-md: 0 10px 30px -10px rgba(11, 61, 44, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(11, 61, 44, 0.35);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1100px 700px at 90% -10%, rgba(212, 164, 55, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(20, 89, 63, 0.10), transparent 60%),
    linear-gradient(180deg, var(--cream-soft) 0%, var(--cream) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-logo {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; margin-bottom: 18px; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 14px; line-height: 1.15; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }

p { margin-bottom: 12px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

a { color: var(--pitch); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-deep); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(11, 61, 44, 0.08);
  color: var(--pitch-deep);
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* Cookie banner */
.cookie-banner {
  background: var(--ink);
  color: var(--cream);
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
}
.cookie-banner a { color: var(--gold); }
.cookie-banner a:hover { color: #fff; }
.cookie-banner button {
  margin-left: 14px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.cookie-banner button:hover { background: #fff; }

/* Navbar */
.navbar {
  padding: 20px 0 8px;
  background: transparent;
  position: relative;
  z-index: 5;
}
.navbar .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--pitch-deep);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 4px 14px -4px rgba(11, 61, 44, 0.5);
}
.logo-text { color: var(--ink); }

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.15s;
}
.nav-links a:hover {
  background: var(--pitch-deep);
  color: var(--cream);
}

/* Sections */
section { padding: 64px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}
.section-sub { color: var(--muted); font-size: 16px; }

/* Hero */
#hero {
  padding: 48px 0 80px;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 24px;
  background: linear-gradient(135deg, var(--pitch-deep), var(--pitch) 60%, var(--pitch-light));
  border-radius: var(--radius-lg);
  z-index: 0;
}
.pitch-lines {
  position: absolute;
  inset: 24px;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent 60px, rgba(255,255,255,0.04) 60px, rgba(255,255,255,0.04) 120px);
}
.pitch-lines::before,
.pitch-lines::after {
  content: '';
  position: absolute;
  border: 2px solid var(--pitch-line);
  pointer-events: none;
}
.pitch-lines::before {
  inset: 22px;
  border-radius: 16px;
}
.pitch-lines::after {
  left: 50%;
  top: 50%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#hero .container { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 48px 32px;
  color: var(--cream);
}
.hero-text .kicker {
  background: rgba(212, 164, 55, 0.18);
  color: var(--gold);
}
.hero-text h1 { color: #fff; }
.hero-accent {
  background: linear-gradient(90deg, var(--gold) 0%, #f6d27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-text p {
  color: rgba(245, 239, 225, 0.85);
  font-size: 16px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(245, 239, 225, 0.18);
  max-width: 480px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  color: rgba(245, 239, 225, 0.7);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}
.hero-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 320px;
  transform: rotate(-2deg);
}
.hero-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
}
.hero-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
}
.hero-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  font-weight: 700;
}
.hero-card-info strong {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 700;
}
.hero-card-meta { font-size: 12px; color: var(--muted); }

.hero-ball {
  position: absolute;
  right: 4%;
  bottom: -8%;
  width: 160px;
  height: 160px;
  opacity: 0.95;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.35));
  animation: bobble 4s ease-in-out infinite;
}
.hero-ball svg { width: 100%; height: 100%; }
@keyframes bobble {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-8deg); }
}

/* Cards */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Games grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.game-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pitch-deep), var(--pitch-light), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}
.game-card:hover::before { opacity: 1; }

.game-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 0;
}
.game-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.game-head img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.game-title-block { min-width: 0; }
.game-title-block h3 {
  margin-bottom: 4px;
  font-size: 1.1rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-dev { color: var(--muted); font-size: 13px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 61, 44, 0.08);
  color: var(--pitch-deep);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pitch-light);
}

.game-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding: 16px 24px 0;
  margin-bottom: 18px;
}
.game-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 24px;
  margin-bottom: 20px;
}
.game-shots img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: var(--pitch);
}
.game-card .btn {
  margin: 0 24px 24px;
  width: calc(100% - 48px);
}

/* Buttons */
.btn {
  background: var(--pitch-deep);
  color: #fff;
  border-radius: 999px;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 6px 16px -8px rgba(11, 61, 44, 0.5);
}
.btn:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(245, 239, 225, 0.4);
  box-shadow: none;
}
.btn-ghost:hover {
  background: rgba(245, 239, 225, 0.12);
  color: #fff;
  border-color: var(--cream);
}
.btn-full { width: calc(100% - 0px); padding: 13px; font-weight: 600; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-block { max-width: 640px; }

.scoreboard {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.scoreboard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(212, 164, 55, 0.18), transparent 60%);
  pointer-events: none;
}
.scoreboard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 225, 0.65);
  margin-bottom: 18px;
  position: relative;
}
.scoreboard-head span:first-child {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.scoreboard-head span:first-child::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.scoreboard-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.team {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 14px;
}
.team-flag {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}
.team-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  color: var(--cream);
  font-size: 15px;
}
.team-score {
  font-family: 'Sora', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.scoreboard-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 239, 225, 0.12);
  font-size: 12px;
  color: rgba(245, 239, 225, 0.6);
  text-align: center;
  letter-spacing: 0.06em;
  position: relative;
}

/* Contact form */
.contact-wrap { max-width: 580px; margin: 0 auto; }
.contact-card { padding: 36px; text-align: center; }
.contact-card .kicker { margin-left: auto; margin-right: auto; }
.contact-card form { text-align: left; }
.contact-sub { color: var(--muted); margin-bottom: 28px; }

.form-row { margin-bottom: 16px; text-align: left; }
label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ink); font-weight: 600; }
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
  color: var(--ink);
}
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder {
  color: #bcc4c0;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--pitch);
  box-shadow: 0 0 0 4px rgba(20, 89, 63, 0.12);
}

/* Consent checkbox */
.form-consent { margin: 18px 0 22px; }
.consent-label {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0;
}
.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.consent-box {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s;
  flex-shrink: 0;
}
.consent-box::after {
  content: '';
  width: 12px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.15s ease;
  margin-bottom: 3px;
}
.consent-label input[type="checkbox"]:checked + .consent-box {
  background: var(--pitch);
  border-color: var(--pitch);
}
.consent-label input[type="checkbox"]:checked + .consent-box::after {
  transform: rotate(-45deg) scale(1);
}
.consent-label input[type="checkbox"]:focus-visible + .consent-box {
  box-shadow: 0 0 0 4px rgba(20, 89, 63, 0.18);
}
.consent-text a { color: var(--pitch); font-weight: 600; }
.consent-text a:hover { color: var(--gold-deep); text-decoration: underline; }

.consent-label.invalid .consent-box {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.12);
}

.error-msg {
  display: none;
  margin-top: 8px;
  padding-left: 34px;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
}
.error-msg.show { display: block; }

.success-msg {
  margin-top: 16px;
  padding: 14px;
  background: rgba(20, 89, 63, 0.08);
  color: var(--pitch-deep);
  border-radius: 10px;
  text-align: center;
  font-weight: 500;
  display: none;
  border: 1px solid rgba(20, 89, 63, 0.15);
}
.success-msg.show { display: block; }

/* Knowledge base / legal content */
.content-block { max-width: 800px; }
.content-block h2 { margin-top: 28px; }
.content-block ul, .content-block ol { margin: 8px 0 16px 22px; }
.content-block li { margin-bottom: 6px; }

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 32px;
  font-size: 13.5px;
  background: linear-gradient(180deg, transparent, rgba(11, 61, 44, 0.05));
}
footer a {
  color: var(--pitch);
  margin: 0 10px;
  font-weight: 500;
}
footer a:hover { color: var(--gold-deep); }
footer p { margin-bottom: 8px; }

/* Tablet */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px;
  }
  .hero-image { min-height: 220px; }
  .hero-ball { width: 130px; height: 130px; right: 10%; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  section { padding: 44px 0; }
  #hero { padding: 28px 0 56px; }
  #hero::before, .pitch-lines { inset: 12px; }
  .hero-grid { padding: 28px 20px; }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .hero-stats > div:last-child { grid-column: span 2; }
  .games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .game-card-top { flex-direction: column; align-items: flex-start; }
  .nav-links {
    gap: 2px;
    padding: 4px;
  }
  .nav-links a {
    font-size: 13px;
    padding: 7px 12px;
  }
  .contact-card { padding: 26px 22px; }
  .hero-card { transform: rotate(0deg); }
}
