/* Luxaria · Session 1 — game shell styles. The world itself is drawn on the canvas. */
:root {
  --ink: #f4ead2;
  --ink-dim: #b9ad92;
  --gold: #e3b95a;
  --gold-deep: #9a7531;
  --panel: rgba(16, 13, 24, 0.94);
  --panel-edge: #6b5330;
  --crimson: #a8323e;
  --violet: #7d4fb0;
  --night: #0b0a10;
  --font: "Pixelify Sans", ui-monospace, "Courier New", monospace;
  --touch-h: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  /* Pixelify Sans draws "fi"/"fl" ligatures oddly ("five" reads as "Ave"). */
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0, "clig" 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#app { position: fixed; inset: 0; }
#screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}
img { image-rendering: pixelated; }
[hidden] { display: none !important; }

/* ---------- Banner + objective ---------- */
.banner {
  position: absolute;
  top: calc(18px + var(--safe-t));
  left: 50%;
  transform: translate(-50%, -12px);
  padding: 8px 22px;
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 1px rgba(227, 185, 90, 0.25);
  color: var(--gold);
  font-size: clamp(14px, 2.4vmin, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
  white-space: nowrap;
  z-index: 5;
}
.banner.show { opacity: 1; transform: translate(-50%, 0); }
.objective {
  position: absolute;
  top: calc(12px + var(--safe-t));
  left: calc(12px + var(--safe-l));
  max-width: min(46vw, 360px);
  padding: 6px 10px;
  background: rgba(11, 10, 16, 0.78);
  border: 2px solid var(--panel-edge);
  box-shadow: 0 0 0 2px #000;
  font-size: clamp(12px, 1.9vmin, 15px);
  color: var(--ink);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s;
}
.objective.show { opacity: 1; }
.objective::before { content: "◆ "; color: var(--gold); }

/* ---------- Pixel panel (shared) ---------- */
.dialogue, .menu-panel, .cutscene-caption, .card-caption, .item-popup, .devpanel {
  background: var(--panel);
  border: 3px solid var(--panel-edge);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px rgba(227, 185, 90, 0.18), 0 10px 30px rgba(0, 0, 0, 0.55);
  image-rendering: pixelated;
}

/* ---------- Dialogue ---------- */
.dialogue {
  position: absolute;
  left: 50%;
  bottom: calc(14px + var(--safe-b) + var(--touch-h));
  transform: translateX(-50%);
  width: min(920px, calc(100% - 24px));
  min-height: 132px;
  display: flex;
  gap: 14px;
  padding: 14px;
  z-index: 20;
  cursor: pointer;
}
.dialogue.narration { background: rgba(8, 7, 12, 0.92); border-color: #3c3350; }
.dialogue.narration .dialogue-portrait, .dialogue.narration .dialogue-name { display: none; }
.dialogue.narration .dialogue-text { font-style: italic; color: #e6dcc6; text-align: center; padding: 6px 12px; }
.dialogue.no-portrait .dialogue-portrait { display: none; }
.dialogue-portrait {
  flex: 0 0 auto;
  width: clamp(72px, 15vmin, 128px);
  aspect-ratio: 1;
  background: #15131c;
  border: 2px solid var(--panel-edge);
  box-shadow: 0 0 0 2px #000;
  overflow: hidden;
}
.dialogue-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Painted site art is a full illustration: keep it smooth and frame the face. */
.dialogue-portrait img.painted { image-rendering: auto; object-position: center 15%; }
.dialogue-body { flex: 1; position: relative; min-width: 0; }
.dialogue-name {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 10px;
  background: var(--crimson);
  color: #fff4dc;
  font-weight: 700;
  font-size: clamp(14px, 2.3vmin, 18px);
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 2px #000;
}
.dialogue-text {
  font-size: clamp(15px, 2.6vmin, 21px);
  line-height: 1.4;
  white-space: pre-wrap;
  min-height: 4.2em; /* room for 3 lines, so the box keeps its size from line to line */
}
.dialogue-next {
  position: absolute;
  right: 4px;
  bottom: -2px;
  color: var(--gold);
  font-size: 14px;
  opacity: 0;
  animation: bob 0.9s steps(2) infinite;
}
.dialogue.done .dialogue-next { opacity: 1; }
.dialogue.choosing .dialogue-next { opacity: 0; }
@keyframes bob { 50% { transform: translateY(3px); } }
.dialogue-choices { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.dialogue-choices li {
  padding: 5px 10px 5px 26px;
  position: relative;
  font-size: clamp(14px, 2.4vmin, 19px);
  color: var(--ink-dim);
  cursor: pointer;
  border: 1px solid transparent;
}
.dialogue-choices li.active { color: #fff6df; background: rgba(168, 50, 62, 0.35); border-color: rgba(227, 185, 90, 0.4); }
.dialogue-choices li.active::before { content: "▶"; position: absolute; left: 8px; color: var(--gold); font-size: 0.8em; top: 50%; transform: translateY(-50%); }

/* ---------- Fade ---------- */
.fade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s linear;
  z-index: 15; /* under dialogue (20) so lines can play over black; cutscenes (30) sit above */
}
.fade.white { background: #fff; }

/* ---------- Cutscene ---------- */
/* The picture gets the space above the caption and is always shown whole (contain);
   a blurred copy fills the bars when the art is tall (most painted art is portrait). */
.cutscene {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: #000;
  cursor: pointer;
}
.cutscene-frame { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.cutscene-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s;
}
.cutscene-frame .cutscene-bg {
  object-fit: cover;
  filter: blur(28px) brightness(0.32) saturate(1.2);
  transform: scale(1.15);
}
.cutscene-frame img.cover { object-fit: cover; }
.cutscene-frame img.ready { opacity: 1; }
.cutscene-frame img.painted { image-rendering: auto; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.cutscene-caption {
  position: relative;
  flex: 0 0 auto;
  margin: 10px auto calc(14px + var(--safe-b));
  width: min(980px, calc(100% - 28px));
  padding: 14px 18px;
  font-size: clamp(15px, 2.6vmin, 21px);
  line-height: 1.45;
  background: rgba(8, 7, 12, 0.86);
  /* Fixed height (4 lines) from the start, so neither the caption nor the picture above
     it ever changes size while text types or between captions. */
  --caption-lines: 4;
  height: calc(var(--caption-lines) * 1.45em + 28px + 6px);
  overflow-y: auto;
}
.cutscene-caption:empty { visibility: hidden; }
@media (max-width: 700px) { .cutscene-caption { --caption-lines: 6; } }
@media (orientation: landscape) and (max-height: 520px) { .cutscene-caption { --caption-lines: 5; } }

/* ---------- Tarot card ---------- */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(ellipse at center, rgba(45, 20, 60, 0.75), rgba(0, 0, 0, 0.92));
  cursor: pointer;
  perspective: 1200px;
}
.card-flip {
  position: relative;
  height: min(62vh, 520px);
  aspect-ratio: 2 / 3;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(.3, .7, .2, 1);
  animation: card-in 0.6s ease-out;
}
.card-overlay.flipped .card-flip { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; box-shadow: 0 0 0 3px #000, 0 0 40px rgba(227, 185, 90, 0.35); background: #1d1528; }
.card-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-front { transform: rotateY(180deg); }
@keyframes card-in { from { transform: translateY(40px) scale(0.9); opacity: 0; } }
.card-caption { width: min(640px, calc(100% - 28px)); padding: 10px 16px; text-align: center; font-size: clamp(15px, 2.5vmin, 20px); line-height: 1.4; }
.card-caption strong { color: var(--gold); display: block; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Item popup ---------- */
.item-popup {
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  z-index: 25;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  width: min(460px, calc(100% - 28px));
  animation: card-in 0.4s ease-out;
  cursor: pointer;
}
.item-popup img { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.item-popup small { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; display: block; }
.item-popup strong { color: var(--gold); font-size: 20px; display: block; }
.item-popup p { margin: 4px 0 0; font-size: 15px; color: var(--ink); }

/* ---------- Title ---------- */
.title {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b));
  background: #07060b;
  text-align: center;
}
.title-bg { position: absolute; inset: 0; overflow: hidden; }
.title-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; animation: drift 30s ease-out forwards; }
.title-bg img.ready { opacity: 1; }
.title-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 6, 11, 0.15) 0%, rgba(7, 6, 11, 0.1) 40%, rgba(7, 6, 11, 0.85) 100%); }
.title > *:not(.title-bg) { position: relative; }
.title-logo { width: min(560px, 78vw); max-height: 34vh; object-fit: contain; image-rendering: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7)); }
.title-sub { margin: 6px 0 26px; color: var(--gold); font-size: clamp(13px, 2.4vmin, 18px); letter-spacing: 0.1em; text-shadow: 0 2px 0 #000; }
.title-menu { display: grid; gap: 10px; min-width: min(300px, 80vw); }
.title-menu button, .menu-buttons button, .devpanel button {
  font-family: var(--font);
  font-size: clamp(16px, 2.8vmin, 21px);
  padding: 10px 22px;
  color: var(--ink);
  background: var(--panel);
  border: 3px solid var(--panel-edge);
  box-shadow: 0 0 0 3px #000;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.title-menu button:hover, .title-menu button:focus-visible, .title-menu button.active,
.menu-buttons button:hover, .menu-buttons button:focus-visible, .menu-buttons button.active {
  color: #fff6df;
  border-color: var(--gold);
  background: #3a1820;
  outline: none;
}
.title-menu button small { display: block; font-size: 0.62em; color: var(--ink-dim); margin-top: 2px; }
.title-hint { margin-top: 18px; color: var(--ink-dim); font-size: 13px; min-height: 1em; text-shadow: 0 1px 0 #000; }
.title-back { position: absolute !important; top: calc(12px + var(--safe-t)); left: calc(14px + var(--safe-l)); color: var(--ink-dim); font-size: 14px; text-decoration: none; text-shadow: 0 1px 0 #000; }
.title-back:hover { color: var(--gold); }

/* ---------- Pause menu ---------- */
.menu { position: absolute; inset: 0; z-index: 45; display: grid; place-items: center; background: rgba(5, 4, 8, 0.6); padding: 16px; }
.menu-panel { width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px; }
.menu-panel h2 { margin: 0 0 4px; color: var(--gold); font-size: 24px; letter-spacing: 0.1em; text-transform: uppercase; }
.menu-chapter { color: var(--ink-dim); font-size: 14px; margin-bottom: 14px; }
.menu-buttons { display: grid; gap: 8px; }
.menu-items { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.menu-items:empty { display: none; }
.menu-items figure { margin: 0; width: 64px; text-align: center; font-size: 11px; color: var(--ink-dim); }
.menu-items img { width: 48px; height: 48px; object-fit: contain; background: #15131c; border: 2px solid var(--panel-edge); }
.menu-help { margin-top: 14px; font-size: 12px; color: var(--ink-dim); line-height: 1.5; }
.menu-help p { margin: 0; }

/* ---------- Touch controls ---------- */
.touch { display: none; }
body.is-touch .touch { display: block; }
body.is-touch { --touch-h: 0px; }
.dpad {
  position: absolute;
  left: calc(18px + var(--safe-l));
  bottom: calc(18px + var(--safe-b));
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(16, 13, 24, 0.55);
  border: 2px solid rgba(227, 185, 90, 0.45);
  z-index: 26;
  touch-action: none;
}
.dpad::before, .dpad::after {
  content: "";
  position: absolute;
  background: rgba(244, 234, 210, 0.16);
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.dpad::before { width: 38px; height: 104px; }
.dpad::after { width: 104px; height: 38px; }
.dpad-knob {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  background: rgba(227, 185, 90, 0.55);
  border: 2px solid #000;
  z-index: 1;
  transition: transform 0.05s;
}
.touch-buttons {
  position: absolute;
  right: calc(18px + var(--safe-r));
  bottom: calc(26px + var(--safe-b));
  width: 150px;
  height: 120px;
  z-index: 26;
}
.touch-btn {
  position: absolute;
  width: 64px; height: 64px;
  border-radius: 50%;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  color: #fff4dc;
  border: 3px solid #000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.35);
  touch-action: none;
}
.touch-btn.pressed { transform: translateY(2px); box-shadow: none; filter: brightness(1.25); }
.btn-a { right: 0; top: 0; background: var(--crimson); }
.btn-b { left: 0; bottom: 0; background: #3e3656; }
.touch-menu {
  position: absolute;
  top: calc(10px + var(--safe-t));
  right: calc(10px + var(--safe-r));
  width: 44px; height: 44px;
  font-size: 22px;
  color: var(--ink);
  background: rgba(16, 13, 24, 0.7);
  border: 2px solid var(--panel-edge);
  z-index: 27;
}

/* Portrait phones: controls get their own band, dialogue sits above it. */
@media (orientation: portrait) {
  body.is-touch { --touch-h: 170px; }
  .dpad { bottom: calc(20px + var(--safe-b)); }
  .touch-buttons { bottom: calc(30px + var(--safe-b)); }
}
/* Landscape phones: dialogue fits between the d-pad and the buttons. */
@media (orientation: landscape) and (max-height: 520px) {
  body.is-touch .dialogue { width: calc(100% - 2 * (170px + var(--safe-l))); min-height: 100px; padding: 10px; }
  body.is-touch .cutscene-caption { width: calc(100% - 2 * (170px + var(--safe-l))); }
  .dialogue-portrait { width: 72px; }
}

/* ---------- Music volume (top right) ---------- */
.hud-audio {
  position: absolute;
  top: calc(10px + var(--safe-t));
  right: calc(10px + var(--safe-r));
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
body.is-touch .hud-audio { right: calc(62px + var(--safe-r)); }
.vol-btn {
  width: 44px;
  height: 44px;
  font-family: var(--font);
  font-size: 22px;
  color: var(--gold);
  background: rgba(16, 13, 24, 0.78);
  border: 2px solid var(--panel-edge);
  box-shadow: 0 0 0 2px #000;
  cursor: pointer;
}
.vol-btn.muted { color: var(--ink-dim); text-decoration: line-through; }
.vol-btn:hover, .vol-btn:focus-visible { border-color: var(--gold); outline: none; }
.vol-pop {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  width: 240px;
  padding: 10px 12px;
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  box-shadow: 0 0 0 2px #000;
  font-size: 14px;
}
.vol-pop input[type="range"] { width: 100%; accent-color: var(--gold); }
.vol-value { min-width: 3ch; text-align: right; color: var(--ink-dim); }
.vol-pop button {
  grid-column: 1 / -1;
  font-family: var(--font);
  font-size: 14px;
  padding: 4px 8px;
  color: var(--ink);
  background: #241c30;
  border: 2px solid var(--panel-edge);
  cursor: pointer;
}
.vol-pop button:hover { border-color: var(--gold); }

/* ---------- Dev panel ---------- */
.devpanel {
  position: absolute;
  top: calc(10px + var(--safe-t));
  right: calc(10px + var(--safe-r));
  z-index: 60;
  width: min(320px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow: auto;
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.devpanel h3 { margin: 0 0 6px; color: var(--gold); font-size: 15px; }
.devpanel .row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.devpanel button { font-size: 13px; padding: 4px 9px; border-width: 2px; box-shadow: 0 0 0 2px #000; }
.devpanel button:hover { border-color: var(--gold); }
.devpanel code { color: #9fd7ff; font-size: 12px; }
.devpanel ul { margin: 4px 0; padding-left: 16px; max-height: 180px; overflow: auto; }
.devpanel label { display: flex; gap: 6px; align-items: center; }
.devpanel .muted { color: var(--ink-dim); }

/* ---------- Battle ---------- */
body.in-battle .objective, body.in-battle .banner { display: none; }
.battle-ui {
  position: absolute;
  left: 50%;
  bottom: calc(12px + var(--safe-b) + var(--touch-h));
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  z-index: 22;
  display: grid;
  gap: 8px;
}
.battle-log, .battle-panel {
  background: var(--panel);
  border: 3px solid var(--panel-edge);
  box-shadow: 0 0 0 3px #000, inset 0 0 0 2px rgba(227, 185, 90, 0.18);
}
.battle-log {
  padding: 8px 14px;
  font-size: clamp(14px, 2.4vmin, 19px);
  line-height: 1.35;
  height: calc(2 * 1.35em + 16px + 6px); /* fixed: two lines, never resizes */
  overflow: hidden;
  position: relative;
}
.battle-log.wait::after { content: "▼"; position: absolute; right: 10px; bottom: 6px; color: var(--gold); font-size: 13px; animation: bob 0.9s steps(2) infinite; }
.battle-panel {
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) 1.4fr;
  gap: 12px;
  padding: 10px 12px;
  height: 190px; /* fixed so the field above never jumps between menus */
}
.battle-menu { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 3px; overflow: auto; }
.battle-menu li {
  padding: 4px 8px 4px 22px;
  position: relative;
  font-size: clamp(14px, 2.3vmin, 18px);
  color: var(--ink-dim);
  cursor: pointer;
  border: 1px solid transparent;
}
.battle-menu li small { display: block; font-size: 0.68em; color: var(--ink-dim); opacity: 0.85; }
.battle-menu li.active { color: #fff6df; background: rgba(168, 50, 62, 0.35); border-color: rgba(227, 185, 90, 0.4); }
.battle-menu li.active::before { content: "▶"; position: absolute; left: 6px; top: 6px; color: var(--gold); font-size: 0.75em; }
.battle-menu li.disabled { opacity: 0.4; cursor: default; }
.battle-menu li.battle-menu-title { padding-left: 4px; color: var(--gold); cursor: default; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.battle-menu li.battle-menu-title::before { content: none; }
.battle-party { display: grid; align-content: start; gap: 4px; font-size: clamp(13px, 2.1vmin, 16px); }
.bp-row { display: grid; grid-template-columns: 76px 1fr 64px; align-items: center; gap: 8px; padding: 1px 4px; }
.bp-row.active { background: rgba(227, 185, 90, 0.16); outline: 1px solid rgba(227, 185, 90, 0.45); }
.bp-row.down { opacity: 0.4; text-decoration: line-through; }
.bp-name { color: var(--ink); }
.bp-bar { height: 9px; background: #2a1c24; border: 1px solid #000; }
.bp-bar i { display: block; height: 100%; }
.bp-hp { text-align: right; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.bp-focus { margin-top: 4px; color: var(--gold); letter-spacing: 0.08em; }
/* Phones: menu and party side by side, compact rows, no skill descriptions. */
@media (max-width: 640px) {
  .battle-panel { grid-template-columns: 1fr 1fr; gap: 8px; height: 200px; padding: 8px; }
  .battle-menu li small { display: none; }
  .battle-menu li { padding: 6px 6px 6px 20px; }
  .bp-row { grid-template-columns: 1fr auto; grid-template-areas: "name hp" "bar bar"; gap: 1px 6px; font-size: 13px; }
  .bp-name { grid-area: name; }
  .bp-hp { grid-area: hp; font-size: 12px; }
  .bp-bar { grid-area: bar; height: 6px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  body.is-touch .battle-ui { width: calc(100% - 2 * (170px + var(--safe-l))); }
  .battle-ui { gap: 4px; }
  .battle-panel { height: 132px; padding: 6px 10px; gap: 8px; }
  .battle-menu li small, .battle-menu li.battle-menu-title { display: none; }
  .battle-menu li { padding: 3px 6px 3px 20px; font-size: 15px; }
  .battle-party { gap: 1px; font-size: 13px; }
  .bp-row { grid-template-columns: 60px 1fr 52px; }
  .battle-log { height: calc(1.35em + 16px + 6px); font-size: 14px; }
}

/* ---------- Scene playing badge (top right) ---------- */
.scene-badge {
  position: absolute;
  top: calc(62px + var(--safe-t));
  right: calc(10px + var(--safe-r));
  z-index: 54;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--panel);
  border: 2px solid var(--panel-edge);
  box-shadow: 0 0 0 2px #000;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.scene-dot { width: 8px; height: 8px; background: var(--crimson); box-shadow: 0 0 0 1px #000; animation: scene-dot 1.2s steps(2) infinite; }
@keyframes scene-dot { 50% { opacity: 0.25; } }
.scene-badge.nudge { border-color: var(--gold); color: #fff6df; }
.scene-badge.nudge::after { content: "· movement paused"; color: var(--gold); }
