:root {
  color-scheme: light;
  --ink: #241f1a;
  --muted: #6c6258;
  --paper: #f7f0e3;
  --panel: #fffaf0;
  --line: #cdbf9f;
  --accent: #8f3f2a;
  --accent-dark: #642817;
  --good: #2f6f4e;
  --bad: #9b3326;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #0f0c0a;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.app {
  position: relative;
  min-height: 100vh;
}

.topbar,
.status,
.scene,
.history {
  border: 1px solid rgba(205, 191, 159, 0.42);
  background: rgba(15, 12, 10, 0.55);
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 18px;
  padding: 10px 16px 30px;
  color: #f7f0e3;
  background: linear-gradient(to bottom, rgba(8, 6, 5, 0.84), rgba(8, 6, 5, 0.46) 52%, rgba(8, 6, 5, 0));
  pointer-events: none;
}

/* グラデーションの裾は下の画面を遮らない（中身だけ操作可能に） */
.topbar > * {
  pointer-events: auto;
}

/* PC ではゲージが常時見えるため「状態」ボタンは出さない（モバイルで復活） */
#statsButton {
  display: none;
}

/* ===== 常時表示ステータスバー（菱形ピップ列／グラデーション帯中央）===== */
/* 並び: 左=題字+年表記(0) / 中央=ピップ(2) / 右=アイコン(3) */
.topbar-id {
  flex: 0 1 460px;
  min-width: 250px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
}

/* 題字: 落款風の小さな印 */
.topbar #gameTitle {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(247, 240, 227, 0.94);
  border: 1px solid rgba(205, 191, 159, 0.42);
  border-radius: 3px;
  padding: 2px 8px 2px 10px;
  white-space: nowrap;
  background: rgba(15, 12, 10, 0.25);
}

.topbar-actions {
  order: 3;
  flex-wrap: nowrap;
}

.statbar {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 740px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
}

.statbar-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.statbar-label {
  color: rgba(247, 240, 227, 0.66);
  font-size: 0.74rem;
  white-space: nowrap;
  font-weight: 700;
}

.statbar-pips {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 1px;
}

.statbar-pips .pip {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-radius: 1.5px;
  background: rgba(247, 240, 227, 0.14);
  box-shadow: inset 0 0 0 1px rgba(247, 240, 227, 0.12);
  transition: background 500ms ease, box-shadow 500ms ease;
}

.statbar-pips.is-low .pip.is-filled {
  background: linear-gradient(135deg, #7a3522, #a14a2c);
  box-shadow: none;
}

.statbar-pips.is-mid .pip.is-filled {
  background: linear-gradient(135deg, #9a8a64, #cdbf9f);
  box-shadow: none;
}

.statbar-pips.is-high .pip.is-filled {
  background: linear-gradient(135deg, #c8a14e, #ecd28a);
  box-shadow: 0 0 6px rgba(236, 210, 138, 0.5);
}

/* 数値は小さく併記（状態が分かるように） */
.statbar-value {
  min-width: 2ch;
  color: rgba(247, 240, 227, 0.74);
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.statbar-item.is-flash .statbar-pips {
  animation: statbarFlash 900ms ease;
}

@keyframes statbarFlash {
  0% { filter: drop-shadow(0 0 0 rgba(255, 228, 154, 0)); }
  30% { filter: drop-shadow(0 0 8px rgba(255, 228, 154, 0.9)); }
  100% { filter: drop-shadow(0 0 0 rgba(255, 228, 154, 0)); }
}

/* 身分バッジ（立場に合わせた系統色） */
.statbar-role {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.statbar-role--craft {
  color: #e3a96b;
  border-color: rgba(214, 150, 77, 0.55);
  background: rgba(72, 46, 22, 0.55);
}

.statbar-role--market {
  color: #ecd28a;
  border-color: rgba(232, 196, 106, 0.55);
  background: rgba(82, 62, 20, 0.5);
}

.statbar-role--study {
  color: #a9c3e6;
  border-color: rgba(140, 170, 210, 0.5);
  background: rgba(28, 40, 62, 0.52);
}

.statbar-role--wander {
  color: #ccd6cc;
  border-color: rgba(160, 175, 160, 0.5);
  background: rgba(40, 48, 40, 0.52);
}

.statbar-role--neutral {
  color: #e8dcc0;
  border-color: rgba(205, 191, 159, 0.45);
  background: rgba(60, 50, 35, 0.5);
}

/* PC では身分はバッジ側に出すため、ヘッダ行の身分は隠す */
.eyebrow-role {
  display: none;
}

.statbar-self {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px;
  border: 1px solid rgba(214, 160, 77, 0.45);
  border-radius: 999px;
  background: rgba(60, 44, 28, 0.55);
  font-size: 1.4rem;
}

.statbar-self-view {
  color: #ecd28a;
  font-weight: 700;
}

.statbar-self-sep {
  color: rgba(214, 160, 77, 0.7);
  font-size: 1rem;
}

.statbar-self-need {
  color: rgba(247, 240, 227, 0.78);
}

.topbar-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
}

.topbar-subtitle {
  display: none;
}

.eyebrow,
.chapter {
  margin: 0;
  color: rgba(247, 240, 227, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h2 {
  font-size: 1rem;
}

button {
  min-height: 44px;
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

.topbar button {
  padding: 0 14px;
  flex: 0 0 auto;
}

button.subtle {
  background: rgba(255, 250, 240, 0.08);
  color: #f7f0e3;
  border-color: rgba(247, 240, 227, 0.24);
}

/* SVGアイコンの丸ボタン（黒帯の野暮ったさ対策） */
.topbar-actions .iconbtn {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.topbar-actions .iconbtn svg {
  width: 17px;
  height: 17px;
  display: block;
}

.iconbtn--accent {
  border-color: rgba(161, 74, 44, 0.9);
}

#audioButton .audio-wave {
  opacity: 0.95;
}

#audioButton[aria-pressed="false"] .audio-wave {
  opacity: 0;
}

#audioButton .audio-slash {
  display: none;
}

#audioButton[aria-pressed="false"] .audio-slash {
  display: block;
}

/* 誕生の名披露（装飾的な囲い） */
.birth-plaque[hidden] {
  display: none;
}

.birth-plaque {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 6, 5, 0.2) 30%, rgba(8, 6, 5, 0.7));
}

.birth-plaque-frame {
  position: relative;
  padding: 26px 44px;
  text-align: center;
  border: 1.5px solid rgba(205, 191, 159, 0.85);
  outline: 1px solid rgba(205, 191, 159, 0.4);
  outline-offset: 6px;
  background: rgba(15, 12, 10, 0.55);
  animation: plaqueReveal 1400ms ease both;
}

.birth-plaque-frame::before,
.birth-plaque-frame::after {
  content: "◆";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(236, 210, 138, 0.9);
  font-size: 0.7rem;
}

.birth-plaque-frame::before {
  top: -13px;
  background: transparent;
}

.birth-plaque-frame::after {
  bottom: -13px;
}

.birth-plaque-year {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.5em;
  color: rgba(247, 240, 227, 0.75);
}

.birth-plaque-name {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #f7f0e3;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.birth-plaque-sub {
  margin: 12px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(236, 210, 138, 0.85);
  animation: plaqueReveal 1400ms ease 700ms both;
}

@keyframes plaqueReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 終章の心の家（中央演出・点灯アニメーション） */
.finale-house[hidden] {
  display: none;
}

.finale-house {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(8, 6, 5, 0.3) 30%, rgba(8, 6, 5, 0.82));
}

.finale-house-inner {
  width: min(330px, 72vw);
  text-align: center;
  animation: fhFade 900ms ease both;
}

.finale-house-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  color: rgba(247, 240, 227, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.finale-house-caption {
  margin: 10px 0 0;
  font-size: 0.74rem;
  line-height: 1.7;
  color: rgba(247, 240, 227, 0.66);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.fh-floor {
  animation: fhRise 700ms ease both;
}

.fh-roof {
  animation: fhRise 700ms ease both;
}

.fh-lamp {
  animation: fhRise 700ms ease both;
}

.fh-lamp-bright {
  animation: fhRise 700ms ease both, fhGlow 2.4s ease-in-out infinite;
}

.fh-phase {
  animation: fhPhase 2.8s ease-in-out infinite;
}

@keyframes fhFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fhRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fhGlow {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(236, 210, 138, 0.5)); }
  50% { filter: drop-shadow(0 0 12px rgba(236, 210, 138, 0.95)); }
}

@keyframes fhPhase {
  0%, 100% { stroke-opacity: 0.55; }
  50% { stroke-opacity: 1; }
}

/* 人間万事コレクション（記録帳の棚） */
.lives-shelf {
  margin: 6px 0 12px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(205, 191, 159, 0.28);
  border-radius: 6px;
  background: rgba(15, 12, 10, 0.35);
}

.lives-shelf-title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(247, 240, 227, 0.72);
}

.lives-shelf ol {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lives-shelf li {
  font-size: 0.78rem;
  color: rgba(247, 240, 227, 0.7);
  line-height: 1.5;
}

/* 黒帯の家族・住まい小表示 */
.statbar-life {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(247, 240, 227, 0.6);
  letter-spacing: 0.06em;
}

/* ===== 心の家（PCM六層・docs/31）===== */
.soul-house {
  margin: 6px 0 12px;
  padding: 8px 10px 10px;
  border: 1px solid rgba(205, 191, 159, 0.28);
  border-radius: 6px;
  background: rgba(15, 12, 10, 0.35);
}

.soul-house-title {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(247, 240, 227, 0.72);
}

.soul-house-floors {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.soul-floor {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(205, 191, 159, 0.22);
  border-radius: 3px;
  background: rgba(247, 240, 227, 0.04);
  font-size: 0.8rem;
  color: rgba(247, 240, 227, 0.6);
}

.soul-floor.is-base {
  border-bottom-width: 3px;
  border-bottom-color: rgba(205, 191, 159, 0.6);
}

.soul-floor.is-phase {
  border-color: rgba(236, 210, 138, 0.8);
  color: rgba(247, 240, 227, 0.95);
}

.soul-floor-no {
  width: 1.2em;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}

.soul-floor-name {
  flex: 1 1 auto;
}

.soul-floor-lamp {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(247, 240, 227, 0.12);
  box-shadow: none;
  transition: background 600ms ease, box-shadow 600ms ease;
}

.soul-floor.lit-1 .soul-floor-lamp {
  background: #cdbf9f;
}

.soul-floor.lit-2 .soul-floor-lamp {
  background: #ecd28a;
  box-shadow: 0 0 8px rgba(236, 210, 138, 0.8);
}

/* 渇き表示のディストレス段階（0=通常 1=乾き 2=ひび 3=涸れ） */
#statbarSelfNeed.distress-1 {
  color: rgba(205, 191, 159, 0.85);
}

#statbarSelfNeed.distress-2 {
  color: #c98a5a;
}

