/* ===== CSS Variables ===== */
:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --pink-800: #9d174d;
  --pink-900: #831843;

  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --bg-primary: #fffbfd;
  --bg-section-alt: var(--pink-50);
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-500);
  --accent: var(--pink-500);
  --accent-hover: var(--pink-600);
  --card-shadow: 0 2px 12px rgba(236, 72, 153, 0.08);
  --card-shadow-hover: 0 8px 30px rgba(236, 72, 153, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Zen Maru Gothic', sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 253, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pink-100);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pink-700);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.5rem;
}

.header-nav {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 4px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--pink-100) 0%, var(--pink-200) 50%, #fce4ec 100%);
  padding: 80px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(244, 114, 182, 0.1);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--pink-800);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--pink-600);
  font-weight: 500;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--pink-700);
  opacity: 0.8;
}

/* ===== Sections ===== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--bg-section-alt);
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pink-800);
  margin-bottom: 40px;
  position: relative;
}

.section-title span {
  background: var(--bg-primary);
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.section-alt .section-title span {
  background: var(--bg-section-alt);
}

.section-title::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--pink-200);
}

/* ===== Work Cards ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 480px;
  margin: 0 auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.work-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--pink-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--pink-300);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 560 / 420;
  background: var(--gray-100);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-card:hover .card-image {
  transform: scale(1.03);
}

/* Placeholder for missing images */
.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 560 / 420;
  background: linear-gradient(145deg, var(--pink-100), var(--pink-200), var(--pink-100));
}

.card-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gray-100);
  z-index: 0;
}

.card-image {
  position: relative;
  z-index: 1;
}

/* Hide broken images so placeholder shows through */
.card-image-wrap img[alt]::after {
  display: block;
  position: absolute;
  inset: 0;
  background: inherit;
  content: '';
}

.card-image[src=""], .card-image:not([src]) {
  display: none;
}

/* Badges */
.badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-new {
  left: 10px;
  background: var(--pink-500);
  color: #fff;
}

.badge-sale {
  right: 10px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  font-size: 0.8rem;
  animation: pulse-sale 2s ease-in-out infinite;
}

@keyframes pulse-sale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Card overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(157, 23, 77, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 3;
}

.work-card:hover .card-overlay {
  opacity: 1;
}

.btn-read {
  background: #fff;
  color: var(--pink-700);
  border: none;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-read:hover {
  background: var(--pink-50);
  transform: scale(1.05);
}

/* Card info */
.card-info {
  padding: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--gray-800);
}

.card-circle {
  font-size: 0.72rem;
  color: var(--pink-600);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.tag {
  font-size: 0.68rem;
  color: var(--pink-500);
  background: var(--pink-50);
  border: 1px solid var(--pink-200);
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.6;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

a.tag:hover {
  background: var(--pink-500);
  color: #fff;
}

.circle-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.circle-link:hover {
  color: var(--pink-800);
  text-decoration: underline;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-fanza {
  background: linear-gradient(135deg, #ff8a65, #ff6e40);
  color: #fff;
}

.btn-fanza:hover {
  background: linear-gradient(135deg, #ff6e40, #e64a19);
  color: #fff;
  transform: translateY(-1px);
}

.btn-dlsite {
  background: linear-gradient(135deg, #4a90d9, #2b6cb0);
  color: #fff;
}

.btn-dlsite:hover {
  background: linear-gradient(135deg, #2b6cb0, #1e4e8c);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--pink-300);
}

.btn-outline:hover {
  background: var(--pink-50);
  color: var(--accent-hover);
}

.btn-large {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}

/* ===== About (legacy, kept as fallback) ===== */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--pink-100);
  text-align: center;
}

/* ===== About page (about.html) ===== */
.container-narrow {
  max-width: 720px;
}

.circle-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--pink-100);
  margin-bottom: 32px;
}

.circle-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--pink-200);
  margin-bottom: 20px;
}

.circle-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--pink-50);
  border: 4px solid #fff;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.18);
  position: relative;
}

.circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.circle-name {
  font-size: 1.5rem;
  color: var(--pink-700);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.circle-desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--pink-100);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-primary);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.link-row:hover {
  background: var(--pink-50);
  border-color: var(--pink-300);
  transform: translateX(2px);
  color: var(--text-primary);
}

.link-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.link-icon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: block;
}

.link-icon-x {
  background: #0f1419;
  font-size: 1.25rem;
}

.link-icon-pixiv {
  background: #0096fa;
}

.link-icon-patreon {
  background: #ff424d;
  font-size: 1.3rem;
}

