/* ===============================================================
   ordainty - shared site stylesheet
   Edit here, not in the pages. Every page loads this file.
   Page-specific rules stay in that page's own <style> block.
   =============================================================== */

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

:root {
  --bg: #000000;
  --neon-pink: #ff3dce;
  /* Readable pink for script (Pacifico) text on black. #ff3dce clears AA as a
     block colour but Pacifico's thin strokes plus a glow smear it; this tint
     runs ~9:1 and keeps the neon look. Use --neon-pink for UI/accents. */
  --neon-pink-soft: #ff8ade;
  --neon-purple: #b44fff;
  --text: #f0d6e8;
  --muted: #c7a9bb;
  --border: rgba(180,79,255,0.18);
  --card-bg: #0a0a0a;
  /* #0a0a0a sits 4% off a #000 body - a card built from it has no visible
     surface, only its border. --card-bg-raised is for cards that need to read
     as an object on the page; --border-strong is the border that goes with it,
     since the 0.18 alpha one disappears at normal brightness. */
  --card-bg-raised: #15111c;
  --border-strong: rgba(180,79,255,0.32);
  --kofi: #ff38b8;

  /* ── Fluid type scale ──────────────────────────────────────────
     Sizes interpolate with viewport width instead of sitting at a
     fixed value. The old copy ran 0.78-0.92rem, which is 12-15px on
     a phone and genuinely hard to read; these bottom out near 16px
     on a 360px screen and grow from there.

     Each is clamp(min, preferred, max) where the preferred term is
     rem + vw, so the text still scales if the reader has bumped
     their browser's default font size - a pure-vw value would ignore
     that and override their accessibility setting.
     ──────────────────────────────────────────────────────────── */
  --fs-xs:   clamp(0.82rem, 0.76rem + 0.28vw, 0.90rem);
  --fs-sm:   clamp(0.94rem, 0.88rem + 0.32vw, 1.02rem);
  --fs-base: clamp(1.00rem, 0.94rem + 0.36vw, 1.10rem);
  --fs-md:   clamp(1.08rem, 1.00rem + 0.42vw, 1.20rem);
  --fs-lg:   clamp(1.18rem, 1.06rem + 0.62vw, 1.40rem);
}

html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* --- NAV ---------------------------------------------------------
   Base = sticky solid bar (subpages). Inside a hero band it is
   overridden to transparent so the art shows through. */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1rem;
}

.hero-wrap > nav {
  position: absolute; top: 0; left: 0; right: 0;
  background: transparent; backdrop-filter: none; border-bottom: none;
}

.page-hero > nav {
  position: relative; z-index: 5;
  background: transparent; backdrop-filter: none; border-bottom: none;
}

.nav-left  { display: flex; gap: 1.9rem; list-style: none; align-items: center; }
.nav-right { display: flex; align-items: center; gap: 0.7rem; }

.nav-left a {
  text-decoration: none; font-size: var(--fs-md); letter-spacing: 0.04em;
  color: rgba(255,255,255,0.95); font-weight: 500;
  white-space: nowrap; transition: color 0.2s;
}

.nav-left a:hover { color: var(--neon-pink); }
.nav-left a.active {
  color: white;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.nav-logo {
  font-family: 'Pacifico', cursive; font-size: 2rem;
  color: transparent;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text; background-clip: text;
  text-decoration: none;
  filter: drop-shadow(0 0 12px rgba(255,61,206,0.6));
  transition: filter 0.2s;
  position: absolute; left: 50%; transform: translateX(-50%);
}

.nav-logo:hover { filter: drop-shadow(0 0 24px rgba(255,61,206,1)); }
.nav-logo-img { height: 44px; width: auto; display: block; }

.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75); text-decoration: none;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-icon { position: relative; }
.nav-icon svg { width: 17px; height: 17px; fill: currentColor; }
.nav-icon:hover { color: var(--neon-pink); border-color: rgba(255,61,206,0.6); box-shadow: 0 0 14px rgba(255,61,206,0.4); }

