:root {
  --bg: #0b0b0e;
  --bg-soft: #101014;
  --panel: #15151b;
  --panel-2: #1c1c24;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f0e8;
  --muted: #a9a2a4;
  --dim: #7c7679;
  --meat: #e43746;
  --meat-bright: #ff5d6d;
  --meat-soft: rgba(228, 55, 70, 0.14);
  --pink: #ffa1aa;
  --gold: #f3c969;
  --green: #64c99a;
  --danger: #ff6b6b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Segoe UI Black", "Helvetica Neue", Impact, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 700px at 12% -10%, rgba(228, 55, 70, 0.16), transparent 62%),
    radial-gradient(900px 600px at 100% 0%, rgba(243, 201, 105, 0.06), transparent 56%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--meat);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgba(11, 11, 14, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--meat-bright), #a91420);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 22px rgba(228, 55, 70, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.brand-name {
  font-size: 1.02rem;
}

.brand-name span {
  color: var(--meat-bright);
}

.brand-small .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 0.68rem;
}

.brand-small .brand-name {
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav > a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav > a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--meat-bright), var(--meat) 62%, #b91927);
  color: #fff;
  box-shadow: 0 12px 30px rgba(228, 55, 70, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 16px 38px rgba(228, 55, 70, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-small {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 56px;
  align-items: center;
  padding-block: clamp(58px, 9vw, 110px) clamp(48px, 7vw, 88px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--meat-bright);
  box-shadow: 0 0 0 5px rgba(255, 93, 109, 0.12);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(255, 93, 109, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(255, 93, 109, 0.03); }
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.accent {
  background: linear-gradient(100deg, var(--meat-bright), var(--pink) 48%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.hero-stats > div {
  min-width: 0;
  padding: 18px 20px;
  background: rgba(15, 15, 19, 0.92);
}

.hero-stats dt {
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-stats .stat-small {
  padding-top: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--muted);
}

.hero-card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), transparent 45%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(228, 55, 70, 0.28), transparent 68%);
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.rule-list {
  display: grid;
  gap: 2px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rule-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.rule-value {
  min-width: 46px;
  color: var(--meat-bright);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.04em;
}

.card-note {
  margin: 0;
  color: var(--dim);
  font-size: 0.8rem;
}

/* Motion header */

.motion-shell {
  position: relative;
  height: clamp(110px, 14vw, 170px);
  margin-top: clamp(16px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(228, 55, 70, 0.28);
  border-radius: 7px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 97% 100%, 0 100%);
  background: #08080d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48);
}

.motion-shell::before,
.motion-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.motion-shell::before {
  opacity: 0.35;
  background:
    repeating-linear-gradient(3deg, transparent 0 13px, rgba(255, 255, 255, 0.045) 13px 14px, transparent 14px 31px),
    repeating-linear-gradient(91deg, transparent 0 58px, rgba(228, 55, 70, 0.12) 58px 61px, transparent 61px 120px);
  mix-blend-mode: overlay;
}

.motion-shell::after {
  opacity: 0.26;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  animation: motion-noise 9s steps(4) infinite;
}

.motion-art,
.motion-art > span {
  position: absolute;
  display: block;
  pointer-events: none;
}

.motion-art {
  inset: -14%;
  background:
    radial-gradient(ellipse at 18% 24%, rgba(228, 55, 70, 0.58), transparent 48%),
    radial-gradient(ellipse at 78% 18%, rgba(82, 96, 214, 0.18), transparent 52%),
    radial-gradient(ellipse at 62% 82%, rgba(243, 201, 105, 0.14), transparent 55%),
    #08080d;
  filter: blur(13px) contrast(135%) saturate(112%);
  animation: motion-drift-a 46s ease-in-out infinite alternate;
}

.motion-art::before,
.motion-art::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.motion-art::before {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(255, 161, 170, 0.2), transparent 46%),
    radial-gradient(ellipse at 82% 60%, rgba(140, 170, 255, 0.18), transparent 48%);
  animation: motion-drift-b 61s ease-in-out infinite alternate;
}

.motion-art::after {
  background: radial-gradient(ellipse at 52% 42%, rgba(255, 255, 255, 0.09), transparent 42%);
  animation: motion-drift-c 74s ease-in-out infinite alternate;
}

.motion-shard {
  position: absolute;
  width: 44%;
  height: 22%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  clip-path: polygon(0 22%, 11% 0, 88% 9%, 100% 34%, 92% 100%, 7% 82%);
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.12), rgba(228, 55, 70, 0.08) 45%, rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.04), 0 0 40px rgba(228, 55, 70, 0.12);
  filter: blur(0.5px);
  opacity: 0.5;
}

.shard-one {
  top: 14%;
  left: 8%;
  transform: rotate(-12deg);
  animation: motion-shard-a 52s ease-in-out infinite alternate;
}

.shard-two {
  top: 48%;
  right: 4%;
  width: 38%;
  transform: rotate(16deg);
  animation: motion-shard-b 68s ease-in-out infinite alternate;
}

.shard-three {
  bottom: 4%;
  left: 28%;
  width: 52%;
  height: 12%;
  transform: rotate(-5deg);
  animation: motion-shard-c 58s ease-in-out infinite alternate;
}

.motion-grid {
  position: absolute;
  inset: 48% -30% -32%;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 38px 18px;
  transform: perspective(500px) rotateX(66deg);
  transform-origin: top center;
  animation: motion-grid-slide 24s linear infinite;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.motion-sheen {
  position: absolute;
  inset: -30%;
  background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, 0.11) 48%, transparent 60%);
  animation: motion-sheen 17s ease-in-out infinite;
}

