/* ============================================================
   Fogwall — Souls-themed UI
   Palette: bone-white text on charcoal, gold accents.
   ============================================================ */

:root {
  --bg:           #0d0c0a;
  --bg-elev:      #161310;
  --bg-elev-2:    #1f1b16;
  --border:       #2a241d;
  --border-soft:  #1c1814;
  --text:         #e8dfc9;
  --text-dim:     #9c9382;
  --text-faint:   #928c79;
  --gold:         #d4af37;
  --gold-soft:    #b89329;
  --gold-dark:    #6e5719;
  --crimson:      #8b1e1e;
  --crimson-soft: #b03030;
  --green:        #5a7a3a;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse at top, rgba(212,175,55,0.04), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(139,30,30,0.03), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

code {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-elev-2);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-soft);
}

button, .btn {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.02em;
}
button:hover, .btn:hover {
  background: var(--bg-elev-2);
  border-color: var(--gold-dark);
  color: var(--gold);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--gold-dark);
  border-color: var(--gold-soft);
  color: var(--bg);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--bg);
}
.btn-danger {
  border-color: var(--crimson);
  color: var(--crimson-soft);
}
.btn-danger:hover {
  background: var(--crimson);
  color: var(--text);
  border-color: var(--crimson);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
}

input, textarea, select {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 2px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-dark);
}
textarea { resize: vertical; min-height: 80px; }
label { display: block; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 4px; letter-spacing: 0.05em; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,12,10,0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
}
.brand:hover { color: var(--text); }
.brand-logo { height: 38px; width: 38px; display: block; flex-shrink: 0; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--gold); }
.auth-btn {
  margin-left: 8px;
}

/* Hamburger button — hidden on desktop, shown on narrow screens */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle:hover { background: transparent; }
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* === Mobile header: hamburger left · brand centered · auth right === */
@media (max-width: 700px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding: 12px 14px;
  }
  .nav-toggle { display: flex; justify-self: start; }
  .brand { justify-self: center; font-size: 1.25rem; }
  .brand-logo { height: 32px; width: 32px; }
  .auth-btn {
    justify-self: end;
    margin-left: 0;
    padding: 7px 12px;
    font-size: 0.85rem;
  }
  .auth-name { display: none; }   /* hide "(username)" — keep the button small */

  /* Nav links become a dropdown panel under the header */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 14px 20px;
    border-top: 1px solid var(--border-soft);
    font-size: 1rem;
  }
}

.site-footer {
  padding: 32px;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer-connect {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--gold-dark);
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-footer .footer-btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold);
  color: var(--bg);
}
.site-footer .footer-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 4px;
}
.footer-links a {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a.footer-x {
  display: inline-flex;
  align-items: center;
  /* Sit on the same baseline as the text links instead of dropping below. */
  height: 1em;
}
.footer-links a.footer-x svg {
  width: 13px;
  height: 13px;
}

/* Legal / policy pages — narrower column for readability */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
}

/* Consent line shown under the sign-up form */
.auth-terms {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.auth-terms a { color: var(--text-dim); text-decoration: underline; }
.auth-terms a:hover { color: var(--gold); }

/* ============================================================
   APP / LAYOUT
   ============================================================ */
#app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px;
  min-height: calc(100vh - 200px);
}

.loading, .empty, .error, .not-found {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-dim);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}
.error { color: var(--crimson-soft); }

.setup-warning {
  border: 1px solid var(--gold-dark);
  background: rgba(212,175,55,0.05);
  padding: 32px;
  border-radius: 4px;
  text-align: center;
}
.setup-warning h1 { color: var(--gold); }

