/* ==========================================================================
   Rare Fan Page — css/style.css
   Midnight jungle identity — dark jungle green, DKC banana gold, Russo One.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0a1f0a;
  --bg-card:       #0f2a0f;
  --bg-alt:        #122212;
  --text:          #e8f5e8;
  --text-muted:    #7da87d;
  --accent:        #ff9f1c;
  --accent-dim:    #e08800;
  --border:        #1a3a1a;
  --border-accent: #ff9f1c;
  --font-heading:  'Russo One', 'Impact', sans-serif;
  --font-body:     'Inter', 'Arial', sans-serif;

  --nav-height:    60px;
  --container-max: 1200px;

  /* Parallax custom property updated by JS */
  --scroll-y: 0;
}

/* --------------------------------------------------------------------------
   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;
  padding-top: var(--nav-height);
}

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

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

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

ul, ol { list-style: none; }

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p + p { margin-top: 0.9em; }

strong { color: var(--text); }

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0.5rem; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(10, 31, 10, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  white-space: nowrap;
}
.nav-brand:hover { color: var(--accent-dim); }

.nav-menu {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link:focus { color: var(--accent); background: rgba(255,159,28,0.08); }
.nav-link--active { color: var(--accent); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-menu--open { display: flex; }
}

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

/* --------------------------------------------------------------------------
   Hero — CSS 3D Parallax
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  perspective: 1000px;
  transform-style: preserve-3d;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__bg,
.hero__mid,
.hero__fg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__bg {
    transform: translateZ(-20px) scale(1.02)
               translateY(calc(var(--scroll-y) * -0.3px));
  }
  .hero__mid {
    transform: translateZ(-10px) scale(1.01)
               translateY(calc(var(--scroll-y) * -0.15px));
  }
  .hero__fg {
    transform: translateZ(0px)
               translateY(calc(var(--scroll-y) * -0.05px));
  }
}

.hero__bg {
  background: radial-gradient(ellipse at 60% 40%, #1a4a0a 0%, #0a1f0a 60%),
              repeating-linear-gradient(
                135deg,
                transparent,
                transparent 40px,
                rgba(255,159,28,0.02) 40px,
                rgba(255,159,28,0.02) 80px
              );
}

.hero__mid {
  background: linear-gradient(
    160deg,
    transparent 40%,
    rgba(255,159,28,0.04) 60%,
    transparent 80%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  color: var(--text);
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(255,159,28,0.3);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

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

.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}
.btn-primary:hover { background: var(--accent-dim); color: var(--bg); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-secondary:hover { background: rgba(255,159,28,0.1); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 5rem 0;
}

.site-section:nth-child(even) {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Barrel cannon scroll-driven entrance animations
   -------------------------------------------------------------------------- */
