/* ============================================================
   CANDENTED — MYTHOS LAYER
   Artwork-driven additions to the base visual system.
   ============================================================ */

:root {
  /* Warm gold-amber pulled directly out of the artwork */
  --ember:        #e89548;
  --ember-soft:   #f0b878;
  --ember-deep:   #8a4a1a;
  --ember-ghost:  rgba(232, 149, 72, 0.08);

  /* Cool teal-aurora from the artwork luminescence */
  --aurora:       #6ad9c6;
  --aurora-deep:  #1a8a82;
  --aurora-ghost: rgba(106, 217, 198, 0.08);

  /* Soft violet from the cosmic robes */
  --plum:         #9c6acf;
  --plum-deep:    #4a2966;
  --plum-ghost:   rgba(156, 106, 207, 0.08);

  /* Atmosphere — how much the void presses against the artwork */
  --atmosphere:   0.62;       /* 0 = pure artwork, 1 = pure void */
  --drift-speed:  90s;
  --bloom:        1;          /* 0..1 — overall artwork glow opacity */

  /* Active accent (rewired per tweak) — defaults inherit cyan */
  --accent:       var(--cyan);
  --accent-soft:  var(--cyan-dim);
  --accent-warm:  var(--ember);
  --accent-cool:  var(--aurora);
}

/* When ATMOSPHERE goes luminous, soften the global scanline so the art breathes */
body.atmos-luminous::before { opacity: 0.4; }
body.atmos-luminous::after  { opacity: 0.015; }

/* ── HERO — FULL-BLEED ARTWORK ──────────────────────────── */
.hero-mythos {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 4rem) var(--page-pad) 6rem;
  overflow: hidden;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.hero-art img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0;
  filter: saturate(1.05) contrast(1.04);
  transition: opacity 1.4s var(--ease-out);
  animation: ken-burns 28s ease-in-out infinite alternate;
}
.hero-art img.active { opacity: calc(1 - var(--atmosphere) * 0.55); }

@keyframes ken-burns {
  from { transform: scale(1.02) translate(-0.4%, 0.2%); }
  to   { transform: scale(1.10) translate(0.6%, -0.6%); }
}

/* Veil — dark vignette + radial focus, soft on the corners */
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%,
      rgba(2,2,10,calc(var(--atmosphere) * 0.45)) 0%,
      rgba(2,2,10,calc(var(--atmosphere) * 0.72)) 60%,
      rgba(2,2,10,0.96) 100%),
    linear-gradient(180deg,
      rgba(2,2,10,0.75) 0%,
      transparent 22%,
      transparent 75%,
      rgba(2,2,10,0.95) 100%);
}

/* Subtle warm bloom rising from the bottom — picks up the ember tones */
.hero-bloom {
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 80%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(232, 149, 72, calc(0.12 * var(--bloom))) 0%,
    rgba(156, 106, 207, calc(0.08 * var(--bloom))) 30%,
    transparent 65%);
  filter: blur(40px);
  opacity: calc(1 - var(--atmosphere) * 0.4);
}

.hero-mythos .hero-content { position: relative; z-index: 1; max-width: 920px; }

.hero-mythos .hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.92;
  color: var(--text);
  text-shadow:
    0 0 60px rgba(2,2,10,0.85),
    0 0 120px rgba(2,2,10,0.7),
    0 2px 4px rgba(0,0,0,0.95);
  margin-bottom: 0.85rem;
  /* No transition so the centering hits the final position immediately on load/resize */
}
.title-anchor { /* visual marker only — JS uses this to compute center */ }
.hero-mythos .hero-title .accent {
  color: var(--accent);
  text-shadow:
    0 0 60px rgba(2,2,10,0.85),
    0 0 30px var(--accent-soft),
    0 0 90px var(--accent-soft);
}

.hero-mythos .hero-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.5vw, 0.8rem);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 12px rgba(2,2,10,0.9);
  margin-bottom: 2.5rem;
  opacity: 0.85;
}

.hero-mythos .hero-statement {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-style: italic;
  color: rgba(232, 232, 250, 0.92);
  text-shadow: 0 2px 24px rgba(2,2,10,0.95);
  max-width: 720px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
}

.hero-mythos .hero-pre {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
  text-shadow: 0 0 16px rgba(2,2,10,0.8);
  opacity: 0.95;
}

