/* ==========================================================================
   NaCho Family — styles.css
   One stylesheet shared by every page.

   Table of contents
   1.  Brand tokens (colors, fonts, spacing)  <-- edit brand colors here
   2.  Base / reset
   3.  Layout helpers
   4.  Buttons, pills, eyebrows
   5.  Header + navigation
   6.  Footer
   7.  Homepage sections
   8.  Shared: progress, stats, collection panel
   9.  Pokémon page (checklist grid)
   10. Videos page
   11. About page + character avatars
   12. Arcade page
   13. Animations
   14. Responsive tweaks
   ========================================================================== */


/* ==========================================================================
   1. BRAND TOKENS
   The colors come from the five mascots:
   Appa = blue, Umma = coral, Woo = orange, Min = yellow, Jin = teal.
   "-ink" versions are darker so text stays readable on light backgrounds.
   ========================================================================== */
:root {
  /* Backgrounds */
  --color-bg: #fff9f1;          /* warm off-white page background */
  --color-bg-alt: #fbf1e4;      /* slightly deeper cream for alternating sections */
  --color-surface: #ffffff;     /* cards */
  --color-line: #efe4d5;        /* borders and dividers */

  /* Text */
  --color-ink: #1d2340;         /* main text (deep navy) */
  --color-ink-soft: #596080;    /* secondary text */

  /* Mascot colors */
  --color-blue: #2a4baa;        /* Appa */
  --color-blue-dark: #1b2f78;
  --color-blue-soft: #e7ecfa;
  --color-coral: #e8646b;       /* Umma */
  --color-coral-ink: #c9424b;
  --color-coral-soft: #fce8e6;
  --color-orange: #f07c24;      /* Woo */
  --color-orange-ink: #b9560d;
  --color-orange-soft: #fdecdc;
  --color-yellow: #f5ba2b;      /* Min */
  --color-yellow-soft: #fdf3d6;
  --color-teal: #2e9b7a;        /* Jin */
  --color-teal-ink: #1f7a5d;
  --color-teal-soft: #dff2eb;

  /* Fonts (loaded from Google Fonts in each page's <head>) */
  --font-display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Shape + depth */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(29, 35, 64, 0.05), 0 2px 8px rgba(29, 35, 64, 0.05);
  --shadow: 0 4px 12px rgba(29, 35, 64, 0.06), 0 14px 32px rgba(29, 35, 64, 0.08);
  --shadow-lg: 0 10px 30px rgba(29, 35, 64, 0.08), 0 30px 70px rgba(29, 35, 64, 0.12);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Visually hidden but still read by screen readers */
.sr-only {
  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 {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}


/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header h2 {
  margin-bottom: 0.25rem;
}

.section-header p {
  margin: 0;
  max-width: 36rem;
  color: var(--color-ink-soft);
}

.section-header--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--color-ink-soft);
}


/* ==========================================================================
   4. BUTTONS, PILLS, EYEBROWS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(42, 75, 170, 0.28);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  box-shadow: 0 10px 24px rgba(42, 75, 170, 0.32);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-ink);
  border-color: var(--color-line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* For buttons that sit on the dark blue collection panel */
