/* Mefisto UI — gothic dark-fantasy shell. All HUD is DOM+CSS so it stays crisp
   at any resolution and costs nothing on the GPU (canvas keeps rendering 3D). */

:root {
  --gold: #c9a227;
  --gold-dim: #8a6f1d;
  --parch: #d8c9a3;
  --blood: #a4122a;
  --blood-dark: #4a0a15;
  --mana: #2a5ac9;
  --mana-dark: #10235c;
  --panel: rgba(10, 8, 7, 0.86);
  --panel-edge: rgba(201, 162, 39, 0.45);
  --font: 'Palatino Linotype', 'Palatino', 'Book Antiqua', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; overflow: hidden;
  background: #05040a; color: var(--parch);
  font-family: var(--font);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}

#app { position: fixed; inset: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: none; }
#view.showcursor { cursor: default; }

#ui { position: absolute; inset: 0; pointer-events: none; z-index: 10; }
#ui > * { pointer-events: auto; }
/* A panel's dimmed backdrop lets clicks through to the game world (so the
   camera can still be rotated with a panel open) — but the panel window
   itself, every button in it, must stay clickable. */
#ui .passthrough { pointer-events: none; }
#ui .passthrough .window { pointer-events: auto; }

/* ---- the in-world cursor -------------------------------------------------
   The canvas hides the OS cursor (cursor:none) and this reticle takes its
   place while you play. When a panel or the boot screen is up the real
   cursor comes back, so menus are never played against an invisible mouse. */
#reticle {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  margin: -11px 0 0 -11px; pointer-events: none; z-index: 30;
  display: none; opacity: .9;
  border: 1px solid rgba(232,217,168,.55); border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,.9), inset 0 0 4px rgba(0,0,0,.6);
}
#reticle::before, #reticle::after {
  content: ''; position: absolute; background: rgba(232,217,168,.9);
  box-shadow: 0 0 3px rgba(0,0,0,.9);
}
#reticle::before { left: 50%; top: -5px; bottom: -5px; width: 1px; margin-left: -.5px; }
#reticle::after { top: 50%; left: -5px; right: -5px; height: 1px; margin-top: -.5px; }
#reticle.on { display: block; }
#reticle.attack { border-color: #ffd27a; box-shadow: 0 0 10px rgba(255,180,60,.6), inset 0 0 4px rgba(0,0,0,.6); }

/* ---------------------------------------------------------------- boot ---- */
#boot {
  position: absolute; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1a1014 0%, #05040a 70%);
  transition: opacity .7s ease;
}
#boot.hidden { opacity: 0; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-logo {
  font-size: clamp(38px, 8vw, 92px); letter-spacing: .28em;
  color: var(--gold); text-shadow: 0 0 34px rgba(201,162,39,.55), 0 4px 0 #2b1c05;
}
.boot-bar {
  width: min(420px, 70vw); height: 8px; margin: 26px auto 12px;
  border: 1px solid var(--gold-dim); background: #150e08;
}
.boot-bar i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, #6d5312, var(--gold)); transition: width .3s; }
.boot-msg { color: #7d6a45; font-size: 14px; letter-spacing: .16em; }

/* -------------------------------------------------------------- panels ---- */
.panel {
  position: absolute; inset: 0;
  background: rgba(3, 2, 4, .55);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
}
.window {
  min-width: 380px; max-width: min(1100px, 94vw); max-height: 88vh;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: 0 0 0 1px #000, 0 24px 90px rgba(0,0,0,.85), inset 0 0 60px rgba(201,162,39,.05);
  padding: 20px 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden auto;
  scrollbar-width: thin; scrollbar-color: var(--gold-dim) #120d08;
}
.window h2 {
  font-size: 20px; letter-spacing: .3em; color: var(--gold); font-weight: normal;
  text-align: center; text-transform: uppercase;
}
.window.wide { min-width: 620px; }
.window h2 + .rule { margin-top: -6px; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--panel-edge), transparent); }

