/* Hall of Fame page — modern living stage (brand cyan + coffee, no purple) */
.hof {
  --hof-brand: #29ABE2;
  --hof-brand-dk: #1a8abf;
  --hof-brand-dp: #0f6f9e;
  --hof-amber: #F59E0B;
  --hof-coffee: #6F4E37;
  --hof-ink: #142033;
  --hof-muted: #5f718a;
  --hof-paper: #f0f5fa;
  --hof-card: rgba(255, 255, 255, 0.88);
  color: var(--hof-ink);
  background: var(--hof-paper);
  min-height: 70vh;
}

/* ── Hero stage ── */
.hof-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 1.25rem 3.5rem;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(41, 171, 226, 0.35), transparent 60%),
    radial-gradient(700px 380px at 90% 80%, rgba(245, 158, 11, 0.18), transparent 55%),
    radial-gradient(600px 360px at 8% 70%, rgba(111, 78, 55, 0.14), transparent 55%),
    linear-gradient(165deg, #0f3a52 0%, #164861 45%, #1a3d4f 100%);
  color: #e8f6fc;
}
.hof-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  pointer-events: none;
  opacity: 0.45;
  animation: hofOrb 10s ease-in-out infinite;
}
.hof-hero-orb.o1 { width: 220px; height: 220px; background: #29ABE2; top: -40px; right: 8%; }
.hof-hero-orb.o2 { width: 180px; height: 180px; background: #F59E0B; bottom: -50px; left: 10%; animation-delay: -3s; opacity: 0.3; }
.hof-hero-orb.o3 { width: 140px; height: 140px; background: #7dd3f0; top: 40%; left: 40%; animation-delay: -6s; opacity: 0.2; }
@keyframes hofOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.08); }
}
.hof-hero-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.hof-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(100deg, #fff, #7dd3f0, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hofBrandShine 5s linear infinite;
}
@keyframes hofBrandShine { to { background-position: 200% center; } }
.hof-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  color: rgba(232, 246, 252, 0.95);
}
.hof-sub {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(232, 246, 252, 0.7);
}

/* floating particles */
.hof-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(125, 211, 240, 0.6);
  pointer-events: none;
  animation: hofFloat 7s ease-in-out infinite;
}
.hof-particle.p1 { top: 22%; left: 14%; animation-delay: 0s; }
.hof-particle.p2 { top: 35%; right: 16%; width: 4px; height: 4px; animation-delay: -2s; background: rgba(245, 158, 11, 0.5); }
.hof-particle.p3 { bottom: 28%; left: 22%; animation-delay: -4s; }
.hof-particle.p4 { bottom: 20%; right: 24%; width: 5px; height: 5px; animation-delay: -1s; background: rgba(255, 255, 255, 0.35); }
@keyframes hofFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-18px); opacity: 1; }
}

