/* ═══════════════════════════════════════════════════════════════════
   The Inner Cave — an ancient book that is alive.
   Violet-black void · warm bone text · manuscript gold · per-part light.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --void: #07060b;
  --stone: #131019;
  --bone: #d8cfc0;
  --bone-dim: #8d8577;
  --gild: #c9a86a;
  --line: #262130;

  /* part palette — re-lit per room */
  --p-primary: #8a7bb8;
  --p-glow: #c5b6ea;
  --p-mist: #0e0b18;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--bone);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 23px; /* ~125% of the old 19px base — nearly everything below is rem, so this scales the whole site */
  line-height: 1.65;
}

::selection { background: var(--gild); color: var(--void); }

/* ── atmosphere layers ─────────────────────────────────────────── */

#dust {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

#veil {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 20%, var(--p-mist) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 105%, color-mix(in srgb, var(--p-primary) 14%, transparent) 0%, transparent 70%);
  transition: background 2.5s ease;
  opacity: .9;
}

.view { position: relative; z-index: 2; display: none; min-height: 100vh; }
.view.active { display: block; }
.hidden { display: none !important; }

/* ── type ──────────────────────────────────────────────────────── */

h1, h2, h3, .room-name, .title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: .02em;
}

.eyebrow {
  font-size: .68rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin: 0 0 .4rem;
}

/* ── landing ───────────────────────────────────────────────────── */

#view-landing { display: none; position: relative; }
#view-landing.active { display: flex; align-items: center; justify-content: center; }

.landing-scene {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: .34;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 35%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 35%, #000 30%, transparent 78%);
}
.landing-scene img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center center; }
.landing-inner { position: relative; z-index: 1; }

.landing-inner {
  max-width: 34rem;
  padding: 4rem 1.4rem 6rem;
  text-align: center;
}

.mouth {
  width: 1px;
  height: 12vh;
  margin: 0 auto 2.2rem;
  background: linear-gradient(to bottom, transparent, var(--gild) 40%, var(--p-glow));
  box-shadow: 0 0 24px 1px color-mix(in srgb, var(--gild) 45%, transparent);
  animation: mouth-breathe 7s ease-in-out infinite;
}
@keyframes mouth-breathe {
  0%, 100% { opacity: .5; transform: scaleY(.92); }
  50% { opacity: 1; transform: scaleY(1); }
}

.title {
  font-size: 3.2rem;
  margin: 0;
  color: var(--gild);
  font-weight: 400;
}

.subtitle {
  font-style: italic;
  color: var(--bone-dim);
  margin: .4rem 0 3rem;
  font-size: .95rem;
}

.opening { min-height: 14rem; text-align: center; }
.opening p {
  margin: 1.1rem 0;
  font-size: 1.06rem;
}
.opening p:first-child { font-size: 1.5rem; font-family: 'Cormorant Garamond', serif; }

/* ── ritual buttons ────────────────────────────────────────────── */

.rite {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gild);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--gild) 50%, transparent);
  padding: .8rem 2.6rem .7rem;
  margin-top: 2.2rem;
  cursor: pointer;
  transition: all .6s ease;
}
.rite:hover, .rite:focus-visible {
  border-color: var(--gild);
  box-shadow: 0 0 32px -6px var(--gild);
  text-shadow: 0 0 14px var(--gild);
  outline: none;
}
.rite.small { font-size: .9rem; padding: .5rem 1.6rem .45rem; margin-top: 1.2rem; }

.quiet-link {
  background: none; border: none;
  color: var(--bone-dim);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  letter-spacing: .08em;
  opacity: .7;
  padding: .4rem;
}
.quiet-link:hover, .quiet-link:focus-visible { opacity: 1; color: var(--bone); outline: none; }

