:root {
  color-scheme: light;
  --text: #111111;
  --heading: #333333;
  --muted: #555555;
  --soft: #f5f5f5;
  --row: #f9f9f9;
  --rule: #dddddd;
  --link: #0077b6;
  --button: #333333;
  --button-hover: #202020;
  --glow: rgba(0, 119, 182, 0.34);
  --notice-bg: #fff8e6;
  --notice-border: #e0b548;
  --success-bg: #e8f7ee;
  --success: #17783c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

.container {
  width: min(100% - 40px, 1020px);
  margin: 0 auto;
}

.narrow {
  width: min(100% - 40px, 780px);
}

.hero {
  padding: 68px 0 60px;
  text-align: center;
}

.hero-inner {
  width: min(100% - 40px, 960px);
}

h1,
h2,
h3 {
  color: var(--heading);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
}

h2 {
  margin: 0 0 20px;
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  font-weight: 750;
  line-height: 1.15;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 750;
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

.subtitle {
  max-width: 980px;
  margin: 20px auto 0;
  color: var(--heading);
  font-size: clamp(1.45rem, 4vw, 2.35rem);
  font-weight: 750;
  line-height: 1.2;
}

.byline {
  margin-top: 24px;
  font-size: 1.2rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--button);
  color: #fff;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.button-link:hover {
  background: var(--button-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.primary-action {
  box-shadow: 0 0 22px var(--glow);
}

.notice {
  width: min(640px, 100%);
  margin: 28px auto 0;
  padding: 12px 16px;
  border: 1px solid var(--notice-border);
  background: var(--notice-bg);
  border-radius: 6px;
  font-size: 0.98rem;
}

.band {
  background: var(--soft);
}

.section,
.band {
  padding: 52px 0;
}

.copy {
  color: #444444;
  text-align: justify;
}

.center-note {
  margin-top: 26px;
  text-align: center;
  font-size: 1.08rem;
}

.leaderboard-container {
  width: min(100% - 40px, 800px);
}

.section-note {
  margin: -8px auto 18px;
  color: var(--muted);
  text-align: center;
  font-size: 0.96rem;
}

.leaderboard-tabs {
  display: flex;
  gap: 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.leaderboard-tab {
  padding: 8px 20px;
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 6px 6px 0 0;
  background: var(--row);
  color: #666666;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.leaderboard-tab:hover,
.leaderboard-tab.active {
  background: #f2f2f2;
  color: #333333;
}

.leaderboard-tab.active {
  border-bottom-color: #f2f2f2;
  font-weight: 700;
}

.leaderboard-panel {
  margin-top: 0;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  box-shadow: 0 0 20px rgba(200, 200, 200, 0.3);
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.96rem;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f2f2f2;
  color: var(--heading);
  font-weight: 750;
}

tr:nth-child(even) {
  background: var(--row);
}

.rank {
  color: var(--link);
  font-weight: 750;
}

.settings-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.settings-info {
  margin-top: 10px;
  padding: 12px;
  border-radius: 5px;
  background: #f2f2f2;
  color: var(--heading);
  font-size: 0.86rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 44px;
  align-items: center;
}

.split h2 {
  text-align: left;
}

.method-figure {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 0 20px rgba(200, 200, 200, 0.26);
}

.method-figure figcaption {
  margin-bottom: 18px;
  color: var(--heading);
  font-weight: 750;
  text-align: center;
}

.method-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.link-line {
  margin-top: 16px;
}

.disabled-link {
  color: var(--muted);
  cursor: not-allowed;
}

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

.release-item {
  padding: 20px;
  border: 1px solid var(--rule);
  background: #fff;
  box-shadow: 0 0 20px rgba(200, 200, 200, 0.2);
}

.release-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  padding: 34px 0 48px;
  background: #f8f8f8;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 760px) {
  .container,
  .narrow,
  .leaderboard-container,
  .hero-inner {
    width: min(100% - 40px, 1020px);
  }

  .hero {
    padding: 44px 0 42px;
  }

  h1 {
    font-size: clamp(2.45rem, 11vw, 3.3rem);
  }

  h2 {
    text-align: left;
  }

  .subtitle {
    font-size: clamp(1.25rem, 6vw, 1.7rem);
  }

  .button-row {
    gap: 8px;
  }

  .button-link {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.92rem;
  }

  .notice {
    font-size: 0.92rem;
  }

  .section,
  .band {
    padding: 38px 0;
  }

  .copy,
  .center-note {
    text-align: left;
  }

  .leaderboard-tabs {
    overflow-x: auto;
  }

  .leaderboard-tab {
    flex: 0 0 auto;
    padding: 8px 14px;
  }

  table {
    min-width: 620px;
  }

  .split,
  .release-grid {
    grid-template-columns: 1fr;
  }

}
