:root {
  --navy: #0f1b2d;
  --navy-light: #1a2744;
  --gold: #d4af37;
  --gold-light: #e8c547;
  --green: #1a7a4c;
  --white: #ffffff;
  --grey-100: #f5f7fa;
  --grey-200: #e8ecf1;
  --grey-400: #94a3b8;
  --grey-600: #64748b;
  --grey-800: #334155;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 27, 45, 0.12);
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--grey-800);
  line-height: 1.6;
  background: var(--white);
}

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

.logo img {
  width: 44px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-card img,
.blog-card img,
.article-image img {
  width: 100%;
  height: auto;
}

.league-card img { aspect-ratio: 640 / 428; }
.blog-card img { aspect-ratio: 800 / 534; }
.article-image img { aspect-ratio: 1000 / 667; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Badge */
.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }

.logo:hover { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover { background: var(--gold-light); color: var(--navy); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-outline:hover { background: var(--white); color: var(--navy); }

.header-cta { flex-shrink: 0; }

/* Free to play bar */
.free-bar {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: 1200 / 801;
  min-height: 520px;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,27,45,0.92) 0%, rgba(15,27,45,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
.page-hero p { opacity: 0.85; max-width: 640px; font-size: 1.05rem; }

/* Sections */
section { padding: 4rem 0; }
section:nth-child(even):not(.hero):not(.cta-section) { background: var(--grey-100); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--grey-600);
  max-width: 600px;
  margin-inline: auto;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-200);
  transition: transform 0.2s;
}

.card:hover { transform: translateY(-4px); }

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p { color: var(--grey-600); font-size: 0.95rem; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
}

.step h3 { color: var(--navy); margin-bottom: 0.5rem; }
.step p { color: var(--grey-600); }

/* League cards */
.league-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-200);
}

.league-card img { width: 100%; height: 200px; object-fit: cover; aspect-ratio: 640 / 428; }
.league-card-body { padding: 1.5rem; }
.league-card h3 { color: var(--navy); margin-bottom: 0.5rem; }
.league-card p { color: var(--grey-600); font-size: 0.95rem; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.testimonial blockquote {
  font-style: italic;
  color: var(--grey-800);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.testimonial cite {
  color: var(--grey-600);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
}

/* Content pages */
.content-page { padding: 3rem 0 4rem; }

.content-page h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.content-page h3 {
  color: var(--navy-light);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.75rem;
}

.content-page p { margin-bottom: 1rem; color: var(--grey-800); }

.content-page ul, .content-page ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--grey-800);
}

.content-page li { margin-bottom: 0.5rem; }

.content-page .alert {
  background: #fff8e6;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

/* Scoring tables */
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

.score-table th,
.score-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
}

.score-table th {
  background: var(--navy);
  color: var(--white);
}

.score-table tr:nth-child(even) td { background: var(--grey-100); }

/* Prize list */
.prize-list { list-style: none; margin: 0; padding: 0; }

.prize-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--grey-200);
}

.prize-rank {
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  min-width: 80px;
  text-align: center;
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-200);
  transition: transform 0.2s;
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card img { width: 100%; height: 180px; object-fit: cover; aspect-ratio: 800 / 534; }

.blog-card-body { padding: 1.25rem; }

.blog-card .category {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.blog-card h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.5rem; }
.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--green); }
.blog-card p { color: var(--grey-600); font-size: 0.9rem; }

.article-meta {
  color: var(--grey-400);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.article-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.article-image img { width: 100%; max-height: 400px; object-fit: cover; aspect-ratio: 1000 / 667; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--grey-200);
}

.contact-card h3 { color: var(--navy); margin-bottom: 0.5rem; font-size: 1rem; }
.contact-card a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .footer-notice { font-size: 0.9rem; margin-top: 0.75rem; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.footer-brand .footer-notice a { color: var(--gold-light); }
.footer-brand .footer-notice a:hover { color: var(--white); }

.footer-address {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--gold); }

.footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.footer-disclaimer strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.footer-disclaimer a { color: var(--gold-light); }
.footer-disclaimer a:hover { color: var(--white); }

.page-hero .category {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}


.footer-copy {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  width: min(100% - 2rem, var(--max-width));
}

.cookie-inner p { font-size: 0.9rem; flex: 1; min-width: 200px; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-inline: auto;
}

.responsible-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.responsible-logos a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: background 0.2s;
}

.responsible-logos a:hover {
  background: rgba(255, 255, 255, 0.15);
}

.responsible-logos img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

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

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  }

  .main-nav.open { display: block; }

  .main-nav ul { flex-direction: column; }

  .header-inner { position: relative; flex-wrap: wrap; }

  .footer-grid { grid-template-columns: 1fr; }
}
