/* PokemonPasha — one stylesheet, no external requests, no webfonts.
   Everything renders from system fonts and CSS so pages stay fast on mobile,
   which is where most US Pokemon search traffic lands. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --bg-card: #ffffff;
  --ink: #14161a;
  --ink-soft: #565b66;
  --ink-faint: #868c99;
  --line: #e3e6eb;
  --brand: #c8102e;
  --brand-ink: #ffffff;
  --accent: #1f5fd0;
  --gold: #b8860b;
  --radius: 12px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(16, 18, 22, 0.06), 0 8px 24px rgba(16, 18, 22, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-soft: #15181e;
    --bg-card: #171a21;
    --ink: #eceef2;
    --ink-soft: #a8aeba;
    --ink-faint: #7c828f;
    --line: #262b34;
    --brand: #ff4d63;
    --brand-ink: #14161a;
    --accent: #7aa7ff;
    --gold: #e0b64a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

/* Safety net. Even if a stylesheet rule below is missed or a cached older
   sheet is served, no image can ever overflow its column or distort. */
img, iframe, video, svg { max-width: 100%; }
img { height: auto; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--brand) 0 46%, var(--ink) 46% 54%, #fff 54% 100%);
  border: 2px solid var(--ink);
  position: relative;
  flex: 0 0 auto;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--ink);
}

nav.primary {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}
nav.primary::-webkit-scrollbar { display: none; }

nav.primary a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
}
nav.primary a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
nav.primary a.active { color: var(--brand); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
  color: #fff;
  background:
    radial-gradient(1100px 460px at 78% -20%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, var(--h1) 0%, var(--h2) 42%, var(--h3) 100%);
  --h1: #e01f3d; --h2: #b3122c; --h3: #2b1030;
}

/* Each section gets its own colour so you know where you are at a glance,
   while the shape and the Poke Ball motif stay identical everywhere. */
.hero.theme-games      { --h1: #3b82f6; --h2: #1d4ed8; --h3: #10203f; }
.hero.theme-tcg        { --h1: #f0a020; --h2: #c2610c; --h3: #3a1d05; }
.hero.theme-pokemon-go { --h1: #a855f7; --h2: #6d28d9; --h3: #24103f; }
.hero.theme-video      { --h1: #06b6d4; --h2: #0e7490; --h3: #0a2b33; }
.hero.theme-products   { --h1: #22c55e; --h2: #15803d; --h3: #06251a; }
.hero.theme-general    { --h1: #6366f1; --h2: #3730a3; --h3: #131233; }
/* Oversized Poke Ball, drawn in CSS — no image file, no licensing question. */
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 22px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 58px, transparent 59px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 0 49%, rgba(255, 255, 255, 0.24) 49% 53%, transparent 53%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  max-width: 62ch;
  font-size: 18px;
}

.updated-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ----------------------------------------------------------------- cards */

main { padding: 34px 0 10px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.section-head:first-child { margin-top: 0; }
.section-head h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* The cover is a fixed-ratio window. The image is absolutely positioned
   inside it and cropped with object-fit, so a portrait photo, a 4:3 photo and
   a YouTube thumbnail all produce exactly the same tidy block — and a hover
   zoom can never push the card's geometry around. */
.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
  flex: 0 0 auto;
}
.card-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;   /* overrides the global safety net inside the crop window */
  /* cover keeps the photo's own proportions and trims the overflowing edges.
     It never squashes or stretches — that would be object-fit: fill. */
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-cover img { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .card:hover .card-cover img { transform: none; }
}

.card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.card h3 { margin: 0; font-size: 18px; line-height: 1.32; letter-spacing: -0.01em; }
.card h3 a { color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.card.lead { grid-column: 1 / -1; }
.card.lead h3 { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.18; }
.card.lead p { font-size: 17px; }
.card.lead .card-body { padding: 22px 24px 24px; }

@media (min-width: 760px) {
  .card.lead { flex-direction: row; align-items: stretch; min-height: 320px; }
  /* aspect-ratio is dropped here: the cover takes its height from the row,
     and the absolutely-positioned image fills whatever that turns out to be. */
  .card.lead .card-cover { flex: 0 0 46%; aspect-ratio: auto; min-height: 320px; }
  .card.lead .card-body { justify-content: center; }
}

/* ------------------------------------------------------- article imagery */

.article-cover {
  margin: 22px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  height: auto;
  display: block;
}
.credit {
  padding: 9px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}
.credit a { color: var(--ink-faint); text-decoration: underline; }

.video-embed {
  position: relative;
  margin: 26px 0 6px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
/* ---------------------------------------------------------- video wall */

.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 0 26px;
}
.vtile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.vtile-play {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  overflow: hidden;
}
.vtile-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}
.vtile-play:hover img { transform: scale(1.05); opacity: 0.85; }
.vtile-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 44px;
  border-radius: 11px;
  background: rgba(200, 16, 46, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.vtile-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff;
}
.vtile-play:hover .vtile-btn { background: #c8102e; }
.vtile iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.vtile figcaption {
  padding: 12px 14px 14px;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
}
.vtile figcaption a { color: var(--ink); }
.vtile-date {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-faint);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: auto;
}
.meta time { font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.pill.tcg { color: #b8860b; border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.pill.games { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pill.video { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.pill.products { color: #2e8b57; border-color: #2e8b5766; }
.pill.pokemon-go { color: #7a4fd6; border-color: #7a4fd666; }

/* --------------------------------------------------------------- article */

.article { max-width: 760px; margin: 0 auto; }
.article header { margin-bottom: 26px; }
.article h1 {
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}
.standfirst { font-size: 19px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 16px; }
.byline {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 13.5px; color: var(--ink-faint);
  padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.prose h2 {
  font-size: 25px; letter-spacing: -0.02em; margin: 38px 0 12px; line-height: 1.25;
  scroll-margin-top: 80px;
}
.prose h3 { font-size: 19.5px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose blockquote {
  margin: 24px 0; padding: 4px 0 4px 18px;
  border-left: 3px solid var(--brand);
  color: var(--ink-soft); font-style: italic;
}
.prose code {
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 5px; font-size: 0.9em;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose strong { font-weight: 700; color: var(--ink); }

.table-scroll { overflow-x: auto; margin: 0 0 22px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
tbody tr:hover { background: var(--bg-soft); }

/* --------------------------------------------------------------- sources */

.sources {
  margin: 36px 0 0;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sources h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); }
.sources ol { margin: 0; padding-left: 20px; font-size: 14.5px; }
.sources li { margin-bottom: 6px; color: var(--ink-soft); }

.note {
  margin: 26px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-soft);
  font-size: 15px;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- ads */

.ad-slot {
  margin: 30px auto;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}
.ad-slot ins { display: block; }
.ad-label {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- footer */

footer.site {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 34px 0 40px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
  margin-bottom: 26px;
}
.foot-cols h4 {
  margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink);
}
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: 7px; }
.disclaimer {
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
  padding-top: 18px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- consent */

.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  font-size: 14px;
  display: none;
}
.consent.show { display: block; }
.consent p { margin: 0 0 12px; color: var(--ink-soft); }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }

/* ------------------------------------------------------------ utilities */

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px; z-index: 200;
  background: var(--bg-card); border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 8px;
}

.empty { color: var(--ink-faint); font-style: italic; }

.crumbs { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 4px; }
.crumbs a { color: var(--ink-faint); }

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 28px 0 22px; }
  main { padding: 26px 0 10px; }
  .card { padding: 16px; }
}
