/* ===========================================================================
 * GameGrid — Y2K Bubble stylesheet
 * Warm gradient base, candy palette, chrome mirror CTAs, sticker decorations,
 * pixel-mono accents. Zero external CSS dependencies. Single file.
 * =========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Typography */
  --font-display: 'Bagel Fat One', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-quirk:   'Honk', 'Bagel Fat One', system-ui, sans-serif;
  --font-body:    'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-pixel:   'VT323', 'Courier New', monospace;

  /* Surface — warm cream + ice blue gradient base */
  --cream:      #FFF7FB;
  --ice:        #E7F4FF;
  --paper:      #FFF1E1;
  --paper-2:    #FFE4F0;

  /* Text */
  --ink:        #2A1B3D;
  --ink-soft:   #5B4F73;
  --ink-mute:   #9C92AC;
  --hairline:   rgba(42, 27, 61, 0.12);

  /* Candy palette */
  --bubblegum:  #FF6FB5;
  --sky:        #7CC4F4;
  --mint:       #A8F0CD;
  --lavender:   #C7B8FF;
  --lemon:      #FFEB7C;
  --cherry:     #FF3D7F;
  --tangerine:  #FFB370;

  /* Chrome — mirror gradient stops */
  --chrome-1:   #FFFFFF;
  --chrome-2:   #E8EEF6;
  --chrome-3:   #C8D5E4;
  --chrome-4:   #8B9BB4;
  --chrome-5:   #5C6B85;

  /* Geometry */
  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --radius-xl:  40px;

  --wrap-max:   1240px;
  --header-h:   72px;

  /* Motion */
  --bounce:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --soft:       cubic-bezier(0.4, 0, 0.2, 1);

  /* Parallax — driven by app.js mousemove */
  --bubble-x:   0px;
  --bubble-y:   0px;
}

/* ── Reset / base ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  background:
    radial-gradient(ellipse at 80% -10%, rgba(255, 111, 181, 0.22), transparent 55%),
    radial-gradient(ellipse at -10% 20%, rgba(124, 196, 244, 0.22), transparent 55%),
    radial-gradient(ellipse at 110% 90%, rgba(199, 184, 255, 0.22), transparent 50%),
    radial-gradient(ellipse at 20% 110%, rgba(168, 240, 205, 0.20), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--ice) 60%, var(--cream) 100%);
  background-attachment: fixed;
}

main { flex: 1; position: relative; z-index: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cherry); text-decoration: none; transition: color 0.15s var(--soft); }
a:hover, a:focus-visible { color: var(--bubblegum); }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }

::selection { background: var(--lemon); color: var(--ink); }

/* Custom scrollbar — chrome */
* { scrollbar-color: var(--chrome-4) transparent; scrollbar-width: thin; }
*::-webkit-scrollbar { width: 12px; height: 12px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--chrome-2), var(--chrome-4));
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--chrome-3), var(--chrome-5));
  background-clip: padding-box;
}

/* ── Floating candy bubbles (background atmosphere) ─────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: -10vmin;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(var(--bubble-x), var(--bubble-y), 0);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 111, 181, 0.55) 0, transparent 14vmin),
    radial-gradient(circle at 82% 10%, rgba(124, 196, 244, 0.55) 0, transparent 16vmin),
    radial-gradient(circle at 78% 72%, rgba(199, 184, 255, 0.50) 0, transparent 14vmin),
    radial-gradient(circle at 18% 80%, rgba(168, 240, 205, 0.55) 0, transparent 13vmin),
    radial-gradient(circle at 55% 45%, rgba(255, 235, 124, 0.40) 0, transparent 12vmin),
    radial-gradient(circle at 92% 50%, rgba(255, 179, 112, 0.35) 0, transparent 11vmin);
  filter: blur(20px) saturate(1.05);
  opacity: 0.85;
  animation: bubbleDrift 60s ease-in-out infinite alternate;
}
@keyframes bubbleDrift {
  0%   { transform: translate3d(var(--bubble-x), var(--bubble-y), 0) scale(1)    rotate(0deg);  }
  50%  { transform: translate3d(calc(var(--bubble-x) + 14px), calc(var(--bubble-y) - 18px), 0) scale(1.04) rotate(2deg); }
  100% { transform: translate3d(calc(var(--bubble-x) - 12px), calc(var(--bubble-y) + 22px), 0) scale(1.02) rotate(-1deg); }
}

/* ── Layout shell ───────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}
@media (max-width: 600px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
}

.visually-hidden, .skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; padding: 10px 18px;
  background: var(--lemon); color: var(--ink);
  z-index: 9999;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-family: var(--font-pixel);
  font-size: 18px;
  text-transform: uppercase;
}

/* ── Marquee top bar ────────────────────────────────────────────────────── */
.marquee {
  position: relative;
  z-index: 200;
  background: var(--bubblegum);
  color: var(--cream);
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 0.04em;
  padding: 6px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: marqueeRoll 36s linear infinite;
  gap: 36px;
  padding-right: 36px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; }
