/* ==========================================================================
   Donkey Kong Country Fan Page — css/style.css
   Deep jungle green #091a00 · Banana gold #c8a020 · Jungle green #5dbe3a
   Bangers 400 headings · Cabin 400 body
   Advanced CSS: container queries, aspect-ratio, CSS Grid subgrid,
   clip-path vine separators.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #091a00;
  --bg-card:       #0e2400;
  --bg-alt:        #060f00;
  --text:          #e8f4e0;
  --text-muted:    #7aaa60;
  --accent:        #c8a020;
  --accent-dim:    #a07a10;
  --accent-glow:   rgba(200, 160, 32, 0.25);
  --secondary:     #5dbe3a;
  --secondary-dim: #3d8e22;
  --border:        #1a3a08;
  --border-accent: #c8a020;
  --barrel-brown:  #6b3a1a;

  --font-heading:  'Bangers', 'Impact', fantasy;
  --font-body:     'Cabin', 'Segoe UI', sans-serif;

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

/* --------------------------------------------------------------------------
   @keyframes
   -------------------------------------------------------------------------- */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50%       { box-shadow: 0 0 24px rgba(200, 160, 32, 0.5); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes barrel-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   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 { color: var(--secondary); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 8px 16px;
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(6, 15, 0, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--secondary);
  z-index: 1000;
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-brand:hover { color: var(--secondary); }

/* KONG letter collectible display */
.kong-letter {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  line-height: 24px;
  text-align: center;
  margin: 0 1px;
  border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(200,160,32,0.5);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-link {
  display: block;
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-link:hover { color: var(--text); background: rgba(93, 190, 58, 0.15); }
.nav-link--active { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 2px solid var(--secondary);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
  }
  .nav-menu--open { display: flex; }
}

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

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: sepia(0.5) hue-rotate(80deg) brightness(0.3);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px 20px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--accent);
  text-shadow: 0 0 40px rgba(200, 160, 32, 0.7), 3px 3px 0 var(--bg);
  margin-bottom: 20px;
  letter-spacing: 0.06em;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* DK Barrel badge decoration */
.barrel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--barrel-brown);
  border: 3px solid var(--accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.5);
}

/* --------------------------------------------------------------------------
   Vine separator (clip-path)
   -------------------------------------------------------------------------- */