/* Two YouTube channels sit side by side. The glyphs already differ (play
   triangle vs music note); these give each a distinct accent as well, so the
   pair never reads as one icon duplicated. */
.nav-icon.is-plays:hover { color: var(--neon-pink);   border-color: rgba(255,61,206,0.7); box-shadow: 0 0 14px rgba(255,61,206,0.45); }
.nav-icon.is-beats:hover { color: var(--neon-purple); border-color: rgba(180,79,255,0.8); box-shadow: 0 0 14px rgba(180,79,255,0.5); }

/* Hover tooltip - names the channel, since the icons are otherwise wordless. */
.nav-icon[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 9px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-size: 0.66rem; letter-spacing: 0.09em; text-transform: uppercase; font-weight: 600;
  color: var(--text); background: rgba(0,0,0,0.92);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 4px 9px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.nav-icon[data-tip]:hover::after,
.nav-icon[data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }

.nav-contact-btn {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: white; text-decoration: none;
  padding: 0.55rem 1.3rem;
  background: var(--neon-pink); border: 1px solid var(--neon-pink);
  border-radius: 6px; white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}

.nav-contact-btn:hover { background: #e030b8; box-shadow: 0 0 20px rgba(255,61,206,0.6); }

/* Ko-fi support button - outlined so it reads as secondary to Contact */
.nav-kofi {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 0.5rem 1.1rem;
  color: var(--kofi); background: transparent;
  border: 1px solid var(--kofi); border-radius: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-kofi svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.nav-kofi:hover { background: var(--kofi); color: #fff; box-shadow: 0 0 18px rgba(255,56,184,0.55); }

/* --- HERO (home / listing pages) --- */
.hero-wrap {
  position: relative; height: 60vh; min-height: 380px;
  display: flex; align-items: center; justify-content: center;
  background-image: url('../media/ordainty_header_1600x700.png');
  background-size: 120%; background-position: 72% 28%;
  background-repeat: no-repeat; background-attachment: fixed;
  overflow: hidden;
  clip-path: ellipse(140% 85% at 50% 0%);
}

.hero-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.18) 34%, rgba(0,0,0,0.42) 100%);
}

.hero-wrap::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 120px; z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg));
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; }

.hero-tagline {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: white;
  text-shadow: 0 0 20px rgba(255,61,206,0.95), 0 0 60px rgba(255,61,206,0.5), 0 2px 8px rgba(0,0,0,0.6);
}

.hero-sub { margin-top: 0.75rem; font-size: var(--fs-md); color: rgba(255,255,255,0.7); letter-spacing: 0.03em; }

.hero-curve {
  position: relative; z-index: 5;
  margin-top: -80px; height: 100px;
  background: var(--bg);
  clip-path: ellipse(60% 100% at 50% 0%);
}

/* --- HERO (subpages - shorter band, nav sits inside) --- */
.page-hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 48vh;
  background-image: url('../media/ordainty_header_1600x700.png');
  background-size: 120%; background-position: 72% 28%;
  background-repeat: no-repeat; background-attachment: fixed;
  clip-path: ellipse(140% 85% at 50% 0%);
}

.page-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.22) 34%, rgba(0,0,0,0.48) 100%); }
.page-hero::after  { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg)); pointer-events: none; }
.page-hero .breadcrumb, .page-hero .page-header { position: relative; z-index: 5; }
.page-hero .page-header { padding-top: 1.5rem; padding-bottom: 4rem; text-shadow: 0 1px 10px rgba(0,0,0,0.6); }

/* --- BREADCRUMB --- */
.breadcrumb {
  max-width: 1000px; margin: 0 auto; padding: 1.5rem 2rem 0;
  display: flex; align-items: center; gap: 0.5rem;
  font-size: var(--fs-xs); color: var(--muted);
}

.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--neon-pink); }
.breadcrumb span { color: var(--neon-purple); }

/* --- SECTION LABEL --- */
.section-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--neon-purple); font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.section-label::before, .section-label::after {
  content: ''; display: inline-block; width: 30px; height: 1px;
  background: var(--neon-purple); box-shadow: 0 0 6px var(--neon-purple);
}

