/* ==========================================================================
   Chris Hülsbeck Fan Page — css/style.css
   Identity: "Concert programme for an 8-bit orchestra"
   Deep navy, antique gold, Cinzel headings, Lato body
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Lato:wght@300;400&display=swap');

[hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg:            #0a0e1a;
  --bg-card:       #0f1422;
  --bg-alt:        #080c14;
  --text:          #e8e0d0;
  --text-muted:    #8a8070;
  --gold:          #c9a84c;
  --gold-dim:      rgba(201,168,76,0.12);
  --border:        #1e2338;
  --font-display:  'Cinzel', Georgia, serif;
  --font-body:     'Lato', sans-serif;

  --nav-height:        64px;
  --player-bar-height: 42px;
  --container-max:     1200px;
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes spb-eq-bar {
  0%, 100% { transform: scaleY(0.3); }
  50%       { transform: scaleY(1.0); }
}

@keyframes reveal-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   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: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
  padding-top: calc(var(--nav-height) + var(--player-bar-height));
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover,
a:focus {
  color: var(--text);
  opacity: 0.85;
  outline: none;
}

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(0.95rem, 1.8vw, 1.3rem); }

p { margin-bottom: 1rem; }

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

strong { color: var(--gold); font-weight: 700; }

/* Gold ruled line decoration */
hr {
  border: none;
  border-top: 1px solid var(--gold);
  opacity: 0.4;
  margin: 2rem 0;
}

hr.gold-rule {
  border-color: var(--gold);
  opacity: 0.6;
}

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

.site-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.site-section:nth-of-type(odd)  { background: var(--bg); }
.site-section:nth-of-type(even) { background: var(--bg-alt); }

/* --------------------------------------------------------------------------
   Skip Link
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--bg);
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
#site-nav {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--gold);
  z-index: 1000;
  display: flex;
  align-items: center;
}

#site-nav .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 0.2rem 0.4rem;
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--gold);
  opacity: 1;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.2s;
}

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

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

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

  .nav-links a { padding: 0.45rem 0; font-size: 0.88rem; }
}

/* --------------------------------------------------------------------------
   SID Player Bar
   -------------------------------------------------------------------------- */
.sid-player-bar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: var(--player-bar-height);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  z-index: 999;
  font-family: var(--font-body);
  font-size: 0.78rem;
}

.spb-controls { display: flex; gap: 0.35rem; }

.spb-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.1rem 0.45rem;
  cursor: pointer;
  font-size: 0.72rem;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-body);
}

.spb-btn:hover { color: var(--gold); border-color: var(--gold); }

.spb-btn--primary {
  border-color: var(--gold);
  color: var(--gold);
}

.spb-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.spb-track {
  color: var(--text-muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spb-track.now-playing { color: var(--gold); }

.spb-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}

.spb-eq span {
  display: block;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0.3);
  transform-origin: bottom;
}

.spb-eq.active span:nth-child(1) { animation: spb-eq-bar 0.6s 0.0s ease-in-out infinite; }
.spb-eq.active span:nth-child(2) { animation: spb-eq-bar 0.6s 0.2s ease-in-out infinite; }
.spb-eq.active span:nth-child(3) { animation: spb-eq-bar 0.6s 0.4s ease-in-out infinite; }

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

/* Gold ruled lines above and below hero content */
#hero::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: 5%;
  right: 5%;
  border-top: 1px solid var(--gold);
  opacity: 0.35;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 3rem;
  left: 5%;
  right: 5%;
  border-top: 1px solid var(--gold);
  opacity: 0.35;
}

.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;
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 860px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

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

.hero-rule {
  width: 120px;
  border: none;
  border-top: 1px solid var(--gold);
  margin: 1.25rem auto;
  opacity: 0.7;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-stat .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--gold);
  line-height: 1;
}

.hero-stat .label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold);
  color: var(--bg);
  opacity: 1;
}

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

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

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-rule {
  width: 80px;
  border: none;
  border-top: 1px solid var(--gold);
  margin: 0.9rem auto 1rem;
  opacity: 0.6;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Game Cards — sharp corners, gold top border
   -------------------------------------------------------------------------- */
.game-card {
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 2px 12px var(--gold-dim);
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
}

.game-card:hover {
  box-shadow: 0 4px 20px rgba(201,168,76,0.2);
  transform: translateY(-2px);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-alt);
}