/* Piece credit at hero corner */
.hero-credit {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 232, 250, 0.55);
  text-align: right;
  line-height: 1.7;
  pointer-events: none;
}
.hero-credit .credit-num { color: var(--accent); opacity: 0.8; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(232, 232, 250, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-hint 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-hint {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(38px); opacity: 0; }
}

/* ── DRIFT — slow horizontal river of artwork ─────────── */
.drift {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 4rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, transparent, rgba(2,2,10,0.4), transparent),
    var(--abyss);
}

.drift-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 2rem;
}

.drift-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: drift-scroll var(--drift-speed) linear infinite;
}
body.drift-still .drift-track { animation-play-state: paused; }

@keyframes drift-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.drift-piece {
  position: relative;
  height: 220px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--deep);
  cursor: pointer;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.drift-piece img {
  height: 100%;
  width: auto;
  display: block;
  filter: saturate(1.08);
  transition: transform 0.6s var(--ease), filter 0.5s;
}
.drift-piece::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2,2,10,0.4));
  pointer-events: none;
  transition: opacity 0.4s;
}
.drift-piece:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.18), 0 0 80px rgba(232,149,72,0.12);
  z-index: 2;
}
.drift-piece:hover img { transform: scale(1.06); filter: saturate(1.18) brightness(1.05); }
.drift-piece:hover::after { opacity: 0; }

.drift-piece-num {
  position: absolute;
  top: 0.6rem;
  left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(2,2,10,0.9);
  z-index: 1;
}

/* ── MINDSCAPE GALLERY — altar + supporting pieces ──── */
.mindscape {
  position: relative;
  padding: var(--section-gap) var(--page-pad);
  overflow: hidden;
}
.mindscape::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(156, 106, 207, calc(0.08 * var(--bloom))) 0%,
    transparent 65%);
  pointer-events: none;
}

.mindscape-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem;
  position: relative;
}

.mindscape-head .section-label {
  justify-content: center;
}

.mindscape-altar {
  position: relative;
  max-width: 1240px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.altar-side, .altar-center {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--deep);
  cursor: pointer;
}
.altar-side  { aspect-ratio: 2/3; }
.altar-center { aspect-ratio: 16/10; }

.altar-side img, .altar-center img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.altar-side:hover img, .altar-center:hover img {
  transform: scale(1.04);
  filter: saturate(1.15) brightness(1.06);
}

.altar-side::before, .altar-center::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 50%,
    rgba(2,2,10,0.55) 88%,
    rgba(2,2,10,0.85) 100%);
  z-index: 1;
  pointer-events: none;
}

.altar-side::after, .altar-center::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 0.5s;
  pointer-events: none;
  z-index: 2;
}
.altar-side:hover::after, .altar-center:hover::after {
  box-shadow: inset 0 0 0 1px var(--accent-soft),
              inset 0 0 60px rgba(0,0,0,0.3);
}

.altar-meta {
  position: absolute;
  bottom: 1.25rem;
  left: 1.4rem;
  right: 1.4rem;
  z-index: 3;
  pointer-events: none;
}
.altar-num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.altar-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  color: var(--text);
  text-shadow: 0 2px 16px rgba(2,2,10,0.95);
}
.altar-center .altar-title { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }

.altar-caption {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-dim);
  margin-top: 0.6rem;
  line-height: 1.55;
  max-width: 90%;
  opacity: 0.85;
}

/* Supporting grid below altar */
.mindscape-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 1.5rem auto 0;
  max-width: 1240px;
  border: 1px solid var(--border);
}
body.density-sparse  .mindscape-grid { grid-template-columns: repeat(3, 1fr); }
body.density-packed  .mindscape-grid { grid-template-columns: repeat(6, 1fr); }

.grid-piece {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--deep);
  cursor: pointer;
}
.grid-piece img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s;
  filter: saturate(0.92) brightness(0.85);
}
.grid-piece::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(2,2,10, calc(0.25 + 0.35 * var(--atmosphere))) 100%);
  transition: opacity 0.4s;
  pointer-events: none;
}
.grid-piece:hover img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(1);
}
.grid-piece:hover::after { opacity: 0.4; }

