:root {
  --bg: #0f1117;
  --bg-card: #181b24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f6;
  --text-muted: #9aa3b8;
  --accent: #6b8cff;
  --accent-hover: #8aa4ff;
  --success: #3ddc97;
  --radius: 12px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(107, 140, 255, 0.12), transparent),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.page {
  max-width: 1020px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.header {
  margin-bottom: 2rem;
}

.site-brand {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
}

.site-brand:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.header__sub {
  margin: 0;
  color: var(--text-muted);
}

.header__updated {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.doll-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.doll-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 0.15s ease;
}

.doll-card__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1fr;
  gap: 4px;
  width: 100%;
}

.doll-card__gallery--empty {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  padding: 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.doll-card__thumb {
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  aspect-ratio: 2 / 3;
}

.doll-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.doll-card__img--missing {
  opacity: 0;
}

.doll-card__body {
  width: 100%;
  min-width: 0;
}

.doll-card:hover {
  border-color: rgba(107, 140, 255, 0.35);
}

.doll-card__title a {
  color: inherit;
  text-decoration: none;
}

.doll-card__title a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.doll-card__meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.4rem;
}

.doll-card__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  min-width: 1.75rem;
}

.doll-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--success);
}

.doll-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.doll-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.doll-card__price {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.doll-card__buy {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: rgba(107, 140, 255, 0.15);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.doll-card__buy:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer p {
  margin: 0.25rem 0;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}

.footer__nav a {
  font-weight: 500;
}

.footer__fine {
  font-size: 0.8rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  text-decoration: none;
}

/* Age gate */
html.compliance-locked {
  overflow: hidden;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 10, 16, 0.92);
  backdrop-filter: blur(6px);
}

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

.age-gate__panel {
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  overflow-y: auto;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.age-gate__badge {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #e63946, #c9184a);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.35);
}

.age-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.age-gate__lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.age-gate__guidelines {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.age-gate__guidelines-title {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}

.age-gate__guidelines-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.age-gate__guidelines-list li + li {
  margin-top: 0.45rem;
}

.age-gate__guidelines-more {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.age-gate__confirm {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
}

.age-gate__confirm input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.age-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 1rem 1.25rem;
  background: rgba(15, 17, 23, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner__text {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Notices */
.notice {
  margin-bottom: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.notice--affiliate {
  background: rgba(107, 140, 255, 0.1);
  border: 1px solid rgba(107, 140, 255, 0.25);
  color: var(--text-muted);
}

.notice--affiliate strong {
  color: var(--text);
}

.notice--characters {
  margin: 0 0 1.25rem;
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.28);
  color: var(--text-muted);
  text-align: center;
}

.notice--characters strong {
  color: #ff8a9a;
}

/* Legal pages */
.page--legal {
  max-width: 720px;
}

.header--legal .back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.legal-content h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-content code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--text);
}

@media (max-width: 720px) {
  .doll-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