/* --- PAGE HEADER --- */
.page-header { text-align: center; padding: 1rem 2rem 3rem; }

.page-header h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  text-shadow: 0 0 30px rgba(180,79,255,0.4);
  margin-bottom: 0.75rem;
}

.page-header p { font-size: var(--fs-base); color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* --- GRID + CARDS --- */
.grid-wrap { max-width: 1100px; margin: 0 auto; padding: 1rem 2rem 6rem; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }

.game-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  animation: fadeUp 0.5s ease both;
}

.game-card:nth-child(2) { animation-delay: 0.08s; }
.game-card:nth-child(3) { animation-delay: 0.16s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.game-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(255,61,206,0.2); border-color: rgba(255,61,206,0.4); }

.card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #111; }
.card-thumb img { width: 100%; height: 100%; object-fit: contain; background: #111; transition: transform 0.4s; }
.game-card:hover .card-thumb img { transform: scale(1.07); }

.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,11,24,0.3); opacity: 0; transition: opacity 0.3s;
}

.game-card:hover .play-overlay { opacity: 1; }

.play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px rgba(255,61,206,0.6);
}

.play-btn svg { width: 22px; height: 22px; fill: white; margin-left: 3px; }

.card-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 3px 8px; font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--neon-purple); font-weight: 600; text-transform: uppercase;
}

.card-body { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.card-platform { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--neon-pink); font-weight: 600; }
.card-title { font-size: var(--fs-md); font-weight: 600; color: var(--text); line-height: 1.3; }
.card-desc { font-size: var(--fs-sm); color: var(--muted); line-height: 1.65; margin-top: 0.2rem; }

.card-link {
  margin-top: auto; padding-top: 1rem;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; color: var(--neon-pink);
  display: flex; align-items: center; gap: 0.4rem; transition: gap 0.2s;
}

.game-card:hover .card-link { gap: 0.7rem; }

/* --- EMPTY STATE - the trophy-case bit --------------------------
   A styled empty display case standing in for the Fairly OddParents
   frame, so no copyrighted screenshot is hosted on the site.
   To use a real image instead: drop it in /media and replace the
   .empty-case block in the page with <img class="empty-img" src="...">
   ---------------------------------------------------------------- */
.empty-wrap { max-width: 760px; margin: 0 auto; padding: 0 2rem 5rem; text-align: center; }

.empty-case {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(180,79,255,0.13), transparent 70%),
    linear-gradient(180deg, #0b0b0e 0%, #060608 100%);
  padding: 3.5rem 2rem 2.2rem;
  box-shadow: inset 0 0 60px rgba(180,79,255,0.08), 0 14px 50px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* glass shine across the case */
.empty-case::before {
  content: ''; position: absolute; top: -40%; left: -30%;
  width: 60%; height: 190%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.045), transparent);
  transform: rotate(14deg); pointer-events: none;
}

.empty-shelf {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 150px;
  margin-bottom: 2rem;
}

/* the dashed outline where the thing would go */
.empty-slot {
  width: 116px; height: 96px;
  border: 2px dashed rgba(180,79,255,0.45);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(180,79,255,0.55); font-size: 2rem;
  margin-bottom: 0.9rem;
}

/* the pedestal it would sit on */
.empty-plinth {
  width: 190px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #1a141f, #0d0a11);
  border: 1px solid var(--border);
  box-shadow: 0 0 26px rgba(180,79,255,0.22);
}

.empty-line-1 {
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500; color: var(--muted); line-height: 1.5;
}

.empty-line-2 {
  margin-top: 0.5rem;
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  color: var(--neon-pink);
  text-shadow: 0 0 26px rgba(255,61,206,0.65), 0 0 70px rgba(255,61,206,0.28);
}

.empty-note { margin-top: 2rem; font-size: var(--fs-base); color: var(--muted); line-height: 1.75; }

.empty-actions {
  margin-top: 1.8rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center;
}