.marquee-track span::after {
  content: '★';
  color: var(--lemon);
}
@keyframes marqueeRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee:hover .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@media (max-width: 600px) {
  .marquee { font-size: 14px; padding: 5px 0; }
  .marquee-track, .marquee-track span { gap: 22px; }
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 251, 0.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
          backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1.5px solid var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 26px;
  line-height: 1;
  transition: transform 0.2s var(--bounce);
}
.logo:hover { transform: rotate(-3deg) scale(1.04); color: var(--ink); }
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
}
.logo-word .logo-accent { color: var(--bubblegum); }
.logo-sm { font-size: 22px; }

.primary-nav { flex: 1; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.primary-nav a, .cat-toggle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s var(--soft), color 0.18s var(--soft), transform 0.18s var(--bounce);
}
.primary-nav a:hover, .primary-nav a:focus-visible,
.cat-toggle:hover, .cat-toggle:focus-visible {
  background: var(--lemon);
  color: var(--ink);
  transform: rotate(-2deg);
}

.has-menu { position: relative; }
.cat-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 8px;
  display: none;
  box-shadow: 6px 6px 0 var(--ink);
}
.cat-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  border-radius: 999px;
}
.cat-menu a:hover { background: var(--mint); color: var(--ink); }
.has-menu.is-open .cat-menu { display: block; }

.search {
  display: inline-flex;
  align-items: center;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 6px 0 14px;
  height: 40px;
  transition: box-shadow 0.2s var(--soft);
}
.search:focus-within { box-shadow: 4px 4px 0 var(--bubblegum); }
.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
  width: 180px;
}
.search input::placeholder { color: var(--ink-mute); }
.search button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s, transform 0.2s var(--bounce);
}
/* Expand the tap surface to the WCAG-recommended 44px without changing the
   visible icon size. */
.search button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
}
.search button:hover { background: var(--lemon); transform: rotate(8deg); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars {
  position: relative;
  width: 18px; height: 2px;
  background: var(--ink);
  display: block;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0; width: 100%; height: 2px;
  background: var(--ink);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(255, 247, 251, 0.97);
    -webkit-backdrop-filter: blur(24px);
            backdrop-filter: blur(24px);
    border-bottom: 2px solid var(--ink);
    padding: 18px 28px 24px;
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .primary-nav a, .cat-toggle {
    width: 100%;
    padding: 12px 14px;
    justify-content: flex-start;
  }
  .cat-menu {
    position: static;
    border: none;
    box-shadow: none;
    margin-top: 4px;
    padding: 0;
    background: transparent;
  }
  .cat-menu a { padding-left: 30px; }
  .search { display: none; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: 96px;
  background: var(--ink);
  color: var(--cream);
  padding: 64px 0 28px;
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--lemon);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo,
.footer-brand .logo:hover { color: var(--cream); }
.footer-brand .logo-word .logo-accent { color: var(--lemon); }
.footer-tag {
  color: rgba(255, 247, 251, 0.72);
  font-size: 14px;
  max-width: 32ch;
  margin-top: 12px;
}
.footer-h {
  font-family: var(--font-pixel);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--lemon);
  margin-bottom: 14px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-list a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
}
.footer-list a:hover { color: var(--lemon); opacity: 1; }
.footer-base {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 247, 251, 0.16);
  color: rgba(255, 247, 251, 0.6);
  font-size: 12px;
}
.footer-base a { color: rgba(255, 247, 251, 0.85); }
.footer-base a:hover { color: var(--lemon); }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Cookie consent banner ──────────────────────────────────────────────── */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 9000;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 8px 8px 0 var(--bubblegum);
  animation: consentPop 0.4s var(--bounce);
}
.consent-banner.is-leaving { opacity: 0; transition: opacity 0.22s; }
.consent-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 20px;
  flex-wrap: wrap;
}
.consent-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
}
.consent-text a { color: var(--cherry); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.consent-actions { display: inline-flex; gap: 10px; }
.consent-btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  transition: transform 0.2s var(--bounce), box-shadow 0.2s var(--soft);
}
.consent-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.consent-accept {
  background: var(--lemon);
  color: var(--ink);
}
.consent-accept:hover { background: var(--bubblegum); color: var(--cream); }
@keyframes consentPop { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ── Shared atoms ───────────────────────────────────────────────────────── */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cherry);
  margin-bottom: 14px;
}
.kicker.mono { font-family: var(--font-pixel); }
.kicker a { color: inherit; border-bottom: 1px dashed currentColor; }
.kicker a:hover { color: var(--bubblegum); border-bottom-color: var(--bubblegum); }
.kicker-tag { color: var(--cherry); font-weight: 400; }
.kicker-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cherry);
  box-shadow: 0 0 0 3px rgba(255, 61, 127, 0.18);
  animation: blink 1.6s steps(2, start) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.3; } }

