/* Blackjack UK marketing site. Colours match the app (mobile/src/theme.ts):
   gold is the one accent, Bebas Neue for headings only, system font for body. */

:root {
  --bg: #060a12;
  --bg-mid: #0c1422;
  --surface: #111827;
  --surface-inset: #0d1525;
  --surface-raised: #1e293b;
  --border: #1e2d42;
  --border-strong: #334155;
  --gold: #c9973a;
  --gold-dark: #b8832e;
  --gold-bright: #fbbf24;
  --text: #ffffff;
  --text-soft: #e2e8f0;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --red: #f87171;
  --green: #4ade80;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 50%, var(--bg) 100%) fixed;
  background-color: var(--bg);
  color: var(--text-soft);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: var(--text);
  margin: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--gold); color: var(--text); padding: 8px 12px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(6, 10, 18, 0.88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(201, 151, 58, 0.5); }
.brand span { font-family: var(--display); font-size: 26px; letter-spacing: 0.04em; line-height: 1; }
.brand b { color: var(--gold); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text-muted); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .btn { color: var(--text); }
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav .nav-cta { display: none; }
  .brand span { font-size: 22px; }
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 14px;
  font-family: var(--display); font-size: 21px; letter-spacing: 0.04em; line-height: 1;
  color: var(--text); border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); }
