/* ==========================================================================
   Masashi Kageyama Fan Page — css/style.css
   Deep blood-crimson darkness. The graveyard at night. NES melodies that bite.
   ========================================================================== */

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

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #1a0008;
  --bg-card:       #2a0012;
  --bg-alt:        #220010;
  --text:          #f0e8ec;
  --text-muted:    #8a6070;
  --accent:        #ff3366;
  --accent-dim:    #cc2952;
  --border:        #3d0020;
  --border-accent: #ff3366;
  --font-heading:  'Righteous', 'Arial Narrow', sans-serif;
  --font-body:     'Inter', 'Arial', sans-serif;

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

/* --------------------------------------------------------------------------
   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: 2px solid var(--accent);
  opacity: 0.35;
  margin: 3rem 0;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
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(2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: 1.1rem; }

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: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #120006;
  border-bottom: 2px 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-weight: 400;
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-brand:hover,
.nav-brand:focus {
  color: var(--accent-dim);
}

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

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

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.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(--accent);
}

/* --------------------------------------------------------------------------
   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-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  cursor: pointer;
  border-radius: 0;
}

.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(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: var(--accent);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.25rem;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,51,102,0.1) 0%, transparent 70%);
  pointer-events: none;
}

#hero .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.18;
  z-index: 0;
}

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

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6rem);
  color: var(--text);
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
  line-height: 1.05;
}

.hero-title span {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 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-weight: 400;
  font-size: 2.8rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.65rem;
  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;
}

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

.screenshot-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.screenshot-wrap img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

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

.screenshot-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,51,102,0.25) 0%, rgba(80,0,20,0.15) 50%, transparent 80%);
  mix-blend-mode: screen;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Jagged Section Dividers (clip-path polygon)
   -------------------------------------------------------------------------- */
