/* ==========================================================================
   Super Mario Fan Page — css/style.css
   Phase 2: Navy blue · Mario red · Coin gold · Bright & colourful energy.
   Advanced CSS: coin-spin animation, grid named areas + subgrid,
   clamp()/min()/max() fluid typography, custom-property world themes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Titan+One&family=Poppins:wght@400;500;600&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties — base theme
   -------------------------------------------------------------------------- */
:root {
  --bg:            #001a4d;
  --bg-card:       #002166;
  --bg-alt:        #001440;
  --text:          #ffffff;
  --text-muted:    #a8c0e8;
  --accent:        #ff0020;
  --accent-dim:    #cc0018;
  --secondary:     #ffd700;
  --secondary-dim: #ccaa00;
  --border:        #003080;
  --border-accent: #ff0020;
  --green:         #00a832;
  --desert-tan:    #c8a060;

  --font-heading:  'Titan One', 'Georgia', serif;
  --font-body:     'Poppins', 'Segoe UI', sans-serif;

  --nav-height:    60px;
  --container-max: 1200px;
  --radius:        4px;
}

/* World-context themes — cascade via section data attribute */
[data-world="1"] { --world-accent: var(--green); }
[data-world="2"] { --world-accent: var(--desert-tan); }
[data-world="3"] { --world-accent: #1a8cb8; }
[data-world="4"] { --world-accent: #884488; }

/* --------------------------------------------------------------------------
   @keyframes
   -------------------------------------------------------------------------- */
@keyframes coin-spin {
  0%   { transform: rotateY(0deg); }
  25%  { transform: rotateY(60deg) scaleX(0.4); }
  50%  { transform: rotateY(90deg) scaleX(0); }
  75%  { transform: rotateY(120deg) scaleX(0.4); }
  100% { transform: rotateY(180deg); }
}

@keyframes coin-full-spin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

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

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus { color: var(--secondary-dim); outline: none; }

ul, ol { list-style: none; }

hr {
  border: none;
  border-top: 2px solid var(--accent);
  opacity: 0.35;
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography — Titan One headings, Poppins body, clamp() fluid sizes
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p + p { margin-top: 0.9em; }
strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 26, 77, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--accent);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 2px 2px 0 var(--accent);
}
.nav-brand:hover, .nav-brand:focus { color: var(--text); }

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  margin-left: auto;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, border-bottom-color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link:focus { color: var(--secondary); border-bottom-color: var(--secondary); }
.nav-link--active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  margin-left: auto;
}
.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  transition: background 0.2s;
}
.nav-toggle:hover .burger, .nav-toggle:focus .burger { background: var(--secondary); }

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: all 0.2s;
  cursor: pointer;
  border-radius: var(--radius);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: transparent;
  color: var(--accent);
}
.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--secondary);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Decorative: Coin element (spinning coin)
   -------------------------------------------------------------------------- */
.coin {
  display: inline-block;
  width: clamp(28px, 4vw, 40px);
  height: clamp(28px, 4vw, 40px);
  background: var(--secondary);
  border-radius: 50%;
  border: 3px solid var(--secondary-dim);
  box-shadow: inset -4px 0 0 rgba(0,0,0,0.25), 2px 2px 0 var(--secondary-dim);
  animation: coin-full-spin 1.8s linear infinite;
  transform-origin: center;
}

.coin-row {
  display: flex;
  gap: clamp(0.4rem, 1.5vw, 0.8rem);
  align-items: center;
  margin: 1rem 0;
}

/* --------------------------------------------------------------------------
   Decorative: Question Mark Block
   -------------------------------------------------------------------------- */
