/* =====================================================================
   HOME PAGE

   Loaded alongside css/list.css (not instead of it) — the two spotlight
   cards below reuse .demon-card/.card-*/.view-* wholesale rather than
   duplicating card CSS for two levels shown the exact same way the list
   page already shows every level. list.css's own diagonal-crosshatch
   body::before texture (originally scoped to "the list page") applies
   here too now that this page also loads it — a deliberate keep, not an
   oversight, it suits a hero landing page at least as well as the grid.
   ===================================================================== */

.home-hero {
  padding: 56px 0 40px;
  text-align: center;
}
.home-hero h1 {
  font-size: clamp(36px, 7vw, 60px);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text-hi);
}
.home-hero p {
  margin: 10px auto 0;
  max-width: 360px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}
.home-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.home-stat-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.home-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.home-stat .num { font-size: 26px; color: var(--primary); }
.home-stat span:last-child { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }

.home-spotlight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 56px 0 40px;
}
@media (max-width: 700px) { .home-spotlight-row { grid-template-columns: 1fr; } }

/* The spotlight is a card *around* a .demon-card (see index.html/home.js)
   rather than a bare card, so it can carry its own glow/border treatment
   independent of the demon-card inside it — "special," not just another
   grid tile. */
.home-spotlight {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-surface-2) 130%);
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.home-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--tier-color, var(--primary)), transparent 45%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}
.home-spotlight .demon-card { border: none; box-shadow: none; background: transparent; }
.home-spotlight .demon-card:hover { transform: none; box-shadow: none; }

.home-spotlight-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.home-spotlight-icon {
  display: flex;
  color: var(--primary);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary) 60%, transparent));
}
.home-spotlight-icon svg { width: 20px; height: 20px; }
.home-spotlight-label {
  font-size: 15px;
  font-weight: 700;
  font-family: 'Chakra Petch', system-ui, sans-serif;
  letter-spacing: 0.02em;
  color: var(--text-hi);
}
.home-spotlight-date {
  margin-left: auto;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: var(--text-dim);
}

.home-changes-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-surface);
  padding: 20px;
  margin-bottom: 30px;
}
.home-changes-head h2 { font-size: 16px; }
.home-changes-head p { margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.home-changes-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.home-change-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background .15s;
}
a.home-change-row:hover { background: var(--bg-surface-2); }
.home-change-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.home-change-new    { background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--primary); }
.home-change-up     { background: rgba(34,197,94,0.18); color: #4ade80; }
.home-change-down   { background: rgba(239,68,68,0.18); color: #f87171; }
.home-change-swap   { background: var(--bg-surface-2); color: var(--text-mid); }
.home-change-legacy { background: var(--bg-surface-2); color: var(--text-dim); }
.home-change-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-change-time { flex-shrink: 0; font-size: 11px; color: var(--text-dim); font-family: ui-monospace, monospace; }

.home-roulette-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-surface);
}
.home-roulette-teaser h2 { font-size: 16px; }
.home-roulette-teaser p { margin-top: 4px; font-size: 12.5px; color: var(--text-dim); }
