/* ============================================================
   GAMEZONE ARCADE — SITE DESIGN SYSTEM
   Dark retro arcade portal aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323:wght@400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  --bg:           #08080d;
  --bg-surface:   #0f0e17;
  --bg-card:      #161422;
  --bg-card-hover:#1e1c2e;
  --bg-nav:       rgba(8, 8, 13, 0.95);
  --border:       #2a2740;
  --border-bright:#3d3a58;

  --text:         #e6e3f0;
  --text-muted:   #7a7890;
  --text-dim:     #4a4760;

  --amber:        #f5a623;
  --amber-dim:    rgba(245, 166, 35, 0.12);
  --amber-glow:   rgba(245, 166, 35, 0.35);
  --teal:         #2de2c4;
  --teal-dim:     rgba(45, 226, 196, 0.1);
  --red:          #ff5555;
  --purple:       #9b6dff;

  --radius:       6px;
  --radius-lg:    10px;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-card:  0 2px 12px rgba(0,0,0,0.5);
  --glow-amber:   0 0 20px var(--amber-glow);

  --nav-h:        62px;
  --font-pixel:   'Press Start 2P', monospace;
  --font-vt:      'VT323', monospace;
  --font-mono:    'IBM Plex Mono', monospace;

  --max-w:        1280px;
  --gutter:       clamp(16px, 4vw, 40px);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ── SCANLINE OVERLAY (subtle CRT texture) ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── TYPOGRAPHY ── */
.pixel           { font-family: var(--font-pixel); }
.vt              { font-family: var(--font-vt); }

h1, h2, h3, h4  { font-family: var(--font-pixel); line-height: 1.4; }
h1               { font-size: clamp(18px, 3vw, 28px); }
h2               { font-size: clamp(12px, 1.8vw, 16px); color: var(--amber); letter-spacing: 0.05em; }
h3               { font-size: 11px; }

p                { font-family: var(--font-mono); line-height: 1.7; }

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 60px 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--amber);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px var(--amber-glow);
  transition: text-shadow 0.2s;
}
.nav-logo:hover { text-shadow: 0 0 20px var(--amber-glow), 0 0 40px var(--amber-glow); }
.nav-logo span  { color: var(--teal); }

.nav-search {
  flex: 1;
  max-width: 340px;
  position: relative;
}
.nav-search input {
  width: 100%;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 12px 0 36px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-dim);
}
.nav-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a:hover      { color: var(--text); background: var(--bg-card); }
.nav-links a.active     { color: var(--amber); }
.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--amber);
  border-radius: 1px;
  margin-top: 2px;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: clamp(300px, 48vw, 520px);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.02); }

/* Bog Road hero bg — procedural jpg art */
.hero-bg.bog-road-bg {
  background-image: url('../../games/bog-road/hero.jpg');
  background-size: cover;
  background-position: center right;
}

.hero-bg.bog-road-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 15% 8% at 68% 38%, rgba(245,166,35,0.5) 0%, transparent 100%),
    radial-gradient(ellipse 8% 4% at 25% 50%, rgba(180,240,200,0.35) 0%, transparent 100%),
    radial-gradient(ellipse 5% 3% at 82% 55%, rgba(180,240,200,0.25) 0%, transparent 100%);
  animation: bogFlicker 4s ease-in-out infinite alternate;
}

@keyframes bogFlicker {
  0%   { opacity: 0.8; }
  40%  { opacity: 1; }
  70%  { opacity: 0.7; }
  100% { opacity: 0.95; }
}

.hero-bg.bog-road-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(0deg,
    rgba(8,8,13,1) 0%,
    rgba(8,8,13,0.7) 50%,
    transparent 100%
  );
}

/* ── STATION NULL HERO BACKGROUND ── */
.hero-bg.station-null-bg {
  background-image: url('../../games/station-null/hero.jpg');
  background-size: cover;
  background-position: center right;
}

.hero-bg.station-null-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 8% 12% at 88% 18%, rgba(245,166,35,0.35) 0%, transparent 100%),
    radial-gradient(ellipse 35% 45% at 72% 45%, rgba(0,255,136,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 20% 80% at 5% 50%, rgba(0,0,0,0.6) 0%, transparent 100%);
  animation: stationFlicker 5s ease-in-out infinite alternate;
}

@keyframes stationFlicker {
  0%   { opacity: 0.85; }
  25%  { opacity: 1; }
  50%  { opacity: 0.78; }
  75%  { opacity: 0.95; }
  100% { opacity: 0.88; }
}

.hero-bg.station-null-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 255, 136, 0.015) 3px,
    rgba(0, 255, 136, 0.015) 4px
  );
}

