.campaign-transition-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--background, #111);
}
.home-transition-stage { width: 100%; height: 100%; }
.home-page .heading[hidden], .home-transition-stage[hidden] { display: none; }

.ct-image,
.ct-layer,
.ct-particle-canvas,
.ct-title {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ct-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.ct-overlay { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ct-title {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--campaign-title, #fff);
  font: normal clamp(1.4rem, 5vw, 4rem) var(--titlefont, serif);
  text-align: center;
  text-shadow: 0 2px 6px var(--background, #111);
  overflow-wrap: anywhere;
}
.ct-title span { border-bottom: 1px solid currentColor; }
.ct-bar { position: absolute; left: 0; width: 100%; height: 50%; background: var(--background, #111); }
.ct-bar-top { top: 0; }
.ct-bar-bottom { bottom: 0; }
.ct-effects-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ct-portal-glow { stroke: var(--highlight, #8d5cff); stroke-width: 13; filter: blur(9px); }
.ct-portal-edge { stroke: var(--highlight, #8d5cff); stroke-width: 3; filter: drop-shadow(0 0 6px var(--highlight, #8d5cff)); }
.ct-portal-particles { color: var(--highlight, #8d5cff); }
.ct-slash-glow { stroke: #f5d894; stroke-width: 2; filter: blur(2px); }
.ct-slash-line { stroke: #fff; stroke-width: .45; }
.ct-ink-reveal { position: absolute; inset: 0; pointer-events: none; mask-size: 100% 100%; mask-repeat: no-repeat; }
.ct-burning-front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 7px #ff5000); }
.ct-particle-canvas { width: 100%; height: 100%; }
.ct-door-canvas, .ct-door-dark, .ct-door-flare { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ct-door-dark { background: radial-gradient(ellipse at center, #1c1008 0%, #050302 70%, #000 100%); }
.ct-door-flare { background: radial-gradient(ellipse at center, rgba(255, 240, 205, .95) 0%, rgba(255, 205, 135, .5) 45%, rgba(255, 170, 90, 0) 80%); mix-blend-mode: screen; opacity: 0; }
.ct-storm-canvas, .ct-storm-flash, .ct-dragon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ct-storm-flash { background: #fff; opacity: 0; }

.dmcp-page .transition-dialog {
  width: min(74rem, calc(100vw - 2rem));
}
.transition-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .75rem;
}
.transition-controls label { display: grid; align-content: start; gap: .3rem; min-width: 0; }
.transition-controls input, .transition-controls select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  font: inherit;
}
.transition-actions { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; }
.transition-status { margin: .5rem 0; }
.transition-status:empty { display: none; }
.transition-preview-stage {
  width: 100%;
  height: min(52vh, 36rem);
  min-height: 15rem;
  border: 1px solid var(--highlight);
  box-sizing: border-box;
}
