/* Illustrated campaign skin. Ad slot sizes are unchanged. */

html.no-splash:has(body.page-auth),
html.no-splash:has(body.page-legal),
html.no-splash body.page-auth,
html.no-splash body.page-legal,
body.page-home,
body.page-create,
body.page-auth,
body.page-legal {
  background: #f3eadf !important;
  color: #2c1818;
}
body.page-create .site-header,
body.page-auth .site-header,
body.page-legal .site-header {
  background: rgba(243, 234, 223, 0.92);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(90, 28, 36, 0.08);
}
body.page-home .site-header {
  position: absolute;
  top: 0;
  left: 50%;
  right: auto;
  width: min(480px, 100%);
  transform: translateX(-50%);
  z-index: 20;
  background: linear-gradient(to bottom, rgba(20, 8, 12, 0.55), transparent);
  border-bottom: none;
  box-shadow: none;
}
body.page-home .logo {
  display: none;
}
body.page-home #nav-auth {
  grid-column: 3;
  justify-self: end;
  text-align: right;
  color: #fff8f2;
  border-color: rgba(255, 248, 242, 0.45);
}
body.page-home .nav-token-balance,
body.page-home .nav-token-btn {
  background: rgba(255, 248, 242, 0.16);
  border-color: transparent;
  color: #fff8f2;
}
body.page-home .logo,
body.page-create .logo,
body.page-auth .logo,
body.page-legal .logo {
  color: #7a2430;
  font-family: "Fraunces", Georgia, serif;
}
body.page-create #nav-auth,
body.page-auth #nav-auth {
  color: #7a2430;
  border-color: rgba(122, 36, 48, 0.28);
  background: transparent;
}
body.page-home .site-footer,
body.page-create .site-footer,
body.page-auth .site-footer,
body.page-legal .site-footer {
  background: #f3eadf;
  border-top: none;
  color: #8a6d66;
}

/* Loading page — yesterday's 9:16 poster */
.illustrated-splash {
  background: #14080c;
}
.illustrated-splash-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.app-splash-video {
  display: none;
}
.illustrated-splash-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
  background: rgba(20, 8, 12, 0.88);
  text-align: center;
}
.illustrated-splash-foot p {
  margin: 0 0 10px;
  color: #fff8f2;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-shadow: none;
}
.illustrated-splash-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.illustrated-splash-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  animation: splash-load 3s linear forwards;
}
@keyframes splash-load {
  to { width: 100%; }
}
.app-splash,
.app-splash-video {
  background: #1a0c10 url("/static/art/ios/enemies-to-lovers.jpg?v=7") center / cover no-repeat;
}
.app-boot-cover {
  background: #1a0c10;
}
.app-boot-photo {
  position: absolute;
  left: -4%;
  top: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
}
.app-boot-veil {
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 12, 0.28);
}
.app-boot-blur {
  display: none;
}