.btn-light {
  background: #fff;
  color: var(--color-blue-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-light:hover {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Small label above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-coral-ink);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* Rounded labels like "Coming Soon" */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  background: var(--color-blue-soft);
  color: var(--color-blue-dark);
}

.pill--live { background: var(--color-teal-soft); color: var(--color-teal-ink); }
.pill--soon { background: var(--color-yellow-soft); color: #8a5a00; }
.pill--sample { background: var(--color-orange-soft); color: var(--color-orange-ink); }

.pill--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* "Create. Play. Build. Grow." with each word in a mascot color */
.tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15em 0.45em;
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
}

.tagline span:nth-child(1) { color: var(--color-blue); }
.tagline span:nth-child(2) { color: var(--color-coral-ink); }
.tagline span:nth-child(3) { color: var(--color-orange-ink); }
.tagline span:nth-child(4) { color: var(--color-teal-ink); }


/* ==========================================================================
   5. HEADER + NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 241, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--color-line);
  box-shadow: 0 6px 20px rgba(29, 35, 64, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

/* Logo: paw mark + wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}

.logo-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.06);
}

.logo-text span {
  color: var(--color-blue);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  color: var(--color-ink);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.site-nav a:hover {
  background: var(--color-blue-soft);
  color: var(--color-blue-dark);
}

.site-nav a[aria-current="page"] {
  background: var(--color-ink);
  color: #fff;
}

/* Hamburger button (only visible on small screens) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-ink);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }


/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
  margin-top: 0;
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .logo {
  color: #fff;
  margin-bottom: 1rem;
}

/* Light badge behind the paw so the dark pad shows on the dark footer */
.site-footer .logo-mark {
  padding: 5px;
  border-radius: 14px;
  background: var(--color-bg);
}

.site-footer .logo-text span {
  color: var(--color-yellow);
}

.site-footer .tagline {
  font-size: 1.25rem;
}

/* Brighter tagline colors on the dark footer */
.site-footer .tagline span:nth-child(1) { color: #8fa8ff; }
.site-footer .tagline span:nth-child(2) { color: #ff9ea3; }
.site-footer .tagline span:nth-child(3) { color: #ffae6b; }
.site-footer .tagline span:nth-child(4) { color: #6fd3b0; }

.footer-heading {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}


/* ==========================================================================
   7. HOMEPAGE SECTIONS
   ========================================================================== */

/* ---------- 7a. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* Soft colored glows behind the hero */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(245, 186, 43, 0.22), transparent 65%);
}

.hero::after {
  width: 640px;
  height: 640px;
  right: -200px;
  bottom: -260px;
  background: radial-gradient(circle, rgba(42, 75, 170, 0.14), transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.hero-title {
  margin-bottom: 0.2em;
  font-size: clamp(3rem, 7vw, 5.25rem);
  line-height: 0.95;
}

.hero-title .accent {
  color: var(--color-blue);
}

.hero-intro {
  max-width: 30rem;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--color-ink-soft);
}

.hero-art {
  position: relative;
}

/* Frame around the big mascot image */
.image-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: clamp(6px, 1vw, 10px);
  box-shadow: var(--shadow-lg);
}

.image-frame img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 8px);
}

/* Placeholder shown by script.js ONLY if the image file is missing */
.image-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  aspect-ratio: 16 / 9;
  padding: 2rem;
  border: 3px dashed var(--color-line);
  border-radius: calc(var(--radius-lg) - 8px);
  background:
    radial-gradient(circle at 20% 30%, var(--color-yellow-soft), transparent 40%),
    radial-gradient(circle at 80% 70%, var(--color-blue-soft), transparent 45%),
    var(--color-bg);
  color: var(--color-ink-soft);
  text-align: center;
  font-weight: 700;
}

.image-placeholder code {
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  background: var(--color-surface);
  font-size: 0.9rem;
}

.image-frame.is-missing img { display: none; }
.image-frame.is-missing .image-placeholder { display: flex; }

/* Little floating sticker over the hero image */
.hero-sticker {
  position: absolute;
  left: clamp(-0.5rem, -1vw, 0rem);
  bottom: -1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem 0.65rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 0.95rem;
}

.dot-row {
  display: inline-flex;
}

.dot-row span {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.dot-row span + span { margin-left: -6px; }
.dot-row span:nth-child(1) { background: var(--color-blue); }
.dot-row span:nth-child(2) { background: var(--color-coral); }
.dot-row span:nth-child(3) { background: var(--color-orange); }
.dot-row span:nth-child(4) { background: var(--color-teal); }
.dot-row span:nth-child(5) { background: var(--color-yellow); }

/* ---------- 7b. Video cards (used on home + videos page) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.video-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.video-card-body {
  padding: 1.1rem 1.25rem 1.35rem;
}

.video-card-body h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.video-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* The 16:9 thumbnail / embed area.
   To use a real video later, put an <iframe> inside .video-embed (see videos.html). */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-ink);
}

.video-embed iframe,
.video-embed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-embed--vertical {
  aspect-ratio: 9 / 16;
}

/* Colorful placeholder thumbnail */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.28), transparent 35%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(135deg, var(--thumb-a, var(--color-blue)), var(--thumb-b, var(--color-teal)));
}