/* ── navbar (persistent) ───────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 15;
  display: flex; align-items: center; gap: 1.4rem;
  padding: .85rem 1.4rem 1.35rem;
  background: linear-gradient(to bottom, var(--void) 62%, transparent);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gild);
  text-decoration: none;
  flex: none;
}
.nav-brand:hover { text-shadow: 0 0 16px var(--gild); }
.nav-links {
  display: flex; align-items: center; gap: 1.3rem;
  flex: 1;
}
.nav-links a, .nav-link {
  background: none; border: none;
  font-family: 'EB Garamond', serif;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--bone-dim);
  cursor: pointer;
  padding: .3rem 0;
  text-decoration: none;
}
.nav-links a:hover, .nav-link:hover, .nav-links a:focus-visible, .nav-link:focus-visible { color: var(--gild); outline: none; }
.nav-music.muted { color: #a4494a; text-decoration: line-through; }
.nav-music.muted:hover, .nav-music.muted:focus-visible { color: #c56059; }
.nav-progress {
  margin-left: auto;
  font-size: .7rem;
  letter-spacing: .28em;
  color: var(--bone-dim);
  flex: none;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none;
  color: var(--gild); font-size: 1.4rem;
  cursor: pointer;
}
/* keep content clear of the fixed nav */
.view { padding-top: 3.4rem; }
#view-landing.active { padding-top: 0; }

/* ── the room ──────────────────────────────────────────────────── */

.room {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1.4rem 5rem;
}

.sigil {
  width: 140px; height: 140px;
  margin: 1.2rem auto .6rem;
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--p-glow) 30%, transparent));
  animation: sigil-breathe 9s ease-in-out infinite;
}
@keyframes sigil-breathe {
  0%, 100% { transform: scale(.97); opacity: .8; }
  50% { transform: scale(1.02); opacity: 1; }
}

.room-head { text-align: center; margin-bottom: 2.4rem; }
.room-name {
  font-size: 2rem;
  margin: 0;
  color: var(--p-glow);
  text-shadow: 0 0 30px color-mix(in srgb, var(--p-primary) 55%, transparent);
}
.part-line {
  font-style: italic;
  color: var(--bone-dim);
  margin: .4rem 0 0;
}

.dialogue { margin-bottom: 2rem; }
.dialogue .part-text {
  margin: 1.4rem 0;
  font-size: 1.06rem;
}
.dialogue .you-text {
  margin: 1.6rem 0 1.6rem 2.2rem;
  font-style: italic;
  color: color-mix(in srgb, var(--bone) 74%, var(--p-glow));
  position: relative;
}
.dialogue .you-text::before {
  content: '—';
  position: absolute; left: -1.5rem;
  color: var(--p-primary);
}
.dialogue .older { opacity: .38; transition: opacity 1.2s ease; }
.dialogue .whisper {
  text-align: center; font-style: italic; color: var(--bone-dim);
  font-size: .92rem; margin: 2rem 0;
}

/* letters revealing like breath */
.reveal span.w {
  display: inline;
  opacity: 0;
  filter: blur(3px);
  animation: breath-in 1.1s ease forwards;
}
@keyframes breath-in {
  to { opacity: 1; filter: blur(0); }
}

/* ── choices ───────────────────────────────────────────────────── */

.choices { margin: 2.4rem 0 1rem; }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  color: var(--bone);
  font: inherit;
  font-size: 1rem;
  padding: .85rem .6rem .85rem 2rem;
  cursor: pointer;
  position: relative;
  transition: all .45s ease;
  opacity: 0;
  animation: choice-in .9s ease forwards;
}
.choice:last-child { border-bottom: 1px solid var(--line); }
@keyframes choice-in { to { opacity: 1; } }
.choice::before {
  content: '·';
  position: absolute; left: .7rem;
  color: var(--p-primary);
  transition: all .45s ease;
}
.choice:hover, .choice:focus-visible {
  color: var(--p-glow);
  padding-left: 2.4rem;
  outline: none;
  text-shadow: 0 0 18px color-mix(in srgb, var(--p-glow) 40%, transparent);
}
.choice:hover::before, .choice:focus-visible::before { content: '✦'; left: .55rem; color: var(--p-glow); }

.room-foot { text-align: center; margin-top: 3rem; }

/* ── deep dialogue ─────────────────────────────────────────────── */

.deep { margin: 2rem 0 0; text-align: center; }
.deep-hint { font-style: italic; color: var(--bone-dim); font-size: .85rem; margin-bottom: .5rem; }
.deep textarea {
  width: 100%;
  background: color-mix(in srgb, var(--stone) 70%, transparent);
  border: 1px solid var(--line);
  color: var(--bone);
  font: inherit;
  padding: .7rem .9rem;
  resize: vertical;
}
.deep textarea:focus { outline: none; border-color: var(--p-primary); }

