/* ===================================================================
   GamerSocial UK - Bento / Card-Stack Style
   Fonts: Bricolage Grotesque (display) + Inter (body)
   Icons: Phosphor | Animation: Anime.js
   =================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ---------- Custom Properties ---------- */
:root {
  /* Brand palette */
  --banana-cream: #fff05a;
  --golden-pollen: #ffd25a;
  --sandy-brown: #ffaa5a;
  --vibrant-coral: #ff785a;
  --carbon-black: #191919;

  /* Semantic colors */
  --color-primary: #ff785a;
  --color-primary-dark: #ef5d3d;
  --color-accent: #ffd25a;
  --color-accent-2: #ffaa5a;
  --color-bg: #fffaf0;
  --color-bg-2: #fff4dc;
  --color-surface: #ffffff;
  --color-surface-2: #fff8e8;
  --color-ink: #191919;
  --color-text: #2a2622;
  --color-text-muted: #6f655c;
  --color-border: #efe3cf;
  --color-success: #2e9e6b;
  --color-danger: #d8412f;

  /* Radii (Bento = generous rounding) */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadows (soft, layered) */
  --shadow-sm: 0 1px 2px rgba(25,25,25,.06), 0 2px 6px rgba(25,25,25,.05);
  --shadow-md: 0 6px 18px rgba(25,25,25,.08), 0 2px 6px rgba(25,25,25,.05);
  --shadow-lg: 0 20px 50px rgba(25,25,25,.14), 0 6px 16px rgba(25,25,25,.08);
  --shadow-glow: 0 0 0 0 rgba(255,120,90,.55);

  /* Transitions */
  --transition-fast: .15s ease;
  --transition-normal: .3s cubic-bezier(.4,0,.2,1);

  /* Layout */
  --header-h: 66px;
  --maxw: 1200px;

  /* Fonts */
  --font-display: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: clip;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -.01em;
}
::selection { background: var(--color-accent); color: var(--color-ink); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 18px;
}
.section { padding-block: 56px; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--color-primary-dark);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 5vw, 2.9rem); }
.section-sub { color: var(--color-text-muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .98rem;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--color-ink); color: #fff; }
.btn-solid:hover { background: #000; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn-outline:hover { background: var(--color-ink); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--color-surface-2); color: var(--color-ink); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-2); }

/* Play button - special pulse-glow */
.btn-play {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  background: linear-gradient(135deg, var(--banana-cream), var(--golden-pollen) 45%, var(--sandy-brown));
  background-size: 180% 180%;
  box-shadow: 0 0 0 0 rgba(255,170,90,.6);
  animation: pulse-glow 2.4s ease-in-out infinite;
  transition: transform var(--transition-fast), background-position var(--transition-normal);
}
.btn-play:hover {
  transform: scale(1.07);
  background-position: 100% 50%;
  box-shadow: 0 0 30px 4px rgba(255,170,90,.7);
  animation-play-state: paused;
}
.btn-play:active { transform: scale(.97); }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,170,90,.55); }
  50% { box-shadow: 0 0 26px 6px rgba(255,210,90,.55); }
}

