/* Arcology brand art — restrained splash integration (2026-09-08 lookfeel3) */
/* Prefer opacity / mask fades; keep wordmark layout intact */

/* —— Header / footer mark (enhance existing .brand) —— */
a.brand {
  display: grid;
  grid-template-columns: 1.85rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.7rem;
  row-gap: 0.08rem;
  align-items: center;
}
a.brand::before {
  content: "";
  grid-row: 1 / span 2;
  grid-column: 1;
  width: 1.85rem;
  height: 1.85rem;
  background: url("/img/brand/arcology-project-gold-circular-city-emblem-128.png") center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}
a.brand .brand-mark,
a.brand .brand-sub {
  grid-column: 2;
}
.site-footer a.brand::before {
  width: 1.55rem;
  height: 1.55rem;
  opacity: 0.72;
}

/* —— Home hero: entry skyline with elegant fade into page bg —— */
.hero-has-world::before {
  background:
    radial-gradient(ellipse 68% 52% at 50% 34%, rgba(7, 9, 15, 0.28), rgba(7, 9, 15, 0.82) 72%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.48) 0%, rgba(7, 9, 15, 0.72) 46%, var(--bg) 100%),
    url("/img/brand/arcology-project-entry-skyline-background-1600.webp") center 42% / cover no-repeat;
  opacity: 0.82;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,0.55) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,0.55) 78%, transparent 100%);
}
@media (max-width: 720px) {
  .hero-has-world::before {
    opacity: 0.72;
    background:
      radial-gradient(ellipse 78% 52% at 50% 28%, rgba(7, 9, 15, 0.4), rgba(7, 9, 15, 0.88) 74%),
      linear-gradient(180deg, rgba(7, 9, 15, 0.55), var(--bg)),
      url("/img/brand/arcology-project-entry-skyline-background-960.webp") center 40% / cover no-repeat;
  }
}

.hero-art-note {
  position: relative;
  z-index: 2;
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0.8;
}

/* —— Inner pages: subtle emblem watermark —— */
main.page {
  position: relative;
  isolation: isolate;
}
main.page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background:
    url("/img/brand/arcology-project-gold-circular-city-emblem-256.png")
      center 10% / min(200px, 34vw) no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 48%, transparent 82%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 48%, transparent 82%);
}
main.page > * {
  position: relative;
  z-index: 1;
}

/* Optional soft landscape wash on select sections */
.brand-wash {
  position: relative;
}
.brand-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
  background:
    url("/img/brand/arcology-project-night-lake-mountain-city-banner.webp")
      center 20% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
}
.brand-wash > * { position: relative; z-index: 1; }


/* —— Portal + wiki: same restrained emblem watermark as main.page —— */
main.portal::before,
.wiki-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background:
    url("/img/brand/arcology-project-gold-circular-city-emblem-256.png")
      center 8% / min(180px, 30vw) no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 46%, transparent 78%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 46%, transparent 78%);
}
main.portal > *,
.wiki-layout > * {
  position: relative;
  z-index: 1;
}

/* Soft top wash under header on inner shells */
main.page::after,
main.portal::after,
.wiki-layout::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 7rem;
  z-index: 0;
  pointer-events: none;
  opacity: 0.045;
  background:
    url("/img/brand/arcology-project-night-lake-mountain-city-banner.webp")
      center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

/* —— Brand expansion v2 (2026-09-08/09) — cache: brand4 —— */

/* Wordmark helpers (optional img.brand-wordmark) */
img.brand-wordmark {
  display: block;
  height: 1.65rem;
  width: auto;
  max-width: min(14rem, 58vw);
}
img.brand-wordmark.is-stacked {
  height: 2.4rem;
}

/* Section header wash + dark CSS scrim; real HTML title on top */
.ap-section-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(9.5rem, 22vw, 14rem);
  display: grid;
  align-items: end;
  margin: 0 0 1.25rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #171b1e;
  color: #f7eac9;
  box-shadow: 0 0 0 1px rgba(247, 234, 201, 0.06);
}
.ap-section-hero picture,
.ap-section-hero > img.ap-section-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ap-section-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.ap-section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 14, 17, 0.92) 0%, rgba(12, 14, 17, 0.68) 48%, rgba(12, 14, 17, 0.28) 100%),
    linear-gradient(180deg, rgba(12, 14, 17, 0.18) 0%, rgba(12, 14, 17, 0.55) 100%);
}
.ap-section-hero-inner {
  position: relative;
  z-index: 2;
  padding: 1.35rem 1.25rem 1.2rem;
  max-width: 48rem;
}
.ap-section-hero h1 {
  margin: 0;
  color: #f7eac9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  line-height: 1.12;
}
.ap-section-hero .ap-section-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 234, 201, 0.72);
}
main.page > .ap-section-hero,
main.portal > .ap-section-hero,
.wiki-main > .ap-section-hero {
  margin-top: 0.35rem;
}