#statbarSelfNeed.distress-3 {
  color: #a14a2c;
  text-decoration: line-through rgba(161, 74, 44, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

button.subtle:hover {
  background: rgba(255, 250, 240, 0.18);
  color: #fff;
}

.status {
  position: fixed;
  z-index: 22;
  top: 82px;
  right: 16px;
  width: min(720px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.status.is-collapsed {
  display: none;
}

.status div {
  min-width: 0;
  padding: 10px;
  background: rgba(244, 234, 217, 0.92);
}

.status span {
  display: block;
  color: #4b3828;
  font-size: 0.74rem;
  font-weight: 700;
}

.status strong {
  display: block;
  color: #1c140f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status strong.textual {
  white-space: normal;
  font-size: 0.9rem;
  line-height: 1.35;
}

.scene {
  min-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.stage {
  position: relative;
  min-height: 100vh;
}

.stage.is-transitioning .visual {
  animation: sceneDissolve 420ms ease;
}

.stage.is-transitioning .dialogue-window,
.stage.is-transitioning .choices,
.stage.is-transitioning .overlay-label {
  animation: windowDip 320ms ease;
}

.story {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.9;
}

.visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #c9d2c3;
}

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.84) 0 18%, rgba(12, 9, 7, 0.18) 36%, rgba(12, 9, 7, 0.38) 100%),
    radial-gradient(circle at center, transparent 0 46%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.dialogue-window {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  max-width: min(920px, calc(100vw - 48px));
  padding: 18px 20px 16px;
  border: 1px solid rgba(205, 191, 159, 0.9);
  background: rgba(34, 26, 20, 0.66);
  color: #f7f0e3;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  z-index: 8;
}

.stage.has-choices .dialogue-window {
  bottom: 192px;
}

.stage.choices-2 .dialogue-window {
  bottom: 254px;
}

.stage.choices-3 .dialogue-window {
  bottom: 316px;
}

.dialogue-window .story,
.dialogue-window .result {
  max-height: min(28vh, 260px);
  overflow-y: auto;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: normal;
}

.effect-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(214, 160, 77, 0.54);
  background: linear-gradient(180deg, rgba(92, 69, 44, 0.46), rgba(43, 30, 21, 0.72));
  box-shadow: inset 0 0 0 1px rgba(247, 240, 227, 0.06);
}

.effect-summary[hidden] {
  display: none !important;
}

.effect-summary.floating {
  position: fixed;
  z-index: 26;
  top: 118px;
  right: 24px;
  width: min(340px, calc(100vw - 48px));
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.effect-summary.is-revealing {
  animation: summaryFlash 0.95s ease;
}

.effect-card {
  padding: 8px 10px;
  border: 1px solid rgba(247, 240, 227, 0.14);
  background: rgba(255, 246, 232, 0.06);
}

.effect-card-label {
  display: block;
  color: rgba(247, 240, 227, 0.7);
  font-size: 0.76rem;
}

.effect-card-value {
  display: block;
  margin-top: 4px;
  font-weight: 700;
  font-size: 1rem;
}

.effect-card-value.good {
  color: #b8e3c5;
}

.effect-card-value.bad {
  color: #f1b0a3;
}

.effect-card.is-strong {
  border-color: rgba(255, 228, 154, 0.7);
  background: linear-gradient(180deg, rgba(255, 228, 154, 0.14), rgba(255, 246, 232, 0.06));
  box-shadow: 0 0 18px rgba(255, 211, 123, 0.2);
}

.effect-card.is-strong .effect-card-value {
  text-shadow: 0 0 10px rgba(255, 214, 135, 0.35);
}

.dialogue-window .story::-webkit-scrollbar,
.dialogue-window .result::-webkit-scrollbar {
  width: 8px;
}

.dialogue-window .story::-webkit-scrollbar-thumb,
.dialogue-window .result::-webkit-scrollbar-thumb {
  background: rgba(247, 240, 227, 0.32);
}

.visual .sky,
.visual .ground,
.visual .city,
.visual .focus,
.visual .dust,
.visual .ambient,
.visual .character-layer,
.visual .featured-object {
  position: absolute;
}

.ambient {
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.featured-object {
  z-index: 3;
  display: none;
  max-width: min(32vw, 320px);
  max-height: 44vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.34));
  transform-origin: center;
}

.featured-object.is-visible {
  display: block;
  animation: objectReveal 420ms ease;
}

.character-layer {
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.character-layer.is-empty {
  display: none;
}

.story-character {
  position: absolute;
  bottom: 7%;
  max-height: 58vh;
  max-width: min(26vw, 320px);
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.36));
  transform-origin: bottom center;
  animation: characterBreathe 5.8s ease-in-out infinite;
}

.story-character.is-entering {
  animation: characterEnter 580ms ease both, characterBreathe 5.8s ease-in-out 600ms infinite;
}

.story-character--left {
  left: max(3vw, 28px);
}

.story-character--center {
  left: 50%;
  transform: translateX(-50%);
}

.story-character--center-left {
  left: 18%;
}

.story-character--center-right {
  right: 18%;
}

.story-character--far-left {
  left: max(1vw, 10px);
}

.story-character--right {
  right: max(4vw, 34px);
}

.story-character--far-right {
  right: max(1vw, 10px);
}

.story-character--small {
  max-height: 44vh;
  max-width: min(18vw, 220px);
}

.story-character--medium {
  max-height: 50vh;
  max-width: min(22vw, 270px);
}

.story-character--large {
  max-height: 56vh;
  max-width: min(27vw, 330px);
}

.story-character--shadow {
  filter: saturate(0.92) brightness(0.9) contrast(0.98) drop-shadow(0 18px 20px rgba(0, 0, 0, 0.42));
}

.story-character--memory {
  filter: saturate(0.96) brightness(0.96) sepia(0.08) drop-shadow(0 20px 24px rgba(0, 0, 0, 0.36));
}

.story-character--choice {
  bottom: 9%;
  filter: saturate(0.88) brightness(0.9) drop-shadow(0 22px 28px rgba(0, 0, 0, 0.36));
}

.story-character--ending {
  bottom: 8%;
}

/* 水鏡（mirrorScenes）：水面に映る自分を画面中央に大きく */
.story-character--reflection {
  left: 50%;
  bottom: 16%;
  max-height: 70vh;
  max-width: min(46vw, 500px);
  transform: translateX(-50%);
  animation: none;
  opacity: 0.94;
  filter: saturate(0.82) brightness(0.92) blur(0.4px) drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45));
}

.story-character--reflection.is-entering {
  animation: reflectionReveal 900ms ease both;
}

@keyframes reflectionReveal {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.985);
    filter: saturate(0.6) brightness(0.8) blur(2.4px);
  }
  to {
    opacity: 0.94;
    transform: translateX(-50%) scale(1);
    filter: saturate(0.82) brightness(0.92) blur(0.4px) drop-shadow(0 26px 30px rgba(0, 0, 0, 0.45));
  }
}

.story-character--drift {
  animation: characterDrift 7.2s ease-in-out infinite;
}

.story-character--drift.is-entering {
  animation: characterEnter 580ms ease both, characterDrift 7.2s ease-in-out 600ms infinite;
}

.visual.has-characters .ambient-figure-a,
.visual.has-characters .ambient-figure-b {
  opacity: 0.12;
}

.featured-object--stool-leg {
  right: 4%;
  bottom: 12%;
  width: min(34vw, 420px);
  max-height: 52vh;
  transform: none;
}

.featured-object--ledger {
  right: 7%;
  bottom: 12%;
  width: min(30vw, 290px);
  max-height: 42vh;
  transform: rotate(-7deg);
}

.featured-object--bowl {
  right: 6%;
  bottom: 11%;
  width: min(30vw, 300px);
  max-height: 34vh;
}

.featured-object--parchment {
  right: 5%;
  bottom: 10%;
  width: min(32vw, 320px);
  max-height: 42vh;
  transform: rotate(4deg);
}

.featured-object--firewood {
  right: 7%;
  bottom: 12%;
  width: min(30vw, 300px);
  max-height: 28vh;
  transform: rotate(-6deg);
}

.featured-object--salt-bag {
  right: 6%;
  bottom: 10%;
  width: min(26vw, 240px);
  max-height: 34vh;
  transform: rotate(6deg);
}

.featured-object--sealed-letter {
  right: 6%;
  bottom: 9%;
  width: min(31vw, 320px);
  max-height: 45vh;
  transform: rotate(-3deg);
}

.featured-object--tax-notice {
  right: 5%;
  bottom: 9%;
  width: min(30vw, 300px);
  max-height: 44vh;
  transform: rotate(2deg);
}

.featured-object--apothecary-herbs,
.featured-object--double-bottom-box,
.featured-object--kingdom-map,
.featured-object--royal-edict,
.featured-object--rosary-medal,
.featured-object--travel-pass,
.featured-object--feast-bread-wine,
.featured-object--plane-toolbox,
.featured-object--herb-mortar,
.featured-object--birth-basin,
.featured-object--checkpoint-token,
.featured-object--debt-papers,
.featured-object--balance-scale,
.featured-object--hearth-embers,
.featured-object--dice-cup,
.featured-object--soul-ledger,
.featured-object--skittles-ball,
.featured-object--almanac,
.featured-object--playing-cards,
.featured-object--easter-eggs,
.featured-object--boy-bishop-mitre,
.featured-object--candle-stub,
.featured-object--forged-pass,
.featured-object--galley-chain,
.featured-object--house-key,
.featured-object--rosary,
.featured-object--wedding-ring {
  right: 6%;
  bottom: 11%;
  width: min(30vw, 300px);
  max-height: 34vh;
}

.featured-object--printed-pamphlet {
  right: 6%;
  bottom: 9%;
  width: min(30vw, 300px);
  max-height: 44vh;
  transform: rotate(-2deg);
}

.featured-object--dowry-purse {
  right: 6%;
  bottom: 10%;
  width: min(30vw, 300px);
  max-height: 42vh;
  transform: rotate(2deg);
}

.featured-object--guild-token {
  right: 6%;
  bottom: 10%;
  width: min(30vw, 300px);
  max-height: 42vh;
  transform: rotate(-2deg);
}

.featured-object--avoid-right {
  right: max(22vw, 220px);
}

.featured-object--avoid-center {
  right: max(14vw, 140px);
  bottom: 19%;
  max-height: 30vh;
}

.featured-object--avoid-left {
  right: 3%;
  bottom: 9%;
}

.visual .sky {
  inset: 0;
  background: linear-gradient(#b7c3bd, #eee0c7 64%, #9a7853);
}

.visual .ground {
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(#826448, #5f4837);
}

.city {
  left: 4%;
  right: 4%;
  bottom: 31%;
  height: 46%;
  display: flex;
  align-items: end;
  gap: 2%;
  opacity: 0.88;
}

.city span {
  display: block;
  flex: 1;
  min-width: 40px;
  background: #6d5b4a;
  border: 1px solid rgba(36, 31, 26, 0.25);
}

.city span:nth-child(1) {
  height: 48%;
}

.city span:nth-child(2) {
  height: 72%;
}

.city span:nth-child(3) {
  height: 56%;
}

.city span:nth-child(4) {
  height: 88%;
}

.city span::before {
  content: "";
  display: block;
  width: 42%;
  height: 18%;
  margin: -14% auto 0;
  background: #554331;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.focus {
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 246, 232, 0.9);
  background: #8f3f2a;
  box-shadow: 0 8px 22px rgba(36, 31, 26, 0.25);
  transform: rotate(45deg);
}

.focus-a {
  left: 18%;
  bottom: 24%;
}

.focus-b {
  left: 48%;
  bottom: 34%;
}

.focus-c {
  right: 18%;
  bottom: 22%;
}

.dust {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 250, 240, 0.78);
  animation: drift 6s linear infinite;
}