.grid-piece-label {
  position: absolute;
  left: 0.8rem;
  bottom: 0.7rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(2,2,10,0.95);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.grid-piece:hover .grid-piece-label { opacity: 1; transform: translateY(0); }
.grid-piece-label .label-num { color: var(--accent); margin-right: 0.5rem; }

body.density-sparse .grid-piece:nth-child(n+7) { display: none; }

/* ── LIGHTBOX ────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(2, 2, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.lightbox.open { display: flex; opacity: 1; }

.lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border: 1px solid var(--border);
  box-shadow:
    0 0 80px rgba(0, 229, 255, 0.12),
    0 0 200px rgba(232, 149, 72, 0.12);
}

.lightbox-meta {
  position: absolute;
  bottom: -3rem;
  left: 0;
  right: 0;
  text-align: center;
}
.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.lightbox-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px; height: 44px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 48px; height: 48px;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s;
}
.lightbox-nav.prev { left: 2rem; }
.lightbox-nav.next { right: 2rem; }
.lightbox-nav:hover { border-color: var(--accent); color: var(--accent); }

/* ── PORTAL CARDS — artwork-tinted ──────────────────── */
.portals-mythos .portal-card {
  background: var(--deep);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  justify-content: flex-end;
  text-align: left;
  align-items: flex-start;
  padding: 2rem 1.75rem;
}

.portals-mythos .portal-card .portal-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.portals-mythos .portal-card .portal-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 1s var(--ease-out), opacity 0.5s, filter 0.5s;
}
.portals-mythos .portal-card:hover .portal-bg img {
  transform: scale(1.08);
  opacity: 0.62;
  filter: saturate(1.15) contrast(1.05);
}

.portals-mythos .portal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(2,2,10,0.55) 0%,
    rgba(2,2,10,0.65) 40%,
    rgba(2,2,10,0.92) 100%);
  transition: opacity 0.5s;
  opacity: 1;
}
.portals-mythos .portal-card:hover::after { opacity: 0.78; }

.portals-mythos .portal-card .portal-icon {
  font-size: 1.85rem;
  text-shadow: 0 0 18px rgba(2,2,10,0.95);
  margin-bottom: auto;
  align-self: flex-start;
}
.portals-mythos .portal-card .portal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(2,2,10,0.95);
  margin-bottom: 0.5rem;
}
.portals-mythos .portal-card .portal-desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-style: italic;
  color: rgba(232, 232, 250, 0.78);
  text-shadow: 0 1px 8px rgba(2,2,10,0.9);
  line-height: 1.55;
}

.portals-mythos .portal-card[data-tint="cyan"]  .portal-icon { color: var(--cyan); }
.portals-mythos .portal-card[data-tint="violet"] .portal-icon { color: var(--violet-light); }
.portals-mythos .portal-card[data-tint="gold"]   .portal-icon { color: var(--ember-soft); }
.portals-mythos .portal-card[data-tint="aurora"] .portal-icon { color: var(--aurora); }

/* ── CURRENT ERA — luminous backdrop ────────────────── */
.era-mythos {
  position: relative;
  overflow: hidden;
  background: var(--abyss);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.era-mythos .era-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.era-mythos .era-backdrop img {
  position: absolute;
  inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  filter: blur(50px) saturate(1.2);
  opacity: calc(0.45 * var(--bloom));
  transform: scale(1.2);
}
.era-mythos .era-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(6,6,15,0.85),
    rgba(6,6,15,0.65),
    rgba(6,6,15,0.9));
}
.era-mythos .section { position: relative; z-index: 1; }

/* ── LORE — deity bloom backdrop ─────────────────────── */
.lore-mythos {
  position: relative;
  overflow: hidden;
  padding: var(--section-gap) var(--page-pad);
  text-align: center;
}
.lore-mythos .lore-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.lore-mythos .lore-backdrop img {
  position: absolute;
  inset: -20%;
  width: 140%; height: 140%;
  object-fit: cover;
  object-position: center;
  filter: blur(80px) saturate(1.25);
  opacity: calc(0.4 * var(--bloom));
  mix-blend-mode: screen;
}
.lore-mythos .lore-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    transparent 0%,
    rgba(2,2,10,0.6) 60%,
    rgba(2,2,10,0.9) 100%);
}
.lore-mythos .lore-content { position: relative; z-index: 1; }

.lore-mythos .lore-quote {
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-style: italic;
  color: var(--text);
  max-width: 880px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-shadow: 0 2px 30px rgba(2,2,10,0.95);
}
.lore-mythos .lore-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--ember-soft);
  opacity: 0.25;
  position: absolute;
  top: -2rem;
  left: -2rem;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 30px rgba(232, 149, 72, 0.4);
}

