/* Ultima Fan Page — css/style.css
   Visual identity: aged-leather brown · amber-gold · Moongate blue
   Illuminated manuscript from Britannia — parchment scrolls, Virtue codex
   Advanced CSS: scroll-driven animations (animation-timeline: view())
*/

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

[hidden] { display: none !important; }

/* ============================================================
   Custom Properties
   ============================================================ */
:root {
  --bg:            #1a1410;
  --bg-card:       #231c15;
  --bg-alt:        #201810;
  --bg-parchment:  #2a2018;
  --text:          #e8dcc8;
  --text-muted:    #a09070;
  --text-dim:      #706050;
  --accent:        #c8a030;
  --accent-dim:    #9a7820;
  --secondary:     #3a6a9e;
  --secondary-dim: #2a5080;
  --gold-light:    #e8c060;
  --border:        #3a2e20;
  --border-accent: #c8a030;
  --virtue-red:    #8a2020;

  --font-heading: 'Uncial Antiqua', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body:    'Crimson Pro', 'Georgia', serif;

  --nav-height:    64px;
  --container-max: 1200px;
  --radius:        2px;
  --radius-lg:     4px;
}

/* ============================================================
   Scroll-driven animations (view-timeline)
   Unique to this site — section headings and chapter art
   animate into view as the user scrolls, evoking turning pages.
   ============================================================ */
@keyframes scroll-chapter-in {
  from {
    opacity: 0;
    transform: translateY(2.5rem) scale(0.97);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes scroll-art-in {
  from {
    opacity: 0;
    transform: translateX(-2rem) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes scroll-art-in-right {
  from {
    opacity: 0;
    transform: translateX(2rem) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes scroll-virtue-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
    border-color: transparent;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--accent);
  }
}

.scroll-chapter {
  animation: scroll-chapter-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 55%;
}

.scroll-art-left {
  animation: scroll-art-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

.scroll-art-right {
  animation: scroll-art-in-right linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

.scroll-virtue {
  animation: scroll-virtue-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}

/* Fallback for browsers without scroll-driven animation support */
@supports not (animation-timeline: view()) {
  .scroll-chapter,
  .scroll-art-left,
  .scroll-art-right,
  .scroll-virtue {
    opacity: 1;
    transform: none;
    filter: none;
    animation: none;
  }
}

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

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { color: var(--gold-light); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

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

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

/* ============================================================
   Skip link
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

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

/* ============================================================
   Navigation
   ============================================================ */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 20, 16, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-accent);
  height: var(--nav-height);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--gold-light) !important; }

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

.nav-link {
  display: block;
  padding: 0.3rem 0.55rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(200, 160, 48, 0.1);
  text-decoration: none;
}
.nav-link--active {
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  color: var(--accent);
}
.burger {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(26, 20, 16, 0.98);
    border-bottom: 1px solid var(--border-accent);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.25rem;
  }
  .nav-menu--open { display: flex; }
  .nav-link { font-size: 1rem; padding: 0.5rem 0.75rem; }
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  position: relative;
  background: linear-gradient(160deg, #2a1e10 0%, #1a1410 40%, #0e0c0a 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(58, 106, 158, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(200, 160, 48, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

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

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

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--accent);
  line-height: 1.05;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(200, 160, 48, 0.3);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.hero-stat .num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

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

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none !important;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background: rgba(200, 160, 48, 0.1);
}

/* ============================================================
   Sections
   ============================================================ */
.site-section {
  padding: 4rem 0;
}
.site-section + .site-section {
  border-top: 1px solid var(--border);
}
.site-section--alt {
  background: var(--bg-alt);
}
.site-section--parchment {
  background: var(--bg-parchment);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-heading::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin-top: 0.6rem;
}
.section-subheading {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ============================================================
   Screenshot strip / image grid
   ============================================================ */
.screenshot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}
.screenshot-strip img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.screenshot-strip img:hover {
  border-color: var(--accent);
}

/* ============================================================
   Trivia callout
   ============================================================ */
aside.trivia {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  position: relative;
}
aside.trivia::before {
  content: '\2728';
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  font-size: 1.1rem;
  opacity: 0.4;
}
aside.trivia h3,
aside.trivia strong {
  font-family: var(--font-heading);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.4rem;
}
aside.trivia p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ============================================================
   Developer quote
   ============================================================ */
blockquote.dev-quote {
  border-left: 3px solid var(--secondary);
  padding: 1rem 1.4rem;
  margin: 1.5rem 0;
  background: rgba(58, 106, 158, 0.08);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
blockquote.dev-quote p {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}
blockquote.dev-quote cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
}
blockquote.dev-quote cite::before { content: '\2014 '; }

/* ============================================================
   Cards
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card__body {
  padding: 1rem 1.1rem;
}
.card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.card__meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.card__text { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   Game card (games.html)
   ============================================================ */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  overflow: hidden;
  transition: border-color 0.2s;
}
.game-card:hover { border-color: var(--accent); }
.game-card__cover {
  width: 160px;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}
.game-card__cover-placeholder {
  width: 160px;
  height: 200px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}
.game-card__body {
  padding: 1.1rem 1.25rem;
}
.game-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.game-card__year {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}
.game-card__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}
.platform-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-muted);
}
.game-card__text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 500px) {
  .game-card { grid-template-columns: 1fr; }
  .game-card__cover, .game-card__cover-placeholder { width: 100%; height: 180px; }
}