.mono { font-family: var(--font-pixel); font-size: 1.1em; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-mute); display: inline-block; }

/* Sticker style (used for tag, badge, "NEW" callouts) */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--lemon);
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Burst star — used as decoration. Use as <svg class="burst"> or .burst::before */
.burst {
  display: inline-block;
  animation: spinSlow 18s linear infinite;
}
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--soft), background 0.2s, color 0.2s;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
}
.btn-xl { padding: 16px 32px; font-size: 16px; }

/* Chrome — mirror finish primary CTA */
.btn-primary {
  background:
    linear-gradient(180deg,
      var(--chrome-1)  0%,
      var(--chrome-2) 35%,
      var(--chrome-4) 55%,
      var(--chrome-2) 75%,
      var(--chrome-1) 100%
    );
  color: var(--ink);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.2),
    4px 4px 0 var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover, .btn-primary:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    7px 7px 0 var(--ink);
  color: var(--ink);
}
.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
    0 0 0 var(--ink);
}

/* Candy variant: solid bubblegum */
.btn-candy {
  background: var(--bubblegum);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-candy:hover, .btn-candy:focus-visible {
  background: var(--cherry);
  color: var(--cream);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

/* Ghost — outlined */
.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--lemon);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

/* ── Section scaffolding ────────────────────────────────────────────────── */
.section { padding: 64px 0 16px; position: relative; z-index: 1; }
.section + .section { padding-top: 32px; }
.section-head { max-width: 720px; margin-bottom: 32px; position: relative; }
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.section-sub {
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 500;
  margin-top: 14px;
  max-width: 60ch;
  line-height: 1.65;
}
.section-foot { margin-top: 32px; }

.section-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}
.section-h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 80px; height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bubblegum), var(--sky));
}

/* ── Hero carousel ──────────────────────────────────────────────────────── */
.hero-carousel { padding: 20px 0 16px; position: relative; }

.carousel-stage {
  position: relative;
  margin: 0 auto;
  max-width: 880px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--cream);
  isolation: isolate;
  aspect-ratio: 21 / 8;
}
@media (max-width: 940px) { .carousel-stage { max-width: 100%; } }
@media (max-width: 820px) { .carousel-stage { aspect-ratio: 21 / 9; max-height: 220px; } }
@media (max-width: 480px) { .carousel-stage { aspect-ratio: 16 / 9; max-height: 190px; } }

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s var(--soft);
  pointer-events: none;
}
.carousel-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.carousel-link {
  display: block;
  width: 100%; height: 100%;
  color: var(--cream);
  position: relative;
}
.carousel-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.carousel-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 27, 61, 0) 25%, rgba(42, 27, 61, 0.7) 70%, rgba(42, 27, 61, 0.85) 100%),
    linear-gradient(95deg, rgba(255, 61, 127, 0.18) 0%, transparent 45%);
}
.carousel-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.carousel-kicker {
  font-family: var(--font-pixel);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--lemon);
  text-shadow: 0 2px 0 rgba(42, 27, 61, 0.45);
}
.carousel-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 3px 0 rgba(42, 27, 61, 0.35);
  max-width: 22ch;
}
.carousel-cta { margin-top: 2px; }
.carousel-cta .btn { pointer-events: none; }
@media (max-width: 600px) {
  .carousel-content { padding: 12px 16px 14px; gap: 6px; }
  .carousel-kicker { font-size: 13px; }
  .carousel-cta { display: none; }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  z-index: 3;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--bounce), background 0.2s;
}
.carousel-arrow:hover { background: var(--lemon); transform: translateY(-50%) scale(1.06); }
.carousel-arrow-prev { left: 16px; }
.carousel-arrow-next { right: 16px; }
@media (max-width: 600px) {
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow-prev { left: 8px; }
  .carousel-arrow-next { right: 8px; }
}
@media (max-width: 480px) {
  .carousel-arrow { display: none; }
}

