:root {
  --bg: #07111f;
  --bg-2: #0c1a2e;
  --ink: #eef4ff;
  --muted: #9eb0c9;
  --line: rgba(0, 212, 200, 0.18);
  --accent: #00d4c8;
  --accent-2: #2f9cff;
  --gold: #f0c14b;
  --card: #10233a;
  --card-2: #152b46;
  --danger: #ff8b7a;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --max: 1120px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1000px 480px at 8% -8%, rgba(0, 212, 200, 0.14), transparent 52%),
    radial-gradient(900px 420px at 100% 0%, rgba(47, 156, 255, 0.16), transparent 48%),
    linear-gradient(180deg, #07111f 0%, #0a1830 45%, #07111f 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #000; padding: 8px 12px; z-index: 20; }

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 8;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f233a;
  border: 1px solid var(--line);
}
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-name { font-family: var(--serif); font-size: 1.15rem; line-height: 1.15; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button {
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 999px;
}
.nav a.is-active, .nav a:hover, .nav button:hover {
  background: rgba(0, 212, 200, 0.14);
  color: var(--accent);
}
.dropdown { position: relative; }
.dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 8px);
  width: max(520px, min(760px, 94vw));
  max-height: 70vh;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 12px;
  gap: 4px 10px;
}
.dropdown.is-open .dropdown-panel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dropdown-panel a {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.3;
  word-break: break-word;
  min-width: 0;
}
.dropdown-panel a:hover { background: rgba(0, 212, 200, 0.1); color: var(--accent); }
.nav-toggle { display: none; }

.notice {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.hero { padding: 44px 0 18px; }
.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 700;
}
h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.15;
  font-weight: 650;
}
h1 { font-size: clamp(32px, 5vw, 54px); margin: 10px 0 16px; }
h2 { font-size: clamp(24px, 3vw, 34px); margin: 42px 0 14px; }
h3 { font-size: 20px; margin: 28px 0 10px; }
.lede { font-size: 18px; color: #d7e4f7; max-width: 72ch; }
.intent-box {
  border-left: 3px solid var(--accent);
  background: rgba(0, 212, 200, 0.07);
  padding: 14px 18px;
  margin: 0 0 28px;
  border-radius: 0 14px 14px 0;
}
.intent-box__label {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
}
.intent-box ul { margin: 0; padding-left: 18px; color: #d7e4f7; }
.intent-box li { margin: 5px 0; }

.rank-list { display: grid; gap: 14px; margin: 28px 0 36px; }
.rank-card {
  display: grid;
  grid-template-columns: 48px 72px minmax(0, 1fr) minmax(160px, 220px);
  gap: 14px 16px;
  align-items: center;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 0 0 1px rgba(47, 156, 255, 0.05), var(--shadow);
}
.rank-card--solo {
  grid-template-columns: 72px minmax(0, 1fr) minmax(160px, 220px);
}
.rank-card .bonus-box { grid-column: 3; }
.rank-card .actions { grid-column: 4; grid-row: 1 / span 2; }
.rank-card--solo .bonus-box { grid-column: 2; }
.rank-card--solo .actions { grid-column: 3; grid-row: 1 / span 2; }
.rank-num {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #041018; display: grid; place-items: center; font-weight: 800;
}
.rank-num--quiet {
  background: rgba(0, 212, 200, 0.12);
  color: var(--accent);
  border: 1px solid var(--line);
}
.rank-card--solo .actions .btn-ghost { display: none; }
.rank-logo {
  width: 64px; height: 64px; border-radius: 14px; object-fit: contain;
  background: #081422; border: 1px solid var(--line); padding: 6px;
}
.rank-card h3 { margin: 0 0 6px; font-size: 22px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.bonus-box { text-align: left; }
.bonus-box strong { display: block; color: var(--accent); font-size: 16px; line-height: 1.3; }
.actions { display: flex; flex-direction: column; gap: 8px; min-width: 140px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  border-radius: 999px; padding: 10px 16px; font-weight: 700; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(180deg, #2fe0d5, #12b8c8);
  color: #041018;
}
.btn-primary:hover { color: #020a12; filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--accent); }

.sticky-offer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 8px 0 36px;
  background: rgba(0, 212, 200, 0.07);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 36px;
}
.slot-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform .18s ease, border-color .18s ease;
}
.slot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 200, 0.45);
}
.slot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #081422;
}
.slot-card .slot-body { padding: 12px 14px 16px; display: grid; gap: 8px; flex: 1; }
.slot-card h3 { margin: 0; font-size: 17px; }
.slot-card p { margin: 0; color: var(--muted); font-size: 13px; }
.slot-card .btn { width: 100%; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 80px; }
.prose p { margin: 0 0 14px; color: #d7e4f7; }
.prose ul, .prose ol { padding-left: 20px; color: #d7e4f7; }
.prose li { margin: 6px 0; }
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 8px 0 24px;
}
.toc a { display: block; padding: 4px 0; color: var(--ink); }
.figure {
  margin: 22px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #081422;
}
.figure img, .figure svg { width: 100%; height: auto; display: block; }
.figure figcaption { padding: 10px 14px; color: var(--muted); font-size: 13px; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  background: #10233a;
  border-radius: 14px;
  overflow: hidden;
}
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--accent); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

.faq { margin: 18px 0 40px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--ink);
  font: inherit; font-weight: 700; padding: 14px 0; cursor: pointer;
}
.faq-item [data-faq-panel] { padding: 0 0 14px; color: var(--muted); }

.legal-note, .rg-box {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
  margin: 28px 0;
}
.rg-box { border-color: rgba(255, 139, 122, 0.35); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer a { color: var(--ink); display: inline-block; margin: 4px 10px 4px 0; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  background: #132338; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: var(--shadow); z-index: 50;
}
.cookie[hidden] { display: none !important; }
.cookie span { flex: 1 1 240px; }
.cookie .btn { flex: 0 0 auto; }

.form { display: grid; gap: 12px; max-width: 520px; }
.form input, .form textarea {
  width: 100%; background: #081422; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit;
}

.breadcrumbs {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: rgba(158, 176, 201, 0.55);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] span { color: var(--ink); }

@media (max-width: 1000px) {
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rank-card, .sticky-offer, .footer-grid, .grid-2 { grid-template-columns: 1fr; }
  .rank-card .bonus-box, .rank-card .actions { grid-column: 1 / -1; grid-row: auto; }
  .bonus-box, .actions { text-align: left; }
  .nav-toggle {
    display: inline-flex; margin-left: auto; background: none; border: 1px solid var(--line);
    color: var(--ink); border-radius: 10px; padding: 8px 10px;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    background: #0c1a2e; padding: 12px; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); z-index: 9;
  }
  .nav.is-open { display: flex; }
  .dropdown-panel {
    position: static;
    left: auto;
    width: 100% !important;
    max-width: none;
    max-height: 50vh;
    padding: 8px;
    gap: 2px 8px;
  }
  .dropdown.is-open .dropdown-panel {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .dropdown-panel a { font-size: 13px; padding: 7px 8px; }
}
@media (max-width: 560px) {
  .slot-grid { grid-template-columns: 1fr; }
}
