/* Yumecrest hub - one stylesheet, no frameworks, no webfonts, no icon libs.
   Mobile-first: 2-col roster grid <768px, 3-col 768-1200px, 4-col above. */

:root {
  --bg: #0b0b0f;
  --bg-2: #131319;
  --bg-3: #1b1b23;
  --line: #26262f;
  --fg: #f2f2f5;
  --fg-dim: #a2a2ae;
  --fg-faint: #6e6e7c;
  --accent: #ff2d78;
  --accent-2: #7b3dff;
  --radius: 12px;
  --pad: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

.yc-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- age gate ---------- */

.yc-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  background: rgba(6, 6, 10, 0.96);
  backdrop-filter: blur(6px);
}
html.yc-age-ok .yc-gate { display: none; }
html.yc-age-pending body { overflow: hidden; }

.yc-gate-panel {
  width: 100%;
  max-width: 460px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-align: center;
}
.yc-gate-mark { margin: 0 0 18px; letter-spacing: .34em; font-size: 12px; color: var(--fg-faint); }
.yc-gate-title { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.yc-gate-copy { margin: 0 0 22px; color: var(--fg-dim); font-size: 14px; }
.yc-gate-actions { display: grid; gap: 10px; }
.yc-gate-bye { margin: 18px 0 0; color: var(--accent); font-size: 14px; }
.yc-gate.is-refused .yc-gate-actions { opacity: .35; pointer-events: none; }
.yc-gate-fine { margin: 22px 0 0; font-size: 12px; color: var(--fg-faint); }
.yc-gate-fine a { color: var(--fg-dim); }

/* ---------- buttons ---------- */

.yc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
}
.yc-btn:active { transform: scale(.98); }
.yc-btn-primary { background: var(--accent); color: #fff; }
.yc-btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.yc-btn-sm { padding: 8px 14px; font-size: 14px; }
.yc-btn-lg { padding: 15px 26px; font-size: 17px; width: 100%; max-width: 380px; }
.yc-btn[disabled] { opacity: .4; cursor: default; }
.yc-btn-soon {
  background: var(--bg-3); color: var(--fg-faint); border-color: var(--line);
  cursor: default; font-weight: 500;
}

/* ---------- header / footer ---------- */

.yc-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad);
  background: rgba(11, 11, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.yc-wordmark {
  font-weight: 800;
  letter-spacing: .22em;
  font-size: 15px;
  text-decoration: none;
}

.yc-main { padding-bottom: 48px; }

.yc-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad) 40px;
  color: var(--fg-faint);
  font-size: 13px;
  text-align: center;
}
.yc-disclosure { margin: 0 0 8px; color: var(--fg-dim); font-size: 14px; }
.yc-footer-contact { margin: 0 0 14px; }
.yc-footer-links { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 14px; }
.yc-footer a { color: var(--fg-dim); }
.yc-copyright { margin: 0; }

/* ---------- section furniture ---------- */