.carousel-dots {
  display: flex; justify-content: center;
  gap: 10px;
  margin: 18px 0 0;
}
.carousel-dot {
  position: relative;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s var(--bounce), background 0.2s;
}
.carousel-dot::before {
  content: '';
  position: absolute;
  inset: -10px;
}
.carousel-dot:hover { transform: scale(1.15); }
.carousel-dot.is-active { background: var(--bubblegum); transform: scale(1.2); }

/* ── Hero carousel side decoration (Y2K sticker cluster) ────────────────── */
.hero-carousel-wrap { position: relative; }

.hero-deco {
  position: absolute;
  top: 20px;
  bottom: 50px;
  width: 160px;
  pointer-events: none;
  display: none;
}
.hero-deco-left  { left: -8px; }
.hero-deco-right { right: -8px; }

@media (min-width: 1240px) {
  .hero-deco { display: block; }
}

.hero-deco-cd {
  position: absolute;
  top: 14%;
  left: 12px;
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background:
    radial-gradient(circle at 50% 50%, var(--cream) 0 14px, var(--ink) 14px 17px, transparent 17px),
    conic-gradient(from 0deg, var(--bubblegum), var(--lemon), var(--sky), var(--lavender), var(--bubblegum));
  box-shadow: 4px 4px 0 var(--ink);
  animation: spinSlow 14s linear infinite;
}

.hero-deco-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(180deg, var(--lemon), var(--tangerine, #ff9f4a));
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}
.hero-deco-tag-pick  { top: 4%;   left: 18px;  transform: rotate(-6deg); }
.hero-deco-tag-arrow {
  bottom: 16%;
  right: 14px;
  transform: rotate(4deg);
  background: linear-gradient(180deg, var(--bubblegum), var(--cherry));
  color: var(--cream);
}

.hero-deco-sparkle {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--cherry);
  border: 1.5px solid var(--ink);
  transform: rotate(45deg);
  box-shadow: 2px 2px 0 var(--ink);
}
.hero-deco-sparkle-1 { top: 56%; left: 24px; }
.hero-deco-sparkle-2 { top: 74%; left: 70px; background: var(--sky); }
.hero-deco-sparkle-3 { top: 90%; left: 22px; background: var(--lemon); }

.hero-deco-burst {
  position: absolute;
  top: 8%;
  right: 22px;
  filter: drop-shadow(3px 3px 0 var(--ink));
  animation: spinSlow 22s linear infinite;
}

.hero-deco-bubble {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
}
.hero-deco-bubble-1 {
  top: 58%; right: 32px; width: 28px; height: 28px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--lavender));
}
.hero-deco-bubble-2 {
  top: 80%; right: 74px; width: 18px; height: 18px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--mint));
}

@media (prefers-reduced-motion: reduce) {
  .hero-deco-cd, .hero-deco-burst { animation: none; }
}

/* Wobble characters (still used for accents elsewhere if needed) */
.wobble-char {
  display: inline-block;
  transform-origin: 50% 80%;
  animation: charWobble 4s var(--bounce) infinite;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
@keyframes charWobble {
  0%, 100%   { transform: translateY(0) rotate(0); }
  40%        { transform: translateY(-4px) rotate(-2deg); }
  60%        { transform: translateY(2px)  rotate(2deg); }
}
@media (max-width: 480px) {
  .wobble-char { display: inline; animation: none; }
}

/* ── Game card ──────────────────────────────────────────────────────────── */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 1080px) { .game-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 380px)  { .game-grid { grid-template-columns: 1fr; gap: 14px; } }

@media (hover: none) {
  .game-card-play { opacity: 1; transform: none; }
  .game-card:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); background: rgba(255, 255, 255, 0.62); }
  .game-card:hover .game-card-media img { transform: none; filter: none; }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--ink);
  isolation: isolate;
  box-shadow: 4px 4px 0 var(--ink);
  transition:
    transform 0.25s var(--bounce),
    box-shadow 0.25s var(--soft),
    background 0.25s var(--soft);
}
.game-card:hover, .game-card:focus-visible {
  transform: translate(-3px, -5px) rotate(-1.2deg);
  box-shadow: 8px 9px 0 var(--bubblegum);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}
.game-card.is-hidden { display: none; }

.game-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  overflow: hidden;
}
.game-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--bounce), filter 0.25s;
}
.game-card:hover .game-card-media img { transform: scale(1.08) rotate(0.5deg); filter: saturate(1.1); }

.game-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 12px;
  z-index: 2;
}
.game-card-cat-badge {
  font-family: var(--font-pixel);
  font-size: 15px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  transform: rotate(-3deg);
  align-self: flex-end;
}
.game-card-play {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bubblegum);
  color: var(--cream);
  border: 1.5px solid var(--ink);
  align-self: flex-end;
  opacity: 0;
  transform: translateY(4px) scale(0.9);
  transition: opacity 0.25s, transform 0.25s var(--bounce);
}
.game-card:hover .game-card-play { opacity: 1; transform: translateY(0) scale(1); }