.dust-a {
  left: 16%;
  bottom: 22%;
}

.dust-b {
  left: 58%;
  bottom: 36%;
  animation-delay: -2s;
}

.dust-c {
  right: 20%;
  bottom: 28%;
  animation-delay: -4s;
}

.ambient-fire {
  width: 70px;
  height: 90px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 70%, rgba(255, 213, 136, 0.95), rgba(210, 105, 38, 0.72) 45%, rgba(210, 105, 38, 0) 70%);
  filter: blur(4px);
}

.ambient-smoke {
  width: 180px;
  height: 220px;
  background: radial-gradient(circle, rgba(200, 196, 188, 0.24), rgba(200, 196, 188, 0) 70%);
  filter: blur(18px);
}

.ambient-shadow {
  width: 54px;
  height: 150px;
  border-radius: 24px 24px 10px 10px;
  background: linear-gradient(180deg, rgba(33, 28, 24, 0.35), rgba(22, 18, 15, 0.78));
  filter: blur(1px);
}

.ambient-glow {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 199, 0.24), rgba(255, 240, 199, 0) 72%);
  filter: blur(14px);
}

.ambient-drape {
  width: 68px;
  height: 140px;
  border-radius: 40px 40px 12px 12px;
  background: linear-gradient(180deg, rgba(128, 98, 79, 0.28), rgba(71, 51, 40, 0.48));
  filter: blur(1px);
}

.ambient-prop {
  width: 120px;
  height: 64px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(72, 50, 34, 0.72), rgba(37, 25, 18, 0.88));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.ambient-door {
  width: 98px;
  height: 210px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(34, 28, 23, 0.14), rgba(18, 14, 11, 0.82));
  filter: blur(0.5px);
}

.ambient-bird {
  width: 44px;
  height: 14px;
  border-top: 2px solid rgba(30, 27, 22, 0.8);
  border-radius: 50%;
  transform-origin: center;
}

.ambient-figure {
  width: 106px;
  height: 244px;
  z-index: 4;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  /* blur softens the hard vector edge; opacity() multiplies the per-scene
     opacity so every figure recedes into the scene as a distant shape */
  /* blur softens the hard vector edge so the figure reads as a distant shape
     rather than a pasted cutout; the dark shadow grounds it. The fill itself
     is a warm brown (not pure black) so it stays visible on dark backgrounds.
     Opacity is driven by the per-figure animations below. */
  filter:
    blur(0.8px)
    drop-shadow(0 6px 11px rgba(0, 0, 0, 0.42));
  mix-blend-mode: normal;
}

.scene-intro .focus-a {
  background: #77543d;
}

.scene-intro .focus-b {
  background: #a86c3f;
  animation: pulse 2.8s ease-in-out infinite;
}

.scene-workshop .sky {
  background:
    linear-gradient(rgba(26, 20, 15, 0.18), rgba(26, 20, 15, 0.18)),
    url("assets/workshop-paris-1500.png") center center / cover no-repeat;
}

.scene-workshop .city,
.scene-workshop .ground,
.scene-workshop .focus-a,
.scene-workshop .focus-b,
.scene-workshop .focus-c {
  display: none;
}

.scene-workshop .ambient-fire {
  left: 34.2%;
  bottom: 28.1%;
  width: 58px;
  height: 68px;
  opacity: 0.66;
  animation: fireFlicker 2s ease-in-out infinite;
}

.scene-workshop .ambient-smoke {
  left: 29.8%;
  bottom: 35.6%;
  width: 148px;
  height: 196px;
  opacity: 0.26;
  animation: smokeRise 9s linear infinite;
}

.scene-workshop .ambient-glow {
  left: 29.4%;
  bottom: 20.3%;
  width: 164px;
  height: 164px;
  opacity: 0.18;
  animation: lightBreath 4.8s ease-in-out infinite;
}

.scene-workshop .ambient-prop-a {
  left: 2%;
  bottom: 5%;
  opacity: 0.58;
  transform: rotate(-6deg);
}

.scene-workshop .ambient-prop-b {
  display: none;
}

.scene-workshop .ambient-door {
  right: 24%;
  bottom: 20%;
  opacity: 0.18;
}

.scene-workshop .ambient-figure-a {
  left: 13%;
  bottom: 12%;
  width: 104px;
  height: 240px;
  opacity: 0.96;
  transform: scale(1.05);
  animation: craftsmanShift 7s ease-in-out infinite;
  background-image: url("assets/silhouette-standing.svg");
}

.scene-workshop .ambient-figure-b {
  display: none;
}

.scene-dawn-street .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 48%, rgba(12, 9, 7, 0.16)),
    url("assets/dawn-street-paris-1517.png") center center / cover no-repeat;
}

.scene-dawn-street .city,
.scene-dawn-street .ground,
.scene-dawn-street .focus-a,
.scene-dawn-street .focus-b,
.scene-dawn-street .focus-c {
  display: none;
}

.scene-water-mirror .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.44), rgba(12, 9, 7, 0.06) 50%, rgba(12, 9, 7, 0.14)),
    url("assets/water-mirror-paris-1517.png") center center / cover no-repeat;
}

.scene-water-mirror .city,
.scene-water-mirror .ground,
.scene-water-mirror .focus-a,
.scene-water-mirror .focus-b,
.scene-water-mirror .focus-c {
  display: none;
}

.scene-workshop-night .sky {
  background:
    linear-gradient(to top, rgba(7, 6, 5, 0.58), rgba(7, 6, 5, 0.1) 48%, rgba(7, 6, 5, 0.22)),
    url("assets/workshop-night-paris-1517.png") center center / cover no-repeat;
}

.scene-workshop-night .city,
.scene-workshop-night .ground,
.scene-workshop-night .focus-a,
.scene-workshop-night .focus-b,
.scene-workshop-night .focus-c {
  display: none;
}

.scene-war-news .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.44), rgba(12, 9, 7, 0.06) 46%, rgba(12, 9, 7, 0.18)),
    url("assets/war-news-paris-1522.png") center center / cover no-repeat;
}

.scene-war-news .city,
.scene-war-news .ground,
.scene-war-news .focus-a,
.scene-war-news .focus-b,
.scene-war-news .focus-c {
  display: none;
}

.scene-italian-war .sky {
  background:
    linear-gradient(to top, rgba(7, 6, 5, 0.58), rgba(7, 6, 5, 0.12) 48%, rgba(7, 6, 5, 0.24)),
    url("assets/italian-war-battlefield-1522.png") center center / cover no-repeat;
}

.scene-italian-war .city,
.scene-italian-war .ground,
.scene-italian-war .focus-a,
.scene-italian-war .focus-b,
.scene-italian-war .focus-c {
  display: none;
}

.scene-court-yard .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 48%, rgba(12, 9, 7, 0.18)),
    url("assets/court-yard-paris-1520.png") center center / cover no-repeat;
}

.scene-court-yard .city,
.scene-court-yard .ground,
.scene-court-yard .focus-a,
.scene-court-yard .focus-b,
.scene-court-yard .focus-c {
  display: none;
}

.scene-river-fog .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.48), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/river-fog-paris-1518.png") center center / cover no-repeat;
}

.scene-river-fog .city,
.scene-river-fog .ground,
.scene-river-fog .focus-a,
.scene-river-fog .focus-b,
.scene-river-fog .focus-c {
  display: none;
}

.scene-seine-dusk .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.5), rgba(12, 9, 7, 0.06) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/seine-dusk-paris-1522.png") center center / cover no-repeat;
}

.scene-seine-dusk .city,
.scene-seine-dusk .ground,
.scene-seine-dusk .focus-a,
.scene-seine-dusk .focus-b,
.scene-seine-dusk .focus-c {
  display: none;
}

.scene-journey-road .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.48), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/journey-road-loire-1536.png") center center / cover no-repeat;
}

.scene-journey-road .city,
.scene-journey-road .ground,
.scene-journey-road .focus-a,
.scene-journey-road .focus-b,
.scene-journey-road .focus-c {
  display: none;
}

.scene-night-1572 .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.4), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/night-paris-1572.png") center center / cover no-repeat;
}

.scene-night-1572 .city,
.scene-night-1572 .ground,
.scene-night-1572 .focus-a,
.scene-night-1572 .focus-b,
.scene-night-1572 .focus-c {
  display: none;
}

.scene-plague-street .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.48), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/plague-street-lyon-1564.png") center center / cover no-repeat;
}

.scene-plague-street .city,
.scene-plague-street .ground,
.scene-plague-street .focus-a,
.scene-plague-street .focus-b,
.scene-plague-street .focus-c {
  display: none;
}

.scene-deathbed .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.42), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/deathbed-room-1570.png") center center / cover no-repeat;
}

.scene-deathbed .city,
.scene-deathbed .ground,
.scene-deathbed .focus-a,
.scene-deathbed .focus-b,
.scene-deathbed .focus-c {
  display: none;
}

.scene-pavia-road .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/pavia-aftermath-road-1525.png") center center / cover no-repeat;
}

.scene-pavia-road .city,
.scene-pavia-road .ground,
.scene-pavia-road .focus-a,
.scene-pavia-road .focus-b,
.scene-pavia-road .focus-c {
  display: none;
}

.scene-sunlit-courtyard .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/sunlit-workshop-courtyard-paris-1530.png") center center / cover no-repeat;
}

.scene-sunlit-courtyard .city,
.scene-sunlit-courtyard .ground,
.scene-sunlit-courtyard .focus-a,
.scene-sunlit-courtyard .focus-b,
.scene-sunlit-courtyard .focus-c {
  display: none;
}

.scene-parish-feast .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/parish-feast-square-paris-1530.png") center center / cover no-repeat;
}

.scene-parish-feast .city,
.scene-parish-feast .ground,
.scene-parish-feast .focus-a,
.scene-parish-feast .focus-b,
.scene-parish-feast .focus-c {
  display: none;
}

.scene-corpus-christi .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/corpus-christi-procession-paris-1540.png") center center / cover no-repeat;
}

.scene-corpus-christi .city,
.scene-corpus-christi .ground,
.scene-corpus-christi .focus-a,
.scene-corpus-christi .focus-b,
.scene-corpus-christi .focus-c {
  display: none;
}

.scene-evacuation .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/evacuation-cart-town-gate-1562.png") center center / cover no-repeat;
}

.scene-evacuation .city,
.scene-evacuation .ground,
.scene-evacuation .focus-a,
.scene-evacuation .focus-b,
.scene-evacuation .focus-c {
  display: none;
}

.scene-loire-harvest .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/loire-harvest-custom-1538.png") center center / cover no-repeat;
}

.scene-loire-harvest .city,
.scene-loire-harvest .ground,
.scene-loire-harvest .focus-a,
.scene-loire-harvest .focus-b,
.scene-loire-harvest .focus-c {
  display: none;
}

.scene-ferry-deck .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/ferry-deck-loire-1537.png") center center / cover no-repeat;
}

.scene-ferry-deck .city,
.scene-ferry-deck .ground,
.scene-ferry-deck .focus-a,
.scene-ferry-deck .focus-b,
.scene-ferry-deck .focus-c {
  display: none;
}

.scene-cathedral-up .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/cathedral-floor-1545.png") center center / cover no-repeat;
}

