:root {
  --bg: #070b16;
  --bg-elev: #10182b;
  --bg-card: #141c31;
  --line: #2a3550;
  --text: #f4f6fb;
  --muted: #9aa6c2;
  --pink: #ff2d87;
  --pink-soft: #ff6bab;
  --white: #ffffff;
  --navy: #0b1020;
  --ok: #3dd68c;
  --warn: #ffb020;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 45, 135, 0.16), transparent 50%),
    radial-gradient(900px 400px at 90% 0%, rgba(80, 110, 255, 0.12), transparent 45%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.age-gate {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(4, 7, 14, 0.92);
  display: grid; place-items: center;
  padding: 24px;
}
.age-gate[hidden] { display: none; }
.age-card {
  width: min(460px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.age-card img { width: 112px; margin: 0 auto 12px; }
.age-card h2 { margin: 0 0 8px; }
.age-card p { color: var(--muted); margin: 0 0 20px; }
.age-actions { display: flex; gap: 10px; }
.age-actions button { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 18px; font-weight: 700; letter-spacing: 0.02em;
}
.btn-primary { background: var(--pink); color: white; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-link {
  background: linear-gradient(90deg, var(--pink), #ff6bab);
  color: white;
  width: calc(100% - 36px);
  max-width: calc(100% - 36px);
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 45, 135, 0.22);
}
.btn-link:hover { filter: brightness(1.06); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 11, 22, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px;
  max-width: 860px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand-banner {
  width: min(420px, 70vw) !important;
  height: auto !important;
  max-height: 48px;
  border-radius: 0 !important;
  object-fit: contain;
}
.brand span b { color: var(--pink); font-weight: 800; }
.nav-links { display: flex; gap: 16px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.nav-links a:hover { color: white; }
.nav-links a[aria-current="page"] { color: #fff; }

.wrap { width: min(860px, calc(100% - 32px)); margin: 0 auto; }
.hero { padding: 36px 0 10px; }
.kicker-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.kicker {
  color: var(--pink-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
}
.updated {
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.hero h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.2; margin: 8px 0 12px; }
.hero p { color: var(--muted); max-width: 720px; margin: 0; }
.hero-sub { margin-top: 8px !important; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin: 24px 0 8px;
}
.stat {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 16px 14px;
}
.stat b { display: block; font-size: 26px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 16px;
}
.chip {
  border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--muted); border-radius: 999px; padding: 8px 12px;
  font-size: 13px; cursor: pointer;
}
.chip.active, .chip:hover { border-color: var(--pink); color: white; }

.grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  padding-bottom: 48px;
}
.list-head { margin: 8px 0 4px; }
.list-head h2 { margin: 6px 0 0; font-size: 22px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 240px 1fr;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #3a4a6e; transform: translateY(-1px); }
.thumb {
  margin: 0;
  background: #0a0f1c;
  min-height: 170px;
  position: relative;
}
.thumb::after {
  content: "▶";
  position: absolute; right: 10px; bottom: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 11px;
  display: grid; place-items: center;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.card-top {
  padding: 16px 18px 0; display: flex; justify-content: space-between; gap: 10px;
}
.badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 999px;
  background: rgba(255,45,135,0.15); color: var(--pink-soft);
}
.badge.limited { background: rgba(255,176,32,0.16); color: var(--warn); }
.badge.face { background: rgba(61,214,140,0.14); color: var(--ok); }
.num { color: var(--muted); font-size: 12px; }
.card h2 {
  font-size: 18px; line-height: 1.45; margin: 10px 18px 8px;
}
.creator { color: var(--pink-soft); font-size: 13px; margin: 0 18px 10px; font-weight: 700; }
.meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 18px 14px;
}
.meta span {
  background: #0d1426; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 8px; font-size: 12px; color: var(--muted);
}
.blurb { margin: 0 18px 16px; color: #c9d2e6; font-size: 14px; }
.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.card-cta { margin: 4px 18px 16px; }

.rank-section, #list { scroll-margin-top: 84px; }
.rank-go:hover { filter: brightness(1.08); }
.card-stats {
  margin: 0 18px 12px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rank-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.rank-head h2 { margin: 0; font-size: 22px; }
.rank-tabs {
  display: flex; padding: 4px; background: var(--bg-elev);
  border: 1px solid var(--line); border-radius: 999px;
}
.rank-tabs button {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; cursor: pointer;
}
.rank-tabs button.active { background: var(--pink); color: #fff; }
.rank-board { display: none; }
.rank-board.active { display: block; }
.rank-row {
  display: grid;
  grid-template-columns: 48px 96px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--bg-card);
  transition: background 0.15s ease;
}
.rank-row:hover { background: #1a243c; }
.rank-row:first-child { border-radius: 16px 16px 0 0; }
.rank-row:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 16px 16px; }
.rank-no {
  font-size: 22px; font-weight: 800; text-align: center;
  font-variant-numeric: tabular-nums;
}
.rank-row:nth-child(1) .rank-no { color: #ffd56a; }
.rank-row:nth-child(2) .rank-no { color: #d8d8d8; }
.rank-row:nth-child(3) .rank-no { color: #e0a36b; }
.rank-thumb { display: block; width: 96px; height: 60px; }
.rank-row img, .rank-thumb img {
  width: 96px; height: 60px; object-fit: cover; border-radius: 8px;
}
.rank-row strong { display: block; font-size: 14px; line-height: 1.4; }
.rank-row small { color: var(--muted); }
.rank-meta {
  color: var(--muted); font-size: 11px; margin-top: 4px;
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
}
.rank-go {
  background: var(--pink); color: #fff; border-radius: 999px;
  padding: 8px 12px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.rank-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; }

.page { padding: 36px 0 64px; }
.page h1 { margin-top: 0; }
.page p, .page li { color: #d5dceb; }
.note {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  background: #060914;
  padding: 28px 0 36px;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  align-items: flex-start;
}
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-brand small, footer p { color: var(--muted); }
.footer-legal { max-width: 520px; }
.footer-legal p { margin: 0 0 8px; font-size: 12px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.footer-links a:hover { color: #fff; }
.copy { font-size: 12px !important; }
.page h2 { margin-top: 28px; }
.page ul { color: #d5dceb; padding-left: 1.2em; }
.page li { margin: 6px 0; }

@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 20px; }
  .card { grid-template-columns: 1fr; }
  .nav { flex-direction: column; align-items: flex-start; padding: 10px 16px; }
  .brand-banner { max-height: 40px; }
  .rank-row { grid-template-columns: 36px 72px 1fr; }
  .rank-thumb, .rank-row img, .rank-thumb img { width: 72px; height: 46px; }
  .rank-go { grid-column: 2 / -1; justify-self: start; }
}