/* The meme itself. Capped rather than full-width: the source is 500x697, so
   letting it fill .empty-wrap would upscale it into mush. */
.empty-img {
  display: block; width: 100%; max-width: 420px; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--border);
  box-shadow: 0 14px 50px rgba(0,0,0,0.6);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.7rem; border-radius: 7px;
  font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.btn svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--neon-pink); border: 1px solid var(--neon-pink); color: #fff; }
.btn-primary:hover { background: #e030b8; box-shadow: 0 0 26px rgba(255,61,206,0.6); }

.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--neon-purple); color: #fff; box-shadow: 0 0 20px rgba(180,79,255,0.35); }

/* --- FEATURE GRID (addon page) --- */
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 1rem;
}

.feature-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.5rem 1.6rem;
}

.feature-card h3 {
  font-size: var(--fs-md); font-weight: 600; color: var(--text);
  margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.55rem;
}

.feature-card h3::before {
  content: ''; width: 16px; height: 2px; border-radius: 2px;
  background: var(--neon-pink); box-shadow: 0 0 6px var(--neon-pink);
}

.feature-card p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; }

/* --- FOOTER --- */
footer { padding: 2.5rem 2rem; text-align: center; border-top: 1px solid var(--border); }

.footer-logo {
  font-family: 'Pacifico', cursive; font-size: 1.4rem;
  color: transparent;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text; background-clip: text;
  text-decoration: none; filter: drop-shadow(0 0 8px rgba(255,61,206,0.4));
}

footer p { margin-top: 0.6rem; font-size: var(--fs-xs); color: var(--muted); }

/* --- BURGER + MOBILE DRAWER --- */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; z-index: 310;
  background: none; border: none; padding: 4px;
}

.burger span { display: block; width: 100%; height: 2px; background: white; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: min(280px, 80vw); height: 100vh;
  background: #000; border-left: 1px solid var(--border);
  z-index: 300; display: flex; flex-direction: column;
  padding: 6rem 2rem 3rem;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
  text-decoration: none;
  font-size: var(--fs-md); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 0.9rem 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover, .mobile-menu a.active { color: var(--neon-pink); }

/* Labelled rows, not bare circles: there is no hover on touch, so the two
   YouTube icons need their names written out here. */
.mobile-menu .mobile-socials { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 1.75rem; }

.mobile-menu .mobile-socials a.mobile-social {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: none;
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--muted);
}

.mobile-menu .mobile-socials a.mobile-social svg {
  width: 17px; height: 17px; fill: currentColor; flex-shrink: 0;
  padding: 9px; box-sizing: content-box;
  border: 1px solid var(--border); border-radius: 50%;
  transition: border-color 0.2s;
}

.mobile-menu .mobile-socials a.mobile-social:hover { color: var(--neon-pink); }
.mobile-menu .mobile-socials a.mobile-social:hover svg { border-color: var(--neon-pink); }
.mobile-menu .mobile-socials a.is-beats:hover { color: var(--neon-purple); }
.mobile-menu .mobile-socials a.is-beats:hover svg { border-color: var(--neon-purple); }

.mobile-menu .mobile-contact {
  margin-top: 1.5rem; display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--neon-pink); color: white;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px; text-decoration: none; border-bottom: none;
  text-align: center;
}

.mobile-menu .mobile-kofi {
  margin-top: 0.7rem; display: inline-block;
  padding: 0.7rem 1.4rem;
  background: transparent; color: var(--kofi);
  border: 1px solid var(--kofi);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px; text-decoration: none; text-align: center;
}

.menu-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 299; }
.menu-overlay.open { display: block; }

/* Burger kicks in early - the nav carries 5 links plus two buttons now. */
@media (max-width: 1080px) {
  .burger { display: flex; }
  .nav-right { display: none; }
  .nav-left { display: none; }
  .nav-logo { position: static; transform: none; grid-column: 2; }
  nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
  .burger { grid-column: 3; justify-self: end; }
}

