/* =========================================================
   Xbox One / Xbox 360 Backward Compatible Catalog
   Built on Xbox dark-green identity, blended with gamerghosts
   brand colors (Neon Dark Blue, Brandeis Blue, Capri) and
   Pixelify Sans for brand/headline typography.
   ========================================================= */

:root {
  /* Surfaces — Xbox-ish dark base */
  --bg: #0b0f0c;
  --panel: #141a17;
  --panel-2: #1a211d;
  --panel-3: #222b26;
  --line: #2a3530;
  --line-2: #344039;

  /* Text */
  --text: #e9f1ec;
  --text-dim: #a4b3ac;
  --muted: #6c7a73;

  /* Xbox green (preserved as the catalog accent) */
  --green: #9bf00b;
  --green-2: #6fcc00;
  --green-soft: rgba(155, 240, 11, 0.12);
  --green-soft-2: rgba(155, 240, 11, 0.22);
  --green-glow: rgba(155, 240, 11, 0.35);

  /* gamerghosts brand palette */
  --gg-neon-dark-blue: #000075;   /* deepest brand blue */
  --gg-super-blue:     #0041ca;
  --gg-brandeis:       #0063ff;   /* primary brand blue */
  --gg-capri:          #00b9ff;   /* highlight cyan */
  --gg-eerie:          #1a1a1a;
  --gg-bright-green:   #63ff00;
  --gg-dutch-orange:   #ff9c00;
  --gg-bright-red:     #ff1c00;

  --gg-blue-soft:  rgba(0, 99, 255, 0.16);
  --gg-cyan-soft:  rgba(0, 185, 255, 0.18);

  --danger: var(--gg-bright-red);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,0.4);

  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --brand-font: 'Pixelify Sans', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: var(--gg-capri); text-decoration: none; }
a:hover { color: var(--green); text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================== BRAND BAR (gamerghosts) ===================== */
.brand-bar {
  background: linear-gradient(90deg, var(--gg-neon-dark-blue) 0%, var(--gg-super-blue) 60%, var(--gg-brandeis) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.brand-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 6px,
    rgba(255,255,255,0.02) 6px 7px
  );
  pointer-events: none;
}
.brand-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  position: relative;
  z-index: 1;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.brand-mark:hover { text-decoration: none; }
.brand-ghost {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(0,185,255,0.45));
}
.brand-wordmark {
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 0.86rem;
}
.brand-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.brand-nav a:hover {
  color: #fff;
  border-bottom-color: var(--gg-capri);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(0,185,255,0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(155,240,11,0.07), transparent 60%),
    linear-gradient(180deg, #0d1310 0%, #0b0f0c 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #cfeaff;
  background: var(--gg-blue-soft);
  border: 1px solid rgba(0,185,255,0.35);
  border-radius: 999px;
  margin-bottom: 22px;
}
.badge strong {
  font-family: var(--brand-font);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gg-capri);
  box-shadow: 0 0 10px var(--gg-capri);
}

h1 {
  font-family: var(--brand-font);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  font-weight: 700;
}
h1 .slash { color: var(--muted); font-weight: 400; }
h1 .accent {
  background: linear-gradient(90deg, var(--green) 0%, var(--gg-capri) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* #TheXboxOneGameCollection project title treatment */
.project-title {
  font-family: var(--brand-font);
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  line-height: 1.0;
  margin: 0 0 14px;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: var(--text);
  word-break: break-word;
}
.project-title .hashtag {
  color: var(--gg-capri);
  margin-right: 0.05em;
}
.project-title .x-accent {
  background: linear-gradient(90deg, var(--green) 0%, var(--gg-capri) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  font-family: var(--font);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.4;
}
.subtitle .slash { color: var(--muted); font-weight: 400; margin: 0 4px; }
.xbox-tag {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-soft-2);
  padding: 2px 10px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.92em;
  font-weight: 600;
}

.lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 0 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0 32px;
  max-width: 720px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gg-capri), var(--green));
  opacity: 0.7;
}
.stat-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 2px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--green);
  color: #0b0f0c;
  box-shadow: 0 0 0 0 var(--green-glow);
}
.btn-primary:hover {
  background: #b7ff2c;
  box-shadow: 0 8px 24px var(--green-glow);
  color: #0b0f0c;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--gg-capri); color: var(--gg-capri); }
.btn-small {
  background: var(--panel-2);
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font);
}
.btn-small:hover { border-color: var(--gg-capri); color: var(--gg-capri); }

