/*
Theme Name: EROLOOM
Theme URI: https://eroloom.com
Author: EROLOOM
Description: 画像単位で成人向け作品に出会う、EROLOOM専用WordPressテーマ。
Version: 0.1.9
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: eroloom
*/

:root {
  --ero-background: #090709;
  --ero-foreground: #fff8fb;
  --ero-card: #141014;
  --ero-muted: #a89ca3;
  --ero-hot-pink: #ff2f87;
  --ero-acid-pink: #ff78b4;
  --ero-line: rgba(255, 255, 255, 0.14);
  --ero-font: "Arial Narrow", "Helvetica Neue", "Noto Sans JP", Arial, sans-serif;
  --ero-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ero-background); scroll-behavior: smooth; }
body.eroloom-body {
  margin: 0;
  background: var(--ero-background);
  color: var(--ero-foreground);
  font-family: var(--ero-font);
  -webkit-font-smoothing: antialiased;
}
body.eroloom-no-scroll { overflow: hidden; }
button, input, a { font: inherit; -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--ero-acid-pink);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100svh;
  overflow-x: hidden;
  background: radial-gradient(circle at 8% 8%, rgba(255, 47, 135, 0.12), transparent 28rem), var(--ero-background);
}

.micro-label,
.section-kicker,
.feed-meta,
.scene-art__eyebrow,
.age-gate__legal {
  font-family: var(--ero-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 66px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ero-line);
  background: rgba(9, 7, 9, 0.86);
  backdrop-filter: blur(20px);
}

.admin-bar .topbar { top: 32px; }

.wordmark {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ero-foreground);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.07em;
  cursor: pointer;
}

.wordmark span {
  color: var(--ero-hot-pink);
  font-size: 0.58em;
  letter-spacing: -0.03em;
}

.topbar__nav {
  grid-column: 1 / -1;
  display: flex;
  width: 100%;
  height: 42px;
  justify-content: space-between;
}

.topbar__nav button {
  position: relative;
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #7f7379;
  font-family: var(--ero-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.topbar__nav button.is-active { color: var(--ero-foreground); }
.topbar__nav button.is-active::after {
  position: absolute;
  right: 8px;
  bottom: 0;
  left: 8px;
  height: 2px;
  background: var(--ero-hot-pink);
  content: "";
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ero-line);
  border-radius: 50%;
  background: transparent;
  color: var(--ero-foreground);
  font-size: 1.35rem;
  cursor: pointer;
}

.mode-panel { min-height: 40svh; }
.intro-strip {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 44px 16px 28px;
  border-bottom: 1px solid var(--ero-line);
}

.section-kicker { margin: 0 0 12px; color: var(--ero-acid-pink); }
.intro-strip h2,
.mode-heading h2,
.today-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.94;
}

.intro-strip h2 { max-width: 14ch; }
.intro-strip h2 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 248, 251, 0.72);
}

.intro-strip__status {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 10px 14px;
  border: 1px solid rgba(255, 47, 135, 0.42);
  border-radius: 999px;
  background: rgba(255, 47, 135, 0.08);
  color: var(--ero-acid-pink);
  cursor: pointer;
}

.intro-strip__status > span:first-child { font-size: 1.1rem; }
.intro-strip__status > span:last-child {
  display: flex;
  flex-direction: column;
  font-family: var(--ero-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
}
.intro-strip__status strong { color: var(--ero-foreground); font-size: 0.72rem; }

.feed-section { padding: 18px 8px 40px; }
.feed-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 8px 14px;
  color: #8c8087;
}
.masonry-feed { columns: 2; column-gap: 8px; }
.scene-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: #191319;
}
.scene-card__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.scene-card--portrait .scene-card__open { aspect-ratio: 4 / 5; }
.scene-card--tall .scene-card__open { aspect-ratio: 3 / 4.8; }
.scene-card--landscape .scene-card__open { aspect-ratio: 1 / 1; }