/* ── MIRRORSTONE HERO BACKGROUND ── */
.hero-bg.mirrorstone-bg {
  background-image: url('../../games/mirrorstone/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg.mirrorstone-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 15% 20% at 60% 40%, rgba(245,200,66,0.25) 0%, transparent 100%),
    radial-gradient(ellipse 30% 50% at 40% 55%, rgba(245,168,35,0.08) 0%, transparent 100%),
    radial-gradient(ellipse 25% 80% at 5% 50%, rgba(0,0,0,0.5) 0%, transparent 100%);
  animation: mirrorstonePulse 6s ease-in-out infinite alternate;
}

@keyframes mirrorstonePulse {
  0%   { opacity: 0.85; }
  35%  { opacity: 1;    }
  65%  { opacity: 0.78; }
  100% { opacity: 0.95; }
}

.hero-bg.mirrorstone-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(245, 200, 66, 0.01) 3px,
    rgba(245, 200, 66, 0.01) 4px
  );
}

/* ── SECTOR XIX HERO BACKGROUND ── */
.hero-bg.sector-xix-bg {
  background-image: url('../../games/sector-xix/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg.sector-xix-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 20% 30% at 50% 45%, rgba(0,255,136,0.15) 0%, transparent 100%),
    radial-gradient(ellipse 35% 50% at 70% 35%, rgba(255,68,204,0.08) 0%, transparent 100%),
    radial-gradient(ellipse 25% 80% at 5% 50%, rgba(0,0,0,0.5) 0%, transparent 100%);
  animation: sectorXixFlicker 5s ease-in-out infinite alternate;
}

@keyframes sectorXixFlicker {
  0%   { opacity: 0.85; }
  35%  { opacity: 1;    }
  65%  { opacity: 0.78; }
  100% { opacity: 0.95; }
}

.hero-bg.sector-xix-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 255, 136, 0.01) 3px,
    rgba(0, 255, 136, 0.01) 4px
  );
}

/* ── KING OF REALMS HERO BACKGROUND ── */
.hero-bg.king-of-realms-bg {
  background-image: url('../../games/king-of-realms/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg.king-of-realms-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 25% 40% at 30% 55%, rgba(245,166,35,0.15) 0%, transparent 100%),
    radial-gradient(ellipse 20% 30% at 75% 45%, rgba(204,51,51,0.1) 0%, transparent 100%),
    radial-gradient(ellipse 30% 60% at 5% 50%, rgba(0,0,0,0.5) 0%, transparent 100%);
  animation: kingOfRealmsFlicker 6s ease-in-out infinite alternate;
}

@keyframes kingOfRealmsFlicker {
  0%   { opacity: 0.85; }
  35%  { opacity: 1;    }
  65%  { opacity: 0.78; }
  100% { opacity: 0.95; }
}

.hero-bg.king-of-realms-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(245, 166, 35, 0.01) 3px,
    rgba(245, 166, 35, 0.01) 4px
  );
}

/* ── CHESS ZONE HERO BACKGROUND ── */
.hero-bg.chesszone-bg {
  background-image: url('../../games/chesszone/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg.chesszone-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 20% 30% at 50% 45%, rgba(45,226,196,0.12) 0%, transparent 100%),
    radial-gradient(ellipse 15% 20% at 35% 55%, rgba(245,166,35,0.08) 0%, transparent 100%);
  animation: chesszoneFlicker 5s ease-in-out infinite alternate;
}

@keyframes chesszoneFlicker {
  0%   { opacity: 0.85; }
  35%  { opacity: 1;    }
  65%  { opacity: 0.78; }
  100% { opacity: 0.95; }
}

.hero-bg.chesszone-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(45, 226, 196, 0.01) 3px,
    rgba(45, 226, 196, 0.01) 4px
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8,8,13,0.85) 0%,
    rgba(8,8,13,0.4) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 48px;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '▶';
  font-size: 8px;
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(22px, 4vw, 42px);
  color: #fff;
  line-height: 1.3;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-desc {
  font-family: var(--font-vt);
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(230,227,240,0.75);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: #0a0808;
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 14px 28px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.btn-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(245,166,35,0.6);
  background: #fbb93a;
}
.btn-play:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 10px;
  padding: 13px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border-bright);
  letter-spacing: 0.05em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.section-title span { color: var(--amber); }
.section-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s;
}
.section-link:hover { color: var(--amber); }

/* ── GAME CARDS ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.games-grid.large-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--border-bright);
}
.game-card:hover .card-thumb-overlay { opacity: 1; }
.game-card:hover .card-thumb img { transform: scale(1.05); }

.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-surface);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,13,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.card-play-btn {
  background: var(--amber);
  color: #0a0808;
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 10px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 20px rgba(245,166,35,0.5);
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-pixel);
  font-size: 7px;
  padding: 4px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  z-index: 2;
}
.badge-new   { background: var(--red);    color: #fff; }
.badge-hot   { background: var(--amber);  color: #0a0808; }
.badge-soon  { background: var(--purple); color: #fff; }

.card-body {
  padding: 12px 14px 14px;
}
.card-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.card-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ── TAGS ── */
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--teal-dim);
  color: var(--teal);
  border: 1px solid rgba(45,226,196,0.2);
  white-space: nowrap;
}
.tag.amber {
  background: var(--amber-dim);
  color: var(--amber);
  border-color: rgba(245,166,35,0.2);
}
.tag.purple {
  background: rgba(155,109,255,0.1);
  color: var(--purple);
  border-color: rgba(155,109,255,0.2);
}