/* Disclosure under heritage-as-hero washes */
.ap-section-hero + .ap-art-note {
  margin: -0.55rem 0 1rem;
}

@media (max-width: 720px) {
  .ap-section-hero { min-height: 8.5rem; border-radius: 0.4rem; }
  .ap-section-hero-inner { padding: 1.05rem 0.95rem 0.95rem; }
}

/* Login / account backdrop + opaque form panel */
.ap-login-shell {
  position: relative;
  isolation: isolate;
}
.ap-login-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, rgba(7, 9, 15, 0.35), rgba(7, 9, 15, 0.88) 72%),
    url("/img/brand/arcology-project-login-account-backdrop-1600.webp") center / cover no-repeat;
  opacity: 0.55;
}
@media (max-width: 720px) {
  .ap-login-shell::before {
    background:
      radial-gradient(ellipse 80% 60% at 50% 28%, rgba(7, 9, 15, 0.45), rgba(7, 9, 15, 0.92) 75%),
      url("/img/brand/arcology-project-login-account-backdrop-960.webp") center / cover no-repeat;
  }
}
.ap-login-shell .gate-card,
.ap-login-shell .panel.gate-card {
  background: rgba(18, 22, 28, 0.94);
  border: 1px solid rgba(247, 234, 201, 0.1);
  backdrop-filter: blur(2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* Empty-state illustration helpers */
.ap-empty {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 1.25rem 0.75rem 1.5rem;
}
.ap-empty img {
  width: min(280px, 72vw);
  height: auto;
  border-radius: 0.4rem;
  opacity: 0.92;
}
.ap-empty p {
  margin: 0;
  max-width: 28rem;
  color: var(--dim, #9aa3ad);
}
.ap-empty-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.35rem 0 0.5rem;
}
.ap-empty-inline img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 0.3rem;
  flex: 0 0 auto;
  opacity: 0.9;
}

/* Soft texture overlay (decorative only; keep tiny opacity) */
.ap-texture-soft::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background: url("/img/brand/arcology-project-texture-dark-paper-1024.webp") center / 320px repeat;
}

/* Lore / wiki illustrative interiors (not maps / not screenshots) */
.ap-lore-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 0.5rem;
}
.ap-lore-gallery figure {
  margin: 0;
  background: rgba(12, 14, 17, 0.55);
  border: 1px solid rgba(247, 234, 201, 0.08);
  border-radius: 0.45rem;
  overflow: hidden;
}
.ap-lore-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ap-lore-gallery figcaption {
  padding: 0.55rem 0.7rem 0.7rem;
  font-size: 0.78rem;
  color: var(--dim, #9aa3ad);
  line-height: 1.35;
}
.ap-art-note {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim, #9aa3ad);
  opacity: 0.85;
  margin: 0.35rem 0 0;
}

/* Loading decorative SVG beside real status text */
.loading-pulse.ap-loading-art {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.loading-pulse.ap-loading-art::before {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  background: url("/img/brand/arcology-project-loading-backdrop.svg") center / contain no-repeat;
  opacity: 0.85;
}

/* —— Extra polish (v2 pass) —— */
.ap-heritage-figure {
  margin: 0 0 1.25rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(247, 234, 201, 0.08);
  background: #12161c;
}
.ap-heritage-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
}
.ap-heritage-figure figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
}

.ap-wiki-art-teaser {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 0.85rem;
  align-items: center;
  margin: 0.85rem 0 1.15rem;
  padding: 0.65rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(247, 234, 201, 0.08);
  background: rgba(12, 14, 17, 0.45);
}
.ap-wiki-art-teaser img {
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
  display: block;
}
.ap-wiki-art-teaser p {
  margin: 0;
  color: var(--dim, #9aa3ad);
  font-size: 0.9rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .ap-wiki-art-teaser { grid-template-columns: 1fr; }
}

/* Mode cards: subtle brand edge without recoloring controls */
.mode-card .mode-frame {
  background-image:
    linear-gradient(180deg, rgba(18, 22, 28, 0.2), rgba(18, 22, 28, 0.55));
}
.mode-story .mode-frame {
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}
.mode-sandbox .mode-frame {
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.08);
}