/* View toggle (cards / table) */
.view-toggle {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
  margin-left: auto;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.view-toggle-btn:hover { color: var(--text); }
.view-toggle-btn.is-active {
  background: var(--gg-blue-soft);
  color: var(--gg-capri);
  box-shadow: 0 0 0 1px rgba(0,185,255,0.35);
}
.view-toggle-btn svg { flex-shrink: 0; }

/* ===================== TOOLBAR ===================== */
.toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11,15,12,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1;
  min-width: 240px;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus {
  outline: none;
  border-color: var(--gg-capri);
  box-shadow: 0 0 0 3px var(--gg-cyan-soft);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.region-pref,
.region-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 14px;
}
.region-pref {
  border: 1px solid var(--gg-brandeis);
  box-shadow: 0 0 0 1px rgba(0,185,255,0.15) inset;
}
.region-filter {
  border: 1px solid var(--line);
}
.region-pref-label,
.region-filter-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}
.region-pref-label { color: var(--gg-capri); }
.region-filter-label { color: var(--muted); }
.region-pref select,
.region-filter select {
  border: none;
  background: transparent;
  color: var(--text);
}
.filters select {
  appearance: none;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 36px 11px 14px;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg width='12' height='12' viewBox='0 0 24 24'><path fill='%2300b9ff' d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.filters select:focus { outline: none; border-color: var(--gg-capri); }
.result-count {
  padding: 0 24px 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.result-count strong { color: var(--gg-capri); font-weight: 600; }

/* ===================== CATALOG ===================== */
.catalog {
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.catalog[hidden] { display: none; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }

/* =================== TABLE VIEW =================== */
.catalog-table-wrap {
  padding: 32px 24px 64px;
}
.catalog-table-wrap[hidden] { display: none; }
.catalog-table-scroll {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.catalog-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: 0.86rem;
  color: var(--text);
  table-layout: auto;
}
/* Column sizing — region/rating need their own minimum width so chips don't wrap */
.catalog-table col-region    { width: 110px; }
.catalog-table colgroup col:nth-child(1) { width: 110px; }   /* Region */
.catalog-table colgroup col:nth-child(2) { width: 160px; }   /* Edition */
.catalog-table colgroup col:nth-child(3) { width: 140px; }   /* Spine ID */
.catalog-table colgroup col:nth-child(4) { width: 150px; }   /* Barcode */
.catalog-table colgroup col:nth-child(5) { width: 180px; }   /* Product ID */
.catalog-table colgroup col:nth-child(6) { width: 180px; }   /* Disc / Branding */
.catalog-table colgroup col:nth-child(7) { width: 90px;  }   /* Rating */
.catalog-table colgroup col:nth-child(8) { width: auto;  }   /* Notes — flexible */

.catalog-table thead th {
  position: sticky;
  top: 0;
  background: var(--panel-2);
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  z-index: 1;
  white-space: nowrap;
}
/* Prevent chip text from breaking inside cells */
.catalog-table .region-chip,
.catalog-table .rating-chip {
  white-space: nowrap;
  display: inline-block;
}
.catalog-table tbody tr.game-row-header th {
  background: linear-gradient(90deg, var(--gg-blue-soft), transparent 70%);
  border-top: 1px solid var(--line);
  padding: 14px 16px;
  text-align: left;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.catalog-table tbody tr.game-row-header:first-child th { border-top: none; }
.game-row-title {
  font-family: var(--brand-font);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.game-row-sub {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  margin-left: 12px;
  font-style: italic;
}

.catalog-table tbody tr.variant-row td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.catalog-table tbody tr.variant-row:hover { background: rgba(255,255,255,0.02); }
.catalog-table tbody tr.variant-row.matches-pref {
  background: rgba(0,185,255,0.04);
}
.catalog-table tbody tr.variant-row.matches-pref:hover {
  background: rgba(0,185,255,0.07);
}

.catalog-table .cell-id .mono {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
  word-break: break-all;
}
.catalog-table .cell-id .copy {
  margin-left: 6px;
  font-size: 0.66rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s ease;
  vertical-align: 1px;
}
.catalog-table .cell-id .copy:hover { color: var(--gg-capri); border-color: var(--gg-capri); }
.catalog-table .muted { color: var(--muted); }
.catalog-table .cell-notes {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 320px;
  min-width: 200px;
}

/* The region-chip and rating-chip rules are reused from card view */


.game-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.game-card:hover { border-color: var(--line-2); }

.game-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.game-header:hover .game-title { color: var(--green); }
.game-title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.game-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
  font-family: var(--font);
}
.game-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.chip {
  background: var(--panel-3);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.chip.accent { background: var(--green-soft); color: var(--green); border-color: var(--green-soft-2); }
.chip.blue   { background: var(--gg-blue-soft); color: var(--gg-capri); border-color: rgba(0,185,255,0.35); }
.chip.amber  { background: rgba(255,156,0,0.12); color: var(--gg-dutch-orange); border-color: rgba(255,156,0,0.35); }

/* Region tag chip shown on collapsed game cards — color encodes match type */
.region-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.region-tag-exact {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green-soft-2);
}
.region-tag-same {
  background: var(--gg-blue-soft);
  color: var(--gg-capri);
  border-color: rgba(0,185,255,0.35);
}
.region-tag-cross {
  background: rgba(255,156,0,0.12);
  color: var(--gg-dutch-orange);
  border-color: rgba(255,156,0,0.35);
}

.variant-count {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--gg-capri);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
  color: var(--text-dim);
}
.game-card.open .chevron { transform: rotate(180deg); color: var(--gg-capri); }

.variants-wrap {
  display: none;
  padding: 8px 22px 22px;
}
.game-card.open .variants-wrap { display: block; }

.variant {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.variant:first-child { border-top: none; }

/* Variant gallery — front / back / spine / disc as a 4-cell row */
.variant-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.gallery-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.gallery-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

/* Thumbnails: small (header) and medium (variant gallery cells) */
.image-thumb {
  position: relative;
  overflow: hidden;
  background: var(--panel-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: border-color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 1px);
  display: block;
}
.image-thumb:hover {
  border-color: var(--gg-capri);
  border-style: solid;
}
/* When the img fails to load, the JS adds .no-image and we render a placeholder via ::before */
.image-thumb.no-image {
  border-style: dashed;
  border-color: var(--line-2);
  background: var(--panel-3);
}
.image-thumb.no-image::before {
  content: attr(data-angle);
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  opacity: 0.6;
}

.thumb-sm {
  width: 56px;
  height: 75px;
  flex-shrink: 0;
}
.thumb-md {
  width: 100%;
  aspect-ratio: 3 / 4;
}
.gallery-cell:has(.thumb-md.no-image) .gallery-label { color: var(--muted); opacity: 0.55; }

.variant-body { min-width: 0; }
.variant-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.region-chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--green-soft-2);
}
.region-chip.matches-pref {
  background: var(--gg-blue-soft);
  color: var(--gg-capri);
  border-color: rgba(0,185,255,0.35);
}
.edition-chip {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}
.rating-chip {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--panel-3);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.id-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 18px;
  margin-bottom: 10px;
}
.id-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.id-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.id-value {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-all;
}
.id-value.empty { color: var(--muted); font-style: italic; }
.id-value .copy {
  cursor: pointer;
  margin-left: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font);
  transition: all 0.15s ease;
}
.id-value .copy:hover { color: var(--gg-capri); border-color: var(--gg-capri); }

