/* Maple Spin Room — tokens + utility-flavoured layout */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap");

:root {
  --white: #f7f9fc;
  --cool-white: #eef2f8;
  --slate: #4a648a;
  --slate-deep: #2f4566;
  --ink: #1a2433;
  --muted: #5a6b82;
  --lime: #b6f02c;
  --lime-ink: #2a3d08;
  --panel: #ffffff;
  --tint: #e4ebf5;
  --tint-strong: #d5e0ef;
  --game-bg: #121a28;
  --game-glow: #b6f02c;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --wrap: 1120px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --shadow-one: 0 10px 28px rgba(47, 69, 102, 0.12);
  --age-h: 36px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--white);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%234a648a' stroke-opacity='0.06' stroke-width='1.2'%3E%3Ccircle cx='20' cy='24' r='10'/%3E%3Ccircle cx='20' cy='24' r='3'/%3E%3Cpath d='M70 18h16v22H70zM78 18v22M70 29h16'/%3E%3Cpath d='M28 78l8-14 8 14h-5l-3 8-3-8z'/%3E%3Cpath d='M88 78c4-8 12-8 16 0-4 8-12 8-16 0z'/%3E%3C/g%3E%3C/svg%3E");
  padding-top: var(--age-h);
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1,
h2,
h3,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 var(--space-4);
  text-transform: uppercase;
}

h1,
.h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
}

h2,
.h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

p {
  margin: 0 0 var(--space-4);
  max-width: 68ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--slate-deep);
}

.muted {
  color: var(--muted);
}

.tabular {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

/* Layout utilities */
.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stack-sm {
  gap: var(--space-2);
}

.stack-lg {
  gap: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.cluster-between {
  justify-content: space-between;
}

.cluster-end {
  justify-content: flex-end;
}

.grid-2 {
  display: grid;
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.span-full {
  grid-column: 1 / -1;
}

.flow > * + * {
  margin-top: var(--space-4);
}

.section {
  padding-block: var(--space-7);
}

.section-lg {
  padding-block: var(--space-8);
}

.band {
  background: var(--cool-white);
}

.band-accent {
  background: var(--slate);
  color: var(--white);
}

.band-accent a {
  color: var(--lime);
}

.band-accent .muted {
  color: rgba(247, 249, 252, 0.78);
}

.rule {
  border: 0;
  border-top: 1px solid rgba(74, 100, 138, 0.22);
  margin: var(--space-6) 0;
}

.center {
  text-align: center;
}

.center p {
  margin-inline: auto;
}

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

/* Tiles — rounded friendly with accent header (wildcard) */
.tile {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tile__head {
  background: var(--slate);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.tile__head--pirate {
  background: #6b3e1f;
}

.tile__head--steam {
  background: #7a5a2a;
}

.tile__head--space {
  background: #243b6b;
}

.tile__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  background: var(--tint);
}

.tile__art {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--game-bg);
  box-shadow: 0 0 24px rgba(182, 240, 44, 0.25);
}

.tile__art img,
.tile__art svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0;
  text-transform: uppercase;
}

.tile p {
  margin: 0;
  color: var(--slate-deep);
  font-size: 0.98rem;
}

/* Buttons — capsule, uppercase label */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0.65rem 1.35rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.05);
  color: var(--lime-ink);
}

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

.btn--ghost {
  background: transparent;
  color: var(--slate-deep);
  box-shadow: inset 0 0 0 2px var(--slate);
}

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

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

.btn--slate:hover {
  color: #fff;
}

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

.btn[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(182, 240, 44, 0.85);
}

/* Badges — outlined accent */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1.5px var(--lime-ink);
  color: var(--lime-ink);
  background: rgba(182, 240, 44, 0.22);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--lime-ink);
}

.badge--light {
  color: #fff;
  background: rgba(182, 240, 44, 0.18);
  box-shadow: inset 0 0 0 1.5px var(--lime);
}