.breadcrumb {
  font-size: 0.9rem;
  color: var(--text-faint);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { margin: 0 8px; }

/* ============================================================
   HOME — game grid
   ============================================================ */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.hero h1 {
  font-size: 3rem;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-soft) 60%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 12px;
  font-size: 1.05rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.game-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.game-card-cover {
  width: 100%;
  aspect-ratio: 460 / 215;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.game-card:hover .game-card-cover img { transform: scale(1.04); }
.game-card-cover.placeholder {
  background: linear-gradient(135deg, var(--bg-elev-2) 0%, var(--bg) 100%);
}
.game-card-cover.placeholder::after {
  content: attr(data-cover-name);
  font-family: var(--serif);
  color: var(--gold-dark);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 16px;
}
.game-card-body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.game-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}
.game-card h2 {
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 4px;
  /* Reserve 2 lines so 1-line and 2-line titles keep the rows below aligned. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.25rem;
}
.game-card .year {
  color: var(--text-faint);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.game-card .blurb {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 14px;
  /* Reserve a uniform 3-line block so every card's boss-count row
     and divider line up across the grid, regardless of blurb length. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 4.05rem;
}
.game-card .stat {
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
}
.game-card .stat strong { color: var(--gold); font-weight: 500; }

/* The Duskbloods — homepage-only "coming soon" teaser card (non-interactive) */
.game-card.coming-soon { cursor: default; }
.game-card.coming-soon:hover {
  border-color: var(--border);
  transform: none;
}
.game-card.coming-soon:hover .game-card-cover img { transform: none; }
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  background: rgba(13, 12, 10, 0.74);
}
.coming-soon-label {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.35rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.coming-soon-sub {
  color: var(--text-faint);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-decoration: line-through;
}

/* ============================================================
   GAME PAGE — boss list with checklist
   ============================================================ */
.game-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.game-header h1 {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Game-page hero banner === */
.game-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  margin: 4px 0 18px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.game-hero.placeholder {
  background:
    radial-gradient(ellipse at center, rgba(212,175,55,0.05), transparent 70%),
    linear-gradient(135deg, var(--bg-elev-2), var(--bg));
}
.game-hero.placeholder::before {
  content: attr(data-hero-name);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--gold-dark);
  font-size: 2rem;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.game-hero-overlay {
  width: 100%;
  padding: 36px 40px 26px;
  background: linear-gradient(180deg, transparent 0%, rgba(13,12,10,0.7) 55%, rgba(13,12,10,0.95) 100%);
}
.game-hero-title {
  font-family: var(--serif);
  font-size: 2.6rem;
  margin: 0 0 6px;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.game-hero-blurb {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.85);
  max-width: 720px;
}
.game-stats {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 600px) {
  .game-hero { aspect-ratio: 16 / 7; }
  .game-hero-overlay { padding: 24px 20px 18px; }
  .game-hero-title { font-size: 1.7rem; }
  .game-hero-blurb { font-size: 0.9rem; }
}
.progress-bar {
  height: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-top: 16px;
  position: relative;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  transition: width 0.4s ease;
}
.progress-text {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

.search-row {
  margin: 18px 0 12px;
}
.search-row input[type="search"] {
  width: 100%;
  font-size: 0.95rem;
  padding: 10px 14px;
}

.boss-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.boss-row {
  display: grid;
  grid-template-columns: auto 56px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  margin-bottom: 6px;
  transition: all 0.15s;
}
.boss-thumb {
  width: 56px;
  height: 56px;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.boss-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.boss-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg));
}
.boss-thumb.placeholder::before {
  content: attr(data-initials);
  font-family: var(--serif);
  color: var(--gold-dark);
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.boss-row:hover .boss-thumb { border-color: var(--gold-dark); }

/* Canonical row with variants — has no checkbox; uses variant-badge instead */
.boss-row.canonical {
  background: var(--bg-elev);
}
.boss-row.canonical .boss-row-spacer {
  width: 24px;  /* matches checkbox size */
  height: 24px;
}
.boss-row.canonical.all-defeated {
  opacity: 0.65;
}
.boss-row.canonical.all-defeated .boss-name a {
  text-decoration: line-through;
  text-decoration-color: var(--gold-dark);
}

/* Variant indicator chip in canonical row */
.variant-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.variant-badge:hover {
  background: var(--gold-dark);
  color: var(--bg);
  border-color: var(--gold);
}
.variant-badge.expanded {
  background: rgba(212,175,55,0.12);
}

.variant-progress {
  margin-left: 10px;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.variant-progress.all-done { color: var(--gold); }

/* Variant sub-rows (inside expanded canonical) */
.boss-row.variant {
  background: var(--bg-elev-2);
  border-left: 3px solid var(--gold-dark);
  padding-left: 30px;
  margin-left: 24px;
  margin-bottom: 4px;
}
.boss-row.variant .boss-name {
  font-size: 0.95rem;
  color: var(--text-dim);
}
.boss-row.variant .boss-thumb {
  width: 44px;
  height: 44px;
}
.boss-row.variant .boss-rating-mini { display: none; }

/* Boss page — variants list inside the header */
.boss-variants {
  margin-top: 14px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}
.boss-variants summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 4px 0;
}
.boss-variants summary:hover { color: var(--text); }
.boss-variants-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
}
.boss-variants-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-soft);
  font-size: 0.85rem;
}
.boss-variants-list li:last-child { border-bottom: 0; }
.boss-variants-list .variant-name { color: var(--text); }
.boss-variants-list .variant-location { color: var(--text-dim); font-style: italic; }

/* Elden Ring 207-vs-208 footnote at the bottom of the game page */
.er-footnote {
  margin: 38px 0 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--border-soft);
  background: rgba(212, 175, 55, 0.03);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.er-footnote strong {
  color: var(--gold);
  font-style: normal;
  font-weight: 600;
}
.er-footnote em {
  color: var(--text);
  font-style: italic;
}