/* uistate1 — empty title + prolonged loading recover */
.ap-empty .ap-ui-state__title,
.ap-empty strong {
  display: block;
  color: var(--ink, #ebe6d8);
  font-size: 1rem;
  font-weight: 600;
}
.loading-pulse .ap-loading-recover a { color: var(--cyan, #3ec6d8); }
/* Board empty rows with art */
.board-row.is-empty .ap-empty {
  padding: 1rem 0.5rem;
}

/* —— Hero motion v1 (2026-09-09) — cache: brand4 —— */
/* One muted WebM loop behind existing dark scrim; stills remain poster / reduced-motion */

.ap-hero-motion {
  position: relative;
  isolation: isolate;
}

video.ap-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  pointer-events: none;
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Reveal only once browser can paint frames (loadeddata / playing) */
video.ap-hero-video.is-live,
video.ap-hero-video:not([data-hm-ready]):not(.is-reduced) {
  /* keep hidden until JS marks live via playing event — default hidden */
}

/* Home: video fills the ::before atmosphere region */
.hero-has-world.ap-hero-motion > video.ap-hero-video {
  inset: -10% -5% 18% -5%;
  z-index: 0;
  object-position: center 42%;
}
@media (max-width: 720px) {
  .hero-has-world.ap-hero-motion > video.ap-hero-video {
    inset: -6% -8% 28% -8%;
    object-position: center 40%;
  }
}

/* Keep dark CSS scrim above video (existing ::before gradients + still as poster fallback) */
.hero-has-world.ap-hero-motion::before {
  z-index: 1;
}
.hero-has-world.ap-hero-motion.is-video-live::before {
  /* When loop is live, drop the photo layer weight — keep vignette/scrim only via stacked gradients.
     Still URL remains for reduced-motion / no-video; opacity handled by leaving photo under lighter veil. */
  background:
    radial-gradient(ellipse 68% 52% at 50% 34%, rgba(7, 9, 15, 0.28), rgba(7, 9, 15, 0.82) 72%),
    linear-gradient(180deg, rgba(7, 9, 15, 0.48) 0%, rgba(7, 9, 15, 0.72) 46%, var(--bg) 100%),
    url("/img/brand/arcology-project-entry-skyline-background-1600.webp") center 42% / cover no-repeat;
}

.ap-section-hero.ap-hero-motion > video.ap-hero-video {
  z-index: 0;
  object-position: center 42%;
}
.ap-section-hero.ap-hero-motion > picture,
.ap-section-hero.ap-hero-motion > img.ap-section-hero-img {
  z-index: 0;
}
.ap-section-hero.ap-hero-motion.is-video-live > picture,
.ap-section-hero.ap-hero-motion.is-video-live > img.ap-section-hero-img {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.ap-section-hero.ap-hero-motion::before {
  z-index: 1; /* dark scrim stays above media */
}
.ap-section-hero-inner {
  z-index: 2;
}

video.ap-hero-video.is-live {
  opacity: 1;
}

video.ap-hero-video.is-reduced,
.ap-hero-motion.is-reduced video.ap-hero-video {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  video.ap-hero-video {
    display: none !important;
  }
  .ap-section-hero.ap-hero-motion > picture,
  .ap-section-hero.ap-hero-motion > img.ap-section-hero-img {
    opacity: 1 !important;
  }
  .hero-has-world.ap-hero-motion.is-video-live::before {
    /* restore full still path from brand-art base rule */
  }
}

/* iOS / Android: avoid layout jump; ensure touch targets on play CTA stay ≥44px elsewhere */
.ap-hero-motion .ap-section-hero-inner,
.ap-hero-motion .hero-copy {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}



/* —— opt1 / brand4: mobile washes —— */
@media (max-width: 720px) {
  .brand-wash::after,
  main.page::after,
  main.portal::after,
  .wiki-layout::after {
    background:
      url("/img/brand/arcology-project-night-lake-mountain-city-banner-960.webp")
        center top / cover no-repeat;
  }
}

/* —— Splash mobile / iOS video quirks (opt1 companion) —— */
@supports (-webkit-touch-callout: none) {
  /* iOS: keep video compositor layer cheap; avoid full-bleed paint storms */
  video.ap-hero-video {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}
@media (max-width: 720px) {
  .ap-section-hero.ap-hero-motion {
    min-height: 8.5rem;
  }
  /* Preserve readable titles over scrim on small screens */
  .ap-section-hero-inner h1 {
    font-size: clamp(1.45rem, 7vw, 1.9rem);
  }
  a.play-mini,
  a.login-mini,
  a.btn,
  .hero-window {
    min-height: 44px;
  }
}



/* Public lore archive gallery 2026-09-09 */
.ap-archive-intro { max-width: 42rem; }
.ap-archive-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}
.ap-archive-gallery figure {
  margin: 0;
  background: #14171c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.65rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ap-archive-gallery a.ap-archive-thumb {
  display: block;
  background: #0a0c0f;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.ap-archive-gallery a.ap-archive-thumb.is-wide { aspect-ratio: 16 / 10; }
.ap-archive-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ap-archive-gallery figcaption {
  padding: 0.75rem 0.9rem 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.82);
}
.ap-archive-gallery figcaption strong {
  display: block;
  color: #f3e6c8;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.ap-archive-gallery .ap-archive-meta {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.ap-archive-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.crumb {
  font-size: 0.85rem;
  color: var(--dim, #9aa3ad);
  margin: 0 0 0.35rem;
}
.crumb a { color: inherit; }

/* Archive era sections + chips · 2026-09-09 evening */
.ap-archive-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.88rem;
}
.ap-archive-jump a {
  color: rgba(243, 230, 200, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 230, 200, 0.25);
}
.ap-archive-jump a:hover { border-bottom-color: rgba(243, 230, 200, 0.7); }
.ap-archive-era { margin: 2rem 0 2.5rem; }
.ap-archive-era-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.ap-archive-era-head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #f3e6c8;
}
.ap-archive-era-intro {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ap-era-chip {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 230, 200, 0.28);
  color: rgba(243, 230, 200, 0.8);
  background: rgba(243, 230, 200, 0.06);
  white-space: nowrap;
}
.ap-archive-gallery figcaption .ap-era-chip {
  margin-bottom: 0.35rem;
}

/* Wiki history inline thumbs */
.wiki-era-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 1.25rem;
}
.wiki-era-thumbs a {
  display: block;
  width: 7.5rem;
  text-decoration: none;
  color: inherit;
  background: #14171c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.45rem;
  overflow: hidden;
}
.wiki-era-thumbs a:hover { border-color: rgba(243, 230, 200, 0.35); }
.wiki-era-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0a0c0f;
}
.wiki-era-thumbs span {
  display: block;
  padding: 0.35rem 0.45rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: rgba(255,255,255,0.7);
}

/* Chronicle — in-world fiction news cards (brand7) */
.ap-chronicle-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 2rem;
  display: grid;
  gap: 1rem;
}
.ap-chronicle-list > li { margin: 0; }
.ap-chronicle-card {
  display: block;
  padding: 1rem 1.1rem 1.15rem;
  background: #14171c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.55rem;
  text-decoration: none;
  color: inherit;
}
.ap-chronicle-card h2 {
  margin: 0.45rem 0 0.55rem;
  font-size: 1.15rem;
  line-height: 1.35;
  color: #f3e6c8;
}
.ap-chronicle-card p {
  margin: 0 0 0.55rem;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ap-chronicle-card p:last-child { margin-bottom: 0; }
.ap-chronicle-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.15rem;
}
.ap-outlet-chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(120, 180, 255, 0.14);
  color: #b8d4ff;
  border: 1px solid rgba(120, 180, 255, 0.28);
}
.ap-fiction-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(243, 230, 200, 0.85);
  border: 1px solid rgba(243, 230, 200, 0.28);
  background: rgba(243, 230, 200, 0.06);
}

