:root {
  --ink: #f8edff;
  --muted: #cdbde7;
  --night: #120c24;
  --panel: #221736;
  --panel-dark: #080512;
  --green: #6cff9a;
  --blue: #64dbff;
  --purple: #b678ff;
  --gold: #ffd76a;
  --pink: #ff7bd6;
}

@font-face {
  font-family: "BlackGothics";
  src: url("assets/fonts/BlackGothicsDemoRegular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "BlackCastle";
  src: url("assets/fonts/BlackCastleMF.ttf") format("truetype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: "BlackCastle", "Courier New", Consolas, monospace;
  image-rendering: pixelated;
}

button {
  font: inherit;
}

h1,
.speaker,
.hud strong,
.primary-btn,
.ghost-btn,
.dlc-teaser {
  font-family: "BlackGothics", "Courier New", Consolas, monospace;
}

.game-shell {
  width: 100vw;
  height: 100dvh;
  min-height: 560px;
  background:
    radial-gradient(circle at 50% 4%, rgba(123, 72, 220, 0.28), transparent 32%),
    linear-gradient(180deg, #0e0820 0%, #191031 58%, #080611 100%);
}

.screen {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
}

.screen.is-active {
  display: grid;
}

.hero-screen {
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.hero-art {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, 2vw, 22px);
  perspective: 900px;
}

.hero-bg,
.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  z-index: 0;
}

.hero-art::after,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 5, 24, 0.08), rgba(8, 5, 15, 0.64)),
    radial-gradient(circle at 50% 64%, transparent 0 30%, rgba(8, 5, 15, 0.36) 68%);
  pointer-events: none;
  z-index: 1;
}

.moon {
  position: absolute;
  z-index: 2;
  top: clamp(24px, 7vh, 72px);
  right: clamp(28px, 12vw, 150px);
  width: clamp(74px, 15vw, 138px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffe99d;
  box-shadow: 0 0 30px #ffe99d, 0 0 70px rgba(255, 226, 125, 0.5);
  opacity: 0.92;
}

.hero-copy {
  z-index: 5;
  width: min(760px, calc(100% - 32px));
  margin: -80px auto 22px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  text-shadow: 0 3px 0 #15091e, 0 0 20px rgba(182, 120, 255, 0.5);
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  margin: 12px auto 18px;
  color: var(--muted);
  font-size: clamp(0.95rem, 2.6vw, 1.12rem);
  line-height: 1.45;
}

.primary-btn,
.ghost-btn,
.dlc-btn {
  border: 3px solid var(--ink);
  color: var(--panel-dark);
  background: var(--gold);
  border-radius: 10px;
  box-shadow: 0 5px 0 #7a4a13, 0 0 20px rgba(255, 215, 106, 0.34);
  cursor: pointer;
}

.primary-btn,
.dlc-btn {
  min-width: 170px;
  min-height: 48px;
  padding: 10px 18px;
  text-transform: uppercase;
}

.ghost-btn {
  min-height: 38px;
  padding: 4px 9px;
  font-size: 0.82rem;
  border-color: #f8df95;
  background:
    linear-gradient(135deg, rgba(255, 230, 130, 0.95), rgba(86, 42, 24, 0.92)),
    radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent);
  color: #180b0a;
  box-shadow: 0 4px 0 #4c2715, 0 0 18px rgba(255, 215, 106, 0.55);
  text-shadow: 0 1px 0 rgba(255, 244, 187, 0.7);
}

.portal {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(108, 255, 154, 0.1) 0 28%, rgba(108, 255, 154, 0.9) 29% 34%, transparent 35%),
    conic-gradient(from 20deg, transparent, rgba(100, 219, 255, 0.8), transparent, rgba(255, 123, 214, 0.9), transparent);
  filter: drop-shadow(0 0 22px rgba(108, 255, 154, 0.8));
}

.hero-portal {
  left: 50%;
  bottom: 19%;
  width: clamp(170px, 30vw, 340px);
  aspect-ratio: 1;
  transform: translateX(-50%) rotateX(58deg);
}

