/* ==========================================================================
   Palace Software Fan Page — css/style.css
   Sword-and-sorcery editorial identity — Yeseva One, Crimson Pro,
   amber-bronze #c8872a accent on warm dark-brown #16100a canvas.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Yeseva+One&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #16100a;
  --bg-card:       #1e160e;
  --bg-alt:        #1a1208;
  --text:          #e8dece;
  --text-muted:    #8a7860;
  --accent:        #c8872a;
  --accent-dim:    #a8692a;
  --border:        #2a1e10;
  --border-card:   #c8872a;
  --font-heading:  'Yeseva One', Georgia, serif;
  --font-body:     'Crimson Pro', 'Georgia', serif;

  --nav-height:    64px;
  --container-max: 1100px;
  --player-height: 60px;
}

/* --------------------------------------------------------------------------
   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-size: 1.05rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  padding-top: var(--nav-height);
  padding-bottom: var(--player-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);
  text-decoration: underline;
  outline: none;
}

ul, ol { list-style: none; }

hr,
.amber-rule {
  border: none;
  border-top: 1px solid var(--accent);
  opacity: 0.35;
  margin: 2.5rem 0;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-muted);
}

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

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

strong { color: var(--text); font-weight: 600; }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  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: #000;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

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

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover { color: var(--text); text-decoration: none; }

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

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  transition: color 0.2s;
}

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

.nav-link--active {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
  }

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

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0;
  }
}

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

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
#hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(160deg, #1e160e 0%, #16100a 60%, #0e0906 100%);
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(22,16,10,0.3) 0%, rgba(22,16,10,0.7) 70%, var(--bg) 100%);
  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: 2;
  padding: 4rem 1.5rem;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text);
  text-shadow: 0 2px 20px rgba(200, 135, 42, 0.3);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  min-height: 1.75em;
  margin-bottom: 2rem;
  font-style: italic;
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #0e0906;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  color: #0e0906;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: rgba(200,135,42,0.12);
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
}

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

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

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

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

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-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-left: 3px solid var(--accent);
  transition: border-color 0.2s, transform 0.2s;
  cursor: default;
}

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

.game-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.game-card__body {
  padding: 1rem 1.1rem;
}

.game-card__title {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

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

/* --------------------------------------------------------------------------
   Platform badges
   -------------------------------------------------------------------------- */
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Platform filter buttons
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn:hover,
.filter-btn--active {
  background: var(--accent);
  color: #0e0906;
  border-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Controversy callout
   -------------------------------------------------------------------------- */
.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.callout__label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.callout__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   History / editorial body
   -------------------------------------------------------------------------- */
.history-body {
  max-width: 72ch;
  margin: 0 auto;
}

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

.history-chapter h3 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  background: var(--bg);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}

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

.gallery-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   People 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-left: 3px solid var(--accent);
  padding: 1.5rem;
}

.person-card__name {
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

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

/* --------------------------------------------------------------------------
   SID / music player bar
   -------------------------------------------------------------------------- */
.sid-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg-card);
  border-top: 1px solid var(--accent);
  height: var(--player-height);
}

.player-bar {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
  padding: 0 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

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

.player-track {
  font-size: 0.85rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.player-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}

.player-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
}

.player-btn:hover { color: var(--accent); }

.player-btn--play {
  color: var(--accent);
  font-size: 1.1rem;
}

.player-btn--toggle {
  margin-left: auto;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.player-vol-label {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.player-volume input[type="range"] {
  width: 80px;
  accent-color: var(--accent);
}

.player-deepsid {
  font-size: 0.72rem;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .player-volume,
  .player-deepsid { display: none; }
}

/* --------------------------------------------------------------------------
   Video embeds
   -------------------------------------------------------------------------- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

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

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

.video-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  margin-top: 0.5rem;
}

.video-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Review scores
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
}

.review-card__pub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.review-card__score {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.review-card__quote {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: none;
  padding-left: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Trivia / data tables
   -------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-alt);
}

.data-table tr:hover td {
  background: var(--bg-alt);
}

/* --------------------------------------------------------------------------
   Interview excerpts
   -------------------------------------------------------------------------- */
.interview-block {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.interview-block__speaker {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.interview-block blockquote {
  border: none;
  padding: 0;
  color: var(--text);
  font-size: 1rem;
}

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

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

.reveal--visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   DRAX Easter Egg overlay
   -------------------------------------------------------------------------- */
.drax-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,16,10,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s ease;
}

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

.drax-inner {
  max-width: 500px;
  padding: 3rem 2rem;
  text-align: center;
}

.drax-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.drax-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.drax-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.drax-quote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  font-style: italic;
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lb-inner {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  cursor: default;
}

.lb-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.lb-close {
  position: absolute;
  top: -2rem;
  right: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}

.lb-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.mt-sm  { margin-top: 0.75rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 3rem; }
.mb-sm  { margin-bottom: 0.75rem; }

.two-col-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 600px) {
  .two-col-img {
    grid-template-columns: 1fr;
  }
}

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

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

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

/* --------------------------------------------------------------------------
   Game cover images & lightbox
   -------------------------------------------------------------------------- */
.game-cover { margin: 0 0 0.75rem; max-width: 180px; }
.game-card__cover { max-width: 180px; display: block; object-fit: contain; background: var(--bg-secondary, #111); }
.game-screenshot {
  width: 100%; display: block; object-fit: contain;
  border: 1px solid var(--border-dim, #333);
  border-radius: var(--radius, 4px);
  background: var(--bg-secondary, #111);
  cursor: zoom-in; transition: border-color 0.2s;
}
.game-screenshot:hover { border-color: var(--accent-cyan, #00e5ff); }
.lightbox-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; cursor: zoom-out; padding: 1rem;
}
.lightbox-overlay[hidden] { display: none; }
.lightbox-overlay img {
  max-width: 95vw; max-height: 90vh; object-fit: contain;
  border: 1px solid var(--border-dim, #333); border-radius: var(--radius, 4px); cursor: zoom-out;
}
.lightbox-close {
  position: fixed; top: 1rem; right: 1.5rem; background: none; border: none;
  color: var(--accent-cyan, #00e5ff); font-size: 2.5rem; line-height: 1;
  cursor: pointer; z-index: 10000; padding: 0.25rem 0.5rem;
}
.lightbox-close:hover { color: var(--accent-yellow, #ffd700); }
