/* ==========================================================================
 * bamboo.css — Ancient Chinese bamboo-slip theme for poki.love
 *
 * Design notes:
 *   • Palette: aged paper cream + warm bamboo tan + dark green + vermilion seal
 *   • Typography: Playfair Display (headings) + Crimson Text (body) + Cinzel
 *     (small-caps decorative). All loaded from Google Fonts with serif fallback.
 *   • Texture: pure-CSS bamboo grain + paper noise using SVG data URIs.
 *   • Layout: 480px mobile-first container. On wider viewports the page fills
 *     the screen but still uses the mobile-width column (per spec).
 *   • AdSense: banner slots are responsive (auto) and lazy-loaded via
 *     IntersectionObserver from js/ads.js.
 * ========================================================================== */

/* ---------- Google Fonts (load preconnect first for perf) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Cinzel:wght@500;600&family=Noto+Serif:wght@400;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* paper / bamboo */
  --paper:           #f1e3c2;
  --paper-deep:      #e6d4a8;
  --paper-edge:      #c9b078;
  --bamboo-tan:      #d4b87a;
  --bamboo-warm:     #b89456;
  --bamboo-dark:     #6b4a23;

  /* greens */
  --moss:            #4d6b3a;
  --moss-deep:       #2f4525;
  --bamboo-green:    #6a8a4a;

  /* ink & accent */
  --ink:             #2a1f15;
  --ink-soft:        #4a3a28;
  --vermilion:       #b03a2e;
  --vermilion-soft:  #c75a4a;
  --gold:            #a87830;
  --gold-bright:     #d4a04a;

  /* leather / binding */
  --leather:         #5d3a1f;
  --leather-soft:    #7a4a28;

  /* shadows */
  --shadow-scroll:   0 1px 0 rgba(107, 74, 35, 0.15),
                     0 4px 12px -4px rgba(46, 30, 12, 0.25);
  --shadow-card:     0 1px 2px rgba(46, 30, 12, 0.15),
                     0 6px 16px -8px rgba(46, 30, 12, 0.30);

  /* rhythm */
  --gutter:          16px;
  --gutter-lg:       24px;
  --radius:          6px;
  --radius-lg:       14px;

  /* fonts */
  --font-display:    'Playfair Display', 'Noto Serif', Georgia, serif;
  --font-body:       'Crimson Text', 'Noto Serif', Georgia, serif;
  --font-decorative: 'Cinzel', 'Playfair Display', Georgia, serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* layered bamboo grain + paper noise */
  background-image:
    /* horizontal bamboo strips (very subtle) */
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 58px,
      rgba(107, 74, 35, 0.06) 58px,
      rgba(107, 74, 35, 0.06) 60px
    ),
    /* paper fiber noise */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.36  0 0 0 0 0.27  0 0 0 0 0.13  0 0 0 0.18 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>"),
    /* aged vignette */
    radial-gradient(ellipse at center, transparent 50%, rgba(107, 74, 35, 0.18) 100%);
  background-attachment: fixed, fixed, fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--vermilion); text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; cursor: pointer; }

/* ---------- Page frame (mobile column on every viewport) ---------- */
.page {
  max-width: 480px;
  margin: 0 auto;
  background: var(--paper);
  position: relative;
  min-height: 100vh;
  box-shadow: var(--shadow-scroll);
  /* bamboo edge texture on left/right */
  border-left: 1px solid rgba(107, 74, 35, 0.15);
  border-right: 1px solid rgba(107, 74, 35, 0.15);
  overflow-x: hidden;
}

/* ---------- Top binding (leather cord) ---------- */
.binding-top,
.binding-bottom {
  height: 18px;
  background:
    linear-gradient(to bottom,
      var(--leather) 0,
      var(--leather-soft) 40%,
      var(--leather) 60%,
      var(--leather-soft) 100%);
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.binding-bottom {
  border-bottom: none;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
}
.binding-top::after,
.binding-bottom::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background:
    repeating-linear-gradient(to right,
      rgba(0, 0, 0, 0.35) 0 6px,
      transparent 6px 14px);
}
.binding-top::after { bottom: 0; }
.binding-bottom::after { top: 0; }

/* ---------- Header ---------- */
.site-header {
  padding: 22px var(--gutter) 18px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(255, 252, 240, 0.55), rgba(241, 227, 194, 0));
  border-bottom: 1px dashed rgba(107, 74, 35, 0.35);
}
.site-header .seal {
  width: 64px; height: 64px;
  margin: 0 auto 8px;
  background: var(--vermilion);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -1px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), inset 0 0 0 2px rgba(255,255,255,0.25);
  transform: rotate(-3deg);
  position: relative;
}
.site-header .seal::after {
  content: '';
  position: absolute; inset: -3px;
  border: 1px solid rgba(176, 58, 46, 0.4);
  border-radius: 8px;
  pointer-events: none;
}
.site-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 6px 0 2px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.site-header .tagline {
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0;
}