/* Home poster */
body.page-home main.container {
  max-width: 480px;
  padding-top: 0;
}
body.page-home .home-shell {
  gap: 22px;
}
.home-stage {
  position: relative;
  margin: 0 -12px;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
  background: #14080c;
}
.home-stage-art {
  position: relative;
  display: block;
  width: 100%;
  height: 70vh;
  max-height: 560px;
  overflow: hidden;
}
.home-stage-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  opacity: 0;
  transition: opacity 1.1s ease;
  animation: home-stage-drift 16s ease-in-out infinite alternate;
  will-change: transform;
}
.home-stage-slide.is-on {
  opacity: 1;
}
@keyframes home-stage-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-2%, -1.5%, 0); }
}
.home-stage-veil {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 8, 12, 0.72) 0%, rgba(20, 8, 12, 0.28) 52%, transparent 100%);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 100%);
}
.home-stage-copy {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 92px;
  z-index: 2;
  padding: 0;
  text-align: center;
  color: #fff8f2;
  pointer-events: none;
}
.home-stage-mark {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  color: #fff8f2;
  text-shadow:
    0 2px 0 rgba(92, 24, 32, 0.35),
    0 12px 28px rgba(0, 0, 0, 0.55);
}
.home-stage-mark span,
.home-stage-mark em {
  font-size: clamp(2.35rem, 11vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.home-stage-mark em {
  margin-left: 0.16em;
  font-weight: 600;
}
.home-stage-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  margin: 0;
  min-height: 52px;
  border-radius: 999px;
  background: rgba(122, 36, 48, 0.92);
  color: #fff8f2;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 8, 12, 0.35);
}
.home-stage-cta:hover {
  background: #922c3b;
  color: #fff;
}

.genre-mosaic-lead {
  margin: -4px 0 12px;
  color: #8a6d66;
  font-size: 0.92rem;
  line-height: 1.4;
}
.genre-mosaic h2.genre-mosaic-next {
  margin-top: 22px;
}
.genre-mosaic h2 {
  margin: 0 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #2c1818;
  letter-spacing: -0.03em;
}
.genre-mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.genre-tile {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 10px 24px rgba(60, 24, 18, 0.16);
}
.genre-tile img,
#type-options .genre-card img,
#style-options .genre-card img,
#gender-options .genre-card img,
#pov-options .genre-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}
#type-options .genre-card[data-type="Unbuttoned Night"] img,
.genre-tile[href*="Unbuttoned"] img {
  object-position: center 30%;
}
#type-options .genre-card img[src*="style-cinematic"],
#style-options .genre-card img[src*="style-cinematic"] {
  transform: scale(1.7);
  object-position: center center;
}
.genre-tile span,
#type-options .genre-card-name,
#style-options .genre-card-name,
#gender-options .genre-card-name,
#pov-options .genre-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-height: 4.6rem;
  padding: 36px 8px 10px;
  background: linear-gradient(to top, rgba(12, 6, 8, 0.94) 38%, rgba(12, 6, 8, 0.2) 78%, transparent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.15;
  text-align: center;
  color: #fff8f2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}
.genre-tile em,
#type-options .genre-card-name em,
#style-options .genre-card-name em,
#gender-options .genre-card-name em,
#pov-options .genre-card-name em {
  font-style: normal;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(255, 248, 242, 0.92);
}
.home-feedback-link {
  display: block;
  position: relative;
  z-index: 3;
  margin: 14px auto 0;
  border: none;
  background: none;
  color: #7a2430;
  font: inherit;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-apple-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
}
.apple-mark {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
}
#nav-auth {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#nav-auth .apple-mark {
  width: 16px;
  height: 16px;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.nav-avatar-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #9a3040;
  color: #fff8f2;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}
.nav-auth-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-home .home-stories.card,
body.page-home .home-own-section,
body.page-home .home-community-section {
  background: #fffaf4;
  border: none;
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(80, 40, 30, 0.08);
  color: #2c1818;
}
body.page-home .home-stories-title,
body.page-home .home-own-toggle,
body.page-home .home-read-toggle,
body.page-home .home-story-link strong {
  color: #2c1818;
  font-family: "Fraunces", Georgia, serif;
}
body.page-home .home-own-toggle,
body.page-home .home-read-toggle {
  background: transparent;
  border-color: rgba(122, 36, 48, 0.12);
}
body.page-home .home-story-link {
  background: #fff;
  border-color: rgba(122, 36, 48, 0.08);
}
body.page-home .home-story-tags,
body.page-home .muted,
body.page-home .home-empty {
  color: #8a6d66;
}