.scene-cathedral-up .city,
.scene-cathedral-up .ground,
.scene-cathedral-up .focus-a,
.scene-cathedral-up .focus-b,
.scene-cathedral-up .focus-c {
  display: none;
}

.scene-burning-sky .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/burning-sky-1572.png") center center / cover no-repeat;
}

.scene-burning-sky .city,
.scene-burning-sky .ground,
.scene-burning-sky .focus-a,
.scene-burning-sky .focus-b,
.scene-burning-sky .focus-c {
  display: none;
}

.scene-galley .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/galley-oars-1554.png") center center / cover no-repeat;
}

.scene-galley .city,
.scene-galley .ground,
.scene-galley .focus-a,
.scene-galley .focus-b,
.scene-galley .focus-c {
  display: none;
}

.scene-rooftops .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/rooftops-paris-dawn-1534.png") center center / cover no-repeat;
}

.scene-rooftops .city,
.scene-rooftops .ground,
.scene-rooftops .focus-a,
.scene-rooftops .focus-b,
.scene-rooftops .focus-c {
  display: none;
}

.scene-snow-road .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/snowfield-road-1560.png") center center / cover no-repeat;
}

.scene-snow-road .city,
.scene-snow-road .ground,
.scene-snow-road .focus-a,
.scene-snow-road .focus-b,
.scene-snow-road .focus-c {
  display: none;
}

.scene-ruined-church .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/damaged-parish-church-1562.png") center center / cover no-repeat;
}

.scene-ruined-church .city,
.scene-ruined-church .ground,
.scene-ruined-church .focus-a,
.scene-ruined-church .focus-b,
.scene-ruined-church .focus-c {
  display: none;
}

.scene-crash-courtyard .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/merchant-courtyard-collapse-1557.png") center center / cover no-repeat;
}

.scene-crash-courtyard .city,
.scene-crash-courtyard .ground,
.scene-crash-courtyard .focus-a,
.scene-crash-courtyard .focus-b,
.scene-crash-courtyard .focus-c {
  display: none;
}

.scene-river-checkpoint .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/river-checkpoint-gate-1540.png") center center / cover no-repeat;
}

.scene-river-checkpoint .city,
.scene-river-checkpoint .ground,
.scene-river-checkpoint .focus-a,
.scene-river-checkpoint .focus-b,
.scene-river-checkpoint .focus-c {
  display: none;
}

.scene-inn-birth .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/roadside-inn-birth-loire-1530.png") center center / cover no-repeat;
}

.scene-inn-birth .city,
.scene-inn-birth .ground,
.scene-inn-birth .focus-a,
.scene-inn-birth .focus-b,
.scene-inn-birth .focus-c {
  display: none;
}

.scene-la-rochelle .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/la-rochelle-harbor-1560.png") center center / cover no-repeat;
}

.scene-la-rochelle .city,
.scene-la-rochelle .ground,
.scene-la-rochelle .focus-a,
.scene-la-rochelle .focus-b,
.scene-la-rochelle .focus-c {
  display: none;
}

.scene-family-supper .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/family-supper-1535.png") center center / cover no-repeat;
}

.scene-family-supper .city,
.scene-family-supper .ground,
.scene-family-supper .focus-a,
.scene-family-supper .focus-b,
.scene-family-supper .focus-c {
  display: none;
}

.scene-camp-night .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/camp-night-family-1535.png") center center / cover no-repeat;
}

.scene-camp-night .city,
.scene-camp-night .ground,
.scene-camp-night .focus-a,
.scene-camp-night .focus-b,
.scene-camp-night .focus-c {
  display: none;
}

.scene-title-allroads .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/title-allroads-1502.png") center center / cover no-repeat;
}

.scene-title-allroads .city,
.scene-title-allroads .ground,
.scene-title-allroads .focus-a,
.scene-title-allroads .focus-b,
.scene-title-allroads .focus-c {
  display: none;
}

.scene-skittles-lane .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/skittles-lane-paris-1550.png") center center / cover no-repeat;
}

.scene-skittles-lane .city,
.scene-skittles-lane .ground,
.scene-skittles-lane .focus-a,
.scene-skittles-lane .focus-b,
.scene-skittles-lane .focus-c {
  display: none;
}

.scene-well-gossip .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/well-gossip-paris-1525.png") center center / cover no-repeat;
}

.scene-well-gossip .city,
.scene-well-gossip .ground,
.scene-well-gossip .focus-a,
.scene-well-gossip .focus-b,
.scene-well-gossip .focus-c {
  display: none;
}

.scene-tavern .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/tavern-interior-1540.png") center center / cover no-repeat;
}

.scene-tavern .city,
.scene-tavern .ground,
.scene-tavern .focus-a,
.scene-tavern .focus-b,
.scene-tavern .focus-c {
  display: none;
}

.scene-bear-leader .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/bear-leader-market-1540.png") center center / cover no-repeat;
}

.scene-bear-leader .city,
.scene-bear-leader .ground,
.scene-bear-leader .focus-a,
.scene-bear-leader .focus-b,
.scene-bear-leader .focus-c {
  display: none;
}

.scene-almsgiving .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.46), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/almsgiving-hall-1535.png") center center / cover no-repeat;
}

.scene-almsgiving .city,
.scene-almsgiving .ground,
.scene-almsgiving .focus-a,
.scene-almsgiving .focus-b,
.scene-almsgiving .focus-c {
  display: none;
}


.scene-lyon-fair .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.48), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/lyon-fair-1537.png") center center / cover no-repeat;
}

.scene-lyon-fair .city,
.scene-lyon-fair .ground,
.scene-lyon-fair .focus-a,
.scene-lyon-fair .focus-b,
.scene-lyon-fair .focus-c {
  display: none;
}

.scene-sacristy .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.5), rgba(12, 9, 7, 0.08) 50%, rgba(12, 9, 7, 0.16)),
    url("assets/sacristy-paris-1550.png") center center / cover no-repeat;
}

.scene-sacristy .city,
.scene-sacristy .ground,
.scene-sacristy .focus-a,
.scene-sacristy .focus-b,
.scene-sacristy .focus-c {
  display: none;
}

.scene-wedding-contract .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.54), rgba(12, 9, 7, 0.1) 48%, rgba(12, 9, 7, 0.22)),
    url("assets/wedding-contract-paris-1520.png") center center / cover no-repeat;
}

.scene-wedding-contract .city,
.scene-wedding-contract .ground,
.scene-wedding-contract .focus-a,
.scene-wedding-contract .focus-b,
.scene-wedding-contract .focus-c {
  display: none;
}

.scene-guild-hall .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.54), rgba(12, 9, 7, 0.1) 48%, rgba(12, 9, 7, 0.2)),
    url("assets/guild-hall-paris-1519.png") center center / cover no-repeat;
}

.scene-guild-hall .city,
.scene-guild-hall .ground,
.scene-guild-hall .focus-a,
.scene-guild-hall .focus-b,
.scene-guild-hall .focus-c {
  display: none;
}

.scene-poor-sickroom .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.56), rgba(12, 9, 7, 0.08) 48%, rgba(12, 9, 7, 0.22)),
    url("assets/poor-sickroom-paris-1518.png") center center / cover no-repeat;
}

.scene-poor-sickroom .city,
.scene-poor-sickroom .ground,
.scene-poor-sickroom .focus-a,
.scene-poor-sickroom .focus-b,
.scene-poor-sickroom .focus-c {
  display: none;
}

.scene-print-shop .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.5), rgba(12, 9, 7, 0.08) 48%, rgba(12, 9, 7, 0.16)),
    url("assets/print-shop-paris-1520.png") center center / cover no-repeat;
}

.scene-print-shop .city,
.scene-print-shop .ground,
.scene-print-shop .focus-a,
.scene-print-shop .focus-b,
.scene-print-shop .focus-c {
  display: none;
}

.scene-market-dusk .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.5), rgba(12, 9, 7, 0.08) 48%, rgba(12, 9, 7, 0.16)),
    url("assets/market-dusk-paris-1518.png") center center / cover no-repeat;
}

.scene-market-dusk .city,
.scene-market-dusk .ground,
.scene-market-dusk .focus-a,
.scene-market-dusk .focus-b,
.scene-market-dusk .focus-c {
  display: none;
}

.scene-market .sky {
  background:
    linear-gradient(rgba(22, 18, 14, 0.14), rgba(22, 18, 14, 0.14)),
    url("assets/market-paris-1509.png") center center / cover no-repeat;
}

.scene-market .city,
.scene-market .ground,
.scene-market .focus-a,
.scene-market .focus-b,
.scene-market .focus-c {
  display: none;
}

.scene-market .ambient-shadow-a {
  left: 18%;
  bottom: 16%;
  width: 78px;
  height: 192px;
  opacity: 0.54;
  animation: passerBy 8.5s linear infinite;
}

.scene-market .ambient-shadow-b {
  left: 63%;
  bottom: 14%;
  width: 64px;
  height: 176px;
  opacity: 0.42;
  animation: passerByAlt 7.2s linear infinite;
}

.scene-market .ambient-drape {
  right: 18%;
  top: 21%;
  width: 108px;
  height: 240px;
  opacity: 0.54;
  animation: clothSwayWide 3.4s ease-in-out infinite;
}

.scene-market .ambient-prop-a {
  left: 5%;
  bottom: 8%;
  width: 180px;
  height: 52px;
  opacity: 0.44;
  transform: rotate(-5deg);
}

.scene-market .ambient-prop-b {
  right: 10%;
  bottom: 10%;
  width: 82px;
  height: 84px;
  opacity: 0.3;
}

.scene-market .ambient-prop-c {
  right: 28%;
  bottom: 13%;
  width: 100px;
  height: 66px;
  opacity: 0.18;
}

.scene-market .ambient-door {
  left: 74%;
  bottom: 17%;
  opacity: 0.18;
}

.scene-market .ambient-glow {
  left: 33%;
  top: 8%;
  opacity: 0.3;
  animation: lightBreath 4.6s ease-in-out infinite;
}

.scene-market .ambient-bird {
  left: 56%;
  top: 18%;
  opacity: 0.48;
  animation: birdCross 9s linear infinite;
}

.scene-market .ambient-bird-b {
  left: 18%;
  top: 12%;
  opacity: 0.32;
  animation: birdCrossAlt 11s linear infinite;
}

/* Placed back in the crowd band (deeper), not in the empty foreground street,
   so the small size reads as distance instead of a tiny person standing close. */