.scene-art {
  position: absolute;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  background: #2b1824;
}
.scene-art img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-art::after {
  position: absolute;
  z-index: 5;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 2, 4, 0.68));
  content: "";
}
.scene-art-0 { background: radial-gradient(circle at 64% 30%, #ff8dbc 0 9%, #9f175a 25%, #210915 60%, #080608 100%); }
.scene-art-1 { background: linear-gradient(132deg, #060405 14%, #692447 47%, #ff4e98 48%, #311160 72%, #09060b 100%); }
.scene-art-2 { background: radial-gradient(ellipse at 38% 44%, #ffb6d3, #fb377f 12%, #47152e 32%, #0d0810 68%); }
.scene-art-3 { background: linear-gradient(25deg, #090609 20%, #32121f 43%, #e82771 44% 47%, #311744 48%, #090609 79%); }
.scene-art-4 { background: radial-gradient(circle at 38% 34%, #8d59ff, #3a1763 18%, #cb1d65 42%, #120a11 75%); }
.scene-art-5 { background: linear-gradient(155deg, #060406, #2c0d20 37%, #f03277 38% 41%, #832451 42%, #130a10 78%); }
.scene-art__halo {
  position: absolute;
  z-index: 2;
  top: 16%;
  left: 18%;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 50px rgba(255, 47, 135, 0.24), inset 0 0 45px rgba(255, 255, 255, 0.08);
  transform: rotate(8deg);
}
.scene-art__frame {
  position: absolute;
  z-index: 2;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px 999px 16px 16px;
  transform: rotate(-2deg);
}
.scene-art__eyebrow,
.scene-art__label { position: absolute; z-index: 8; left: 12px; }
.scene-art__eyebrow { top: 12px; color: rgba(255, 255, 255, 0.64); font-size: 0.46rem; }
.scene-art__label {
  bottom: 12px;
  font-family: var(--ero-mono);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.scene-card__index,
.scene-card__reveal { position: absolute; z-index: 10; right: 9px; font-family: var(--ero-mono); }
.scene-card__index { top: 9px; font-size: 0.56rem; opacity: 0.64; }
.scene-card__reveal {
  bottom: 10px;
  font-size: 0.56rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: 180ms ease;
}
.scene-card__open:hover .scene-card__reveal,
.scene-card__open:focus-visible .scene-card__reveal { opacity: 1; transform: translateY(0); }
.scene-card__actions {
  position: absolute;
  z-index: 12;
  right: 8px;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.scene-card__actions button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(7, 5, 7, 0.55);
  color: var(--ero-foreground);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.scene-card__actions button.is-selected { border-color: var(--ero-hot-pink); background: var(--ero-hot-pink); color: var(--ero-background); }

.mode-view { min-height: calc(100svh - 108px); padding: 38px 14px 64px; }
.mode-heading { max-width: 760px; margin: 0 auto 30px; text-align: center; }
.mode-heading > p:last-child { margin: 14px 0 0; color: #8e8188; font-size: 0.76rem; }

.blind-view { background: radial-gradient(circle at 50% 26%, rgba(255, 47, 135, 0.13), transparent 34rem), #090709; }
.blind-card { width: min(100%, 560px); margin: 0 auto; }
.blind-card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--ero-line);
  border-radius: 4px;
}
.blind-card__visual .scene-art__frame { inset: 8% 15%; }
.blind-card__visual .scene-art__label { display: none; }
.blind-card__count,
.blind-card__mask {
  position: absolute;
  z-index: 12;
  font-family: var(--ero-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}
.blind-card__count { top: 14px; right: 14px; }
.blind-card__mask { right: 14px; bottom: 14px; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(8, 5, 8, 0.58); backdrop-filter: blur(9px); }
.blind-card__actions { display: grid; grid-template-columns: 48px 1fr; gap: 8px; margin-top: 10px; }
.blind-card__actions button {
  min-height: 48px;
  border: 1px solid var(--ero-line);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.round-action { display: grid; place-items: center; font-size: 1.15rem !important; }
.round-action.is-selected { border-color: var(--ero-hot-pink); background: var(--ero-hot-pink); color: var(--ero-background); }
.skip-action, .reveal-action { display: flex; align-items: center; justify-content: center; gap: 7px; }
.blind-card__actions .reveal-action { grid-column: 1 / -1; border-color: var(--ero-hot-pink); background: var(--ero-hot-pink); color: var(--ero-background); }

.today-view { max-width: 820px; margin: 0 auto; }
.today-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.today-heading h2 em { color: var(--ero-hot-pink); font-style: normal; }
.today-heading > span { padding-bottom: 4px; color: #9d9097; font-family: var(--ero-mono); font-size: 0.64rem; letter-spacing: 0.12em; white-space: nowrap; }
.today-progress { height: 3px; margin-bottom: 10px; overflow: hidden; background: #2a2228; }
.today-progress span { display: block; width: 1%; height: 100%; background: var(--ero-hot-pink); transition: width 180ms ease; }
.today-preview-note { margin: 0 0 12px; color: #7f7279; font-family: var(--ero-mono); font-size: 0.52rem; letter-spacing: 0.08em; text-align: right; }
.today-card { overflow: hidden; border: 1px solid var(--ero-line); }
.today-card__visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #171117;
  cursor: pointer;
}
.today-card__visual > span { position: absolute; z-index: 12; right: 18px; bottom: 18px; font-size: 0.66rem; font-weight: 800; }
.today-card__footer { display: flex; min-height: 82px; align-items: center; justify-content: space-between; padding: 14px 16px; background: #100c10; }
.today-card__footer > div { display: flex; align-items: center; gap: 12px; }
.today-card__footer p { margin: 0; color: #72666d; font-family: var(--ero-mono); font-size: 0.55rem; letter-spacing: 0.11em; }
.today-card__footer strong { color: var(--ero-acid-pink); font-family: var(--ero-mono); font-size: 1.1rem; }
.today-card__footer button,
.today-complete button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 18px;
  border: 0;
  background: var(--ero-hot-pink);
  color: var(--ero-background);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.today-complete {
  display: flex;
  min-height: 62svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ero-line);
  background: radial-gradient(circle, rgba(255, 47, 135, 0.14), transparent 45%);
  text-align: center;
}
.today-complete__spark { color: var(--ero-acid-pink); font-size: 2rem; }
.today-complete p { margin: 18px 0 4px; font-size: clamp(2rem, 10vw, 4.6rem); font-weight: 900; letter-spacing: -0.07em; }
.today-complete > span:not(.today-complete__spark) { margin-bottom: 24px; color: #8e8188; font-size: 0.72rem; }

.new-view { max-width: 1240px; margin: 0 auto; }
.new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 8px; }
.new-item > button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 0; background: #171117; cursor: pointer; }
.new-item > div { display: flex; flex-direction: column; padding: 10px 2px 0; }
.new-item span { color: var(--ero-acid-pink); font-family: var(--ero-mono); font-size: 0.48rem; letter-spacing: 0.08em; }
.new-item strong { margin-top: 5px; overflow: hidden; font-size: 0.7rem; text-overflow: ellipsis; white-space: nowrap; }
.new-item small { margin-top: 3px; overflow: hidden; color: #7c7076; font-size: 0.58rem; text-overflow: ellipsis; white-space: nowrap; }

.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 22px 16px 80px; border-top: 1px solid var(--ero-line); color: #7d7178; font-family: var(--ero-mono); font-size: 0.55rem; letter-spacing: 0.1em; }
.site-footer__credits { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__credits:empty { display: none; }
.site-footer__credits a { color: inherit; text-decoration: none; }
.site-footer__credits img { display: block; width: auto; max-width: 140px; height: 22px; object-fit: contain; }

.age-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-height: 100svh;
  overflow-y: auto;
  background: radial-gradient(circle at 78% 20%, rgba(255, 47, 135, 0.42), transparent 32%), radial-gradient(circle at 22% 78%, rgba(122, 63, 255, 0.25), transparent 34%), #090709;
}
.age-gate.is-hidden { display: none; }
.age-gate__frame { position: fixed; z-index: 0; inset: 18px; border: 1px solid rgba(255, 255, 255, 0.14); pointer-events: none; }
.age-gate__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1100px);
  min-height: 100svh;
  margin: auto;
  padding: clamp(32px, 6vh, 64px) 28px 26px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-items: center;
}
.age-gate__content { align-self: center; max-width: 790px; }
.age-gate__mark { display: grid; width: clamp(50px, 7vh, 72px); aspect-ratio: 1; margin-bottom: clamp(14px, 3vh, 28px); place-items: center; border: 1px solid var(--ero-hot-pink); border-radius: 50%; color: var(--ero-acid-pink); font-family: var(--ero-mono); font-size: 1rem; font-weight: 800; }
.age-gate__kicker { margin: 0 0 clamp(8px, 2vh, 16px); color: var(--ero-acid-pink); }
.age-gate h1 { max-width: 12ch; margin: 0; font-size: clamp(2.75rem, min(9vw, 10vh), 7rem); font-weight: 900; letter-spacing: -0.09em; line-height: 0.88; }
.age-gate h1 em { display: block; color: var(--ero-hot-pink); font-style: normal; }
.age-gate__description { max-width: 600px; margin: clamp(12px, 2.5vh, 24px) 0 0; color: #b7aab1; font-size: 0.78rem; line-height: 1.75; }
.age-gate__actions { display: flex; width: min(100%, 420px); flex-direction: column; gap: 6px; margin: clamp(12px, 2vh, 22px) auto 12px; }
.primary-action,
.secondary-action,
.text-action { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 9px; border: 0; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; cursor: pointer; }
.primary-action { width: 100%; background: var(--ero-hot-pink); color: #090709; }
.primary-action:disabled { cursor: not-allowed; opacity: 0.45; }
.text-action { background: transparent; color: #8e8188; }
.age-gate__blocked { width: min(100%, 420px); margin: 20px auto; padding: 20px; border: 1px solid var(--ero-line); color: #b7aab1; text-align: center; }
.age-gate__legal { align-self: end; margin: 0; color: #6f646a; text-align: right; }

.search-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: max(20px, env(safe-area-inset-top)) 14px;
  overflow-y: auto;
  background: rgba(3, 2, 3, 0.78);
  backdrop-filter: blur(16px);
}
.search-dialog { width: min(100%, 660px); margin-top: 5vh; border: 1px solid var(--ero-line); background: #100c10; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52); }
.search-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px; border-bottom: 1px solid var(--ero-line); }
.search-dialog__header h2 { margin: 0; font-size: 2rem; letter-spacing: -0.06em; }
.search-dialog__header button,
.detail-sheet__close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--ero-line); border-radius: 50%; background: transparent; font-size: 1.35rem; cursor: pointer; }
.search-field { display: block; padding: 14px; border-bottom: 1px solid var(--ero-line); }
.search-field input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--ero-line); border-radius: 0; background: #090709; color: var(--ero-foreground); font-size: 0.8rem; }
.search-results { max-height: 58vh; padding: 8px; overflow-y: auto; }
.search-result { display: flex; width: 100%; min-height: 66px; align-items: center; gap: 12px; padding: 7px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: #2d1724; }
.search-result__art { width: 42px; height: 50px; flex: 0 0 auto; border: 1px solid rgba(255, 255, 255, 0.1); }
.search-result__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.search-result__copy strong,
.search-result__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result__copy strong { font-size: 0.72rem; }
.search-result__copy small { margin-top: 3px; color: #84777e; font-size: 0.6rem; }

.detail-overlay { position: fixed; z-index: 250; inset: 0; }
.detail-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(3, 2, 3, 0.68); opacity: 0; transition: opacity 180ms ease; }
.detail-sheet {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 580px);
  overflow-y: auto;
  border-left: 1px solid var(--ero-line);
  background: #0e0b0e;
  box-shadow: -28px 0 80px rgba(0, 0, 0, 0.42);
  transform: translateX(100%);
  transition: transform 180ms ease;
}
.detail-overlay.is-open .detail-backdrop { opacity: 1; }
.detail-overlay.is-open .detail-sheet { transform: translateX(0); }
.detail-sheet__close { position: absolute; z-index: 30; top: 14px; right: 14px; background: rgba(0, 0, 0, 0.5); }
.detail-sheet__visual { position: relative; height: min(57vh, 600px); min-height: 420px; }
.detail-sheet__visual .scene-art__frame { inset: 10% 18%; }
.detail-sheet__pager { position: absolute; z-index: 15; right: 16px; bottom: 15px; left: 16px; display: flex; align-items: center; justify-content: space-between; font-family: var(--ero-mono); font-size: 0.62rem; letter-spacing: 0.1em; }
.detail-sheet__pager button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: rgba(0, 0, 0, 0.42); font-size: 1.35rem; cursor: pointer; }
.detail-sheet__header { padding: 28px 20px 18px; border-bottom: 1px solid var(--ero-line); }
.detail-sheet__header h2 { margin: 0; font-size: clamp(2rem, 8vw, 3.2rem); font-weight: 900; letter-spacing: -0.06em; line-height: 0.95; }
.detail-sheet__header > p:last-child { margin: 8px 0 0; color: #9d9097; font-size: 0.74rem; }
.detail-sheet__body { padding: 20px 20px 40px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span { padding: 6px 10px; border: 1px solid var(--ero-line); border-radius: 999px; color: #bbaeb5; font-size: 0.66rem; }
.work-facts { margin: 26px 0; border-top: 1px solid var(--ero-line); }
.work-facts div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ero-line); font-size: 0.72rem; }
.work-facts dt { color: #776d72; }
.work-facts dd { margin: 0; }
.permission-ok { color: #aee9c7; }
.sample-video { margin: 0 0 28px; }
.sample-video > button { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 1px solid var(--ero-line); background: #171117; cursor: pointer; }
.sample-video > button:disabled { cursor: default; }
.sample-video > iframe,
.sample-video > video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--ero-line); background: #000; }
.sample-video--duga { display: grid; min-height: clamp(180px, 55vw, 300px); place-items: center; overflow: hidden; border: 1px solid var(--ero-line); background: #000; }
.sample-video--duga > [id^="dugaflvplayer-"] { display: block; width: min(540px, 100%) !important; max-width: 100%; aspect-ratio: 9 / 5; margin: 0 auto; background: #000; }
.sample-video--duga [id^="dugaflvplayer-"] iframe,
.sample-video--duga [id^="dugaflvplayer-"] video,
.sample-video--duga [id^="dugaflvplayer-"] object,
.sample-video--duga [id^="dugaflvplayer-"] embed { display: block; width: 100% !important; max-width: 100%; height: 100% !important; border: 0; }
.sample-video--duga > script { display: none; }
.sample-video--error { border-color: #ff5d62; }
.sample-video--empty { opacity: 0.68; }
.sample-video__play { position: absolute; z-index: 14; top: 50%; left: 50%; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.58); border-radius: 50%; background: rgba(8, 5, 8, 0.42); backdrop-filter: blur(8px); transform: translate(-50%, -50%); }
.sample-video__label { position: absolute; z-index: 14; right: 12px; bottom: 10px; font-family: var(--ero-mono); font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; }
.detail-rail { margin-bottom: 26px; }
.detail-rail__heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.detail-rail__heading h3 { margin: 0; font-size: 0.76rem; font-weight: 800; }
.detail-rail__heading span { color: #786c73; font-family: var(--ero-mono); font-size: 0.48rem; letter-spacing: 0.08em; }
.detail-rail__items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.detail-rail__items button { position: relative; display: block; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 1px solid var(--ero-line); background: #171117; cursor: pointer; }
.detail-rail__items .scene-art__eyebrow,
.detail-rail__items .scene-art__label { display: none; }
.detail-sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.secondary-action { border: 1px solid var(--ero-line); background: transparent; color: var(--ero-foreground); }
.secondary-action.is-selected { border-color: var(--ero-hot-pink); color: var(--ero-acid-pink); }
.demo-note { margin: 10px 0 0; color: #72676d; font-size: 0.62rem; text-align: center; }

.empty-state { grid-column: 1 / -1; display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--ero-line); color: #8e8188; text-align: center; }
.empty-state > span { color: var(--ero-acid-pink); font-size: 1.5rem; }
.core-missing { position: fixed; z-index: 500; right: 16px; bottom: 16px; display: flex; max-width: 420px; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid #ff5d62; background: #260e14; color: #ffd8dc; font-size: 0.75rem; }
.core-missing--empty { border-color: var(--ero-line); background: #181217; color: #d4c8ce; }

@media (min-width: 720px) {
  .topbar { grid-template-columns: 1fr auto 1fr; min-height: 66px; padding: 0 30px; }
  .topbar__nav { grid-column: auto; align-items: center; gap: 34px; width: auto; height: 66px; }
  .topbar__nav button { height: 66px; padding: 0; font-size: 0.62rem; letter-spacing: 0.12em; }
  .topbar__nav button.is-active::after { right: 0; left: 0; }
  .icon-button { justify-self: end; }
  .intro-strip { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 78px 30px 48px; }
  .feed-section { padding: 24px 14px 80px; }
  .feed-meta { padding: 0 16px 18px; }
  .masonry-feed { columns: 3; column-gap: 12px; }
  .scene-card { margin-bottom: 12px; }
  .mode-view { min-height: calc(100svh - 66px); padding: 64px 30px 90px; }
  .blind-card__actions { grid-template-columns: 52px 1fr 1.4fr; }
  .blind-card__actions .reveal-action { grid-column: auto; }
  .today-card__visual { aspect-ratio: 16 / 11; }
  .new-grid { grid-template-columns: repeat(4, 1fr); gap: 36px 12px; }
  .new-item strong { font-size: 0.78rem; }
  .site-footer { padding: 28px 30px 60px; }
  .age-gate h1 { max-width: 13ch; }
}

@media (min-width: 1180px) {
  .masonry-feed { columns: 4; }
  .feed-section { padding-inline: 18px; }
}

@media (max-width: 782px) {
  .admin-bar .topbar { top: 46px; }
}

@media (max-height: 720px) and (min-width: 720px) {
  .age-gate__inner { padding-top: 28px; padding-bottom: 18px; }
  .age-gate__mark { width: 48px; margin-bottom: 12px; }
  .age-gate h1 { font-size: clamp(2.7rem, 8.5vh, 4.2rem); line-height: 0.9; }
  .age-gate__description { margin-top: 12px; line-height: 1.55; }
  .age-gate__actions { margin-top: 12px; }
  .primary-action, .secondary-action, .text-action { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}


/* Formal site information and contact pages. */
.wordmark--link {
  color: inherit;
  text-decoration: none;
}

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  justify-content: space-between;
}

.legal-topbar__age {
  color: var(--ero-acid-pink);
  font-family: var(--ero-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.legal-page {
  min-height: calc(100vh - 180px);
  padding: clamp(6rem, 12vw, 9rem) clamp(1rem, 5vw, 4rem) 4rem;
}

.legal-page__article {
  width: min(780px, 100%);
  margin: 0 auto;
}

.legal-page__article h1 {
  margin: 0.5rem 0 2rem;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.legal-page__content {
  color: #eee7eb;
  font-size: 1rem;
  line-height: 1.9;
}

.legal-page__content h2 {
  margin: 2.5rem 0 0.8rem;
  color: var(--ero-foreground);
  font-size: 1.25rem;
}

.legal-page__content p,
.legal-page__content ul {
  margin: 0 0 1.25rem;
}

.legal-page__content ul {
  padding-left: 1.3rem;
}

.legal-page__content a,
.site-footer__links a {
  color: var(--ero-acid-pink);
}

.site-footer {
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.site-footer__links a {
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  text-decoration: underline;
}

.site-footer--legal {
  padding-inline: clamp(1rem, 5vw, 4rem);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.contact-form__field {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--ero-line);
  border-radius: 0;
  background: #100d10;
  color: var(--ero-foreground);
  font: inherit;
  padding: 0.9rem 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ero-acid-pink);
  outline: 2px solid rgba(255, 120, 180, 0.2);
}

.contact-form__submit {
  justify-self: start;
  min-width: 10rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-status {
  border-left: 3px solid var(--ero-acid-pink);
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.contact-status--error {
  border-left-color: #ff6b6b;
}

@media (max-width: 640px) {
  .legal-topbar__age {
    font-size: 0.62rem;
  }

  .legal-page {
    padding-top: 5.5rem;
  }

  .site-footer--legal,
  .site-footer__links {
    align-items: flex-start;
  }
}

.scene-art img[hidden] {
  display: none !important;
}