/* ---------- Navigation ---------- */
.site-nav {
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--paper-deep);
  border-bottom: 1px solid rgba(107, 74, 35, 0.25);
  border-top: 1px solid rgba(107, 74, 35, 0.15);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.site-nav a {
  flex: 1;
  padding: 12px 4px;
  text-align: center;
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-right: 1px dashed rgba(107, 74, 35, 0.3);
  transition: background .15s ease, color .15s ease;
}
.site-nav a:last-child { border-right: none; }
.site-nav a:hover,
.site-nav a.active {
  background: var(--bamboo-tan);
  color: var(--ink);
}

/* ---------- Section ---------- */
.section { padding: 26px var(--gutter); }
.section-tight { padding: 16px var(--gutter); }
.section + .section { border-top: 1px dashed rgba(107, 74, 35, 0.25); }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.section-title .glyph {
  font-size: 22px;
  color: var(--vermilion);
  font-family: var(--font-display);
}
.section-subtitle {
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 14px;
}

/* ---------- Brush divider ---------- */
.brush-divider {
  height: 14px;
  margin: 18px auto 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 18' preserveAspectRatio='none'><path d='M0 9 C 60 1, 120 17, 180 9 S 300 1, 360 9 S 420 17, 480 9' fill='none' stroke='%23a8845a' stroke-width='2' stroke-linecap='round' opacity='0.55'/><circle cx='240' cy='9' r='3' fill='%23b03a2e'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ---------- Hero ---------- */
.hero {
  padding: 30px var(--gutter) 22px;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(255, 248, 220, 0.5), transparent 80%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='480' height='240' viewBox='0 0 480 240'><g opacity='0.10'><path d='M40 200 q-10 -40 -20 -90 q-2 -22 14 -28 q14 -4 18 18 q5 28 6 60' fill='none' stroke='%234d6b3a' stroke-width='3' stroke-linecap='round'/><path d='M48 110 q12 14 28 8 M48 140 q14 16 32 8 M48 170 q10 14 24 6' fill='none' stroke='%234d6b3a' stroke-width='2' stroke-linecap='round'/><path d='M440 200 q10 -50 20 -100 q2 -22 -14 -28 q-14 -4 -18 18 q-5 28 -6 60' fill='none' stroke='%234d6b3a' stroke-width='3' stroke-linecap='round'/><path d='M432 110 q-12 14 -28 8 M432 140 q-14 16 -32 8 M432 170 q-10 14 -24 6' fill='none' stroke='%234d6b3a' stroke-width='2' stroke-linecap='round'/></g></svg>") center/cover no-repeat;
}
.hero h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
.hero p {
  margin: 0 auto 6px;
  max-width: 380px;
  font-size: 16px;
  color: var(--ink-soft);
}
.hero .meta {
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin-top: 14px;
}

/* ---------- Ad slot (banner) ---------- */
.ad-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px auto;
  padding: 8px;
  min-height: 90px;
  background:
    repeating-linear-gradient(45deg,
      rgba(168, 134, 90, 0.08) 0 8px,
      rgba(168, 134, 90, 0.02) 8px 16px);
  border: 1px dashed rgba(107, 74, 35, 0.4);
  border-radius: var(--radius);
  position: relative;
  text-align: center;
  color: rgba(74, 58, 40, 0.5);
  font-family: var(--font-decorative);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.ad-slot::before {
  content: 'advertisement';
  position: absolute;
  top: 4px; left: 6px;
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.55;
}
.ad-slot.banner-large { min-height: 110px; }
.ad-slot.banner-medium { min-height: 90px; }
.ad-slot.in-feed { min-height: 250px; margin: 12px var(--gutter); }
.ad-slot.in-article { min-height: 120px; margin: 16px var(--gutter); }
/* in-body slots sit between detail-body sections (above How to Play, above Reviews) */
.ad-slot.in-body {
  min-height: 110px;
  margin: 18px 0;
  padding: 6px;
}

/* In a real deployment this is replaced by AdSense auto ads:
     <ins class="adsbygoogle"
          style="display:block"
          data-ad-client="ca-pub-XXXX"
          data-ad-slot="YYYY"
          data-ad-format="auto"
          data-full-width-responsive="true"></ins>
   We render a comment-placeholder so the slot is still visible in the
   layout before ads.txt / AdSense is wired up. The comment block is shown
   as a faux ad by CSS so reviewers can verify placements. */

/* ---------- Game grid ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 var(--gutter);
}
.game-grid-3 { grid-template-columns: repeat(3, 1fr); }
.game-grid-1 { grid-template-columns: 1fr; }

/* ---------- Game card ---------- */
.game-card {
  background: var(--paper);
  border: 1px solid rgba(107, 74, 35, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--bamboo-warm);
  box-shadow: 0 3px 4px rgba(46, 30, 12, 0.18),
              0 10px 22px -8px rgba(46, 30, 12, 0.45);
  text-decoration: none;
}
.game-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--paper-deep);
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid rgba(107, 74, 35, 0.25);
  position: relative;
  overflow: hidden;
}
.game-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-card .thumb .placeholder {
  font-family: var(--font-decorative);
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
}
.game-card .body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.game-card .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.game-card .tag {
  font-family: var(--font-decorative);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--moss-deep);
}
.game-card .stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 12px;
  color: var(--ink-soft);
}
.game-card .stats .stars { color: var(--gold); letter-spacing: 1px; }
.game-card .stats .count { font-family: var(--font-decorative); font-size: 10px; letter-spacing: 1px; }