/* Story reader demo — UX preview (brand8) */
.ap-reader-banner {
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(243, 200, 120, 0.35);
  background: rgba(243, 200, 120, 0.08);
  color: rgba(255, 245, 220, 0.92);
  font-size: 0.95rem;
  line-height: 1.45;
}
.ap-reader-banner strong { color: #f3e6c8; }
.ap-reader-demo {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 900px) {
  .ap-reader-demo {
    grid-template-columns: minmax(14rem, 17rem) minmax(0, 1fr);
    align-items: start;
  }
}
.ap-reader-h {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #f3e6c8;
}
.ap-reader-hint {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.ap-reader-picker {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ap-reader-pick {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.8rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: #14171c;
  color: rgba(255,255,255,0.88);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.35;
}
.ap-reader-pick:hover {
  border-color: rgba(184, 212, 255, 0.35);
  background: #181c22;
}
.ap-reader-pick.is-active {
  border-color: rgba(184, 212, 255, 0.55);
  background: rgba(120, 180, 255, 0.12);
  color: #e8f0ff;
  box-shadow: 0 0 0 1px rgba(120, 180, 255, 0.15);
}
.ap-reader-panel {
  padding: 1rem 1.15rem 1.25rem;
  background: #14171c;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.55rem;
}
.ap-reader-surface-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(184, 212, 255, 0.85);
}
.ap-reader-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.ap-reader-title {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #f3e6c8;
}
.ap-reader-count {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.ap-reader-figure {
  margin: 0 0 1rem;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0a0c0f;
}
.ap-reader-figure img {
  display: block;
  width: 100%;
  max-height: 28rem;
  object-fit: contain;
  background: #0a0c0f;
}
.ap-reader-text {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.86);
  background: #0c0e11;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.4rem;
  overflow-x: auto;
  max-height: 22rem;
}
.ap-reader-nav {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.ap-reader-nav .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ap-reader-links {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.ap-reader-links a { color: #b8d4ff; }


/* demotaste6 */
.hero-art-note {
  color: rgba(255, 176, 32, 0.78);
  opacity: 0.92;
}