/* Linked-checkbox indicator (e.g. Elden Beast row) */
.linked-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  background: transparent;
  border: 1px dashed var(--border);
  font-style: italic;
  font-family: var(--sans);
  vertical-align: middle;
  cursor: help;
}
@media (max-width: 600px) {
  .boss-row { grid-template-columns: auto 48px 1fr auto; gap: 10px; }
  .boss-row .boss-rating-mini { display: none; }
  .boss-thumb { width: 48px; height: 48px; }
}
.boss-row:hover {
  border-color: var(--gold-dark);
  background: var(--bg-elev-2);
}
.boss-row.defeated {
  opacity: 0.55;
}
.boss-row.defeated .boss-name {
  text-decoration: line-through;
  text-decoration-color: var(--gold-dark);
}
.boss-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--text);
}
.boss-name a { color: inherit; }
.boss-name a:hover { color: var(--gold); }
.boss-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.tag {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--text-faint);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.boss-rating-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.checkbox-toggle {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gold-dark);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: all 0.15s;
  padding: 0;
}
.checkbox-toggle:hover {
  border-color: var(--gold);
  background: rgba(212,175,55,0.1);
}
.checkbox-toggle.checked {
  background: var(--gold-dark);
  border-color: var(--gold);
}
.checkbox-toggle.checked::after {
  content: '✓';
  color: var(--bg);
  font-weight: 700;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* ============================================================
   BOSS DETAIL PAGE
   ============================================================ */
.boss-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}
@media (max-width: 800px) {
  .boss-detail { grid-template-columns: 1fr; }
}

/* Previous / next boss navigation */
.boss-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.boss-nav-link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 48%;
  padding: 9px 16px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.boss-nav-link:hover {
  border-color: var(--gold-dark);
  background: var(--bg-elev-2);
}
.boss-nav-link.next { text-align: right; }
.boss-nav-dir {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.boss-nav-name {
  color: var(--gold);
  font-size: 0.95rem;
  font-family: var(--serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* "Defeated" tracking panel on the boss page */
.boss-defeat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.boss-defeat-btn:hover {
  border-color: var(--gold-dark);
  color: var(--text);
}
.boss-defeat-check {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1px solid var(--text-faint);
  position: relative;
}
.boss-defeat-btn.defeated {
  border-color: var(--gold-dark);
  color: var(--gold);
}
.boss-defeat-btn.defeated .boss-defeat-check {
  background: var(--gold-dark);
  border-color: var(--gold);
}
.boss-defeat-btn.defeated .boss-defeat-check::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
}
.defeat-variant-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.defeat-variant-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.defeat-variant-name {
  font-size: 0.88rem;
  color: var(--text-dim);
}
.defeat-variant-row.defeated .defeat-variant-name {
  color: var(--gold);
}
.defeat-hint {
  color: var(--text-faint);
  font-size: 0.8rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* SEO body shell baked in at prerender time. The content is there for
   crawlers (kept in the DOM) but hidden from users — the SPA replaces
   #app on hydration anyway, so they only ever see the live UI. A
   <noscript> override in index.html un-hides it for JS-disabled visitors. */
.prerender-shell { display: none; }

/* Header notification bell (on the Profile nav link) — shown only when
   there are unread notifications. */
.nav-bell {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: var(--gold);
  vertical-align: middle;
}
.nav-bell[hidden] { display: none; }
.nav-bell svg {
  width: 14px;
  height: 14px;
}

/* Profile notifications panel */
.notif-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.notif-unread-count {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.notif-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}
.notif-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  background: var(--bg-elev);
}
.notif-item.unread {
  border-left-color: var(--gold);
  background: var(--bg-elev-2);
}
.notif-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}
.notif-snippet {
  margin-top: 5px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}
.notif-when {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.notif-status { font-weight: 600; }
.notif-status.ok  { color: var(--gold); }
.notif-status.bad { color: var(--crimson-soft); }

/* Boss page: "mark as favorite" heart toggle inside the rating card */
.favorite-toggle-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.favorite-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.favorite-toggle:hover {
  border-color: var(--gold-dark);
  color: var(--text);
}
.favorite-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: fill 0.2s ease, stroke 0.2s ease;
}
.favorite-toggle.is-fav {
  border-color: var(--gold-dark);
  color: var(--gold);
}
.favorite-toggle.is-fav svg {
  fill: var(--gold);
  stroke: var(--gold);
}

/* Profile — per-game favorite line under each game's progress bar */
.game-fav-row {
  margin-top: 5px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.game-fav-row::before {
  content: "★";
  color: var(--gold);
  margin-right: 5px;
}
.game-fav-row a { color: var(--gold); }
.game-fav-row a:hover { color: var(--gold-soft); }

/* Inline text-style button (used for "Suggest an edit" next to the
   submission credit line). */
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--gold-soft); }
.suggest-edit-btn { font-size: 0.85rem; }