/* "FREE" pixel price tag — top right */
.game-card-tag {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
  font-family: var(--font-pixel);
  font-size: 16px;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--lemon);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  transform: rotate(-8deg);
  pointer-events: none;
  box-shadow: 2px 2px 0 var(--ink);
}

/* Orientation badge — phone / tablet / circle icon, top-left corner of card */
.game-card-orient {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  pointer-events: none;
}
.game-card-orient[data-o="portrait"]  { background: var(--lemon); }
.game-card-orient[data-o="all"]       { background: var(--mint); }
.game-card-orient[data-o="landscape"] { background: var(--cream); }

/* Phone-first: home Mobile-pref chip toggles this on the body, hiding any
   landscape-only games across all sections (cards, mood grids, related,
   plus the hero carousel slide itself — JS keeps autoplay in sync). */
body.phone-first .game-card[data-o="landscape"],
body.phone-first .carousel-slide[data-o="landscape"] { display: none; }

/* Mobile-pref chip row — sits between hero carousel and mood tabs */
.mobile-pref { padding-top: 12px; padding-bottom: 4px; }
.mobile-pref-row { justify-content: center; }

.game-card-meta { padding: 14px 16px 16px; }
.game-card-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin-bottom: 4px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card-tag-line {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-card-rawcat { color: var(--cherry); }
.dot-sep { color: var(--ink-mute); }

/* ── Category cards (home) ──────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--cat-color, var(--lemon));
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--soft);
  position: relative;
  overflow: hidden;
}
.cat-card[data-cat-color="action"]     { --cat-color: var(--bubblegum); color: var(--cream); }
.cat-card[data-cat-color="puzzle"]     { --cat-color: var(--sky); color: var(--ink); }
.cat-card[data-cat-color="arcade"]     { --cat-color: var(--lemon); color: var(--ink); }
.cat-card[data-cat-color="adventure"]  { --cat-color: var(--mint); color: var(--ink); }
.cat-card[data-cat-color="racing"]     { --cat-color: var(--tangerine); color: var(--ink); }
.cat-card[data-cat-color="sports"]     { --cat-color: var(--cherry); color: var(--cream); }
.cat-card[data-cat-color="kids"]       { --cat-color: var(--lavender); color: var(--ink); }
.cat-card[data-cat-color="simulation"] { --cat-color: var(--paper-2); color: var(--ink); }

.cat-card::before {
  content: '';
  position: absolute;
  top: -20%; right: -20%;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(8px);
  transition: transform 0.4s var(--bounce);
}
.cat-card:hover, .cat-card:focus-visible {
  transform: translate(-3px, -4px) rotate(-1.5deg);
  box-shadow: 8px 9px 0 var(--ink);
}
.cat-card:hover::before { transform: scale(1.4) translate(-10%, 20%); }

.cat-card-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.cat-card-count {
  font-family: var(--font-pixel);
  font-size: 18px;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}
.cat-card-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.25s var(--bounce);
  position: relative;
  z-index: 1;
}
.cat-card:hover .cat-card-arrow {
  transform: rotate(45deg) scale(1.08);
  background: var(--ink);
  color: var(--lemon);
}

/* ── Mood tabs (home) ───────────────────────────────────────────────────── */
.mood-section { padding-top: 24px; }

.section-head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.section-aside {
  color: var(--ink-soft);
  font-size: 15px;
}
.mood-see-all {
  font-family: var(--font-pixel);
  font-size: 20px;
  display: inline-flex; align-items: center;
  gap: 6px;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, transform 0.2s var(--bounce);
}
.mood-see-all:hover { color: var(--cherry); border-bottom-color: var(--cherry); transform: translateX(2px); }

.mood-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 32px;
}
@media (max-width: 960px) { .mood-tabs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .mood-tabs { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mood-tab { padding: 12px 14px; gap: 8px; min-height: 44px; }
  .mood-tab-name { font-size: 18px; }
}

.mood-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 400;
  text-align: left;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--soft), background 0.2s, color 0.2s;
}
.mood-tab:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.mood-tab-name { font-size: 22px; line-height: 1; letter-spacing: -0.01em; }
.mood-tab-count {
  font-family: var(--font-pixel);
  font-size: 16px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.mood-tab[data-cat-color="action"].is-active     { background: var(--bubblegum); color: var(--cream); }
.mood-tab[data-cat-color="puzzle"].is-active     { background: var(--sky); color: var(--ink); }
.mood-tab[data-cat-color="arcade"].is-active     { background: var(--lemon); color: var(--ink); }
.mood-tab[data-cat-color="adventure"].is-active  { background: var(--mint); color: var(--ink); }
.mood-tab[data-cat-color="racing"].is-active     { background: var(--tangerine); color: var(--ink); }
.mood-tab[data-cat-color="sports"].is-active     { background: var(--cherry); color: var(--cream); }
.mood-tab[data-cat-color="kids"].is-active       { background: var(--lavender); color: var(--ink); }
.mood-tab[data-cat-color="simulation"].is-active { background: var(--paper-2); color: var(--ink); }
.mood-tab.is-active { box-shadow: 6px 7px 0 var(--ink); transform: translate(-2px, -3px); }
.mood-tab.is-active .mood-tab-count { background: var(--cream); color: var(--ink); }

.mood-stage { position: relative; }
.mood-grid { animation: moodFade 0.4s var(--soft); }
@keyframes moodFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── Tag cloud (rawCategory chips) ──────────────────────────────────────── */
.tag-section { padding-top: 8px; }
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.2s var(--bounce), background 0.2s, color 0.2s;
}
.tag-chip:nth-child(4n+1) { background: var(--paper); }
.tag-chip:nth-child(4n+2) { background: var(--paper-2); }
.tag-chip:nth-child(4n+3) { background: #E9F8FF; }
.tag-chip:nth-child(4n+4) { background: #E8FFEF; }
.tag-chip:hover {
  background: var(--ink);
  color: var(--lemon);
  transform: translate(-1px, -2px) rotate(-1.5deg);
}
.tag-chip-n {
  font-family: var(--font-pixel);
  font-size: 14px;
  opacity: 0.7;
}
.tag-chip:hover .tag-chip-n { opacity: 0.9; }

/* ── Mini explainer + collapsed FAQ (home bottom) ───────────────────────── */
.mini-explainer { padding-top: 8px; padding-bottom: 16px; }
.mini-explainer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) { .mini-explainer-grid { grid-template-columns: 1fr; gap: 18px; } }
.mini-explainer-p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 56ch;
  margin-top: 12px;
}