/* ── TWEAKS PANEL ────────────────────────────────────── */
.tweaks-panel {
  position: fixed;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  z-index: 9500;
  width: 280px;
  background: rgba(6, 6, 15, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 1.4rem 1.4rem 1.5rem;
  font-family: var(--font-ui);
  color: var(--text);
  display: none;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.05),
    0 30px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(0,229,255,0.06);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}
.tweaks-panel.open { display: block; }

.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.tweaks-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
.tweaks-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}
.tweaks-close:hover { color: var(--accent); }

.tweak-row { margin-top: 1.1rem; }
.tweak-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.tweak-value {
  color: var(--accent);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  font-style: normal;
}

.tweak-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 1px solid var(--border);
}
.tweak-seg button {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 0.4rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tweak-seg button:last-child { border-right: none; }
.tweak-seg button:hover { color: var(--text); }
.tweak-seg button.active {
  background: var(--accent);
  color: var(--void);
}

.tweak-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}
.tweak-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px; height: 14px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
  box-shadow: 0 0 12px var(--accent-soft);
}
.tweak-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
.tweak-slider::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.tweak-swatch-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.tweak-swatch {
  height: 32px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  background: var(--surface);
}
.tweak-swatch::after {
  content: '';
  position: absolute;
  inset: 0;
}
.tweak-swatch[data-color="cyan"]::after   { background: linear-gradient(135deg, var(--cyan),   var(--cyan-dim)); }
.tweak-swatch[data-color="violet"]::after { background: linear-gradient(135deg, var(--violet-light), var(--plum-deep)); }
.tweak-swatch[data-color="gold"]::after   { background: linear-gradient(135deg, var(--ember-soft), var(--ember-deep)); }
.tweak-swatch[data-color="aurora"]::after { background: linear-gradient(135deg, var(--aurora),  var(--aurora-deep)); }
.tweak-swatch:hover { transform: translateY(-2px); }
.tweak-swatch.active {
  box-shadow: 0 0 0 1px var(--text), 0 0 16px var(--accent-soft);
}

.tweak-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  padding: 0.55rem 0.7rem;
  text-transform: uppercase;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.tweak-select:focus, .tweak-select:hover { border-color: var(--accent); }

.tweaks-footer {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-ghost);
  text-align: center;
  line-height: 1.7;
}

/* ── ACCENT REWIRING ──────────────────────────────────── */
body[data-accent="cyan"]   { --accent: var(--cyan);         --accent-soft: var(--cyan-dim); }
body[data-accent="violet"] { --accent: var(--violet-light); --accent-soft: rgba(168,85,247,0.55); }
body[data-accent="gold"]   { --accent: var(--ember);        --accent-soft: rgba(232,149,72,0.55); }
body[data-accent="aurora"] { --accent: var(--aurora);       --accent-soft: rgba(106,217,198,0.55); }

/* When accent changes, rewire the named hooks too */
body[data-accent="violet"] .section-label,
body[data-accent="violet"] .hero-pre,
body[data-accent="violet"] .writing-series,
body[data-accent="violet"] .merch-category,
body[data-accent="violet"] .release-year,
body[data-accent="violet"] .portal-icon,
body[data-accent="violet"] .social-icon,
body[data-accent="violet"] .connect-icon { color: var(--violet-light) !important; }

body[data-accent="gold"] .section-label,
body[data-accent="gold"] .hero-pre,
body[data-accent="gold"] .writing-series,
body[data-accent="gold"] .merch-category,
body[data-accent="gold"] .release-year,
body[data-accent="gold"] .portal-icon,
body[data-accent="gold"] .social-icon,
body[data-accent="gold"] .connect-icon,
body[data-accent="gold"] .hero-title .accent { color: var(--ember) !important; }

body[data-accent="aurora"] .section-label,
body[data-accent="aurora"] .hero-pre,
body[data-accent="aurora"] .writing-series,
body[data-accent="aurora"] .merch-category,
body[data-accent="aurora"] .release-year,
body[data-accent="aurora"] .portal-icon,
body[data-accent="aurora"] .social-icon,
body[data-accent="aurora"] .connect-icon { color: var(--aurora) !important; }

body[data-accent="violet"] .btn-primary { background: var(--violet-light); }
body[data-accent="gold"]   .btn-primary { background: var(--ember); color: var(--void); }
body[data-accent="aurora"] .btn-primary { background: var(--aurora); color: var(--void); }