.variant-notes {
  margin-top: 8px;
  padding: 10px 14px;
  background: var(--panel-3);
  border-left: 3px solid var(--gg-capri);
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
/* Disc / Branding chip — colored to match the actual disc-line aesthetic */
.branding-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid;
  white-space: nowrap;
  font-family: var(--font);
}
.branding-xbox-one-360 {
  background: var(--green-soft);
  color: var(--green);
  border-color: var(--green-soft-2);
}
.branding-platinum {
  background: rgba(255,156,0,0.14);
  color: var(--gg-dutch-orange);
  border-color: rgba(255,156,0,0.4);
}
.branding-classics {
  background: var(--gg-blue-soft);
  color: var(--gg-capri);
  border-color: rgba(0,185,255,0.35);
}
.branding-standard {
  background: var(--panel-3);
  color: var(--text-dim);
  border-color: var(--line-2);
}
.branding-no-disc {
  background: rgba(255,28,0,0.10);
  color: #ff8a7a;
  border-color: rgba(255,28,0,0.30);
}
.branding-other {
  background: var(--panel-3);
  color: var(--text-dim);
  border-color: var(--line);
}

/* Verified by — per-variant credit list, card view only */
.verified-by {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.verified-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.verified-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}
.verified-name { color: var(--text); font-weight: 500; }
.verified-role {
  color: var(--muted);
  font-size: 0.74rem;
  font-style: italic;
}
.verified-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.15s ease;
}
.verified-link:hover {
  color: var(--gg-capri);
  border-color: var(--gg-capri);
  text-decoration: none;
}