/* Boss page: leaderboard-rank row at the top of the Public Stats panel */
.rank-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 10px;
}
.rank-row .rank-num-big {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1;
}
.rank-row.rank-1 .rank-num-big { color: var(--gold); }
.rank-row.rank-2 .rank-num-big { color: #c0c0c0; }
.rank-row.rank-3 .rank-num-big { color: #b08d57; }
.rank-row .rank-text {
  color: var(--text-dim);
  font-size: 0.88rem;
}
.rank-row .rank-of {
  color: var(--text-faint);
}

.boss-hero {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.boss-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.boss-hero.placeholder {
  background:
    radial-gradient(ellipse at center, rgba(212,175,55,0.05), transparent 70%),
    linear-gradient(135deg, var(--bg-elev-2), var(--bg));
}
.boss-hero.placeholder::after {
  content: attr(data-hero-name);
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold-dark);
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.boss-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.boss-header h1 {
  font-size: 2.4rem;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.boss-header .location {
  color: var(--text-dim);
  font-size: 1rem;
  font-style: italic;
}

.section {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.section h2 {
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.strategy {
  color: var(--text);
  line-height: 1.75;
  white-space: pre-wrap;
}

.ost-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  padding: 10px 16px;
  color: var(--text);
}
.ost-link:hover { border-color: var(--gold-dark); color: var(--gold); }

.boss-side-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
  align-self: start;
}
@media (max-width: 800px) {
  .boss-side-panel { position: static; }
}

.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 20px;
}
.panel h3 {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.public-stats .stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  padding: 4px 0;
}
.public-stats .stat-row .label {
  color: var(--text-dim);
  flex: 1 1 auto;
  min-width: 0;
}
.public-stats .stat-row .value {
  color: var(--gold);
  font-weight: 500;
  font-family: var(--serif);
  flex: 0 0 36px;
  text-align: right;
}
.public-stats .stat-row.difficulty .value { color: var(--crimson-soft); }
.public-stats .total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 1rem;
}
.public-stats .total-row .value {
  font-size: 1.05rem;
}
.public-stats .section-divider {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}
.public-stats .section-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.public-stats .section-label.difficulty { color: var(--crimson-soft); }
.public-stats .rating-count {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 12px;
  letter-spacing: 0.05em;
}
.public-stats .lore-coverage {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 4px;
  letter-spacing: 0.03em;
}
.public-stats .lore-coverage-detail {
  color: var(--text-faint);
  opacity: 0.7;
  margin-left: 4px;
}
.public-stats .lore-excluded-note {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-style: italic;
  border: 1px dashed var(--border-soft);
  background: rgba(0,0,0,0.15);
  text-align: center;
  line-height: 1.4;
}

/* Label block — wraps the category name and (for optional rows) the small
   "optional" hint beneath it. Required rows are single-line; optional rows
   are slightly taller, which is fine since Lore sits at the bottom. */
.rating-row .label-block {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.15;
}
.rating-row .label-block .label {
  flex: 0 0 auto;
}
.rating-row .label-block .optional-sub {
  font-size: 0.62rem;
  font-style: italic;
  color: var(--text-faint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Reserved action slot — sits between the label and the stars on every row
   so the star column stays aligned across required and optional rows. Only
   optional rows actually fill it with a × clear button. */
.rating-row .row-action {
  flex: 0 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Compact × clear button on optional rows (e.g. Lore).
   The × is drawn with two pseudo-element strokes rather than the textual
   "×" glyph — the glyph has uneven vertical metrics in most fonts and
   never lines up cleanly inside the circle. Pseudo-elements guarantee
   perfect centering. The button's textContent ("×") is hidden visually
   but still serves as accessible fallback text alongside `title`. */
.rating-skip-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  width: 18px;
  height: 18px;
  font-size: 0;            /* hide textual × */
  line-height: 0;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
  letter-spacing: 0;
  font-style: normal;
  text-transform: none;
}
.rating-skip-btn::before,
.rating-skip-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}
.rating-skip-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.rating-skip-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.rating-skip-btn:hover {
  color: var(--crimson-soft);
  border-color: var(--crimson);
  background: rgba(176, 48, 48, 0.12);
}

/* Favorite count row in the public stats panel */
.favorite-count-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.favorite-count-row .fav-icon {
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1;
}
.favorite-count-row .fav-num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ============================================================
   STAR RATING COMPONENT
   ============================================================ */
.star-rating {
  display: inline-flex;
  gap: 1px;
  user-select: none;
  flex-shrink: 0;
}
.star-rating .star {
  position: relative;
  width: 18px;
  height: 18px;
  color: #2e2a23;
  font-size: 20px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  display: inline-block;
}
.star-rating .star::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: block;
}
.star-rating .star::before {
  content: '★';
  position: absolute;
  inset: 0;
  display: block;
  color: var(--gold);
  overflow: hidden;
  width: var(--fill, 0%);
  z-index: 2;
}
.star-rating.difficulty .star::before {
  color: var(--crimson-soft);
}
.star-rating.readonly .star { cursor: default; }

.rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}
.rating-row .label {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  flex: 1 1 auto;
  min-width: 0;
}
.rating-row .value {
  color: var(--gold);
  font-size: 0.8rem;
  font-family: var(--serif);
  flex: 0 0 30px;
  text-align: right;
}
.rating-row.difficulty .value { color: var(--crimson-soft); }

/* Hover-expand category descriptions (Your Rating + Public Stats) */
.rating-row-wrap, .stat-row-wrap {
  border-radius: 2px;
  padding: 0 4px;
  margin: 0 -4px;
  transition: background-color 0.15s ease;
}
.rating-row-wrap:hover, .stat-row-wrap:hover,
.rating-row-wrap:focus-within, .stat-row-wrap:focus-within {
  background: rgba(212, 175, 55, 0.05);
}
.rating-row-wrap.difficulty:hover, .stat-row-wrap.difficulty:hover {
  background: rgba(176, 48, 48, 0.06);
}
.rating-tip {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, padding 0.22s ease, opacity 0.18s ease;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-faint);
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0;
  padding: 0 2px;
}
.rating-row-wrap:hover .rating-tip,
.rating-row-wrap:focus-within .rating-tip,
.stat-row-wrap:hover .rating-tip,
.stat-row-wrap:focus-within .rating-tip {
  /* Generous max so longer tips (Lore, Difficulty) aren't clipped on their
     last line. Rendered height is still driven by the actual content; this
     is only the upper bound for the expand transition. */
  max-height: 200px;
  padding: 2px 2px 6px;
  opacity: 1;
}
.rating-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 16px;
}
.rating-section {
  border-top: 1px solid var(--border-soft);
  margin-top: 12px;
  padding-top: 12px;
}
.rating-section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.rating-section-label {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.rating-section-label.difficulty { color: var(--crimson-soft); }
.rating-summary {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-around;
  text-align: center;
}
.rating-summary .total-block {
  flex: 1;
}
.rating-summary .total {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--gold);
}
.rating-summary .total.difficulty { color: var(--crimson-soft); }
.rating-summary .total-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.rating-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments h2 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.comment-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 24px;
}
.comment-form textarea {
  margin-bottom: 10px;
}
.comment-form .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.comment {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.comment-avatar-link { display: block; }
.comment-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  display: block;
}
.comment-avatar.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--gold-dark);
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg));
}
.comment-content { min-width: 0; }
.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.85rem;
}
.comment-author {
  color: var(--gold);
  font-family: var(--serif);
  letter-spacing: 0.04em;
}
.comment-author:hover { color: var(--text); }
.comment-time {
  color: var(--text-faint);
}
.comment-body {
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.6;
}
.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 0.8rem;
}
.comment-actions button {
  background: transparent;
  border: none;
  color: var(--text-faint);
  padding: 2px 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.comment-actions button:hover {
  color: var(--gold);
  background: transparent;
}
.comment-actions [data-delete-comment]:hover,
.comment-actions [data-report]:hover {
  color: var(--crimson-soft);
}
.comment-actions [data-reported] {
  color: var(--text-faint);
  opacity: 0.6;
  cursor: not-allowed;
  font-style: italic;
}
.comment-actions [data-reported]:hover {
  color: var(--text-faint);
}

/* === Reply thread === */
.comment-block {
  margin-bottom: 14px;
}
.comment-replies {
  margin-left: 36px;
  margin-top: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--border);
}
.comment-replies .comment {
  background: var(--bg-elev-2);
  padding: 10px 14px;
  margin-bottom: 6px;
}
.comment-replies .comment-avatar {
  width: 32px;
  height: 32px;
}
.comment-replies .comment {
  grid-template-columns: 32px 1fr;
  gap: 10px;
}
.comment-replies .comment-body {
  font-size: 0.9rem;
}

