/* ==========================================================================
   Monkey Island Fan Page — css/style.css
   Caribbean night voyage — deep midnight blue, teal ocean, lantern gold.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Registered Custom Property — animated sea hue
   -------------------------------------------------------------------------- */
@property --sea-hue {
  syntax: '<number>';
  initial-value: 200;
  inherits: false;
}

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #071628;
  --bg-card:       #0a1f38;
  --bg-alt:        #050f1c;
  --text:          #d4e8d8;
  --text-muted:    #6a9a80;
  --accent:        #20c4a8;
  --accent-dim:    #179c84;
  --secondary:     #e8a830;
  --secondary-dim: #c08820;
  --border:        #0e2a44;
  --border-accent: #20c4a8;
  --font-heading:  'Pirata One', 'Georgia', serif;
  --font-body:     'Crimson Text', 'Georgia', serif;

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

  /* Parchment/map watermark for section backgrounds */
  --parchment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400'%3E%3Cg fill='none' stroke='%2320c4a8' stroke-width='0.5'%3E%3Cpath d='M0 60 Q100 30 200 60 Q300 90 400 55 Q500 25 600 60' opacity='0.06'/%3E%3Cpath d='M0 120 Q80 90 160 120 Q240 150 320 115 Q440 80 600 120' opacity='0.05'/%3E%3Cpath d='M0 200 Q120 170 240 200 Q360 230 480 195 Q550 175 600 200' opacity='0.05'/%3E%3Cpath d='M0 280 Q140 250 280 280 Q420 310 560 275 Q580 270 600 280' opacity='0.04'/%3E%3Cpath d='M0 340 Q160 310 320 340 Q480 370 600 340' opacity='0.04'/%3E%3Ccircle cx='300' cy='200' r='80' stroke-dasharray='8 4' opacity='0.04'/%3E%3Ccircle cx='300' cy='200' r='140' stroke-dasharray='6 6' opacity='0.03'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   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;
  font-size: 1.05rem;
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  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.03em;
  color: var(--secondary);
}

h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.7rem); }
h4 { font-size: 1.2rem; }

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

strong { color: var(--secondary); font-weight: 600; }
em     { color: var(--accent); font-style: italic; }

kbd {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 3px;
  padding: 0.1em 0.4em;
  font-family: monospace;
  font-size: 0.85em;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-family: var(--font-body);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

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

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

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--secondary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.nav-brand:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.burger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.2s;
}

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

.nav-link {
  display: block;
  padding: 0.25rem 0.45rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus,
.nav-link--active,
.nav-link[aria-current="page"] {
  color: var(--accent);
  background: rgba(32, 196, 168, 0.08);
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--border-accent);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    margin: 0;
    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
  }
  .nav-menu--open { display: flex; }
  .nav-link { font-size: 1rem; padding: 0.5rem 1rem; }
}

/* --------------------------------------------------------------------------
   Hero — @property animated sea shimmer
   -------------------------------------------------------------------------- */
@keyframes sea-shimmer {
  0%, 100% { --sea-hue: 200; }
  33%       { --sea-hue: 210; }
  66%       { --sea-hue: 192; }
}

#hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  --sea-hue: 200;
  animation: sea-shimmer 10s ease-in-out infinite;
}

.hero-ocean {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    hsl(var(--sea-hue), 72%, 6%) 0%,
    hsl(calc(var(--sea-hue) + 8), 80%, 10%) 40%,
    hsl(calc(var(--sea-hue) - 5), 65%, 7%) 70%,
    hsl(var(--sea-hue), 70%, 4%) 100%
  );
  z-index: 0;
}

.hero-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 15%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 45% 8%,  rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 5%,  rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 55% 12%, rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 5%,  rgba(255,255,255,0.8) 0%, transparent 100%);
  z-index: 1;
}

.hero-map {
  position: absolute;
  inset: 0;
  background-image: var(--parchment);
  z-index: 2;
}

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

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  border: 1px solid rgba(32, 196, 168, 0.4);
  padding: 0.25rem 0.9rem;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  color: var(--secondary);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 60px rgba(232, 168, 48, 0.4);
  letter-spacing: 0.05em;
}

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

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

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