.video-placeholder--coral { --thumb-a: var(--color-coral); --thumb-b: var(--color-orange); }
.video-placeholder--sun { --thumb-a: var(--color-orange); --thumb-b: var(--color-yellow); }
.video-placeholder--teal { --thumb-a: var(--color-teal); --thumb-b: var(--color-blue); }
.video-placeholder--navy { --thumb-a: var(--color-blue-dark); --thumb-b: var(--color-blue); }

/* Play button on top of a real thumbnail image */
.video-placeholder--over {
  background: linear-gradient(180deg, rgba(29, 35, 64, 0) 40%, rgba(29, 35, 64, 0.35));
}

.play-button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease);
}

.play-button svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-card:hover .play-button {
  transform: scale(1.08);
}

.video-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(29, 35, 64, 0.72);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.video-duration {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(29, 35, 64, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- 7c. "What we're building" cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}

a.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent, var(--color-blue));
}

.feature-card h3 {
  margin: 0.25rem 0 0;
}

.feature-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

.feature-card .pill {
  align-self: flex-start;
  margin-top: auto;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-soft, var(--color-blue-soft));
  color: var(--accent, var(--color-blue));
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card--blue { --accent: var(--color-blue); --accent-soft: var(--color-blue-soft); }
.feature-card--coral { --accent: var(--color-coral-ink); --accent-soft: var(--color-coral-soft); }
.feature-card--orange { --accent: var(--color-orange-ink); --accent-soft: var(--color-orange-soft); }
.feature-card--teal { --accent: var(--color-teal-ink); --accent-soft: var(--color-teal-soft); }

/* Future projects look "not built yet" */
.feature-card--soon {
  background: transparent;
  border: 2px dashed #e2d3bf;
  box-shadow: none;
}

.feature-card--soon .feature-icon {
  background: var(--color-bg-alt);
}

.card-link-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  font-weight: 800;
  color: var(--accent, var(--color-blue));
}

.card-link-text svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

a.feature-card:hover .card-link-text svg {
  transform: translateX(3px);
}

/* ---------- 7d. About preview ---------- */
.about-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.about-preview p {
  color: var(--color-ink-soft);
}

.avatar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 0.75rem;
}

.avatar-row figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.avatar-row .avatar {
  width: clamp(70px, 9vw, 96px);
}


/* ==========================================================================
   8. SHARED: PROGRESS BAR, STATS, COLLECTION PANEL
   ========================================================================== */

/* Big dark-blue panel used for the Pokémon teaser and Pokémon page header */
.collection-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5.5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

/* Subtle dotted texture */
.collection-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
}

.collection-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 186, 43, 0.35), transparent 65%);
}

.collection-panel .eyebrow {
  color: var(--color-yellow);
}

.collection-panel h2,
.collection-panel h1 {
  color: #fff;
}

.collection-panel .set-name {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-yellow);
}

.collection-panel p {
  color: rgba(255, 255, 255, 0.85);
}

.collection-panel .btn-row {
  margin-top: 1.75rem;
}

/* Glassy card that holds the progress numbers */
.progress-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.progress-label {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
}