.scene-market .ambient-figure-a {
  left: 30%;
  bottom: 34%;
  width: 44px;
  height: 100px;
  opacity: 0.9;
  animation: figureWalk 8.5s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-market .ambient-figure-b {
  left: 58%;
  bottom: 35%;
  width: 40px;
  height: 92px;
  opacity: 0.86;
  animation: figureWalkAlt 7s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-table .sky {
  background:
    linear-gradient(rgba(26, 20, 15, 0.18), rgba(26, 20, 15, 0.18)),
    url("assets/table-paris-1509.png") center center / cover no-repeat;
}

.scene-table .city,
.scene-table .ground,
.scene-table .focus-a,
.scene-table .focus-b,
.scene-table .focus-c {
  display: none;
}

.scene-table .ambient-fire {
  left: 44%;
  bottom: 29%;
  opacity: 0.76;
  animation: fireFlicker 2.4s ease-in-out infinite;
}

.scene-table .ambient-glow {
  left: 35%;
  bottom: 19%;
  opacity: 0.28;
  animation: lightBreath 5.8s ease-in-out infinite;
}

.scene-table .ambient-shadow-a {
  right: 14%;
  bottom: 17%;
  opacity: 0.16;
  animation: seatedShift 7s ease-in-out infinite;
}

.scene-table .ambient-prop-a {
  left: 8%;
  bottom: 6%;
  width: 132px;
  height: 48px;
  opacity: 0.32;
}

.scene-table .ambient-prop-b {
  right: 16%;
  bottom: 14%;
  width: 62px;
  height: 62px;
  opacity: 0.22;
}

.scene-table .ambient-door {
  left: 64%;
  bottom: 18%;
  opacity: 0.14;
}

.scene-table .ambient-figure-a {
  right: 16%;
  bottom: 15%;
  height: 166px;
  width: 106px;
  opacity: 0.9;
  animation: seatedFigure 7s ease-in-out infinite;
  background-image: url("assets/silhouette-seated.svg");
}

.scene-table .ambient-figure-b {
  display: none;
}

.scene-crossroads .sky {
  background:
    linear-gradient(rgba(20, 17, 14, 0.16), rgba(20, 17, 14, 0.16)),
    url("assets/crossroads-paris-1509.png") center center / cover no-repeat;
}

.scene-crossroads .city,
.scene-crossroads .ground,
.scene-crossroads .focus-a,
.scene-crossroads .focus-b,
.scene-crossroads .focus-c {
  display: none;
}

.scene-crossroads .ambient-shadow-a {
  left: 26%;
  bottom: 19%;
  opacity: 0.2;
  animation: passerBy 13s linear infinite;
}

.scene-crossroads .ambient-smoke {
  left: 46%;
  bottom: 24%;
  opacity: 0.24;
  animation: mistDrift 11s linear infinite;
}

.scene-crossroads .ambient-prop-a {
  left: 5%;
  bottom: 8%;
  width: 90px;
  height: 112px;
  opacity: 0.2;
}

.scene-crossroads .ambient-door {
  right: 8%;
  bottom: 16%;
  opacity: 0.12;
}

.scene-crossroads .ambient-bird {
  left: 48%;
  top: 24%;
  opacity: 0.22;
  animation: birdCross 12s linear infinite;
}

.scene-crossroads .ambient-figure-a {
  left: 30%;
  bottom: 18%;
  width: 70px;
  height: 160px;
  opacity: 0.92;
  animation: figureWalk 12s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-crossroads .ambient-figure-b {
  left: 60%;
  bottom: 17%;
  width: 62px;
  height: 142px;
  opacity: 0.86;
  animation: figureWalkAlt 14s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-study .sky {
  background:
    linear-gradient(rgba(20, 18, 17, 0.16), rgba(20, 18, 17, 0.16)),
    url("assets/study-paris-1509.png") center center / cover no-repeat;
}

.scene-study .city,
.scene-study .ground,
.scene-study .focus-a,
.scene-study .focus-b,
.scene-study .focus-c {
  display: none;
}

.scene-study .ambient-fire {
  right: 27%;
  bottom: 26%;
  width: 44px;
  height: 58px;
  opacity: 0.52;
  animation: candleFlicker 2.1s ease-in-out infinite;
}

.scene-study .ambient-glow {
  left: 5%;
  top: 16%;
  opacity: 0.24;
  animation: lightBreath 6.6s ease-in-out infinite;
}

.scene-study .ambient-drape {
  left: 11%;
  top: 18%;
  opacity: 0.22;
  animation: clothSway 6s ease-in-out infinite;
}

.scene-study .ambient-prop-a {
  left: 16%;
  bottom: 10%;
  width: 128px;
  height: 44px;
  opacity: 0.28;
  transform: rotate(-8deg);
}

.scene-study .ambient-figure-a {
  right: 20%;
  bottom: 16%;
  height: 152px;
  opacity: 0.9;
  animation: readerLean 6.2s ease-in-out infinite;
  background-image: url("assets/silhouette-reader.svg");
}

.scene-study .ambient-figure-b {
  display: none;
}

.scene-study .ambient-prop-b {
  right: 17%;
  bottom: 16%;
  width: 64px;
  height: 86px;
  opacity: 0.2;
}

.scene-study .ambient-door {
  left: 62%;
  bottom: 16%;
  opacity: 0.12;
}

.scene-alley .sky {
  background:
    linear-gradient(rgba(18, 15, 12, 0.18), rgba(18, 15, 12, 0.18)),
    url("assets/alley-paris-1509.png") center center / cover no-repeat;
}

.scene-alley .city,
.scene-alley .ground,
.scene-alley .focus-a,
.scene-alley .focus-b,
.scene-alley .focus-c {
  display: none;
}

.scene-alley .ambient-smoke {
  left: 54%;
  bottom: 38%;
  width: 190px;
  height: 220px;
  opacity: 0.24;
  animation: smokeRise 10s linear infinite;
}

.scene-alley .ambient-glow {
  left: 8%;
  top: 28%;
  width: 96px;
  height: 96px;
  opacity: 0.22;
  animation: lightBreath 5.2s ease-in-out infinite;
}

.scene-alley .ambient-prop-a {
  display: none;
}

.scene-alley .ambient-door {
  right: 10%;
  bottom: 24%;
  opacity: 0.12;
}

.scene-alley .ambient-figure-a {
  left: 49%;
  bottom: 11%;
  width: 58px;
  height: 132px;
  opacity: 0.98;
  animation: craftsmanShift 8s ease-in-out infinite;
  background-image: url("assets/silhouette-standing.svg");
}

.scene-alley .ambient-figure-b {
  left: 16%;
  bottom: 13%;
  width: 84px;
  height: 188px;
  opacity: 0.9;
  animation: figureWalk 12s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-church .sky {
  background:
    linear-gradient(rgba(18, 16, 14, 0.16), rgba(18, 16, 14, 0.16)),
    url("assets/church-paris-1509.png") center center / cover no-repeat;
}

.scene-church .city,
.scene-church .ground,
.scene-church .focus-a,
.scene-church .focus-b,
.scene-church .focus-c {
  display: none;
}

.scene-church .ambient-glow {
  right: 18%;
  bottom: 26%;
  width: 110px;
  height: 110px;
  opacity: 0.2;
  animation: lightBreath 4.8s ease-in-out infinite;
}

.scene-church .ambient-bird {
  left: 30%;
  top: 12%;
  opacity: 0.28;
  animation: birdCross 12s linear infinite;
}

.scene-church .ambient-prop-a {
  right: 14%;
  bottom: 20%;
  width: 120px;
  height: 42px;
  opacity: 0.14;
  transform: rotate(-6deg);
}

.scene-church .ambient-door {
  right: 17%;
  bottom: 34%;
  opacity: 0.18;
}

.scene-church .ambient-figure-a {
  left: 17%;
  bottom: 12%;
  width: 78px;
  height: 168px;
  opacity: 0.94;
  animation: figureWalk 11s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-church .ambient-figure-b {
  left: 53%;
  bottom: 16%;
  width: 64px;
  height: 142px;
  opacity: 0.84;
  animation: figureWalkAlt 13s linear infinite;
  background-image: url("assets/silhouette-standing.svg");
}

.scene-church-evening .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 7, 0.52), rgba(12, 9, 7, 0.1) 48%, rgba(12, 9, 7, 0.2)),
    url("assets/church-evening-paris-1519.png") center center / cover no-repeat;
}

.scene-church-evening .city,
.scene-church-evening .ground,
.scene-church-evening .focus-a,
.scene-church-evening .focus-b,
.scene-church-evening .focus-c {
  display: none;
}

.scene-quay .sky {
  background:
    linear-gradient(rgba(16, 15, 14, 0.14), rgba(16, 15, 14, 0.14)),
    url("assets/quay-paris-1509.png") center center / cover no-repeat;
}

.scene-quay .city,
.scene-quay .ground,
.scene-quay .focus-a,
.scene-quay .focus-b,
.scene-quay .focus-c {
  display: none;
}

.scene-quay .ambient-smoke {
  left: 54%;
  bottom: 36%;
  width: 210px;
  height: 250px;
  opacity: 0.18;
  animation: mistDrift 12s linear infinite;
}

.scene-quay .ambient-prop-a {
  right: 4%;
  bottom: 8%;
  width: 120px;
  height: 90px;
  opacity: 0.18;
}

.scene-quay .ambient-bird {
  left: 60%;
  top: 16%;
  opacity: 0.24;
  animation: birdCrossAlt 10s linear infinite;
}

.scene-quay .ambient-figure-a {
  left: 20%;
  bottom: 16%;
  width: 78px;
  height: 170px;
  opacity: 0.94;
  animation: figureWalk 10s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-quay .ambient-figure-b {
  left: 34%;
  bottom: 16%;
  width: 66px;
  height: 150px;
  opacity: 0.88;
  animation: figureWalkAlt 12s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-bridge .sky {
  background:
    linear-gradient(rgba(22, 18, 14, 0.18), rgba(22, 18, 14, 0.18)),
    url("assets/bridge-paris-1515.png") center center / cover no-repeat;
}

.scene-bridge .city,
.scene-bridge .ground,
.scene-bridge .focus-a,
.scene-bridge .focus-b,
.scene-bridge .focus-c {
  display: none;
}

.scene-bridge .ambient-smoke {
  left: 40%;
  bottom: 31%;
  width: 168px;
  height: 196px;
  opacity: 0.22;
  animation: smokeRise 10s linear infinite;
}

.scene-bridge .ambient-prop-a {
  left: 4%;
  bottom: 8%;
  width: 188px;
  height: 50px;
  opacity: 0.34;
  transform: rotate(-4deg);
}

.scene-bridge .ambient-bird {
  left: 62%;
  top: 14%;
  opacity: 0.3;
  animation: birdCross 10s linear infinite;
}

.scene-bridge .ambient-figure-a {
  left: 24%;
  bottom: 15%;
  width: 80px;
  height: 168px;
  opacity: 0.94;
  animation: figureWalk 10s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-bridge .ambient-figure-b {
  left: 40%;
  bottom: 15%;
  width: 66px;
  height: 146px;
  opacity: 0.86;
  animation: figureWalkAlt 11s linear infinite;
  background-image: url("assets/silhouette-walking.svg");
}

.scene-table-night .sky {
  background:
    linear-gradient(rgba(22, 17, 13, 0.18), rgba(22, 17, 13, 0.18)),
    url("assets/table-night-paris-1509.png") center center / cover no-repeat;
}

.scene-table-night .city,
.scene-table-night .ground,
.scene-table-night .focus-a,
.scene-table-night .focus-b,
.scene-table-night .focus-c {
  display: none;
}

.scene-table-night .ambient-fire {
  left: 74%;
  bottom: 27%;
  width: 70px;
  height: 86px;
  opacity: 0.82;
  animation: fireFlicker 2.1s ease-in-out infinite;
}

.scene-table-night .ambient-glow {
  left: 60%;
  bottom: 16%;
  width: 160px;
  height: 160px;
  opacity: 0.2;
  animation: lightBreath 6.2s ease-in-out infinite;
}

.scene-table-night .ambient-figure-a {
  right: 18%;
  bottom: 12%;
  width: 108px;
  height: 172px;
  opacity: 0.92;
  animation: seatedFigure 7.4s ease-in-out infinite;
  background-image: url("assets/silhouette-seated.svg");
}

.scene-table-night .ambient-figure-b {
  left: 28%;
  bottom: 14%;
  width: 104px;
  height: 168px;
  opacity: 0.8;
  animation: seatedShift 8s ease-in-out infinite;
  background-image: url("assets/silhouette-seated.svg");
}

.scene-winter-street .sky {
  background:
    linear-gradient(to top, rgba(7, 6, 5, 0.6), rgba(7, 6, 5, 0.12) 48%, rgba(7, 6, 5, 0.26)),
    url("assets/winter-street-paris-1519.png") center center / cover no-repeat;
}

.scene-winter-street .city,
.scene-winter-street .ground,
.scene-winter-street .focus-a,
.scene-winter-street .focus-b,
.scene-winter-street .focus-c {
  display: none;
}

.scene-scribe-room .sky {
  background:
    linear-gradient(rgba(18, 16, 14, 0.18), rgba(18, 16, 14, 0.18)),
    url("assets/scribe-room-paris-1509.png") center center / cover no-repeat;
}

.scene-scribe-room .city,
.scene-scribe-room .ground,
.scene-scribe-room .focus-a,
.scene-scribe-room .focus-b,
.scene-scribe-room .focus-c {
  display: none;
}

.scene-scribe-room .ambient-fire {
  left: 38%;
  bottom: 25%;
  width: 44px;
  height: 60px;
  opacity: 0.54;
  animation: candleFlicker 2.1s ease-in-out infinite;
}

.scene-scribe-room .ambient-glow {
  left: 30%;
  bottom: 16%;
  width: 120px;
  height: 120px;
  opacity: 0.16;
  animation: lightBreath 5.6s ease-in-out infinite;
}

.scene-scribe-room .ambient-drape {
  right: 9%;
  top: 16%;
  width: 90px;
  height: 220px;
  opacity: 0.18;
  animation: clothSway 6.4s ease-in-out infinite;
}

.scene-scribe-room .ambient-figure-a {
  right: 24%;
  bottom: 15%;
  width: 96px;
  height: 156px;
  opacity: 0.88;
  animation: readerLean 6.4s ease-in-out infinite;
  background-image: url("assets/silhouette-reader.svg");
}

.scene-scribe-room .ambient-figure-b {
  display: none;
}

.scene-records-room .sky {
  background:
    linear-gradient(rgba(18, 16, 14, 0.22), rgba(18, 16, 14, 0.22)),
    url("assets/records-room-paris-1515.png") center center / cover no-repeat;
}

.scene-records-room .city,
.scene-records-room .ground,
.scene-records-room .focus-a,
.scene-records-room .focus-b,
.scene-records-room .focus-c {
  display: none;
}

.scene-records-room .ambient-fire {
  left: 72%;
  bottom: 18%;
  width: 48px;
  height: 62px;
  opacity: 0.34;
  animation: candleFlicker 2.1s ease-in-out infinite;
}

.scene-records-room .ambient-glow {
  left: 56%;
  top: 13%;
  width: 160px;
  height: 160px;
  opacity: 0.18;
  animation: lightBreath 5.6s ease-in-out infinite;
}

.scene-records-room .ambient-drape {
  right: 10%;
  top: 18%;
  width: 88px;
  height: 210px;
  opacity: 0.22;
  animation: clothSway 6.2s ease-in-out infinite;
}

.scene-records-room .ambient-figure-a {
  right: 18%;
  bottom: 13%;
  width: 94px;
  height: 156px;
  opacity: 0.88;
  animation: readerLean 6.4s ease-in-out infinite;
  background-image: url("assets/silhouette-reader.svg");
}

.scene-records-room .ambient-figure-b {
  display: none;
}

/* Interiors read as complete on their own. In these tight, dark rooms a
   foreground silhouette breaks both scale and lighting (it sinks into the
   shadow or floats up like plaster), so the figures are hidden here and the
   ambient props / fire / candle carry the sense of life instead. */
.scene-workshop .ambient-figure-a,
.scene-workshop .ambient-figure-b,
.scene-table .ambient-figure-a,
.scene-table .ambient-figure-b,
.scene-table-night .ambient-figure-a,
.scene-table-night .ambient-figure-b,
.scene-study .ambient-figure-a,
.scene-study .ambient-figure-b,
.scene-records-room .ambient-figure-a,
.scene-records-room .ambient-figure-b,
.scene-scribe-room .ambient-figure-a,
.scene-scribe-room .ambient-figure-b {
  display: none;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: translate(70px, -90px);
    opacity: 0;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }
  50% {
    transform: rotate(45deg) scale(1.08);
  }
}

@keyframes objectReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes characterEnter {
  0% {
    translate: 0 18px;
  }
  100% {
    translate: 0 0;
  }
}

@keyframes characterBreathe {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 3px;
  }
}

@keyframes characterDrift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: -7px 2px;
  }
}

@keyframes flame {
  0%,
  100% {
    transform: rotate(45deg) scale(0.92);
    filter: brightness(1);
  }
  50% {
    transform: rotate(45deg) scale(1.08);
    filter: brightness(1.25);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes sceneDissolve {
  0% {
    filter: brightness(1) saturate(1) blur(0);
    opacity: 1;
  }
  35% {
    filter: brightness(0.42) saturate(0.74) blur(3px);
    opacity: 0.68;
  }
  70% {
    filter: brightness(0.88) saturate(0.92) blur(1px);
    opacity: 0.9;
  }
  100% {
    filter: brightness(1) saturate(1) blur(0);
    opacity: 1;
  }
}

@keyframes windowDip {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  35% {
    opacity: 0.25;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes summaryFlash {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    box-shadow: 0 0 0 rgba(255, 219, 137, 0);
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 28px rgba(255, 219, 137, 0.34);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 rgba(255, 219, 137, 0);
  }
}

@keyframes fireFlicker {
  0%,
  100% {
    transform: scale(0.96) translateY(0);
    filter: blur(4px) brightness(0.95);
  }
  50% {
    transform: scale(1.08) translateY(-4px);
    filter: blur(5px) brightness(1.18);
  }
}

@keyframes candleFlicker {
  0%,
  100% {
    transform: scale(0.96) rotate(-2deg);
    filter: blur(3px) brightness(0.9);
  }
  50% {
    transform: scale(1.08) rotate(2deg);
    filter: blur(4px) brightness(1.15);
  }
}

@keyframes smokeRise {
  0% {
    transform: translate(0, 14px) scale(0.88);
    opacity: 0.08;
  }
  30% {
    opacity: 0.26;
  }
  100% {
    transform: translate(26px, -80px) scale(1.16);
    opacity: 0;
  }
}

@keyframes mistDrift {
  0% {
    transform: translateX(-26px);
    opacity: 0.08;
  }
  35% {
    opacity: 0.22;
  }
  100% {
    transform: translateX(42px);
    opacity: 0;
  }
}

@keyframes lightBreath {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.18;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.34;
  }
}

@keyframes clothSway {
  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(2px);
  }
}

@keyframes clothSwayWide {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0) scaleX(0.98);
  }
  50% {
    transform: rotate(5deg) translateY(5px) scaleX(1.04);
  }
}

@keyframes passerBy {
  0% {
    transform: translateX(-48px) scale(0.96);
    opacity: 0;
  }
  18% {
    opacity: 0.36;
  }
  50% {
    opacity: 0.52;
  }
  100% {
    transform: translateX(320px) scale(1.04);
    opacity: 0;
  }
}

@keyframes passerByAlt {
  0% {
    transform: translateX(56px) scale(1.02);
    opacity: 0;
  }
  22% {
    opacity: 0.32;
  }
  60% {
    opacity: 0.44;
  }
  100% {
    transform: translateX(-260px) scale(0.94);
    opacity: 0;
  }
}

@keyframes birdCross {
  0% {
    transform: translateX(-18px) translateY(0) scale(0.9);
    opacity: 0;
  }
  18% {
    opacity: 0.4;
  }
  50% {
    transform: translateX(80px) translateY(-10px) scale(1);
    opacity: 0.52;
  }
  100% {
    transform: translateX(200px) translateY(-18px) scale(1.06);
    opacity: 0;
  }
}

@keyframes birdCrossAlt {
  0% {
    transform: translateX(0) translateY(0) scale(0.84);
    opacity: 0;
  }
  24% {
    opacity: 0.24;
  }
  58% {
    transform: translateX(140px) translateY(8px) scale(0.96);
    opacity: 0.38;
  }
  100% {
    transform: translateX(280px) translateY(-4px) scale(1.04);
    opacity: 0;
  }
}

@keyframes craftsmanShift {
  0%,
  100% {
    transform: translateX(0) scale(1.02);
    opacity: 0.68;
  }
  50% {
    transform: translateX(4px) scale(1.04);
    opacity: 0.76;
  }
}

@keyframes figureWalk {
  0% {
    transform: translateX(-28px);
    opacity: 0;
  }
  16% {
    opacity: 0.52;
  }
  54% {
    opacity: 0.72;
  }
  100% {
    transform: translateX(130px);
    opacity: 0;
  }
}

@keyframes figureWalkAlt {
  0% {
    transform: translateX(32px);
    opacity: 0;
  }
  18% {
    opacity: 0.46;
  }
  56% {
    opacity: 0.66;
  }
  100% {
    transform: translateX(-116px);
    opacity: 0;
  }
}

@keyframes seatedFigure {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.66;
  }
  50% {
    transform: translateY(2px);
    opacity: 0.74;
  }
}