.qblock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(32px, 4vw, 44px);
  height: clamp(32px, 4vw, 44px);
  background: var(--secondary);
  border: 3px solid var(--secondary-dim);
  border-bottom: 4px solid var(--secondary-dim);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--bg);
  box-shadow: inset -3px -3px 0 var(--secondary-dim), 2px 2px 0 rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-marker__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  min-height: min(90vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
  padding: 4rem 1.25rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,0,32,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 50% 80%, rgba(255,215,0,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-coins {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-coin-deco {
  position: absolute;
  opacity: 0.15;
  animation: coin-full-spin var(--spin-dur, 3s) linear infinite,
             float-up var(--float-dur, 4s) ease-in-out infinite;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  filter: sepia(0.4) brightness(0.7);
}

.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--text);
  text-shadow: 4px 4px 0 var(--accent), 6px 6px 0 rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.hero-title span { color: var(--secondary); text-shadow: 4px 4px 0 var(--secondary-dim), 6px 6px 0 rgba(0,0,0,0.3); }
.hero-tagline {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: clamp(1rem, 4vw, 2.5rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--secondary);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Hero Map Figure (world map displayed in the homepage hero)
   -------------------------------------------------------------------------- */
.hero-map-figure {
  margin-top: 2.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero-map-figure img {
  width: 100%;
  border: 3px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(255,215,0,0.18), 4px 4px 0 var(--secondary-dim);
  display: block;
}
.hero-map-figure figcaption {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 5rem 0 3.5rem;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--secondary), var(--accent));
}
.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--text);
  text-shadow: 3px 3px 0 var(--accent);
  margin-bottom: 1rem;
}
.page-hero__subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--bg);
  position: relative;
}
.site-section:nth-child(even) { background: var(--bg-alt); }

.section-header { margin-bottom: 3rem; text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title { color: var(--text); margin-bottom: 0.75rem; text-shadow: 2px 2px 0 rgba(255,0,32,0.3); }
.section-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Game Cards — pixel border motif
   -------------------------------------------------------------------------- */
.games-container {
  container-type: inline-size;
  container-name: games;
}

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

@container games (max-width: 420px) {
  .games-grid { grid-template-columns: 1fr; }
}
@container games (min-width: 421px) and (max-width: 700px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}
@container games (min-width: 701px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

.game-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: 1px solid rgba(255,215,0,0.12);
  outline-offset: 2px;
  transition: border-color 0.2s, transform 0.2s, outline-color 0.2s;
  overflow: hidden;
}
.game-card:hover {
  border-color: var(--secondary);
  outline-color: rgba(255,215,0,0.35);
  transform: translateY(-3px);
}
.game-card:has(:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,0,32,0.25);
}

.game-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}
.game-card__body { padding: 1.25rem; }
.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.game-card:hover .game-card__title { color: var(--secondary); }
.game-card__year {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.game-card__platform {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Pixel border card (flagship page)
   -------------------------------------------------------------------------- */
.pixel-card {
  background: var(--bg-card);
  border: 2px solid var(--secondary);
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--secondary-dim), 6px 6px 0 rgba(0,0,0,0.25);
  padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
}
.tag--platform  { border-color: var(--accent); color: var(--accent); }
.tag--genre     { border-color: var(--text-muted); }
.tag--flagship  { border-color: var(--secondary); color: var(--secondary); }
.tag--powerup   { border-color: var(--green); color: var(--green); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.timeline-entry {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--secondary);
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.timeline-entry:hover { border-color: var(--secondary); }
.timeline-year {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.timeline-event {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.timeline-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   History Body
   -------------------------------------------------------------------------- */
.history-body { max-width: 820px; margin: 0 auto; }
.history-chapter { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border); }
.history-chapter:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.history-chapter h3 { color: var(--secondary); margin-bottom: 1rem; }
.history-chapter p { color: var(--text-muted); }
.history-chapter p strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Trivia Callout (<aside class="trivia">)
   -------------------------------------------------------------------------- */
aside.trivia {
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.trivia__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trivia__label::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--secondary);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.trivia__text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.trivia__text strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Callout / Did You Know
   -------------------------------------------------------------------------- */
.callout {
  background: rgba(255, 0, 32, 0.06);
  border: 1px solid rgba(255, 0, 32, 0.3);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.callout__text { font-size: 0.95rem; color: var(--text-muted); }
.callout__text strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Developer Quote (<blockquote class="dev-quote">)
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  border-left: 4px solid var(--secondary);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  background: rgba(255, 215, 0, 0.05);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
  position: relative;
}
blockquote.dev-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--secondary);
  opacity: 0.25;
  position: absolute;
  top: -1rem;
  left: 0.5rem;
  line-height: 1;
}
blockquote.dev-quote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--secondary);
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Screenshot Strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.screenshot-strip img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}
.screenshot-strip img:hover {
  border-color: var(--secondary);
  transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   Image with Caption
   -------------------------------------------------------------------------- */
.img-figure { margin: 2rem 0; }
.img-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}
.img-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* --------------------------------------------------------------------------
   Video Grid
   -------------------------------------------------------------------------- */
.video-grid { display: grid; gap: 3rem; }
.video-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.video-entry:hover { border-color: var(--secondary); }
.video-entry h3 { font-size: 1.3rem; color: var(--secondary); margin-bottom: 0.75rem; }
.video-entry p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-meta { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.75rem; }

