:root {
  --bg: #070406;
  --bg-2: #12080d;
  --surface: rgba(28, 14, 20, 0.72);
  --line: rgba(255, 190, 210, 0.14);
  --rose: #ff3d7a;
  --rose-2: #ff6b9d;
  --gold: #e0b57a;
  --cream: #f7ece6;
  --muted: rgba(247, 236, 230, 0.62);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --header: 64px;
  --dock: 76px;
  --font: "Noto Sans", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", system-ui, sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
}

html:not(.i18n-ready) body { visibility: hidden; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--cream); }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  min-height: 100dvh;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

/* Age gate */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(7,4,6,0.55), rgba(7,4,6,0.88)),
    url("../assets/hero-bg.jpg") center/cover;
}
.gate[hidden] { display: none; }
.gate-card {
  width: min(440px, 100%);
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(10, 5, 8, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}
.gate-kicker {
  color: var(--gold);
  letter-spacing: 0.22em;
  font-size: 11px;
  font-weight: 700;
}
.gate-card h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 40px);
  margin: 12px 0 10px;
}
.gate-card p { color: var(--muted); margin-bottom: 22px; }
.gate-actions { display: flex; gap: 10px; }
.gate-actions .btn { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-rose {
  background: linear-gradient(90deg, #ff2d6a, #ff6b9d);
  color: #1a050c;
  box-shadow: 0 10px 30px rgba(255, 61, 122, 0.28);
}
.btn-gold {
  background: linear-gradient(90deg, #c8944e, #f0d09a);
  color: #1a1208;
}
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
}
.btn-full { width: 100%; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(7,4,6,0.72);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.logo-mark {
  width: 28px;
  height: 28px;
}
.nav-pc {
  display: none;
  gap: 22px;
  margin-left: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav-pc a:hover { color: var(--cream); }
.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang {
  appearance: none;
  min-height: 40px;
  padding: 0 28px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23e0b57a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: var(--cream);
  font-size: 13px;
}
.header .btn { min-height: 40px; padding: 0 14px; font-size: 13px; }
.header-cta-create { display: none; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header));
  display: grid;
  align-items: end;
  padding: 28px 0 92px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-mosaic {
  position: absolute;
  inset: -2px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
}
.hero-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.12) contrast(1.08);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,4,6,0.25) 0%, rgba(7,4,6,0.35) 38%, rgba(7,4,6,0.88) 100%),
    radial-gradient(90% 80% at 50% 20%, rgba(255,61,122,0.12), transparent 55%);
}
.hero-content { position: relative; z-index: 1; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kicker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px var(--rose);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.08;
  margin: 12px 0 14px;
  max-width: 16ch;
}
.hero-sub {
  max-width: 52ch;
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.stat {
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(12, 6, 10, 0.55);
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.stat span { font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding: 64px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 8px 0;
}
.section-head p { color: var(--muted); max-width: 60ch; }

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.filter.is-on, .filter:hover {
  color: #1a050c;
  background: var(--cream);
  border-color: var(--cream);
}

.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.card {
  position: relative;
  aspect-ratio: 3/4.4;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: #14080d;
  cursor: pointer;
}
.card-faces {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.card-faces.solo { grid-template-columns: 1fr; }
.card-faces img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.12) contrast(1.06);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05) 20%, rgba(7,4,6,0.92) 100%),
    radial-gradient(120% 70% at 50% 0%, rgba(255,61,122,0.16), transparent 55%);
}
.card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 14px 12px 12px;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255,61,122,0.2);
  color: var(--rose-2);
}
.chip.gold { background: rgba(224,181,122,0.18); color: var(--gold); }
.card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.card p {
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.play {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--line);
}

.tools-grid, .earn-grid, .faq-list {
  display: grid;
  gap: 12px;
}
.step, .earn-card, .faq details {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.step b {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--rose);
  color: #1a050c;
  font-size: 13px;
  margin-bottom: 10px;
}
.step h3, .earn-card h3 { margin-bottom: 6px; font-size: 18px; }
.step p, .earn-card p, .faq p { color: var(--muted); font-size: 14px; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] p { margin-top: 8px; }

.split {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,61,122,0.12), rgba(12,6,10,0.4));
  margin-bottom: 12px;
}
.split-num {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 84px);
  color: var(--gold);
  line-height: 0.9;
}
.split small { color: var(--muted); }

.footer {
  padding: 36px 0 calc(28px + var(--dock));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.footer a:hover { color: var(--cream); }
.links { display: flex; flex-wrap: wrap; gap: 14px; }

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7,4,6,0.9);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: end center;
  background: rgba(0,0,0,0.62);
  padding: 12px;
}
.modal[hidden] { display: none; }
.modal-card {
  width: min(560px, 100%);
  max-height: min(86dvh, 760px);
  overflow: auto;
  border-radius: 24px 24px 18px 18px;
  background: #12080d;
  border: 1px solid var(--line);
}
.modal-cover {
  height: 220px;
  background: #000;
  position: relative;
  overflow: hidden;
}
.modal-cover .card-faces {
  z-index: 0;
}
.modal-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, #12080d);
}
.modal-body { padding: 0 18px 20px; }
.modal-body h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.modal-body p { color: var(--muted); margin-bottom: 16px; }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
}

.card:hover { transform: translateY(-3px); }
.card { transition: transform .2s ease; }
html[dir="rtl"] .header-right { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .nav-pc { margin-left: 0; margin-right: 18px; }
html[dir="rtl"] .lang { padding: 0 12px 0 28px; background-position: left 10px center; }

@media (max-width: 859px) {
  .header .btn-ghost { display: none; }
}

@media (min-width: 600px) and (max-width: 859px) {
  .drama-grid { grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  :root { --header: 72px; --dock: 0px; }
  .nav-pc { display: flex; }
  .header-cta-create { display: inline-flex; }
  .dock { display: none; }
  .hero {
    align-items: center;
    padding: 80px 0 100px;
  }
  .hero-mosaic {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(7,4,6,0.9) 0%, rgba(7,4,6,0.58) 36%, rgba(7,4,6,0.12) 68%, rgba(7,4,6,0.42) 100%),
      linear-gradient(180deg, rgba(7,4,6,0.12) 0%, transparent 40%, #070406 100%),
      radial-gradient(80% 70% at 72% 40%, rgba(255,61,122,0.18), transparent 60%);
  }
  .hero-actions .btn { min-width: 188px; }
  .drama-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .card h3 { font-size: 18px; }
  .tools-grid { grid-template-columns: repeat(5, 1fr); }
  .earn-grid { grid-template-columns: 1fr 1fr 1fr; }
  .faq-list { grid-template-columns: 1fr 1fr; }
  .footer { padding-bottom: 36px; }
  .modal { place-items: center; }
  .modal-card { border-radius: 24px; }
  .modal-cover { height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