.badge--light::before {
  background: var(--lime);
}

/* Age bar — top pinned */
.age-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--age-h);
  display: flex;
  align-items: center;
  background: var(--ink);
  color: #eef2f8;
  font-size: 0.82rem;
  line-height: 1.35;
}

.age-bar a {
  color: var(--lime);
  font-weight: 700;
}

.age-bar .wrap {
  padding-block: 0.4rem;
}

/* Header / underline-tab nav */
.site-header {
  background: var(--panel);
  position: sticky;
  top: var(--age-h);
  z-index: 900;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand:hover {
  color: var(--ink);
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.coin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--tint);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.coin-chip strong {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--slate-deep);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  align-items: center;
}

.nav a {
  position: relative;
  color: var(--slate-deep);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--lime);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: var(--tint);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--ink);
}

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

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: var(--space-3);
  }

  .nav.is-open {
    display: flex;
  }
}

/* Hero — wide with vivid accent band */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: #fff;
  padding: var(--space-8) 0 var(--space-7);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 120%;
  background: radial-gradient(closest-side, rgba(182, 240, 44, 0.55), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

.stat {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  min-width: 140px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--lime);
}

.stat__label {
  font-size: 0.9rem;
  color: rgba(247, 249, 252, 0.85);
  margin-top: 0.25rem;
}

.hero h1 .accent {
  color: var(--lime);
}

/* Carousel showcase */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: var(--space-3);
  -webkit-overflow-scrolling: touch;
}

.carousel > * {
  scroll-snap-align: start;
}

.game-list {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 800px) {
  .game-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--tint);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.9rem 1rem;
  vertical-align: top;
}

table.data th {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  background: var(--slate);
  color: #fff;
}

table.data tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.55);
}

/* Prose FAQ blocks */
.faq-block {
  background: var(--tint);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.faq-block h3 {
  margin-bottom: var(--space-2);
}

.disclaimer {
  background: var(--cool-white);
  border-radius: var(--radius);
  padding: var(--space-5);
  font-size: 0.95rem;
  color: var(--slate-deep);
}

.disclaimer p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d7deea;
  padding: var(--space-7) 0 var(--space-6);
  margin-top: var(--space-7);
}

.site-footer a {
  color: var(--lime);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-meta {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(215, 222, 234, 0.8);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1100;
  max-width: 560px;
  margin-inline: auto;
  background: var(--panel);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-one);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

/* Game shell — neon panels on dark, site stays light */
.game-page {
  padding-block: var(--space-6);
}

.game-shell {
  background: var(--game-bg);
  color: #e8eef8;
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow:
    0 0 0 1px rgba(182, 240, 44, 0.18),
    0 0 40px rgba(182, 240, 44, 0.18),
    var(--shadow-one);
}

.game-shell h1,
.game-shell h2,
.game-shell h3 {
  color: #fff;
}

.game-shell .muted {
  color: rgba(232, 238, 248, 0.72);
}

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.game-panel {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  box-shadow: inset 0 0 24px rgba(182, 240, 44, 0.08);
}

.game-result[aria-live] {
  min-height: 1.5em;
  font-weight: 700;
  color: var(--lime);
}

.bet-control {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.bet-control label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.bet-control select,
.bet-control input,
.game-shell select,
.game-shell input[type="number"] {
  background: #0c121c;
  color: #fff;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.9rem;
  font: inherit;
  min-height: 42px;
}

.noscript-note {
  background: var(--tint);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: var(--space-2);
}

.figure-inline {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
}

.figure-inline figcaption {
  padding: var(--space-3) var(--space-4);
  font-size: 0.9rem;
  color: var(--muted);
}

.prose-cols {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 840px) {
  .prose-cols {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.note-card {
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: var(--radius);
  padding: var(--space-5);
}

.note-card a {
  color: var(--lime-ink);
  text-decoration: underline;
}

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

  .nav a::after,
  .btn {
    transition: none;
  }
}