.vine-separator {
  height: 40px;
  background: var(--secondary);
  clip-path: polygon(
    0% 100%,
    5% 30%,
    12% 60%,
    20% 10%,
    28% 50%,
    36% 20%,
    44% 65%,
    52% 15%,
    60% 55%,
    68% 25%,
    76% 60%,
    84% 10%,
    92% 45%,
    100% 20%,
    100% 100%
  );
  margin: 0;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section {
  padding: 64px 0;
}

section + section {
  border-top: 1px solid var(--border);
}

.section-header {
  margin-bottom: 40px;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 2px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  font-family: var(--font-body);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 12px;
}

.section-intro {
  color: var(--text-muted);
  max-width: 700px;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Trivia asides & dev quotes
   -------------------------------------------------------------------------- */
aside.trivia {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

aside.trivia strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

blockquote.dev-quote {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.02rem;
}

blockquote.dev-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.4;
  position: absolute;
  top: 8px;
  left: 12px;
  line-height: 1;
}

blockquote.dev-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Screenshot strip (aspect-ratio applied per image)
   -------------------------------------------------------------------------- */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}

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

/* aspect-ratio keeps screenshots at correct SNES ratio */
.screenshot-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.screenshot-strip figcaption {
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

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

/* --------------------------------------------------------------------------
   Inline images (aspect-ratio on img)
   -------------------------------------------------------------------------- */
.inline-image {
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.inline-image img {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.inline-image figcaption {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.inline-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

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

/* --------------------------------------------------------------------------
   Placeholder
   -------------------------------------------------------------------------- */
.placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

.placeholder--thumb {
  aspect-ratio: 3 / 4;
  width: 80px;
  flex-shrink: 0;
  font-size: 0.6rem;
}

.placeholder--wide {
  aspect-ratio: 16 / 9;
}

/* --------------------------------------------------------------------------
   Video embed
   -------------------------------------------------------------------------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 24px 0;
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Games page — trilogy cards with CSS Grid subgrid
   -------------------------------------------------------------------------- */
.trilogy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

/* subgrid: all trilogy cards share the same inner row tracks */
.trilogy-grid article.game-card {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trilogy-grid article.game-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 18px rgba(93, 190, 58, 0.2);
}

.game-card__art {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.game-card__year {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--accent);
  padding: 0 16px;
  letter-spacing: 0.04em;
}

.game-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 8px 16px;
  line-height: 1.55;
}

.game-card__footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Platform badges */
.platform-badge {
  display: inline-block;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.platform-badge--snes { background: rgba(160, 100, 255, 0.2); color: #c080ff; border: 1px solid #a060e0; }
.platform-badge--gba  { background: rgba(100, 180, 255, 0.2); color: #80c0ff; border: 1px solid #60a0dd; }

.game-card__flagship-tag {
  font-size: 0.65rem;
  background: var(--accent);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

/* --------------------------------------------------------------------------
   Platform filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary);
  color: var(--bg);
  border-color: var(--secondary);
}

/* --------------------------------------------------------------------------
   Gallery grid
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-item:hover,
.gallery-item:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* aspect-ratio ensures consistent gallery thumbnails */
.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 figcaption {
  padding: 8px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-card);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slide-in 0.2s ease;
}

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.lb-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lb-close {
  align-self: flex-end;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
}

.lb-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Flagship teaser card
   -------------------------------------------------------------------------- */
.flagship-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  animation: pulse-glow 3s ease-in-out infinite;
  text-decoration: none;
  transition: transform 0.2s;
}

.flagship-card:hover {
  transform: translateY(-3px);
  color: inherit;
}

.flagship-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
  font-family: var(--font-body);
}

.flagship-card__title {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.flagship-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.flagship-card__cta {
  flex-shrink: 0;
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .flagship-card { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   People / bio
   -------------------------------------------------------------------------- */
.person-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
  margin: 48px 0;
}

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

.person-portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  border: 2px solid var(--secondary);
  display: block;
}

.person-portrait-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.person-portrait-wrap .person-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Animal buddies — container queries
   -------------------------------------------------------------------------- */
.buddies-grid {
  container-type: inline-size;
  container-name: buddies;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

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

.buddy-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 14px rgba(93,190,58,0.2);
}

/* container query: narrow containers stack buddy icon above text */
@container buddies (max-width: 400px) {
  .buddy-card {
    grid-template-columns: 1fr;
  }
  .buddy-card__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.buddy-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.buddy-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--bg);
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.3);
}

.buddy-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.buddy-card__debut {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

.buddy-card__body {
  padding: 14px 16px;
}

.buddy-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.buddy-card__abilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.buddy-card__abilities li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.buddy-card__abilities li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.buddy-card__fact {
  font-size: 0.78rem;
  color: var(--accent);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   History era sections
   -------------------------------------------------------------------------- */
.era-section {
  padding: 48px 0;
}

.era-section + .era-section {
  border-top: 1px solid var(--border);
}

.era-heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.era-year {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 10px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Videos page
   -------------------------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-card__meta {
  padding: 12px 16px;
}

.video-card__category {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 4px;
}

.video-card__title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.video-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Flagship world breakdown
   -------------------------------------------------------------------------- */
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.world-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.world-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 6px;
}

.world-card__levels {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.world-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Notable works list
   -------------------------------------------------------------------------- */
.works-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.works-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.works-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

/* --------------------------------------------------------------------------
   Easter egg notification
   -------------------------------------------------------------------------- */
#easter-egg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  border-radius: 4px;
  z-index: 9999;
  animation: slide-in 0.3s ease;
  box-shadow: 0 4px 20px rgba(200,160,32,0.5);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-muted); }
.font-heading  { font-family: var(--font-heading); }

.btn {
  display: inline-block;
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  border-radius: 2px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn--outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--outline:hover { background: var(--accent); color: var(--bg); }

.mt-0  { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
