/* UK social play hub — unique palette: mint, coral, deep indigo */
:root {
  --bg: #f4fbfb;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --mint: #2dd4bf;
  --mint-2: #5eead4;
  --coral: #fb7185;
  --coral-2: #fda4af;
  --indigo: #312e81;
  --indigo-soft: #4338ca;
  --lavender: #eef2ff;
  --warn-bg: #1e293b;
  --warn-fg: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius: 18px;
  --radius-pill: 999px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --focus: 0 0 0 3px rgba(45, 212, 191, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% -10%, #d1faf3 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #e0e7ff 0%, transparent 55%), var(--bg);
  line-height: 1.55;
}

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

a {
  color: var(--indigo-soft);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Critical notice */
.notice-strip {
  background: linear-gradient(90deg, #0f766e, #312e81 55%, #be123c);
  color: var(--warn-fg);
  padding: 12px 18px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-bottom: 3px solid rgba(255, 255, 255, 0.28);
}

.notice-strip strong {
  color: #fef08a;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  margin-inline: 8px;
  vertical-align: middle;
}

/* Shell */
.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  letter-spacing: -0.02em;
}

.fluff-pill {
  margin-left: auto;
  background: var(--lavender);
  border: 1px solid #c7d2fe;
  color: var(--indigo);
  font-weight: 650;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  width: 100%;
  justify-content: flex-end;
}

.nav a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
}

.nav a:hover {
  background: #ecfeff;
  color: var(--indigo-soft);
}

/* Hero */
.hero {
  padding: 56px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .fluff-pill {
    width: 100%;
    text-align: center;
    margin-left: 0;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .nav {
    justify-content: center;
  }
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #fb7185);
  color: #fff;
  box-shadow: 0 12px 30px rgba(251, 113, 133, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(251, 113, 133, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--indigo);
  border: 2px solid #c7d2fe;
}

.btn-ghost:hover {
  background: var(--lavender);
}

.hero-art {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.feature-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.feature-card img,
.feature-card .ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

.game-card {
  background: var(--surface);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.game-card .thumb {
  border-bottom: 1px solid var(--line);
  background: var(--lavender);
}

.game-card .body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.game-card p {
  margin: 0 0 14px;
  color: var(--muted);
  flex: 1;
  font-size: 0.98rem;
}

.btn-play {
  width: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #34d399, #22d3ee);
  color: #042f2e;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn-play:hover {
  filter: brightness(1.03);
}

/* Leaderboard */
.lb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .lb-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lb-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px dashed #cbd5e1;
}

.lb-card .name {
  font-weight: 700;
  margin: 0 0 6px;
}

.lb-card .score {
  margin: 0;
  color: var(--indigo-soft);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

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

.panel-soft {
  background: linear-gradient(135deg, #ecfeff, #eef2ff);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
}

.mini-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 650;
}

/* Footer */
.site-footer {
  background: #0b1220;
  color: #e2e8f0;
  margin-top: 48px;
  padding: 44px 0 110px;
}

.site-footer a {
  color: #c7d2fe;
}

.site-footer a:hover {
  color: #fda4af;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 28px;
}

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

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

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

.foot-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.foot-col h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.support-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.support-row a {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 8px 10px;
}

.support-row img {
  max-height: 28px;
  width: auto;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  display: none;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
}

.cookie-bar.is-visible {
  display: flex;
}

.cookie-bar p {
  margin: 0;
  color: var(--muted);
  flex: 1 1 260px;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}

.btn-accept {
  background: var(--indigo);
  color: #fff;
}

.btn-decline {
  background: #e2e8f0;
  color: var(--ink);
}

/* Dialog */
.play-dialog {
  width: min(960px, calc(100vw - 32px));
  border: none;
  border-radius: 22px;
  padding: 0;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.play-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.dialog-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.btn-close {
  border: none;
  background: #e2e8f0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.dialog-body {
  padding: 16px 18px 20px;
  max-height: min(72vh, 760px);
  overflow: auto;
}

.game-panel {
  display: none;
}

.game-panel.is-active {
  display: block;
}

/* In-game shared */
.game-frame {
  border-radius: 18px;
  border: 2px solid #c7d2fe;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  padding: 14px;
}

.game-canvas-wrap {
  position: relative;
  background: #ecfeff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #bae6fd;
}

.game-canvas-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}

.game-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.game-foot .status {
  font-weight: 700;
  color: var(--coral);
  min-height: 1.4em;
}

.game-title-inline {
  text-align: center;
  margin: 0 0 8px;
  color: var(--indigo);
}

.game-sub {
  text-align: center;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.btn-action {
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  background: linear-gradient(135deg, var(--coral), #fb7185);
  color: #fff;
}

.btn-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-eject {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}

.mult-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.mult-slot {
  background: #ffe4e6;
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  padding: 8px 4px;
  border: 1px solid #fda4af;
  color: #9f1239;
  font-size: 0.9rem;
}

/* Reactor */
.reactor-window {
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  border: 2px solid #ddd6fe;
  box-shadow: inset 0 0 0 3px rgba(167, 139, 250, 0.25);
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.reel {
  height: 220px;
  overflow: hidden;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  position: relative;
}

.reel-strip {
  will-change: transform;
}

.sym {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.sym svg {
  width: 100px;
  height: 100px;
}

/* Orbit */
.orbit-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1e1b4b;
  min-height: 280px;
}

.orbit-stage canvas {
  display: block;
  width: 100%;
  height: 280px;
}

.orbit-readout {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.orbit-controls {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.orbit-stake-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
}

.orbit-stake-field input {
  width: 96px;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid #bae6fd;
  font-family: var(--font);
  font-weight: 700;
}

/* Legal pages */
.page-hero {
  padding: 36px 0 10px;
}

.page-hero h1 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 820px;
  padding-bottom: 48px;
}

.prose h2 {
  margin-top: 28px;
  font-size: 1.25rem;
}

.prose ul {
  padding-left: 20px;
}

.prose li {
  margin: 6px 0;
}

/* 18+ age gate (shown until confirmed; same origin = all pages) */
body.age-gate-open {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.age-gate__card {
  width: min(460px, 100%);
  background: var(--surface);
  border-radius: 22px;
  padding: 28px 26px 26px;
  box-shadow: var(--shadow);
  border: 2px solid #c7d2fe;
  text-align: center;
}

.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #be123c, #312e81);
  border-radius: 16px;
  margin-bottom: 14px;
}

.age-gate__card h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.age-gate__card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.98rem;
}

.age-gate__note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 22px;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.age-gate__enter {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #34d399, #2dd4bf);
  color: #042f2e;
}

.age-gate__enter:hover {
  filter: brightness(1.05);
}

.age-gate__leave {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 12px;
  background: #e2e8f0;
  color: var(--ink);
}

.age-gate__leave:hover {
  background: #cbd5e1;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