.faq-collapse {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 14px 18px;
  transition: box-shadow 0.2s, transform 0.2s var(--bounce);
}
.faq-collapse + .faq-collapse { margin-top: 12px; }
.faq-collapse[open] { transform: translate(-1px, -2px); box-shadow: 6px 7px 0 var(--ink); }
.faq-collapse summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.faq-collapse summary::-webkit-details-marker { display: none; }
.faq-collapse summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  width: 28px; height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lemon);
  transition: transform 0.2s var(--bounce), background 0.2s;
}
.faq-collapse[open] summary::after { content: '×'; background: var(--bubblegum); color: var(--cream); }
.faq-collapse p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ── FAQ list ───────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-row {
  padding: 16px 0;
  border-bottom: 1.5px dashed var(--hairline);
}
.faq-row:last-child { border-bottom: none; padding-bottom: 0; }
.faq-row dt {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.faq-row dd { color: var(--ink-soft); font-size: 14.5px; line-height: 1.7; }

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--ink-mute);
  padding: 18px 0;
}
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--ink-mute); }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--cherry); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ── Game detail page ───────────────────────────────────────────────────── */
.game-hero { padding-bottom: 32px; }
.game-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 820px) { .game-hero-inner { grid-template-columns: 1fr; gap: 28px; } }

.game-hero-cover {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--bubblegum);
}
.game-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.game-hero-burst {
  position: absolute;
  top: -22px; right: -22px;
  width: 88px; height: 88px;
  color: var(--lemon);
  z-index: 3;
  pointer-events: none;
}
.game-hero-meta { position: relative; }

.game-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 60px);
  letter-spacing: -0.015em;
  line-height: 0.95;
  margin: 10px 0 16px;
  color: var(--ink);
}
.rating { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.rating-stars {
  font-family: var(--font-quirk);
  font-size: 30px;
  color: var(--cherry);
  letter-spacing: 2px;
  line-height: 1;
}
.rating-num { color: var(--ink-soft); font-family: var(--font-pixel); font-size: 20px; }
.rating-num span { color: var(--ink-mute); font-size: 14px; }

.game-body { padding: 24px 0 32px; max-width: 980px; }
.game-section { margin: 32px auto; }
.game-section p { color: var(--ink-soft); line-height: 1.85; font-size: 16px; max-width: 72ch; }
.tips {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tips li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
}
.tips li::before {
  content: '★';
  position: absolute;
  left: 4px; top: -2px;
  color: var(--cherry);
  font-family: var(--font-quirk);
  font-size: 20px;
}

.overview-quote {
  margin: 0 0 18px;
  padding: 22px 26px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--bubblegum);
  border-radius: var(--radius-md);
  box-shadow: 4px 4px 0 var(--ink);
}
.overview-quote p { color: var(--ink); font-size: 17px; line-height: 1.65; margin-bottom: 8px; font-weight: 500; }
.overview-quote cite {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--ink-soft);
  font-style: normal;
}
.overview-context { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }

