:root {
  color-scheme: dark;
  --black: #10100e;
  --ink: #1d1813;
  --paper: #f7e6c6;
  --paper-light: #fff5dd;
  --paper-dim: #d6b883;
  --line: #241d17;
  --red: #e95d3e;
  --pink: #e99ab2;
  --green: #789963;
  --blue: #6685b8;
  --yellow: #f3c665;
  --shadow: rgba(24, 18, 12, 0.42);
  --hud-height: 78px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: #120f0d;
  color: var(--paper-light);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.atelier-page {
  position: relative;
  width: 100vw;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 16%, rgba(243, 198, 101, 0.09), transparent 20rem),
    #10100e;
}

.atelier-topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--hud-height);
  display: grid;
  grid-template-columns: auto auto minmax(360px, 1fr) auto;
  align-items: stretch;
  gap: 28px;
  min-width: 0;
  padding: 0 24px;
  border-bottom: 3px solid #2d2117;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
    var(--black);
  box-shadow: 0 7px 0 rgba(40, 28, 18, 0.42);
}

.brand,
.player-stats,
.hud-nav,
.home-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 14px;
  min-width: 0;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 900;
  letter-spacing: 0;
  color: var(--paper-light);
}

.brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 38px;
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 13px;
  width: 26px;
  height: 21px;
  border: 3px solid var(--paper-light);
  border-radius: 48% 48% 44% 44%;
  background: var(--paper-light);
  box-shadow:
    inset 6px 8px 0 -5px var(--black),
    inset -6px 8px 0 -5px var(--black),
    0 4px 0 rgba(0, 0, 0, 0.28);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 8px;
  height: 17px;
  border-radius: 8px 8px 1px 1px;
  background: var(--paper-light);
  box-shadow:
    26px 0 0 var(--paper-light),
    13px 8px 0 -2px var(--paper-light);
  transform: rotate(-12deg);
}

.player-stats {
  gap: 24px;
  padding-inline: 18px;
  border-left: 2px solid rgba(214, 184, 131, 0.36);
  border-right: 2px solid rgba(214, 184, 131, 0.36);
  color: var(--paper-light);
  font-size: clamp(17px, 1.55vw, 24px);
  font-weight: 900;
}

.player-stats span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.player-stats b {
  font: inherit;
}

.heart,
.star {
  display: inline-block;
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}

.heart {
  background:
    linear-gradient(var(--red), var(--red)) 4px 2px / 4px 4px no-repeat,
    linear-gradient(var(--red), var(--red)) 10px 2px / 4px 4px no-repeat,
    linear-gradient(var(--red), var(--red)) 2px 6px / 14px 6px no-repeat,
    linear-gradient(var(--red), var(--red)) 5px 12px / 8px 4px no-repeat,
    linear-gradient(var(--red), var(--red)) 8px 16px / 2px 2px no-repeat;
}

.star {
  background:
    linear-gradient(var(--yellow), var(--yellow)) 8px 0 / 4px 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 4px 4px / 12px 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 0 8px / 20px 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 5px 12px / 10px 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 2px 16px / 4px 4px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) 14px 16px / 4px 4px no-repeat;
}

.hud-nav {
  justify-content: end;
  gap: 18px;
  min-width: 0;
}

.hud-nav-item {
  min-width: 72px;
  height: 70px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: var(--paper-light);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.hud-nav-item:hover,
.hud-nav-item:focus-visible,
.hud-nav-item.is-active {
  color: var(--yellow);
}

.hud-nav-item i {
  position: relative;
  width: 34px;
  height: 30px;
  display: block;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}

.icon-map {
  border: 3px solid var(--paper-dim);
  background:
    linear-gradient(90deg, transparent 31%, var(--paper-dim) 31% 37%, transparent 37% 64%, var(--paper-dim) 64% 70%, transparent 70%),
    linear-gradient(var(--paper-light), var(--paper-light));
}

.icon-map::after {
  content: "";
  position: absolute;
  left: 13px;
  top: -7px;
  width: 10px;
  height: 10px;
  background: var(--red);
  border: 2px solid var(--line);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.icon-scroll {
  border: 3px solid var(--paper-dim);
  background: var(--paper-light);
  box-shadow: inset 8px 0 0 rgba(214, 184, 131, 0.65);
}

.icon-scroll::after {
  content: "";
  position: absolute;
  inset: 8px 7px auto 14px;
  height: 3px;
  background: var(--line);
  box-shadow: 0 7px 0 var(--line), 0 14px 0 var(--line);
}

.icon-box {
  border: 3px solid var(--paper-dim);
  background: #9a663c;
  box-shadow: inset 0 8px 0 rgba(255, 241, 204, 0.34);
}

.icon-box::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 12px;
  height: 3px;
  background: var(--line);
}

.icon-gear {
  border: 5px solid var(--paper-dim);
  border-radius: 50%;
}

.icon-gear::before,
.icon-gear::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: 11px;
  height: 6px;
  background: var(--paper-dim);
}