/* ---------- Featured (large hero card) ---------- */
.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 var(--gutter);
}
.featured .game-card { flex-direction: row; }
.featured .game-card .thumb { width: 110px; aspect-ratio: 1 / 1; border-right: 1px solid rgba(107, 74, 35, 0.25); border-bottom: none; flex-shrink: 0; }
.featured .game-card .body { padding: 10px 12px; }

/* ---------- Filters / chips ---------- */
.chip-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px var(--gutter) 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--paper-deep);
  border: 1px solid rgba(107, 74, 35, 0.3);
  border-radius: 20px;
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  user-select: none;
}
.chip:hover { background: var(--bamboo-tan); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ---------- Search ---------- */
.search {
  padding: 0 var(--gutter) 6px;
  position: relative;
}
.search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid rgba(107, 74, 35, 0.4);
  border-radius: 22px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(46, 30, 12, 0.08);
}
.search input:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: inset 0 1px 2px rgba(46, 30, 12, 0.08),
              0 0 0 3px rgba(77, 107, 58, 0.18);
}
.search::before {
  content: '';
  position: absolute;
  left: 26px; top: 50%;
  width: 14px; height: 14px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d6b3a' stroke-width='2.2' stroke-linecap='round'><circle cx='10.5' cy='10.5' r='6.5'/><path d='m20 20-4.5-4.5'/></svg>") center/contain no-repeat;
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Detail page ---------- */
.detail-header {
  padding: 24px var(--gutter) 18px;
  background:
    linear-gradient(to bottom, rgba(255, 248, 220, 0.6), transparent 100%);
  border-bottom: 1px dashed rgba(107, 74, 35, 0.3);
}
.detail-header .crumb {
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin: 0 0 8px;
}
.detail-header .crumb a { color: inherit; }
.detail-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  margin: 4px 0 6px;
  line-height: 1.15;
}
.detail-header .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.detail-header .meta-row {
  display: flex; gap: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  align-items: center;
  flex-wrap: wrap;
}
.detail-header .meta-row .rating { color: var(--gold); font-weight: 600; }
.detail-header .meta-row .pill {
  display: inline-block;
  padding: 3px 9px;
  background: var(--bamboo-tan);
  border-radius: 12px;
  font-family: var(--font-decorative);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
}
.cover-strip {
  padding: 0 var(--gutter);
  margin-bottom: 16px;
}
.cover-strip .cover-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(107, 74, 35, 0.35);
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 9;
  background: var(--paper-deep);
}
.cover-strip .cover-frame img { width: 100%; height: 100%; object-fit: cover; }
.cta-row {
  display: flex;
  gap: 10px;
  padding: 8px var(--gutter) 18px;
}
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 8px;
  font-family: var(--font-decorative);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow: 0 4px 0 rgba(46, 30, 12, 0.35);
}
.btn-primary:hover { background: var(--moss-deep); color: var(--paper); text-decoration: none; }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(107, 74, 35, 0.5);
}
.btn-secondary:hover { background: var(--bamboo-tan); text-decoration: none; }