.reply-form-mount:empty { display: none; }
.reply-form-mount .reply-form {
  margin-left: 36px;
  margin-top: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--gold-dark);
  background: var(--bg-elev-2);
  padding: 12px 14px;
  border-radius: 0;
  border-top: 1px solid var(--border-soft);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.reply-form-mount .reply-form textarea { min-height: 60px; }

/* === Report modal === */
.report-modal { max-width: 500px; }
.report-modal textarea { resize: vertical; min-height: 80px; }
.report-modal .char-count {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
  margin-top: 4px;
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--bg-elev);
  border: 1px solid var(--gold-dark);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
  position: relative;
}
.modal h2 {
  color: var(--gold);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 10px;
}
.modal-close:hover {
  color: var(--gold);
  background: transparent;
}

.tab-row {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.tab-row button {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.tab-row button.active {
  color: var(--gold);
  border-bottom-color: var(--gold-dark);
}

.field { margin-bottom: 14px; }
.field-error {
  color: var(--crimson-soft);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* OAuth (Google / Discord) sign-in */
.oauth-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.oauth-btn:hover {
  border-color: var(--gold-dark);
  background: var(--bg-elev);
}
.oauth-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.oauth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.oauth-divider::before,
.oauth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.oauth-divider span { padding: 0 12px; }

/* ============================================================
   PROFILE
   ============================================================ */
/* === Profile hero === */
.profile-hero {
  position: relative;
  width: calc(100% + 64px);
  margin: -32px -32px 0;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.profile-hero.placeholder {
  background:
    radial-gradient(ellipse at center, rgba(212,175,55,0.05), transparent 70%),
    linear-gradient(135deg, var(--bg-elev-2), var(--bg));
}
.profile-hero-overlay {
  width: 100%;
  padding: 30px 40px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(13,12,10,0.75) 60%, rgba(13,12,10,0.95) 100%);
}
.profile-hero-name {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--text);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.profile-hero-fav {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.profile-hero-fav a { color: var(--gold); }
.profile-hero-fav a:hover { color: var(--text); }

.profile-actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 24px;
  flex-wrap: wrap;
}

.profile-section-h {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-top: 36px;
  margin-bottom: 14px;
  font-size: 1.3rem;
}
.profile-section-h .dim {
  color: var(--text-faint);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-left: 6px;
}
.collapse-toggle {
  float: right;
  font-size: 0.8rem;
  padding: 4px 12px;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--border);
}

/* === Rating list with hover-expand === */
.rating-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.rating-list-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.rating-list-item:hover {
  border-color: var(--gold-dark);
}
.rating-list-item .row-main {
  display: grid;
  /* Last column is a fixed width so a long date ("17/05/2026") and a
     short one ("6h ago") don't shift the game-name column. */
  grid-template-columns: 1fr 160px auto 90px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  color: var(--text);
}
.rating-list-item .boss-name-cell { font-family: var(--serif); }
.rating-list-item .game-cell { color: var(--text-dim); font-size: 0.85rem; }
.rating-list-item .when-cell { color: var(--text-faint); font-size: 0.8rem; text-align: right; }
.rating-list-item .rating-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--bg-elev-2);
}
.rating-list-item:hover .rating-detail {
  max-height: 220px;
}
.rating-list-item .rating-detail .detail-row {
  display: grid;
  grid-template-columns: 130px 1fr 40px;
  align-items: center;
  gap: 12px;
  padding: 4px 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.rating-list-item .rating-detail .detail-row:first-child { padding-top: 10px; }
.rating-list-item .rating-detail .detail-row:last-child { padding-bottom: 10px; }
.rating-list-item .rating-detail .detail-row.difficulty { color: var(--crimson-soft); }
.rating-list-item .rating-detail .val {
  font-family: var(--serif);
  color: var(--gold);
  text-align: right;
  font-size: 0.85rem;
}
.rating-list-item .rating-detail .difficulty .val { color: var(--crimson-soft); }
@media (max-width: 600px) {
  .rating-list-item .row-main { grid-template-columns: 1fr auto 90px; gap: 8px; }
  .rating-list-item .game-cell { display: none; }
}

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0;
}
.pagination .page-info {
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* === Profile comments list === */
.profile-comments {
  list-style: none;
  padding: 0;
  margin: 0;
}
.profile-comment {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.profile-comment .comment-boss-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  color: var(--gold-dark);
}
.profile-comment .comment-boss-thumb.placeholder {
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg));
}
.profile-comment-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  font-size: 0.9rem;
}
.profile-comment-head a {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.04em;
}
.profile-comment-head .when { color: var(--text-faint); font-size: 0.8rem; }
.profile-comment-text {
  color: var(--text);
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.55;
}
#comments-section.collapsed { display: none; }
.empty-row {
  color: var(--text-faint);
  font-style: italic;
  padding: 16px;
  text-align: center;
}

