:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #4b5563;
  --line: #e6e8ee;
  --track: #eceef2;
  --red: #dc2626;
  --red-press: #b91c1c;
  --shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.06);
  --radius: 18px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --content: 760px;
  --logo: clamp(52px, 14vw, 72px);
  --rank: clamp(26px, 7vw, 36px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

button,
label,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.app {
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top)) clamp(12px, 4vw, 28px) calc(36px + env(safe-area-inset-bottom));
}

.page-title {
  margin: 4px 0 22px;
  text-align: center;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.switcher {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

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

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  background: var(--track);
  border-radius: 999px;
}

.tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 999px;
  color: #1f2937;
  font-size: clamp(0.82rem, 3.5vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
}

.tab svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.72);
}

.tab:active {
  transform: scale(0.98);
}

#show-new:checked ~ .tabs label[for="show-new"],
#show-other:checked ~ .tabs label[for="show-other"] {
  background: var(--red);
  color: #fff;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.28);
}

#show-new:focus-visible ~ .tabs label[for="show-new"],
#show-other:focus-visible ~ .tabs label[for="show-other"] {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

#panel-other {
  display: none;
}

#show-other:checked ~ .panels #panel-other {
  display: block;
}

#show-other:checked ~ .panels #panel-new {
  display: none;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: rank;
}

.card {
  counter-increment: rank;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(12px, 3vw, 18px);
}

.card__row {
  display: grid;
  grid-template-columns: var(--rank) var(--logo) minmax(0, 1fr);
  grid-template-areas:
    "rank logo text"
    "action action action";
  column-gap: clamp(8px, 2vw, 14px);
  row-gap: 12px;
  align-items: center;
}

.rank {
  grid-area: rank;
  width: var(--rank);
  height: var(--rank);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}

.rank::before {
  content: counter(rank);
}

.logo {
  grid-area: logo;
  width: var(--logo);
  height: var(--logo);
  aspect-ratio: 1;
  border-radius: clamp(12px, 2.5vw, 18px);
  object-fit: cover;
  background: #0a0a0a;
}

.logo--wordmark {
  object-fit: contain;
  object-position: center;
  background: #111;
  padding: 18% 8%;
}

.logo--letter {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: calc(var(--logo) * 0.42);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo--go { background: #7c3aed; }
.logo--bat { background: #0f766e; }
.logo--come { background: #b45309; }

.text {
  grid-area: text;
  min-width: 0;
}

.name {
  margin: 0 0 3px;
  font-size: clamp(1rem, 3.6vw, 1.25rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-line {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  line-height: 1.3;
  font-weight: 500;
  white-space: nowrap;
}

.meta-line svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #6b7280;
}

.meta-line strong {
  color: var(--red);
  font-weight: 800;
}

.dl {
  grid-area: action;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.9rem, 3.4vw, 1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.dl svg {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
}

.dl:hover {
  background: #000;
}

.dl:active {
  transform: scale(0.97);
}

.dl:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.legal {
  margin-top: 28px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.legal h2 {
  margin: 22px 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  margin: 0 0 10px;
}

.legal ul {
  margin: 0 0 10px;
  padding-left: 1.1rem;
}

.legal a {
  color: var(--ink);
  font-weight: 700;
}

.legal a[href^="tel:"] {
  white-space: nowrap;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 17, 0.46);
}

.age-gate[hidden] {
  display: none;
}

.age-gate__panel {
  width: min(100%, 380px);
  padding: 24px 20px 20px;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.age-gate__mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.age-gate h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.age-gate p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-gate__yes,
.age-gate__no {
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.age-gate__yes {
  border: 0;
  background: #111;
  color: #fff;
}

.age-gate__yes:hover {
  background: #000;
}

.age-gate__no {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.age-gate__yes:focus-visible,
.age-gate__no:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

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

@media (min-width: 560px) {
  .card__row {
    grid-template-columns: var(--rank) var(--logo) minmax(0, 1fr) auto;
    grid-template-areas: "rank logo text action";
    row-gap: 0;
  }

  .dl {
    width: auto;
    min-width: 140px;
    padding-inline: clamp(16px, 2vw, 24px);
  }
}

@media (min-width: 768px) {
  .app {
    padding-top: 48px;
  }

  .list {
    gap: 16px;
  }
}

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

  .tab,
  .dl {
    transition: none;
  }
}