.other-regions-hint {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(0,185,255,0.06);
  border: 1px dashed rgba(0,185,255,0.25);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.other-regions-hint button {
  background: none;
  border: none;
  color: var(--gg-capri);
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font);
  font-size: inherit;
  padding: 0;
}

/* ===================== SECTIONS ===================== */
.section-title {
  font-family: var(--brand-font);
  font-size: 1.75rem;
  font-weight: 600;
  margin: 24px 0 16px;
  letter-spacing: 0.01em;
}
.other-items {
  padding: 0 24px 64px;
}
.other-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.other-item h3 { margin: 0 0 8px; font-size: 1.1rem; }
.other-item p { margin: 0; color: var(--text-dim); }

/* ===================== CONTACT ===================== */
.contact-wrap {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(0,99,255,0.14), transparent 60%),
    linear-gradient(180deg, #0d1310 0%, #0b0f0c 100%);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}
.contact-lede {
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 0 28px;
  font-size: 1.02rem;
}
.contact-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.1s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  min-width: 260px;
}
.contact-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.contact-btn svg { flex-shrink: 0; }
.contact-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}
.contact-btn-label { font-size: 1rem; font-weight: 600; color: var(--text); }
.contact-btn-handle {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

.contact-btn-x:hover {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 10px 30px rgba(255,255,255,0.12);
}
.contact-btn-x:hover .contact-btn-label,
.contact-btn-x:hover .contact-btn-handle,
.contact-btn-x:hover svg { color: #000; }

.contact-btn-discord:hover {
  border-color: #5865F2;
  background: #5865F2;
  box-shadow: 0 10px 30px rgba(88,101,242,0.4);
}
.contact-btn-discord:hover .contact-btn-label,
.contact-btn-discord:hover .contact-btn-handle,
.contact-btn-discord:hover svg { color: #fff; }

.contact-footnote {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 760px;
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gg-capri);
  background: rgba(0,185,255,0.04);
  border-radius: 0 8px 8px 0;
}
.contact-footnote strong { color: var(--text-dim); }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(0,0,117,0.18) 0%, transparent 100%),
    var(--bg);
  padding: 28px 0 18px;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand-mark { padding: 0; }
.footer-brand .small { margin: 4px 0 0; }
.footer-socials { display: flex; gap: 8px; align-items: center; }
.footer-socials a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: all 0.15s ease;
}
.footer-socials a:hover {
  color: #fff;
  background: var(--gg-brandeis);
  border-color: var(--gg-capri);
  text-decoration: none;
}
.footer-fineprint {
  margin-top: 12px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }

/* ===================== MODAL ===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
  flex-direction: column;
}
.modal[hidden] { display: none; }
.modal img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
}
.modal-caption {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}
.modal-close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-2);
  font-size: 1.8rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.modal-close:hover { border-color: var(--gg-capri); color: var(--gg-capri); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .variant { grid-template-columns: 1fr; }
  .variant-image { max-width: 200px; }
  .hero { padding: 48px 0 36px; }
  .toolbar { padding: 12px 16px; }
  .container { padding: 0 16px; }
  .catalog { padding: 24px 16px 48px; }
  .game-header { padding: 16px 18px; }
  .variants-wrap { padding: 6px 18px 18px; }
  .brand-nav { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .region-pref { width: 100%; }
}
