:root {
  color-scheme: dark;
  font-family: Inter, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #efffff;
  background: #061014;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 84% 2%, rgba(110, 231, 255, 0.17), transparent 34%),
    radial-gradient(circle at 10% 82%, rgba(255, 209, 102, 0.1), transparent 28%),
    linear-gradient(145deg, #071820, #03090e 70%);
}

body::before {
  position: fixed;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
a {
  font: inherit;
}

.ranking-shell {
  position: relative;
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 38px;
}

.ranking-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  padding-bottom: 34px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #6ee7ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.2em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(35px, 7vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.ranking-lead {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(239, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.7;
}

.ranking-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.ranking-actions a {
  border: 1px solid rgba(110, 231, 255, 0.32);
  padding: 10px 14px;
  color: #efffff;
  background: rgba(3, 17, 24, 0.78);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
}

.ranking-actions a.primary {
  color: #061014;
  border-color: #6ee7ff;
  background: #6ee7ff;
}

.ranking-actions a:hover,
.ranking-actions a:focus-visible {
  border-color: #ffdf85;
  outline: none;
}

.ranking-board {
  border: 1px solid rgba(110, 231, 255, 0.3);
  padding: 22px;
  background: rgba(3, 13, 19, 0.84);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.ranking-board-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
}

.ranking-board h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 4vw, 38px);
}

.period-tabs {
  display: flex;
  gap: 6px;
}

.period-tabs button {
  border: 1px solid rgba(239, 255, 255, 0.17);
  padding: 8px 12px;
  color: rgba(239, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.period-tabs button.is-active {
  color: #061014;
  border-color: #ffdf85;
  background: #ffdf85;
}

.ranking-columns,
.ranking-list li {
  display: grid;
  grid-template-columns: 70px minmax(120px, 1fr) 130px 90px 90px;
  align-items: center;
  gap: 12px;
}

.ranking-columns {
  border-bottom: 1px solid rgba(110, 231, 255, 0.22);
  padding: 0 12px 8px;
  color: rgba(110, 231, 255, 0.54);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.ranking-status {
  margin: 22px 0;
  color: rgba(239, 255, 255, 0.58);
  font-size: 12px;
}

.ranking-status:empty {
  display: none;
}

.ranking-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list li {
  min-height: 54px;
  border-left: 2px solid rgba(110, 231, 255, 0.2);
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.07), rgba(255, 255, 255, 0.015));
}

.ranking-list li:nth-child(-n + 3) {
  border-left-color: #ffdf85;
  background: linear-gradient(90deg, rgba(255, 223, 133, 0.11), rgba(255, 255, 255, 0.018));
}

.rank-number {
  color: #ffdf85;
  font-size: 15px;
  font-weight: 950;
}

.hunter-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score {
  color: #6ee7ff;
  font-size: 15px;
  font-weight: 950;
}

.stage,
.cards {
  color: rgba(239, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 800;
}

footer {
  display: grid;
  gap: 3px;
  padding-top: 20px;
  color: rgba(239, 255, 255, 0.44);
  font-size: 10px;
  line-height: 1.6;
}

footer p {
  margin: 0;
}

footer small {
  margin-top: 7px;
  color: rgba(110, 231, 255, 0.5);
}

@media (max-width: 720px) {
  .ranking-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 28px;
  }

  .ranking-header {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .ranking-actions {
    justify-content: flex-start;
  }

  .ranking-board {
    padding: 14px;
  }

  .ranking-board-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .period-tabs {
    width: 100%;
  }

  .period-tabs button {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
  }

  .ranking-columns {
    display: none;
  }

  .ranking-list li {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 4px 10px;
  }

  .rank-number {
    grid-row: 1 / 3;
  }

  .score {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .stage {
    grid-column: 2;
    grid-row: 2;
  }

  .cards {
    grid-column: 3;
    grid-row: 2;
    text-align: right;
  }
}