.stage-portal {
  left: 50%;
  top: 38%;
  width: clamp(92px, 18vw, 168px);
  height: clamp(164px, 32vw, 298px);
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 0;
  background: transparent;
  filter: none;
}

.cauldron {
  position: absolute;
  width: clamp(116px, 17vw, 190px);
  height: clamp(116px, 17vw, 190px);
  filter: drop-shadow(0 0 24px rgba(108, 255, 154, 0.42));
  pointer-events: auto;
}

.asset-cauldron img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-cauldron {
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  z-index: 5;
}

.stage-cauldron {
  left: calc(50% - 240px);
  top: 54%;
  width: clamp(90px, 11vw, 128px);
  height: clamp(90px, 11vw, 128px);
  transform: translateY(-50%);
  z-index: 4;
}

.smoke {
  position: absolute;
  left: 50%;
  bottom: 76%;
  z-index: 1;
  width: 18px;
  height: 38px;
  border-radius: 50%;
  background: rgba(127, 255, 172, 0.64);
  box-shadow: 0 0 16px rgba(127, 255, 172, 0.9);
}

.smoke-a {
  margin-left: -28px;
}

.smoke-b {
  margin-left: -4px;
}

.smoke-c {
  margin-left: 19px;
}

.fire {
  position: absolute;
  left: 50%;
  bottom: 4%;
  z-index: 1;
  width: 22px;
  height: 34px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(#fff6a4, #ff9c2c 45%, #df2d16);
  transform-origin: 50% 100%;
  filter: blur(0.2px) drop-shadow(0 0 12px rgba(255, 130, 32, 0.9));
}

.fire-a {
  margin-left: -18px;
}

.fire-b {
  margin-left: 4px;
  height: 28px;
}

.character {
  position: absolute;
  z-index: 8;
  pointer-events: auto;
  transform-style: preserve-3d;
}

.stage-cauldron,
.hero-cauldron,
.character {
  overflow: hidden;
}

.rainbow-dust {
  position: absolute;
  z-index: 20;
  width: 10px;
  height: 10px;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 69%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  pointer-events: none;
  box-shadow: 0 0 10px currentColor;
}

.sprite-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
}

.hester {
  width: clamp(142px, 22vw, 220px);
  height: clamp(142px, 22vw, 220px);
  overflow: visible;
  border: 4px solid rgba(248, 237, 255, 0.92);
  border-radius: 8px;
  background: #151025;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.38),
    0 0 26px rgba(182, 120, 255, 0.56),
    inset 0 0 0 3px rgba(255, 215, 106, 0.35);
}

.hero-hester,
.hero-smeckels {
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}

.hero-hester::before,
.hero-smeckels::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 230, 120, 0.48), transparent 26%),
    linear-gradient(135deg, #24143d, #0b0614 56%, #3a1f52);
  border: 3px solid rgba(255, 215, 106, 0.8);
  box-shadow: inset 0 0 0 4px rgba(182, 120, 255, 0.28);
  opacity: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  pointer-events: none;
}

.hero-name {
  position: absolute;
  left: 50%;
  bottom: -34px;
  z-index: 9;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(360px, 92vw);
  padding: 5px 9px;
  border: 2px solid rgba(255, 230, 150, 0.9);
  border-radius: 8px;
  background: rgba(18, 8, 28, 0.88);
  color: #ffe66f;
  text-align: center;
  font-family: "BlackGothics", "Courier New", Consolas, monospace;
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  text-shadow: 0 2px 0 #09040d;
  box-shadow: 0 0 14px rgba(255, 215, 106, 0.28);
}

.hest-state {
  display: none;
}