.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1.06rem; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--color-ink); color: var(--color-accent);
}
.badge-soft { background: var(--color-surface-2); color: var(--color-primary-dark); border: 1px solid var(--color-border); }
.badge-18 { background: var(--vibrant-coral); color: #fff; }

/* ---------- Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===================================================================
   HEADER (solid, opaque, sticky)
   =================================================================== */
.site-header {
  position: sticky; top: 0;
  z-index: 100;
  isolation: isolate;
  height: var(--header-h);
  background: var(--color-ink);
  border-bottom: 1px solid #2c2c2c;
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--golden-pollen), var(--vibrant-coral));
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.18rem;
  color: #fff; letter-spacing: -.02em;
}
.brand-name span { color: var(--color-accent); }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-weight: 500; font-size: .95rem;
  color: #d8d2c8;
  padding: 8px 13px; border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.main-nav a:hover { color: #fff; background: #2a2a2a; }
.main-nav a.active { color: var(--color-ink); background: var(--color-accent); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 210px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all var(--transition-fast);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; color: var(--color-text);
  background: transparent; padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: .92rem;
}
.dropdown a:hover { background: var(--color-surface-2); color: var(--color-primary-dark); }

.header-cta { display: none; }

.hamburger {
  display: inline-flex; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block; width: 24px; height: 2.5px; border-radius: 2px;
  background: #fff; transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  bottom: 0;
  z-index: 99;
  background: var(--color-ink);
  padding: 20px 18px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1.08rem;
  color: #e8e2d8; padding: 14px 16px;
  border-radius: var(--radius-md);
  border-bottom: 1px solid #2a2a2a;
}
.mobile-nav a.active { color: var(--color-ink); background: var(--color-accent); }
.mobile-nav .mn-label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .1em;
  color: #8a8278; padding: 16px 16px 6px; border: none;
}
.mobile-nav .btn-play { width: 100%; margin-top: 18px; }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(255,210,90,.55), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255,120,90,.35), transparent 55%),
    var(--color-bg);
  padding-block: 48px 60px;
}
.hero-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.3rem, 8vw, 4.2rem);
  margin: 16px 0 18px;
}
.hero-title .hl {
  background: linear-gradient(120deg, var(--vibrant-coral), var(--sandy-brown));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.12rem; color: var(--color-text-muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-point { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--color-text); }
.hero-point i, .hero-point svg { color: var(--color-success); }

/* Hero visual = SVG bento scene */
.hero-visual {
  position: relative;
  width: 100%; max-width: 380px; margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.hero-visual svg { width: 100%; height: 100%; }
.float-card {
  position: absolute;
  filter: drop-shadow(0 14px 24px rgba(25,25,25,.18));
  --r: 0deg;
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: rotate(var(--r)) translateY(0); }
  50% { transform: rotate(var(--r)) translateY(-14px); }
}
.fc-1 { top: 4%; left: 4%; width: 41%; --r: -8deg; animation-delay: 0s; }
.fc-2 { top: 16%; right: 2%; width: 44%; --r: 7deg; animation-delay: .8s; }
.fc-3 { bottom: 4%; left: 14%; width: 46%; --r: -4deg; animation-delay: 1.6s; }
.fc-chip { bottom: 18%; right: 6%; width: 26%; --r: 12deg; animation-delay: .4s; }

/* ===================================================================
   BENTO GRID (signature layout)
   =================================================================== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.bento-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bento-item h3 { font-size: 1.3rem; margin-bottom: 8px; }
.bento-item p { color: var(--color-text-muted); font-size: .96rem; }
.bento-icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
}
.bento-icon i, .bento-icon svg { font-size: 26px; width: 26px; height: 26px; color: var(--color-primary); }
.bento-item.accent { background: linear-gradient(135deg, var(--golden-pollen), var(--sandy-brown)); border: none; color: var(--color-ink); }
.bento-item.accent h3, .bento-item.accent p { color: var(--color-ink); }
.bento-item.ink { background: var(--color-ink); border: none; }
.bento-item.ink h3 { color: #fff; }
.bento-item.ink p { color: #c8c2b8; }

/* ===================================================================
   GAME CARDS
   =================================================================== */
.games-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
.game-card {
  display: flex; flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.game-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--color-surface-2), var(--color-bg-2));
  border-bottom: 1px solid var(--color-border);
}
.game-card-media svg { width: 64%; height: 64%; }
.game-card-tag {
  position: absolute; top: 12px; left: 12px;
}
.game-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game-card-body h3 { font-size: 1.25rem; }
.game-card-body p { color: var(--color-text-muted); font-size: .93rem; flex: 1; }
.game-card-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  font-size: .76rem; font-weight: 600;
  background: var(--color-surface-2); color: var(--color-text-muted);
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}
.game-card-body .btn-play { margin-top: 6px; }

/* ===================================================================
   STEPS / HOW IT WORKS
   =================================================================== */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 2.6rem; line-height: 1;
  background: linear-gradient(135deg, var(--vibrant-coral), var(--sandy-brown));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--color-text-muted); font-size: .95rem; }

/* ===================================================================
   GAME SPOTLIGHT
   =================================================================== */