.btn {
  font-family: var(--font); font-size: 15px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--parch); background: linear-gradient(#241a10, #140d07);
  border: 1px solid var(--gold-dim); padding: 9px 20px; cursor: pointer;
  transition: all .13s ease; text-align: center;
}
.btn:hover, .btn:focus-visible { color: #fff3c4; border-color: var(--gold); background: linear-gradient(#3a2a14, #1c1208); outline: none; }
.btn.primary { border-color: var(--gold); color: var(--gold); }
.btn.primary:hover { background: linear-gradient(#4a3512, #241705); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

.row { display: flex; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }

/* ---- character select cards (generated from src/data/classes.js) ---- */
.cls-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.cls {
  display: flex; flex-direction: column; gap: 5px; align-items: center; text-align: center;
  padding: 14px 12px; cursor: pointer; font-family: var(--font);
  color: var(--parch); background: linear-gradient(#241a10, #140d07);
  border: 1px solid var(--gold-dim); transition: all .13s ease;
}
.cls:hover { border-color: var(--gold); background: linear-gradient(#3a2a14, #1c1208); }
.cls.on { border-color: var(--gold); color: #fff3c4; background: linear-gradient(#43300f, #1d1206); box-shadow: 0 0 0 1px rgba(201,162,39,.35) inset; }
.cls-icon { font-size: 28px; color: var(--gold); line-height: 1; }
.cls-name { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; }
.cls-blurb { font-size: 11px; color: #8c7a51; font-style: italic; flex: 1; }
.cls.on .cls-blurb { color: #b6a37c; }
.cls-stats { font-size: 10px; color: #6d5f43; letter-spacing: .04em; }

.setting { display: grid; grid-template-columns: 1fr 190px; align-items: center; gap: 14px; padding: 7px 10px; border-bottom: 1px solid rgba(201,162,39,.12); }
.setting > label { color: #b6a37c; font-size: 14px; letter-spacing: .06em; }
.setting .hint { display: block; color: #6d5f43; font-size: 11px; letter-spacing: 0; font-style: italic; }
select, input[type=text] {
  font-family: var(--font); font-size: 14px; color: var(--parch);
  background: #17100a; border: 1px solid var(--gold-dim); padding: 6px 8px; cursor: pointer;
}
input[type=range] { width: 100%; accent-color: var(--gold); cursor: pointer; }
.seg { display: flex; border: 1px solid var(--gold-dim); }
.seg button {
  flex: 1; font-family: var(--font); font-size: 13px; padding: 6px 4px; color: #a29372;
  background: #150e08; border: 0; border-right: 1px solid rgba(201,162,39,.2); cursor: pointer;
}
.seg button:last-child { border-right: 0; }
.seg button.on { background: linear-gradient(#4a3512, #241705); color: var(--gold); }
.tabs { display: flex; gap: 4px; }
.tabs .btn { flex: 1; }

/* --------------------------------------------------------------- HUD ----- */
#hud { position: absolute; inset: 0; pointer-events: none; }

/* orbs */
.orbwrap { position: absolute; bottom: 8px; display: flex; align-items: flex-end; gap: 4px; pointer-events: none; }
.orb { width: 116px; height: 116px; position: relative; filter: drop-shadow(0 6px 14px rgba(0,0,0,.8)); }
.orb.small { width: 78px; height: 78px; }
.orb canvas { width: 100%; height: 100%; display: block; }
.orb .num {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 22px; color: #fff; text-shadow: 0 0 5px #000, 0 2px 3px #000; letter-spacing: .02em;
}
.orbwrap.left { left: 6px; }
.orbwrap.right { right: 6px; }

/* xp bar */
.xpbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px; width: min(460px, 40vw); }
.xpbar .track { height: 12px; background: #0d0a06; border: 1px solid var(--gold-dim); position: relative; overflow: hidden; }
.xpbar .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#d9c05a, #6d5312); transition: width .25s ease; }
.xpbar .lbl { text-align: center; font-size: 11px; color: #8c7a51; letter-spacing: .18em; margin-top: 3px; }

/* skill bar */
.skillbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: 48px; display: flex; gap: 6px; }
.slot {
  width: 54px; height: 54px; background: #120c06; border: 1px solid var(--gold-dim);
  position: relative; display: grid; place-items: center; cursor: pointer;
}
.slot:hover { border-color: var(--gold); }
.slot .key { position: absolute; top: 1px; left: 3px; font-size: 10px; color: #7d6a45; }
.slot .g { font-size: 24px; filter: drop-shadow(0 0 4px rgba(0,0,0,.9)); }
.slot .cd { position: absolute; inset: 0; background: rgba(0,0,0,.7); transform-origin: bottom; transform: scaleY(0); }
.slot.empty { opacity: .45; }
.slot .dur { position: absolute; bottom: 2px; right: 4px; font-size: 11px; color: #cbb; }
.slot.active { border-color: var(--gold); box-shadow: 0 0 12px rgba(201,162,39,.5) inset; }

/* belt */
.belt { position: absolute; bottom: 96px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.belt .slot { width: 44px; height: 44px; }

/* character summary */
.charsum { position: absolute; top: 10px; left: 12px; display: flex; gap: 10px; align-items: center;
  background: linear-gradient(90deg, rgba(8,6,5,.8), rgba(8,6,5,0)); padding: 6px 22px 6px 6px; border-left: 2px solid var(--gold-dim); }
.charsum .portrait { width: 54px; height: 54px; border: 1px solid var(--gold-dim); background: #0e0a06; }
.charsum .nm { font-size: 16px; color: var(--gold); letter-spacing: .1em; }
.charsum .meta { font-size: 12px; color: #8c7a51; }

/* minimap */
.minimap { position: absolute; top: 10px; right: 12px; border: 1px solid var(--gold-dim); background: rgba(4,3,4,.82); padding: 4px; }
.minimap canvas { display: block; image-rendering: pixelated; }
.minimap .cap { font-size: 10px; color: #7d6a45; letter-spacing: .2em; text-align: center; padding-top: 2px; }
.minimap .foe {
  font-size: 10px; letter-spacing: .16em; text-align: center; text-transform: uppercase;
  color: #d0604a; border-top: 1px solid rgba(201,162,39,.18); margin-top: 3px; padding-top: 3px;
}
.minimap .foe.open { color: #9fd8b0; }

/* stats overlay (f1) */
.statpanel { position: absolute; top: 78px; left: 12px; background: rgba(6,5,7,.8); border: 1px solid rgba(201,162,39,.25); padding: 10px 14px; font-size: 12px; color: #b6a37c; line-height: 1.7; }
.statpanel b { color: var(--gold); font-weight: normal; }

/* floating combat text */
.floaters { position: absolute; inset: 0; overflow: hidden; }
.ftext {
  position: absolute; font-size: 17px; font-weight: bold; letter-spacing: .02em;
  text-shadow: 0 2px 3px #000, 0 0 8px rgba(0,0,0,.9); will-change: transform, opacity; white-space: nowrap;
}
.ftext.dmg { color: #ffe9c9; }
.ftext.crit { color: #ffd24a; font-size: 24px; }
.ftext.taken { color: #ff4a4a; }
.ftext.gold { color: #ffd76a; }
.ftext.heal { color: #6bff8a; }
.ftext.mana { color: #6aa8ff; }

/* labels of items on ground */
.itemlabel { position: absolute; transform: translate(-50%, -100%); font-size: 12px; letter-spacing: .08em; text-shadow: 0 2px 3px #000; pointer-events: none; }

/* toasts / log */
.toasts { position: absolute; top: 96px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 5px; align-items: center; }
.toast {
  background: rgba(6,5,7,.82); border: 1px solid rgba(201,162,39,.35); border-left: 3px solid var(--gold);
  padding: 6px 16px; font-size: 14px; color: var(--parch); letter-spacing: .06em;
  /* Animations are transform-only on purpose. A compositor that never starts
     the animation (stalled frames, background tab, reduced motion) would
     otherwise leave this text stuck on an `opacity: 0` keyframe — i.e. the
     player never learns why their potion didn't work. */
  opacity: 1;
  animation: toastIn .3s ease;
}
@keyframes toastIn { from { transform: translateY(-10px); } to { transform: none; } }

/* someone is talking: prose, not a notification. One at a time, held long
   enough to read, sitting low over the fight rather than in the corner. */
.say {
  position: absolute; left: 50%; bottom: 21%; transform: translateX(-50%);
  max-width: min(62ch, 82vw); text-align: center;
  font: 400 15px/1.6 var(--font); font-style: italic;
  color: #d8c9a4; text-shadow: 0 2px 10px #000, 0 0 26px rgba(0,0,0,.95);
  opacity: 0; pointer-events: none; z-index: 5;
  transition: opacity .8s ease;
}
.say.in { animation: sayIn .7s ease both; }
.say.fade { opacity: 0; }
@keyframes sayIn { from { opacity: 0; transform: translateX(-50%) translateY(8px) } to { opacity: 1; transform: translateX(-50%) } }
.toast.fade { opacity: 0; transition: opacity .6s ease; }
.toast.epic { border-left-color: #b45cff; color: #dcb8ff; }

/* damage / hit vignette */
#hurtflash { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(150,0,10,.85) 100%); }

/* level up / big banner */
.banner {
  position: absolute; top: 34%; left: 50%; transform: translate(-50%,-50%);
  font-size: clamp(28px, 5vw, 60px); color: var(--gold); letter-spacing: .3em;
  text-shadow: 0 0 30px rgba(201,162,39,.8), 0 4px 10px #000; pointer-events: none;
  opacity: 1;
  animation: bannerPop .5s ease;
  transition: opacity .7s ease, transform .7s ease;
}
@keyframes bannerPop {
  from { transform: translate(-50%,-50%) scale(.72); }
  to   { transform: translate(-50%,-50%) scale(1.04); }
}
/* Fade-out is driven by a class, not by a keyframe, so a never-started
   animation can never hide the floor name. */
.banner.out { opacity: 0; transform: translate(-50%,-58%) scale(1); }

/* fps / diag */
#diag { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); font-family: ui-monospace, monospace; font-size: 11px; color: #7fe08a; background: rgba(0,0,0,.45); padding: 2px 8px; border: 1px solid rgba(127,224,138,.25); letter-spacing: .04em; }

/* damage numbers as world->screen overlay need pointer none */
#hover-name { position: absolute; transform: translate(-50%,-100%); pointer-events: none; text-align: center; }

/* item grid (inventory) */
.inv { display: grid; grid-template-columns: repeat(10, 44px); gap: 4px; }
.grid { display: grid; grid-template-columns: repeat(6, 44px); gap: 4px; }
/* A single item: the wrapper hugs its cell. (.inv is a 10-wide grid, which is
   right for a row of potions and wrong for one icon in a list.) */
.cellbox { display: block; width: 44px; }
.inv .cell, .cell { width: 44px; height: 44px; background: #17110a; border: 1px solid rgba(201,162,39,.22); position: relative; display: grid; place-items: center; font-size: 22px; cursor: pointer; }
.inv .cell:hover, .cell:hover { border-color: var(--gold); background: #241a10; }
.inv .cell .stack { position: absolute; bottom: 1px; right: 3px; font-size: 10px; color: #e8d8a8; text-shadow: 0 1px 2px #000; }
.inv .cell small { position: absolute; top: 0; left: 2px; font-size: 9px; color: #8c7a51; }
.cell .star { position: absolute; top: 0; right: 2px; font-size: 10px; color: #b45cff; text-shadow: 0 0 4px #b45cff; }
.tabs-body { display: flex; gap: 16px; }
.col-title { font-size: 12px; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; margin-bottom: 6px; }
.equipslot { width: 56px; height: 56px; margin-bottom: 5px; }

/* ---- town: prompt, shop rows, gold line --------------------------------- */
.prompt {
  position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%);
  background: rgba(8,6,5,.78); border: 1px solid var(--panel-edge);
  padding: 5px 14px; font-size: 14px; color: var(--parch); white-space: nowrap;
  text-shadow: 0 1px 2px #000; pointer-events: none;
}
.prompt b {
  display: inline-block; min-width: 18px; text-align: center;
  border: 1px solid var(--gold-dim); color: var(--gold);
  padding: 0 4px; margin-right: 6px; font-size: 12px;
}
.gold-line { text-align: center; font-size: 13px; color: #8c7a51; margin: 6px 0 10px; }
.shop-row { display: flex; align-items: center; gap: 10px; }
.shop-row .shop-info { flex: 1; min-width: 0; }
.shop-row .shop-info > div:first-child { font-size: 14px; }
.shop-row .btn { white-space: nowrap; }

.tip {
  position: absolute; pointer-events: none; z-index: 40;
  background: #100b06; border: 1px solid var(--gold-dim); padding: 8px 12px; font-size: 13px; color: var(--parch);
  max-width: 280px; box-shadow: 0 10px 40px rgba(0,0,0,.9);
}
.tip .t { color: var(--gold); font-size: 15px; margin-bottom: 4px; }
.tip .u { color: #7c8fa8; font-size: 11px; font-style: italic; margin-bottom: 6px; }
.tip .s { color: #a8e08a; font-size: 12px; }
.tip .r { color: #b9a06a; font-size: 12px; font-style: italic; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #120d08; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }
/* ---- the spell list (character sheet) ---------------------------------- */
.skill-row { display: flex; align-items: center; gap: 10px; }
.skill-row .inv { display: block; width: 44px; }
.skill-row .btn { white-space: nowrap; padding: 6px 10px; }
/* the tree reuses the row, so it needs the same icon column and buttons */
.tree-node .inv { display: block; width: 44px; flex: 0 0 44px; }
.tree-node .btn { white-space: nowrap; padding: 6px 10px; flex: 0 0 auto; }
/* rank pips sitting on a skill icon */
.slot .g .pips { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%);
  font-size: 9px; color: var(--gold); text-shadow: 0 1px 2px #000; letter-spacing: -.5px; }
/* socket row under a socketed item */
.sockets { display: flex; gap: 3px; margin-top: 3px; }
.sock { width: 16px; height: 16px; border: 1px solid rgba(201,162,39,.35); display: grid;
  place-items: center; font-size: 11px; color: #6d5f43; cursor: pointer; background: #17110a; }
.sock:hover { border-color: var(--gold); color: var(--parch); }
.sock.on { border-color: #b45cff; color: #d8b0ff; }

/* ---- the codex ---------------------------------------------------------- */
.codex-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0;
  border-bottom: 1px solid rgba(201,162,39,.08); }
.codex-row .unknown > div:first-child { color: #5f5238 !important; font-style: italic; }

/* ---- key rebinding rows ------------------------------------------------- */
.bind-row { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 13px; }
.bind-row .bind { min-width: 96px; text-align: center; }
.bind-row .bind.listening { border-color: var(--gold); color: var(--gold); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---- save-slot rows ----------------------------------------------------- */
.slot-row { display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px solid rgba(201,162,39,.08); }
.slot-row.filled { background: rgba(201,162,39,.04); padding-left: 6px; }

/* ------------------------------------------------------------ skill tree --
 * One root, three branches, a choice at the top of each. The rail down the
 * left is what makes it read as a tree rather than a list, and the three
 * states have to be distinguishable at a glance from across the room:
 * learned (blue, solid), affordable (gold outline), locked (dim).
 */
.skill-row { }
.tree-node {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 6px 4px calc(6px + var(--d, 0) * 16px);
  position: relative;
  border-radius: 3px;
}
.tree-node.known { background: rgba(90,140,190,0.07); }
.tree-node.ready { background: rgba(201,162,39,0.09); box-shadow: inset 0 0 0 1px rgba(201,162,39,0.35); }
.tree-node.locked { opacity: 0.5; }
.tree-node.equipped .cell { box-shadow: inset 0 0 0 1px rgba(201,162,39,0.8); }
.tree-rail {
  position: absolute; left: calc(var(--d, 0) * 16px); top: 0; bottom: 0;
  width: 1px; background: rgba(140,122,81,0.35);
}
.tree-node[data-d="0"] .tree-rail,
:root .tree-node[style*="--d:0"] .tree-rail { display: none; }

/* ------------------------------------------------------------- the prologue --
 * Full-bleed, letterboxed text over a live pan of the crypt. Slow in, slow
 * out, and gone with a click — it is an opening, not an obstacle.
 */
.prologue {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 55%, rgba(6,5,10,.35), rgba(2,2,4,.92) 78%);
  cursor: pointer;
  transition: opacity .9s ease;
}
/* No entrance animation on the layer, and the text is never left below 1:
   under a software renderer the page renders at a few frames a second, and
   anything the *compositor* animates simply stops advancing. A line of prose
   that never appears is worse than one that fades in a frame late. */
.prologue.out { opacity: 0; }
.prologue-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 22vmin 6vmin rgba(0,0,0,.75);
}
.prologue-line {
  position: relative;
  max-width: min(56ch, 78vw);
  text-align: center;
  font: 400 21px/1.75 var(--font);
  color: #e8dcc0;
  text-shadow: 0 2px 12px #000, 0 0 40px rgba(0,0,0,.9);
  opacity: 0;
}
.prologue-line.in { animation: prologue-line 4.6s ease both; }
.prologue-title {
  position: absolute; top: 22%; left: 0; right: 0;
  text-align: center;
  font: 400 46px/1 var(--font);
  letter-spacing: .42em;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,162,39,.35);
  opacity: 0;
  transition: opacity 1.6s ease;
}
.prologue-title.show { opacity: .95; }
.prologue-title.fade { opacity: .25; }
.prologue-skip {
  position: absolute; bottom: 6%; left: 0; right: 0;
  text-align: center; font: 400 11px/1 var(--font);
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(140,122,81,.6);
  animation: prologue-skip 2.4s ease 3s both;
}
@keyframes prologue-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes prologue-line {
  0% { opacity: 0; transform: translateY(10px) }
  14% { opacity: 1; transform: none }
  78% { opacity: 1 }
  100% { opacity: 0; transform: translateY(-6px) }
}
@keyframes prologue-skip { from { opacity: 0 } to { opacity: 1 } }

/* the ending is the same language as the opening, slightly colder */
.prologue.ending { background: radial-gradient(ellipse at 50% 50%, rgba(8,6,4,.3), rgba(1,1,2,.95) 80%); }
.prologue.ending .prologue-line { color: #e4d2a6; }