.progress-percent {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.progress-track {
  height: 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-yellow), var(--color-orange));
  box-shadow: 0 0 18px rgba(245, 186, 43, 0.45);
  transition: width 1.2s var(--ease);
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat {
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.stat--owned .stat-value { color: #7fe0bd; }
.stat--missing .stat-value { color: #ffb4b7; }

.sample-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Decorative fanned cards next to the progress card */
.card-fan {
  position: relative;
  height: 130px;
  margin-bottom: -2.5rem;
  pointer-events: none;
}

.card-fan span {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 84px;
  aspect-ratio: 63 / 88;
  border-radius: 10px;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  transform-origin: bottom center;
}

.card-fan span:nth-child(1) { background: linear-gradient(160deg, var(--color-coral), var(--color-orange)); transform: translateX(-120%) rotate(-16deg); }
.card-fan span:nth-child(2) { background: linear-gradient(160deg, var(--color-yellow), var(--color-orange)); transform: translateX(-50%) translateY(-12px); z-index: 1; }
.card-fan span:nth-child(3) { background: linear-gradient(160deg, var(--color-teal), var(--color-blue)); transform: translateX(20%) rotate(16deg); }


/* ==========================================================================
   9. POKÉMON PAGE
   ========================================================================== */
.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.page-hero--center {
  text-align: center;
}

.page-hero--center .lead {
  max-width: 42rem;
  margin-inline: auto;
}

.collection-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.75rem);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.info-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.info-card h3 {
  font-size: 1.15rem;
}

.info-card p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

/* Filter bar above the grid */
.checklist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.filter-btn {
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink-soft);
  font-weight: 800;
  transition: background-color 0.2s, color 0.2s;
}

.filter-btn:hover {
  color: var(--color-ink);
  background: var(--color-bg-alt);
}

.filter-btn[aria-pressed="true"] {
  background: var(--color-ink);
  color: #fff;
}

/* Card type pull-down */
.type-select {
  position: relative;
  flex: 0 1 300px;
}

.type-select select {
  width: 100%;
  min-height: 50px;
  padding: 0.6rem 2.75rem 0.6rem 1.15rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.type-select select:focus {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
  border-color: transparent;
}

.type-select svg {
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--color-ink-soft);
  pointer-events: none;
}

.filter-count {
  margin: 0 0 0 auto;
  font-weight: 700;
  color: var(--color-ink-soft);
}

/* The card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.tcg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
}

.tcg-card:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: var(--shadow);
}

/* Colored "art" window — a clean placeholder, no real card artwork */
.tcg-card-art {
  position: relative;
  aspect-ratio: 63 / 88;          /* real trading-card proportions */
  transition: filter 0.25s, opacity 0.25s;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.45), transparent 45%),
    linear-gradient(155deg, var(--type-a), var(--type-b));
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.tcg-card-art svg {
  width: 42%;
  height: auto;
  opacity: 0.9;
}

/* Card number badge (top-left corner of every card) */
.tcg-card-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(29, 35, 64, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tcg-card-body {
  padding: 0.6rem 0.3rem 0.15rem;
}

.tcg-card-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.15;
}

.tcg-card-meta {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-ink-soft);
  line-height: 1.3;
}

.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.status-badge svg {
  width: 12px;
  height: 12px;
}

.tcg-card.is-owned .status-badge {
  background: #fff;
  color: var(--color-teal-ink);
}


/* Missing cards are faded */
.tcg-card.is-missing {
  background: transparent;
  border: 2px dashed #dccbb5;
  box-shadow: none;
}

.tcg-card.is-missing .tcg-card-art {
  filter: grayscale(0.7);
  opacity: 0.45;
}

/* Real card pictures stay recognizable, just grayed out */
.tcg-card.is-missing.has-image .tcg-card-art {
  filter: grayscale(0.9);
  opacity: 0.6;
}

/* Hovering / tapping a missing card keeps it gray so it never looks owned —
   just a small lift and a darker dashed outline */
.tcg-card.is-missing:hover {
  transform: translateY(-2px);
  border-color: var(--color-ink-soft);
}

.tcg-card.is-missing .tcg-card-body {
  opacity: 0.6;
}

.tcg-card.is-missing .status-badge {
  background: var(--color-ink-soft);
  color: #fff;
  box-shadow: none;
}