.spotlight {
  display: grid; gap: 28px; grid-template-columns: 1fr;
  align-items: center;
  background: var(--color-ink);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.spotlight h2 { color: #fff; }
.spotlight p { color: #c8c2b8; margin-top: 12px; }
.spotlight .eyebrow { background: #2a2a2a; border-color: #383838; color: var(--color-accent); }
.spotlight ul { margin: 18px 0; display: grid; gap: 10px; }
.spotlight li { display: flex; gap: 10px; align-items: flex-start; color: #ded8ce; font-size: .96rem; }
.spotlight li i, .spotlight li svg { color: var(--color-accent); flex-shrink: 0; margin-top: 2px; }
.spotlight-visual {
  background: linear-gradient(135deg, var(--golden-pollen), var(--vibrant-coral));
  border-radius: var(--radius-md);
  aspect-ratio: 4/3; display: grid; place-items: center; padding: 24px;
}
.spotlight-visual svg { width: 80%; height: 80%; }

/* ===================================================================
   WHY US / Comparison
   =================================================================== */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--color-surface); }
table.compare th, table.compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--color-border); }
table.compare thead th { font-family: var(--font-display); background: var(--color-surface-2); font-size: .95rem; }
table.compare th:first-child { width: 46%; }
table.compare .yes { color: var(--color-success); font-weight: 700; }
table.compare .no { color: var(--color-text-muted); }
table.compare tbody tr:last-child td { border-bottom: none; }
.col-highlight { background: rgba(255,210,90,.14); }

/* ===================================================================
   COMMUNITY CTA
   =================================================================== */
.community {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--vibrant-coral), var(--sandy-brown) 60%, var(--golden-pollen));
  border-radius: var(--radius-lg);
  padding: 44px 28px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.community h2 { color: var(--color-ink); font-size: clamp(1.7rem, 5vw, 2.6rem); }
.community p { color: #3a2c20; max-width: 560px; margin: 14px auto 24px; font-weight: 500; }
.community .stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 28px; }
.community .stat-row .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--color-ink); }
.community .stat-row .lbl { font-size: .82rem; color: #4a382a; font-weight: 600; }

/* ===================================================================
   FAQ Accordion
   =================================================================== */
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem;
  color: var(--color-ink);
}
.faq-q .chev { transition: transform var(--transition-fast); flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--transition-normal); }
.faq-a-inner { padding: 0 20px 18px; color: var(--color-text-muted); }
.faq-item.open .faq-a { max-height: 320px; }

/* ===================================================================
   STATS counters
   =================================================================== */
.stats-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.stat-box {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-box .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,6vw,2.6rem); color: var(--color-primary); }
.stat-box .lbl { color: var(--color-text-muted); font-size: .9rem; margin-top: 4px; }

/* ===================================================================
   DISCLAIMER block
   =================================================================== */
.disclaimer {
  margin: 40px 0 0;
}
.disclaimer-inner {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--color-surface-2);
  border: 1.5px dashed var(--color-accent-2);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.disclaimer-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--vibrant-coral); color: #fff;
}
.disclaimer-icon i, .disclaimer-icon svg { width: 24px; height: 24px; font-size: 24px; }
.disclaimer-body { font-size: .9rem; color: var(--color-text); }
.disclaimer-body strong { color: var(--color-ink); }
.disclaimer-body .badge-18 { margin-bottom: 8px; }
.disclaimer-body a { color: var(--color-primary-dark); font-weight: 600; text-decoration: underline; }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
  background: var(--color-ink);
  color: #c8c2b8;
  padding-block: 48px 28px;
  margin-top: 56px;
}
.footer-grid {
  display: grid; gap: 30px;
  grid-template-columns: 1fr;
}
.footer-about .brand-name { color: #fff; }
.footer-about p { margin-top: 14px; font-size: .92rem; color: #b0a89c; max-width: 360px; }
.footer-contacts { margin-top: 16px; display: grid; gap: 8px; }
.footer-contacts li { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: #c8c2b8; }
.footer-contacts i, .footer-contacts svg { color: var(--color-accent); flex-shrink: 0; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 9px; }
/* RULE 5: footer links contrast + weight + hover underline */
.site-footer a {
  color: var(--color-accent);
  font-weight: 500;
  transition: color var(--transition-fast);
}
.site-footer a:hover { color: var(--golden-pollen); text-decoration: underline; }
.footer-badges { display: flex; gap: 10px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.footer-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid #2c2c2c;
  display: flex; flex-direction: column; gap: 12px;
  font-size: .85rem; color: #9a9288;
}
.footer-bottom .mini-disc { color: #b0a89c; }
.footer-bottom .help-link a { color: var(--color-accent); text-decoration: underline; }

/* ===================================================================
   AGE GATE modal
   =================================================================== */
.age-gate {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(25,25,25,.86);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.age-gate.show { display: flex; }
.age-gate-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 34px 28px; max-width: 460px; width: 100%;
  box-shadow: var(--shadow-lg); text-align: center;
}
.age-gate-card .ag-mark {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--golden-pollen), var(--vibrant-coral));
}
.age-gate-card h2 { font-size: 1.6rem; margin-bottom: 10px; }
.age-gate-card p { color: var(--color-text-muted); font-size: .95rem; margin-bottom: 20px; }
.ag-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 18px; }
.ag-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary); }
.ag-check label { font-size: .9rem; color: var(--color-text); }
.ag-actions { display: flex; gap: 10px; }
.ag-actions .btn { flex: 1; }
.ag-error { color: var(--color-danger); font-size: .85rem; margin-bottom: 12px; display: none; }
.ag-error.show { display: block; }
.ag-leave { display: block; margin-top: 14px; font-size: .82rem; color: var(--color-text-muted); }