/* ── threshold splash (room entrance) ──────────────────────────── */

.threshold {
  position: fixed; inset: 0;
  z-index: 40;
  display: flex; align-items: flex-end; justify-content: center;
  background: var(--void);
  overflow: hidden;
  cursor: pointer;
}
.threshold.leaving { animation: threshold-out 1.4s ease forwards; }
@keyframes threshold-out { to { opacity: 0; visibility: hidden; } }

.threshold-scene {
  position: absolute; inset: 0;
  opacity: 0;
  animation: scene-in 2.2s ease forwards;
}
.threshold-scene svg,
.threshold-scene img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center center;
}
@keyframes scene-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: scale(1); } }

.threshold-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, color-mix(in srgb, var(--void) 82%, transparent) 88%, var(--void));
  pointer-events: none;
}
.threshold-text {
  position: relative;
  text-align: center;
  padding-bottom: 16vh;
  opacity: 0;
  animation: threshold-text-in 2.4s ease .6s forwards;
}
@keyframes threshold-text-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.threshold-text h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  color: var(--p-glow);
  margin: .3rem 0 0;
  text-shadow: 0 0 40px color-mix(in srgb, var(--p-primary) 60%, transparent);
}
.threshold-skip {
  position: absolute; bottom: 2rem; right: 2rem;
  z-index: 1;
}

/* faint scene behind the room dialogue */
.room-scene {
  position: fixed; inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 2s ease;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 35%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 80% at 50% 35%, #000 30%, transparent 78%);
}
.room-scene.show { opacity: .16; }
.room-scene svg,
.room-scene img {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: center center;
}

/* ── interstitial ──────────────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0;
  z-index: 20;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--void) 88%, transparent);
  backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 2rem 1rem;
}

.interstitial-card {
  max-width: 33rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  animation: card-in 1.6s ease;
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } }
.interstitial-card .rule { color: var(--gild); letter-spacing: 1.2em; margin-bottom: 1.6rem; opacity: .8; }
.interstitial-card h3 {
  font-size: 1.7rem;
  color: var(--gild);
  font-weight: 400;
  margin: 0 0 1.4rem;
}
.interstitial-card #int-body p { margin: 1rem 0; text-align: left; }

/* ── side panel ────────────────────────────────────────────────── */

.panel-card {
  position: relative;
  width: min(40rem, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--stone);
  border: 1px solid var(--line);
  padding: 2.2rem 2.4rem;
  animation: card-in .8s ease;
}
.panel-close { position: absolute; top: .8rem; right: 1rem; }
.panel-card h3 {
  color: var(--gild);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0 0 1.2rem;
}
.panel-card h4 { color: var(--bone); font-weight: 500; margin: 1.6rem 0 .4rem; }
.panel-card .dim { color: var(--bone-dim); }

/* map — the descent constellation */
.map-head { text-align: center; margin-bottom: .4rem; }
.map-head h3 { margin-bottom: .3rem; }
.map-ended { text-align: center; font-style: italic; margin-top: 1rem; }

.constellation-frame {
  margin: .6rem auto 0;
  max-width: 34rem;
  padding: 1rem .6rem 1.4rem;
  background:
    radial-gradient(ellipse 90% 45% at 50% 10%, color-mix(in srgb, var(--p-mist) 70%, transparent), transparent 72%),
    radial-gradient(ellipse 130% 100% at 50% 38%, #241f30 0%, #14111d 55%, #0a0812 100%);
  border: 1px solid var(--line);
}
.constellation {
  width: 100%; height: auto;
  overflow: visible;
  display: block;
}
.node-glow { opacity: .5; transition: opacity .5s ease; }
.node.open:hover .node-glow { opacity: .8; }
.node.current .node-glow { opacity: .72; }
.node-core { opacity: .95; }
.node.current .node-core { animation: mote-flicker 2.6s ease-in-out infinite; }

/* veins */
.vein {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.1;
  opacity: .5;
}
.vein-live { stroke: color-mix(in srgb, var(--gild) 34%, var(--line)); opacity: .7; }
.vein-key {
  stroke: color-mix(in srgb, #6f9fc4 60%, transparent);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  opacity: .55;
  animation: vein-flow 9s linear infinite;
}
.vein-key.vein-live { stroke: #aacde6; opacity: .9; }
@keyframes vein-flow { to { stroke-dashoffset: -90; } }

/* doors as glyphs */
.doors { display: none; }

/* nodes */
.node-hit { fill: transparent; cursor: pointer; }
.node.open { cursor: pointer; }
.node-sigil { opacity: 1; transition: transform .5s ease; pointer-events: none; }
.node.open:hover { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--gild) 50%, transparent)); }
.node.open:focus-visible { outline: none; }
.node.open:focus-visible .node-hit { stroke: var(--gild); stroke-width: 1; stroke-dasharray: 4 4; }