/* === Danger zone (delete account) === */
.danger-zone { margin-top: 48px; }
.profile-section-h.danger { color: var(--crimson-soft); }
.danger-box {
  border: 1px solid var(--crimson);
  background: rgba(139, 30, 30, 0.06);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.danger-box .danger-text strong {
  color: var(--text);
  font-family: var(--serif);
  letter-spacing: 0.02em;
}
.danger-box .danger-text p {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
  max-width: 62ch;
}
.danger-box .btn-danger { flex: 0 0 auto; }

/* === Favorite-boss picker rows === */
.fav-row {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 14px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  cursor: pointer;
  align-items: center;
  color: var(--text);
}
.fav-row:hover {
  background: var(--bg-elev-2);
  color: var(--gold);
}
.fav-row.current {
  background: rgba(212,175,55,0.08);
}
.fav-row img,
.fav-row .thumb-fallback {
  width: 60px;
  height: 60px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border-soft);
}
.fav-info { display: flex; flex-direction: column; min-width: 0; }
.fav-name { font-family: var(--serif); }
.fav-game { color: var(--text-dim); font-size: 0.8rem; }
.fav-current-mark { color: var(--gold); font-size: 1.4rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 18px;
  text-align: center;
}
.stat-card .num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  display: block;
}
.stat-card .label {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.recent-list li {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 12px 16px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.recent-list .when {
  color: var(--text-faint);
  font-size: 0.8rem;
}

/* ============================================================
   LEADERBOARD
   ============================================================ */
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
.leaderboard-table th,
.leaderboard-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft);
}
.leaderboard-table th {
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.leaderboard-table tbody tr:hover {
  background: var(--bg-elev);
}
.leaderboard-table .rank {
  color: var(--text-faint);
  font-family: var(--serif);
  font-size: 1.1rem;
  width: 40px;
}
.leaderboard-table .rank-1 { color: var(--gold); }
.leaderboard-table .rank-2 { color: #c0c0c0; }
.leaderboard-table .rank-3 { color: #b08d57; }

/* Wrapper so a wide table scrolls within its own box, never the page */
.table-scroll { overflow-x: auto; }

/* On phones, show the FULL table but scroll it horizontally inside its
   own box (.table-scroll). Rank + Boss stay pinned; the rest slides. */
@media (max-width: 700px) {
  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px 10px;
    white-space: nowrap;
  }
  .leaderboard-table .lb-rank,
  .leaderboard-table .lb-boss {
    position: sticky;
    /* Above the rating stars, whose ::before fill is z-index: 2 — without
       this the stars paint over the pinned columns while scrolling. */
    z-index: 3;
    background: var(--bg);
  }
  .leaderboard-table .lb-rank {
    left: 0;
    width: 48px;
    min-width: 48px;
    box-sizing: border-box;
    padding: 10px 6px;
  }
  .leaderboard-table .lb-boss {
    left: 48px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    border-right: 1px solid var(--border);
  }
  .leaderboard-table tbody tr:hover .lb-rank,
  .leaderboard-table tbody tr:hover .lb-boss {
    background: var(--bg-elev);
  }
}

.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-bar select {
  width: auto;
  min-width: 200px;
}
.filter-bar input[type="search"] {
  flex: 1 1 240px;
  min-width: 200px;
}

/* ============================================================
   TOAST
   ============================================================ */
#toast-root {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-elev);
  border: 1px solid var(--gold-dark);
  color: var(--text);
  padding: 12px 18px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: slide-in 0.2s ease;
}
.toast.error { border-color: var(--crimson); color: var(--crimson-soft); }
.toast.success { border-color: var(--green); }
@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   MISC
   ============================================================ */
.divider {
  text-align: center;
  color: var(--text-faint);
  font-family: var(--serif);
  letter-spacing: 0.3em;
  margin: 32px 0;
  position: relative;
}
.divider::before, .divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.hidden { display: none !important; }

/* ============================================================
   MARKDOWN EDITOR MODAL
   ============================================================ */
.markdown-editor-modal {
  max-width: 760px;
  width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.md-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.md-toolbar button {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 10px;
  font-size: 0.85rem;
  letter-spacing: 0;
  min-width: 32px;
}
.md-toolbar button:hover {
  border-color: var(--gold-dark);
  color: var(--gold);
  background: var(--bg-elev-2);
}
.md-toolbar-sep {
  width: 1px;
  background: var(--border);
  margin: 4px 4px;
}
.md-source {
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  font-size: 0.9rem;
  height: 200px;
  resize: vertical;
  margin-bottom: 12px;
}
.md-preview-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.md-preview {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px 16px;
  min-height: 80px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.md-help {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.md-help code { font-size: 0.78rem; padding: 0 4px; }
.md-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

/* ============================================================
   MARKDOWN-RENDERED CONTENT
   ============================================================ */
.markdown-content { color: var(--text); line-height: 1.65; }
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
  font-family: var(--serif);
  color: var(--gold);
  margin: 1.2em 0 0.4em;
  letter-spacing: 0.02em;
}
.markdown-content h1 { font-size: 1.45rem; }
.markdown-content h2 { font-size: 1.25rem; }
.markdown-content h3 { font-size: 1.1rem; }
.markdown-content h4 { font-size: 1rem; color: var(--gold-soft); }
.markdown-content p { margin: 0 0 0.85em; }
.markdown-content ul, .markdown-content ol { padding-left: 1.6em; margin-bottom: 0.85em; }
.markdown-content li { margin-bottom: 0.3em; }
.markdown-content a { color: var(--gold); text-decoration: underline; }
.markdown-content a:hover { color: var(--text); }
.markdown-content code {
  background: var(--bg-elev-2);
  padding: 1px 6px;
  font-size: 0.9em;
}
.markdown-content pre {
  background: var(--bg-elev-2);
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
}
.markdown-content blockquote {
  border-left: 3px solid var(--gold-dark);
  padding-left: 14px;
  color: var(--text-dim);
  margin: 0.8em 0;
}
.markdown-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5em 0;
}
.markdown-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  font-size: 0.92rem;
}
.markdown-content th, .markdown-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.markdown-content th {
  background: var(--bg-elev-2);
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.04em;
}
.markdown-content u { text-decoration: underline; }

/* ============================================================
   SUBMISSION SECTIONS (strategy / lore on boss page)
   ============================================================ */
.submission-section h2 {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
}
.submission-body { position: relative; }
.submission-body.collapsible {
  max-height: 380px;
  overflow: hidden;
}
.submission-body.collapsible::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg) 90%);
  pointer-events: none;
}
.submission-body.collapsible.expanded {
  max-height: none;
}
.submission-body.collapsible.expanded::after { display: none; }
.show-more-btn {
  display: block;
  margin: 12px auto 0;
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold);
  padding: 6px 18px;
  font-size: 0.85rem;
  position: relative;
  z-index: 2;
}
.show-more-btn:hover { background: var(--gold-dark); color: var(--bg); }
.submission-credit {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 14px;
  text-align: right;
  font-style: italic;
}
.submission-cta {
  margin-top: 16px;
}
.submission-status {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 14px 16px;
  margin-top: 16px;
  font-size: 0.92rem;
}
.submission-status.pending  { border-color: var(--gold-dark); }
.submission-status.rejected { border-color: var(--crimson); }
.submission-status.approved { border-color: var(--green); }
.submission-status strong { display: block; margin-bottom: 4px; }
.submission-status .submission-when { color: var(--text-faint); font-size: 0.82rem; display: block; margin-bottom: 6px; }
.submission-status .reject-reason { color: var(--crimson-soft); font-size: 0.88rem; margin: 6px 0; }
.submission-preview { margin-top: 8px; }
.submission-preview summary {
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 4px 0;
}
.submission-preview .markdown-content {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
}
.submission-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* ============================================================
   ADMIN QUEUE
   ============================================================ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin: 18px 0 20px;
  border-bottom: 1px solid var(--border);
}
.admin-tabs .tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  padding: 10px 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.admin-tabs .tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold-dark);
}
.admin-submission {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.admin-submission header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-soft);
}
.admin-kind {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.admin-boss { font-size: 1.05rem; }
.admin-boss a { color: var(--text); }
.admin-boss a:hover { color: var(--gold); }
.admin-game { color: var(--text-dim); font-size: 0.85rem; margin-left: 4px; }
.status-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.status-badge.pending  { color: var(--gold);         border-color: var(--gold-dark); }
.status-badge.approved { color: var(--green);        border-color: var(--green); }
.status-badge.rejected { color: var(--crimson-soft); border-color: var(--crimson); }
.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.admin-meta code {
  font-size: 0.78rem;
  padding: 1px 6px;
}
.admin-content {
  max-height: 360px;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.admin-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Status badge variants for feedback */
.status-badge.new       { color: var(--gold);         border-color: var(--gold-dark); }
.status-badge.seen      { color: var(--text-dim);     border-color: var(--border); }
.status-badge.done      { color: var(--green);        border-color: var(--green); }
.status-badge.dismissed { color: var(--text-faint);   border-color: var(--border-soft); }

/* Tab badge — small "new feedback" indicator */
.tab-badge {
  display: inline-block;
  background: var(--crimson);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  letter-spacing: 0;
}

/* Feedback sub-filter bar inside the Feedback admin tab */
.feedback-filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.feedback-filter-bar .tab {
  padding: 8px 14px;
  font-size: 0.78rem;
}
.search-summary {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  font-style: italic;
}

/* Missing-content list (compact rows) */
.missing-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.missing-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 4px;
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
.missing-row:hover { border-color: var(--gold-dark); }
.missing-game {
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.missing-name {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.missing-name:hover { color: var(--gold); }
.missing-needs {
  display: flex;
  gap: 6px;
}
.missing-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border: 1px dashed currentColor;
  text-transform: uppercase;
  font-style: italic;
}
.missing-tag.strategy { color: var(--crimson-soft); }
.missing-tag.lore     { color: var(--gold-dark); }
@media (max-width: 600px) {
  .missing-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   FLOATING FEEDBACK BUTTON (bottom-right)
   ============================================================ */
.feedback-fab {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 90;
  background: var(--bg-elev);
  color: var(--gold);
  border: 1px solid var(--gold-dark);
  padding: 10px 18px 10px 16px;
  border-radius: 22px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.55);
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  opacity: 0.78;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.feedback-fab:hover {
  opacity: 1;
  transform: translateY(-2px);
  background: var(--gold-dark);
  color: var(--bg);
  border-color: var(--gold);
}
.feedback-fab .fab-icon { font-size: 1rem; }
@media (max-width: 540px) {
  .feedback-fab { padding: 10px 12px; bottom: 14px; right: 14px; }
  .feedback-fab .fab-label { display: none; }
}

/* Feedback modal */
.feedback-modal { max-width: 520px; }
.feedback-modal textarea { resize: vertical; min-height: 120px; }
.feedback-modal .char-count {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: right;
  margin-top: 4px;
}

/* ============================================================
   OPTIONAL-BOSSES TOGGLE
   ============================================================ */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 18px 0 10px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.toggle {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 20px;
  flex: 0 0 auto;
}
.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.2s;
  border-radius: 12px;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 12px;
  width: 12px;
  left: 3px;
  top: 2px;
  background: var(--text-dim);
  transition: 0.2s;
  border-radius: 50%;
}
.toggle input:checked + .toggle-slider {
  background: var(--gold-dark);
  border-color: var(--gold);
}
.toggle input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: var(--bg);
}

.game-card .stat-line {
  font-size: 0.85rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  padding-top: 10px;
  margin-top: auto;   /* pin the boss-count row to the bottom of the card */
}
.game-card .stat-line .main-count { color: var(--gold); font-weight: 500; }
.game-card .stat-line .opt-count  { color: var(--text-dim); }
.game-card .stat-line .progress-line {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