.btn-ghost { border-color: var(--border-strong); color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm { padding: 9px 14px; font-size: 17px; border-radius: 11px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: #000; border: 1px solid #a1a1aa; color: #fff;
  transition: transform 0.15s ease;
}
.store-badge:hover { text-decoration: none; transform: translateY(-1px); }
.store-badge svg { width: 28px; height: 28px; fill: #fff; flex: none; }
.store-badge small { display: block; font-size: 11px; line-height: 1.1; letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 21px; line-height: 1.1; font-weight: 600; letter-spacing: -0.01em; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: 72px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 75% 40%, rgba(234, 88, 12, 0.18), transparent 70%),
              radial-gradient(40% 50% at 20% 20%, rgba(201, 151, 58, 0.08), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(201, 151, 58, 0.12); border: 1px solid rgba(201, 151, 58, 0.4);
  color: var(--gold-bright); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(56px, 9vw, 104px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.lede { font-size: 19px; color: var(--text-muted); max-width: 34em; margin: 0 0 30px; }
.lede strong { color: var(--text-soft); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--text-faint); font-size: 14px; font-weight: 600; }
.trust span::before { content: "✓"; color: var(--gold); margin-right: 6px; }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.hero-art img {
  width: 100%; border-radius: 36px; border: 1px solid rgba(201, 151, 58, 0.35);
  box-shadow: 0 30px 80px -20px rgba(234, 88, 12, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.02);
}
.fan { position: absolute; left: -38px; bottom: -26px; display: flex; }
.fan .card { margin-left: -18px; }
.fan .card:nth-child(1) { transform: rotate(-14deg) translateY(10px); }
.fan .card:nth-child(2) { transform: rotate(-5deg); }
.fan .card:nth-child(3) { transform: rotate(5deg); }
.fan .card:nth-child(4) { transform: rotate(14deg) translateY(10px); }

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { width: min(340px, 82%); }
  .fan { left: -20px; }
}

/* ── Playing cards (CSS) ──────────────────────────────────────────────── */

.card {
  width: 64px; height: 90px; border-radius: 9px; flex: none;
  background: #fff; color: #0f172a;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6px 7px; font-weight: 800; line-height: 1;
}
.card .r { font-size: 20px; }
.card .s { font-size: 26px; align-self: flex-end; }
.card.red { color: #dc2626; }

/* ── Sections ─────────────────────────────────────────────────────────── */

section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(40px, 6vw, 58px); margin-bottom: 10px; }
.section-head p { color: var(--text-muted); margin: 0; font-size: 17px; }
.kicker { display: block; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }

.strip { padding: 0; }
.strip .cells {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.strip .item { background: var(--surface); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.strip .item b { font-family: var(--display); font-size: 24px; font-weight: 400; color: var(--text); letter-spacing: 0.03em; }
.strip .item span { color: var(--text-faint); font-size: 14px; line-height: 1.4; }
@media (max-width: 720px) { .strip .cells { grid-template-columns: 1fr; } }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.tile h3 { font-size: 28px; margin: 14px 0 6px; }
.tile p { margin: 0; color: var(--text-muted); font-size: 15px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201, 151, 58, 0.12); border: 1px solid rgba(201, 151, 58, 0.35); color: var(--gold-bright);
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Power cards */
.powers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.power {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px;
}
.power .card { width: 46px; height: 64px; padding: 4px 5px; box-shadow: none; }
.power .card .r { font-size: 16px; }
.power .card .s { font-size: 19px; }
.power h3 { font-size: 24px; }
.power p { margin: 2px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.45; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { position: relative; padding: 22px 22px 22px 70px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 20px; top: 20px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--text);
  font-family: var(--display); font-size: 22px;
}
.step h3 { font-size: 26px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-muted); font-size: 15px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* Rankings preview */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split h2 { font-size: clamp(40px, 6vw, 58px); margin-bottom: 14px; }
.split p { color: var(--text-muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.board { background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 14px; display: grid; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px;
}
.row.me { border-color: var(--gold); background: rgba(201, 151, 58, 0.1); }
.row .pos { width: 26px; text-align: center; font-family: var(--display); font-size: 24px; color: var(--text-muted); }
.row .pos.g1 { color: #fbbf24; } .row .pos.g2 { color: #cbd5e1; } .row .pos.g3 { color: #d97706; }
.row .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.row .who { flex: 1; min-width: 0; }
.row .who b { display: block; color: var(--text); font-size: 15px; }
.row .who span { color: var(--text-faint); font-size: 12px; font-weight: 600; }
.row .elo { font-family: var(--display); font-size: 26px; color: var(--gold); }

/* CTA band */
.band {
  text-align: center; padding: 48px 24px; border-radius: 26px;
  background: radial-gradient(80% 120% at 50% 0%, rgba(201, 151, 58, 0.18), transparent 70%), var(--surface);
  border: 1px solid rgba(201, 151, 58, 0.35);
}
.band h2 { font-size: clamp(42px, 7vw, 66px); margin-bottom: 10px; }
.band p { color: var(--text-muted); margin: 0 auto 26px; max-width: 32em; }
.band .cta-row { justify-content: center; }

/* ── Inner pages ─────────────────────────────────────────────────────── */

.page { padding: 48px 0 72px; }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(48px, 8vw, 72px); margin-bottom: 8px; }
.page-head p { color: var(--text-muted); margin: 0; }

.prose h2 { font-size: 32px; margin: 40px 0 10px; }
.prose h3 { font-size: 24px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text-muted); }
.prose strong { color: var(--text-soft); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 0; padding: 14px 16px; margin: 18px 0;
}

.contact-card {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 22px; border-radius: var(--radius); margin-bottom: 40px;
  background: radial-gradient(90% 140% at 0% 0%, rgba(201, 151, 58, 0.14), transparent 70%), var(--surface);
  border: 1px solid rgba(201, 151, 58, 0.35);
}
.contact-card .icon { width: 54px; height: 54px; }
.contact-card h2 { font-size: 30px; }
.contact-card p { margin: 2px 0 12px; color: var(--text-muted); }

/* FAQ / rules accordions */
.acc { display: grid; gap: 10px; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
details[open] { border-color: var(--border-strong); }
summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; color: var(--text); font-size: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
details .body { padding: 0 18px 18px; color: var(--text-muted); font-size: 15px; }
details .body p { margin: 0 0 10px; }
details .body ul { margin: 0 0 10px; padding-left: 20px; }
details .body li { margin: 5px 0; }
details .body strong { color: var(--text-soft); }
summary .card { width: 34px; height: 46px; padding: 3px 4px; box-shadow: none; }
summary .card .r { font-size: 13px; }
summary .card .s { font-size: 14px; }

.label { color: var(--text-faint); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin: 36px 0 12px; }
.label:first-child { margin-top: 0; }

.chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; margin: 4px 0 10px; border-radius: 10px; background: var(--bg); }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 6px; background: var(--surface-raised); color: var(--text); font-weight: 700; font-size: 14px; }
.chip.red i { color: var(--red); font-style: normal; }
.chip i { font-style: normal; }
.ok { color: var(--green); font-weight: 800; }
.no { color: var(--red); font-weight: 800; }

.callout { border-radius: 10px; padding: 12px 14px; margin: 10px 0 0; font-size: 14px; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.25); color: var(--text-soft); }
.callout b { color: var(--gold-bright); display: block; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }

.objective {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(201, 151, 58, 0.35);
}
.objective h3 { font-size: 26px; }
.objective p { margin: 4px 0 0; color: var(--text-muted); }

.preset { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 18px; }
.preset div { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.preset div:last-child { border-bottom: 0; }
.pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.pill.on { color: var(--green); background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.pill.off { color: var(--text-muted); background: rgba(100, 116, 139, 0.15); border: 1px solid rgba(100, 116, 139, 0.3); }
.onoff { display: grid; gap: 8px; }
.onoff div { border-radius: 10px; padding: 10px 12px; }
.onoff .on { background: rgba(34, 197, 94, 0.07); border: 1px solid rgba(34, 197, 94, 0.18); }
.onoff .off { background: rgba(100, 116, 139, 0.07); border: 1px solid rgba(100, 116, 139, 0.2); }
.onoff b { font-size: 12px; letter-spacing: 0.08em; }
.onoff .on b { color: var(--green); } .onoff .off b { color: var(--text-muted); }
.onoff p { margin: 2px 0 0 !important; color: var(--text-soft); }
.onoff small { color: var(--text-faint); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.toc a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-muted); font-weight: 600; font-size: 14px; }
.toc a:hover { color: var(--text); border-color: var(--gold); text-decoration: none; }

/* Rules page inside the app (/rules/?app=1): the app supplies the chrome. */
.in-app .site-header, .in-app .site-footer, .in-app .page-head, .in-app .skip { display: none; }
.in-app { scroll-padding-top: 16px; }
.in-app .page { padding: 16px 0 32px; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer { border-top: 1px solid var(--border); padding: 36px 0 44px; margin-top: 24px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--text-muted); font-weight: 600; font-size: 14px; }
.site-footer small { color: var(--text-faint); font-size: 13px; }
.disclaimer { width: 100%; color: var(--text-faint); font-size: 13px; margin: 0; }