@keyframes readerLean {
  0%,
  100% {
    transform: rotate(1deg) translateY(0);
    opacity: 0.64;
  }
  50% {
    transform: rotate(-2deg) translateY(2px);
    opacity: 0.72;
  }
}

@keyframes seatedShift {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.62;
  }
  50% {
    transform: translateX(-6px);
    opacity: 0.72;
  }
}

.story p,
.result p {
  margin: 0 0 1em;
}

.overlay-label {
  position: fixed;
  z-index: 18;
  left: 24px;
  top: 94px;
  padding: 6px 10px;
  border: 1px solid rgba(247, 240, 227, 0.22);
  background: rgba(18, 14, 12, 0.54);
  backdrop-filter: blur(6px);
}

.choices {
  position: absolute;
  z-index: 16;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  max-width: min(920px, calc(100vw - 48px));
}

.choice {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(24, 18, 14, 0.84);
  color: #f7f0e3;
  border: 1px solid rgba(205, 191, 159, 0.62);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
}

.choice:hover {
  background: rgba(58, 41, 30, 0.94);
  color: #fff;
}

.choice.is-selected {
  border-color: rgba(255, 224, 153, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 224, 153, 0.42), 0 10px 18px rgba(0, 0, 0, 0.16);
  background: rgba(78, 55, 38, 0.98);
}
/* キーボード選択中の目印（▸） */
.choice.is-selected::before {
  content: "▸ ";
  color: rgba(255, 224, 153, 0.95);
  font-weight: bold;
}

/* キーボード操作のショートカット表示（控えめ・本文の邪魔をしない） */
.key-hint {
  margin: 8px 2px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(205, 191, 159, 0.5);
  user-select: none;
  pointer-events: none;
}
@media (max-width: 900px) {
  /* モバイルはタッチ操作主体なので非表示 */
  .key-hint { display: none; }
}