.section-reveal {
  opacity: 0;
  transform: translateY(40px) rotate(-3deg);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Screenshot Strip
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.screenshot-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.screenshot-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.screenshot-strip figure:hover img { transform: scale(1.05); }

.screenshot-strip figcaption {
  padding: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
}

@media (max-width: 640px) {
  .screenshot-strip { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Trivia Callout
   -------------------------------------------------------------------------- */
aside.trivia {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

aside.trivia .trivia-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

aside.trivia p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Developer Quote
   -------------------------------------------------------------------------- */
blockquote.dev-quote {
  border-left: 3px solid var(--border-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-alt);
  border-radius: 0 4px 4px 0;
  font-style: italic;
}

blockquote.dev-quote p {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

blockquote.dev-quote cite {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   History page
   -------------------------------------------------------------------------- */
.history-era {
  margin-bottom: 4rem;
}

.history-era-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.history-era-header h2 {
  color: var(--accent);
}

.era-years {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.history-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.history-image-pair figure {
  margin: 0;
}

.history-image-pair figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .history-image-pair { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Games Table / Grid
   -------------------------------------------------------------------------- */
.platform-filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.platform-filter-bar label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platform-filter-bar select {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.games-table {
  width: 100%;
  border-collapse: collapse;
}

.games-table th {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 2px solid var(--border-accent);
  padding: 0.6rem 0.75rem;
}

.games-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  vertical-align: middle;
}

.games-table tr:hover td { background: var(--bg-card); }

.game-thumb {
  max-width: 80px;
  height: auto;
  border-radius: 2px;
}

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

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(255,159,28,0.1);
}

.game-card__body {
  padding: 1.25rem;
}

.game-cover {
  margin: 0 0 1rem;
}

.game-screenshot {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

.game-card__title {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.game-card__year {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.game-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag--platform { background: rgba(255,159,28,0.15); color: var(--accent); }
.tag--genre { background: rgba(125,168,125,0.15); color: var(--text-muted); }
.tag--flagship { background: var(--accent); color: var(--bg); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,10,0.7);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__caption {
  font-size: 0.75rem;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  cursor: pointer;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-heading);
  line-height: 1;
}

/* --------------------------------------------------------------------------
   People / Bio
   -------------------------------------------------------------------------- */
.people-bio {
  margin-bottom: 4rem;
}

.bio-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.bio-portrait {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.bio-portrait-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  flex: 0 0 auto;
}

.bio-info h2 { color: var(--accent); margin-bottom: 0.25rem; }
.bio-role { font-size: 0.85rem; color: var(--text-muted); }

.bio-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.bio-screenshots figure { margin: 0; }
.bio-screenshots figcaption { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.4rem; }

@media (max-width: 500px) {
  .bio-screenshots { grid-template-columns: 1fr; }
  .bio-header { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Music page
   -------------------------------------------------------------------------- */
.composer-section {
  margin-bottom: 4rem;
}

.composer-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.composer-header h2 { color: var(--accent); }

.composer-img {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 200px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

@media (max-width: 500px) {
  .composer-img { float: none; max-width: 100%; margin: 0 0 1rem; }
}

.hardware-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.hardware-sidebar h3 { color: var(--accent); margin-bottom: 1rem; }
.hardware-sidebar ul { list-style: disc; padding-left: 1.5rem; color: var(--text-muted); }
.hardware-sidebar ul li { margin-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   Video embeds
   -------------------------------------------------------------------------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
}

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

.video-embed__caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* Lite YouTube facade — clickable poster that defers iframe load until play. */
.lite-youtube {
  position: relative;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}
.lite-youtube__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lite-youtube__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s, transform 0.18s;
  z-index: 2;
}
.lite-youtube__play:hover,
.lite-youtube__play:focus-visible {
  background: var(--accent);
  transform: scale(1.06);
  outline: none;
}
.lite-youtube__play-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
  color: #fff;
}
.lite-youtube--activated {
  cursor: default;
  background-image: none !important;
}
.lite-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color 0.2s;
}

.video-card:hover { border-color: var(--accent); }

.video-card__meta {
  padding: 1rem;
}

.video-card__title {
  color: var(--text);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.video-card__desc { font-size: 0.85rem; color: var(--text-muted); }

.video-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.video-category-header h2 { color: var(--accent); }

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

@media (max-width: 500px) {
  .videos-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */
.resource-group {
  margin-bottom: 3rem;
}

.resource-group h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.resource-list { list-style: none; padding: 0; }

.resource-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.resource-list li:last-child { border-bottom: none; }

.resource-list a { color: var(--accent); font-weight: 600; }

.resource-list .resource-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Page Header (non-hero pages)
   -------------------------------------------------------------------------- */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-header h1 { color: var(--accent); }
.page-header p { color: var(--text-muted); margin-top: 0.5rem; }

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  min-height: 80px;
}

/* --------------------------------------------------------------------------
   Inline image utilities
   -------------------------------------------------------------------------- */
.inline-img {
  border-radius: 4px;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.inline-img figcaption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.float-right {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 220px;
}

@media (max-width: 600px) {
  .float-right { float: none; max-width: 100%; margin: 0 0 1rem; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Easter egg — banana shower overlay
   -------------------------------------------------------------------------- */
.banana-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  overflow: hidden;
}

.banana-particle {
  position: absolute;
  top: -40px;
  font-size: 1.5rem;
  animation: banana-fall linear forwards;
  opacity: 0.9;
}

@keyframes banana-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

.rareware-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  z-index: 8001;
  animation: toast-in 0.4s ease;
  pointer-events: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* --------------------------------------------------------------------------
   Flagship page
   -------------------------------------------------------------------------- */
.flagship-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
}

.flagship-image-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.flagship-image-spread.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.flagship-image-spread figure { margin: 0; }

.flagship-image-spread img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.flagship-image-spread figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

@media (max-width: 640px) {
  .flagship-image-spread,
  .flagship-image-spread.three-col { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Changelog summary bar
   -------------------------------------------------------------------------- */
.stat-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