.motion-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 8, 13, 0.05), rgba(8, 8, 13, 0.78)),
    radial-gradient(ellipse at center, transparent 38%, rgba(3, 3, 6, 0.78) 100%);
  filter: none;
}

.motion-label {
  position: absolute;
  left: clamp(16px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 18px);
  z-index: 2;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.motion-label-mark {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: -0.06em;
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 93, 109, 0.55);
}

.motion-label-copy {
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@keyframes motion-drift-a {
  0% { transform: translate3d(-4%, -2%, 0) scale(1.02); }
  50% { transform: translate3d(3%, 4%, 0) scale(1.09); }
  100% { transform: translate3d(6%, -3%, 0) scale(1.04); }
}

@keyframes motion-drift-b {
  0% { transform: translate3d(4%, 2%, 0) rotate(0deg); }
  50% { transform: translate3d(-5%, -4%, 0) rotate(12deg); }
  100% { transform: translate3d(2%, 5%, 0) rotate(-8deg); }
}

@keyframes motion-drift-c {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate3d(-6%, 3%, 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(5%, -2%, 0) scale(0.96); opacity: 0.65; }
}

@keyframes motion-shard-a {
  0% { transform: translate3d(-6%, -4%, 0) rotate(-12deg); }
  50% { transform: translate3d(8%, 6%, 0) rotate(-4deg); }
  100% { transform: translate3d(2%, -2%, 0) rotate(-18deg); }
}

@keyframes motion-shard-b {
  0% { transform: translate3d(4%, 2%, 0) rotate(16deg); }
  50% { transform: translate3d(-10%, -6%, 0) rotate(7deg); }
  100% { transform: translate3d(-2%, 4%, 0) rotate(22deg); }
}

@keyframes motion-shard-c {
  0% { transform: translate3d(-4%, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(6%, -5%, 0) rotate(2deg); }
  100% { transform: translate3d(0, 4%, 0) rotate(-9deg); }
}

@keyframes motion-grid-slide {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 36px, 38px 0; }
}

@keyframes motion-noise {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-3%, 2%, 0); }
  100% { transform: translate3d(4%, -2%, 0); }
}

@keyframes motion-sheen {
  0%, 100% { transform: translate3d(-12%, 0, 0); opacity: 0.25; }
  50% { transform: translate3d(12%, 0, 0); opacity: 0.7; }
}