.jagged-divider {
  width: 100%;
  height: 36px;
  background: var(--accent);
  opacity: 0.12;
  clip-path: polygon(
    0% 0%, 2% 100%, 5% 10%, 8% 100%, 11% 20%,
    14% 100%, 17% 5%, 20% 100%, 23% 35%, 26% 100%,
    29% 15%, 32% 100%, 35% 50%, 38% 100%, 41% 25%,
    44% 100%, 47% 0%, 50% 100%, 53% 30%, 56% 100%,
    59% 10%, 62% 100%, 65% 45%, 68% 100%, 71% 20%,
    74% 100%, 77% 5%, 80% 100%, 83% 40%, 86% 100%,
    89% 15%, 92% 100%, 95% 30%, 98% 100%, 100% 0%,
    100% 0%
  );
  pointer-events: none;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Page Hero (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: 6rem 0 4rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.page-hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.site-section {
  padding: 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: 500;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

.section-subtitle {
  font-size: 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;
}

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

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

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

.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.4rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

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

.game-card__platform {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

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

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag--platform  { border-color: var(--accent); color: var(--accent); }
.tag--confirmed { border-color: #44ff88; color: #44ff88; }
.tag--probable  { border-color: #ffaa33; color: #ffaa33; }
.tag--unverified { border-color: var(--text-muted); color: var(--text-muted); }
.tag--flagship  { border-color: var(--accent); color: var(--accent); }

/* --------------------------------------------------------------------------
   Catalogue Table
   -------------------------------------------------------------------------- */
.catalogue-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

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

.catalogue-table tr:hover td {
  background: rgba(255,51,102,0.04);
}

.catalogue-table td:first-child {
  width: 70px;
}

.catalogue-table .game-title {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.catalogue-table .game-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.catalogue-thumb {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.catalogue-thumb-placeholder {
  width: 60px;
  height: 80px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.credit-source {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Research Methodology Note
   -------------------------------------------------------------------------- */
.research-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-left-color: var(--accent);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.research-note h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   History / Long-form content
   -------------------------------------------------------------------------- */
.history-body {
  max-width: 780px;
  margin: 0 auto;
}

.history-chapter {
  margin-bottom: 3rem;
}

.history-chapter h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.history-chapter p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.history-figure {
  margin: 1.5rem 0;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  text-align: center;
}

.history-figure img {
  max-width: 100%;
  max-height: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.history-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Trivia & Dev Quotes
   -------------------------------------------------------------------------- */
.trivia {
  display: block;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.trivia strong {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.4rem;
}

.dev-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent-dim);
  background: rgba(255, 51, 102, 0.04);
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
}

.dev-quote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dev-quote cite::before {
  content: "— ";
  color: var(--accent);
}

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

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

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

.person-card__portrait {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 1.25rem;
}

.person-card__name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.person-card__games {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

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

.person-card__placeholder {
  width: 120px;
  height: 120px;
  background: var(--bg);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  text-align: center;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   Video Grid
   -------------------------------------------------------------------------- */
.video-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.video-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.video-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.video-entry h3 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.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;
  background: #000;
}

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

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

/* --------------------------------------------------------------------------
   Music / Chip
   -------------------------------------------------------------------------- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.channel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.25rem;
  text-align: center;
}

.channel-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.channel-card__freq {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Specs / Hardware table
   -------------------------------------------------------------------------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.spec-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--accent);
  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);
  vertical-align: top;
}

.spec-card td:first-child {
  color: var(--text-muted);
  width: 45%;
  padding-right: 0.75rem;
}

.spec-card td:last-child {
  color: var(--text);
  font-weight: 500;
}

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

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

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

.resource-card__name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.resource-card__url {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  word-break: break-all;
}

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

/* --------------------------------------------------------------------------
   Easter Egg — ARTHUR Tombstones
   -------------------------------------------------------------------------- */
.arthur-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 0, 4, 0.96);
  z-index: 9999;
  overflow: hidden;
  cursor: pointer;
}

.arthur-overlay__message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.arthur-overlay__eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,51,102,0.7);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.arthur-overlay__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

.arthur-overlay__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.arthur-overlay__close {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  pointer-events: auto;
}

.arthur-overlay__close:hover {
  background: var(--accent);
  color: #fff;
}

.tombstone-row {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 0 2%;
  pointer-events: none;
}

.tombstone {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: tombstone-rise 0.8s ease-out both;
}

.tombstone:nth-child(1)  { animation-delay: 0.0s; }
.tombstone:nth-child(2)  { animation-delay: 0.1s; }
.tombstone:nth-child(3)  { animation-delay: 0.05s; }
.tombstone:nth-child(4)  { animation-delay: 0.15s; }
.tombstone:nth-child(5)  { animation-delay: 0.08s; }
.tombstone:nth-child(6)  { animation-delay: 0.2s; }
.tombstone:nth-child(7)  { animation-delay: 0.03s; }
.tombstone:nth-child(8)  { animation-delay: 0.18s; }

@keyframes tombstone-rise {
  from {
    transform: translateY(120%);
    opacity: 0;
  }
  60% { opacity: 1; }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.tombstone__stone {
  width: 48px;
  height: 70px;
  background: #1e0010;
  border: 2px solid rgba(255,51,102,0.4);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tombstone__stone.large {
  width: 64px;
  height: 90px;
}

.tombstone__stone.small {
  width: 36px;
  height: 54px;
}

.tombstone__text {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  color: rgba(255,51,102,0.6);
  text-align: center;
  letter-spacing: 0.05em;
  padding: 0.25rem;
}

.tombstone__base {
  width: 60px;
  height: 10px;
  background: #1e0010;
  border: 2px solid rgba(255,51,102,0.4);
  border-top: none;
}

.tombstone__base.large { width: 80px; }
.tombstone__base.small { width: 44px; }

/* --------------------------------------------------------------------------
   Placeholder (no image available)
   -------------------------------------------------------------------------- */
.placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  aspect-ratio: 3/4;
}

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

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

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

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

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

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  #site-nav {
    height: auto;
    min-height: var(--nav-height);
  }

  .nav-inner {
    flex-wrap: wrap;
    padding: 0.75rem 1.25rem;
    height: auto;
    align-items: center;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid var(--border);
    margin-left: 0;
  }

  .nav-menu--open {
    display: flex;
  }

  .nav-link {
    padding: 0.6rem 0.25rem;
    font-size: 0.7rem;
  }

  .site-section {
    padding: 4rem 0;
  }

  .games-grid,
  .people-grid,
  .specs-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-strip {
    grid-template-columns: 1fr;
  }

  .catalogue-table {
    font-size: 0.8rem;
  }

  .catalogue-table td,
  .catalogue-table th {
    padding: 0.5rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2rem, 14vw, 4rem); }
  .hero-cta   { flex-direction: column; align-items: center; }
}