.hest-state.is-active-state {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.hero-hester {
  left: calc(50% - min(38vw, 430px));
  bottom: 18%;
  width: clamp(210px, 31vw, 340px);
  height: clamp(210px, 31vw, 340px);
}

.stage-hester {
  left: calc(50% - 76px);
  top: 42%;
  width: clamp(154px, 20vw, 210px);
  height: clamp(154px, 20vw, 210px);
  transform: translate(-50%, -50%);
}

.smeckels {
  width: clamp(92px, 16vw, 150px);
  height: clamp(76px, 13vw, 124px);
  overflow: visible;
  border: 4px solid rgba(248, 237, 255, 0.92);
  border-radius: 8px;
  background: #180d18;
  box-shadow:
    0 7px 0 rgba(0, 0, 0, 0.38),
    0 0 22px rgba(255, 215, 106, 0.48),
    inset 0 0 0 3px rgba(108, 255, 154, 0.24);
}

.smeckels .sprite-img {
  object-fit: contain;
  padding: 3px;
  transform: none;
  background: #100b18;
  border-radius: 4px;
}

.hero-smeckels {
  left: calc(50% + min(16vw, 190px));
  bottom: calc(18% + min(4vw, 44px));
  width: clamp(170px, 25vw, 280px);
  height: clamp(170px, 25vw, 280px);
}

.stage-smeckels {
  left: calc(50% + 132px);
  top: 48%;
  width: clamp(124px, 16vw, 168px);
  height: clamp(124px, 16vw, 168px);
  transform: translate(-50%, -50%);
}

.stage.boss-layout .stage-hester {
  left: 22%;
  top: 39%;
}

.stage.boss-layout .stage-smeckels {
  left: 22%;
  top: 63%;
}

.stage.boss-layout .stage-cauldron,
.stage.boss-layout .compass {
  display: none;
}

.spark-field span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.play-screen {
  grid-template-rows: auto minmax(0, 0.92fr) auto;
  gap: 8px;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}

.hud {
  z-index: 4;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 86px;
  align-items: center;
  gap: 12px;
}

.hud > div {
  grid-column: 2;
  text-align: center;
}

.hud .ghost-btn {
  grid-column: 3;
  justify-self: end;
}

.hud-label {
  display: none;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hud strong {
  display: block;
  max-width: 100%;
  overflow: visible;
  text-overflow: initial;
  white-space: normal;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
}

.stage {
  position: relative;
  min-height: 0;
  width: min(860px, 100%);
  justify-self: center;
  overflow: hidden;
  border: 4px solid #181020;
  background: #140d25;
  box-shadow: inset 0 0 0 6px rgba(255, 215, 106, 0.12), 0 0 34px rgba(0, 0, 0, 0.45);
}

.iso-floor {
  display: none;
}

.compass {
  position: absolute;
  left: calc(50% - 76px);
  top: 58%;
  z-index: 9;
  width: clamp(128px, 17vw, 176px);
  height: clamp(128px, 17vw, 176px);
  filter: drop-shadow(0 0 16px rgba(255, 215, 106, 0.72));
  cursor: pointer;
}

.compass img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.doors {
  position: absolute;
  inset: auto 0 8% 0;
  z-index: 12;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: clamp(4px, 1.4vw, 12px);
  padding: 0 10px;
}

.door {
  width: clamp(122px, 23vw, 186px);
  height: clamp(208px, 39vw, 316px);
  border: 4px solid rgba(255, 239, 170, 0.95);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  background-color: rgba(10, 5, 20, 0.92);
  background-position: center bottom;
  background-size: contain;
  background-repeat: no-repeat;
  filter: saturate(1.25) contrast(1.08) brightness(1.03) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.doors.is-selectable .door {
  filter: saturate(1.5) contrast(1.18) brightness(1.14) drop-shadow(0 8px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 0 20px currentColor);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25), 0 0 18px currentColor;
}

.door-green {
  background-image: url("assets/door-green.png");
  color: var(--green);
}

.door-purple {
  background-image: url("assets/door-purple.png");
  color: var(--purple);
}

.door-blue {
  background-image: url("assets/door-blue.png");
  color: var(--blue);
}

.compass-spirit-wrap {
  position: absolute;
  left: calc(50% + 118px);
  top: 48%;
  z-index: 6;
  width: clamp(260px, 38vw, 460px);
  max-height: 82%;
  transform: translateY(-50%);
  border: 4px solid rgba(248, 237, 255, 0.92);
  border-radius: 8px;
  background: #120b20;
  box-shadow:
    0 8px 0 rgba(0, 0, 0, 0.38),
    0 0 24px rgba(182, 120, 255, 0.8),
    inset 0 0 0 3px rgba(108, 255, 154, 0.22);
  filter: drop-shadow(0 0 18px rgba(182, 120, 255, 0.85)) drop-shadow(0 0 34px rgba(108, 255, 154, 0.28));
  overflow: hidden;
  pointer-events: none;
}

.compass-spirit-wrap.is-boss {
  cursor: crosshair;
  pointer-events: auto;
}

.compass-spirit {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 68dvh;
  object-fit: contain;
  pointer-events: none;
}

.spirit-cracks,
.spirit-scars,
.spirit-blood {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.spirit-cracks {
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(255, 255, 255, 0.95) 43% 44%, transparent 45%),
    linear-gradient(36deg, transparent 0 52%, rgba(210, 250, 255, 0.9) 53% 54%, transparent 55%),
    linear-gradient(148deg, transparent 0 62%, rgba(255, 255, 255, 0.72) 63% 64%, transparent 65%);
  mix-blend-mode: screen;
}

.spirit-scars {
  background:
    linear-gradient(78deg, transparent 0 38%, rgba(20, 8, 36, 0.92) 39% 42%, transparent 43%),
    linear-gradient(125deg, transparent 0 58%, rgba(18, 6, 28, 0.9) 59% 62%, transparent 63%);
}

.spirit-blood {
  background:
    radial-gradient(circle at 42% 34%, rgba(162, 0, 58, 0.95) 0 2%, transparent 3%),
    radial-gradient(circle at 58% 48%, rgba(184, 0, 72, 0.85) 0 2.2%, transparent 3.5%),
    radial-gradient(circle at 51% 67%, rgba(130, 0, 50, 0.8) 0 2.4%, transparent 4%);
}

.damage-4 .spirit-cracks { opacity: 0.22; }
.damage-8 .spirit-cracks { opacity: 0.46; }
.damage-10 .spirit-scars { opacity: 0.26; }
.damage-13 .spirit-blood { opacity: 0.22; }
.damage-16 .spirit-cracks { opacity: 0.74; }
.damage-16 .spirit-scars { opacity: 0.48; }
.damage-18 .spirit-blood { opacity: 0.46; }
.damage-20 {
  filter: grayscale(0.8) brightness(0.72) drop-shadow(0 0 24px rgba(255, 70, 130, 0.75));
}

.boss-meter {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 14;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 3px solid #ffe66f;
  border-radius: 10px;
  background: rgba(15, 6, 26, 0.86);
  color: #fff6d0;
  box-shadow: 0 0 22px rgba(255, 70, 130, 0.38);
  font-family: "BlackGothics", "Courier New", Consolas, monospace;
}

.boss-meter strong {
  color: #ff7aa8;
}

.spirits {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.spirits span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0 18%, #9cff8f 28% 48%, rgba(182, 120, 255, 0.86) 70%);
  box-shadow: 0 0 14px rgba(156, 255, 143, 0.72), 0 0 22px rgba(182, 120, 255, 0.6);
}

.spirits span:nth-child(1) {
  left: 24%;
  top: 29%;
}

.spirits span:nth-child(2) {
  left: 64%;
  top: 25%;
}

.spirits span:nth-child(3) {
  left: 70%;
  top: 58%;
}

.spirits span:nth-child(4) {
  left: 34%;
  top: 63%;
}

.choice-feedback {
  position: absolute;
  left: 50%;
  top: 14%;
  z-index: 30;
  width: min(520px, calc(100% - 28px));
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 3px solid var(--ink);
  background: rgba(8, 5, 18, 0.88);
  color: var(--gold);
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 0 22px rgba(255, 215, 106, 0.25);
}

.choice-feedback.is-error {
  top: 50%;
  transform: translate(-50%, -50%) !important;
  font-size: clamp(1.35rem, 5vw, 2rem);
  border-color: #ff7aa8;
  color: #fff6d0;
  box-shadow: 0 0 26px rgba(255, 70, 130, 0.45);
  z-index: 40;
}

.dialogue-box {
  position: relative;
  z-index: 8;
  width: min(860px, 100%);
  justify-self: center;
  min-height: 86px;
  height: auto;
  padding: 10px 42px 12px 16px;
  border: 4px solid var(--panel-dark);
  border-radius: 18px;
  outline: 2px solid rgba(248, 237, 255, 0.72);
  background: rgba(255, 250, 255, 0.96);
  color: #1f1430;
  box-shadow: inset 0 0 0 3px rgba(111, 91, 145, 0.72), 0 5px 0 rgba(0, 0, 0, 0.28), 0 0 16px rgba(231, 140, 255, 0.14);
  cursor: pointer;
  touch-action: manipulation;
}

.speaker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(34, 23, 54, 0.86);
  color: var(--gold);
  font-size: clamp(1.05rem, 3.4vw, 1.45rem);
  letter-spacing: 0;
}

.dialogue-box p {
  min-height: 0;
  margin: 0;
  font-size: clamp(1.45rem, 4.8vw, 2.05rem);
  line-height: 1.08;
}

.next-cursor {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #2b174a;
}

.end-actions {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 10;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.dlc-btn {
  border-color: #f8df95;
  background:
    linear-gradient(135deg, #ffe8a3, #7a4626 50%, #2b102f),
    radial-gradient(circle, rgba(255, 255, 255, 0.36), transparent);
  color: #fff6d0;
  font-family: "BlackGothics", "Courier New", Consolas, monospace;
  min-width: 230px;
  min-height: 66px;
  font-size: clamp(1.35rem, 4.8vw, 2.2rem);
  text-shadow: 0 2px 0 #1a071a;
  box-shadow: 0 5px 0 #3a1d13, 0 0 24px rgba(255, 215, 106, 0.62), 0 0 42px rgba(146, 80, 255, 0.36);
}

.dlc-teaser {
  max-width: min(620px, calc(100vw - 34px));
  padding: 10px 14px;
  border: 3px solid #eaffff;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.22), rgba(255, 79, 216, 0.28), rgba(255, 243, 108, 0.2));
  color: #fff8ff;
  text-align: center;
  text-shadow: 0 2px 0 #17051f, 0 0 14px rgba(255, 79, 216, 0.85);
  box-shadow: 0 0 24px rgba(0, 245, 255, 0.38);
  font-size: clamp(1.35rem, 4.8vw, 2.1rem);
}

.hidden {
  display: none;
}

@media (min-width: 760px) {
  .game-shell {
    min-height: 680px;
  }

  .play-screen {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 18px;
  }

  .hero-copy {
    width: min(760px, calc(100% - 32px));
  }

  .dialogue-box {
    min-height: 142px;
  }

  .choice-feedback {
    top: 10%;
    width: min(330px, calc(100% - 22px));
    padding: 8px 10px;
    font-size: 0.95rem;
    line-height: 1.18;
    z-index: 16;
  }

  .choice-feedback.is-error {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: min(300px, calc(100% - 26px));
    font-size: 1.35rem;
  }
}

@media (max-height: 700px) {
  .game-shell {
    min-height: 0;
  }

  .hero-art {
    padding: 10px 14px 0;
  }

  .hero-copy {
    width: min(720px, calc(100% - 24px));
    margin: -36px auto 10px;
  }

  h1 {
    font-size: clamp(1.9rem, 5vw, 3.35rem);
  }

  .hero-copy p:not(.eyebrow) {
    margin: 8px auto 12px;
    font-size: 0.95rem;
  }

  .primary-btn {
    min-height: 42px;
    padding: 8px 16px;
  }
}

@media (max-width: 520px) {
  .game-shell {
    height: 100dvh;
    min-height: 0;
  }

  .play-screen {
    height: 100dvh;
    grid-template-rows: 34px minmax(0, 1fr) minmax(92px, 22dvh);
    gap: 7px;
    padding: max(7px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    overflow: hidden;
  }

  .hud {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    gap: 6px;
    min-height: 32px;
  }

  .hud strong {
    font-size: clamp(0.82rem, 4vw, 1.05rem);
    line-height: 1.05;
  }

  .ghost-btn {
    min-height: 28px;
    padding: 2px 5px;
    border-width: 2px;
    border-radius: 7px;
    font-size: 0.68rem;
  }

  .stage {
    width: 100%;
    min-height: 0;
    border-width: 3px;
  }

  .hero-copy {
    margin: -46px auto 16px;
  }

  .hero-hester {
    left: calc(50% - 160px);
    bottom: 22%;
    width: 166px;
    height: 166px;
  }

  .hero-smeckels {
    left: calc(50% + 42px);
    bottom: calc(22% + 10px);
    width: 132px;
    height: 132px;
  }

  .hero-name {
    bottom: -27px;
    padding: 5px 8px;
    font-size: 0.96rem;
    max-width: 170px;
    white-space: normal;
    line-height: 1;
  }

  .stage-cauldron {
    left: 5%;
    top: 50%;
    width: clamp(58px, 18vw, 74px);
    height: clamp(58px, 18vw, 74px);
    transform: translateY(-50%);
  }

  .stage-hester {
    left: 39%;
    top: 36%;
    width: clamp(104px, 31vw, 134px);
    height: clamp(104px, 31vw, 134px);
    transform: translate(-50%, -50%);
  }

  .stage-smeckels {
    left: 66%;
    top: 43%;
    width: clamp(86px, 26vw, 108px);
    height: clamp(86px, 26vw, 108px);
    transform: translate(-50%, -50%);
  }

  .compass {
    left: 39%;
    top: 56%;
    width: clamp(82px, 25vw, 104px);
    height: clamp(82px, 25vw, 104px);
  }

  .doors {
    bottom: 3%;
    gap: 4px;
  }

  .door {
    width: clamp(82px, 27vw, 104px);
    height: clamp(138px, 43vw, 176px);
    border-width: 3px;
  }

  .dialogue-box {
    min-height: 0;
    height: 100%;
    padding: 6px 26px 7px 9px;
    border-width: 3px;
    outline-width: 2px;
    box-shadow: inset 0 0 0 2px rgba(111, 91, 145, 0.72), 0 4px 0 rgba(0, 0, 0, 0.25), 0 0 12px rgba(231, 140, 255, 0.12);
  }

  .speaker {
    margin-bottom: 4px;
    padding: 2px 6px;
    font-size: clamp(0.78rem, 3.6vw, 0.98rem);
  }

  .dialogue-box p {
    min-height: 28px;
    font-size: clamp(0.92rem, 4.3vw, 1.12rem);
    line-height: 1.12;
  }

  .next-cursor {
    right: 12px;
    bottom: 6px;
  }

  .compass-spirit-wrap {
    left: auto;
    right: 14px;
    top: 38%;
    width: clamp(168px, 48vw, 218px);
    opacity: 0.92;
  }

  .boss-meter {
    top: 7px;
    padding: 4px 8px;
    gap: 8px;
    font-size: 0.78rem;
  }

  .end-actions {
    bottom: calc(22dvh + 8px);
    gap: 7px;
  }

  .dlc-teaser {
    max-width: calc(100vw - 22px);
    padding: 7px 10px;
    font-size: 1.18rem;
  }

  .dlc-btn {
    min-width: 170px;
    min-height: 48px;
    padding: 7px 12px;
    font-size: 1.22rem;
  }

  .stage.boss-layout .stage-hester {
    left: 23%;
    top: 34%;
  }

  .stage.boss-layout .stage-smeckels {
    left: 23%;
    top: 56%;
  }
}