.icon-gear::after {
  transform: rotate(90deg);
}

.home-link {
  align-self: center;
  justify-content: center;
  min-height: 55px;
  min-width: 218px;
  padding: 0 24px;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(36, 29, 23, 0.12) 10px 12px, transparent 12px),
    var(--paper-light);
  color: var(--line);
  box-shadow: 4px 4px 0 rgba(214, 184, 131, 0.45);
  font-size: 18px;
  font-weight: 900;
}

.home-link:hover,
.home-link:focus-visible {
  background: var(--yellow);
}

.atelier-stage {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ead9b9;
}

.game-canvas,
.game-canvas canvas {
  width: 100%;
  height: 100%;
}

.game-canvas canvas {
  display: block;
  image-rendering: pixelated;
}

.game-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background:
    linear-gradient(112deg, transparent 0 24%, rgba(255, 255, 255, 0.12) 24% 25.2%, transparent 25.2% 100%),
    radial-gradient(circle at 28% 22%, rgba(143, 189, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 72% 74%, rgba(1, 36, 148, 0.22), transparent 30rem),
    #1262d8;
  color: #f8fbff;
  pointer-events: auto;
  isolation: isolate;
}

.game-loader::before,
.game-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.game-loader::before {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(3, 36, 134, 0.12) 42px 43px);
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.game-loader::after {
  background: radial-gradient(rgba(255, 255, 255, 0.22) 0.7px, transparent 0.9px);
  background-size: 8px 8px;
  mix-blend-mode: screen;
  opacity: 0.5;
  animation: gameLoaderBlueDrift 5.4s linear infinite;
}

.game-loader.is-leaving {
  pointer-events: none;
  animation: gameLoaderExit 620ms ease both;
}

.game-loader-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3.2vh, 30px);
  width: min(82vw, 520px);
  transform: translateY(-1vh);
  animation: gameLoaderFloat 2200ms ease-in-out infinite;
}

.game-loader-frame-stack {
  position: relative;
  width: clamp(220px, 38vmin, 390px);
  aspect-ratio: 1;
}

.game-loader-frame-stack img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter:
    drop-shadow(0 18px 24px rgba(1, 22, 89, 0.28))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
  animation: gameLoaderFrameOne 900ms steps(1, end) infinite both;
}

.game-loader-frame-stack img:nth-child(2) {
  animation-name: gameLoaderFrameTwo;
}

.game-loader-frame-stack img:nth-child(3) {
  animation-name: gameLoaderFrameThree;
}

.game-loader-frame-stack img:nth-child(4) {
  animation-name: gameLoaderFrameFour;
}

.game-loader-frame-stack img:nth-child(5) {
  animation-name: gameLoaderFrameFive;
}