/* Create */
body.page-create main.container {
  max-width: 480px;
}
.wizard-banner {
  width: min(52%, 190px);
  height: auto;
  margin: 0 auto 8px;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 12px 28px rgba(60, 24, 18, 0.16);
  background: #1a0c10;
}
/* Gender and voice: photo behind the choices, page still scrolls to the ad. */
body.page-create.create-choice-fit {
  background: #14080c !important;
}
body.page-create.create-choice-fit main.container {
  position: relative;
  z-index: 1;
  padding-top: 8px;
  padding-bottom: 28px;
  background: transparent;
}
body.page-create.create-choice-fit .create-wizard {
  position: relative;
  background: transparent;
}
body.page-create.create-choice-fit .wizard-banner {
  position: fixed;
  inset: -48px;
  width: auto;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
body.page-create.create-choice-fit .wizard-banner img {
  width: 100%;
  height: 100%;
  filter: blur(16px);
  transform: none;
  object-position: center center;
}
body.page-create.create-choice-fit .wizard-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 12, 0.38);
}
body.page-create.create-choice-fit .wizard-steps {
  display: none;
}
body.page-create.create-choice-fit .wizard-entry span,
body.page-create.create-choice-fit .wizard-step .muted,
body.page-create.create-choice-fit .choice-pov-lines {
  display: none;
}
body.page-create.create-choice-fit .wizard-entry,
body.page-create.create-choice-fit .wizard-back {
  color: #fff8f2;
}
body.page-create.create-choice-fit .wizard-body.card {
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  box-shadow: none !important;
  padding: 6px 0 4px;
}
body.page-create.create-choice-fit .wizard-step {
  padding: 4px 0 0;
}
body.page-create.create-choice-fit .wizard-step h2 {
  margin-bottom: 4px;
  color: #fff8f2;
  font-size: 1.45rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
body.page-create.create-choice-fit .wizard-choice-stack {
  margin: 12px auto 0;
  gap: 12px;
  max-width: 280px;
}
body.page-create.create-choice-fit .choice-btn.large {
  background: rgba(255, 250, 244, 0.22);
  border: 1px solid rgba(255, 248, 242, 0.55);
  border-radius: 18px;
  box-shadow: none;
  color: #fff8f2;
  text-shadow: 0 1px 8px rgba(20, 8, 12, 0.4);
  padding: 16px 14px;
  gap: 4px;
}
body.page-create.create-choice-fit .choice-btn.large .choice-label {
  color: #fff8f2;
  text-shadow: 0 1px 8px rgba(20, 8, 12, 0.4);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
}
body.page-create.create-choice-fit .gender-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 2px;
}
.pov-icon-first {
  background: linear-gradient(145deg, rgba(255, 214, 160, 0.35), rgba(255, 214, 160, 0.1));
  border: 2px solid rgba(255, 220, 180, 0.55);
  color: #ffe0b0;
}
.pov-icon-third {
  background: linear-gradient(145deg, rgba(160, 196, 214, 0.35), rgba(160, 196, 214, 0.1));
  border: 2px solid rgba(186, 214, 228, 0.55);
  color: #d7ebf5;
}
body.page-create.create-choice-fit .ad-slot-inline {
  margin-top: 22px;
  background: transparent;
  border-radius: 0;
}
body.page-create.create-choice-fit .ad-slot-banner {
  min-height: 50px;
}
body.page-create.create-choice-fit .ad-slot-native {
  min-height: 250px;
}
.wizard-banner.is-slim {
  width: 100%;
  height: 84px;
  aspect-ratio: auto;
  margin-bottom: 8px;
  border-radius: 16px;
}
.wizard-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
  display: block;
}
.wizard-entry,
.wizard-picked {
  margin: 10px 2px 0;
  color: #7a2430;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: center;
}
.wizard-entry span,
.wizard-picked span {
  display: block;
  margin-top: 2px;
  color: #6f584e;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 0.92rem;
}
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 12px 0 8px;
  padding: 0;
  list-style: none;
}
.wizard-steps li {
  margin: 0;
  padding: 6px 2px;
  border-radius: 999px;
  background: rgba(122, 36, 48, 0.08);
  color: #8a6d66;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}
.wizard-steps li.is-on {
  background: #7a2430;
  color: #fff8f2;
}
.wizard-steps li.is-done {
  background: rgba(122, 36, 48, 0.18);
  color: #7a2430;
}
.wizard-back,
.wizard-change {
  border: 1px solid rgba(122, 36, 48, 0.18);
  background: #fffaf4;
  color: #7a2430;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 14px 8px 10px;
}
.wizard-steps { display: none; }
.wizard-navline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  margin: 12px 2px 14px;
}
.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(44, 24, 24, 0.08);
}
.wizard-back svg {
  width: 18px;
  height: 18px;
  display: block;
}
.wizard-back-story {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 62%;
  margin: 0;
  margin-left: auto;
  padding: 4px 12px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(122, 36, 48, 0.14);
  color: #2c1818;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: left;
}
.wizard-back-story img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.wizard-back-story span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wizard-change { display: inline-block; margin: 0 0 10px; }
.page-create .wizard-body.card {
  background: rgba(255, 250, 244, 0.42) !important;
  border: 1px solid rgba(255, 248, 242, 0.55) !important;
  border-radius: 24px;
  box-shadow: none;
  color: #2c1818;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.page-create .wizard-step h2,
.page-create .choice-label,
.page-create .choice-btn.large {
  color: #2c1818;
}
.page-create .wizard-step .muted,
.page-create .choice-pov-line {
  color: #8a6d66;
}
.page-create .choice-btn.large {
  background: #fff;
  border: 1px solid rgba(122, 36, 48, 0.14);
}
#type-options.tag-grid,
#style-options.tag-grid,
#gender-options.tag-grid,
#pov-options.tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.heat-tag {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 8px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #2a120c;
  pointer-events: none;
}
.heat-tag::before {
  content: "▲ ";
  font-size: 0.68rem;
}
.heat-tone-0 { background: #ffb020; color: #2a120c; }
.heat-tone-1 { background: #ff5a36; color: #2a120c; }
.heat-tone-2 { background: #ff4d8d; color: #2a120c; }
.btn-watch-ad {
  margin: 0 0 14px;
  background: #ffb020;
  color: #2a120c;
  border: 0;
  font-weight: 800;
}
.btn-watch-ad:hover { background: #ffc14a; color: #2a120c; }
.plus-offer-card {
  background: #1a0c10;
  color: #fff4ea;
  border: 1px solid rgba(255, 176, 32, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.plus-offer-kicker {
  margin: 0 0 6px;
  color: #ffb020;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plus-offer-card .modal-title { color: #fff4ea; }
.plus-offer-lead { margin: 0 0 12px; color: #f0c9b0; }
.plus-offer-price { margin: 0 0 12px; color: #ffb020; }
.plus-offer-price strong { font-size: 2rem; letter-spacing: -0.03em; }
.plus-offer-price span { margin-left: 4px; color: #f0c9b0; font-size: 0.95rem; }
.plus-offer-perks {
  margin: 0 0 16px;
  padding-left: 1.1rem;
  color: #fff4ea;
}
.plus-offer-perks li { margin: 6px 0; }
#btn-plus-subscribe { background: #ffb020; color: #2a120c; border: 0; font-weight: 800; }
#type-options .genre-card,
#style-options .genre-card,
#gender-options .genre-card,
#pov-options .genre-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a0c10;
  color: #fff;
  text-align: left;
  box-shadow: none;
}
#type-options .genre-card img,
#style-options .genre-card img,
#gender-options .genre-card img,
#pov-options .genre-card img {
  pointer-events: none;
}
#gender-options .genre-card img,
#pov-options .genre-card img {
  object-position: center center;
}
#style-options .genre-card:hover {
  background: #1a0c10;
  color: #fff;
}
.page-create .tag-btn.style-tag {
  background: #fff;
  border: 1px solid rgba(122, 36, 48, 0.12);
  border-radius: 16px;
  color: #2c1818;
}
.page-create .tag-btn.style-tag .tag-name {
  color: #2c1818;
}
.page-create .tag-btn.style-tag .tag-desc {
  color: #6f584e;
}
.page-create .tag-btn.style-tag.tag-erotic .tag-name,
.page-create .tag-btn.style-tag.tag-tone-heat .tag-name {
  color: #7a2430;
}
.page-create #btn-refresh-types,
.page-create #btn-refresh-styles {
  background: transparent;
  color: #7a2430;
  border-color: rgba(122, 36, 48, 0.25);
}

/* Auth page sits on cream paper, so the card stays solid and the type stays dark. */
.page-auth .auth-card {
  background: #fffaf4;
  color: #2c1818;
  border: 1px solid rgba(122, 36, 48, 0.12);
  border-radius: 24px;
  box-shadow: none;
}
.page-auth .auth-card h1 {
  color: #7a2430;
}
.page-auth .auth-card .muted {
  color: #6f584e;
}
.page-auth .auth-card .btn:not(.primary) {
  background: #fff;
  color: #2c1818;
  border-color: rgba(122, 36, 48, 0.18);
}

/* Sheets over a dimmed poster stay glassy. */
.modal-card {
  background: rgba(255, 250, 244, 0.22);
  color: #fff8f2;
  border: 1px solid rgba(255, 248, 242, 0.45);
  border-radius: 24px;
  box-shadow: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal-title {
  color: #fff8f2;
  font-family: "Fraunces", Georgia, serif;
}
.page-auth .auth-card h1 {
  font-family: "Fraunces", Georgia, serif;
}
.modal-card .muted,
.modal-card .small {
  color: rgba(255, 248, 242, 0.82);
}
.page-auth .auth-card h1::before {
  content: none;
}
.h5-login-card .btn.primary,
.token-shop-card .btn.primary,
.page-auth .btn.primary {
  background: #7a2430;
  border-color: #7a2430;
  color: #fff8f2;
  box-shadow: none;
}
.feedback-textarea {
  background: #fffaf4;
  color: #2c1818;
  border-color: rgba(122, 36, 48, 0.18);
}
.feedback-textarea::placeholder {
  color: #8a6d66;
}
.page-legal .legal-doc {
  background: #fffaf4;
  color: #2c1818;
  border: none;
}
.page-legal .legal-doc h1,
.page-legal .legal-doc h2 {
  color: #7a2430;
  font-family: "Fraunces", Georgia, serif;
}

/* Reader top: the couple only. The poster’s left-side words stay out of frame. */
body.page-reader .reader-top {
  position: relative;
  min-height: 64px;
  padding: 10px 12px;
  background:
    linear-gradient(to bottom, rgba(20, 8, 12, 0.62), rgba(20, 8, 12, 0.42)),
    url("/static/art/hero-16x9.jpg?v=7") center 42% / cover no-repeat;
  border-bottom: none;
  color: #fff8f2;
  overflow: hidden;
}
body.page-reader .reader-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(to bottom, transparent, #f6f1ea);
  pointer-events: none;
}
body.page-reader .reader-title {
  color: #fff8f2;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
  background: none;
}
body.page-reader .reader-token-balance,
body.page-reader .reader-token-btn {
  background: rgba(20, 8, 12, 0.45) !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff8f2;
  font-family: "Fraunces", Georgia, serif;
  text-shadow: none;
  border-radius: 999px;
}
body.page-reader .reader-settings-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #fff8f2 !important;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  min-width: 0;
  padding: 0 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.ad-interstitial {
  background: rgba(8, 4, 6, 0.55);
  padding: 0;
}
.ad-interstitial-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  width: auto;
  max-width: none;
}
.ad-interstitial-kicker,
.ad-interstitial-close {
  display: none !important;
}
.ad-interstitial-frame {
  display: block;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.daily-coin-stat {
  background: rgba(255, 250, 244, 0.16);
  color: #fff8f2;
  border-color: rgba(255, 248, 242, 0.35);
}
.daily-coin-stat-label,
.daily-coin-stat-value {
  color: #fff8f2;
}
.daily-coin-modal-card,
.plaza-tip-modal-card {
  background: rgba(255, 250, 244, 0.22);
  color: #fff8f2;
}
.reward-ad-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  color: #fff8f2;
}
.reward-ad-kicker,
.reward-ad-card h2,
#reward-ad-status {
  display: none !important;
}
.reward-ad-slot {
  background: transparent !important;
  min-height: 0;
  margin: 0 0 14px;
}
.modal-card p,
.modal-card li,
.plaza-tip-body p,
.daily-coin-lead,
.token-shop-balance,
.token-pack-name,
.modal-overlay .btn.btn-dismiss {
  color: #fff8f2;
}
/* Story choices stay on the solid card, with the description readable. */
#tag-modal .modal-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#tag-modal .modal-title {
  color: var(--text);
}
#tag-modal .modal-card p,
#tag-modal .modal-card .muted,
#tag-modal .modal-card .small,
#tag-modal .tag-choice-desc {
  color: var(--muted);
}

/* Writing loader: same as WeaveStory. Blurred covers, light dark veil, cream type. */
.reader-loading-overlay.story-boot-overlay,
#create-loading.story-boot-overlay {
  background: #1a0c10;
  overflow: hidden;
}
.boot-cover-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.boot-cover-rotator::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 8, 12, 0.28);
}
.boot-cover-slide {
  position: absolute;
  left: -4%;
  top: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  filter: blur(8px) saturate(1.12);
  opacity: 0;
  transition: opacity 1.6s linear;
}
.story-boot-home,
.fullscreen-loading-home {
  background: rgba(20, 8, 12, 0.42) !important;
  color: #fff8f2 !important;
  border: 1px solid rgba(255, 248, 242, 0.38) !important;
  box-shadow: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
}
.story-boot-overlay .spinner-panel,
.story-boot-overlay .progress-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.story-boot-overlay .spinner-message,
.story-boot-overlay .progress-message {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff8f2;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.story-boot-overlay .spinner-eta {
  color: #fff8f2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.boot-cover-slide.is-on {
  opacity: 1;
}
.story-boot-overlay .loading-progress-wrap,
.story-boot-overlay .reader-loading {
  position: relative;
  z-index: 1;
}