/* Type colors for placeholder cards (soft tints that sit well with the brand palette) */
.type-grass     { --type-a: #9fe0c4; --type-b: var(--color-teal); }
.type-fire      { --type-a: #ffb27a; --type-b: var(--color-orange); }
.type-water     { --type-a: #8fb0f5; --type-b: var(--color-blue); }
.type-lightning { --type-a: #ffe38a; --type-b: var(--color-yellow); }
.type-psychic   { --type-a: #f7b3d4; --type-b: #c46aa8; }
.type-fighting  { --type-a: #f0b98f; --type-b: #b0643a; }
.type-darkness  { --type-a: #6f7aa3; --type-b: #2b3150; }
.type-metal     { --type-a: #dfe4ec; --type-b: #8d97a8; }
.type-dragon    { --type-a: #e9d27a; --type-b: #7f8f3a; }
.type-colorless { --type-a: #f3ebe0; --type-b: #c8b69c; }
.type-trainer   { --type-a: #ffd9d2; --type-b: var(--color-coral); }
.type-normal    { --type-a: #f3ebe0; --type-b: #c8b69c; }

/* Real card pictures (when a card has an image in pokemon-cards.js) */
.tcg-card.has-image .tcg-card-art {
  background: var(--color-bg-alt);
  border-radius: 5% / 3.6%;       /* matches the rounded corners of a real card */
}



.tcg-card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Grouped sections: Main Set / Classic Collection / Basic Energy */
.checklist-section + .checklist-section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.checklist-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
}

.checklist-section-head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

.checklist-section-note {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

/* Search box */
.search-field {
  position: relative;
  flex: 1 1 240px;
  max-width: 360px;
}

.search-field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--color-ink-soft);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 0.6rem 1rem 0.6rem 2.75rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-weight: 600;
}

.search-field input:focus {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
  border-color: transparent;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-ink-soft);
  font-weight: 700;
}


/* ==========================================================================
   10. VIDEOS PAGE
   ========================================================================== */
.bros-wordmark {
  margin: 0 0 0.25em;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.bros-wordmark span:first-child { color: var(--color-blue); }
.bros-wordmark span:last-child { color: var(--color-orange); }

.page-hero--center .btn-row {
  justify-content: center;
}

.featured-video {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 2vw, 1.25rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow);
}

.featured-video .video-embed {
  border-radius: var(--radius);
}

.featured-video-copy {
  padding: 0.5rem clamp(0.5rem, 2vw, 1.5rem) 1rem 0;
}

.featured-video-copy h3 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.featured-video-copy p {
  color: var(--color-ink-soft);
}

.featured-video .play-button {
  width: 84px;
  height: 84px;
}

.featured-video .play-button svg {
  width: 32px;
  height: 32px;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.platform-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.platform-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.platform-head h2 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.platform-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}

.platform-icon svg {
  width: 24px;
  height: 24px;
}

.platform-icon--youtube { background: var(--color-coral); }
.platform-icon--facebook { background: #1877f2; }

.platform-grid--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Instagram reels: a row of tall 9:16 cards */
.reels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.reels-grid .video-card-body {
  padding: 0.75rem 0.9rem 0.95rem;
}

.reels-grid .video-card-body h3 {
  margin: 0;
  font-size: 1rem;
}

.reels-grid .play-button {
  width: 52px;
  height: 52px;
}
.platform-icon--instagram { background: linear-gradient(135deg, var(--color-orange), var(--color-coral) 55%, #b54aa0); }

.platform-panel .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.shorts-grid .video-card-body {
  padding: 0.75rem 0.85rem 0.9rem;
}

.shorts-grid .video-card-body h3 {
  font-size: 0.98rem;
  margin: 0;
}

.shorts-grid .play-button {
  width: 46px;
  height: 46px;
}

.shorts-grid .play-button svg {
  width: 18px;
  height: 18px;
}


/* ==========================================================================
   11. ABOUT PAGE + CHARACTER AVATARS
   ========================================================================== */

/* Round avatar. Until each character has their own image, it shows a
   zoomed-in crop of the family hero image (positions set per character). */
.avatar {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--ring, var(--color-blue));
  background-color: var(--color-bg);
  background-image: url("images/nacho-family-hero.png");
  background-repeat: no-repeat;
  background-size: 450% auto;
  background-position: var(--x, 50%) var(--y, 50%);
  box-shadow: var(--shadow-sm);
  object-fit: cover;    /* used when you swap in an <img class="avatar"> */
}

/* EDIT: crop positions inside the group image, one per character */
.avatar--appa { --ring: var(--color-blue);   --x: 36.5%; --y: 3%; }
.avatar--umma { --ring: var(--color-coral);  --x: 60.5%; --y: 13%; }
.avatar--woo  { --ring: var(--color-orange); --x: 18%;   --y: 60%; }
.avatar--jin  { --ring: var(--color-teal);   --x: 76%;   --y: 74%; }
.avatar--min  { --ring: var(--color-yellow); --x: 48.5%; --y: 80%; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.about-hero .lead {
  max-width: 34rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pillar {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top: 6px solid var(--accent);
}

.pillar h3 {
  color: var(--accent);
  font-size: 1.6rem;
}

.pillar p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 0.98rem;
}

.pillar:nth-child(1) { --accent: var(--color-blue); }
.pillar:nth-child(2) { --accent: var(--color-coral-ink); }
.pillar:nth-child(3) { --accent: var(--color-orange-ink); }
.pillar:nth-child(4) { --accent: var(--color-teal-ink); }

.character-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.character-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.character-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.character-card .avatar {
  width: min(140px, 100%);
  margin-bottom: 1rem;
}

.character-card h3 {
  margin-bottom: 0.2rem;
  font-size: 1.6rem;
}

.character-role {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--role-color, var(--color-ink-soft));
}

.character-card p:last-child {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

.character-card--appa { --role-color: var(--color-blue); }
.character-card--umma { --role-color: var(--color-coral-ink); }
.character-card--woo  { --role-color: var(--color-orange-ink); }
.character-card--jin  { --role-color: var(--color-teal-ink); }
.character-card--min  { --role-color: #9a6a00; }

.note-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: var(--color-yellow-soft);
}

.note-card svg {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: #9a6a00;
}

.note-card h3 {
  margin-bottom: 0.35rem;
}

.note-card p {
  margin: 0;
  color: var(--color-ink-soft);
}

.cta-band {
  text-align: center;
}

.cta-band .btn-row {
  justify-content: center;
}


/* ==========================================================================
   12. ARCADE PAGE
   ========================================================================== */
.arcade-wordmark {
  margin: 0 0 0.25em;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.arcade-wordmark span:first-child { color: var(--color-blue); }
.arcade-wordmark span:last-child { color: var(--color-teal); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game-card:not(.game-card--soon):hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Picture area at the top of each game card */
.game-art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1b1446;
}

.game-art-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.game-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
  padding: 1.25rem 1.35rem 1.4rem;
}

.game-body h3 {
  margin: 0;
  font-size: 1.45rem;
}

.game-body p {
  margin: 0;
  color: var(--color-ink-soft);
}

.game-body .btn,
.game-body .pill {
  align-self: flex-start;
  margin-top: auto;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.2rem 0 0.4rem;
}

.game-tags li {
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-ink-soft);
}

/* Future game spots */
.game-card--soon {
  background: transparent;
  border: 2px dashed #e2d3bf;
  box-shadow: none;
}

.game-art--mystery {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, var(--color-yellow-soft), transparent 55%),
    radial-gradient(circle at 75% 70%, var(--color-blue-soft), transparent 55%),
    var(--color-bg-alt);
}

.game-art--mystery span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: var(--color-surface);
  border: 3px dashed #d9c7ae;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: #c3ad90;
  transform: rotate(-6deg);
}

/* ==========================================================================
   13. ANIMATIONS (kept subtle; turned off for "reduce motion" users)
   ========================================================================== */

/* Elements with .reveal fade up as they scroll into view (see script.js).
   The .js class means this only applies when JavaScript is running. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-sticker {
  animation: float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   14. RESPONSIVE TWEAKS
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .feature-grid,
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .platform-grid,
  .platform-grid--even {
    grid-template-columns: 1fr;
  }

  .reels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-inner,
  .collection-panel,
  .about-preview,
  .about-hero,
  .featured-video {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy .tagline,
  .hero-copy .btn-row {
    justify-content: center;
  }

  .hero-intro {
    margin-inline: auto;
  }

  .hero-art {
    max-width: 760px;
    margin-inline: auto;
    width: 100%;
  }

  .featured-video-copy {
    padding: 0 0.5rem 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile navigation */
@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    box-shadow: 0 16px 30px rgba(29, 35, 64, 0.08);
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
  }

  .video-grid,
  .platform-panel .video-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-header .btn {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 560px) {
  .logo {
    font-size: 1.3rem;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .btn-row .btn {
    flex: 1 1 100%;
  }

  .feature-grid,
  .pillars {
    grid-template-columns: 1fr;
  }

  .stat-list {
    gap: 0.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shorts-grid,
  .reels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-sticker {
    position: static;
    margin-top: 1rem;
    animation: none;
  }

  .hero-art {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .note-card {
    flex-direction: column;
  }
}
