/* =========================================================
   GameBox — design system & site styles
   Sunset Bento — light, coral-and-gold, chunky rounded.
   ========================================================= */

:root {
  /* Sunset coral palette */
  --pink-50:  #fff3e8;
  --pink-100: #ffe1c2;
  --pink-200: #ffc38f;
  --pink-300: #ffa15c;
  --pink-400: #f87a44;
  --pink-500: #f2603a;
  --pink-600: #d94a25;
  --pink-700: #b23a1c;
  --pink-800: #8a2c15;

  --grad-hero: linear-gradient(135deg, #f2603a 0%, #e8502f 50%, #ffb648 100%);

  --ink-900: #2b1608;
  --ink-700: #5c3c26;
  --ink-500: #8a6a52;
  --ink-300: #c7ac97;

  --surface-0: #fffaf3;
  --surface-1: #fff3e6;
  --surface-2: #ffe9d6;
  --border: #ffd9b8;

  --success: #16a34a;
  --focus-ring: #ffc38f;

  /* Fixed (theme-independent) tones for surfaces that must stay dark, e.g. hero & footer */
  --dark-bg: #2b1608;
  --dark-text: #ffffff;
  --dark-text-muted: rgba(255, 255, 255, 0.75);

  /* Fixed dark text for elements that stay a solid white pill in every
     theme (e.g. the hero search bar), regardless of the theme's own ink tone */
  --on-light: #2b1608;

  --font-display: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 4px rgba(210, 80, 30, 0.08);
  --shadow-md: 0 10px 26px rgba(210, 80, 30, 0.16);
  --shadow-lg: 0 20px 50px rgba(210, 80, 30, 0.22);

  --container: 1240px;

  color-scheme: light;
}

/* GameBox: Sunset Bento — a light, warm coral-and-gold skin with
   extra-chunky rounded cards. Always renders light. */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface-0);
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink-900);
}

p { margin: 0 0 1em; }

a {
  color: var(--pink-600);
  text-decoration: none;
}
a:hover { color: var(--pink-700); text-decoration: underline; }

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

ul, ol { padding-left: 1.2em; }

button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* -------------------- Skip link -------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--pink-600);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
  color: #fff;
  text-decoration: none;
}

/* -------------------- Layout helpers -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(48px, 6vw, 88px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--surface { background: var(--surface-1); }
.section--tinted { background: var(--surface-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 { margin-bottom: 6px; }
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-600);
  background: var(--pink-100);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}
.section-sub { color: var(--ink-500); max-width: 60ch; }

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

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--pink-500);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--pink-600); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface-0);
  color: var(--pink-600);
  border-color: var(--pink-200);
}
.btn-ghost:hover { background: var(--pink-50); color: var(--pink-700); border-color: var(--pink-400); }
.btn-outline-light {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.24); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface-0) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  color: var(--ink-900);
}
.brand:hover { text-decoration: none; color: var(--ink-900); }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--grad-hero);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.2rem; }
.brand-tagline { font-size: 0.68rem; color: var(--ink-500); font-family: var(--font-body); font-weight: 500; letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
}
.main-nav a:hover { color: var(--pink-600); text-decoration: none; background: var(--pink-50); }
.main-nav a[aria-current="page"] { color: var(--pink-600); background: var(--pink-100); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-search {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 16px;
  gap: 6px;
}
.header-search input {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 150px;
  color: var(--ink-900);
}
.header-search input:focus { outline: none; width: 190px; transition: width 0.2s ease; }
.header-search button {
  background: var(--pink-500);
  color: #fff;
  border: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.header-search button:hover { background: var(--pink-600); }

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink-900); }

.nav-search { display: none; }

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface-0);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: var(--radius-sm); }
  .nav-toggle { display: flex; }

  .header-actions .header-search { display: none; }
  .nav-search.header-search {
    display: flex;
    width: 100%;
    margin-bottom: 14px;
  }
  .nav-search.header-search input { width: 100%; }
}

@media (max-width: 480px) {
  .brand-tagline { display: none; }
}

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(96px, 12vw, 150px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 90px;
  background: var(--surface-0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,120 400,0 600,40 C800,80 1000,10 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,120 400,0 600,40 C800,80 1000,10 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 780px; margin-inline: auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: #fff;
  margin-bottom: 16px;
  text-wrap: balance;
}
.hero p.lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.92);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 32px;
}
.hero-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-pill);
  padding: 6px;
  max-width: 560px;
  margin: 0 auto 26px;
  box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 6px 12px 18px;
  font-size: 1rem;
  color: var(--on-light);
  font-family: var(--font-body);
  text-overflow: ellipsis;
}
.hero-search input:focus { outline: none; }
.hero-search button {
  background: var(--pink-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 26px;
  height: 48px;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.hero-search button:hover { background: var(--pink-600); }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }

@media (max-width: 560px) {
  .hero-search { max-width: 100%; }
  .hero-search input { padding: 10px 4px 10px 14px; font-size: 0.92rem; }
  .hero-search button {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  .hero-search button .btn-label { display: none; }
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; }
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.85); }

/* -------------------- Category grid -------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.category-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pink-300);
}
.category-icon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--pink-100);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.category-icon img { width: 32px; height: 32px; object-fit: contain; }
.category-card h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.category-count { font-size: 0.76rem; color: var(--ink-500); }

/* -------------------- Game cards -------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

/* Below ~700px, minmax(200px,1fr) collapses to a single column — force a
   2-up grid instead so mobile stays a grid, not a long vertical stack. */