.game-card__body {
  padding: 1.25rem;
}

.game-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.game-card__year {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.game-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   Platform Filter
   -------------------------------------------------------------------------- */
#platform-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--gold);
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.filter-btn.filter-active {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.platform-hidden { display: none; }

/* --------------------------------------------------------------------------
   Tags
   -------------------------------------------------------------------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}

.tag {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tag--c64    { border-color: var(--gold);                 color: var(--gold); }
.tag--amiga  { border-color: #8a6fa0;                     color: #8a6fa0; }
.tag--snes   { border-color: #6a9a4a;                     color: #6a9a4a; }
.tag--n64    { border-color: #5a8ab0;                     color: #5a8ab0; }
.tag--modern { border-color: var(--text-muted);           color: var(--text-muted); }
.tag--genre  { border-color: var(--border); }

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

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

.history-chapter h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

.history-chapter p { color: var(--text); font-weight: 300; }

/* --------------------------------------------------------------------------
   Music page / SID player panel
   -------------------------------------------------------------------------- */
.music-panel {
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 2px 12px var(--gold-dim);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.music-panel__now-playing {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  letter-spacing: 0.04em;
}

.music-panel__composer {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.music-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.music-btn {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.music-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.track-list { margin: 0; }

.track-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.track-row:hover { background: var(--gold-dim); }

.track-row.playing {
  background: rgba(201,168,76,0.1);
  border-left: 2px solid var(--gold);
  padding-left: 0.55rem;
}

.track-row__num {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--text-muted);
  min-width: 2ch;
}

.track-row__name {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
}

.track-row__game {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   Easter Egg Modal
   -------------------------------------------------------------------------- */
.easter-egg-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

.easter-egg-modal {
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 4px 40px rgba(201,168,76,0.2);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
}

.easter-egg-modal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.easter-egg-modal p {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.75;
}

.easter-egg-close {
  margin-top: 1.75rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.easter-egg-close:hover {
  background: var(--gold);
  color: var(--bg);
}

/* --------------------------------------------------------------------------
   Boot Screen
   -------------------------------------------------------------------------- */
.boot-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.boot-screen.hidden { display: none; }

.boot-lines {
  text-align: left;
  min-width: 320px;
}

.boot-line {
  color: var(--gold);
  line-height: 2;
  text-transform: uppercase;
  font-size: 0.85rem;
}

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

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

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

.site-footer__rule {
  width: 100px;
  border: none;
  border-top: 1px solid var(--gold);
  margin: 0 auto 1.25rem;
  opacity: 0.45;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.site-footer__text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.site-footer__text a {
  color: var(--gold);
  opacity: 0.8;
}

.site-footer__text a:hover { opacity: 1; }

/* --------------------------------------------------------------------------
   People / Bio cards
   -------------------------------------------------------------------------- */
.person-card {
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 2px 12px var(--gold-dim);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.person-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.person-card .role {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.72rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.review-card {
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 2px 12px var(--gold-dim);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.review-card__publication {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 0.2rem;
  letter-spacing: 0.06em;
}

.review-card__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--text);
}

.review-card blockquote {
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  font-size: 0.88rem;
  border: none;
  padding: 0;
  margin: 0.5rem 0;
  line-height: 1.7;
}

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

.resource-item {
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 2px 12px var(--gold-dim);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.resource-item:hover {
  box-shadow: 0 4px 20px rgba(201,168,76,0.2);
}

.resource-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.resource-item p {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mb-sm { margin-bottom: 0.75rem; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.font-light  { font-weight: 300; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .games-grid { grid-template-columns: 1fr; }
  .hero-cta   { flex-direction: column; align-items: center; }
  .resource-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Game cover images & lightbox
   -------------------------------------------------------------------------- */
.game-cover { margin: 0 0 0.75rem; max-width: 180px; }
.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); }
