@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Sora:wght@500;600;700&display=swap");

:root {
  --bg: #0b1220;
  --surface: #101827;
  --surface-strong: #0f1a2a;
  --ink: #e5edf7;
  --ink-muted: #9ab0c8;
  --line: #263445;
  --accent: #60a5fa;
  --accent-soft: #1b2f44;
  --warm: #f97316;
  --warm-soft: #3f2818;
  --ok: #22c55e;
  --warn: #fb7185;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background: var(--bg);
  padding: 24px 16px 40px;
}

.bg-grid {
  display: none;
}

.hero,
.layout,
.footnote {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  background: var(--surface);
  color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
  overflow: visible;
}

.hero::after {
  content: none;
}

.hero-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1524;
  text-decoration: none;
}

.hero-social-link:hover,
.hero-social-link:focus-visible {
  border-color: var(--accent);
}

.hero-social-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.hero h1 {
  margin: 10px 0 8px;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.profile-avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 10px 0 6px;
}

.hero p {
  margin: 0 0 14px;
  max-width: 72ch;
  color: #cbd5e1;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.chip {
  background: rgba(165, 243, 252, 0.15);
  border: 1px solid rgba(165, 243, 252, 0.4);
  color: #e0f2fe;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.83rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.93rem;
}

.meta-row span {
  background: #0b1524;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}

.layout {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.panel-head {
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  font-size: 1.15rem;
}

.panel-head p {
  margin: 4px 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.team-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface-strong);
}

.team-name {
  margin: 0;
  font-size: 1.04rem;
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

.team-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.team-link:hover,
.team-link:focus-visible {
  border-bottom-color: currentColor;
}

.hero-team-link {
  color: #a5f3fc;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.hero-team-link:hover,
.hero-team-link:focus-visible {
  border-bottom-color: currentColor;
}

.team-role {
  margin: 3px 0 8px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.team-bio {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
}

.row-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filters label {
  display: grid;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 0.84rem;
}

.filters select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  background: #0b1524;
  color: var(--ink);
}

.table-wrap {
  overflow: visible;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

th {
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: #b5cae1;
  background: #0f1a2a;
  position: sticky;
  top: 0;
}

.sort-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-button:hover,
.sort-button:focus-visible {
  color: var(--accent);
}

tbody tr:hover {
  background: #122135;
}

.table-team-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.table-team-link:hover,
.table-team-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #fdba74;
  font-weight: 600;
  position: relative;
}

.rank-badge.top-five {
  background: var(--accent-soft);
  color: #86efac;
}

.first-place-row td {
  font-weight: 700;
}

.rank-note-star {
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  margin-left: 2px;
}

.rank-note-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  top: auto;
  transform: translateX(-50%);
  background: #0f172a;
  color: #f8fafc;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.rank-note-tooltip::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  bottom: auto;
  border: 6px solid transparent;
  border-top-color: #0f172a;
}

.rank-badge.has-note:hover .rank-note-tooltip,
.rank-badge.has-note:focus-within .rank-note-tooltip {
  opacity: 1;
}

.reveal {
  opacity: 1;
  transform: none;
  animation: none;
}

.click-fall-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.click-fall-item {
  position: absolute;
  will-change: transform, opacity;
  animation-name: click-fall;
  animation-timing-function: cubic-bezier(0.2, 0.72, 0.34, 1);
  animation-fill-mode: forwards;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.4));
}

@keyframes click-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--drift, 0px), var(--fall-distance, 500px), 0) rotate(var(--spin, 90deg));
    opacity: 0;
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px 10px 20px;
  }

  .hero,
  .panel {
    border-radius: 14px;
  }

  .hero {
    padding: 16px;
  }

}