/* ── GENRE CARDS ── */
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.genre-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
}
.genre-card:hover {
  border-color: var(--amber);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.genre-icon {
  font-size: 28px;
  line-height: 1;
}
.genre-name {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text);
  letter-spacing: 0.04em;
}
.genre-count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 20px; opacity: 0.5; }
.empty-state h3 { font-size: 11px; margin-bottom: 12px; color: var(--text); }
.empty-state p { font-size: 13px; max-width: 360px; margin: 0 auto; }

/* ── GAME PAGE ── */
.game-page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 80px;
}

.game-frame-wrap {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 400px;
  gap: 20px;
  background:
    radial-gradient(ellipse 40% 30% at 50% 40%, rgba(245,166,35,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 25% 20% at 30% 60%, rgba(45,226,196,0.05) 0%, transparent 60%),
    #050810;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}
.game-placeholder .placeholder-icon {
  font-size: 64px;
  animation: lanternPulse 3s ease-in-out infinite;
}
@keyframes lanternPulse {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(245,166,35,0.6)); transform: scale(1); }
  50%       { filter: drop-shadow(0 0 20px rgba(245,166,35,0.9)); transform: scale(1.05); }
}
.game-placeholder p {
  font-family: var(--font-vt);
  font-size: 22px;
  color: var(--text-dim);
  max-width: 300px;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.game-meta-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}
.game-meta-tagline {
  font-family: var(--font-vt);
  font-size: 20px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

.game-meta-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.game-meta-section h4 {
  font-size: 8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.meta-row:last-child { border-bottom: none; }
.meta-row .meta-key  { color: var(--text-muted); }
.meta-row .meta-val  { color: var(--text); font-weight: 500; }

.controls-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.control-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-bottom-width: 3px;
  border-radius: 4px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text);
  white-space: nowrap;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding: 20px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a         { transition: color 0.15s; }
.breadcrumb a:hover   { color: var(--amber); }
.breadcrumb .sep      { color: var(--text-dim); }
.breadcrumb .current  { color: var(--text); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand {
  flex-shrink: 0;
}
.footer-logo {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 10px;
}
.footer-logo span { color: var(--teal); }
.footer-tagline {
  font-family: var(--font-vt);
  font-size: 16px;
  color: var(--text-muted);
  max-width: 200px;
  line-height: 1.4;
}
.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  flex: 1;
}
.footer-col h5 {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a  {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-size: clamp(14px, 2.5vw, 20px);
  color: var(--text);
}
.page-subtitle {
  font-family: var(--font-vt);
  font-size: 20px;
  color: var(--text-muted);
  margin-top: 10px;
  max-width: 560px;
  line-height: 1.4;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--border-bright); color: var(--text); }
.filter-btn.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-dim);
}

/* ── SEARCH ── */
.search-hero {
  padding: 60px 0;
  text-align: center;
}
.search-hero h1 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--text);
}
.search-bar-large {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-bar-large input {
  width: 100%;
  height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 0 16px 0 48px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-bar-large input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-dim);
}
.search-bar-large .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

/* ── 404 ── */
.error-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}
.error-code {
  font-family: var(--font-pixel);
  font-size: clamp(48px, 10vw, 96px);
  color: var(--amber);
  text-shadow: var(--glow-amber);
  margin-bottom: 16px;
}
.error-msg {
  font-family: var(--font-vt);
  font-size: 24px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 32px;
  line-height: 1.4;
}

/* ── NOTIFICATION BAR ── */
.notify-bar {
  background: linear-gradient(90deg, var(--bg-surface), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.notify-bar p {
  font-family: var(--font-vt);
  font-size: 18px;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}
.notify-bar strong { color: var(--text); }
.notify-input-group {
  display: flex;
  gap: 8px;
}
.notify-input-group input {
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 0 14px;
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s;
}
.notify-input-group input:focus { border-color: var(--amber); }
.btn-notify {
  height: 38px;
  background: var(--amber);
  color: #0a0808;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 0 18px;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn-notify:hover {
  background: #fbb93a;
  box-shadow: 0 0 16px rgba(245,166,35,0.4);
}

/* ── 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-amber  { color: var(--amber); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .game-page-layout { grid-template-columns: 1fr; }
  .hero-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(8,8,13,0.85) 60%, rgba(8,8,13,1) 100%);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-search { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--gutter);
    gap: 4px;
  }
  .nav-links.open a { padding: 10px 8px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links  { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .genres-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── HERO CAROUSEL ── */
#hero-carousel { position: relative; overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 600ms ease-in-out;
  display: flex;
  align-items: flex-end;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.carousel-dots {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.3);
  transition: background 0.25s ease;
}
.carousel-dot.active { background: #f5a623; }
.carousel-dot:hover  { background: rgba(255,255,255,0.6); }
.carousel-dot.active:hover { background: #f5a623; }