.play-cta {
  margin: 36px 0 0;
  padding: 32px;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
}
.play-cta h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
  color: var(--ink);
}
.play-cta p { color: var(--ink-soft); margin-bottom: 18px; font-size: 15px; }

.related { padding: 32px 0 16px; }

/* ── Category page hero ─────────────────────────────────────────────────── */
.cat-hero { padding: 56px 0 28px; position: relative; }
.cat-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.cat-hero-count {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--ink);
  background: var(--lemon);
  border: 2px solid var(--ink);
  padding: 4px 14px;
  border-radius: 999px;
  transform: rotate(-3deg);
}
.cat-hero-intro {
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 70ch;
  font-size: 16px;
}

.chip-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 11px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.18s var(--bounce), background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip:hover, .chip:focus-visible {
  background: var(--lemon);
  transform: translateY(-2px) rotate(-2deg);
  box-shadow: 3px 3px 0 var(--ink);
}
.chip.is-active {
  background: var(--bubblegum);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
}
/* Keep the active chip looking active when it also receives keyboard focus
   — the generic `.chip:focus-visible` rule above would otherwise repaint it
   in lemon, making it look unselected. */
.chip.is-active:focus-visible {
  background: var(--bubblegum);
  color: var(--cream);
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ── All-games filters ──────────────────────────────────────────────────── */
.all-hero { padding: 56px 0 28px; position: relative; }
.all-hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 68px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--ink);
}
.all-hero-count {
  font-family: var(--font-pixel);
  font-size: 22px;
  color: var(--ink);
  background: var(--lemon);
  border: 2px solid var(--ink);
  padding: 4px 14px;
  border-radius: 999px;
  transform: rotate(-3deg);
}
.all-hero-sub { color: var(--ink-soft); line-height: 1.7; max-width: 60ch; margin-bottom: 26px; font-size: 16px; }
.all-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.search-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0 14px;
  height: 42px;
  color: var(--ink-mute);
  flex: 1;
  min-width: 220px;
  max-width: 360px;
  transition: box-shadow 0.18s var(--soft);
}
.search-inline:focus-within { box-shadow: 4px 4px 0 var(--bubblegum); }
.search-inline input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  width: 100%;
}
.search-inline input::placeholder { color: var(--ink-mute); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--ink-soft);
  font-family: var(--font-pixel);
  font-size: 22px;
}
.empty-state-text { margin: 0; }
.empty-state-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.empty-state-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--ink, #16121a);
  border-radius: 999px;
  background: var(--surface-1, #fff);
  color: var(--ink, #16121a);
  font-family: var(--font-pixel);
  font-size: 14px;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink, #16121a);
  transition: transform .12s ease, box-shadow .12s ease;
}
.empty-state-action:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink, #16121a);
}
.empty-state-action:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--ink, #16121a);
}

/* ── Static (legal/about) pages ─────────────────────────────────────────── */
.static-page { padding: 56px 0 40px; max-width: 820px; }
.static-head { margin-bottom: 32px; position: relative; }
.static-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 10px;
  color: var(--ink);
}
.static-sub { color: var(--ink-soft); font-size: 17px; line-height: 1.7; max-width: 60ch; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  position: relative;
}
.prose h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 80px; height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bubblegum), var(--sky));
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin: 26px 0 10px;
  letter-spacing: -0.005em;
}
.prose p, .prose li { color: var(--ink-soft); line-height: 1.85; font-size: 16px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }
.prose a {
  color: var(--cherry);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 600;
}
.prose a:hover { color: var(--bubblegum); }
.prose blockquote {
  margin: 18px 0;
  padding: 16px 22px;
  border-left: 4px solid var(--bubblegum);
  background: var(--paper);
  color: var(--ink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose code {
  font-family: var(--font-pixel);
  font-size: 1em;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--lemon);
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.notfound {
  padding: 96px 0 64px;
  text-align: center;
  max-width: 640px;
  position: relative;
}
.notfound-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(120px, 22vw, 240px);
  letter-spacing: -0.05em;
  line-height: 0.85;
  position: relative;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--bubblegum) 0%, var(--cherry) 35%, var(--lavender) 70%, var(--sky) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  text-shadow: 6px 6px 0 rgba(42, 27, 61, 0.12);
}
.notfound-glitch { display: none; }
.notfound-sub { color: var(--ink-soft); line-height: 1.7; margin-bottom: 32px; font-size: 17px; }
.notfound-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Play page ──────────────────────────────────────────────────────────── */
.play-body {
  margin: 0;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(255, 111, 181, 0.20), transparent 55%),
    radial-gradient(ellipse at -10% 80%, rgba(124, 196, 244, 0.20), transparent 55%),
    var(--cream);
  color: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  font-family: var(--font-body);
}
.play-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(255, 247, 251, 0.86);
  -webkit-backdrop-filter: blur(18px);
          backdrop-filter: blur(18px);
  border-bottom: 2px solid var(--ink);
}
.play-back, .play-fs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  transition: transform 0.18s var(--bounce), box-shadow 0.2s, background 0.2s;
}
.play-back:hover, .play-fs:hover {
  background: var(--lemon);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.play-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 0;
}
.play-title strong { color: var(--ink); font-weight: 800; }
.play-title a {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--cherry);
}

