/* ================================================
   Top Games Hub — Football Theme
   Palette: pitch green + chalk white + ref yellow
   ================================================ */

:root {
  --pitch-900: #052e16;
  --pitch-800: #064e2e;
  --pitch-700: #0a6b3e;
  --pitch-600: #15803d;
  --pitch-500: #22c55e;
  --pitch-400: #4ade80;
  --pitch-50:  #f0fdf4;
  --chalk:     #fafaf7;
  --ref:       #facc15;
  --ref-deep:  #ca8a04;
  --ink:       #0a1f14;
  --ink-soft:  #3a4a40;
  --line:      rgba(10, 31, 20, 0.08);
  --shadow-sm: 0 1px 3px rgba(5, 46, 22, 0.06), 0 1px 2px rgba(5, 46, 22, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(5, 46, 22, 0.18), 0 4px 8px rgba(5, 46, 22, 0.06);
  --shadow-lg: 0 24px 50px -12px rgba(5, 46, 22, 0.28);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  font-size: 15.5px;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(34,197,94,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(250,204,21,0.12), transparent 55%),
    linear-gradient(180deg, #f3faf5 0%, #eaf6ee 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .site-logo, .hero-kicker, .kicker {
  font-family: 'Libre Baskerville', Georgia, serif;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
h1 em {
  font-style: italic;
  color: var(--pitch-700);
  background: linear-gradient(180deg, transparent 62%, rgba(34,197,94,0.25) 62%, rgba(34,197,94,0.25) 92%, transparent 92%);
  padding: 0 4px;
}
h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}
h3 { font-size: 1.15rem; margin-bottom: 8px; }

p { margin-bottom: 12px; color: var(--ink-soft); }

a { color: var(--pitch-700); text-decoration: none; transition: color .15s; }
a:hover { color: var(--pitch-500); text-decoration: underline; text-underline-offset: 3px; }

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

/* ---- Kicker (small label above headings) ---- */
.kicker, .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pitch-700);
  margin-bottom: 14px;
}
.kicker::before, .hero-kicker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--pitch-500);
}

/* ---- Cookie banner ---- */
.cookie-banner {
  background: rgba(5, 46, 22, 0.96);
  color: #e8f5ee;
  padding: 14px 0;
  font-size: 14px;
  position: relative;
  z-index: 50;
}
.cookie-banner a { color: var(--pitch-400); }
.cookie-banner a:hover { color: #fff; }
.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner p { margin: 0; color: inherit; }
.cookie-banner button {
  background: var(--ref);
  color: var(--pitch-900);
  border: none;
  border-radius: 999px;
  padding: 9px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  transition: transform .15s, box-shadow .15s;
}
.cookie-banner button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(250,204,21,0.4); }

/* ---- Navbar ---- */
.navbar {
  padding: 22px 0 14px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(243, 250, 245, 0.78);
  border-bottom: 1px solid var(--line);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-logo {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-logo a { color: var(--ink); text-decoration: none; }
.site-logo a::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 4px;
  vertical-align: -4px;
  background: radial-gradient(circle at 35% 35%, #fff 0 35%, transparent 36%), var(--pitch-900);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1.5px #fff,
    0 2px 6px rgba(5,46,22,0.3);
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
}
.nav-links a:hover { color: var(--pitch-700); text-decoration: none; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--pitch-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ---- Sections ---- */
section { padding: 72px 0; }

/* ---- Hero ---- */
.hero {
  text-align: center;
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* Center circle */
    radial-gradient(circle at center 60%, transparent 78px, rgba(34,197,94,0.25) 78px, rgba(34,197,94,0.25) 80px, transparent 81px),
    /* Center spot */
    radial-gradient(circle at center 60%, rgba(34,197,94,0.4) 0 3px, transparent 4px),
    /* Center line */
    linear-gradient(180deg, transparent 60%, rgba(34,197,94,0.18) 60%, rgba(34,197,94,0.18) 60.2%, transparent 60.2%);
  pointer-events: none;
  opacity: 0.6;
}
.hero .container { max-width: 860px; position: relative; }
.hero-kicker {
  justify-content: center;
}
.hero p {
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 600px;
  margin: 36px auto 0;
}
.stat {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  backdrop-filter: blur(4px);
  transition: transform .2s, border-color .2s;
}
.stat:hover { transform: translateY(-2px); border-color: var(--pitch-400); }
.stat-num {
  display: block;
  font-family: 'Libre Baskerville', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--pitch-700);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---- Section head (catalog) ---- */
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head p { font-size: 16px; }

/* ---- About ---- */
.about { max-width: 800px; margin: 0 auto; }
.about p { font-size: 16px; }

/* ---- Catalog grid: 2 columns on desktop ---- */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}
@media (min-width: 860px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ---- Card ---- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, 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-500), var(--pitch-700), var(--ref));
  opacity: 0;
  transition: opacity .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(34,197,94,0.3);
}
.card:hover::before { opacity: 1; }