.result {
  margin-top: 12px;
  padding: 16px;
  border-left: 5px solid rgba(214, 160, 77, 0.9);
  background: rgba(255, 246, 232, 0.12);
  line-height: 1.85;
  display: none;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.pager-button {
  min-width: 110px;
}

/* 進むボタンは戻るボタンの有無に関わらず常に右端へ固定する */
#nextButton {
  margin-left: auto;
}

.effects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.effect {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ede0ca;
  font-size: 0.86rem;
  font-weight: 700;
}

.effect.good {
  color: var(--good);
}

.effect.bad {
  color: var(--bad);
}

.next {
  padding: 0 18px;
}

.history {
  position: fixed;
  z-index: 22;
  top: 82px;
  left: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  padding: 14px;
  color: #f7f0e3;
  overflow: auto;
  backdrop-filter: blur(10px);
}

.history.is-collapsed {
  display: none;
}

.history ol {
  margin: 12px 0 0;
  padding-left: 22px;
  color: rgba(247, 240, 227, 0.82);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .topbar {
    top: 0;
    left: 0;
    right: 0;
    display: block;
    padding: 7px 10px 16px;
    min-height: 0;
    background: linear-gradient(to bottom, rgba(8, 6, 5, 0.82), rgba(8, 6, 5, 0.4) 60%, rgba(8, 6, 5, 0));
  }

  /* モバイルは常時ステータスバーを出さない（状態ボタンで確認） */
  .statbar {
    display: none;
  }

  #statsButton {
    display: inline-block;
  }

  .eyebrow-role {
    display: inline;
  }

  .topbar-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .topbar-actions button {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
  }

  .topbar-subtitle,
  #fullscreenButton,
  #restartButton {
    display: none;
  }

  /* モバイルでも音のオンオフは可能にする（デフォルトはOFF） */
  #audioButton {
    display: inline-flex;
  }

  /* オーバーレイ演出は本文窓(下部)と重ねない: 上寄せ＋下に余白 */
  .birth-plaque,
  .finale-house {
    align-items: flex-start;
    padding-top: 64px;
    padding-bottom: 46vh;
  }

  .birth-plaque-frame {
    padding: 16px 22px;
  }

  .birth-plaque-name {
    font-size: clamp(1.2rem, 7vw, 1.7rem);
    letter-spacing: 0.2em;
  }

  .finale-house-inner {
    width: min(280px, 84vw);
  }

  .topbar h1 {
    margin-top: 0;
    max-width: calc(100vw - 132px);
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .eyebrow {
    max-width: calc(100vw - 132px);
    font-size: 0.64rem;
    line-height: 1.3;
  }

  .status {
    top: 72px;
    right: 8px;
    width: min(420px, calc(100vw - 16px));
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .scene {
    min-height: auto;
  }

  .visual {
    min-height: 100vh;
  }

  .dialogue-window {
    left: 8px;
    right: 8px;
    max-width: none;
    bottom: 8px;
    padding: 13px 13px 12px;
    background: rgba(28, 21, 16, 0.72);
  }

  .featured-object--stool-leg {
    right: 2%;
    bottom: 18%;
    width: min(48vw, 270px);
    max-height: 34vh;
  }

  .featured-object--ledger,
  .featured-object--bowl,
  .featured-object--parchment,
  .featured-object--firewood,
  .featured-object--salt-bag,
  .featured-object--sealed-letter,
  .featured-object--tax-notice,
  .featured-object--printed-pamphlet,
  .featured-object--dowry-purse,
  .featured-object--guild-token,
  .featured-object--apothecary-herbs,
  .featured-object--double-bottom-box,
  .featured-object--kingdom-map,
  .featured-object--royal-edict,
  .featured-object--rosary-medal,
  .featured-object--travel-pass,
  .featured-object--feast-bread-wine,
  .featured-object--plane-toolbox,
  .featured-object--herb-mortar,
  .featured-object--birth-basin,
  .featured-object--checkpoint-token,
  .featured-object--debt-papers,
  .featured-object--balance-scale,
  .featured-object--hearth-embers,
  .featured-object--dice-cup,
  .featured-object--soul-ledger,
  .featured-object--skittles-ball,
  .featured-object--almanac,
  .featured-object--playing-cards,
  .featured-object--easter-eggs,
  .featured-object--boy-bishop-mitre,
  .featured-object--candle-stub,
  .featured-object--forged-pass,
  .featured-object--galley-chain,
  .featured-object--house-key,
  .featured-object--rosary,
  .featured-object--wedding-ring {
    right: 2%;
    width: min(40vw, 220px);
  }

  .featured-object--avoid-right {
    right: 30%;
    bottom: 14%;
    width: min(30vw, 170px);
  }

  .featured-object--avoid-center {
    right: 18%;
    bottom: 12%;
    width: min(30vw, 170px);
  }

  .story-character {
    bottom: 31%;
    max-height: 35vh;
    max-width: min(31vw, 176px);
  }

  .story-character--left {
    left: 1%;
  }

  .story-character--center-left {
    left: 12%;
  }

  .story-character--center-right {
    right: 12%;
  }

  .story-character--far-left {
    left: 1%;
  }

  .story-character--right,
  .story-character--far-right {
    right: 1%;
  }

  .story-character--large {
    max-height: 38vh;
    max-width: min(35vw, 194px);
  }

  .story-character--medium {
    max-height: 35vh;
    max-width: min(31vw, 176px);
  }

  .story-character--small {
    max-height: 28vh;
    max-width: min(27vw, 145px);
  }

  .story-character--choice {
    bottom: 33%;
  }

  .story-character--ending {
    bottom: 30%;
  }

  .effect-summary.floating {
    top: 82px;
    right: 8px;
    width: min(360px, calc(100vw - 20px));
  }

  .overlay-label {
    display: none;
  }

  .stage.has-choices .dialogue-window {
    bottom: 156px;
  }

  .stage.choices-2 .dialogue-window {
    bottom: 210px;
  }

  .stage.choices-3 .dialogue-window {
    bottom: 264px;
  }

  .choices {
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
  }

  .dialogue-window .story,
  .dialogue-window .result {
    max-height: 22vh;
    font-size: 0.98rem;
    line-height: 1.85;
  }

  .history {
    top: 72px;
    left: 8px;
    width: calc(100vw - 16px);
    max-height: calc(100vh - 82px);
  }

  .scene-workshop .ambient-figure-a,
  .scene-market .ambient-figure-a,
  .scene-crossroads .ambient-figure-a,
  .scene-church .ambient-figure-a,
  .scene-bridge .ambient-figure-a,
  .scene-quay .ambient-figure-a {
    opacity: 0.98;
  }

  .scene-alley .ambient-figure-a {
    opacity: 1;
  }

  .scene-alley .ambient-figure-b {
    opacity: 0.94;
  }

  .scene-table-night .ambient-figure-a,
  .scene-table .ambient-figure-a,
  .scene-study .ambient-figure-a,
  .scene-records-room .ambient-figure-a,
  .scene-scribe-room .ambient-figure-a {
    opacity: 0.94;
  }
}

/* ===== ルール版 背景シーン（docs/07 配線・画像は .sky に焼き、他レイヤは隠す） ===== */
.scene-colony .sky {
  background:
    linear-gradient(to top, rgba(10, 8, 7, 0.5), rgba(10, 8, 7, 0.1) 48%, rgba(10, 8, 7, 0.18)),
    url("assets/workers-colony-essen-1862.png") center center / cover no-repeat;
}
.scene-colony .city,
.scene-colony .ground,
.scene-colony .focus-a,
.scene-colony .focus-b,
.scene-colony .focus-c {
  display: none;
}

.scene-pithead .sky {
  background:
    linear-gradient(to top, rgba(8, 9, 12, 0.56), rgba(8, 9, 12, 0.12) 48%, rgba(8, 9, 12, 0.2)),
    url("assets/pithead-dawn-essen-1873.png") center center / cover no-repeat;
}
.scene-pithead .city,
.scene-pithead .ground,
.scene-pithead .focus-a,
.scene-pithead .focus-b,
.scene-pithead .focus-c {
  display: none;
}

.scene-coalface .sky {
  background:
    linear-gradient(to top, rgba(4, 4, 4, 0.62), rgba(4, 4, 4, 0.2) 50%, rgba(4, 4, 4, 0.3)),
    url("assets/coalface-lamp-essen-1883.png") center center / cover no-repeat;
}
.scene-coalface .city,
.scene-coalface .ground,
.scene-coalface .focus-a,
.scene-coalface .focus-b,
.scene-coalface .focus-c {
  display: none;
}

.scene-tavern .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 6, 0.54), rgba(12, 9, 6, 0.14) 48%, rgba(12, 9, 6, 0.22)),
    url("assets/miners-tavern-bochum-1889.png") center center / cover no-repeat;
}
.scene-tavern .city,
.scene-tavern .ground,
.scene-tavern .focus-a,
.scene-tavern .focus-b,
.scene-tavern .focus-c {
  display: none;
}

.scene-sickroom .sky {
  background:
    linear-gradient(to top, rgba(10, 9, 8, 0.5), rgba(10, 9, 8, 0.1) 48%, rgba(10, 9, 8, 0.18)),
    url("assets/colony-sickroom-essen-1920.png") center center / cover no-repeat;
}
.scene-sickroom .city,
.scene-sickroom .ground,
.scene-sickroom .focus-a,
.scene-sickroom .focus-b,
.scene-sickroom .focus-c {
  display: none;
}

.scene-mirror .sky {
  background:
    linear-gradient(to top, rgba(14, 11, 8, 0.5), rgba(14, 11, 8, 0.12) 48%, rgba(14, 11, 8, 0.2)),
    url("assets/window-whistle-essen-1880.png") center center / cover no-repeat;
}
.scene-mirror .city,
.scene-mirror .ground,
.scene-mirror .focus-a,
.scene-mirror .focus-b,
.scene-mirror .focus-c {
  display: none;
}

/* ルール版 小道具パネル（額縁画像）の定位置 */
.featured-object--ruhr-prop {
  right: max(4vw, 28px);
  bottom: 14%;
}

/* スマホ縦画面: テキストカード(下部)に潜らないよう、額縁パネルを上に逃がす */
@media (max-width: 900px) {
  .featured-object--ruhr-prop {
    bottom: 34%;
    max-height: 28vh;
    max-width: min(33vw, 184px);
  }
}

/* ===== ルール版 挿話用 追加背景（Codex先行到着分を配線） ===== */
.scene-krupp-gate .sky {
  background:
    linear-gradient(to top, rgba(10, 9, 8, 0.52), rgba(10, 9, 8, 0.12) 48%, rgba(10, 9, 8, 0.2)),
    url("assets/krupp-gate-essen-1873.png") center center / cover no-repeat;
}
.scene-krupp-gate .city,
.scene-krupp-gate .ground,
.scene-krupp-gate .focus-a,
.scene-krupp-gate .focus-b,
.scene-krupp-gate .focus-c {
  display: none;
}

.scene-polish-church .sky {
  background:
    linear-gradient(to top, rgba(10, 9, 9, 0.5), rgba(10, 9, 9, 0.1) 48%, rgba(10, 9, 9, 0.18)),
    url("assets/polish-church-bochum-1890.png") center center / cover no-repeat;
}
.scene-polish-church .city,
.scene-polish-church .ground,
.scene-polish-church .focus-a,
.scene-polish-church .focus-b,
.scene-polish-church .focus-c {
  display: none;
}