.play-stage {
  position: relative;
  flex: 1;
  display: flex;
  background: var(--cream);
  min-height: 0;
}
.play-stage iframe {
  flex: 1;
  border: none;
  background: var(--cream);
  width: 100%;
}
.play-exit {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 30;
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.play-exit:hover { background: var(--lemon); }

body.is-fakefs {
  position: fixed;
  inset: 0;
  margin: 0;
  background: var(--cream);
}
body.is-fakefs .play-bar { display: none; }
body.is-fakefs .play-stage { height: 100dvh; }

/* Loader — three candy orbs in orbit */
.play-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: var(--cream);
  transition: opacity 0.5s var(--soft);
}
.play-loader.is-fading { opacity: 0; pointer-events: none; }
/* Error state: freeze the orbital animation so users read "we couldn't load
   it" instead of seeing a spinner that lies about progress. */
.play-loader.is-error .loader-orbit { animation-play-state: paused; opacity: 0.45; }
.play-loader.is-error .loader-center { background: var(--cherry, #ff4d6d); }

.loader-art {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-orbit {
  position: absolute;
  inset: 0;
  animation: orbitSpin 1.4s linear infinite;
}
.loader-orb {
  position: absolute;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  top: 50%; left: 50%;
  margin: -13px 0 0 -13px;
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.55), 2px 2px 0 var(--ink);
}
.loader-orb-1 {
  background: var(--bubblegum);
  transform: translate(40px, 0);
}
.loader-orb-2 {
  background: var(--sky);
  transform: rotate(120deg) translate(40px) rotate(-120deg);
}
.loader-orb-3 {
  background: var(--mint);
  transform: rotate(240deg) translate(40px) rotate(-240deg);
}
.loader-center {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--lemon);
  border: 2px solid var(--ink);
  position: relative;
  z-index: 1;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.6);
}
@keyframes orbitSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.loader-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.loader-tip {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--ink-soft);
}
.loader-refresh {
  margin-top: 6px;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lemon);
  color: var(--ink);
  transition: transform 0.18s var(--bounce), box-shadow 0.2s;
}
.loader-refresh:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }

.rotate-hint {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 247, 251, 0.92);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.rotate-hint-card {
  max-width: 320px;
  text-align: center;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 22px 22px 18px;
  color: var(--ink);
}
.rotate-hint-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  animation: rotateHintWobble 2.4s var(--bounce, ease-in-out) infinite;
  transform-origin: 50% 60%;
}
.rotate-hint-icon svg { transition: transform 0.3s ease; }
.rotate-hint-icon svg.is-portrait { transform: rotate(90deg); }
@keyframes rotateHintWobble {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-18deg); }
  50%      { transform: rotate(0); }
  75%      { transform: rotate(18deg); }
}
.rotate-hint-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 14px;
  color: var(--ink);
}
.rotate-hint-actions {
  display: flex;
  justify-content: center;
}
.rotate-hint-dismiss {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  min-height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--bubblegum), var(--cherry));
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--bounce), box-shadow 0.2s;
}
.rotate-hint-dismiss:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01s !important; }
  body::before { animation: none; }
  .burst, .marquee-track, .carousel-slide { animation: none; transition: none; }
  .wobble-char { animation: none; }
  .loader-orbit { animation-duration: 0s; animation-iteration-count: 1; }
  .rotate-hint-icon { animation: none; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
  body::before, .site-header, .site-footer, .marquee, .consent-banner { display: none !important; }
  body { background: white; color: black; }
}