/* ===================================================================
   COOKIE banner
   =================================================================== */
.cookie-banner {
  position: fixed; left: 14px; right: 14px; bottom: 14px;
  z-index: 120;
  background: var(--color-ink); color: #e8e2d8;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column; gap: 14px;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: .88rem; color: #c8c2b8; }
.cookie-banner a { color: var(--color-accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: .9rem; }

/* ===================================================================
   FORMS (contacts)
   =================================================================== */
.form-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--color-ink); }
.field .req { color: var(--color-danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,120,90,.18);
}
.field textarea { min-height: 130px; resize: vertical; }
.check-field { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.check-field input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary); }
.check-field label { font-size: .9rem; color: var(--color-text); font-family: var(--font-body); font-weight: 400; }
.form-success {
  display: none; align-items: center; gap: 12px;
  background: rgba(46,158,107,.12); border: 1px solid var(--color-success);
  border-radius: var(--radius-md); padding: 16px; color: var(--color-success); font-weight: 600;
}
.form-success.show { display: flex; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact info cards */
.contact-info { display: grid; gap: 14px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; }
.contact-info-item .ci-icon { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-primary); }
.contact-info-item h4 { font-size: 1rem; margin-bottom: 3px; }
.contact-info-item p, .contact-info-item a { color: var(--color-text-muted); font-size: .92rem; }
.contact-info-item a:hover { color: var(--color-primary-dark); }

/* ===================================================================
   LEGAL / content pages
   =================================================================== */
.page-hero { background: linear-gradient(135deg, var(--color-surface-2), var(--color-bg-2)); padding-block: 44px; border-bottom: 1px solid var(--color-border); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
.page-hero p { color: var(--color-text-muted); margin-top: 10px; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin: 34px 0 12px; }
.legal h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal p { margin-bottom: 14px; color: var(--color-text); }
.legal ul { margin: 0 0 16px 22px; list-style: disc; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--color-primary-dark); text-decoration: underline; font-weight: 500; }
.legal .updated { color: var(--color-text-muted); font-size: .9rem; font-style: italic; }
.toc { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 30px; }
.toc h4 { margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; display: grid; gap: 7px; }
.toc a { font-weight: 500; }

/* ===================================================================
   GAME PAGE UI
   =================================================================== */
.game-intro { padding-block: 36px 8px; }
.game-intro h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
.game-intro p { color: var(--color-text-muted); margin-top: 12px; max-width: 680px; }
.howto { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 26px; }
.howto-step { display: flex; gap: 12px; align-items: flex-start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; }
.howto-step .hs-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-primary); }
.howto-step h4 { font-size: .98rem; margin-bottom: 2px; }
.howto-step p { font-size: .86rem; margin: 0; color: var(--color-text-muted); }

.game-stage {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 24px;
  max-width: 760px; margin-inline: auto;
}
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.stat-pill { background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px 8px; text-align: center; }
.stat-pill .sp-val { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--color-ink); }
.stat-pill .sp-lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin-top: 2px; }
.stat-pill.coins .sp-val { color: var(--color-primary); }

.game-board { min-height: 220px; display: grid; place-items: center; background: var(--color-bg-2); border-radius: var(--radius-md); padding: 24px 16px; margin-bottom: 20px; position: relative; overflow: hidden; }

.play-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 18px; }
.play-controls .field { margin-bottom: 0; flex: 1; min-width: 130px; }
.play-steppers { display: flex; gap: 6px; }
.play-steppers button { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--color-surface-2); border: 1.5px solid var(--color-border); font-weight: 700; font-family: var(--font-display); }
.play-steppers button:hover { background: var(--color-bg-2); }