.yc-section-title {
  margin: 30px var(--pad) 12px;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.yc-section-title-tight { margin-bottom: 8px; }
.yc-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.yc-crumb { padding: 14px var(--pad) 0; font-size: 14px; }
.yc-crumb a { color: var(--fg-dim); text-decoration: none; }

/* ---------- media + placeholder ---------- */

.yc-media { position: relative; width: 100%; aspect-ratio: 3 / 4; background: var(--bg-3); overflow: hidden; }
.yc-media img, .yc-media video { width: 100%; height: 100%; object-fit: cover; }

/* H1: Ken Burns drift for poster-ONLY cards (no loop/idle video asset at all — build.py's
   yc-poster-drift class, media_block()'s poster-only branch). Cards WITH video already have their
   own motion; this just keeps a still card from reading as dead weight next to them. Guarded
   behind prefers-reduced-motion so a user who opted out never gets an uncontrollable infinite
   animation. */
@media (prefers-reduced-motion: no-preference) {
  .yc-poster-drift img {
    animation: yc-ken-burns 14s ease-in-out infinite alternate;
    transform-origin: center;
  }
}
@keyframes yc-ken-burns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.yc-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 14px;
  width: 100%;
  height: 100%;
}
.yc-placeholder span {
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* ---------- hero ---------- */

.yc-hero { padding: var(--pad); }
.yc-hero-media { border-radius: var(--radius); overflow: hidden; }
.yc-hero .yc-media { aspect-ratio: 4 / 5; }
.yc-hero-body { padding-top: 14px; }
.yc-hero-name { margin: 0 0 6px; font-size: 26px; }
.yc-hero-hook { margin: 0 0 16px; color: var(--fg-dim); }
.yc-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- stories row ---------- */

.yc-stories-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px var(--pad) 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yc-stories-row::-webkit-scrollbar { display: none; }
.yc-story { flex: 0 0 auto; width: 72px; text-align: center; text-decoration: none; scroll-snap-align: start; }
.yc-story-ring {
  display: block;
  width: 68px; height: 68px;
  padding: 2px;
  border-radius: 50%;
  background: var(--line);
}
.yc-story.is-new .yc-story-ring { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.yc-story-avatar {
  display: block;
  width: 100%; height: 100%;
  border: 2px solid var(--bg);
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
}
.yc-story-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yc-story-avatar .yc-placeholder { align-items: center; justify-content: center; padding: 0; }
.yc-story-avatar .yc-placeholder span { font-size: 20px; text-shadow: none; }
.yc-story-name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--fg-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- IG-style story viewer (H2) ---------- */

body.yc-no-scroll { overflow: hidden; }

.yc-story-viewer {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  background: #000;
}
.yc-story-viewer[hidden] { display: none; }

.yc-sv-bars { display: flex; gap: 4px; padding: 10px 10px 0; flex: 0 0 auto; }
.yc-sv-bar {
  flex: 1 1 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}
.yc-sv-bar-fill { display: block; height: 100%; width: 0; background: #fff; }
.yc-sv-bar.is-done .yc-sv-bar-fill { width: 100%; }
.yc-sv-bar.is-active .yc-sv-bar-fill { animation: yc-sv-fill 5s linear forwards; }
@keyframes yc-sv-fill { from { width: 0; } to { width: 100%; } }

.yc-sv-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  flex: 0 0 auto;
}
.yc-sv-avatar {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
}
.yc-sv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.yc-sv-name {
  flex: 1 1 auto;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.yc-sv-close {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  padding: 2px 8px;
  cursor: pointer;
}

.yc-sv-stage { position: relative; flex: 1 1 auto; min-height: 0; }
.yc-sv-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.yc-sv-zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.yc-sv-zone-prev { left: 0; }
.yc-sv-zone-next { right: 0; }

.yc-sv-cta {
  flex: 0 0 auto;
  margin: 12px auto max(18px, env(safe-area-inset-bottom));
}

/* ---------- lane filter pills (H4) ---------- */

.yc-lane-pills {
  display: flex;
  gap: 8px;
  padding: 4px var(--pad) 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.yc-lane-pills::-webkit-scrollbar { display: none; }
.yc-pill {
  flex: 0 0 auto;
  appearance: none;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--fg-dim);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.yc-pill:active { transform: scale(.98); }
.yc-pill.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- roster grid ---------- */

.yc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 var(--pad);
}
.yc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.yc-card-media { position: relative; display: block; text-decoration: none; }
.yc-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 12px; }
.yc-card-name { margin: 0; font-size: 15px; }
.yc-card-name a { text-decoration: none; }
.yc-card-hook { margin: 0; font-size: 13px; line-height: 1.35; color: var(--fg-dim); }
.yc-card .yc-btn { margin-top: 4px; padding: 9px 12px; font-size: 13px; }

.yc-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 12, .78);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.yc-badge-live { background: var(--accent); color: #fff; }

.yc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.yc-tags li {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--fg-faint);
  font-size: 11px;
}

/* ---------- latest drops swipe row ---------- */

.yc-swipe {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px var(--pad) 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.yc-drop {
  flex: 0 0 62%;
  max-width: 300px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  overflow: hidden;
}
.yc-drop-media { display: block; }
.yc-drop .yc-media { aspect-ratio: 16 / 10; }
.yc-drop-body { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.yc-drop-name { margin: 0; font-weight: 600; font-size: 15px; }
.yc-drop-date { margin: 0; font-size: 12px; color: var(--fg-faint); }
.yc-drop .yc-btn { margin-top: 4px; padding: 8px 12px; font-size: 13px; }

/* ---------- bribe / capture ---------- */

.yc-bribe {
  margin: 34px var(--pad);
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-2), rgba(123, 61, 255, .12));
  text-align: center;
}
.yc-bribe .yc-section-title { margin: 0 0 10px; color: var(--fg); text-transform: none; font-size: 21px; }
.yc-bribe-copy { margin: 0 auto 18px; max-width: 46ch; color: var(--fg-dim); font-size: 14px; }
.yc-bribe-or { margin: 16px 0 10px; font-size: 12px; color: var(--fg-faint); }
.yc-capture { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.yc-capture-input {
  flex: 1 1 210px;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}
.yc-capture-input::placeholder { color: var(--fg-faint); }
.yc-bribe-fine { margin: 14px 0 0; font-size: 12px; color: var(--fg-faint); }

/* ---------- custom request ---------- */

.yc-custom { margin: 30px var(--pad); text-align: center; }
.yc-custom .yc-section-title { margin: 0 0 6px; text-transform: none; color: var(--fg); font-size: 19px; }
.yc-custom-line { margin: 0 0 14px; color: var(--fg-dim); font-size: 14px; }

/* ---------- per-girl page ---------- */

.yc-reel { padding: var(--pad); }
.yc-reel-media { border-radius: var(--radius); overflow: hidden; }
.yc-reel .yc-media { aspect-ratio: 4 / 5; }
.yc-reel-body { padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.yc-reel-name { margin: 0; font-size: 26px; }
.yc-reel-hook { margin: 0; color: var(--fg-dim); }
.yc-reel-blurb { margin: 0; font-size: 14px; color: var(--fg-dim); }
.yc-reel-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.yc-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 var(--pad);
}
.yc-teaser { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.yc-teaser .yc-media { aspect-ratio: 9 / 16; }
.yc-empty {
  margin: 0 var(--pad);
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--fg-faint);
  font-size: 14px;
  text-align: center;
}

/* ---------- legal pages ---------- */

.yc-legal { max-width: 68ch; margin: 0 auto; padding: 0 var(--pad) 30px; }
.yc-legal-flag {
  margin: 16px 0;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}
.yc-legal-title { margin: 0 0 4px; font-size: 26px; }
.yc-legal-updated { margin: 0 0 22px; color: var(--fg-faint); font-size: 13px; }
.yc-legal h2 { margin: 26px 0 8px; font-size: 17px; }
.yc-legal p, .yc-legal li { color: var(--fg-dim); font-size: 15px; }
.yc-legal code { background: var(--bg-3); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.yc-legal-note { color: var(--fg-faint); font-style: italic; font-size: 13px; }

/* ---------- breakpoints ---------- */

@media (min-width: 768px) {
  :root { --pad: 24px; }
  .yc-grid, .yc-teaser-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .yc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    padding: 28px var(--pad);
  }
  .yc-hero .yc-media { aspect-ratio: 16 / 10; }
  .yc-hero-name { font-size: 34px; }
  .yc-reel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
  .yc-drop { flex-basis: 300px; }
  .yc-card-name { font-size: 16px; }
  .yc-card-hook { font-size: 14px; }
}

@media (min-width: 1200px) {
  .yc-grid { grid-template-columns: repeat(4, 1fr); }
  .yc-teaser-grid { grid-template-columns: repeat(4, 1fr); }
  .yc-main, .yc-header { max-width: 1360px; margin-left: auto; margin-right: auto; }
  .yc-card-media:hover .yc-media { filter: brightness(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .yc-btn { transition: none; }
}
