:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --surface: #fffdf9;
  --surface-2: #f7f7f4;
  --ink: #1d1d1f;
  --muted: #65635e;
  --line: #ded9cf;
  --red: #b3262f;
  --red-dark: #7f171e;
  --teal: #0f817c;
  --gold: #a0782b;
  --charcoal: #191919;
  --shadow: 0 12px 28px rgba(42, 37, 31, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0;
}

body.age-locked {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 10px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(222, 217, 207, 0.82);
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.nav a {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible {
  background: #eee8df;
  color: var(--ink);
  outline: none;
}

.hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--charcoal);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.38) 46%, rgba(10, 10, 10, 0.08)),
    linear-gradient(0deg, rgba(10, 10, 10, 0.52), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 420px;
  margin: 0 auto;
  color: #fff;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb7b7;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
}

.hero p:last-child {
  max-width: 590px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.8;
}

.notice-strip,
.dashboard,
.split,
.policy,
.footer {
  width: min(1180px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.notice-strip strong {
  flex: 0 0 auto;
  color: var(--red-dark);
}

.dashboard,
.split,
.policy {
  padding-top: 34px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head.compact {
  align-items: start;
}

.section-head h2,
.roadmap h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.25;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) 180px;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.segmented button {
  min-width: 68px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

.segmented button.active {
  background: var(--charcoal);
  color: #fff;
}

.search-label,
.sort-label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-label input,
.sort-label select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

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

.product-card,
.article-card,
.policy article,
.roadmap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, #252525, #3b3530 55%, #703036),
    var(--charcoal);
  color: rgba(255, 255, 255, 0.78);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 22px;
  text-align: center;
}

.placeholder span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.placeholder strong {
  font-size: 13px;
}

.placeholder small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.badges,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  background: #eee8df;
  color: #55483d;
}

.badge.pr {
  background: #f8d9da;
  color: var(--red-dark);
}

.badge.vrav {
  background: #d9ecea;
  color: #0b625d;
}

.badge.anime {
  background: #efe4c8;
  color: #745315;
}

.chip {
  background: var(--surface-2);
  color: var(--muted);
}

.product-card h3,
.article-card h3,
.policy h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-card p,
.article-card p,
.policy p,
.roadmap li,
.footer p,
.footer span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.product-card p,
.article-card p,
.policy p,
.footer p {
  margin: 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.metric strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.button.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.button[aria-disabled="true"] {
  color: #9a958e;
  cursor: not-allowed;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.article-list {
  display: grid;
  gap: 10px;
}

.article-card {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.roadmap {
  padding: 16px;
}

.roadmap ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.policy article {
  padding: 14px;
}

.footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
}

.footer div:last-child {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.footer a {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(25, 25, 25, 0.86);
}

.age-panel {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.age-panel h1 {
  margin: 0;
  font-size: 34px;
}

.age-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
}

.age-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 920px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    width: 100%;
  }

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

  .grid,
  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero,
  .hero-copy {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p:last-child {
    font-size: 14px;
  }

  .notice-strip,
  .section-head,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .grid,
  .policy-grid,
  .meta-grid,
  .actions,
  .age-actions {
    grid-template-columns: 1fr;
  }

  .segmented {
    overflow-x: auto;
  }

  .footer div:last-child {
    justify-items: start;
  }
}