.scene-railway .sky {
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.5), rgba(9, 9, 11, 0.1) 48%, rgba(9, 9, 11, 0.18)),
    url("assets/railway-embankment-ruhr-1871.png") center center / cover no-repeat;
}
.scene-railway .city,
.scene-railway .ground,
.scene-railway .focus-a,
.scene-railway .focus-b,
.scene-railway .focus-c {
  display: none;
}

/* ===== 横展開ルート＋死因の固有背景（Codex到着分を配線・2026-06-15） ===== */
.scene-foreman-office .sky {
  background:
    linear-gradient(to top, rgba(10, 10, 11, 0.52), rgba(10, 10, 11, 0.12) 48%, rgba(10, 10, 11, 0.2)),
    url("assets/foreman-drawing-office-essen-1885.png") center center / cover no-repeat;
}
.scene-foreman-office .city,
.scene-foreman-office .ground,
.scene-foreman-office .focus-a,
.scene-foreman-office .focus-b,
.scene-foreman-office .focus-c {
  display: none;
}

.scene-emigrant-ship .sky {
  background:
    linear-gradient(to top, rgba(8, 10, 12, 0.56), rgba(8, 10, 12, 0.14) 48%, rgba(8, 10, 12, 0.22)),
    url("assets/emigrant-ship-deck-1880.png") center center / cover no-repeat;
}
.scene-emigrant-ship .city,
.scene-emigrant-ship .ground,
.scene-emigrant-ship .focus-a,
.scene-emigrant-ship .focus-b,
.scene-emigrant-ship .focus-c {
  display: none;
}

.scene-emigrant-town .sky {
  background:
    linear-gradient(to top, rgba(11, 10, 9, 0.5), rgba(11, 10, 9, 0.1) 48%, rgba(11, 10, 9, 0.18)),
    url("assets/emigrant-town-america-1890.png") center center / cover no-repeat;
}
.scene-emigrant-town .city,
.scene-emigrant-town .ground,
.scene-emigrant-town .focus-a,
.scene-emigrant-town .focus-b,
.scene-emigrant-town .focus-c {
  display: none;
}

.scene-drifting-road .sky {
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.5), rgba(9, 9, 11, 0.1) 48%, rgba(9, 9, 11, 0.18)),
    url("assets/drifting-road-ruhr-1880.png") center center / cover no-repeat;
}
.scene-drifting-road .city,
.scene-drifting-road .ground,
.scene-drifting-road .focus-a,
.scene-drifting-road .focus-b,
.scene-drifting-road .focus-c {
  display: none;
}

.scene-pit-cavein .sky {
  background:
    linear-gradient(to top, rgba(3, 3, 4, 0.66), rgba(3, 3, 4, 0.22) 50%, rgba(3, 3, 4, 0.32)),
    url("assets/pit-cavein-essen-1883.png") center center / cover no-repeat;
}
.scene-pit-cavein .city,
.scene-pit-cavein .ground,
.scene-pit-cavein .focus-a,
.scene-pit-cavein .focus-b,
.scene-pit-cavein .focus-c {
  display: none;
}

.scene-stormy-sea .sky {
  background:
    linear-gradient(to top, rgba(7, 9, 12, 0.58), rgba(7, 9, 12, 0.16) 50%, rgba(7, 9, 12, 0.26)),
    url("assets/stormy-sea-1880.png") center center / cover no-repeat;
}
.scene-stormy-sea .city,
.scene-stormy-sea .ground,
.scene-stormy-sea .focus-a,
.scene-stormy-sea .focus-b,
.scene-stormy-sea .focus-c {
  display: none;
}

/* ===== Codex到着背景の配線・第2弾（2026-06-15） ===== */
.scene-barracks .sky {
  background:
    linear-gradient(to top, rgba(9, 9, 11, 0.54), rgba(9, 9, 11, 0.14) 48%, rgba(9, 9, 11, 0.22)),
    url("assets/barracks-drill-1880.png") center center / cover no-repeat;
}
.scene-barracks .city, .scene-barracks .ground, .scene-barracks .focus-a, .scene-barracks .focus-b, .scene-barracks .focus-c { display: none; }

.scene-library .sky {
  background:
    linear-gradient(to top, rgba(12, 10, 8, 0.56), rgba(12, 10, 8, 0.16) 50%, rgba(12, 10, 8, 0.26)),
    url("assets/workers-library-1885.png") center center / cover no-repeat;
}
.scene-library .city, .scene-library .ground, .scene-library .focus-a, .scene-library .focus-b, .scene-library .focus-c { display: none; }

.scene-coop .sky {
  background:
    linear-gradient(to top, rgba(11, 10, 9, 0.5), rgba(11, 10, 9, 0.12) 48%, rgba(11, 10, 9, 0.2)),
    url("assets/coop-store-essen-1888.png") center center / cover no-repeat;
}
.scene-coop .city, .scene-coop .ground, .scene-coop .focus-a, .scene-coop .focus-b, .scene-coop .focus-c { display: none; }

.scene-kirmes .sky {
  background:
    linear-gradient(to top, rgba(12, 9, 6, 0.5), rgba(12, 9, 6, 0.12) 48%, rgba(12, 9, 6, 0.2)),
    url("assets/kirmes-square-essen-1885.png") center center / cover no-repeat;
}
.scene-kirmes .city, .scene-kirmes .ground, .scene-kirmes .focus-a, .scene-kirmes .focus-b, .scene-kirmes .focus-c { display: none; }

.scene-pigeon-loft .sky {
  background:
    linear-gradient(to top, rgba(10, 10, 12, 0.46), rgba(10, 10, 12, 0.08) 46%, rgba(10, 10, 12, 0.16)),
    url("assets/pigeon-loft-essen-1885.png") center center / cover no-repeat;
}
.scene-pigeon-loft .city, .scene-pigeon-loft .ground, .scene-pigeon-loft .focus-a, .scene-pigeon-loft .focus-b, .scene-pigeon-loft .focus-c { display: none; }

.scene-winter-relief .sky {
  background:
    linear-gradient(to top, rgba(14, 14, 16, 0.5), rgba(14, 14, 16, 0.12) 48%, rgba(14, 14, 16, 0.2)),
    url("assets/winter-soup-line-ruhr-1885.png") center center / cover no-repeat;
}
.scene-winter-relief .city, .scene-winter-relief .ground, .scene-winter-relief .focus-a, .scene-winter-relief .focus-b, .scene-winter-relief .focus-c { display: none; }

.scene-immigration-hall .sky {
  background:
    linear-gradient(to top, rgba(11, 11, 12, 0.52), rgba(11, 11, 12, 0.14) 50%, rgba(11, 11, 12, 0.22)),
    url("assets/immigration-inspection-1885.png") center center / cover no-repeat;
}
.scene-immigration-hall .city, .scene-immigration-hall .ground, .scene-immigration-hall .focus-a, .scene-immigration-hall .focus-b, .scene-immigration-hall .focus-c { display: none; }

.scene-emigrant-steerage .sky {
  background:
    linear-gradient(to top, rgba(8, 9, 11, 0.6), rgba(8, 9, 11, 0.2) 50%, rgba(8, 9, 11, 0.3)),
    url("assets/emigrant-steerage-1880.png") center center / cover no-repeat;
}
.scene-emigrant-steerage .city, .scene-emigrant-steerage .ground, .scene-emigrant-steerage .focus-a, .scene-emigrant-steerage .focus-b, .scene-emigrant-steerage .focus-c { display: none; }

.scene-drifter-lodging .sky {
  background:
    linear-gradient(to top, rgba(11, 10, 9, 0.52), rgba(11, 10, 9, 0.14) 48%, rgba(11, 10, 9, 0.22)),
    url("assets/drifter-lodging-ruhr-1880.png") center center / cover no-repeat;
}
.scene-drifter-lodging .city, .scene-drifter-lodging .ground, .scene-drifter-lodging .focus-a, .scene-drifter-lodging .focus-b, .scene-drifter-lodging .focus-c { display: none; }

/* ===== Codex到着背景の配線・第3弾（2026-06-15） ===== */
.scene-war-shift .sky {
  background:
    linear-gradient(to top, rgba(10, 10, 11, 0.54), rgba(10, 10, 11, 0.14) 48%, rgba(10, 10, 11, 0.22)),
    url("assets/war-shift-krupp-1916.png") center center / cover no-repeat;
}
.scene-war-shift .city, .scene-war-shift .ground, .scene-war-shift .focus-a, .scene-war-shift .focus-b, .scene-war-shift .focus-c { display: none; }

.scene-choral-club .sky {
  background:
    linear-gradient(to top, rgba(11, 9, 7, 0.5), rgba(11, 9, 7, 0.12) 48%, rgba(11, 9, 7, 0.2)),
    url("assets/choral-club-essen-1883.png") center center / cover no-repeat;
}
.scene-choral-club .city, .scene-choral-club .ground, .scene-choral-club .focus-a, .scene-choral-club .focus-b, .scene-choral-club .focus-c { display: none; }

.scene-church-interior .sky {
  background:
    linear-gradient(to top, rgba(10, 9, 9, 0.52), rgba(10, 9, 9, 0.12) 48%, rgba(10, 9, 9, 0.2)),
    url("assets/church-interior-essen-1880.png") center center / cover no-repeat;
}
.scene-church-interior .city, .scene-church-interior .ground, .scene-church-interior .focus-a, .scene-church-interior .focus-b, .scene-church-interior .focus-c { display: none; }

.scene-family-room .sky {
  background:
    linear-gradient(to top, rgba(11, 9, 8, 0.5), rgba(11, 9, 8, 0.1) 48%, rgba(11, 9, 8, 0.18)),
    url("assets/colony-family-room-essen-1880.png") center center / cover no-repeat;
}
.scene-family-room .city, .scene-family-room .ground, .scene-family-room .focus-a, .scene-family-room .focus-b, .scene-family-room .focus-c { display: none; }

.scene-funeral .sky {
  background:
    linear-gradient(to top, rgba(9, 9, 10, 0.56), rgba(9, 9, 10, 0.16) 50%, rgba(9, 9, 10, 0.26)),
    url("assets/miners-funeral-essen-1888.png") center center / cover no-repeat;
}
.scene-funeral .city, .scene-funeral .ground, .scene-funeral .focus-a, .scene-funeral .focus-b, .scene-funeral .focus-c { display: none; }

.scene-accident-office .sky {
  background:
    linear-gradient(to top, rgba(10, 10, 10, 0.52), rgba(10, 10, 10, 0.14) 48%, rgba(10, 10, 10, 0.22)),
    url("assets/accident-insurance-office-essen-1900.png") center center / cover no-repeat;
}
.scene-accident-office .city, .scene-accident-office .ground, .scene-accident-office .focus-a, .scene-accident-office .focus-b, .scene-accident-office .focus-c { display: none; }

.scene-cholera .sky {
  background:
    linear-gradient(to top, rgba(10, 11, 10, 0.54), rgba(10, 11, 10, 0.14) 48%, rgba(10, 11, 10, 0.22)),
    url("assets/cholera-notice-hamburg-1892.png") center center / cover no-repeat;
}
.scene-cholera .city, .scene-cholera .ground, .scene-cholera .focus-a, .scene-cholera .focus-b, .scene-cholera .focus-c { display: none; }
