:root {
  --bg: #070a14;
  --panel: #0c1020;
  --panel-2: #121729;
  --row: #0f1426;
  --row-alt: #121a2e;
  --line: rgba(255, 255, 255, .07);
  --text: #ffffff;
  --muted: #8b90a8;

  --purple: #7b2ff7;
  --purple-hover: #8c47ff;
  --purple-card: linear-gradient(135deg, #1d1140 0%, #150d2e 55%, #120b26 100%);
  --purple-tile: linear-gradient(135deg, #2a1858 0%, #22134a 100%);

  --gold: #f7a823;
  --violet: #7f84f7;
  --pink: #e0218a;
  --blue: #4f9bff;
  --lilac: #b8a2ff;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --font: 'Chakra Petch', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Starfield + purple glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 72% 8%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 38% 62%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 88% 48%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 58% 32%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 94% 82%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 5% 50%, rgba(255,255,255,.3), transparent);
  background-size: 420px 420px;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(123, 47, 247, .22), transparent 70%),
    radial-gradient(600px 400px at 100% 40%, rgba(224, 33, 138, .06), transparent 70%);
}

a { color: inherit; text-decoration: none; }
b { color: var(--lilac); font-weight: 700; }
button { font: inherit; color: inherit; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  height: 48px;
  padding: 0 1.8rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(123, 47, 247, 0);
}
.btn-primary:hover { background: var(--purple-hover); box-shadow: 0 6px 24px rgba(123, 47, 247, .45); }
.btn-outline {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: #d9dbe6;
}
.btn-outline:hover { border-color: rgba(123, 47, 247, .6); color: #fff; }
.btn-sm { height: 40px; padding: 0 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; height: 54px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, rgba(10, 12, 26, .72), rgba(10, 12, 26, .5) 50%, rgba(10, 12, 26, .72));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 78px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-center { display: flex; align-items: center; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: .7rem;
  height: 48px;
  padding: 0 1.1rem 0 .45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(123, 47, 247, .35), rgba(123, 47, 247, .1));
  border: 1px solid rgba(123, 47, 247, .35);
  transition: border-color .2s;
}
.nav-pill:hover { border-color: rgba(140, 71, 255, .8); }
.nav-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #8c47ff, #5a18c9);
  transform: rotate(-12deg);
  box-shadow: 0 0 14px rgba(140, 71, 255, .6);
}
.nav-pill-icon svg { width: 20px; height: 20px; fill: #fff; transform: rotate(12deg); }
.nav-pill-title { display: block; font-weight: 700; font-size: .92rem; line-height: 1.1; }
.nav-pill-sub { display: flex; align-items: center; gap: .35rem; font-size: .75rem; color: #9aa0b8; font-variant-numeric: tabular-nums; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #6f7590; }
.live-dot.on { background: #2ee88a; box-shadow: 0 0 6px #2ee88a; }

.nav-login {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 0 .4rem;
  font-weight: 600;
  color: #c9ccda;
  transition: color .2s;
}
.nav-login svg { width: 20px; height: 20px; fill: currentColor; }
.nav-login:hover { color: #fff; }
.nav-login:hover svg { fill: #5865f2; }

.user-menu { position: relative; }
.user-menu summary {
  display: flex;
  align-items: center;
  gap: .55rem;
  height: 44px;
  padding: 0 .7rem 0 .3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { border-color: rgba(123, 47, 247, .5); }
.user-menu summary img { width: 34px; height: 34px; border-radius: 50%; }
.user-menu summary span { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .chev { width: 18px; height: 18px; fill: var(--muted); transition: transform .2s; }
.user-menu[open] .chev { transform: rotate(180deg); }
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: .5rem;
  border-radius: var(--r);
  background: rgba(16, 19, 36, .96);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  display: flex;
  flex-direction: column;
}
.user-handle { padding: .5rem .8rem; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.user-dropdown a { padding: .6rem .8rem; border-radius: var(--r-sm); font-weight: 600; color: #ff8a8e; }
.user-dropdown a:hover { background: rgba(255, 255, 255, .05); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 52px; width: auto; display: block; }

.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #d4d6e2;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links svg { width: 20px; height: 20px; fill: currentColor; opacity: .75; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.nav-right .btn-sm { height: 48px; padding: 0 1.3rem; font-size: 1rem; }

/* ---------- Layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 2rem 1.5rem 0; }
.section { padding: 3.5rem 0 0; scroll-margin-top: 80px; }

/* Purple card with pixel decoration */
.card-glow {
  position: relative;
  background: var(--purple-card);
  border: 1px solid rgba(123, 47, 247, .18);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.pixels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 6px, transparent 6px),
                    linear-gradient(90deg, rgba(255,255,255,.035) 6px, transparent 6px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0, transparent 35%), radial-gradient(circle at 0 0, #000 0, transparent 25%);
  mask-image: radial-gradient(circle at 100% 100%, #000 0, transparent 35%), radial-gradient(circle at 0 0, #000 0, transparent 25%);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  min-height: 340px;
  padding: 2.8rem 3rem;
  background:
    radial-gradient(500px 300px at 80% 50%, rgba(123, 47, 247, .35), transparent 70%),
    linear-gradient(100deg, #3a1a86 0%, #2a1366 35%, #170d38 100%);
}
.hero-text { position: relative; z-index: 1; }
.sponsor-pill {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: .8rem;
  color: #c9c3e6;
  margin-bottom: 1.2rem;
}
.sponsor-pill img { height: 18px; }

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.05; }
h1 .accent { color: #b18cff; }
.sub { color: #d1cbe8; font-size: 1.1rem; max-width: 34rem; margin: .8rem 0 1.8rem; }
.sub b { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo img {
  width: min(320px, 100%);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)) drop-shadow(0 0 40px rgba(123, 47, 247, .35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Stat tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.1rem;
  background: var(--purple-card);
  border: 1px solid rgba(123, 47, 247, .14);
  border-radius: var(--r-lg);
}
.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  height: 68px;
  padding: 0 1rem;
  border: none;
  border-radius: var(--r);
  background: var(--purple-tile);
  text-align: center;
}
button.tile { cursor: pointer; transition: filter .2s; }
button.tile:hover { filter: brightness(1.15); }
.tile-label { font-size: .95rem; font-weight: 600; }
.tile-label.orange { color: var(--gold); }
.tile-label.blue { color: var(--blue); }
.tile-label.lilac { color: var(--lilac); }
.tile-value { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.copy-icon { width: 16px; height: 16px; fill: var(--muted); }

/* ---------- Coin ---------- */
.coin {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

/* ---------- Page heading ---------- */
.page-head { margin-bottom: 1.8rem; }
.page-head h2 { font-size: clamp(2.2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.1; }
.page-head p { color: var(--muted); font-size: 1.15rem; margin-top: .4rem; }

.section-title { display: flex; align-items: center; gap: .8rem; font-size: 1.4rem; font-weight: 700; margin-bottom: 1.4rem; }
.dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(123, 47, 247, .25);
  display: grid;
  place-items: center;
}
.dot::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--purple); }

.demo-banner {
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(79, 155, 255, .08);
  border: 1px dashed rgba(79, 155, 255, .4);
  color: var(--blue);
  font-size: .9rem;
  text-align: center;
}

/* ---------- Podium ---------- */
.podium-panel {
  position: relative;
  height: 480px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(400px 260px at 15% 85%, rgba(123, 47, 247, .45), transparent 70%),
    radial-gradient(420px 260px at 88% 80%, rgba(123, 47, 247, .4), transparent 70%),
    radial-gradient(500px 300px at 50% 40%, rgba(80, 60, 160, .35), transparent 70%),
    linear-gradient(180deg, #2b2548 0%, #1d1838 50%, #151127 100%);
}
.podium-panel::before {
  /* subtle wall/brick texture */
  content: '';
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image:
    linear-gradient(rgba(0,0,0,.18) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,.12) 2px, transparent 2px);
  background-size: 120px 40px, 60px 40px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 18%, transparent 30% 70%, #000 82%);
  mask-image: linear-gradient(90deg, #000 0 18%, transparent 30% 70%, #000 82%);
}

.podium {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 3.8rem;
  height: 100%;
}

.pod { position: relative; width: 200px; display: flex; flex-direction: column; align-items: center; }
.pod-card {
  width: 100%;
  padding: 1.2rem 1rem 5.2rem;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  text-align: center;
  --c: var(--violet);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 35%, transparent) 0%, color-mix(in srgb, var(--c) 70%, transparent) 55%, var(--c) 100%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.15);
}
.pod-2 { margin-top: 0; }
.pod-1 .pod-card { --c: var(--gold); padding-top: 1.4rem; padding-bottom: 5.6rem; }
.pod-1 { padding-top: 0; }
.pod-1 .pod-card { min-height: 280px; }
.pod-3 .pod-card { --c: var(--pink); }
.pod-2 .pod-card, .pod-3 .pod-card { min-height: 220px; }

.pod-place {
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.pod-place sup { font-size: 1.5rem; vertical-align: .9em; margin-left: .05em; }
.pod-3 .pod-place { color: #ff9bd6; }

.pod-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin-top: .9rem;
  font-size: 1.3rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  line-height: 1.15;
}
.pod-wagered { font-size: .9rem; color: rgba(255,255,255,.85); }
.pod-sep { width: 75%; height: 1px; margin: .7rem auto; background: rgba(255,255,255,.25); }
.pod-prize { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.4rem; font-weight: 700; }

.pod-avatar {
  position: relative;
  z-index: 1;
  width: 118px;
  height: 118px;
  margin-top: -64px;
  border-radius: 50%;
  background: #0d1120;
  border: 3px solid #0d1120;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pod-1 .pod-avatar { width: 128px; height: 128px; }

.silhouette { width: 62%; height: 62%; fill: #4c5468; margin-top: 18%; }
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.level {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: #4d2a9c;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pod.vacant .pod-card { filter: saturate(.5) brightness(.8); }

.podium-footer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.2rem;
  padding: 1.1rem 2rem;
  border-radius: var(--r) var(--r) 0 0;
  background: rgba(16, 14, 34, .85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-bottom: none;
  white-space: nowrap;
}
.pf-title { font-size: 1.3rem; font-weight: 700; text-align: center; }
.pf-timer { color: var(--muted); font-size: 1.05rem; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; }
.pf-pool { display: inline-flex; align-items: center; gap: .4rem; font-size: 1.9rem; font-weight: 700; color: var(--gold); }

/* ---------- Ranking ---------- */
.panel {
  margin-top: 2rem;
  padding: 2rem 1.8rem;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--line);
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.panel-head h3 { font-size: 1.8rem; font-weight: 600; color: #e3e5ee; }
.updated { color: var(--muted); font-size: .85rem; }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1.1rem; }
thead th {
  background: var(--panel-2);
  color: #c9ccda;
  font-weight: 600;
  text-align: left;
  padding: 1rem 1.2rem;
}
thead th:first-child { border-radius: var(--r-sm) 0 0 0; }
thead th:last-child { border-radius: 0 var(--r-sm) 0 0; }
tbody td { padding: .95rem 1.2rem; background: var(--row); color: #d6d8e3; }
tbody tr:nth-child(even) td { background: var(--row-alt); }
tbody tr:hover td { background: #172040; }
tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--r-sm); }
tbody tr:last-child td:last-child { border-radius: 0 0 var(--r-sm) 0; }
th.right, td.right { text-align: right; }
td.rank { width: 110px; }

.user { display: flex; align-items: center; gap: .7rem; }
.user .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0b0e1a;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.prize-cell { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: #fff; }

.empty { text-align: center; padding: 2.2rem 1rem .5rem; color: var(--muted); }
.empty-title { color: #fff; font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.empty p + p { margin-bottom: 1.4rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.2rem 1.8rem 1.8rem;
}
.step h3 { position: relative; font-size: 1.8rem; font-weight: 700; }
.step p { position: relative; color: #c2bfd8; margin-top: .3rem; }
.step-art {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 1.8rem 0 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 47, 247, .45), rgba(123, 47, 247, .05) 65%, transparent 70%);
}
.step-art svg { width: 84px; height: 84px; fill: #a77bff; filter: drop-shadow(0 0 18px rgba(167, 123, 255, .7)); }
.step .btn { position: relative; margin-top: auto; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  margin-top: 5rem;
  background: #111522;
  border-top: 1px solid var(--line);
}
.footer::before {
  /* thin purple glow along the top edge */
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(600px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr 200px 200px;
  gap: 3rem;
}
.footer-logo { height: 52px; width: auto; display: block; }
.footer-tagline { color: #c9ccda; margin-top: 1.4rem; max-width: 32rem; }
.footer-tagline b { color: #fff; }
.footer-note { color: var(--muted); font-size: .9rem; margin-top: .8rem; max-width: 32rem; }

.footer-sponsor {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: .8rem;
}
.footer-sponsor img { height: 22px; display: block; opacity: .9; transition: opacity .2s; }
.footer-sponsor a:hover img { opacity: 1; }

.footer-actions { display: flex; align-items: center; gap: .6rem; margin-top: 1.8rem; }
.social {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b0e19;
  border: 1px solid var(--line);
  color: #c9ccda;
  transition: color .2s, border-color .2s, background .2s;
}
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social:hover { color: #fff; border-color: rgba(123, 47, 247, .6); background: rgba(123, 47, 247, .15); }
.footer-code {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  height: 52px;
  margin-left: .6rem;
  padding: 0 1.2rem;
  border-radius: 12px;
  background: #0b0e19;
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s;
}
.footer-code:hover { border-color: rgba(123, 47, 247, .6); }
.footer-code svg { width: 16px; height: 16px; fill: var(--muted); }

.footer-col { display: flex; flex-direction: column; gap: 1.1rem; }
.footer-col h4 { font-size: 1.6rem; font-weight: 700; margin-bottom: .6rem; }
.footer-col a { color: #b4b8c9; font-weight: 600; width: fit-content; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .85rem;
}
.age { display: inline-flex; align-items: center; gap: .5rem; }
.age-badge {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 .45rem;
  border-radius: 6px;
  border: 1.5px solid #e5484d;
  color: #ff6b70;
  font-size: .75rem;
  font-weight: 700;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(123, 47, 247, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-center { display: none; }
  .nav-pill { display: none; }
  .nav-inner { height: 66px; }
  .nav-logo { height: 42px; }
  .nav-right .btn-sm { height: 42px; padding: 0 1.1rem; }
  .podium { gap: 1.2rem; }
  .pod { width: 180px; }
}

@media (max-width: 760px) {
  main { padding: 1.2rem 1rem 0; }
  .nav-inner { padding: 0 1rem; }
  .hero { grid-template-columns: 1fr; padding: 2rem 1.4rem; text-align: center; }
  .hero-logo { order: -1; }
  .hero-logo img { width: 180px; }
  .hero-actions { justify-content: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .tiles { grid-template-columns: 1fr; }

  .podium-panel { height: auto; padding-bottom: 7rem; }
  .podium { flex-direction: column; align-items: center; gap: 1.6rem; padding-top: 1.6rem; }
  .pod { width: min(280px, 90%); }
  .pod-1 { order: -1; }
  .pod-card { border-radius: var(--r-lg); min-height: 0 !important; }
  .podium-footer { gap: 1.2rem; padding: 1rem 1.2rem; }
  .pf-pool { font-size: 1.5rem; }

  .panel { padding: 1.4rem 1rem; }
  table { font-size: .95rem; }
  thead th, tbody td { padding: .8rem .7rem; }
  td.rank { width: 50px; }
  .user .avatar { width: 36px; height: 36px; }
  .steps { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; padding-top: 3rem; }
  .footer-about { grid-column: 1 / -1; }
  .footer-logo { height: 42px; }
  .footer-col h4 { font-size: 1.3rem; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
}
