:root {
  --bg: #050509;
  --fg: #f5f5f5;
  --muted: #a0a0aa;
  --accent: #f5c76a;
  --border: #27272f;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #11111b 0, #050509 55%);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
}

body {
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 900px;
  padding: 32px 20px 64px;
}

section { margin: 48px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.block {
  border-left: 1px solid var(--border);
  padding-left: 18px;
}

.opening {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
}

.opening p { margin: 0.3em 0; }

.apparition {
  max-width: 640px;
  font-size: 0.98rem;
  color: #e4e4ec;
}

.qa { margin-bottom: 24px; }

.qa-q {
  font-weight: 500;
  margin-bottom: 4px;
}

.qa-q::before {
  content: "Q:";
  font-weight: 600;
  margin-right: 6px;
  color: var(--accent);
}

.qa-a { color: #e1e1ea; }

.qa-a::before {
  content: "R:";
  font-weight: 600;
  margin-right: 6px;
  color: var(--muted);
}

.fragments-list p { margin: 0.4em 0 0.8em; }

.fragments-list p::before {
  content: "– ";
  color: var(--muted);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.manga-panel {
  border: 1px solid var(--border);
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  background: #05050a;
  position: relative;
}

.manga-frame {
  border: 1px solid var(--border);
  padding: 10px;
  font-size: 0.78rem;
}

.manga-frame.top,
.manga-frame.bottom { min-height: 48px; }

.manga-frame.middle { min-height: 120px; }

.manga-caption { font-size: 0.78rem; }

.manga-thought {
  font-size: 0.74rem;
  font-style: italic;
  color: var(--muted);
  margin-top: 6px;
}

.trajectoires-list p {
  margin: 0.35em 0 0.35em;
  font-size: 0.9rem;
}

.echoes-list p {
  margin: 0.4em 0 0.9em;
  font-size: 0.9rem;
  color: #e9e9f3;
}

.echoes-list p::before {
  content: "❝ ";
  color: var(--muted);
}

.portals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 10px;
}

.portal-card {
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.portal-card a {
  color: var(--accent);
  text-decoration: none;
}

.portal-card a:hover { text-decoration: underline; }

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

@media (max-width: 640px) {
  main { padding: 24px 16px 48px; }
  .block { padding-left: 14px; }
}

/* =========================
   Additions for your current HTML
   ========================= */

/* “Stealth” links should not look like links by default */
a.stealth {
  color: inherit;
  text-decoration: none;
}

/* Optional: make the hidden portal feel intentional when hovered */
a.stealth:hover {
  opacity: 0.92;
}

/* The manga panel is clickable portal: keep it clean */
.manga-panel.portal {
  cursor: pointer;
}

/* small helper used in index.html */
.muted-inline {
  color: var(--muted);
}

.subtle-gap {
  margin-top: 14px;
}

/* the micro-dot portal row at the end */
.micro-dots {
  text-align: right;
  opacity: 0.35;
  letter-spacing: 6px;
  margin-top: 10px;
}

.micro-dots a.stealth {
  border-bottom: none;
}
:root {
  --bg: #0a0003;
  --fg: #f2e8e6;
  --muted: #a07a7a;
  --accent: #b11226;
  --gold: #c8a44a;
  --border: #2a0f14;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(177,18,38,0.15), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(200,164,74,0.08), transparent 40%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.65;
}

body {
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 880px;
  padding: 70px 24px 100px;
}

section {
  margin: 60px 0;
}

.title {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}

.subtitle {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.block {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  max-width: 720px;
}

.block p {
  margin: 1.2em 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.excerpt-placeholder {
  min-height: 160px;
  border-left: 1px solid var(--accent);
}

.footer {
  margin-top: 80px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* ============================= */
/* DAEMONIC TIME (page-scope)    */
/* ============================= */

body.dt {
  margin: 0;
  background: radial-gradient(circle at 15% 10%, #0e1018 0%, #050509 55%, #020207 100%);
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.dt-wrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 44px 18px 72px;
}

.dt-head{
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 22px;
}

.dt-mark{
  letter-spacing: 0.36em;
  font-size: 0.82rem;
  color: rgba(245,199,106,0.95);
  text-transform: uppercase;
}

.dt-sub{
  margin-top: 10px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.08em;
}

.dt-panel{
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.22);
  padding: 18px 18px 16px;
  margin-top: 14px;
}

.dt-panel--sealed{
  background: rgba(0,0,0,0.30);
}

.dt-label{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
  margin-bottom: 10px;
}

.dt-text{
  margin: 0 0 12px;
  line-height: 1.75;
  color: rgba(245,245,245,0.92);
}

.dt-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(245,245,245,0.86);
  line-height: 1.7;
}

.dt-list li{
  margin: 8px 0;
}

.dt-k{
  color: rgba(245,199,106,0.90);
  letter-spacing: 0.06em;
}

.dt-note{
  margin: 14px 0 0;
  color: rgba(255,255,255,0.48);
  font-style: italic;
}

.dt-seal{
  margin-top: 10px;
  display: inline-flex;
  gap: 6px;
  opacity: 0.40;
  letter-spacing: 0.6em;
}

.dt-foot{
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
}

.dt-footline{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.dt-return{
  color: rgba(245,245,245,0.70);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,245,245,0.28);
  padding-bottom: 2px;
}

.dt-return:hover{
  color: rgba(245,199,106,0.95);
  border-bottom-color: rgba(245,199,106,0.55);
}
/* =========================
   INDEX PORTAL IMAGE MODE
   ========================= */

body.index-portal {
  margin: 0;
  background: #050509;
  display: flex;
  justify-content: center;
}

.portal-wrap {
  width: 100%;
  max-width: 1200px;
  padding: 18px;
}

.portal-stage {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.portal-image {
  display: block;
  width: 100%;
  height: auto;
}

/* Base hotspot */
.hotspot {
  position: absolute;
  display: block;
  /* invisible but clickable */
  background: rgba(255,255,255,0);
  cursor: pointer;
}

/* OPTIONAL: turn on to debug placements */
/*
.hotspot { background: rgba(245,199,106,0.18); outline: 1px solid rgba(245,199,106,0.35); }
*/

/* --- Hotspot placements (percent-based) --- */
/* 1) DRI book (bottom-left table area) */
.hs-dri {
  left: 6%;
  top: 78%;
  width: 22%;
  height: 16%;
}

/* 2) Articulation newspapers (bottom-right) */
.hs-articulation {
  left: 66%;
  top: 79%;
  width: 28%;
  height: 16%;
}

/* 3) Daemonic Time shelves (left library wall) */
.hs-daemonic {
  left: 0%;
  top: 18%;
  width: 22%;
  height: 54%;
}

/* 4) Extrature building (center far outside) */
.hs-extrature {
  left: 56%;
  top: 30%;
  width: 12%;
  height: 18%;
}

/* 5) Coordinate (light pool / floor medallion center) */
.hs-coordinate {
  left: 36%;
  top: 58%;
  width: 28%;
  height: 18%;
  border-radius: 999px; /* gives the “ellipse” feel */
}
.hs-croupier {
  left: 38%;
  top: 78%;
  width: 18%;
  height: 12%;
}