[data-dungeon-theme="architecture-fork"] {
  --architecture-wall: #384457;
  --architecture-floor: #3a4450;
  --architecture-light: #92b1d341;
}

[data-dungeon-theme="architecture-di"] {
  --architecture-wall: #484158;
  --architecture-floor: #48444e;
  --architecture-light: #ae92d34d;
}

[data-dungeon-theme="architecture-fx"] {
  --architecture-wall: #3f405c;
  --architecture-floor: #3d4257;
  --architecture-light: #90a9e058;
}

[data-dungeon-theme="architecture-layers"] {
  --architecture-wall: #374641;
  --architecture-floor: #3c4942;
  --architecture-light: #8acaaa44;
}

[data-dungeon-theme="architecture-transaction"] {
  --architecture-wall: #514335;
  --architecture-floor: #4e453c;
  --architecture-light: #e4b57a49;
}

[data-dungeon-theme="architecture-quiz"] {
  --architecture-wall: #3e3651;
  --architecture-floor: #393447;
  --architecture-light: #ac86df50;
}

:is([data-dungeon-theme^="architecture-"], [data-dungeon-theme^="build-"]) .stage1-wall {
  background:
    radial-gradient(ellipse at 29% 80%, var(--architecture-light), transparent 36%),
    radial-gradient(ellipse at 74% 80%, var(--architecture-light), transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 104px, #15132055 104px 108px),
    repeating-linear-gradient(transparent 0 38px, #15132033 38px 43px, #15132066 43px 47px),
    var(--architecture-wall);
}

:is([data-dungeon-theme^="architecture-"], [data-dungeon-theme^="build-"]) .stage1-floor {
  background:
    radial-gradient(ellipse at 50% 13%, var(--architecture-light), transparent 62%),
    repeating-linear-gradient(90deg, transparent 0 72px, #15132066 72px 77px),
    repeating-linear-gradient(transparent 0 21px, #15132033 21px 24px, #15132066 24px 28px),
    var(--architecture-floor);
}

.corridor .chapter-gate {
  bottom: var(--floor-height);
  width: clamp(46px, 6vw, 72px);
  height: clamp(62px, 8vw, 90px);
  border: 5px solid #827289;
  border-bottom-color: #504252;
  border-radius: 36% 36% 0 0;
  background: repeating-linear-gradient(90deg, #5a372b 0 8px, #38231d 8px 11px);
  box-shadow: inset 0 0 0 2px #21191d;
  transform-origin: bottom;
}

#chapter-two-gate {
  border-color: #b98a57;
  background: radial-gradient(ellipse at 50% 100%, #ffd18088, transparent 75%), #201921;
  box-shadow: 0 0 16px #efa64b59, inset 0 0 0 2px #35251f;
}

#chapter-six-gate {
  border-color: #75b9c7;
  background: radial-gradient(ellipse at 50% 100%, #75c2d088, transparent 75%), #19222a;
  box-shadow: 0 0 16px #75c2d059, inset 0 0 0 2px #283943;
}

.chapter-gate > span:first-child {
  position: absolute;
  inset: auto 0 calc(100% + 8px);
  color: #f1dcc3;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

#case-reactions:not([hidden]) {
  display: grid;
  gap: 8px;
  margin-block-end: 14px;
}

.di-case-reaction {
  display: grid;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--inset);
}

.di-case-reaction strong { color: var(--accent); }
.di-case-reaction p { margin: 0; }