.game-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.game-actions .btn-play { flex: 1; min-width: 140px; }

.result-display {
  margin-top: 18px; padding: 16px; border-radius: var(--radius-md);
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  min-height: 56px; display: grid; place-items: center;
  background: var(--color-surface-2); border: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.result-display.win { background: rgba(46,158,107,.14); border-color: var(--color-success); color: var(--color-success); }
.result-display.lose { background: rgba(216,65,47,.1); border-color: var(--color-danger); color: var(--color-danger); }
.result-display.neutral { color: var(--color-text-muted); }

.refill-wrap { margin-top: 16px; text-align: center; display: none; }
.refill-wrap.show { display: block; }
.refill-wrap p { color: var(--color-danger); font-weight: 600; margin-bottom: 10px; }

.game-disclaimer {
  margin-top: 22px; text-align: center;
  font-size: .84rem; color: var(--color-text-muted);
  background: var(--color-surface-2); border-radius: var(--radius-md);
  padding: 12px 16px; border: 1px solid var(--color-border);
}

@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.pop { animation: pop .45s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes shake { 0%,100%{transform:translateX(0);} 20%{transform:translateX(-8px);} 40%{transform:translateX(8px);} 60%{transform:translateX(-5px);} 80%{transform:translateX(5px);} }
.shake { animation: shake .45s ease; }

/* Playing cards */
.pcard {
  width: 84px; height: 118px; border-radius: 12px; background: #fff;
  border: 2px solid var(--color-border); box-shadow: var(--shadow-md);
  display: grid; place-items: center; position: relative; font-family: var(--font-display);
}
.pcard .rank { font-size: 1.8rem; font-weight: 800; }
.pcard.red { color: var(--vibrant-coral); }
.pcard.black { color: var(--carbon-black); }
.pcard .suit { font-size: 1.4rem; }
.card-row { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; }
.card-slot { text-align: center; }
.card-slot .slot-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 8px; font-weight: 600; }
.vs { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--color-text-muted); }

/* Reels */
.reels { display: flex; gap: 10px; justify-content: center; }
.reel {
  width: 80px; height: 96px; border-radius: var(--radius-md);
  background: #fff; border: 2px solid var(--color-border);
  display: grid; place-items: center; font-size: 2.6rem; overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(0,0,0,.06);
}
.reel.spinning { animation: reelblur .12s linear infinite; }
@keyframes reelblur { 0%{filter:blur(0);} 50%{filter:blur(2px);} 100%{filter:blur(0);} }

/* Dice */
.die {
  width: 76px; height: 76px; border-radius: 14px; background: #fff;
  border: 2px solid var(--color-border); box-shadow: var(--shadow-md);
  display: grid; grid-template: repeat(3,1fr)/repeat(3,1fr); padding: 11px; gap: 4px;
}
.die .pip { width: 12px; height: 12px; border-radius: 50%; background: var(--carbon-black); align-self: center; justify-self: center; }
.die.rolling { animation: roll .5s ease; }
@keyframes roll { 0%{transform:rotate(0) scale(1);} 50%{transform:rotate(180deg) scale(.85);} 100%{transform:rotate(360deg) scale(1);} }

/* Block tower */
.tower { display: flex; flex-direction: column-reverse; gap: 4px; align-items: center; width: 100%; }
.block {
  height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--golden-pollen), var(--sandy-brown));
  box-shadow: var(--shadow-sm);
}
.block.moving { background: linear-gradient(135deg, var(--vibrant-coral), var(--sandy-brown)); }

/* ---------- Reveal animation (for AOS-like) ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (min-width: 480px) {
  .container { padding-inline: 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; left: auto; right: 20px; bottom: 20px; max-width: 640px; }
}

@media (min-width: 768px) {
  .section { padding-block: 76px; }
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .hamburger { display: none !important; }
  .mobile-nav { display: none !important; }

  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero-visual { max-width: 480px; }

  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(160px, auto); }
  .bento-item.span-2 { grid-column: span 2; }
  .bento-item.row-2 { grid-row: span 2; }

  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .howto { grid-template-columns: repeat(2, 1fr); }
  .spotlight { grid-template-columns: 1fr 1fr; padding: 44px; }

  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }

  .contacts-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
}

@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: clamp(3rem, 5vw, 4.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
