/* ==========================================================
   Foot League — football editorial theme
   Palette: deep pitch green, chalk white, electric lime, signal yellow
   ========================================================== */

:root {
  --pitch-900: #052613;
  --pitch-800: #0a3d20;
  --pitch-700: #11572d;
  --pitch-600: #1a7a3f;
  --pitch-500: #2aa15a;
  --chalk: #f4f7ee;
  --chalk-dim: #d9e0cd;
  --line: rgba(255,255,255,0.18);
  --ink: #0a0f0b;
  --ink-2: #2b3530;
  --muted: #6b7770;
  --accent: #d6ff3a;      /* electric lime */
  --accent-2: #ffd60a;    /* signal yellow (card stadium) */
  --danger: #e63946;      /* red card */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(5,38,19,0.06), 0 4px 12px rgba(5,38,19,0.06);
  --shadow-md: 0 10px 30px rgba(5,38,19,0.12);
  --shadow-lg: 0 30px 60px -20px rgba(5,38,19,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(214,255,58,0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(42,161,90,0.18), transparent 60%),
    linear-gradient(180deg, #f7f9f3 0%, #eef2e6 100%);
  background-attachment: fixed;
  font-family: 'Poppins', sans-serif;
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-logo {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.5px;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); letter-spacing: 1px; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-family: 'Poppins', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; letter-spacing: 0; text-transform: none; }

p { margin-bottom: 12px; }

a { color: var(--pitch-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pitch-800); text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pitch-700);
  background: rgba(42,161,90,0.1);
  padding: 6px 12px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pitch-500);
  box-shadow: 0 0 0 4px rgba(42,161,90,0.18);
}

/* ============== Cookie banner ============== */
.cookie-banner {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--chalk);
  background: var(--pitch-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner.hidden { display: none; }
.cookie-banner button {
  background: var(--accent);
  color: var(--ink);
  border: none;
  border-radius: 99px;
  padding: 6px 22px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.cookie-banner button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(214,255,58,0.4); }

/* ============== Navbar ============== */
.navbar {
  padding: 18px 0;
  background: transparent;
  position: relative;
  z-index: 5;
}
/* When navbar is overlaid on the dark hero (homepage) */
.navbar-on-hero {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding-top: 22px;
}
.navbar-on-hero + #hero { padding-top: 130px; }
.navbar-on-hero .site-logo a { color: #ffffff; }
.navbar-on-hero .nav-links a { color: rgba(255,255,255,0.92); }
.navbar-on-hero .nav-links a:hover { color: var(--accent); }
.navbar-on-hero .logo-accent { color: var(--accent); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.4rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.site-logo a:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex;
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(214,255,58,0.4);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: 'Bebas Neue', sans-serif; }
.logo-accent { color: var(--pitch-600); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.nav-links a {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 2px;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover { color: var(--pitch-700); text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-links a:hover::after { transform: scaleX(1); }

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

/* ============== Hero ============== */
#hero {
  background:
    linear-gradient(135deg, var(--pitch-900) 0%, var(--pitch-700) 100%);
  color: var(--chalk);
  overflow: hidden;
  padding: 96px 0 110px;
  border-bottom: 4px solid var(--accent);
}
#hero h1, #hero h2 { color: var(--chalk); }

/* Pitch markings background */
.hero-pitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 80px,
      rgba(255,255,255,0.03) 80px 160px
    );
}
.pitch-line {
  position: absolute;
  background: rgba(255,255,255,0.18);
}
.pitch-mid {
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
}
.pitch-circle {
  position: absolute;
  top: 50%; left: 50%;
  width: 240px; height: 240px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-spot {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pitch-box {
  position: absolute;
  top: 50%;
  width: 180px;
  height: 320px;
  border: 2px solid rgba(255,255,255,0.18);
  transform: translateY(-50%);
}
.pitch-box-left { left: 0; border-left: none; }
.pitch-box-right { right: 0; border-right: none; }

.hero-inner { position: relative; z-index: 2; }
.hero-text { max-width: 760px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--chalk);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 16px;
  border-radius: 99px;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214,255,58,0.25);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(0.85); }
}
.h1-accent {
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.h1-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 6px;
  background: rgba(214,255,58,0.25);
  z-index: -1;
}
.hero-text p {
  margin-top: 18px;
  font-size: 1.075rem;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 1px;
}
.meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
}

/* ============== Sections head ============== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-title { margin-bottom: 12px; }
.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============== Catalog ============== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(5,38,19,0.06);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pitch-700), var(--pitch-500), var(--accent));
  transform: translateY(-100%);
  transition: transform .3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(42,161,90,0.25);
}
.card:hover::before { transform: translateY(0); }

.game-card { display: flex; flex-direction: column; }
.game-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.game-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(5,38,19,0.18);
  border: 2px solid #fff;
}
.game-title-block { flex: 1; min-width: 0; }
.game-title-block h3 { margin-bottom: 4px; }
.developer {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* small role rating chip top-right (jersey number style) */
.rating {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
}