/* Detail body content */
.detail-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin: 18px 0 8px;
  color: var(--ink);
  border-left: 3px solid var(--vermilion);
  padding-left: 10px;
}
.detail-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 14px 0 6px;
  color: var(--ink);
}
.detail-body p { margin: 0 0 10px; }
.detail-body ul, .detail-body ol { padding-left: 22px; margin: 0 0 12px; }
.detail-body li { margin-bottom: 4px; }
.detail-body blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  background: var(--paper-deep);
  border-left: 3px solid var(--moss);
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- Reviews ---------- */
.review {
  padding: 12px var(--gutter);
  border-bottom: 1px solid rgba(107, 74, 35, 0.15);
}
.review:last-child { border-bottom: none; }
.review .head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.review .author {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}
.review .date {
  font-family: var(--font-decorative);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: auto;
}
.review .stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.review .body {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
  margin: 4px 0 4px;
}
.review .helpful {
  font-family: var(--font-decorative);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--moss-deep);
}

/* ---------- Recommended strip ---------- */
.reco-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 var(--gutter);
}
.reco-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: var(--paper);
  border: 1px solid rgba(107, 74, 35, 0.25);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.reco-card:hover { border-color: var(--bamboo-warm); background: var(--paper-deep); text-decoration: none; }
.reco-card .thumb {
  width: 60px; height: 60px;
  border-radius: 4px;
  background: var(--paper-deep);
  overflow: hidden;
  flex-shrink: 0;
}
.reco-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.reco-card .body { flex: 1; min-width: 0; }
.reco-card .title { font-family: var(--font-display); font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.reco-card .reason { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 30px;
  padding: 22px var(--gutter) 60px;
  background: var(--paper-deep);
  border-top: 1px solid rgba(107, 74, 35, 0.3);
  text-align: center;
}
.site-footer .seal-mark {
  font-family: var(--font-decorative);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin-bottom: 12px;
}
.site-footer .links {
  display: flex; flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
  margin-bottom: 14px;
}
.site-footer .links a {
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
.site-footer .links a:hover { color: var(--vermilion); text-decoration: underline; }
.site-footer .contact {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 8px 0;
}
.site-footer .contact a { color: var(--moss-deep); }
.site-footer .copy {
  font-size: 11px;
  color: var(--ink-soft);
  opacity: 0.7;
  margin-top: 10px;
}

/* ---------- Play page (fullscreen iframe) ---------- */
.play-shell {
  position: fixed; inset: 0;
  background: #0e0e0e;
  display: flex; flex-direction: column;
  z-index: 100;
}
.play-frame {
  flex: 1;
  width: 100%;
  border: none;
  background: #0e0e0e;
}
.play-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid rgba(107, 74, 35, 0.25);
}
.play-topbar .back {
  font-family: var(--font-decorative);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.play-topbar .back:hover { color: var(--vermilion); text-decoration: none; }
.play-topbar .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-topbar .fs-btn {
  padding: 6px 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 4px;
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.play-topbar .fs-btn:hover { background: var(--moss-deep); }
.play-bottombar {
  padding: 6px var(--gutter);
  background: var(--paper-deep);
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
}
.play-bottombar a { color: var(--moss-deep); }

/* sticky bottom banner anchor (high viewability = high eCPM) */
.sticky-anchor {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border-top: 1px solid rgba(107, 74, 35, 0.25);
  box-shadow: 0 -4px 12px rgba(46, 30, 12, 0.18);
  padding: 6px;
  z-index: 110;
  display: none;
}
.sticky-anchor.visible { display: block; }
.sticky-anchor .close {
  position: absolute;
  right: 6px; top: 2px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}
.sticky-anchor .ad-slot { margin: 0; min-height: 60px; }

/* ---------- Forms (contact) ---------- */
.form {
  padding: 0 var(--gutter);
  display: flex; flex-direction: column;
  gap: 12px;
}
.form label {
  font-family: var(--font-decorative);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--moss-deep);
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(107, 74, 35, 0.4);
  border-radius: 4px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(77, 107, 58, 0.18);
}
.form .submit { margin-top: 4px; }

/* ---------- Legal prose ---------- */
.legal {
  padding: 0 var(--gutter);
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  margin: 22px 0 6px;
  color: var(--ink);
  border-left: 3px solid var(--vermilion);
  padding-left: 10px;
}
.legal h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin: 16px 0 4px;
}
.legal p { margin: 0 0 10px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 4px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.empty-state {
  padding: 30px var(--gutter);
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
}

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

/* ---------- Print (legal pages) ---------- */
@media print {
  body { background: white; }
  .site-nav, .site-header, .site-footer, .ad-slot, .sticky-anchor, .play-topbar, .play-bottombar { display: none; }
  .page { box-shadow: none; border: none; }
}

/* ---------- Tiny screens ---------- */
@media (max-width: 360px) {
  body { font-size: 16px; }
  .hero h2 { font-size: 22px; }
  .detail-header h1 { font-size: 26px; }
  .game-card .title { font-size: 14px; }
}