.link-icon-fanza {
  background: linear-gradient(135deg, #ff8a65, #ff6e40);
}

.link-icon-dlsite {
  background: linear-gradient(135deg, #4a90d9, #2b6cb0);
}

.link-icon-youtube {
  background: #ff0033;
  font-size: 0.95rem;
}

.link-icon-tiktok {
  background: linear-gradient(135deg, #25f4ee, #000000 50%, #fe2c55);
  font-size: 1.2rem;
}

.link-icon-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af);
  font-size: 1rem;
}

.link-icon-xtoon {
  background: linear-gradient(135deg, #ff5e8a, #ff3d7f);
  font-style: italic;
}

.link-body {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.link-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.link-tag {
  display: inline-block;
  font-size: 0.65rem;
  padding: 1px 7px;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.tag-r18 {
  background: #ffebee;
  color: #d32f2f;
  border: 1px solid #ffcdd2;
}

.tag-sfw {
  background: #e8f5e9;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}

.tag-support {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.link-pr {
  display: inline-block;
  font-size: 0.58rem;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--gray-100);
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-left: 2px;
}

.link-arrow {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--pink-300);
  line-height: 1;
  transition: transform var(--transition), color var(--transition);
}

.link-row:hover .link-arrow {
  color: var(--pink-500);
  transform: translateX(3px);
}

/* About page mobile */
@media (max-width: 600px) {
  .circle-block {
    padding: 20px 16px;
  }

  .circle-avatar {
    width: 96px;
    height: 96px;
  }

  .circle-name {
    font-size: 1.25rem;
  }

  .circle-desc {
    font-size: 0.88rem;
  }

  .link-row {
    gap: 12px;
    padding: 12px;
  }

  .link-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .link-title {
    font-size: 0.88rem;
  }

  .link-sub {
    font-size: 0.75rem;
  }
}

.about-card h3 {
  font-size: 1.3rem;
  color: var(--pink-700);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--pink-900);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
}

/* ===== Viewer Overlay ===== */
.viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  display: none;
  flex-direction: column;
}

.viewer-overlay.active {
  display: flex;
}

.viewer-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Viewer Header */
.viewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.viewer-header.hidden {
  transform: translateY(-100%);
}

.viewer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.viewer-close:hover {
  opacity: 1;
}

.viewer-title {
  color: #fff;
  font-size: 0.95rem;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-controls {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px;
}

.viewer-mode-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
}

.viewer-mode-btn.active {
  background: var(--accent);
  color: #fff;
}

.viewer-mode-btn:hover:not(.active) {
  color: #fff;
}

/* Vertical scroll viewer */
.viewer-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.viewer-pages {
  max-width: 800px;
  margin: 0 auto;
}

.viewer-pages img {
  width: 100%;
  display: block;
}

/* Viewer end CTA */
.viewer-end,
.viewer-end-horizontal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  min-height: 50vh;
  gap: 16px;
}

/* Viewer sale banner */
.viewer-sale-banner {
  background: linear-gradient(105deg, #b8860b 0%, #ffd700 25%, #fff4a3 45%, #ffd700 55%, #daa520 75%, #b8860b 100%);
  background-size: 200% 100%;
  color: #5a2d00;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255, 244, 163, 0.5);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(218, 165, 32, 0.6);
  animation: gold-shine 3s ease-in-out infinite;
}

@keyframes gold-shine {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.viewer-end-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.viewer-end-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* Horizontal page viewer */
.viewer-horizontal {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.viewer-page-display {
  max-width: 800px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.viewer-current-page {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.viewer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 80px;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 2;
}

.viewer-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.viewer-prev {
  left: 12px;
}

.viewer-next {
  right: 12px;
}

.viewer-page-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 16px;
  border-radius: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 16px 40px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 28px;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .card-info {
    padding: 12px;
  }

  .card-circle {
    font-size: 0.65rem;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .tag {
    font-size: 0.6rem;
    padding: 0 5px;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions .btn {
    width: 100%;
    font-size: 0.8rem;
    padding: 7px 10px;
  }

  .featured-grid {
    max-width: 100%;
  }

  /* Viewer mobile */
  .viewer-header {
    padding: 8px 12px;
  }

  .viewer-mode-btn {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .viewer-nav-btn {
    width: 40px;
    height: 60px;
    font-size: 1.5rem;
  }

  .viewer-prev {
    left: 4px;
  }

  .viewer-next {
    right: 4px;
  }

  .viewer-pages {
    max-width: 100%;
  }

  .about-card {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    height: 50px;
  }

  .site-logo {
    font-size: 1rem;
  }

  .header-nav {
    gap: 14px;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .card-meta {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }
}

/* ===== Placeholder images (dev only) ===== */

/* Touch device: show overlay on tap */
@media (hover: none) {
  .card-overlay {
    opacity: 0;
  }

  .work-card:active .card-overlay {
    opacity: 1;
  }
}

/* ===== Tag page ===== */
.tag-page-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
  margin-top: -20px;
}

.tag-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
  font-size: 0.95rem;
}

.tag-back {
  text-align: center;
  margin-top: 40px;
}

/* ===== PR notice (top of content) ===== */
.pr-notice {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gray-500);
  padding: 10px 16px 0;
  letter-spacing: 0.02em;
}

/* ===== Age Gate Modal ===== */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: age-fade-in 0.3s ease forwards;
}

.age-gate-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(131, 24, 67, 0.85), rgba(190, 24, 93, 0.85));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.age-gate-panel {
  position: relative;
  max-width: 440px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  padding: 44px 32px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(131, 24, 67, 0.35);
  animation: age-panel-in 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.2) forwards;
}

.age-gate-deco {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.45);
  border: 4px solid #fff;
}

.age-gate-mark small {
  font-size: 0.9rem;
  margin-left: 1px;
}

.age-gate-title {
  font-size: 1.2rem;
  color: var(--pink-700);
  margin-top: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.age-gate-lead {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 6px;
  line-height: 1.7;
}

.age-gate-question {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin: 14px 0;
  line-height: 1.6;
}

.age-gate-question strong {
  color: var(--pink-600);
  font-size: 1.15rem;
}

.age-gate-notice {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-bottom: 22px;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.age-gate-btn {
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.04em;
}

.age-gate-yes {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
}

.age-gate-yes:hover {
  background: linear-gradient(135deg, var(--pink-600), var(--pink-700));
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.5);
}

.age-gate-no {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.age-gate-no:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.age-gate-footnote {
  font-size: 0.7rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.age-gate-closing {
  animation: age-fade-out 0.3s ease forwards;
}

@keyframes age-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes age-fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes age-panel-in {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .age-gate-panel {
    padding: 40px 20px 22px;
    border-radius: 16px;
  }
  .age-gate-title {
    font-size: 1.05rem;
  }
  .age-gate-question {
    font-size: 1rem;
  }
}