body[data-accent="violet"] .section-label::before { background: var(--violet-light); }
body[data-accent="gold"]   .section-label::before { background: var(--ember); }
body[data-accent="aurora"] .section-label::before { background: var(--aurora); }

/* Sigil recolor */
body[data-accent="violet"] .hero-sigil circle,
body[data-accent="violet"] .hero-sigil polygon { stroke: var(--violet-light); }
body[data-accent="gold"]   .hero-sigil circle,
body[data-accent="gold"]   .hero-sigil polygon { stroke: var(--ember-soft); }
body[data-accent="aurora"] .hero-sigil circle,
body[data-accent="aurora"] .hero-sigil polygon { stroke: var(--aurora); }

/* ── DRIFT SPEED MODES ────────────────────────────────── */
body.drift-slow .drift-track { animation-duration: 140s; }
body.drift-med  .drift-track { animation-duration: 80s; }
body.drift-fast .drift-track { animation-duration: 45s; }

/* ── ABOUT-LIKE PREVIEW (artwork as portrait) ─────────── */
.about-tease {
  position: relative;
  padding: var(--section-gap) var(--page-pad);
  max-width: 1240px;
  margin: 0 auto;
}
.about-tease-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.about-tease-frame {
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 2/3;
}
.about-tease-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
}
.about-tease-frame:hover img { transform: scale(1.05); }
.about-tease-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2,2,10,0.6));
  pointer-events: none;
}
.about-tease-body {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.95;
  color: var(--text-dim);
}
.about-tease-body p + p { margin-top: 1.4rem; }
.about-tease-body em { color: var(--text); }
.about-tease-body strong { color: var(--accent); font-weight: 400; }

/* ── PAGE HERO (sub-pages) — artwork backdrop ─────────── */
.page-hero-mythos {
  position: relative;
  min-height: 62vh;
  padding: calc(var(--nav-h) + 5rem) var(--page-pad) 5rem;
  overflow: hidden;
  isolation: isolate;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: flex-end;
}
.page-hero-mythos .page-hero-art {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}
.page-hero-mythos .page-hero-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.05) contrast(1.04);
  animation: ken-burns 36s ease-in-out infinite alternate;
  opacity: calc(1 - var(--atmosphere) * 0.5);
}
.page-hero-mythos .page-hero-veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 30% 70%,
      rgba(2,2,10,calc(0.55 + var(--atmosphere) * 0.2)) 0%,
      rgba(2,2,10,calc(0.78 + var(--atmosphere) * 0.15)) 65%,
      rgba(2,2,10,0.98) 100%),
    linear-gradient(180deg,
      rgba(2,2,10,0.85) 0%,
      transparent 30%,
      transparent 60%,
      rgba(2,2,10,0.95) 100%);
}
.page-hero-mythos .page-hero-bloom {
  position: absolute;
  bottom: -20%;
  left: 15%;
  width: 70%;
  height: 60%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at center,
    rgba(232, 149, 72, calc(0.1 * var(--bloom))) 0%,
    rgba(156, 106, 207, calc(0.06 * var(--bloom))) 35%,
    transparent 65%);
  filter: blur(40px);
  opacity: calc(1 - var(--atmosphere) * 0.4);
}
.page-hero-mythos .page-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.page-hero-mythos .page-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 0.95;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 40px rgba(2,2,10,0.85), 0 2px 8px rgba(0,0,0,0.95);
}
.page-hero-mythos .page-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-style: italic;
  color: rgba(232, 232, 250, 0.88);
  text-shadow: 0 2px 18px rgba(2,2,10,0.95);
  max-width: 620px;
  line-height: 1.7;
}
.page-hero-mythos .section-label {
  text-shadow: 0 0 14px rgba(2,2,10,0.95);
  color: var(--accent);
}
.page-hero-mythos .page-hero-credit {
  position: absolute;
  bottom: 1.75rem;
  right: var(--page-pad);
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(232, 232, 250, 0.55);
  text-align: right;
  line-height: 1.7;
  pointer-events: none;
}
.page-hero-mythos .page-hero-credit .credit-num { color: var(--accent); opacity: 0.85; }

