:root {
  --bg: #050505;
  --bg-elevated: #111111;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #f4f4f4;
  --muted: #9a9a9a;
  --accent: #e8e8e8;
  --warning-bg: #ffeb3b;
  --warning-fg: #1a1000;
  --warning-border: #f57f17;
  --focus: #90caf9;
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--warning-bg);
  color: var(--warning-fg);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0;
}

/* ——— Warning strip ——— */
.warning-global {
  position: relative;
  z-index: 20;
  background: linear-gradient(90deg, #ffe082 0%, #ffeb3b 35%, #fff176 70%, #ffe082 100%);
  color: var(--warning-fg);
  border-bottom: 4px solid var(--warning-border);
  box-shadow: 0 6px 24px rgba(245, 127, 23, 0.35);
}

.warning-global__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.warning-global__badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  background: #1a1000;
  color: #ffeb3b;
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1.1;
  text-align: center;
}

.warning-global__text {
  flex: 1;
  min-width: min(100%, 240px);
}

.warning-global__text strong {
  display: block;
  font-size: 1.05em;
  margin-bottom: 0.15rem;
}

.warning-global__sub {
  font-weight: 600;
  font-size: 0.85em;
  text-transform: none;
  opacity: 0.92;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.brand-link img {
  width: 36px;
  height: 36px;
}

.brand-link:hover {
  color: #fff;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: flex-end;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
  }

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

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

/* ——— Layout ——— */
main {
  position: relative;
  z-index: 1;
}

.section {
  padding: 3.5rem 1.25rem;
}

.section--tight-top {
  padding-top: 2.5rem;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.35rem;
  max-width: 36rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #cfcfcf;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pills li::before {
  content: "";
  width: 7px;
  height: 12px;
  border: solid #7cb342;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}

.hero-visual {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(145deg, #1a237e 0%, #0d1333 40%, #1b5e20 100%);
  position: relative;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(129, 199, 132, 0.35), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(100, 181, 246, 0.25), transparent 45%);
  pointer-events: none;
}

.hero-visual__mock {
  position: absolute;
  inset: 12%;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
}

.hero-visual__mock span {
  border-radius: 6px;
  background: linear-gradient(180deg, #5c6bc0, #3949ab);
  opacity: 0.85;
}

.hero-visual__mock span:nth-child(even) {
  background: linear-gradient(180deg, #ffb74d, #f57c00);
}

.section-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 0.98rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 820px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
  border-color: #444;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.game-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  overflow: hidden;
}

.game-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.game-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.game-card__body h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card__btn {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.95;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

a.game-card__btn:hover {
  filter: brightness(1.05);
  color: #0a0a0a;
}

.game-card__btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 2.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: #c8c8c8;
  margin: 0 0 1rem;
}

.inline-notice {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f57f17;
  background: rgba(255, 235, 59, 0.08);
  color: #ffe082;
  font-weight: 600;
  font-size: 0.92rem;
}

.pre-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* ——— Footer ——— */
.site-footer {
  position: relative;
  z-index: 1;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem 2rem;
}

.footer-top {
  max-width: 1120px;
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand img {
  width: 32px;
  height: 32px;
}

.footer-brand:hover {
  color: #fff;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-partners {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #222;
}

.footer-partners__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.footer-partners__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.footer-partners__row a {
  display: inline-flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.footer-partners__row a:hover {
  opacity: 1;
}

.footer-partners__row a[href*="begambleaware.org"],
.footer-partners__row a[href*="gamcare.org.uk"] {
  background: #f5f5f5;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.footer-partners__row img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-partners__row img[alt=""] {
  height: 36px;
}

.footer-legal {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: #6a6a6a;
  line-height: 1.55;
}

.footer-copy {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: #555;
}

.page-hero {
  padding: 2.5rem 0 1rem;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-hero .wrap > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}