.compact-stats {
  margin: 26px 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .motion-art,
  .motion-art::before,
  .motion-art::after,
  .motion-shell::after,
  .motion-shard,
  .motion-grid,
  .motion-sheen {
    animation: none !important;
  }
}

/* Sections */

.section {
  padding-block: clamp(46px, 6vw, 76px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.section-note {
  max-width: 340px;
  margin: 0 0 5px;
  color: var(--dim);
  font-size: 0.82rem;
  text-align: right;
}

/* Podium */

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 235px;
  padding: 30px 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), transparent 55%), var(--panel);
  text-align: center;
  overflow: hidden;
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--line-strong);
}

.podium-card.is-first {
  border-color: rgba(243, 201, 105, 0.42);
  background: linear-gradient(165deg, rgba(243, 201, 105, 0.11), transparent 55%), var(--panel);
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.podium-card.is-first::before {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.podium-card.is-second::before {
  background: linear-gradient(90deg, transparent, #c9d1dc, transparent);
}

.podium-card.is-third::before {
  background: linear-gradient(90deg, transparent, #b87347, transparent);
}

.podium-place {
  position: absolute;
  top: 15px;
  left: 18px;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.is-first .podium-place {
  color: var(--gold);
}

.podium-avatar {
  margin-top: 12px;
}

.podium .avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
}

.podium .avatar-fallback {
  font-size: 1.1rem;
  border-radius: inherit;
}

.podium .avatar img {
  border-radius: inherit;
}

.podium-name {
  max-width: 100%;
  margin: 14px 0 2px;
  font-size: 1.02rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-meta {
  color: var(--dim);
  font-size: 0.76rem;
}

.podium-rare {
  display: block;
  max-width: 100%;
  margin-top: 6px;
  overflow: hidden;
  color: var(--pink);
  font-size: 0.66rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.podium-rare.is-empty {
  color: var(--dim);
}

.podium-score {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.podium-score span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Avatar */

.avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, #292933, #17171d);
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(228, 55, 70, 0.55), rgba(30, 30, 38, 0.8));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Board */

.board-panel {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: rgba(16, 16, 21, 0.82);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.board-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) 100px;
  gap: 18px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.align-right {
  text-align: right;
}

.leaderboard {
  display: grid;
}

.board-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.6fr) minmax(0, 1fr) 100px;
  grid-template-areas:
    "rank person metrics score"
    "bar bar bar bar";
  gap: 0 18px;
  align-items: center;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease;
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.board-rank {
  grid-area: rank;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.board-row:nth-child(1) .board-rank {
  color: var(--gold);
}

.board-row:nth-child(2) .board-rank {
  color: #c9d1dc;
}

.board-row:nth-child(3) .board-rank {
  color: #c8875a;
}

.board-person {
  grid-area: person;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.board-person-text {
  min-width: 0;
}

.board-name {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-sub {
  display: block;
  overflow: hidden;
  color: var(--dim);
  font-size: 0.73rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-rare {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--pink);
  font-size: 0.68rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.board-rare.is-empty {
  color: var(--dim);
}

.board-metrics {
  grid-area: metrics;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.board-metric {
  display: inline-flex;
  flex-direction: column;
  min-width: 66px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  line-height: 1.15;
}

.board-metric b {
  font-size: 0.8rem;
  font-weight: 750;
}

.board-metric span {
  margin-top: 2px;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.board-score {
  grid-area: score;
  text-align: right;
  line-height: 1;
}

.board-score-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.board-score-label {
  display: block;
  margin-top: 5px;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bar-track {
  grid-area: bar;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--meat), var(--meat-bright) 65%, var(--pink));
  box-shadow: 0 0 14px rgba(255, 93, 109, 0.4);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.leaderboard.is-loaded .bar-fill {
  width: var(--bar-width, 0%);
}

.skeleton-row {
  height: 96px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}

.skeleton-row:last-child {
  border-bottom: 0;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.empty-state {
  padding: 52px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-title {
  margin: 0 0 6px;
  color: var(--text);
  font-weight: 750;
}

.empty-state p {
  margin: 4px 0;
  font-size: 0.9rem;
}

.board-caption {
  margin: 16px 2px 0;
  color: var(--dim);
  font-size: 0.74rem;
}

/* Access */

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: start;
}

.access-copy {
  padding-top: 8px;
}

.access-copy h2 {
  margin-bottom: 20px;
}

.access-copy > p {
  color: var(--muted);
  font-size: 0.96rem;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.88rem;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--meat-bright);
  box-shadow: 0 0 0 4px var(--meat-soft);
}

.micro-note {
  margin: 0;
  color: var(--dim);
  font-size: 0.76rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 40%), var(--panel);
  box-shadow: var(--shadow);
}

.form-panel {
  padding: 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.field label span {
  color: var(--dim);
  font-size: 0.67rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(8, 8, 11, 0.72);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #625d60;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 93, 109, 0.7);
  box-shadow: 0 0 0 4px rgba(228, 55, 70, 0.12);
  background: rgba(8, 8, 11, 0.9);
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field-hint {
  margin: 6px 2px 0;
  color: var(--dim);
  font-size: 0.68rem;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Install */

.install-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(700px 320px at 0% 100%, rgba(228, 55, 70, 0.15), transparent 65%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.045), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.install-panel h2 {
  margin-bottom: 12px;
}

.install-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.install-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 180px;
}

.install-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
}

.install-dialog::backdrop {
  background: rgba(4, 4, 6, 0.78);
  backdrop-filter: blur(5px);
}

.install-dialog h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.install-steps > div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.install-steps h3 {
  margin: 0 0 6px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.install-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Footer */

.site-footer {
  margin-top: 50px;
  padding: 34px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.footer-inner p {
  margin: 0;
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 340px;
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  font-size: 0.84rem;
}

/* Admin console */

.admin-body {
  background:
    radial-gradient(900px 500px at 0% -10%, rgba(228, 55, 70, 0.13), transparent 60%),
    var(--bg);
}

.admin-topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 14, 0.8);
  backdrop-filter: blur(18px);
}

.admin-topbar .header-inner {
  min-height: 66px;
}

.admin-label {
  padding: 5px 9px;
  border: 1px solid rgba(255, 93, 109, 0.3);
  border-radius: 999px;
  background: var(--meat-soft);
  color: var(--pink);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-shell {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 36px 80px;
}

.login-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.login-card {
  width: min(420px, 100%);
  padding: 32px;
}

.login-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-toolbar h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.admin-toolbar p {
  margin: 4px 0 0;
  color: var(--dim);
  font-size: 0.78rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.stat-card span {
  display: block;
  color: var(--dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.05em;
  line-height: 1;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.admin-panel-body {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.panel-head span {
  color: var(--dim);
  font-size: 0.72rem;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form .field {
  margin: 0;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.btn-tiny {
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 700;
}

.btn-tiny:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-tiny.danger {
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff9c9c;
}

.btn-tiny.danger:hover {
  background: rgba(255, 107, 107, 0.1);
}

.btn-tiny:disabled {
  opacity: 0.45;
  cursor: wait;
}

.requests-list {
  display: grid;
  gap: 12px;
}

.request-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.request-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.request-top strong {
  font-size: 0.94rem;
}

.request-date {
  color: var(--dim);
  font-size: 0.68rem;
}

.request-details {
  display: grid;
  gap: 5px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.request-details b {
  color: var(--text);
  font-weight: 650;
}

.request-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--meat);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.request-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.data-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

.member-cell .avatar {
  width: 34px;
  height: 34px;
}

.member-cell b {
  display: block;
  font-size: 0.82rem;
}

.member-cell span {
  display: block;
  color: var(--dim);
  font-size: 0.66rem;
}

.steam-id {
  color: var(--pink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  white-space: nowrap;
}

.steam-id.is-missing {
  color: var(--danger);
}

.status-pill {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-active {
  background: rgba(100, 201, 154, 0.12);
  color: var(--green);
}

.status-paused {
  background: rgba(243, 201, 105, 0.12);
  color: var(--gold);
}

.sync-error {
  display: block;
  max-width: 190px;
  margin-top: 3px;
  color: var(--danger);
  font-size: 0.64rem;
  white-space: normal;
}

.admin-status {
  min-height: 22px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.admin-status.is-success {
  color: var(--green);
}

.admin-status.is-error {
  color: var(--danger);
}

.admin-empty {
  padding: 24px;
  color: var(--dim);
  font-size: 0.8rem;
  text-align: center;
}

.admin-note {
  margin: 16px 0 0;
  color: var(--dim);
  font-size: 0.72rem;
}

.status-result {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.8rem;
}

.status-result[hidden] {
  display: none;
}

.status-result.is-info {
  border-color: rgba(243, 201, 105, 0.3);
  color: var(--gold);
}

.status-result.is-success {
  border-color: rgba(100, 201, 154, 0.3);
  color: var(--green);
}

.status-result.is-error {
  border-color: rgba(255, 107, 107, 0.3);
  color: var(--danger);
}

.history-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.76rem;
  cursor: pointer;
}

.system-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.system-row + .admin-note {
  margin-top: 6px;
}

.status-bad,
.request-status-denied {
  background: rgba(255, 107, 107, 0.12);
  color: #ff9c9c;
}

.request-status-pending {
  background: rgba(243, 201, 105, 0.12);
  color: var(--gold);
}

.request-status-approved {
  background: rgba(100, 201, 154, 0.12);
  color: var(--green);
}

.chart-panel {
  margin-bottom: 18px;
}

.score-chart {
  display: grid;
  gap: 13px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(80px, 140px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.chart-label {
  overflow: hidden;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--meat), var(--pink));
  box-shadow: 0 0 18px rgba(228, 55, 70, 0.35);
  transition: width 0.5s ease;
}

.chart-score {
  min-width: 52px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-align: right;
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-card {
    max-width: 620px;
  }

  .access-grid,
  .admin-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .install-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shell,
  .admin-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav > a {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .motion-shell {
    height: clamp(92px, 24vw, 130px);
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-note {
    text-align: left;
  }

  .podium {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .podium-card {
    min-height: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 22px 20px;
    text-align: left;
  }

  .podium-card.is-first {
    transform: none;
  }

  .podium-place {
    position: static;
    min-width: 20px;
    font-size: 0.72rem;
  }

  .podium-avatar {
    margin: 0;
  }

  .podium .avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .podium-name {
    margin: 0;
  }

  .podium-score {
    margin: 0 0 0 auto;
    padding: 0;
    font-size: 1.3rem;
    text-align: right;
  }

  .podium-score span {
    font-size: 0.52rem;
  }

  .board-head {
    display: none;
  }

  .board-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank person score"
      "rank metrics metrics"
      "bar bar bar";
    gap: 8px 12px;
    padding: 16px 16px 13px;
  }

  .board-rank {
    align-self: start;
    padding-top: 11px;
  }

  .board-metrics {
    gap: 6px;
  }

  .board-metric {
    min-width: 0;
    flex: 1;
    padding: 6px 8px;
  }

  .board-metric b {
    font-size: 0.74rem;
  }

  .board-score-value {
    font-size: 1.15rem;
  }

  .form-panel {
    padding: 22px;
  }

.admin-login-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  box-shadow: var(--shadow);
}

.admin-login-dialog::backdrop {
  background: rgba(4, 4, 6, 0.82);
  backdrop-filter: blur(6px);
}

.admin-login-dialog h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.admin-login-note {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-login-form .field {
  margin-bottom: 16px;
}

.admin-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.install-steps {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand-name {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .install-actions {
    width: 100%;
  }

  .install-actions .btn {
    width: 100%;
  }

  .login-card {
    padding: 24px;
  }

  .chart-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .chart-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