/* ============================================================
   Platform filter
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.filter-bar label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.filter-bar select {
  background: var(--bg-alt);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.filter-bar select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
#game-count {
  font-family: var(--font-heading);
  color: var(--accent);
}

/* ============================================================
   Gallery grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.gallery-item:hover {
  border-color: var(--accent);
}
.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.gallery-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26, 20, 16, 0.88);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.3rem 0.5rem;
  transform: translateY(100%);
  transition: transform 0.2s;
}
.gallery-item:hover .gallery-item__caption { transform: translateY(0); }

/* ============================================================
   Lightbox
   ============================================================ */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lb-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}
.lb-inner img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border-accent);
}
.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border-radius: var(--radius);
}
.lb-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   Video grid
   ============================================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.video-embed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}

/* Lite YouTube facade - clickable poster that defers iframe load until play. */
.video-embed .lite-youtube,
.lite-youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.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, #c08a3e);
  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--activated iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-embed__body {
  padding: 0.75rem 1rem;
}
.video-embed__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.video-embed__meta {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================================
   People / portrait cards
   ============================================================ */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.person-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.person-card__portrait {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.person-card__portrait-placeholder {
  width: 100%;
  height: 220px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
.person-card__body { padding: 1rem 1.1rem; }
.person-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.person-card__role {
  font-size: 0.82rem;
  color: var(--secondary);
  margin-bottom: 0.6rem;
}
.person-card__bio { font-size: 0.88rem; color: var(--text-muted); }

/* ============================================================
   Virtue grid (flagship/index)
   ============================================================ */
.virtue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.virtue-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  text-align: center;
  transition: border-color 0.2s;
}
.virtue-card:hover { border-color: var(--accent); }
.virtue-card__symbol {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.virtue-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.virtue-card__text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================================
   Inline article image
   ============================================================ */
.article-img {
  float: right;
  margin: 0 0 1rem 1.5rem;
  max-width: 280px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-img--left {
  float: left;
  margin: 0 1.5rem 1rem 0;
}
.article-img figcaption {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  text-align: center;
}
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}

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

/* ============================================================
   Status badges (modern.html)
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.badge--active   { background: #2a5a2a; color: #80e080; }
.badge--complete { background: #2a3a5a; color: #80a0e0; }
.badge--wip      { background: #4a3a1a; color: #e0b060; }

/* ============================================================
   Resources list
   ============================================================ */
.resource-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.resource-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.resource-item:hover { border-color: var(--accent); }
.resource-item a {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
}
.resource-item p {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   Magazine review
   ============================================================ */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}
.review-score {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  text-align: center;
  min-width: 4rem;
}
.review-score span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-body);
}
.review-pub {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 0.3rem;
}
.review-game-title {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.review-text { font-size: 0.9rem; color: var(--text-muted); }

/* ============================================================
   Easter egg overlay
   ============================================================ */
.ultima-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 8, 6, 0.96);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.ultima-overlay__inner {
  text-align: center;
  max-width: 680px;
}
.ultima-overlay__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.ultima-overlay__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.ultima-overlay__virtues {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.ultima-overlay__virtue {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ultima-overlay__close {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 0.5rem;
}

/* ============================================================
   Two-column article layout
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col--img-left {
  grid-template-columns: 280px 1fr;
}
@media (max-width: 700px) {
  .two-col, .two-col--img-left { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   Companion / character grid
   ============================================================ */
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.9rem;
  text-align: center;
}
.char-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.char-card__role { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.char-card__text { font-size: 0.82rem; color: var(--text-muted); }

/* ============================================================
   Section divider
   ============================================================ */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* ============================================================
   Table
   ============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1.5rem 0;
}
th {
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--accent);
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-accent);
}
td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: #110e0a;
  border-top: 1px solid var(--border-accent);
  padding: 2.5rem 0;
  margin-top: 4rem;
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.8;
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

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

/* ============================================================
   Utility
   ============================================================ */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.text-blue    { color: var(--secondary); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.game-list { list-style: none; padding: 0; display: grid; gap: 1.25rem; }

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 768px) {
  .hero-stats { gap: 1.25rem; }
  .video-grid { grid-template-columns: 1fr; }
  .review-card { grid-template-columns: 1fr; }
  .review-score { text-align: left; }
  .ultima-overlay__virtues { grid-template-columns: repeat(2, 1fr); }
}