.hero-stat .label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border-color: var(--secondary);
}
.btn-secondary:hover {
  background: rgba(232, 168, 48, 0.12);
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
nav.breadcrumb {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  align-items: center;
  list-style: none;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  color: var(--text-muted);
}

.breadcrumb__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb__link:hover { color: var(--accent); }

.breadcrumb__item[aria-current="page"] {
  font-size: 0.85rem;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Page Header (inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 100%);
  border-bottom: 2px solid var(--border-accent);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-header .section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-muted);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.site-section:last-of-type {
  border-bottom: none;
}

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

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

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

.section-title {
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Content Body
   -------------------------------------------------------------------------- */
.content-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-chapter {
  margin-bottom: 2.5rem;
}

.content-chapter h3 {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Game Cards Grid
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}

.game-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.game-card:hover .game-card__img-wrap img { transform: scale(1.04); }

.game-card__body {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
}

.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

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

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

.placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Platform Badges
   -------------------------------------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  font-weight: 600;
  border: 1px solid;
  text-decoration: none;
}

.badge--platform {
  background: rgba(32, 196, 168, 0.1);
  border-color: rgba(32, 196, 168, 0.3);
  color: var(--accent);
}

.badge--year {
  background: rgba(232, 168, 48, 0.1);
  border-color: rgba(232, 168, 48, 0.3);
  color: var(--secondary);
}

/* --------------------------------------------------------------------------
   Platform Filter
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.filter-bar label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.filter-bar select {
  background: var(--bg);
  border: 1px solid var(--border-accent);
  color: var(--text);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

#game-count {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.gallery-item:hover { border-color: var(--accent); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.06); }

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

.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.person-card:hover { border-color: var(--accent); }

.person-card__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.person-card__role {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.person-card__bio {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Video Embed
   -------------------------------------------------------------------------- */
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

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

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

.video-item h3 {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: var(--secondary);
}

.video-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   Trivia / Aside Box
   -------------------------------------------------------------------------- */
.trivia {
  background: rgba(32, 196, 168, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.trivia strong { color: var(--secondary); }

.highlight-box {
  background: rgba(232, 168, 48, 0.06);
  border: 1px solid rgba(232, 168, 48, 0.3);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box h4 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   Music Track List
   -------------------------------------------------------------------------- */
.track-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.track-list__header {
  background: var(--bg-alt);
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.track-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  transition: background 0.15s;
}
.track-item:last-child { border-bottom: none; }
.track-item:hover { background: rgba(32, 196, 168, 0.04); }

.track-item__num {
  width: 2rem;
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.track-item__name {
  flex: 1;
  font-size: 0.95rem;
}

.track-item__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Review Cards
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}

.review-card__source {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.review-card__game {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.review-card__score {
  font-size: 1.4rem;
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: 0.75rem;
}

.review-card__quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  border-left: 2px solid var(--border-accent);
  padding-left: 0.75rem;
}

.review-card__year {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Resource Cards
   -------------------------------------------------------------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.resource-card:hover { border-color: var(--accent); }

.resource-card__type {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.resource-card h3 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.4rem;
}

.resource-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.resource-card a {
  font-size: 0.85rem;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Scroll Reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   GROG Easter Egg Modal
   -------------------------------------------------------------------------- */
.grog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.grog-inner {
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
}

.grog-skull {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 12px rgba(32, 196, 168, 0.5));
}

.grog-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.grog-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.grog-ingredients {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
}

.grog-ingredients h4 {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.grog-ingredients ul {
  list-style: none;
}

.grog-ingredients li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.15rem 0;
}
.grog-ingredients li::before {
  content: '☠ ';
  color: var(--accent);
  font-size: 0.75em;
}

.grog-warning {
  font-size: 0.75rem;
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(32,196,168,0.15); }

/* --------------------------------------------------------------------------
   Per-Game Page Styles
   -------------------------------------------------------------------------- */
.game-detail-header {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-card) 60%, var(--bg) 100%);
  border-bottom: 2px solid var(--border-accent);
  padding: 3rem 0 2.5rem;
}

.game-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.game-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.game-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.game-stat-box .val {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
}

.game-stat-box .lbl {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-entry {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-entry__year {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}

.timeline-entry__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.site-footer__text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.site-footer__text a {
  color: var(--text-muted);
}
.site-footer__text a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-stats { gap: 1rem 1.5rem; }
  .hero-stat .num { font-size: 1.5rem; }
  .site-section { padding: 2.5rem 0; }
  .games-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
}