/* ── ENTITY PORTRAITS (world.html) ─────────────────────── */
.entity-grid.entity-portraits .entity-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.entity-grid.entity-portraits .entity-art {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.entity-grid.entity-portraits .entity-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.5s;
  filter: saturate(1.02);
}
.entity-grid.entity-portraits .entity-card:hover .entity-art img {
  transform: scale(1.06);
  filter: saturate(1.18) brightness(1.04);
}
.entity-grid.entity-portraits .entity-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--deep) 100%);
  pointer-events: none;
}
.entity-grid.entity-portraits .entity-body {
  padding: 1.75rem 1.85rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.entity-grid.entity-portraits .entity-card::before {
  top: 1rem;
  right: 1rem;
  z-index: 2;
  text-shadow: 0 2px 12px rgba(2,2,10,0.95);
}
.entity-grid.entity-portraits .entity-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}
.entity-grid.entity-portraits .entity-role { margin-bottom: 1rem; }

/* ── COSM CARD with artwork accent (writing.html) ───── */
.writing-card.with-art {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.writing-card.with-art .writing-card-art {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.writing-card.with-art .writing-card-art img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
  filter: saturate(1) brightness(0.95);
}
.writing-card.with-art:hover .writing-card-art img { transform: scale(1.06); }
.writing-card.with-art .writing-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,11,26,0.85));
}
.writing-card.with-art .writing-card-body { padding: 2rem 2rem 2.25rem; flex: 1; display: flex; flex-direction: column; }
.writing-card.with-art .writing-link { margin-top: auto; }

/* ── ABOUT PORTRAIT (about.html) — artwork as portrait ── */
.about-portrait-mythos {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 2/3;
}
.about-portrait-mythos img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
}
.about-portrait-mythos:hover img { transform: scale(1.04); }
.about-portrait-mythos::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(2,2,10,0.6));
  pointer-events: none;
}
.about-portrait-caption {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(2,2,10,0.95);
  display: flex;
  justify-content: space-between;
  opacity: 0.85;
  pointer-events: none;
}
.about-portrait-caption .pc-num { color: var(--accent); }

/* ── PAGE-LEVEL BLOOM BACKDROPS ─────────────────────── */
.section-bloom {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.section-bloom > .section-bloom-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.section-bloom > .section-bloom-art img {
  position: absolute;
  inset: -15%;
  width: 130%; height: 130%;
  object-fit: cover;
  filter: blur(60px) saturate(1.2);
  opacity: calc(0.32 * var(--bloom));
}
.section-bloom > .section-bloom-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,6,15,0.78), rgba(6,6,15,0.6), rgba(6,6,15,0.88));
}

/* ── HIDDEN NEOCOSM PORTAL ───────────────────────────── */
.neocosm-portal {
  position: fixed;
  inset: 0;
  z-index: 9800;
  background: radial-gradient(ellipse at center,
    rgba(11, 5, 25, 0.92) 0%,
    rgba(2, 2, 10, 0.97) 60%,
    rgba(2, 2, 10, 0.99) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5rem 2rem 4rem;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
  overflow: auto;
}
.neocosm-portal.open { display: flex; opacity: 1; }

.neocosm-portal::before {
  content: '';
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(232, 149, 72, 0.12), transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(156, 106, 207, 0.12), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(106, 217, 198, 0.08), transparent 60%);
  filter: blur(60px);
  animation: portal-breathe 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes portal-breathe {
  0%   { transform: scale(1) rotate(0deg); opacity: 0.6; }
  100% { transform: scale(1.15) rotate(8deg); opacity: 1; }
}

.neocosm-veil {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  flex-shrink: 0;
}
.neocosm-portal.open .neocosm-veil {
  opacity: 1;
  transform: translateY(0);
}
.neocosm-veil .neocosm-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 1rem;
  opacity: 0.85;
}
.neocosm-veil .neocosm-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 0.9rem;
  text-shadow: 0 0 60px rgba(232, 149, 72, 0.3);
}
.neocosm-veil .neocosm-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

@keyframes neocosm-emerge {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.neocosm-doors {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 720px;
  width: 100%;
  flex-shrink: 0;
}

.neocosm-door {
  position: relative;
  aspect-ratio: 4/5;
  background:
    linear-gradient(180deg,
      rgba(20, 8, 35, 0.85) 0%,
      rgba(11, 5, 25, 0.7) 50%,
      rgba(20, 8, 35, 0.9) 100%);
  border: 1px solid rgba(232, 149, 72, 0.35);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.2s var(--ease-out) 0.3s,
    transform 1.2s var(--ease-out) 0.3s,
    border-color 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.neocosm-portal.open .neocosm-door {
  opacity: 1;
  transform: translateY(0);
}
.neocosm-portal.open .neocosm-door:nth-child(2) { transition-delay: 0.5s; }
.neocosm-door:nth-child(2) {}

.neocosm-door::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50% 50% 0 0 / 35% 35% 0 0;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(232, 149, 72, 0.18) 0%,
    rgba(156, 106, 207, 0.12) 40%,
    transparent 70%);
  filter: blur(20px);
  opacity: 0.7;
  transition: opacity 0.6s, transform 0.6s;
}

