/* Home page */
.home-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 48px; align-items: center;
  padding: 56px 0 24px;
}
.hh-copy h1 { margin: 16px 0 14px; font-size: clamp(36px, 5vw, 60px); line-height: 1.06; letter-spacing: -.025em; font-weight: 800; }
.hh-copy h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hh-copy .lead { margin: 0; max-width: 520px; color: var(--text-2); }
.hh-copy .eyebrow::before { display: none; }
.hh-copy .search { margin: 26px 0 0; max-width: 620px; }
.hh-copy .search-hint { max-width: 620px; }
.hh-copy .recent { justify-content: flex-start; margin-top: 10px; }
.hh-feats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.hh-feats span { display: inline-flex; align-items: center; gap: 6px; }
.hh-feats svg { width: 15px; height: 15px; color: var(--accent); }

/* Spotlight stack */
.spot-stack { position: relative; height: 340px; }
.spot-card {
  position: absolute; inset: 0 0 auto 0; height: 300px; padding: 22px; border-radius: 22px; cursor: pointer;
  background:
    radial-gradient(420px 200px at 100% 0%, hsl(var(--h) 70% 50% / .22), transparent 70%),
    linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .35s ease, filter .35s ease;
  display: flex; flex-direction: column;
}
.spot-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, .018) 3px 4px);
}
.spot-card.depth-0 { z-index: 3; transform: rotate(-1.2deg); }
.spot-card.depth-0:hover { transform: rotate(0deg) translateY(-4px); }
.spot-card.depth-1 { z-index: 2; transform: translate(22px, 18px) rotate(2.5deg) scale(.97); opacity: .7; filter: saturate(.7); }
.spot-card.depth-2 { z-index: 1; transform: translate(40px, 34px) rotate(5deg) scale(.94); opacity: .4; filter: saturate(.5); }
.spot-card.depth-1:hover, .spot-card.depth-2:hover { opacity: .9; }
.spot-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .2em; }
.spot-label { font: 800 12px/1 var(--mono); letter-spacing: .2em; padding: 6px 10px; border-radius: 7px; background: var(--amber-soft); color: var(--amber); }
.spot-id { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.spot-id .avatar { width: 52px; height: 52px; border-radius: 14px; font-size: 21px; }
.spot-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.spot-tier { color: var(--muted); font-size: 13px; margin-top: 2px; }
.spot-body { display: flex; align-items: center; gap: 22px; margin-top: auto; }
.spot-body .emblem { filter: drop-shadow(0 10px 22px hsl(var(--eh) 80% 50% / .4)); }
.spot-nums { display: grid; grid-template-columns: auto auto; gap: 26px; }
.spot-nums label { display: block; font: 600 11px/1 var(--mono); letter-spacing: .14em; color: var(--muted); }
.spot-nums b { display: block; margin-top: 8px; font: 800 34px/1 var(--mono); letter-spacing: -.04em; }
.spot-nums b small { font-size: 13px; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.spot-card.depth-0 .spot-nums div:first-child b { color: var(--amber); }
.spot-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--accent); font-weight: 600; font-size: 13.5px; }
.spot-foot svg { width: 16px; height: 16px; transition: transform .2s ease; }
.spot-card:hover .spot-foot svg { transform: translateX(4px); }
.spot-dots { position: absolute; left: 0; bottom: 0; display: flex; gap: 6px; }
.spot-dots button { width: 22px; height: 5px; border-radius: 3px; border: 0; padding: 0; background: var(--line-strong); cursor: pointer; transition: width .2s ease, background .2s ease; }
.spot-dots button.active { width: 36px; background: var(--accent); }
.spot-empty { height: 300px; display: grid; place-items: center; }

/* Leaderboard list */
.lb-tools { display: flex; gap: 10px; }
.lb-list { display: grid; gap: 8px; }
.lrow {
  display: grid; grid-template-columns: 44px 40px minmax(140px, 1.3fr) minmax(110px, .8fr) minmax(90px, .9fr) 92px 16px;
  align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.lrow:hover { border-color: var(--line-strong); transform: translateX(2px); box-shadow: var(--shadow); }
.lrow.disabled { cursor: default; }
.lrow.disabled:hover { transform: none; }
.lrow .medal {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  font: 800 14px/1 var(--mono); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}
.lrow.m1, .lrow.m2, .lrow.m3 { background: linear-gradient(90deg, var(--mc-soft), transparent 50%), var(--surface); }
.lrow.m1 { --mc: #f5b83d; --mc-soft: rgba(245, 184, 61, .1); }
.lrow.m2 { --mc: #b8c4d0; --mc-soft: rgba(184, 196, 208, .09); }
.lrow.m3 { --mc: #d98b55; --mc-soft: rgba(217, 139, 85, .09); }
.lrow.m1 .medal, .lrow.m2 .medal, .lrow.m3 .medal { color: #1a1206; border: 0; background: linear-gradient(140deg, color-mix(in srgb, var(--mc) 60%, #fff), var(--mc)); box-shadow: 0 6px 16px -6px var(--mc); }
.lrow .who { min-width: 0; }
.lrow .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.lrow .tier { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.lrow .tier .emblem { filter: none; }
.lrow .rrbar .meter { margin: 0; height: 6px; }
.lrow .rr { text-align: right; }
.lrow .rr b { font: 800 18px/1 var(--mono); letter-spacing: -.02em; }
.lrow.m1 .rr b { color: var(--amber); }
.lrow .rr small { display: block; margin-top: 5px; font: 600 11px/1 var(--mono); color: var(--muted); }
.lrow .chev { width: 16px; height: 16px; color: var(--muted); }

.lb-pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.lb-pager .pages { display: flex; gap: 4px; align-items: center; }
.lb-pager .pages button {
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font: 600 13px var(--mono); color: var(--text-2);
}
.lb-pager .pages button.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Aside extras */
.season-id { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.season-id .mono { font-size: 15px; color: var(--text); }
.chart.dist { height: 150px; }
.chart .dist-bar { fill: var(--accent); }
.chart.dist text { fill: var(--muted); font: 10px var(--mono); }
.recent-list { display: grid; gap: 6px; }
.recent-item {
  display: grid; grid-template-columns: 30px 1fr 14px; gap: 10px; align-items: center; text-align: left;
  padding: 7px 8px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
}
.recent-item:hover { background: var(--surface-2); }
.recent-item .avatar { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.recent-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.recent-item .chev { width: 14px; height: 14px; color: var(--muted); }

@media (max-width: 1020px) {
  .home-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .spot-stack { max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 760px) {
  .lrow { grid-template-columns: 36px 34px 1fr auto 14px; gap: 10px; padding: 10px 12px; }
  .lrow .opt { display: none; }
  .lrow .medal { width: 32px; height: 32px; }
  .lrow .avatar { width: 34px; height: 34px; }
  .spot-card { padding: 18px; }
  .spot-nums b { font-size: 28px; }
  .lb-pager .pages button:not(.active) { display: none; }
}
.chip { white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex: none; }
@media (max-width: 1020px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .spot-stack { padding-right: 22px; }
  .spot-card { right: 22px; }
  .spot-card.depth-1 { transform: translate(10px, 12px) rotate(2deg) scale(.97); }
  .spot-card.depth-2 { transform: translate(20px, 24px) rotate(4deg) scale(.94); }
  .search-modes button { padding: 5px 8px; }
}