.mote {
  fill: var(--bone-dim);
  opacity: .4;
  animation: mote-flicker 6s ease-in-out infinite;
}
@keyframes mote-flicker { 0%, 100% { opacity: .28; } 50% { opacity: .55; } }

.met-ring {
  fill: none;
  stroke: var(--gild);
  stroke-width: 1;
  opacity: .55;
}
.threshold-mark {
  fill: none;
  stroke: var(--gild);
  stroke-width: 1.2;
  opacity: .8;
}
.node-pulse {
  fill: none;
  stroke: var(--gild);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: node-pulse 3.4s ease-out infinite;
}
@keyframes node-pulse {
  0% { transform: scale(.5); opacity: .6; }
  70% { opacity: 0; }
  100% { transform: scale(1.05); opacity: 0; }
}

.node-veil {
  fill: var(--bone-dim);
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: .16em;
  opacity: .8;
}
.node-label {
  fill: var(--bone);
  font-family: 'Cormorant Garamond', serif;
  font-size: 27px;
  letter-spacing: .03em;
  paint-order: stroke;
  stroke: var(--void); stroke-width: 4px; stroke-linejoin: round;
}
.node.open:hover .node-label { fill: var(--gild); }
.node-status {
  fill: var(--bone-dim);
  font-family: 'EB Garamond', serif;
  font-size: 17px;
  letter-spacing: .08em;
}
.node-status.met { fill: var(--gild); opacity: 1; }
.node-sub { fill: var(--bone-dim); font-family: 'EB Garamond', serif; font-size: 15px; font-style: italic; letter-spacing: .2em; opacity: .55; }

/* mobile constellation: same viewBox scale, larger source units so text stays legible on a phone */
.constellation-m .node-veil { font-size: 21px; }
.constellation-m .node-label { font-size: 37px; }
.constellation-m .node-status { font-size: 23px; }
.constellation-m .node-sub { font-size: 20px; }

/* journal part list (reuses the row form the map once used) */
.door {
  display: flex; align-items: center; gap: .9rem;
  width: 100%;
  background: none; border: none; border-top: 1px solid var(--line);
  color: var(--bone); font: inherit; text-align: left;
  padding: .7rem .4rem;
  cursor: pointer;
  transition: all .4s ease;
}
.door:last-of-type { border-bottom: 1px solid var(--line); }
.door:hover:not(:disabled), .door:focus-visible { color: var(--gild); padding-left: .8rem; outline: none; }
.door .dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; flex: none; }
.door.met .dot { background: var(--gild); border-color: var(--gild); box-shadow: 0 0 8px var(--gild); }
.door .door-sub { margin-left: auto; font-size: .8rem; font-style: italic; color: var(--bone-dim); }

/* journal & glossary */
.journal-entry { margin: 1rem 0; }
.journal-entry.you { font-style: italic; color: var(--bone-dim); margin-left: 1.4rem; }
.glossary-entry { margin: 1.8rem 0; }
.glossary-entry .concept {
  font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; color: var(--gild);
}
.glossary-entry p { white-space: pre-line; margin: .5rem 0; }

