/* UK Jackpot District — tokens & resets */
:root {
  --white: #f7f9fc;
  --paper: #eef2f7;
  --ink: #142033;
  --slate: #1e3a5f;
  --slate-mid: #3a5a7a;
  --slate-soft: #d5e0ec;
  --lime: #b6ff3c;
  --lime-ink: #2a4a00;
  --muted: #5a6b7d;
  --line: #c5d0dc;
  --tile: #ffffff;
  --danger-soft: #fff4f0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --max: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-ui: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --radius: 0;
  --header-h: 72px;
  --header-h-compact: 52px;
  --age-h: 44px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  padding-bottom: calc(var(--age-h) + var(--space-3));
}

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

a {
  color: var(--slate);
  font-weight: 600;
  text-decoration: none;
}

a::before {
  content: "› ";
  color: var(--lime-ink);
  font-family: var(--font-ui);
}

a:hover {
  color: var(--slate-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.btn::before,
a.logo-link::before,
.nav-skip::before,
.safety-strip a::before,
.foot-nav a::before,
.card-cta a::before,
.logo-fallback + a::before {
  content: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-3);
  color: var(--slate);
}

p {
  margin: 0 0 var(--space-3);
  max-width: 70ch;
}

ul, ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.2em;
}

.wrap {
  width: min(100% - var(--space-4), var(--max));
  margin-inline: auto;
}

.kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-mid);
  margin: 0 0 var(--space-2);
}

.dash {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: var(--space-6) 0;
}

.tile {
  background: var(--tile);
  border-left: 4px solid var(--slate);
  padding: var(--space-4);
}

.tile--lime {
  border-left-color: var(--lime);
  background: linear-gradient(180deg, #f4ffe0 0%, var(--tile) 55%);
}

.tile--slate {
  background: var(--slate);
  color: var(--white);
  border-left-color: var(--lime);
}

.tile--slate h2,
.tile--slate h3,
.tile--slate .kicker {
  color: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28em 0.65em;
  background: rgba(30, 58, 95, 0.08);
  color: var(--slate);
  border-radius: var(--radius);
}

.badge::before {
  content: "";
  width: 0.45em;
  height: 0.45em;
  background: var(--lime);
  display: inline-block;
}

.badge--soft {
  background: rgba(182, 255, 60, 0.22);
  color: var(--lime-ink);
}

.score {
  font-family: var(--font-ui);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--slate);
}

.btn {
  --btn-arrow: "→";
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.btn::before {
  content: none;
}

.btn::after {
  content: var(--btn-arrow);
  display: inline-block;
  transform: translateX(-0.35rem);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  color: var(--ink);
  text-decoration: none;
  background: #c8ff66;
}

.btn:hover::after {
  transform: translateX(0);
  opacity: 1;
}

.btn--ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}

.btn--ghost:hover {
  background: var(--paper);
  color: var(--slate);
}

/* Header: logo only, sticky compact */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px dashed var(--line);
  transition: min-height 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header.is-compact {
  min-height: var(--header-h-compact);
  box-shadow: 0 1px 0 rgba(20, 32, 51, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - var(--space-4), var(--max));
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--slate);
}

.logo-link::before {
  content: none;
}

.logo-link img,
.logo-link svg {
  width: 40px;
  height: 40px;
  transition: width 0.25s ease, height 0.25s ease;
}

.site-header.is-compact .logo-link img,
.site-header.is-compact .logo-link svg {
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.site-header.is-compact .logo-text {
  font-size: 1.1rem;
}

.header-note {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Age + safety strip pinned bottom */
.age-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--slate);
  color: #e8eef6;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  line-height: 1.35;
  border-top: 3px solid var(--lime);
}

.age-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding: 0.55rem 0;
  min-height: var(--age-h);
}

.age-bar strong {
  color: var(--lime);
}

.age-bar a {
  color: #fff;
  font-weight: 600;
}

.age-bar a::before {
  content: "· ";
  color: var(--lime);
}

.safety-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.safety-strip span {
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 700;
}

.safety-strip a::before {
  content: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  right: var(--space-3);
  bottom: calc(var(--age-h) + var(--space-3));
  z-index: 60;
  width: min(360px, calc(100% - var(--space-5)));
  background: var(--tile);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--lime);
  padding: var(--space-4);
  box-shadow: 6px 6px 0 rgba(30, 58, 95, 0.18);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin-bottom: var(--space-3);
  max-width: none;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Footer with full nav */
.site-footer {
  background: var(--paper);
  border-top: 1px dashed var(--line);
  padding: var(--space-7) 0 var(--space-6);
  margin-top: var(--space-7);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
}

.foot-grid h3 {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.foot-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.foot-nav li {
  margin-bottom: 0.45rem;
}

.foot-nav a {
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.foot-nav a::before {
  content: "[ ";
  color: var(--slate-mid);
  font-weight: 500;
}

.foot-nav a::after {
  content: " ]";
  color: var(--slate-mid);
  font-weight: 500;
}

.footer-legal {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-legal p {
  max-width: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.notice-18 {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--lime);
  padding: 0.35rem 0.6rem;
}

.logo-fallback {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--slate);
}

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

  .cookie-banner {
    left: var(--space-3);
    right: var(--space-3);
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .logo-link img,
  .logo-link svg,
  .logo-text,
  .btn::after {
    transition: none;
  }
}