.badge {
  display: inline-block;
  background: rgba(42,161,90,0.12);
  color: var(--pitch-700);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
  font-weight: 700;
}
.game-desc {
  font-size: 14.5px;
  margin-bottom: 18px;
  color: var(--ink-2);
  flex: 0;
}
.screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.screenshots img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .4s;
}
.screenshots img:hover { transform: scale(1.03); }

.game-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.game-tags li {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--ink);
  background: #f1f5e8;
  border: 1px solid #dfe7d0;
  padding: 4px 10px;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ink);
  color: var(--chalk);
  border-radius: 99px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(214,255,58,0.25), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--pitch-800);
  box-shadow: 0 10px 24px rgba(5,38,19,0.25);
  color: var(--chalk);
  text-decoration: none;
}
.btn:hover::after { transform: translateX(100%); }
.btn-icon { flex-shrink: 0; color: var(--accent); }
.btn-full { width: 100%; display: flex; }

/* ============== About ============== */
.about-block { max-width: 820px; margin: 0 auto; text-align: center; }
.about-block p { margin-top: 14px; color: var(--ink-2); }
.about-block h2 { margin-bottom: 16px; }

/* ============== Subscribe ============== */
#subscribe {
  background: linear-gradient(180deg, transparent 0%, rgba(42,161,90,0.06) 100%);
}
.subscribe-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
  border: 1px solid rgba(5,38,19,0.08);
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(214,255,58,0.12), transparent 60%),
    #ffffff;
}
.subscribe-card .kicker { margin-left: auto; margin-right: auto; }
.subscribe-card h2 { text-align: center; }
.subscribe-card .subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.subscribe-card form { text-align: left; }
.form-row { margin-bottom: 16px; }
label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
}
input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8d6;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background .2s;
  background: #fafcf6;
  color: var(--ink);
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
  border-color: var(--pitch-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(42,161,90,0.12);
}

/* Consent checkbox */
.form-consent { margin-top: 6px; margin-bottom: 22px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
  padding: 12px 14px;
  background: #fafcf6;
  border: 1.5px solid #e2e8d6;
  border-radius: var(--radius-sm);
  transition: border-color .2s, background .2s;
}
.consent-label:hover {
  border-color: var(--pitch-500);
  background: #fff;
}
.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}
.consent-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #b6c1a5;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background .15s, border-color .15s, box-shadow .15s;
  position: relative;
}
.consent-box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .15s;
  margin-bottom: 2px;
}
.consent-label input[type="checkbox"]:checked ~ .consent-box {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(214,255,58,0.45);
}
.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(42,161,90,0.2);
}
.consent-text a {
  color: var(--pitch-700);
  text-decoration: underline;
  font-weight: 600;
}

.success {
  margin-top: 18px;
  padding: 14px;
  background: rgba(42,161,90,0.1);
  border: 1px solid rgba(42,161,90,0.25);
  color: var(--pitch-800);
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-align: center;
  font-weight: 600;
}
.success.hidden { display: none; }

/* ============== Legal pages ============== */
.legal-content { max-width: 820px; padding-top: 24px; margin: 0 auto; }
.legal-content h1 { font-size: 2.4rem; margin-bottom: 24px; }
.legal-content h2 { margin-top: 32px; font-size: 1.4rem; }
.legal-content p, .legal-content li { margin-bottom: 10px; color: var(--ink-2); }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }

/* ============== Footer ============== */
footer {
  background: var(--pitch-900);
  color: rgba(255,255,255,0.55);
  padding: 48px 0 36px;
  font-size: 13.5px;
  text-align: center;
  border-top: 4px solid var(--accent);
}
.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a { color: var(--chalk); font-weight: 500; letter-spacing: 0.5px; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
footer div { margin-top: 4px; }

/* ============== Responsive ============== */
@media (max-width: 900px) {
  .games-grid { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  #hero { padding: 64px 0 80px; }
  .pitch-box { width: 100px; height: 220px; }
  .pitch-circle { width: 180px; height: 180px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.6rem; }
  .hero-text p { font-size: 1rem; }
  .hero-meta { gap: 20px; }
  .meta-num { font-size: 1.8rem; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 1.5px; }
  .subscribe-card { padding: 28px 22px; }
  .card { padding: 22px; }
  .screenshots img { height: 150px; }
  .game-icon { width: 60px; height: 60px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .screenshots img { height: 130px; }
  .hero-meta { flex-direction: column; gap: 14px; }
}