@media (max-width: 700px) {
  /* `fixed` attachment is ignored or janky on mobile browsers, and the desktop
     120% background-size crops the hero to almost nothing at phone width. */
  .hero-wrap, .page-hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: 68% 35%;
  }
  .hero-wrap {
    height: auto; min-height: 78vh;
    clip-path: ellipse(160% 86% at 50% 0%);
  }
  .hero-wrap::after { height: 72px; }
  .page-hero { min-height: 42vh; }

  nav { padding: 0 1rem; height: 64px; }
  .nav-logo { font-size: 1.7rem; }

  .game-grid { grid-template-columns: 1fr; }
  .empty-case { padding: 2.5rem 1.2rem 1.8rem; }

  .grid-wrap, .empty-wrap, .breadcrumb, .page-header { padding-left: 1.2rem; padding-right: 1.2rem; }
  .page-header h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .feature-grid { grid-template-columns: 1fr; gap: 1rem; }
  .empty-actions { flex-direction: column; align-items: stretch; }
  .empty-actions .btn { justify-content: center; }
  .btn { padding: 0.85rem 1.2rem; font-size: var(--fs-xs); }

  footer { padding: 2rem 1.2rem; }

  /* Bottom sheet rather than a floating card: at phone width a 360px card with
     a side margin leaves no room for the buttons to breathe. */
  .consent-banner {
    left: 0.75rem; right: 0.75rem; width: auto;
    bottom: calc(0.75rem + 64px);
    padding: 1rem 1rem 1.05rem;
  }
  .consent-actions { flex-direction: column; }
  .consent-actions .btn { justify-content: center; padding: 0.85rem 1.1rem; font-size: var(--fs-xs); }
}

/* Very narrow phones: stop long unbroken strings forcing a sideways scroll. */
@media (max-width: 420px) {
  .hero-tagline { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .hero-sub { font-size: 0.88rem; }
  body { overflow-x: hidden; }
}

/* --- BACK TO TOP -------------------------------------------------
   Sits bottom-RIGHT. Ko-fi's floating-chat widget anchors itself
   bottom-LEFT and its position is not configurable, so this has to
   stay on the right or the two overlap. Verified in-browser 2026-09-29. */
.to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  border: 1px solid var(--neon-pink); color: var(--neon-pink);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 0 18px rgba(255,61,206,0.35);
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--neon-pink); color: #fff; box-shadow: 0 0 26px rgba(255,61,206,0.7); }

/* --- CONSENT BANNER (js/consent.js) --- */
/* Sits ABOVE the Ko-fi floating widget, which anchors itself bottom-left and
   cannot be repositioned. At bottom: 1.5rem the widget covered this banner's
   Accept button outright — unclickable, on desktop and mobile both. The offset
   is the widget's height plus its own margin. z-index beats Ko-fi's too: a
   consent prompt has to be answerable before anything else is reachable. */

/* Bottom RIGHT, not left: the Ko-fi widget floats bottom-left, and the two of
   them stacked there read as one pile of nagging. Nothing else occupies the
   right corner, so the +64px Ko-fi clearance is not needed either.
   Small on purpose - it is a yes/no question, not a notice to read. */
.consent-banner {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 2147483000;
  width: min(300px, calc(100vw - 2.5rem));
  background: var(--card-bg-raised); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0.95rem 1.05rem 1rem;
  box-shadow: 0 10px 34px rgba(0,0,0,0.55), 0 0 22px rgba(255,61,206,0.14);
  font-family: 'DM Sans', sans-serif;
}
.consent-title {
  font-family: 'Pacifico', cursive; font-size: 0.95rem; margin: 0 0 0.3rem;
  color: var(--text); text-shadow: 0 0 12px rgba(255,61,206,0.28);
}
.consent-text { font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); margin: 0 0 0.8rem; }
.consent-actions { display: flex; gap: 0.5rem; }
.consent-actions .btn { padding: 0.5rem 0.85rem; font-size: 0.74rem; cursor: pointer; font-family: inherit; }
.footer-cookie-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--muted); text-decoration: underline;
}
.footer-cookie-link:hover { color: var(--neon-pink); }