.neocosm-door::after {
  content: '';
  position: absolute;
  inset: 8% 12% auto 12%;
  height: 78%;
  z-index: -1;
  border-radius: 50% 50% 0 0 / 25% 25% 0 0;
  border: 1px solid rgba(232, 149, 72, 0.35);
  background:
    radial-gradient(ellipse at 50% 100%,
      rgba(232, 149, 72, 0.18) 0%,
      rgba(156, 106, 207, 0.06) 50%,
      transparent 80%);
  box-shadow:
    inset 0 0 40px rgba(232, 149, 72, 0.08),
    0 0 30px rgba(232, 149, 72, 0.05);
  transition: all 0.7s var(--ease);
}

.neocosm-door:hover {
  border-color: rgba(232, 149, 72, 0.6);
  box-shadow:
    0 30px 80px rgba(2, 2, 10, 0.7),
    0 0 60px rgba(232, 149, 72, 0.15);
}
.neocosm-portal.open .neocosm-door:hover { transform: translateY(-6px); }
.neocosm-door:hover::before { opacity: 1; transform: scale(1.1); }
.neocosm-door:hover::after {
  border-color: rgba(232, 149, 72, 0.6);
  box-shadow:
    inset 0 0 60px rgba(232, 149, 72, 0.18),
    0 0 50px rgba(232, 149, 72, 0.18);
}

.neocosm-door .door-sigil {
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  opacity: 0.85;
  filter: drop-shadow(0 0 12px rgba(232, 149, 72, 0.45));
  animation: sigil-spin 120s linear infinite;
}
.neocosm-door .door-numeral {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ember-soft);
  margin-bottom: 0.7rem;
  opacity: 0.9;
}
.neocosm-door .door-name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.7rem;
  line-height: 1.15;
  text-shadow: 0 0 24px rgba(2, 2, 10, 0.9);
}
.neocosm-door .door-desc {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 240px;
  line-height: 1.55;
  margin-bottom: 1.4rem;
}
.neocosm-door .door-url {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ember-soft);
  opacity: 0.6;
  transition: opacity 0.4s;
  margin-top: auto;
}
.neocosm-door:hover .door-url { opacity: 1; }

.neocosm-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 38px;
  height: 38px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.neocosm-close:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.neocosm-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-ghost);
  opacity: 0.5;
  pointer-events: none;
  white-space: nowrap;
}

/* Subtle hint that the accent letter is interactive — only on hover, very gentle */
.hero-title .accent {
  cursor: default;
  transition: text-shadow 0.4s, filter 0.4s;
}
.hero-title .accent:active {
  filter: brightness(1.4);
}

@media (max-width: 768px) {
  .neocosm-doors {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 360px;
  }
  .neocosm-door { aspect-ratio: 3/4; }
  .neocosm-veil { margin-bottom: 2.5rem; }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .mindscape-altar { grid-template-columns: 1fr 1fr; }
  .altar-side:nth-child(3) { display: none; }
  .altar-center { aspect-ratio: 4/3; }
  .mindscape-grid { grid-template-columns: repeat(3, 1fr); }
  body.density-packed .mindscape-grid { grid-template-columns: repeat(4, 1fr); }
  .about-tease-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-tease-frame { max-width: 380px; }
}

@media (max-width: 768px) {
  .mindscape-altar {
    grid-template-columns: 1fr;
  }
  .altar-side:nth-child(3) { display: block; }
  .altar-center { aspect-ratio: 16/10; }
  .altar-side { aspect-ratio: 3/2; }
  .mindscape-grid { grid-template-columns: repeat(2, 1fr); }
  .tweaks-panel {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    top: auto;
    bottom: 0.75rem;
    transform: none;
    max-height: 70vh;
  }
  .hero-credit { display: none; }
  .lightbox { padding: 1.5rem; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav.prev { left: 0.75rem; }
  .lightbox-nav.next { right: 0.75rem; }
  .drift-piece { height: 160px; }
}