.game-loader-progress {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.game-loader-progress span {
  font-family: "Courier New", "Lucida Console", Monaco, monospace;
  font-size: clamp(18px, 4vmin, 28px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.16em;
  text-shadow:
    2px 0 0 rgba(2, 28, 112, 0.72),
    0 2px 0 rgba(2, 28, 112, 0.72),
    4px 5px 0 rgba(1, 22, 89, 0.22);
}

.game-loader-progress i {
  display: block;
  width: min(300px, 66vw);
  height: 12px;
  border: 2px solid rgba(248, 251, 255, 0.86);
  background:
    linear-gradient(90deg, #f8fbff 0 var(--game-loader-progress, 0%), rgba(248, 251, 255, 0.16) var(--game-loader-progress, 0%) 100%),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(1, 22, 89, 0.28) 12px 14px);
  box-shadow: 4px 5px 0 rgba(1, 22, 89, 0.24);
}

.control-card {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  width: 320px;
  height: 126px;
  display: grid;
  grid-template-columns: 118px 78px 86px;
  grid-template-rows: 1fr 28px;
  align-items: center;
  justify-items: center;
  gap: 4px 7px;
  padding: 18px 14px 12px;
  border: 3px solid #3b2b1e;
  background:
    radial-gradient(circle at 0 0, rgba(214, 184, 131, 0.16), transparent 70px),
    #11110f;
  box-shadow: 4px 4px 0 rgba(24, 18, 12, 0.4);
  color: var(--paper-light);
  font-weight: 900;
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(2, 30px);
  gap: 5px;
}

kbd {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  border: 3px solid var(--paper-dim);
  background: #20201d;
  color: var(--paper-light);
  box-shadow: inset 0 0 0 2px #3a2d20;
  font-size: 15px;
  line-height: 1;
}

.key-action {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 14px;
}

.key-action kbd {
  min-width: 46px;
  min-height: 38px;
}

.key-action:last-of-type kbd {
  min-width: 60px;
}

.control-card small {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
}

.dialogue-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(820px, calc(100vw - 560px));
  min-width: 580px;
  height: 166px;
  display: grid;
  grid-template-columns: 190px 1fr 48px;
  align-items: stretch;
  gap: 20px;
  padding: 14px 16px 18px 18px;
  border: 4px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 210px, rgba(36, 29, 23, 0.5) 210px 214px, transparent 214px),
    var(--paper-light);
  color: var(--line);
  box-shadow: 6px 6px 0 rgba(24, 18, 12, 0.34);
  transform: translateX(-50%) translateY(180px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.dialogue-panel.is-open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.portrait-wrap {
  position: relative;
  display: grid;
  place-items: end center;
  min-width: 0;
}

.portrait-wrap img {
  width: 178px;
  height: 136px;
  object-fit: contain;
  image-rendering: pixelated;
  align-self: end;
}

#dialogueNameTag {
  position: absolute;
  left: 52px;
  right: 24px;
  bottom: -23px;
  display: grid;
  place-items: center;
  min-height: 26px;
  border: 3px solid var(--line);
  background: var(--paper-light);
  font-size: 13px;
  font-weight: 900;
}

.dialogue-copy {
  align-self: center;
  min-width: 0;
}

.dialogue-copy > span {
  display: block;
  margin-bottom: 7px;
  color: #9f6540;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.dialogue-copy p {
  margin: 0;
  display: grid;
  max-width: 58ch;
  gap: 4px;
  color: var(--line);
  font-weight: 900;
  line-height: 1.34;
}

.dialogue-line-ja,
.dialogue-line-en {
  display: block;
  margin: 0;
  letter-spacing: 0;
}

.dialogue-line-ja {
  color: var(--line);
  font-size: clamp(13px, 1.05vw, 17px);
}

.dialogue-line-en {
  color: rgba(36, 29, 23, 0.78);
  font-size: clamp(12px, 0.95vw, 15px);
  font-weight: 800;
}

.dialogue-next {
  align-self: end;
  justify-self: end;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.dialogue-next::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 10px auto 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 13px solid var(--line);
}

.info-panel {
  position: absolute;
  right: 26px;
  top: calc(var(--hud-height) + 18px);
  z-index: 6;
  width: min(390px, calc(100vw - 52px));
  max-height: min(560px, calc(100svh - var(--hud-height) - 52px));
  display: grid;
  grid-template-rows: auto 1fr;
  border: 4px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(36, 29, 23, 0.1) 10px 12px, transparent 12px),
    var(--paper-light);
  color: var(--line);
  box-shadow: 6px 6px 0 rgba(24, 18, 12, 0.34);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.info-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.info-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 8px 12px;
  border-bottom: 3px solid rgba(36, 29, 23, 0.42);
  background: rgba(214, 184, 131, 0.24);
}

.info-panel strong {
  font-size: 15px;
  letter-spacing: 0.08em;
}

.info-panel button {
  width: 34px;
  height: 34px;
  border: 3px solid var(--line);
  background: #20201d;
  color: var(--paper-light);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.info-body {
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 16px;
}

.info-section + .info-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 2px dashed rgba(36, 29, 23, 0.34);
}

.info-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
}

.info-section p {
  margin: 0;
  color: rgba(36, 29, 23, 0.78);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.quest-list,
.collection-list,
.map-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quest-list li,
.collection-list li,
.map-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 8px;
  border: 2px solid rgba(36, 29, 23, 0.22);
  background: rgba(255, 255, 255, 0.22);
}

.quest-list i,
.collection-list i,
.map-list i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--line);
  background: #20201d;
  color: var(--yellow);
  font-style: normal;
  font-size: 12px;
}

.quest-list li.is-done i,
.collection-list li.is-found i,
.map-list li.is-done i {
  background: var(--yellow);
  color: var(--line);
}