/* --------------------------------------------------------------------------
   People Grid
   -------------------------------------------------------------------------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.person-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.person-card:hover { border-color: var(--secondary); transform: translateY(-2px); }
.person-card__portrait {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.person-card__body { padding: 1.5rem; }
.person-card__name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.person-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.person-card__bio { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Flagship page — CSS Grid named template areas + subgrid
   -------------------------------------------------------------------------- */
.flagship-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "flagship-hero flagship-hero"
    "flagship-info flagship-screens"
    "flagship-analysis flagship-video";
  gap: 2rem;
  margin-bottom: 3rem;
}

.flagship-hero    { grid-area: flagship-hero; }
.flagship-info    { grid-area: flagship-info; }
.flagship-screens { grid-area: flagship-screens; }
.flagship-analysis { grid-area: flagship-analysis; }
.flagship-video   { grid-area: flagship-video; }

/* Subgrid for flagship screens */
.flagship-screens {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 1;
  gap: 0.75rem;
}
.flagship-screens img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.flagship-screens img:hover { border-color: var(--secondary); }

.flagship-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-block {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-bottom: 3px solid var(--secondary);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}
.stat-block__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--secondary);
  line-height: 1;
}
.stat-block__label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Gallery Grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
}
.gallery-item:hover { border-color: var(--secondary); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 26, 77, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  transform: translateY(100%);
  transition: transform 0.25s;
}
.gallery-item:hover .gallery-item__caption { transform: translateY(0); }

.gallery-section { margin-bottom: 3rem; }
.gallery-section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

/* --------------------------------------------------------------------------
   Power-up list
   -------------------------------------------------------------------------- */
.powerup-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.powerup-item {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-left: 4px solid var(--green);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.powerup-item__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.powerup-item__effect { font-size: 0.85rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   World map figure
   -------------------------------------------------------------------------- */
.world-map-figure {
  background: var(--bg-card);
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 2rem 0;
  box-shadow: 4px 4px 0 var(--secondary-dim);
}
.world-map-figure img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: var(--radius);
}
.world-map-figure figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Specs table
   -------------------------------------------------------------------------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.spec-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-top: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
}
.spec-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.spec-card table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.spec-card td { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.spec-card td:first-child { color: var(--text-muted); width: 45%; }
.spec-card td:last-child { color: var(--text); font-weight: 500; }
.spec-card tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */
.placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   Easter Egg Overlay
   -------------------------------------------------------------------------- */
.sm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 26, 77, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-overlay__inner { text-align: center; padding: 3rem; max-width: 500px; }
.sm-overlay__eyebrow { font-size: 0.7rem; color: var(--accent); letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1.5rem; }
.sm-overlay__logo {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--secondary);
  text-shadow: 4px 4px 0 var(--accent);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.sm-overlay__coin-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.sm-overlay__coin {
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  border: 3px solid var(--secondary-dim);
  animation: coin-full-spin 1.2s linear infinite;
}
.sm-overlay__tagline { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
.sm-overlay__close {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.sm-overlay__close:hover { background: var(--accent-dim); }

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 64, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lb-inner { max-width: 900px; width: 100%; text-align: center; }
.lb-inner img { max-height: 80vh; width: auto; margin: 0 auto; border: 2px solid var(--border); border-radius: var(--radius); }
.lb-close {
  display: block;
  margin: 0 auto 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.5rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: var(--radius);
}
.lb-caption { margin-top: 0.75rem; font-size: 0.85rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: rgba(0, 20, 64, 0.98);
  border-top: 3px solid var(--accent);
  padding: 3rem 0;
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.75rem; }
.site-footer__brand {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--secondary);
  text-shadow: 2px 2px 0 var(--accent);
}
.site-footer__text { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0, 26, 77, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--accent);
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
  }
  .nav-menu--open { display: flex; }
  .nav-link { padding: 0.5rem 1rem; font-size: 0.85rem; }

  .video-entry { grid-template-columns: 1fr; }
  .specs-grid  { grid-template-columns: 1fr; }

  /* Flagship layout collapses to single column */
  .flagship-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "flagship-hero"
      "flagship-info"
      "flagship-screens"
      "flagship-analysis"
      "flagship-video";
  }

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

@media (max-width: 480px) {
  .hero-stats { gap: 1.25rem; }
  .timeline { grid-template-columns: 1fr; }
}