/* ── Controls wrap ── */
.hof-wrap {
  max-width: 920px;
  margin: -2rem auto 3.5rem;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

.hof-panel {
  background: var(--hof-card);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(20, 32, 51, 0.06), 0 24px 56px rgba(20, 32, 51, 0.1);
  padding: 1.35rem 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

/* Range segmented control */
.hof-ranges {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(20, 32, 51, 0.05);
  border-radius: 14px;
  padding: 0.3rem;
  max-width: 520px;
  margin: 0 auto 1.25rem;
}
.hof-range {
  border: none;
  background: transparent;
  color: var(--hof-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.55rem 0.95rem;
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.hof-range:hover { color: var(--hof-ink); background: rgba(255, 255, 255, 0.6); }
.hof-range.active {
  background: linear-gradient(135deg, #3fb8ec, var(--hof-brand-dk));
  color: #fff;
  box-shadow: 0 6px 16px rgba(41, 171, 226, 0.35);
}

/* Category tiles */
.hof-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.hof-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid #d5e2ee;
  background: #fff;
  color: var(--hof-ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hof-cat:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 171, 226, 0.45);
  box-shadow: 0 6px 14px rgba(41, 171, 226, 0.12);
}
.hof-cat.active {
  border-color: transparent;
  background: linear-gradient(135deg, #0f6f9e, #164861);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 111, 158, 0.3);
}
.hof-cat .em { font-size: 1rem; line-height: 1; }

.hof-cat-desc {
  text-align: center;
  color: var(--hof-muted);
  font-size: 0.85rem;
  margin: 1rem 0 0;
  min-height: 1.2em;
}

/* ── Spotlight stage (top 3) ── */
.hof-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  align-items: end;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
  padding: 1.5rem 0.5rem 0.5rem;
}
.hof-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(41, 171, 226, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(240, 245, 250, 0.9));
  border: 1px solid rgba(201, 216, 230, 0.6);
  z-index: 0;
  pointer-events: none;
}

.hof-spot {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: hofRise 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
.hof-spot.s2 { animation-delay: 0.05s; }
.hof-spot.s1 { animation-delay: 0.12s; }
.hof-spot.s3 { animation-delay: 0.08s; }
@keyframes hofRise {
  from { opacity: 0; transform: translateY(28px) scale(0.92); }
  to { opacity: 1; transform: none; }
}
.hof-spot a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 0.7rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1.5px solid #e2ebf3;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.07);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s, border-color 0.28s;
}
.hof-spot a:hover {
  transform: translateY(-6px);
  border-color: rgba(41, 171, 226, 0.4);
  box-shadow: 0 18px 40px rgba(41, 171, 226, 0.15);
  color: inherit;
  text-decoration: none;
}
.hof-spot.s1 a {
  padding-top: 1.5rem;
  border-color: rgba(41, 171, 226, 0.35);
  box-shadow: 0 12px 36px rgba(41, 171, 226, 0.18);
  background: linear-gradient(170deg, #fff, #eef8fd);
}

.hof-spot-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.65rem;
  color: #fff;
  background: linear-gradient(135deg, #94a3b8, #64748b);
}
.hof-spot.s1 .hof-spot-rank {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #3fb8ec, #1a8abf);
  box-shadow: 0 4px 12px rgba(41, 171, 226, 0.4);
}
.hof-spot.s2 .hof-spot-rank { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #334155; }
.hof-spot.s3 .hof-spot-rank { background: linear-gradient(135deg, #e8b88a, #c47a3a); }

.hof-spot-avwrap {
  display: inline-block;
  border-radius: 50%;
  padding: 3px;
  line-height: 0;
  margin-bottom: 0.55rem;
  background: linear-gradient(140deg, #cbd5e1, #94a3b8);
}
.hof-spot.s1 .hof-spot-avwrap {
  position: relative;
  padding: 4px;
  background: transparent;
}
.hof-spot.s1 .hof-spot-avwrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  background: conic-gradient(from 180deg, #29ABE2, #7dd3f0, #F59E0B, #29ABE2);
  animation: hofRing 7s linear infinite;
}
@keyframes hofRing { to { transform: rotate(360deg); } }
.hof-spot.s1 .hof-spot-av { position: relative; z-index: 1; }
.hof-spot.s3 .hof-spot-avwrap { background: linear-gradient(140deg, #e8b88a, #c47a3a); }

.hof-spot-av {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
  background: #e2e8f0;
}
.hof-spot.s1 .hof-spot-av { width: 96px; height: 96px; }
.hof-spot.s2 .hof-spot-av,
.hof-spot.s3 .hof-spot-av { width: 72px; height: 72px; }

.hof-spot-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--hof-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hof-spot.s1 .hof-spot-name { font-size: 1rem; }
.hof-spot-sub {
  font-size: 0.72rem;
  color: var(--hof-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}
.hof-spot-val {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--hof-brand-dp);
  background: rgba(41, 171, 226, 0.12);
}

/* ── Leaderboard track ── */
.hof-list { display: flex; flex-direction: column; gap: 0.5rem; }
.hof-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #e8eef5;
  box-shadow: 0 2px 8px rgba(20, 32, 51, 0.04);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s, border-color 0.22s;
  animation: hofRowIn 0.35s ease both;
}
@keyframes hofRowIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hof-row-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--hof-pct, 0%);
  max-width: 100%;
  background: linear-gradient(90deg, rgba(41, 171, 226, 0.1), rgba(41, 171, 226, 0.02));
  pointer-events: none;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hof-row:hover {
  transform: translateY(-2px);
  border-color: rgba(41, 171, 226, 0.35);
  box-shadow: 0 10px 24px rgba(41, 171, 226, 0.1);
  color: inherit;
  text-decoration: none;
}
.hof-rank {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  color: var(--hof-muted);
  background: #f1f5f9;
}
.hof-row-avwrap {
  position: relative;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  line-height: 0;
  background: linear-gradient(140deg, #e2e8f0, #cbd5e1);
}
.hof-row-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
  border: 2px solid #fff;
  display: block;
}
.hof-row-info { position: relative; flex: 1; min-width: 0; }
.hof-row-name {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--hof-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hof-row-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--hof-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hof-row-val {
  position: relative;
  flex-shrink: 0;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--hof-brand-dk);
  background: rgba(41, 171, 226, 0.1);
  white-space: nowrap;
}
.hof-row-go {
  position: relative;
  flex-shrink: 0;
  color: #cbd5e1;
  font-size: 1rem;
  transition: transform 0.2s, color 0.2s;
}
.hof-row:hover .hof-row-go { color: var(--hof-brand); transform: translateX(3px); }

/* Skeleton */
.hof-skel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1.5px solid #e8eef5;
  margin-bottom: 0.5rem;
}
.hof-skel span {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 25%, #f7fafc 37%, #eef2f7 63%);
  background-size: 400% 100%;
  animation: hofShimmer 1.3s ease infinite;
}
.hof-skel .s-rank { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; }
.hof-skel .s-av { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; }
.hof-skel .s-body { flex: 1; height: 12px; }
.hof-skel .s-val { width: 64px; height: 20px; border-radius: 999px; flex-shrink: 0; }
@keyframes hofShimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.hof-empty {
  text-align: center;
  padding: 3rem 1.25rem;
  color: var(--hof-muted);
  background: #fff;
  border-radius: 20px;
  border: 1.5px dashed #d5e2ee;
}
.hof-empty .em { font-size: 2.2rem; display: block; margin-bottom: 0.55rem; }
.hof-updated {
  text-align: center;
  font-size: 0.72rem;
  color: var(--hof-muted);
  margin-top: 1rem;
}

@media (max-width: 560px) {
  .hof-hero { padding: 3.5rem 1rem 2.75rem; }
  .hof-stage { gap: 0.45rem; padding: 1.1rem 0.25rem 0.25rem; }
  .hof-spot a { padding: 0.9rem 0.4rem 1rem; }
  .hof-spot.s1 .hof-spot-av { width: 72px; height: 72px; }
  .hof-spot.s2 .hof-spot-av,
  .hof-spot.s3 .hof-spot-av { width: 54px; height: 54px; }
  .hof-spot-name { font-size: 0.75rem; }
  .hof-spot.s1 .hof-spot-name { font-size: 0.82rem; }
  .hof-spot-sub { display: none; }
  .hof-cat { font-size: 0.74rem; padding: 0.42rem 0.7rem; }
  .hof-row-go { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hof-spot,
  .hof-row,
  .hof-skel span,
  .hof-brand,
  .hof-hero-orb,
  .hof-particle,
  .hof-spot.s1 .hof-spot-avwrap::before {
    animation: none !important;
  }
  .hof-spot a:hover,
  .hof-row:hover { transform: none; }
}