/* ---- Game card ---- */
.game-card { display: flex; flex-direction: column; }
.game-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.game-icon {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(5,46,22,0.15);
}
.game-title {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  line-height: 1.2;
}
.game-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  background: var(--pitch-50);
  color: var(--pitch-700);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.game-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 8px 0 18px;
  flex-grow: 1;
}
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.shots img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  background: #0a1f14;
  transition: transform .3s;
}
.shots img:hover { transform: scale(1.02); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pitch-700);
  color: #fff;
  border-radius: 12px;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  transition: transform .15s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 14px -2px rgba(10, 107, 62, 0.4);
}
.btn:hover {
  background: var(--pitch-600);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -4px rgba(10, 107, 62, 0.55);
}
.btn:active { transform: translateY(0); }
.btn-block { width: 100%; display: flex; }
.game-card .btn::after {
  content: "→";
  font-weight: 400;
  transition: transform .2s;
}
.game-card .btn:hover::after { transform: translateX(3px); }

/* ---- Subscribe ---- */
.subscribe-wrap { max-width: 580px; margin: 0 auto; }
.subscribe-card { padding: 38px 36px; }
.subscribe-card .kicker { display: flex; justify-content: center; }
.subscribe-card h2 { text-align: center; }
.subscribe-sub { text-align: center; color: var(--ink-soft); margin-bottom: 26px; }

.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e1e8e3;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  color: var(--ink);
}
input::placeholder { color: #a4b0a8; }
input:focus {
  border-color: var(--pitch-500);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.12);
}

/* ---- GDPR Consent checkbox ---- */
.consent-group { margin: 18px 0 20px; }
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent-box {
  display: inline-block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border: 2px solid #cfd8d2;
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: border-color .15s, background .15s, transform .1s;
  margin-top: 1px;
}
.consent-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .15s ease-out;
}
.consent-label:hover .consent-box { border-color: var(--pitch-500); }
.consent-label input[type="checkbox"]:checked ~ .consent-box {
  background: var(--pitch-600);
  border-color: var(--pitch-700);
}
.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(34,197,94,0.18);
  border-color: var(--pitch-500);
}
.consent-text { flex: 1; }
.consent-text a { color: var(--pitch-700); font-weight: 600; }
.consent-error {
  display: none;
  margin-top: 8px;
  padding-left: 34px;
  font-size: 12.5px;
  color: #b91c1c;
}
.consent-group.invalid .consent-box {
  border-color: #ef4444;
  background: #fef2f2;
}
.consent-group.invalid .consent-error { display: block; }

.success-msg {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--pitch-50);
  color: var(--pitch-800);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  font-size: 14px;
  display: none;
  text-align: center;
  font-weight: 600;
}
.success-msg.show { display: block; animation: slideIn .3s ease-out; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Footer ---- */
footer {
  background: var(--pitch-900);
  color: #cfe2d6;
  padding: 44px 0 36px;
  font-size: 14px;
  text-align: center;
  margin-top: 40px;
}
footer p { margin-bottom: 10px; color: inherit; }
footer a { color: var(--pitch-400); margin: 0 10px; font-weight: 500; }
footer a:hover { color: var(--ref); }

/* ---- Legal/text pages ---- */
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.page-content h2 { margin-top: 28px; font-size: 1.4rem; }
.page-content ul, .page-content ol { margin: 12px 0 12px 24px; color: var(--ink-soft); }
.page-content li { margin-bottom: 8px; }
.page-content p { color: var(--ink-soft); }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 24px;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 22px 78px;
  position: relative;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.steps li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pitch-700), var(--pitch-500));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Libre Baskerville', serif;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(10, 107, 62, 0.35);
}
.steps li h3 { margin-bottom: 6px; }
.steps li p { margin-bottom: 0; }

/* ---- Mobile ---- */
@media (max-width: 768px) {
  section { padding: 48px 0; }
  .hero { padding: 60px 0 70px; }
  .nav-links { gap: 16px; font-size: 13.5px; }
  .subscribe-card { padding: 28px 22px; }
  .hero-stats { grid-template-columns: 1fr; max-width: 320px; gap: 10px; }
  .stat { padding: 14px; }
  .shots img { height: 150px; }
  .card { padding: 22px; }
  .game-icon { width: 60px; height: 60px; border-radius: 14px; }
  .game-title { font-size: 1.1rem; }
}
