:root {
  --bg: #17191a;
  --surface: #212527;
  --surface-2: #2a2f31;
  --ink: #f2f4f3;
  --muted: #97a19c;
  --line: #32383a;
  --accent: #3dbb44;
  --accent-deep: #2f9436;
  --accent-ink: #0c130d;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
}

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 25, 26, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px; max-width: 1180px; margin: 0 auto;
}
.nav img.logo { height: 40px; width: auto; }
.nav-links {
  display: flex; gap: 22px; margin-left: auto;
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
}
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { border-color: var(--accent); }
.nav-links a.ext::after { content: "↗"; font-size: 12px; margin-left: 4px; opacity: .7; }

/* ── Hero ────────────────────────────── */
.hero { padding: 40px 0 8px; }
.eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.hero-card {
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.6fr 1fr; min-height: 340px;
}
.hero-card .art { position: relative; }
.hero-card .art img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-card .panel {
  background: linear-gradient(180deg, #243026, #1d221e);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 12px;
  justify-content: center;
}
.badge {
  align-self: flex-start;
  font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .12em;
  background: var(--accent); color: var(--accent-ink);
  padding: 4px 10px; border-radius: 999px;
}
.hero-card h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.15; text-wrap: pretty; }
.hero-card p { color: var(--muted); font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: #4bcf53; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* ── Section headers ─────────────────── */
.section-head {
  display: flex; align-items: baseline; gap: 16px;
  margin: 44px 0 18px;
}
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; }
.section-head a { margin-left: auto; color: var(--accent); font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.section-head a:hover { text-decoration: underline; }

/* ── Section cards ───────────────────── */
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.sec-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end;
  transition: transform .18s, border-color .18s;
}
.sec-card:hover { transform: translateY(-3px); border-color: var(--accent-deep); }
.sec-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-card .label {
  position: relative; width: 100%;
  padding: 26px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 11, .92) 65%);
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.sec-card .label small { display: block; color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 12.5px; margin-top: 2px; }

/* ── Video cards ─────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vcard { border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .18s, border-color .18s; }
.vcard:hover { transform: translateY(-3px); border-color: var(--accent-deep); }
.vcard .thumb { position: relative; aspect-ratio: 16 / 9; }
.vcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(10, 12, 11, .18); opacity: 0; transition: opacity .18s;
}
.vcard:hover .play { opacity: 1; }
.vcard .play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 20px; padding-left: 4px;
}
.vcard .meta { padding: 12px 14px 14px; }
.vcard .meta .tag { font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.vcard .meta h3 { font-family: var(--font-display); font-weight: 500; font-size: 16.5px; margin-top: 4px; line-height: 1.3; }

/* ── Miyuki strip ────────────────────── */
.miyuki-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.mcard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 3 / 4; }
.mcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mcard:hover img { transform: scale(1.03); }
.mcard .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 12, 11, .9) 70%);
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
}

/* ── Footer ──────────────────────────── */
footer { border-top: 1px solid var(--line); margin-top: 70px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 30px 24px 40px;
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  color: #b7c0bb; font-size: 14.5px;
}
.footer-inner img { height: 26px; }
.footer-inner .right { margin-left: auto; }
.footer-inner a { color: var(--ink); }
.footer-inner a:hover { color: var(--accent); }

/* ── 18+ gate ────────────────────────── */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(1200px 800px at 50% 30%, #1e2a20, #121414 70%);
  display: grid; place-items: center;
}
.gate .box {
  max-width: 420px; padding: 40px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow);
  display: grid; gap: 16px; justify-items: center;
}
.gate img { height: 52px; }
.gate h2 { font-family: var(--font-display); font-weight: 600; font-size: 22px; }
.gate p { color: var(--muted); font-size: 14.5px; }
.gate .row { display: flex; gap: 12px; }
.gate[hidden] { display: none; }

/* ── Responsive ──────────────────────── */
@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; gap: 12px; }
  .nav-links { width: 100%; margin-left: 0; gap: 16px; overflow-x: auto; padding-bottom: 4px; }
  .hero-card { grid-template-columns: 1fr; min-height: 0; }
  .hero-card .art { aspect-ratio: 16 / 9; position: relative; }
  .hero-card .art img { position: absolute; }
}