.quest-list span,
.collection-list span,
.map-list span {
  display: block;
  min-width: 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.quest-list small,
.collection-list small,
.map-list small {
  display: block;
  margin-top: 2px;
  color: rgba(36, 29, 23, 0.68);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.3;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}

.option-row button {
  width: auto;
  min-width: 92px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.compass {
  position: absolute;
  right: 26px;
  bottom: 18px;
  z-index: 3;
  width: 78px;
  height: 78px;
  opacity: 0.8;
}

.compass i,
.compass span {
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(36, 29, 23, 0.7);
  border-radius: 50%;
}

.compass i::before,
.compass i::after,
.compass span::before,
.compass span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 54px;
  background: var(--line);
  transform: translate(-50%, -50%);
}

.compass i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.compass span::before {
  background: var(--red);
  transform: translate(-50%, -50%) rotate(45deg);
}

.compass span::after {
  background: var(--green);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: none;
  grid-template-columns: repeat(3, 42px) 1fr 54px;
  grid-template-rows: repeat(3, 42px);
  gap: 6px;
  pointer-events: none;
}

.touch-btn {
  border: 3px solid var(--line);
  background: rgba(255, 245, 221, 0.9);
  color: var(--line);
  box-shadow: 3px 3px 0 var(--shadow);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  font-size: 16px;
  font-weight: 900;
}

@keyframes gameLoaderFrameOne {
  0%,
  19.999% {
    opacity: 0.96;
  }

  20%,
  100% {
    opacity: 0;
  }
}

@keyframes gameLoaderFrameTwo {
  0%,
  19.999%,
  40%,
  100% {
    opacity: 0;
  }

  20%,
  39.999% {
    opacity: 0.96;
  }
}

@keyframes gameLoaderFrameThree {
  0%,
  39.999%,
  60%,
  100% {
    opacity: 0;
  }

  40%,
  59.999% {
    opacity: 0.96;
  }
}

@keyframes gameLoaderFrameFour {
  0%,
  59.999%,
  80%,
  100% {
    opacity: 0;
  }

  60%,
  79.999% {
    opacity: 0.96;
  }
}

@keyframes gameLoaderFrameFive {
  0%,
  79.999% {
    opacity: 0;
  }

  80%,
  100% {
    opacity: 0.96;
  }
}

@keyframes gameLoaderFloat {
  0%,
  100% {
    transform: translateY(-1vh);
  }

  50% {
    transform: translateY(calc(-1vh - 8px));
  }
}

@keyframes gameLoaderBlueDrift {
  to {
    background-position: 80px 0;
  }
}

@keyframes gameLoaderExit {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(1.018);
  }
}

.touch-btn:active,
.touch-btn.is-pressed {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.touch-btn.up {
  grid-column: 2;
  grid-row: 1;
}

.touch-btn.left {
  grid-column: 1;
  grid-row: 2;
}

.touch-btn.down {
  grid-column: 2;
  grid-row: 3;
}

.touch-btn.right {
  grid-column: 3;
  grid-row: 2;
}

.touch-btn.action {
  grid-column: 5;
  grid-row: 2 / 4;
  background: var(--red);
  color: var(--paper-light);
}

@media (max-width: 1180px) {
  .atelier-topbar {
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: 12px;
    padding-inline: 14px;
  }

  .hud-nav {
    display: none;
  }

  .home-link {
    min-width: 150px;
    font-size: 14px;
  }

  .dialogue-panel {
    width: min(700px, calc(100vw - 330px));
    min-width: 480px;
    grid-template-columns: 150px 1fr 36px;
  }

  .portrait-wrap img {
    width: 140px;
  }

  #dialogueNameTag {
    left: 35px;
    right: 18px;
  }
}

@media (hover: none), (pointer: coarse), (max-width: 860px) {
  .control-card {
    display: none;
  }

  .mobile-controls {
    display: grid;
  }
}

@media (max-width: 760px) {
  :root {
    --hud-height: 112px;
  }

  .atelier-topbar {
    grid-template-columns: 1fr auto;
    grid-template-rows: 55px 45px;
    gap: 6px 10px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    transform: scale(0.82);
    transform-origin: left center;
  }

  .player-stats {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
    padding-inline: 8px;
    border: 0;
    font-size: 14px;
  }

  .home-link {
    min-width: 112px;
    min-height: 41px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .dialogue-panel {
    left: 10px;
    right: 10px;
    bottom: 152px;
    width: auto;
    min-width: 0;
    height: 126px;
    grid-template-columns: 82px 1fr 28px;
    gap: 10px;
    padding: 10px 10px 14px;
    transform: translateY(150px);
  }

  .dialogue-panel.is-open {
    transform: translateY(0);
  }

  .portrait-wrap img {
    width: 82px;
    height: 86px;
  }

  #dialogueNameTag {
    left: 7px;
    right: 7px;
    bottom: -16px;
    min-height: 20px;
    font-size: 10px;
  }

  .dialogue-copy > span {
    margin-bottom: 5px;
    font-size: 10px;
  }

  .dialogue-copy p {
    font-size: 12px;
    line-height: 1.35;
  }

  .compass {
    display: none;
  }

  .info-panel {
    left: 10px;
    right: 10px;
    top: calc(var(--hud-height) + 10px);
    width: auto;
    max-height: calc(100svh - var(--hud-height) - 184px);
  }
}