/* settings */
.set-row { margin: 1.4rem 0; }
.set-row label { display: block; color: var(--bone-dim); font-size: .88rem; margin-bottom: .3rem; }
.set-row input[type=text], .set-row input[type=password] {
  width: 100%;
  background: var(--void); border: 1px solid var(--line); color: var(--bone);
  font: inherit; font-size: .9rem; padding: .55rem .7rem;
}
.set-row input:focus { outline: none; border-color: var(--gild); }
.toggle { display: flex; align-items: center; gap: .7rem; cursor: pointer; color: var(--bone); }
.toggle input { accent-color: var(--gild); width: 1.05rem; height: 1.05rem; }

/* ── toast ─────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  font-style: italic;
  color: var(--gild);
  text-shadow: 0 0 16px color-mix(in srgb, var(--gild) 50%, transparent);
  pointer-events: none;
  animation: toast-in 5s ease forwards;
  text-align: center;
  padding: 0 1rem;
}
@keyframes toast-in {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  12%, 78% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; }
}

/* ── ending ────────────────────────────────────────────────────── */

.ending {
  text-align: center;
  padding: 18vh 1.4rem;
  max-width: 30rem;
  margin: 0 auto;
}
.ending h2 { font-size: 2.4rem; color: var(--gild); font-weight: 400; }
.ending p { font-style: italic; color: var(--bone-dim); }

/* ── map view (fullscreen) ─────────────────────────────────────── */

#view-map.active { display: block; }
.map-body {
  width: 100%;
  max-width: 84rem;
  margin: 0 auto;
  padding: .4rem 1rem 3rem;
}
#view-map .constellation-frame {
  max-width: none;
  background: none; border: none; padding: 0;
}
#view-map .constellation { width: 100%; height: auto; display: block; }

/* landing extras */
.landing-actions { display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.landing-ifs { margin-top: 2.6rem; font-style: italic; }

/* room actions */
.room-foot { display: flex; flex-direction: column; align-items: center; gap: .5rem; }

/* ── cinematic IFS introduction ────────────────────────────────── */

.ifs-intro {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #17131f, #06050a 78%);
  cursor: pointer;
  padding: 2rem;
}
.ifs-stage {
  max-width: 40rem; text-align: center;
  min-height: 40vh; display: flex; flex-direction: column; justify-content: center;
}
.ifs-stage .eyebrow { margin-bottom: 1.6rem; }
.ifs-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--bone);
  margin: .5rem 0;
}
.ifs-line.lead {
  font-size: 2.3rem;
  color: var(--gild);
  margin-bottom: .8rem;
  text-shadow: 0 0 30px color-mix(in srgb, var(--gild) 30%, transparent);
}
.ifs-controls {
  display: flex; align-items: center; gap: 1.4rem;
  margin-top: 2.4rem;
}
.ifs-close { margin-top: 1rem; }
.ifs-dots { display: flex; gap: .5rem; }
.ifs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bone-dim); opacity: .4; cursor: pointer; transition: all .3s ease; }
.ifs-dot:hover { opacity: .8; }
.ifs-dot.on { background: var(--gild); opacity: 1; box-shadow: 0 0 8px var(--gild); }
.ifs-arrow {
  background: none; border: 1px solid color-mix(in srgb, var(--gild) 45%, transparent);
  color: var(--gild);
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  font-size: 1.3rem; line-height: 1;
  font-family: 'Cormorant Garamond', serif;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.ifs-arrow:hover { background: color-mix(in srgb, var(--gild) 14%, transparent); box-shadow: 0 0 18px -4px var(--gild); }
.ifs-arrow.disabled { opacity: .22; pointer-events: none; }

/* ── small screens & a11y ──────────────────────────────────────── */

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--stone);
    border-bottom: 1px solid var(--line);
    padding: .4rem 1.4rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-link { padding: .7rem 0; font-size: .8rem; width: 100%; text-align: left; }
  .nav-progress { margin: .4rem 0 0; }
}

@media (max-width: 640px) {
  html, body { font-size: 20px; }
  .title { font-size: 2.4rem; }
  .panel-card { padding: 1.6rem 1.2rem; }
  .room { padding: 1rem 1.1rem 5rem; }
  .ifs-line { font-size: 1.25rem; }
  .ifs-line.lead { font-size: 1.8rem; }
  .dialogue .you-text { margin-left: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; }
  .reveal span.w { opacity: 1; filter: none; }
}