@media (max-width: 700px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
.game-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); text-decoration: none; }
.game-card:hover .game-thumb img { transform: scale(1.06); }
.game-thumb {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.game-thumb .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 17, 32, 0.28);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.game-card:hover .play-badge { opacity: 1; }
.play-badge span {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--pink-600);
  display: flex; align-items: center; justify-content: center;
}
.genre-chip {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--pink-700);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.game-info { padding: 14px 14px 16px; flex: 1; display: flex; flex-direction: column; }
.game-info h3 {
  font-size: 0.95rem;
  margin: 0 0 6px;
  color: var(--ink-900);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--ink-500);
}
.game-meta .plays { display: inline-flex; align-items: center; gap: 4px; }

/* -------------------- Feature / why-us cards -------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-hero);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--ink-500); margin-bottom: 0; font-size: 0.92rem; }

/* -------------------- About split -------------------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-art {
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: #fff;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.split-art .stat-row { display: flex; gap: 28px; flex-wrap: wrap; }
.split-art .stat-row strong { display: block; font-family: var(--font-display); font-size: 1.8rem; }
.split-art .stat-row span { font-size: 0.8rem; color: rgba(255,255,255,0.85); }

.checklist { list-style: none; padding: 0; margin: 18px 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  color: var(--ink-700);
}
.checklist li::before {
  content: "";
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--pink-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d94a25' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* -------------------- CTA band -------------------- */
.cta-band {
  background: var(--grad-hero);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 60ch; margin: 0 auto 1.2em; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* -------------------- Breadcrumbs -------------------- */
.breadcrumbs { font-size: 0.85rem; color: var(--ink-500); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-500); }
.breadcrumbs a:hover { color: var(--pink-600); }
.breadcrumbs .sep { margin: 0 6px; }
.breadcrumbs [aria-current="page"] { color: var(--ink-900); font-weight: 600; }

/* -------------------- Page header -------------------- */
.page-header {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding-block: 36px;
}
.page-header h1 { margin-bottom: 8px; }
.page-header p { color: var(--ink-500); margin-bottom: 0; max-width: 70ch; }

/* -------------------- Filters bar (games listing) -------------------- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding: 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.filters-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1; }
.filters-form input[type="search"],
.filters-form select {
  border: 1px solid var(--border);
  background: var(--surface-0);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--ink-900);
}
.filters-form input[type="search"] { min-width: 200px; flex: 1; }
.results-count { font-size: 0.85rem; color: var(--ink-500); white-space: nowrap; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--ink-700);
  background: var(--surface-0);
}
.chip:hover { text-decoration: none; border-color: var(--pink-300); color: var(--pink-600); }
.chip.is-active { background: var(--pink-500); border-color: var(--pink-500); color: #fff; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-500);
}
.empty-state h2 { color: var(--ink-900); }

/* -------------------- Pagination -------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  padding-inline: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--ink-700);
  font-weight: 600;
  font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--pink-400); color: var(--pink-600); text-decoration: none; }
.pagination [aria-current="page"] { background: var(--pink-500); border-color: var(--pink-500); color: #fff; }
.pagination .disabled { color: var(--ink-300); pointer-events: none; }

/* -------------------- Game detail / player -------------------- */
.player-shell {
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.player-frame-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--dark-bg);
  color: #fff;
  gap: 12px;
  flex-wrap: wrap;
}
.player-bar h1 { color: #fff; font-size: 1.15rem; margin: 0; }
.player-bar .btn-sm { flex-shrink: 0; }

.game-detail-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 900px) { .game-detail-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.info-card h2 { font-size: 1.1rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-row .chip { pointer-events: none; }
.stat-list { list-style: none; padding: 0; margin: 0; }
.stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.stat-list li:last-child { border-bottom: none; }
.stat-list span:first-child { color: var(--ink-500); }
.stat-list span:last-child { font-weight: 600; }

/* -------------------- Contact -------------------- */
.form-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}

.contact-single { max-width: 760px; margin-inline: auto; }

.contact-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.contact-list li { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.contact-list .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--pink-100);
  color: var(--pink-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-list h3 { font-size: 0.95rem; margin-bottom: 3px; }
.contact-list p { margin: 0; color: var(--ink-500); font-size: 0.9rem; }

.contact-list--grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
  margin-top: 8px;
}
.contact-list--grid li { margin-bottom: 0; }
@media (max-width: 700px) {
  .contact-list--grid { grid-template-columns: 1fr; }
}

/* -------------------- FAQ accordion -------------------- */
.faq-list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-900);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.3rem;
  color: var(--pink-500);
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; border-radius: 4px; }
.faq-answer { padding-bottom: 18px; color: var(--ink-700); }
.faq-answer p { margin: 0; }
.faq-answer a { text-decoration: underline; }

/* -------------------- Prose (legal pages) -------------------- */
.prose { max-width: none; }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.05rem; }
.prose ul { color: var(--ink-700); }
.prose p, .prose li { color: var(--ink-700); }
.prose a { text-decoration: underline; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tagline { color: rgba(255,255,255,0.6); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 14px; max-width: 34ch; }
.footer-col h3 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* -------------------- Ad slots -------------------- */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--ink-300);
  overflow: hidden;
}
.ad-slot-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ad-slot--leaderboard { min-height: 90px; max-width: 728px; }
.ad-slot--rectangle { min-height: 250px; max-width: 336px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-slot--inline { min-height: 120px; }
@media (max-width: 480px) {
  .ad-slot--rectangle { max-width: 100%; }
  .ad-slot--leaderboard { min-height: 60px; }
}

/* -------------------- Cookie notice -------------------- */
.cookie-notice {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  max-width: 640px;
  margin-inline: auto;
  background: var(--dark-bg);
  color: var(--dark-text-muted);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.cookie-notice.is-visible { display: flex; }
.cookie-notice p { margin: 0; font-size: 0.86rem; flex: 1; min-width: 220px; }
.cookie-notice a { color: #fff; text-decoration: underline; }
.cookie-notice-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 760px) {
  .cookie-notice { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* -------------------- Misc utilities -------------------- */
body.no-scroll { overflow: hidden; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.icon-svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .section { padding-block: 32px; }
  .header-inner { padding-block: 12px; }
  .game-detail-grid { gap: 24px; }
  .container { padding-inline: 16px; }
  .game-grid { gap: 14px; }
  .category-grid { gap: 12px; }
  .game-info { padding: 12px 12px 14px; }
  h1 { font-size: 1.6rem; }
  .section-head { margin-bottom: 20px; }
}

@media (max-width: 380px) {
  .game-grid { gap: 10px; }
  .game-info { padding: 10px 10px 12px; }
  .game-info h3 { font-size: 0.85rem; }
  .game-meta { font-size: 0.7rem; }
  .genre-chip { font-size: 0.62rem; padding: 3px 8px; top: 8px; left: 8px; }
}

/* -------------------- Bottom tab bar (app-style mobile nav) -------------------- */
.bottom-nav {
  display: none;
}

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: color-mix(in srgb, var(--surface-0) 96%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 20px rgba(135, 11, 76, 0.08);
  }
  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    min-height: 48px;
    border: none;
    background: transparent;
    color: var(--ink-500);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
  .bottom-nav-item:hover { text-decoration: none; color: var(--pink-600); }
  .bottom-nav-item svg { width: 22px; height: 22px; }
  .bottom-nav-item.is-active { color: var(--pink-600); }
  .bottom-nav-item.is-active .bottom-nav-icon {
    background: var(--pink-100);
  }
  .bottom-nav-icon {
    width: 34px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-pill);
  }

  /* The old inline mobile drawer becomes the "More" sheet, opened from the tab bar */
  .main-nav {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* -------------------- Mobile search overlay -------------------- */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--surface-0);
  padding: 16px;
}
.search-overlay.is-open { display: block; }
.search-overlay-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-overlay-bar form {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 18px;
}
.search-overlay-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 8px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--ink-900);
}
.search-overlay-bar input:focus { outline: none; }
.search-overlay-bar button[type="submit"] {
  background: var(--pink-500);
  color: #fff;
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}
.search-overlay-close {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  color: var(--ink-700);
}
.search-overlay-hint { margin-top: 18px; color: var(--ink-500); font-size: 0.88rem; }
/* ================= Theme: Sunset Bento — structural accents ================= */
.game-card, .category-card, .feature-card, .faq-item {
  border: none;
  box-shadow: var(--shadow-sm);
}
.game-card:hover, .category-card:hover {
  box-shadow: var(--shadow-md);
}
.info-card, .form-card { border: none; box-shadow: var(--shadow-sm); }
.chip { border: none; box-shadow: var(--shadow-sm); }
