:root {
  --ink: #101713;
  --panel: rgba(13, 22, 19, 0.78);
  --paper: #eee9d8;
  --muted: #a3b2a4;
  --gold: #ddbf78;
  --gold-light: #f6df9e;
  --cyan: #8fc9ba;
  --line: rgba(229, 217, 176, 0.16);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--paper);
  font-synthesis: none;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #101713;
}
body {
  font-size: 14px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button,
canvas {
  -webkit-user-select: none;
  user-select: none;
}
button {
  touch-action: manipulation;
}
button:hover {
  color: var(--gold-light);
}
[hidden] {
  display: none !important;
}
#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
.screen-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.8' filter='url(%23n)'/%3E%3C/svg%3E");
}
#loading {
  position: fixed;
  inset: 0;
  background: #101713;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.7s;
}
#loading .loading-mark {
  font-size: 68px;
  color: var(--gold);
  animation: breathe 2s infinite;
}
#loading p {
  letter-spacing: 0.5em;
  margin: 18px 0 8px 8px;
  font:
    18px Georgia,
    serif;
}
#loading span {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.loading-line {
  height: 1px;
  width: 110px;
  background: var(--line);
  margin-top: 24px;
  overflow: hidden;
}
.loading-line:before {
  content: "";
  display: block;
  height: 1px;
  width: 50%;
  background: var(--gold);
  animation: load 1.5s infinite;
}
#error {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 90vw);
  padding: 32px;
  background: #221a16;
  border: 1px solid #b48c68;
  z-index: 120;
  text-align: center;
  line-height: 1.7;
  white-space: pre-wrap;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  padding: 38px 5vw 28px;
  overflow: hidden;
}
.menu-art {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 22% 50%, #35452b22, transparent 60%);
  z-index: -2;
  opacity: 1;
}
.menu-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 20, 17, 0.94) 0%,
      rgba(12, 22, 18, 0.8) 33%,
      rgba(15, 24, 19, 0.18) 73%,
      rgba(11, 20, 17, 0.2)
    ),
    linear-gradient(
      0deg,
      rgba(7, 16, 13, 0.85),
      transparent 28%,
      transparent 78%,
      rgba(7, 16, 13, 0.25)
    );
}
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.wordmark {
  font:
    22px Georgia,
    serif;
  letter-spacing: 0.32em;
}
.wordmark span {
  font-size: 10px;
  display: inline-block;
  vertical-align: middle;
  color: var(--gold);
}
.edition {
  font-size: 9px;
  letter-spacing: 0.24em;
  color: #c4c7b1;
}
.menu-content {
  margin: auto 0;
  max-width: 670px;
  padding: 38px 0 50px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 0.27em;
  color: var(--gold);
  font-weight: 600;
}
.line {
  width: 35px;
  height: 1px;
  display: inline-block;
  background: var(--gold);
  opacity: 0.7;
}
h1 {
  font:
    clamp(72px, 8.6vw, 132px) / 0.94 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -0.065em;
  font-weight: 400;
  margin: 27px 0 28px;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.18);
}
h1 span {
  color: var(--gold-light);
}
h1 i {
  display: block;
  font:
    italic clamp(22px, 2.7vw, 35px) / 1.3 Georgia,
    serif;
  letter-spacing: 0.09em;
  color: #d4d2b7;
  margin: 17px 0 0 7px;
}
.menu-story {
  font-size: 13px;
  line-height: 1.85;
  color: #b5bdae;
  letter-spacing: 0.015em;
  margin: 0 0 35px 5px;
}
.menu-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-left: 5px;
}
.primary-button {
  background: var(--gold);
  color: #172016;
  display: flex;
  justify-content: space-between;
  gap: 50px;
  align-items: center;
  min-height: 54px;
  min-width: 285px;
  padding: 17px 23px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid rgba(255, 242, 196, 0.3);
}
.primary-button span:last-child {
  font-size: 18px;
  line-height: 16px;
}
.primary-button:hover {
  color: #172016;
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px #0003;
}
.text-button {
  padding: 0;
  font-size: 11px;
  color: #c5c7b2;
  letter-spacing: 0.03em;
}
.text-button span {
  padding-left: 12px;
  color: var(--gold);
}
.menu-meta {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #839784;
  font-size: 9px;
  letter-spacing: 0.045em;
  margin: 30px 0 0 5px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--cyan);
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  box-shadow: 0 0 8px #8fc9ba66;
}
.menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  flex-shrink: 0;
}
.menu-bottom > span {
  color: #829280;
  font-size: 8px;
  letter-spacing: 0.26em;
}
.subtle-button {
  font-size: 10px;
  color: #a9b5a2;
  letter-spacing: 0.04em;
  padding: 0;
}
.subtle-button span {
  margin-left: 12px;
}
.menu-settings {
  display: flex;
  gap: 23px;
}
.hud {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, #0002, transparent 20%);
}
.hud button,
.hud nav,
.hud .touch-move {
  pointer-events: auto;
}
.vitals {
  position: absolute;
  left: 30px;
  top: 28px;
  width: 240px;
  background: linear-gradient(
    90deg,
    rgba(13, 22, 19, 0.85),
    rgba(13, 22, 19, 0.15)
  );
  padding: 16px 20px 13px;
  border-left: 1px solid #ddbf7855;
  backdrop-filter: blur(8px);
}
.player-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
}
.avatar-mark {
  font-size: 31px;
  color: var(--gold);
}
.label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.player-heading .label {
  display: block;
}
.level {
  display: block;
  font:
    16px Georgia,
    serif;
  color: var(--paper);
  margin-top: 4px;
}
.meter-heading {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #bac0b2;
  margin-bottom: 6px;
}
.meter-heading > span:last-child {
  font-variant-numeric: tabular-nums;
  color: #879d8d;
}
.meter {
  height: 4px;
  background: #fff1;
  overflow: hidden;
}
.meter i {
  display: block;
  width: 100%;
  height: 100%;
  transition: width 0.23s;
  position: relative;
}
.health i {
  background: linear-gradient(90deg, #87a185, #c5d2a4);
}
.stamina {
  height: 2px;
}
.stamina i {
  background: linear-gradient(90deg, #577f79, #9abeb5);
}
.stamina-heading {
  margin-top: 11px;
}
.player-economy {
  display: flex;
  justify-content: space-between;
  color: #a3ae9b;
  font-size: 9px;
  margin-top: 13px;
}
.player-economy b {
  font-weight: 500;
  color: var(--gold);
}
.xp-track {
  height: 1px;
  background: #fff1;
  margin-top: 12px;
}
.xp-track i {
  display: block;
  background: var(--gold);
  width: 0;
  height: 100%;
  transition: width 0.3s;
}
.quest {
  position: absolute;
  right: 30px;
  top: 28px;
  width: 274px;
  padding: 18px 20px;
  background: linear-gradient(
    270deg,
    rgba(13, 22, 19, 0.88),
    rgba(13, 22, 19, 0.1)
  );
  border-right: 1px solid #ddbf7855;
  backdrop-filter: blur(8px);
}
.quest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quest-diamond {
  color: var(--gold);
  font-size: 19px;
}
.quest p {
  font:
    16px/1.5 Georgia,
    serif;
  margin: 12px 0 14px;
  color: #e5e4cf;
}
.quest button {
  font-size: 9px;
}
.quest kbd {
  margin-left: 10px;
}
.utility {
  position: absolute;
  top: 179px;
  right: 37px;
  display: flex;
  gap: 9px;
}
.utility button {
  width: 30px;
  height: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 14px;
}
.world-title {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.world-title span {
  font:
    italic 18px Georgia,
    serif;
  color: #e4e3cf;
  text-shadow: 0 1px 12px #000;
  letter-spacing: 0.07em;
  display: block;
}
.world-title span:empty {
  display: none;
}
.boss {
  position: absolute;
  left: 50%;
  top: 87px;
  transform: translateX(-50%);
  width: 360px;
}
.boss > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #d6b78a;
  font-size: 9px;
  letter-spacing: 0.17em;
  padding: 0 3px 9px;
}
.boss > div:first-child span:last-child {
  font-size: 8px;
  letter-spacing: 0;
}
.boss-track {
  height: 5px;
  border: 1px solid #c4a36e44;
  background: #1b1814;
  box-shadow: 0 2px 20px #0004;
}
.boss-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #72535c, #ce8c77);
  transition: width 0.2s;
}
.ability-bar {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.ability-bar button {
  height: 78px;
  min-width: 91px;
  background: linear-gradient(
    180deg,
    rgba(25, 34, 28, 0.86),
    rgba(13, 22, 19, 0.96)
  );
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10px 14px;
  position: relative;
  gap: 6px;
  transition:
    background 0.15s,
    transform 0.15s;
  box-shadow: 0 5px 25px #0002;
}
.ability-bar button:hover {
  background: #27352c;
  transform: translateY(-3px);
  border-color: #d9bc6a66;
}
.ability-bar button:active {
  transform: translateY(1px);
}
kbd {
  font: 8px inherit;
  color: #929f8e;
  border: 1px solid #c5c9a92b;
  padding: 3px 5px;
  display: inline-block;
  line-height: 1;
}
.ability-bar kbd {
  position: absolute;
  top: -9px;
  background: #17231a;
  color: #c4c4a8;
  font-size: 7px;
  padding: 3px 5px;
  white-space: nowrap;
}
.ability-icon {
  font-size: 25px;
  line-height: 27px;
  color: var(--gold);
}
.ability-bar button > span:last-child {
  font-size: 9px;
  color: #b7c0ae;
  white-space: nowrap;
}
.ability-bar b {
  background: #ffffff0c;
  font-size: 8px;
  padding: 1px 4px;
  margin-left: 2px;
}
.control-hint {
  position: absolute;
  bottom: 23px;
  left: 29px;
  font-size: 7px;
  letter-spacing: 0.08em;
  color: #b3bb9b;
  max-width: 235px;
  line-height: 2.4;
}
.control-hint span {
  color: #819581;
  letter-spacing: 0;
  padding: 0 3px;
}
.map {
  position: absolute;
  right: 30px;
  bottom: 24px;
  width: 190px;
  background: rgba(13, 22, 19, 0.77);
  border: 1px solid var(--line);
  padding: 12px 13px 10px;
  backdrop-filter: blur(8px);
}
.map > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
}
.map .label {
  font-size: 6px;
  letter-spacing: 0.12em;
}
.map > div > span:last-child {
  font-size: 7px;
  color: #a5b39b;
}
.map canvas {
  display: block;
  width: 100%;
  height: 118px;
  opacity: 0.9;
}
.map-key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 6px;
  color: #9ca78d;
  margin-top: 8px;
}
.map-key i {
  width: 3px;
  height: 3px;
  background: #a9d7c8;
  display: block;
  border-radius: 50%;
  margin-left: 5px;
}
.map-key i:nth-of-type(2) {
  background: var(--gold);
}
.map-key i:nth-of-type(3) {
  background: #c88073;
}
.interaction-prompt {
  position: absolute;
  bottom: 135px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111d16e6;
  border: 1px solid var(--line);
  padding: 12px 17px;
  font-size: 11px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.interaction-prompt kbd {
  font-size: 11px;
  color: var(--gold);
  padding: 6px 8px;
}
.touch-interact {
  display: none;
}
.toast {
  position: fixed;
  top: 24%;
  left: 50%;
  transform: translate(-50%, -15px);
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #102018ee;
  padding: 12px 23px;
  border: 1px solid #ddbf7844;
  max-width: calc(100vw - 40px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  box-shadow: 0 8px 30px #0002;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast > span {
  color: var(--gold);
  font-size: 20px;
}
.toast p {
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.01em;
}
.cinematic {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}
.cinema-bar {
  position: absolute;
  left: 0;
  right: 0;
  background: #070d0a;
}
.cinema-bar.top {
  height: 10.5%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.cinema-bar.top > span {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.24em;
}
.cinema-bar.top button {
  pointer-events: auto;
  color: #8b9989;
  font-size: 9px;
}
.cinema-bar.top kbd {
  margin-left: 9px;
}
.cinema-bar.bottom {
  height: 15%;
  bottom: 0;
}
.cinema-subtitles {
  position: absolute;
  left: 50%;
  bottom: 5.3%;
  transform: translateX(-50%);
  width: min(740px, 84vw);
  text-align: center;
}
.cinema-subtitles > span {
  display: block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 8px;
  margin-bottom: 10px;
}
.cinema-subtitles p {
  font:
    20px/1.55 Georgia,
    serif;
  margin: 0;
  color: #e5e6d6;
  text-shadow: 0 1px 8px #000;
}
.dialogue {
  position: fixed;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 36;
  width: min(790px, calc(100vw - 48px));
  background: linear-gradient(120deg, #18251ef5, #101e19f7);
  border: 1px solid #ddbf7844;
  border-top: 2px solid #ddbf7866;
  display: flex;
  align-items: flex-start;
  padding: 26px 27px;
  gap: 21px;
  box-shadow: 0 12px 70px #0005;
  backdrop-filter: blur(15px);
}
.dialogue-ornament {
  color: var(--gold);
  font:
    35px Georgia,
    serif;
}
.dialogue-copy {
  flex: 1;
  min-width: 0;
}
.dialogue-copy p {
  font:
    19px/1.65 Georgia,
    serif;
  margin: 11px 0 0;
  min-height: 62px;
  color: #e5e7d8;
}
.dialogue button {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font-size: 9px;
  padding: 7px 0;
  white-space: nowrap;
}
.dialogue button span {
  font-size: 18px;
}
.dialogue kbd {
  margin-left: 5px;
}
.choice {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(ellipse at center, #111c16e8, #0d1816f7);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 30px;
  backdrop-filter: blur(10px);
}
h2 {
  font:
    45px/1.18 Georgia,
    serif;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 18px 0 24px;
}
.choice h2 {
  text-align: center;
  font-size: 48px;
  margin: 24px 0 40px;
}
.choice-options,
#choice-options {
  display: flex;
  gap: 20px;
  max-width: 800px;
  width: 100%;
  justify-content: center;
}
.choice-card {
  width: 340px;
  min-height: 220px;
  padding: 28px;
  text-align: left;
  background: #23312680;
  border: 1px solid #ddbf7833;
  transition:
    transform 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.choice-card:hover {
  transform: translateY(-5px);
  background: #2a3b2caa;
  border-color: var(--gold);
}
.choice-card .choice-number {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--gold);
}
.choice-card h3 {
  font:
    27px Georgia,
    serif;
  margin: 22px 0 13px;
  color: #ede8cf;
}
.choice-card p {
  font-size: 11px;
  color: #afbfaa;
  line-height: 1.8;
  margin: 0;
}
.choice-card .choice-arrow {
  display: block;
  margin-top: 18px;
  font-size: 21px;
  color: var(--gold);
}
.overlay {
  position: fixed;
  inset: 0;
  background: #06120dc7;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(13px);
  overflow-y: auto;
}
.modal {
  background: linear-gradient(135deg, #1d2a21, #101d17);
  border: 1px solid #ddbf7838;
  box-shadow: 0 20px 100px #0004;
  padding: 40px;
  position: relative;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.journal {
  width: min(850px, 100%);
}
.close-button {
  position: absolute;
  right: 21px;
  top: 14px;
  font:
    27px Georgia,
    serif;
  color: #a1b09a;
  padding: 5px 10px;
}
.journal h2 {
  font-size: 39px;
}
.journal-intro {
  color: #aab9a4;
  line-height: 1.85;
  font-size: 12px;
  max-width: 650px;
}
.journal-current {
  margin: 24px 0;
  padding: 17px 20px;
  border-left: 2px solid var(--gold);
  background: #e4d89b07;
}
.journal-current p {
  font:
    18px/1.5 Georgia,
    serif;
  margin: 8px 0 0;
}
.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.journal-grid h3 {
  font:
    20px Georgia,
    serif;
  margin: 0 0 19px;
  color: #e8e3c9;
}
.journal ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.journal li {
  display: flex;
  gap: 15px;
  margin-bottom: 16px;
}
.journal li > span {
  font:
    15px Georgia,
    serif;
  color: var(--gold);
  width: 16px;
  flex-shrink: 0;
}
.journal li b {
  font-size: 11px;
  letter-spacing: 0.025em;
  font-weight: 500;
  color: #c8d1bd;
}
.journal li p {
  font-size: 10px;
  line-height: 1.8;
  color: #8fa38e;
  margin: 5px 0 0;
}
.journal dl {
  margin: 0;
}
.journal dt {
  font-size: 10px;
  color: #c8d1bd;
  margin: 0 0 6px;
}
.journal dd {
  margin: 0 0 14px;
  font-size: 10px;
  line-height: 1.75;
  color: #8fa38e;
}
.journal kbd {
  font-size: 7px;
  line-height: 1.2;
  margin-right: 4px;
}
.journal-footer {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 16px;
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.18em;
  display: flex;
  justify-content: space-between;
}
.journal-footer span {
  color: #7b927b;
  letter-spacing: 0.02em;
}
.pause {
  width: 440px;
  text-align: center;
  padding: 42px;
}
.pause .eyebrow {
  justify-content: center;
}
.pause h2 {
  font-size: 38px;
}
.pause p {
  color: #96aa92;
  font-size: 11px;
  margin-bottom: 30px;
}
.pause button {
  display: flex;
  margin: 21px auto 0;
}
.pause .primary-button {
  width: 100%;
  min-width: 0;
}
.pause .subtle-button {
  margin-top: 33px;
}
.ending {
  background: radial-gradient(ellipse, #233224df, #0d1813f5);
  z-index: 50;
}
.ending > section {
  width: 600px;
  max-width: 100%;
  text-align: center;
  padding: 35px 20px;
}
.ending-symbol {
  font:
    70px Georgia,
    serif;
  color: var(--gold);
  text-shadow: 0 0 50px #edbc5680;
  margin-bottom: 23px;
}
.ending .eyebrow {
  justify-content: center;
}
.ending h2 {
  font-size: 64px;
  margin: 26px 0;
}
.ending p {
  font:
    19px/1.8 Georgia,
    serif;
  color: #b8c8ac;
  margin: 0 auto;
  max-width: 500px;
}
.ending-rule {
  width: 70px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
  margin: 35px auto;
}
.ending .primary-button {
  margin: 29px auto 0;
  min-width: 250px;
}
.touch-move {
  display: none;
}
.ui-flash {
  animation: flash 0.35s ease;
}
@keyframes breathe {
  50% {
    opacity: 0.4;
    transform: scale(0.92);
  }
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(300%);
  }
}
@keyframes flash {
  50% {
    filter: brightness(1.8);
  }
}
@media (max-width: 1050px) {
  .vitals {
    left: 22px;
    top: 22px;
    width: 214px;
    padding: 13px 17px;
  }
  .quest {
    right: 22px;
    top: 22px;
    width: 235px;
    padding: 15px 16px;
  }
  .quest p {
    font-size: 14px;
  }
  .map {
    right: 22px;
    width: 156px;
    padding: 10px;
  }
  .map canvas {
    height: 95px;
  }
  .control-hint {
    font-size: 6px;
    max-width: 185px;
    left: 22px;
  }
  .ability-bar button {
    min-width: 79px;
    padding: 10px;
  }
  .boss {
    top: 95px;
    width: 300px;
  }
  .world-title {
    top: 32px;
  }
  .world-title span {
    font-size: 15px;
  }
  .utility {
    right: 22px;
    top: 173px;
  }
  .menu-content {
    padding-top: 35px;
  }
  .menu-story {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  .menu {
    padding: 30px 6vw 23px;
  }
  .menu-top .edition {
    font-size: 7px;
    letter-spacing: 0.18em;
  }
  .menu-bottom > span {
    display: none;
  }
  .menu-shade {
    background:
      linear-gradient(90deg, #0a1410eb, #102018aa 50%, #14241b2e),
      linear-gradient(0deg, #08170dc9, transparent 35%);
  }
  h1 {
    font-size: 99px;
  }
  .menu-content {
    padding-bottom: 38px;
  }
  .map {
    display: none;
  }
  .vitals {
    width: 194px;
    left: 19px;
    top: 20px;
    padding: 12px 14px;
  }
  .player-heading {
    margin-bottom: 12px;
  }
  .quest {
    width: 223px;
    right: 19px;
    top: 20px;
  }
  .world-title {
    top: 27px;
  }
  .world-title span {
    font-size: 13px;
  }
  .ability-bar {
    bottom: 22px;
  }
  .ability-bar button {
    height: 68px;
    min-width: 82px;
  }
  .control-hint {
    display: none;
  }
  .utility {
    right: 19px;
    top: 171px;
  }
  .boss {
    top: 180px;
    width: 300px;
  }
  .quest .label {
    font-size: 7px;
  }
  .dialogue {
    bottom: 25px;
    padding: 22px;
  }
  .journal-grid {
    gap: 24px;
  }
  .journal {
    padding: 32px;
  }
  .journal h2 {
    font-size: 34px;
  }
}
@media (max-width: 600px) {
  .menu {
    padding: 23px 26px 20px;
  }
  .wordmark {
    font-size: 17px;
  }
  .menu-content {
    padding: 30px 0 38px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 0.2em;
  }
  h1 {
    font-size: 76px;
    margin: 24px 0 26px;
  }
  h1 i {
    font-size: 23px;
    margin-top: 15px;
    letter-spacing: 0.07em;
  }
  .menu-story {
    font-size: 11px;
    line-height: 1.9;
    margin-bottom: 28px;
  }
  .primary-button {
    min-width: 257px;
    min-height: 50px;
    font-size: 11px;
  }
  .menu-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-top: 23px;
    font-size: 8px;
  }
  .menu-bottom {
    gap: 9px;
    padding-top: 18px;
  }
  .menu-settings {
    gap: 14px;
  }
  .subtle-button {
    font-size: 8px;
  }
  .menu-top .edition {
    font-size: 6px;
    letter-spacing: 0.1em;
  }
  .vitals {
    top: 15px;
    left: 13px;
    width: 153px;
    padding: 9px 10px;
  }
  .player-heading {
    gap: 8px;
    margin-bottom: 10px;
  }
  .player-heading .label {
    font-size: 6px;
    letter-spacing: 0.1em;
  }
  .avatar-mark {
    font-size: 23px;
  }
  .level {
    font-size: 13px;
  }
  .meter-heading {
    font-size: 7px;
    margin-bottom: 5px;
  }
  .stamina-heading {
    margin-top: 8px;
  }
  .player-economy {
    font-size: 7px;
    margin-top: 9px;
  }
  .xp-track {
    margin-top: 8px;
  }
  .quest {
    top: 15px;
    right: 13px;
    width: 165px;
    padding: 11px 12px;
  }
  .quest .label {
    font-size: 6px;
    letter-spacing: 0.08em;
    line-height: 1.7;
  }
  .quest-diamond {
    font-size: 14px;
  }
  .quest p {
    font-size: 12px;
    line-height: 1.45;
    margin: 8px 0 9px;
  }
  .quest button {
    font-size: 7px;
  }
  .quest kbd {
    margin-left: 4px;
    font-size: 6px;
  }
  .world-title {
    top: 165px;
    width: 100%;
    text-align: center;
  }
  .world-title span {
    font-size: 12px;
  }
  .utility {
    top: 151px;
    right: 14px;
    gap: 5px;
  }
  .utility button {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .boss {
    top: 195px;
    width: min(260px, 75vw);
  }
  .boss > div:first-child {
    font-size: 7px;
  }
  .ability-bar {
    bottom: 21px;
    gap: 5px;
    width: calc(100vw - 36px);
    justify-content: center;
  }
  .ability-bar button {
    height: 61px;
    min-width: 0;
    width: 25%;
    max-width: 87px;
    padding: 8px 5px;
    gap: 3px;
  }
  .ability-icon {
    font-size: 23px;
    line-height: 25px;
  }
  .ability-bar button > span:last-child {
    font-size: 7px;
  }
  .ability-bar kbd {
    font-size: 6px;
    padding: 3px 4px;
  }
  .interaction-prompt {
    bottom: 113px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
    padding: 9px 12px;
    font-size: 10px;
  }
  .interaction-prompt kbd {
    font-size: 10px;
  }
  .toast {
    top: 34%;
    padding: 10px 15px;
    min-width: 210px;
  }
  .toast p {
    font-size: 10px;
  }
  .dialogue {
    bottom: 20px;
    width: calc(100vw - 28px);
    padding: 18px 17px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .dialogue-ornament {
    font-size: 26px;
  }
  .dialogue-copy p {
    font-size: 16px;
    line-height: 1.65;
    min-height: 74px;
  }
  .dialogue-copy .label {
    font-size: 7px;
  }
  .dialogue button {
    margin-left: auto;
    padding: 0;
  }
  .cinema-bar.top {
    height: 10%;
    padding: 0 24px;
  }
  .cinema-bar.top > span {
    font-size: 6px;
    max-width: 50%;
    line-height: 1.7;
  }
  .cinema-bar.top button {
    font-size: 7px;
  }
  .cinema-bar.bottom {
    height: 21%;
  }
  .cinema-subtitles {
    bottom: 5%;
    width: 85vw;
  }
  .cinema-subtitles p {
    font-size: 17px;
    line-height: 1.55;
  }
  .cinema-subtitles > span {
    font-size: 7px;
  }
  .cinema-bar.top kbd {
    display: none;
  }
  .choice {
    padding: 26px 23px;
  }
  .choice h2 {
    font-size: 35px;
    margin: 20px 0 25px;
  }
  #choice-options {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }
  .choice-card {
    width: 100%;
    max-width: 340px;
    min-height: 0;
    padding: 19px 23px;
  }
  .choice-card h3 {
    font-size: 24px;
    margin: 13px 0 9px;
  }
  .choice-card p {
    font-size: 10px;
    line-height: 1.7;
  }
  .choice-card .choice-arrow {
    margin-top: 9px;
    font-size: 17px;
  }
  .overlay {
    padding: 14px;
  }
  .modal {
    padding: 28px 23px;
    max-height: calc(100dvh - 28px);
  }
  .journal .eyebrow {
    font-size: 6px;
  }
  .journal h2 {
    font-size: 30px;
    margin: 18px 0;
  }
  .journal-intro {
    font-size: 10px;
  }
  .journal-current {
    margin: 18px 0;
    padding: 12px 14px;
  }
  .journal-current p {
    font-size: 16px;
  }
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 18px;
  }
  .journal-grid h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .journal li {
    margin-bottom: 12px;
  }
  .journal-grid section:last-child {
    border-top: 1px solid var(--line);
    padding-top: 18px;
  }
  .journal-footer {
    font-size: 6px;
    gap: 15px;
    line-height: 1.7;
  }
  .journal-footer span {
    max-width: 90px;
    text-align: right;
  }
  .close-button {
    right: 12px;
    top: 9px;
  }
  .pause h2 {
    font-size: 32px;
  }
  .ending h2 {
    font-size: 45px;
  }
  .ending p {
    font-size: 16px;
    line-height: 1.7;
  }
  .ending-symbol {
    font-size: 55px;
    margin-bottom: 18px;
  }
  .ending > section {
    padding: 15px;
  }
  .ending-rule {
    margin: 25px auto;
  }
}
@media (pointer: coarse) {
  .touch-move {
    display: grid;
    position: absolute;
    left: 25px;
    bottom: 34px;
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(2, 40px);
    gap: 4px;
    touch-action: none;
  }
  .touch-move button {
    border: 1px solid #ddbf7838;
    background: #12241ade;
    color: #bbcfaf;
    font-size: 15px;
    padding: 0;
    touch-action: none;
  }
  .move-up {
    grid-column: 2;
    grid-row: 1;
  }
  .move-left {
    grid-column: 1;
    grid-row: 2;
  }
  .move-down {
    grid-column: 2;
    grid-row: 2;
  }
  .move-right {
    grid-column: 3;
    grid-row: 2;
  }
  .ability-bar {
    right: 20px;
    left: auto;
    transform: none;
    flex-wrap: wrap;
    width: 150px;
    bottom: 25px;
    gap: 6px;
  }
  .ability-bar button {
    width: 68px;
    height: 58px;
  }
  .ability-bar kbd {
    display: none;
  }
  .control-hint {
    display: none;
  }
  .interaction-prompt kbd {
    display: none;
  }
  .touch-interact {
    display: block;
    color: var(--gold);
    border-left: 1px solid var(--line);
    padding-left: 12px;
    font-size: 10px;
  }
  .interaction-prompt {
    bottom: 158px;
  }
  .map {
    display: none;
  }
  .dialogue kbd {
    display: none;
  }
}
@media (max-height: 650px) and (min-width: 601px) {
  .menu {
    padding-top: 23px;
    padding-bottom: 20px;
  }
  .menu-content {
    padding: 20px 0;
  }
  h1 {
    font-size: 80px;
    margin: 16px 0 19px;
  }
  h1 i {
    font-size: 23px;
    margin-top: 9px;
  }
  .menu-story {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .menu-meta {
    margin-top: 20px;
  }
  .menu-bottom {
    padding-top: 15px;
  }
  .primary-button {
    min-height: 46px;
    padding: 13px 20px;
  }
  .menu-actions {
    gap: 13px;
  }
  .cinema-subtitles p {
    font-size: 17px;
  }
  .cinema-bar.bottom {
    height: 19%;
  }
  .journal {
    padding: 27px;
  }
  .dialogue {
    bottom: 20px;
    padding: 20px;
  }
  .dialogue-copy p {
    font-size: 17px;
    min-height: 45px;
  }
  .boss {
    top: 160px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Expanded adventure interface */
.quality-control {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: #9fae9c;
  letter-spacing: 0.03em;
}
.quality-control select {
  font: inherit;
  color: #dfd6b4;
  background: #16221bc9;
  border: 1px solid #ddbf7833;
  border-radius: 0;
  padding: 6px 23px 6px 9px;
  cursor: pointer;
  max-width: 140px;
  outline-offset: 3px;
}
.quality-control select:focus-visible {
  outline: 1px solid var(--gold);
}
.quality-control option {
  background: #17221a;
  color: #e8e4cf;
}
.pause-quality {
  justify-content: center;
  margin: 22px 0 0;
}
.pause-quality select {
  font-size: 11px;
  padding: 8px 27px 8px 12px;
}
.focus-heading {
  margin-top: 11px;
}
.focus {
  height: 3px;
}
.focus i {
  background: linear-gradient(90deg, #956b3d, #eed08b);
  width: 0;
}
.combat-state {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #9fae90;
  letter-spacing: 0.025em;
}
.combat-state > span:last-child {
  color: var(--cyan);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.quest {
  width: 310px;
}
.quest-guide {
  border-top: 1px solid var(--line);
  margin: 12px 0 15px;
  padding-top: 13px;
}
.guide-route {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}
.guide-route > span:first-child {
  font-size: 17px;
  line-height: 15px;
}
.guide-route > span:last-child {
  margin-left: auto;
  color: #b9c8aa;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.quest-guide > span {
  font-size: 10px;
  color: #d9dfc9;
  font-weight: 600;
}
.quest .quest-guide p {
  font:
    11px/1.65 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #9fb197;
  margin: 6px 0 0;
}
.utility {
  top: 285px;
}
.ability-bar {
  bottom: 43px;
  gap: 5px;
  max-width: 680px;
}
.ability-bar button {
  width: 78px;
  min-width: 0;
  height: 78px;
  flex-shrink: 0;
  padding: 10px 6px;
  isolation: isolate;
}
.ability-bar button > span.ability-name {
  font-size: 8px;
  color: #b7c0ae;
  white-space: nowrap;
  display: block;
}
.ability-bar button:disabled {
  opacity: 1;
  cursor: default;
}
.ability-bar button.locked {
  border-color: #ffffff0c;
  background: linear-gradient(180deg, #1b292399, #111d199c);
}
.ability-bar button.locked .ability-name {
  color: #6f8677;
}
.ability-bar button.locked .ability-icon {
  opacity: 0.17;
}
.ability-bar .skill-status {
  position: absolute;
  top: 31px;
  left: 0;
  right: 0;
  font-size: 7px;
  color: #acaa88;
  letter-spacing: 0.035em;
  text-align: center;
  pointer-events: none;
}
.ability-bar .skill-cooldown {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  font-size: 20px;
  font-family: Georgia, serif;
  color: #eadbb5;
  text-align: center;
  pointer-events: none;
  text-shadow: 0 1px 9px #000;
}
.ability-bar .skill-cooldown:empty,
.ability-bar .skill-status:empty {
  display: none;
}
.ability-bar button.cooling .ability-icon {
  opacity: 0.17;
}
.ability-bar button.cooling {
  border-color: #7ea79a33;
}
.ability-bar button.ultimate-ready {
  border-color: #e7c98699;
  background: linear-gradient(180deg, #584624a8, #263522);
  box-shadow: 0 0 26px #e8c47121;
}
.ability-bar button.ultimate-ready .ability-icon {
  color: #ffe6a6;
  text-shadow: 0 0 17px #eccc74;
}
.ability-bar button:disabled:hover {
  transform: none;
}
.combat-extras {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 13px;
  color: #a0b19a;
  font-size: 8px;
  pointer-events: auto;
}
.combat-extras button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 2px 3px;
}
.combat-extras kbd {
  font-size: 7px;
  color: #cecba9;
  background: #17231bc9;
}
.combat-divider {
  color: #657d68;
}
.combat-extras b {
  font-weight: 400;
  font-size: 7px;
  color: #a59577;
}
.combat-extras button:disabled {
  opacity: 0.5;
}
.combat-extras button.active {
  color: var(--cyan);
}
.allies {
  position: absolute;
  left: 30px;
  bottom: 82px;
  width: 170px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #102019d9, #10201930);
  border-left: 1px solid #8fc9ba44;
}
.allies > .label {
  font-size: 7px;
  color: #a1c7b1;
  letter-spacing: 0.15em;
}
.ally {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  margin-top: 13px;
}
.ally-name {
  font:
    13px Georgia,
    serif;
  color: #c4d2b9;
}
.ally-health {
  font-size: 7px;
  color: #90a78c;
  align-self: center;
  font-variant-numeric: tabular-nums;
}
.ally-track {
  height: 2px;
  background: #ffffff13;
  display: block;
  grid-column: 1/-1;
}
.ally-track b {
  display: block;
  height: 100%;
  background: #83ac9a;
}
.ally.fallen {
  opacity: 0.4;
}
.boss-detail {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin-top: 9px;
  text-shadow: 0 1px 7px #0008;
}
.boss-detail > span {
  font-size: 7px;
  color: #d8bba0;
  letter-spacing: 0.08em;
  white-space: nowrap;
  padding-top: 2px;
}
.boss-detail p {
  margin: 0;
  color: #c2c8b5;
  font-size: 9px;
  line-height: 1.5;
}
.boss-detail:has(span:empty):has(p:empty) {
  display: none;
}
.quest-toast {
  min-width: 330px;
  padding: 19px 28px;
  border-color: #e2c78788;
  box-shadow: 0 10px 55px #0004;
}
.quest-toast > span {
  font-size: 30px;
}
.quest-toast #toast-label {
  font-size: 8px;
  letter-spacing: 0.19em;
  display: block;
  margin-bottom: 8px;
}
.quest-toast p {
  font:
    18px/1.5 Georgia,
    serif;
  max-width: 470px;
}
.cinema-controls {
  display: flex;
  align-items: center;
  gap: 27px;
}
.cinema-controls > span {
  font-size: 8px;
  color: #6f8478;
  letter-spacing: 0.14em;
}
.cinema-controls #next-cinematic {
  color: #d7c28e;
  font-size: 10px;
}
.cinema-controls #next-cinematic span {
  font-size: 16px;
  margin-left: 8px;
}
.cinema-progress {
  height: 1px;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #e3cf9714;
}
.cinema-progress i {
  display: block;
  height: 100%;
  background: #dfc1807d;
  width: 0;
  transition: width 0.5s;
}
.cinema-subtitles p {
  font-size: 22px;
  line-height: 1.55;
}
.cinema-subtitles > span {
  font-size: 9px;
  letter-spacing: 0.16em;
}
.journal-recap {
  margin: 8px 0 2px;
  color: var(--gold);
  font-size: 10px;
}
.progress-count {
  font:
    9px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #9eb59a;
  float: right;
  padding-top: 7px;
  letter-spacing: 0.06em;
}
.journal li.step-complete > span {
  color: #90b79c;
  font-size: 13px;
}
.journal li.step-complete b {
  color: #91aa91;
}
.journal li.step-complete p {
  color: #718b76;
}
.journal li.step-current {
  background: #e5cc8b08;
  border-left: 1px solid var(--gold);
  padding: 11px 12px;
  margin-left: -12px;
}
.journal li.step-current > span {
  color: #ebd18c;
}
.journal li.step-current b {
  color: #ecddb7;
}
.journal li.step-pending > span {
  font-size: 11px;
  color: #607b68;
}
.skill-unlocks {
  border-top: 1px solid var(--line);
  margin-top: 19px;
  padding-top: 5px;
}
.skill-unlocks p {
  font-size: 9px;
  line-height: 1.75;
  margin: 11px 0;
}
.skill-earned {
  color: #8db49c;
}
.skill-pending {
  color: #b5a783;
}
.damage-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}
.floating-damage {
  position: absolute;
  color: #f5d798;
  font:
    600 21px Georgia,
    serif;
  pointer-events: none;
  text-shadow:
    0 1px 5px #000,
    0 0 12px #0008;
  animation: damage-rise 1.2s ease-out forwards;
  white-space: nowrap;
  will-change: transform, opacity;
}
@keyframes damage-rise {
  0% {
    transform: translate(-50%, -70%) scale(0.7);
    opacity: 0;
  }
  12% {
    transform: translate(-50%, -110%) scale(1.1);
    opacity: 1;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -270%) scale(0.9);
    opacity: 0;
  }
}
@media (max-width: 1050px) {
  .quest {
    width: 265px;
  }
  .ability-bar button {
    width: 68px;
    height: 72px;
  }
  .ability-bar {
    gap: 4px;
  }
  .ability-bar button > span.ability-name {
    font-size: 7px;
  }
  .allies {
    left: 22px;
    width: 150px;
  }
  .utility {
    right: 22px;
    top: 280px;
  }
  .control-hint {
    max-width: 173px;
  }
  .boss-detail p {
    font-size: 8px;
  }
}
@media (max-width: 900px) {
  .quest {
    width: 237px;
  }
  .allies {
    left: 19px;
    width: 130px;
    padding: 10px;
  }
  .ability-bar {
    width: calc(100vw - 36px);
    max-width: 570px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: #aa946066 #112019;
    padding-top: 12px;
    bottom: 43px;
  }
  .ability-bar button {
    width: 67px;
    height: 69px;
  }
  .ability-bar kbd {
    top: -8px;
  }
  .utility {
    right: 19px;
    top: 280px;
  }
  .allies {
    bottom: 150px;
  }
  .cinema-controls {
    gap: 15px;
  }
  .cinema-controls > span {
    font-size: 6px;
  }
  .cinema-controls #next-cinematic {
    font-size: 8px;
  }
  .journal li.step-current {
    margin-left: -9px;
    padding: 9px;
  }
  .boss {
    top: 198px;
  }
  .boss-detail {
    max-width: 310px;
  }
  .world-title {
    top: 28px;
  }
}
@media (max-width: 600px) {
  .quality-control {
    font-size: 7px;
    gap: 5px;
  }
  .quality-control select {
    padding: 5px 17px 5px 6px;
    font-size: 8px;
    max-width: 100px;
  }
  .menu-settings {
    gap: 10px;
  }
  .menu-bottom {
    align-items: center;
  }
  .quest {
    width: 183px;
    padding: 10px 11px;
    right: 12px;
  }
  .quest p {
    font-size: 12px;
    line-height: 1.4;
    margin: 8px 0 10px;
  }
  .quest-guide {
    margin: 10px 0 11px;
    padding-top: 10px;
  }
  .guide-route {
    font-size: 6px;
    gap: 5px;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
  }
  .guide-route > span:first-child {
    font-size: 13px;
  }
  .quest-guide > span {
    font-size: 8px;
  }
  .quest .quest-guide p {
    font-size: 9px;
    line-height: 1.55;
    margin-top: 5px;
  }
  .vitals {
    width: 153px;
  }
  .focus-heading {
    margin-top: 8px;
  }
  .combat-state {
    font-size: 6px;
    margin-top: 8px;
  }
  .combat-state > span:last-child {
    font-size: 5px;
  }
  .vitals .player-economy {
    font-size: 6px;
  }
  .world-title {
    top: 268px;
  }
  .utility {
    top: 277px;
    right: 13px;
  }
  .boss {
    top: 307px;
    max-width: 74vw;
  }
  .boss-detail {
    gap: 7px;
  }
  .boss-detail > span {
    font-size: 6px;
  }
  .boss-detail p {
    font-size: 8px;
  }
  .ability-bar {
    bottom: 42px;
    gap: 5px;
    max-width: none;
    padding-top: 10px;
    padding-bottom: 7px;
    width: calc(100vw - 28px);
  }
  .ability-bar button {
    width: 66px;
    height: 64px;
    max-width: none;
    padding: 8px 4px;
  }
  .ability-bar button > span.ability-name {
    font-size: 7px;
  }
  .ability-bar .ability-icon {
    font-size: 23px;
  }
  .ability-bar .skill-cooldown {
    top: 20px;
    font-size: 19px;
  }
  .ability-bar .skill-status {
    top: 27px;
    font-size: 6px;
  }
  .combat-extras {
    bottom: 18px;
    gap: 9px;
    font-size: 7px;
  }
  .allies {
    left: 13px;
    bottom: 147px;
    width: 138px;
    padding: 9px 10px;
  }
  .ally-name {
    font-size: 12px;
  }
  .ally-health {
    font-size: 6px;
  }
  .ally {
    margin-top: 10px;
  }
  .allies > .label {
    font-size: 6px;
  }
  .interaction-prompt {
    bottom: 137px;
    max-width: calc(100vw - 30px);
  }
  .quest-toast {
    min-width: 0;
    width: calc(100vw - 38px);
    padding: 17px 20px;
    top: 36%;
  }
  .quest-toast #toast-label {
    font-size: 7px;
  }
  .quest-toast p {
    font-size: 17px;
  }
  .quest-toast > span {
    font-size: 25px;
  }
  .cinema-bar.top {
    padding: 0 19px;
    height: 11%;
  }
  .cinema-controls {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 185px;
  }
  .cinema-controls > span {
    width: 100%;
    text-align: right;
    font-size: 6px;
  }
  .cinema-controls #next-cinematic {
    font-size: 8px;
  }
  .cinema-controls #skip-cinematic {
    font-size: 7px;
  }
  .cinema-controls #next-cinematic span {
    font-size: 12px;
    margin-left: 5px;
  }
  .cinema-subtitles p {
    font-size: 18px;
    line-height: 1.55;
  }
  .cinema-subtitles > span {
    font-size: 8px;
    margin-bottom: 9px;
  }
  .cinema-subtitles {
    bottom: 4.5%;
  }
  .cinema-bar.bottom {
    height: 24%;
  }
  .pause-quality {
    font-size: 10px;
  }
  .pause-quality select {
    font-size: 11px;
    padding: 8px 22px 8px 10px;
    max-width: 140px;
  }
  .floating-damage {
    font-size: 18px;
  }
  .journal .journal-recap {
    font-size: 9px;
  }
  .journal li {
    margin-bottom: 13px;
  }
  .journal li.step-current {
    margin-left: -9px;
  }
  .journal-grid {
    gap: 20px;
  }
}
@media (pointer: coarse) {
  .ability-bar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    flex-wrap: nowrap;
    width: calc(100vw - 28px);
    max-width: 680px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    bottom: 21px;
    padding: 5px 0 9px;
    scrollbar-width: thin;
  }
  .ability-bar button {
    width: 73px;
    height: 64px;
    max-width: none;
    flex-shrink: 0;
  }
  .ability-bar kbd {
    display: none;
  }
  .touch-move {
    left: 20px;
    bottom: 134px;
  }
  .combat-extras {
    bottom: 130px;
    right: 18px;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    font-size: 9px;
  }
  .combat-extras button {
    background: #12241ae8;
    border: 1px solid #ddbf7844;
    padding: 8px 11px;
    min-width: 100px;
    justify-content: center;
  }
  .combat-extras .combat-divider {
    display: none;
  }
  .combat-extras kbd {
    display: none;
  }
  .combat-extras #guard-toggle span {
    font-size: 0;
  }
  .combat-extras #guard-toggle span:after {
    content: "Toggle guard";
    font-size: 9px;
  }
  .combat-extras #guard-toggle.active span:after {
    content: "Guarding ✓";
  }
  .combat-extras b {
    font-size: 7px;
  }
  .allies {
    bottom: 254px;
  }
  .interaction-prompt {
    bottom: 233px;
  }
  .quest-guide .guide-route {
    font-size: 7px;
  }
  .ability-bar button .skill-status {
    font-size: 7px;
  }
}
@media (max-height: 650px) and (min-width: 601px) {
  .allies {
    bottom: 149px;
    width: 135px;
  }
  .quest {
    padding: 12px 15px;
  }
  .quest-guide {
    padding-top: 8px;
    margin: 8px 0 10px;
  }
  .quest p {
    font-size: 13px;
    margin: 9px 0;
  }
  .quest .quest-guide p {
    font-size: 10px;
  }
  .utility {
    top: 255px;
  }
  .boss {
    top: 165px;
  }
  .cinema-subtitles p {
    font-size: 18px;
  }
  .cinema-bar.bottom {
    height: 23%;
  }
  .ability-bar {
    bottom: 39px;
  }
  .ability-bar button {
    height: 61px;
  }
  .ability-bar .ability-icon {
    font-size: 21px;
    line-height: 23px;
  }
  .ability-bar .skill-status {
    top: 23px;
  }
  .ability-bar .skill-cooldown {
    top: 18px;
  }
  .combat-extras {
    bottom: 13px;
  }
  .journal li p {
    font-size: 9px;
  }
  .journal li {
    margin-bottom: 11px;
  }
  .journal li.step-current {
    padding: 8px 10px;
  }
}
.ability-bar button > span.skill-cooldown {
  font:
    20px Georgia,
    serif;
  color: #eadbb5;
  white-space: nowrap;
}
.ability-scroll-hint {
  display: none;
}
@media (max-width: 900px) {
  .ability-scroll-hint {
    display: block;
    position: absolute;
    bottom: 131px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #90a58c;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
}
@media (max-width: 600px) {
  .ability-bar button > span.skill-cooldown {
    font-size: 19px;
  }
  .ability-scroll-hint {
    bottom: 126px;
    font-size: 6px;
  }
}
@media (pointer: coarse) {
  .ability-scroll-hint {
    display: block;
    position: absolute;
    bottom: 106px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 7px;
    color: #90a58c;
    white-space: nowrap;
  }
}
@media (max-height: 650px) and (min-width: 601px) {
  .ability-bar button > span.skill-cooldown {
    font-size: 18px;
  }
  .ability-scroll-hint {
    bottom: 116px;
  }
}
/* Earned skills and the stories beyond the main road. */
.growth-row{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:8px;font-size:7px;color:#879c87}.growth-row>span{font-variant-numeric:tabular-nums;white-space:nowrap}.growth-row button{padding:0;font-size:7px;color:#afba9e;display:flex;gap:4px;align-items:center;white-space:nowrap}.growth-row button>span{color:var(--gold)}.growth-row b{font-weight:600;color:#e1cd8f}.growth-row kbd{font-size:6px;padding:2px 3px}.growth-row button.has-points{color:#eddaaa}.growth-row button.has-points>span{text-shadow:0 0 9px #e1c17a}.tracking-control{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;gap:12px;border-top:1px solid var(--line);padding-top:11px}.tracking-control>span{font-size:6px;letter-spacing:.12em;color:#8eaa93}.tracking-control select{min-width:0;max-width:190px;width:72%;font:9px inherit;background:#14261bb3;border:1px solid #ddbf7830;padding:5px 7px;color:#c9d5b9;cursor:pointer}.tracking-control option{background:#16241b}.quest-guide>span[hidden]+p{margin-top:0}.journal-tabs{display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line);margin:25px 0 0;padding-bottom:14px}.journal-tabs button{font-size:10px;color:#92a58e;display:flex;align-items:center;gap:9px;padding:0}.journal-tabs button.active{color:#e4d3a2}.journal-tabs button>span{font-size:8px;color:var(--gold)}.journal-tabs kbd{font-size:7px}.journal-tabs+.journal-grid{border-top:0}.skill-journal-link{color:var(--gold);font-size:10px;margin-top:8px}.journal-sidequests{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.sidequest-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sidequest-heading h3{font:22px Georgia,serif;margin:0;color:#e1dfc8}.sidequest-heading>span{font-size:7px;letter-spacing:.12em;color:#91aa91}.sidequest{border:1px solid #ddbf7824;background:#a8c4a504;margin-top:9px;padding:0 15px}.sidequest summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;padding:14px 0;list-style:none;font-size:11px;color:#d4ddc4}.sidequest summary::-webkit-details-marker{display:none}.sidequest summary>span:before{content:'◇';color:var(--gold);font-size:12px;margin-right:10px}.sidequest summary b{font-size:6px;font-weight:500;letter-spacing:.1em;color:#9ab69d;text-align:right}.sidequest.complete summary>span:before{content:'✓';color:#9ec9a5}.sidequest.locked summary{color:#829b83}.sidequest.locked summary b{color:#799179}.sidequest p{font-size:11px;line-height:1.8;color:#9fb39c;margin:0 0 12px}.sidequest-reward{font-size:9px;color:#c3ae7e;display:block;margin:0 0 14px}.sidequest>.text-button{font-size:9px;display:block;margin:0 0 16px;color:#ddcb97}.skills-modal{width:min(1090px,100%);padding:31px 35px 24px}.skills-heading{display:flex;align-items:center;justify-content:space-between;gap:30px;margin-top:16px}.skills-heading h2{font-size:39px;margin:0;line-height:1.2}.skill-points-pill{display:flex;align-items:center;gap:10px;border:1px solid #d7b96a44;background:#ddbf7808;padding:10px 14px;flex-shrink:0}.skill-points-pill>span{font-size:25px;color:var(--gold)}.skill-points-pill>b{font:26px Georgia,serif;color:#ead391}.skill-points-pill small{font-size:6px;letter-spacing:.12em;color:#b8bd9c;max-width:38px;line-height:1.7}.skills-intro{font-size:11px;line-height:1.8;color:#a2b59d;margin:15px 0 18px;max-width:690px}.skills-summary{display:flex;gap:19px;align-items:center;font-size:7px;letter-spacing:.12em;color:#91a98b;border-bottom:1px solid var(--line);padding-bottom:17px}.skills-summary>span:nth-child(2){color:#d7c28d}.skills-summary>span:last-child{margin-left:auto;font-size:8px;letter-spacing:.015em;color:#8a9d83}.skill-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding-top:21px;align-items:start}.skill-path{min-width:0;--path:#dbbe7d}.path-ember{--path:#e0a67c}.path-guardian{--path:#8fbda7}.skill-path-heading{position:relative;padding:0 0 15px 33px;margin-bottom:2px}.skill-path-heading>span{position:absolute;left:1px;top:0;font:25px Georgia,serif;color:var(--path)}.skill-path-heading h3{font:24px Georgia,serif;margin:0 0 6px;color:#e4dfc6}.skill-path-heading p{font-size:8px;color:#8ea18a;margin:0;line-height:1.6}.skill-node{position:relative;border:1px solid #d3c68c22;background:linear-gradient(135deg,#bed4b205,#1d2e2106);padding:12px 13px 10px;margin-bottom:9px}.skill-node:not(:last-child):after{content:'';position:absolute;width:1px;height:10px;bottom:-10px;left:25px;background:#d7be792b}.skill-node.available{border-color:#d7bc6a66;background:#dabc7208}.skill-node.learned{border-color:#85b69c4d;background:#8eb69a08}.skill-node-top{display:flex;align-items:center;gap:9px}.skill-node-icon{font:21px Georgia,serif;color:var(--path);width:21px;flex-shrink:0;text-align:center}.skill-node-top h4{font:16px/1.2 Georgia,serif;color:#dce1c9;margin:0;flex:1;min-width:0}.skill-node-top kbd{font-size:7px;color:#d9cf9e;border-color:#bcbb8633;padding:3px 4px}.skill-description{font-size:9px;line-height:1.65;color:#9db097;margin:9px 0 6px;min-height:29px}.skill-requirement{font-size:8px;line-height:1.6;color:#b6a77c;margin:0 0 9px;min-height:25px}.skill-node.learned .skill-requirement{color:#8bb69a}.skill-learn{display:block;width:100%;text-align:left;font-size:8px;letter-spacing:.03em;border-top:1px solid #ddbf7822;padding:8px 0 0;color:#e3c98b}.skill-learn:disabled{cursor:default;opacity:1;color:#81957c}.skill-node.learned .skill-learn{color:#9ec2a5}.skill-node.waiting .skill-node-icon{opacity:.6}.skill-node.waiting .skill-node-top h4{color:#a9b69b}.skills-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:17px;margin-top:9px;gap:15px}.skills-footer>span{font-size:8px;color:#7e977f;line-height:1.7}.skills-footer button{font-size:9px;white-space:nowrap}.skills-empty{font:18px/1.6 Georgia,serif;color:#a5b39b;text-align:center;padding:40px 15px}.ability-bar:has([data-earned-slot]:not([hidden])){width:calc(100vw - 80px);max-width:840px;overflow-x:auto;overflow-y:hidden;justify-content:flex-start;padding-top:10px;padding-bottom:6px;scrollbar-width:thin;scrollbar-color:#aa946066 #112019}.ability-bar:has([data-earned-slot]:not([hidden])) button{width:70px}.combat-extras{background:#13241bd9;padding:4px 10px;border:1px solid #ddbf781a}.skill-toast{border-color:#dcbf79}#loading-detail{max-width:80vw;text-align:center;line-height:1.7}
@media(max-width:1050px){.growth-row{flex-wrap:wrap;gap:6px}.growth-row button{margin-left:auto}.skills-modal{padding:28px}.skills-heading h2{font-size:33px}.skill-paths{gap:11px}.skill-node{padding:11px}.skill-node-top h4{font-size:15px}.ability-bar:has([data-earned-slot]:not([hidden])){max-width:780px;width:calc(100vw - 40px)}}@media(max-width:900px){.skill-paths{gap:10px}.skill-node-top{gap:6px}.skill-node-top h4{font-size:14px}.skill-description{font-size:8px}.skill-requirement{font-size:7px}.skill-points-pill{padding:8px 11px}.skills-summary{font-size:6px}.skills-heading h2{font-size:31px}.tracking-control select{font-size:8px}.ability-bar:has([data-earned-slot]:not([hidden])){max-width:680px}}@media(max-width:600px){.growth-row{margin-top:8px;font-size:6px;gap:5px}.growth-row button{font-size:6px}.growth-row kbd{font-size:5px}.growth-row>span{font-size:5px}.tracking-control{margin-bottom:9px;padding-top:8px;gap:6px}.tracking-control>span{font-size:5px}.tracking-control select{font-size:7px;padding:5px;max-width:122px}.journal-tabs{gap:20px;margin-top:20px}.journal-tabs button{font-size:9px}.journal-tabs button>span{font-size:7px}.journal-sidequests{margin-top:22px;padding-top:18px}.sidequest-heading{gap:10px}.sidequest-heading h3{font-size:19px}.sidequest-heading>span{font-size:6px}.sidequest{padding:0 11px}.sidequest summary{font-size:10px;padding:12px 0}.sidequest summary b{font-size:5px;letter-spacing:.05em}.sidequest p{font-size:10px}.sidequest-reward{font-size:8px}.skills-modal{padding:27px 20px 22px}.skills-modal>.eyebrow{font-size:6px}.skills-heading{gap:13px;margin-top:18px;align-items:flex-start}.skills-heading h2{font-size:28px;max-width:195px}.skill-points-pill{gap:6px;padding:8px;min-width:63px;flex-wrap:wrap;justify-content:center;max-width:77px}.skill-points-pill>span{font-size:20px}.skill-points-pill>b{font-size:22px}.skill-points-pill small{font-size:5px;max-width:none;text-align:center;width:100%;line-height:1.2}.skills-intro{font-size:10px;margin-top:16px}.skills-summary{gap:13px;flex-wrap:wrap;font-size:6px;padding-bottom:15px}.skills-summary>span:last-child{margin-left:0;font-size:7px;width:100%}.skill-paths{grid-template-columns:1fr;gap:21px;padding-top:21px}.skill-path-heading{padding-bottom:14px;margin-top:0;padding-left:34px}.skill-path-heading h3{font-size:25px}.skill-path-heading p{font-size:9px}.skill-node{padding:13px 14px;margin-bottom:10px}.skill-node-top{gap:10px}.skill-node-top h4{font-size:19px}.skill-node-icon{font-size:23px}.skill-description{font-size:10px;min-height:0;line-height:1.7;margin-top:11px}.skill-requirement{font-size:9px;min-height:0;margin-bottom:12px}.skill-learn{font-size:10px;padding-top:11px}.skills-footer{align-items:flex-start;gap:17px}.skills-footer>span{font-size:7px;max-width:140px}.skills-footer button{font-size:8px;white-space:normal;text-align:right}.ability-bar:has([data-earned-slot]:not([hidden])){width:calc(100vw - 28px);max-width:none}.ability-bar:has([data-earned-slot]:not([hidden])) button{width:68px}.combat-extras{padding:3px 8px}.skill-journal-link{font-size:9px}}
@media(pointer:coarse){.ability-bar:has([data-earned-slot]:not([hidden])){width:calc(100vw - 28px);max-width:840px;bottom:21px}.ability-bar:has([data-earned-slot]:not([hidden])) button{width:73px}.combat-extras{background:none;padding:0;border:0}}@media(max-height:650px) and (min-width:601px){.skills-modal{padding:25px}.skills-heading{margin-top:12px}.skills-heading h2{font-size:30px}.skills-intro{font-size:10px;margin:11px 0 13px}.skills-summary{padding-bottom:13px}.skill-paths{padding-top:18px}.skills-footer{padding-top:13px}.growth-row{margin-top:7px}}
.ending #ending-menu{margin:21px auto 0;display:block;font-size:10px;color:#9daf99}.choice{overflow-y:auto}.choice:has(.choice-card:nth-child(3)){justify-content:flex-start;padding-top:clamp(35px,7vh,75px);padding-bottom:35px}.choice:has(.choice-card:nth-child(3)) h2{font-size:40px;max-width:650px;line-height:1.2;margin:20px 0 28px}.choice #choice-options:has(.choice-card:nth-child(3)){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;max-width:780px}.choice #choice-options:has(.choice-card:nth-child(3)) .choice-card{width:100%;min-height:170px;padding:23px}.choice #choice-options:has(.choice-card:nth-child(3)) .choice-card h3{font-size:25px;margin:17px 0 10px}.choice #choice-options:has(.choice-card:nth-child(3)) .choice-card .choice-arrow{margin-top:12px}@media(max-width:600px){.choice:has(.choice-card:nth-child(3)){padding-top:32px;padding-bottom:25px}.choice:has(.choice-card:nth-child(3)) h2{font-size:31px;margin:18px 0 24px}.choice #choice-options:has(.choice-card:nth-child(3)){grid-template-columns:1fr;max-width:340px;gap:11px}.choice #choice-options:has(.choice-card:nth-child(3)) .choice-card{min-height:0;padding:18px 21px}.choice #choice-options:has(.choice-card:nth-child(3)) .choice-card h3{font-size:22px;margin:12px 0 8px}.choice #choice-options:has(.choice-card:nth-child(3)) .choice-card .choice-arrow{margin-top:7px;font-size:17px}.ending #ending-menu{font-size:9px}}
@media(min-width:601px){.skill-node{padding:10px 12px 8px}.skill-description{line-height:1.55;min-height:28px;margin:7px 0 5px}.skill-requirement{min-height:22px;margin:0 0 6px}.skill-learn{padding-top:7px}}
/* Guardian encounters: read the attack, build stagger, take the opening. */
.boss{top:30px;width:min(560px,calc(100vw - 580px));max-width:none;padding:17px 20px 15px;border:1px solid #d4b8784d;border-top:2px solid #cba86c99;background:linear-gradient(135deg,#14231fed,#101b19ed);box-shadow:0 12px 44px #0004;backdrop-filter:blur(12px);--encounter-accent:#d9bd83;--encounter-soft:#ddbf781a}
.boss .boss-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0;color:var(--paper);letter-spacing:0}
.boss-heading>div{min-width:0;flex:1}.boss .boss-phase{display:block;font-size:7px;line-height:1.5;letter-spacing:.15em;color:#c0ae87;margin-bottom:5px}.boss #boss-name{font:22px/1.16 Georgia,serif;letter-spacing:.005em;color:#f0e8d1;margin:0;text-transform:none;overflow-wrap:anywhere}.boss #boss-value{font:8px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;color:#b5b79e;white-space:nowrap;font-variant-numeric:tabular-nums;align-self:flex-end;padding-bottom:1px}.boss .boss-track{margin-top:12px;height:6px;background:#050b0999;border-color:#d0b38833;box-shadow:none}.boss .boss-track i{background:linear-gradient(90deg,#9b6766,#e6ad8d);transition:width .16s}
.boss-stagger-heading{display:flex;justify-content:space-between;gap:10px;margin:11px 0 5px;font-size:6px;letter-spacing:.15em;color:#8dafa6}.boss-stagger-heading>span:last-child{letter-spacing:0;color:#b8ccc1;font-variant-numeric:tabular-nums}.boss-stagger-track{height:3px;background:#020e0c99}.boss-stagger-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#497d78,#a3d7c4);transition:width .13s}
.boss-action-line{display:flex;align-items:center;gap:10px;margin-top:13px;min-height:18px}.boss-cue{color:var(--encounter-accent);font-size:6px;letter-spacing:.1em;padding:5px 6px;border:1px solid color-mix(in srgb,var(--encounter-accent) 32%,transparent);background:var(--encounter-soft);white-space:nowrap}.boss-action-line strong{font:14px/1.4 Georgia,serif;font-weight:400;letter-spacing:.02em;color:#e7dfc8;flex:1;min-width:0}.boss #boss-opening-time{font:16px/1 Georgia,serif;color:#f4deb1;font-variant-numeric:tabular-nums;white-space:nowrap}.boss-timing{height:2px;margin-top:8px;background:#ffffff09;overflow:hidden}.boss-timing i{display:block;height:100%;width:0;background:var(--encounter-accent);transition:width .12s linear}
.boss .boss-detail{margin-top:10px;max-width:none;justify-content:flex-start;gap:8px;align-items:flex-start;text-shadow:none}.boss .boss-guide-mark{font:15px/1.3 Georgia,serif;letter-spacing:0;color:var(--encounter-accent);padding:0;flex-shrink:0}.boss .boss-detail p{font:10px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#c5d0bc;margin:0}.boss .boss-detail:has(p:empty){display:none}
.boss[data-state="windup"]{--encounter-accent:#e6a179;--encounter-soft:#b56e4f20;border-top-color:#d58d69}.boss[data-state="windup"] .boss-action-line strong{color:#f0c9aa}.boss[data-state="exposed"]{--encounter-accent:#b1e2ca;--encounter-soft:#90ceb41c;border-color:#9ac8ad77;border-top-color:#c2e8b7;box-shadow:0 10px 44px #0004,0 0 30px #90c4a012}.boss[data-state="exposed"] .boss-action-line strong{color:#e7edbe}.boss[data-state="exposed"] .boss-detail p{color:#dce4bd}.boss[data-state="shielded"]{--encounter-accent:#c3afdf;--encounter-soft:#a28aba1c;border-top-color:#a895bf}.boss[data-state="shielded"] .boss-stagger-track i{background:#9886b0}
.hud.has-boss .quest{width:235px}.hud.has-boss .quest-guide,.hud.has-boss .tracking-control,.hud.has-boss .world-title{display:none}.hud.has-boss #quest-objective{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.hud.has-boss .utility{top:165px}
@media(max-width:1100px) and (min-width:901px){.boss{width:calc(100vw - 540px);padding:15px 17px}.boss #boss-name{font-size:20px}.boss-action-line strong{font-size:13px}.hud.has-boss .quest{width:215px}.boss #boss-value{font-size:7px}}
@media(max-width:900px){.boss{top:18px;width:min(560px,calc(100vw - 38px));padding:15px 18px}.hud.has-boss .vitals,.hud.has-boss .quest{top:225px}.hud.has-boss .quest{width:210px}.hud.has-boss .utility{top:365px}.boss .boss-detail p{font-size:10px}.boss #boss-name{font-size:22px}}
@media(max-width:600px){.boss{top:14px;left:14px;transform:none;width:calc(100vw - 28px);padding:11px 13px 10px}.boss .boss-heading{gap:10px}.boss .boss-phase{font-size:6px;letter-spacing:.1em;line-height:1.45;margin-bottom:4px}.boss #boss-name{font-size:18px;line-height:1.15}.boss #boss-value{font-size:6px;padding-bottom:1px}.boss .boss-track{height:5px;margin-top:8px}.boss-stagger-heading{font-size:5px;margin-top:8px;margin-bottom:4px}.boss-stagger-track{height:2px}.boss-action-line{margin-top:10px;gap:7px;min-height:17px}.boss-cue{font-size:5px;letter-spacing:.065em;padding:4px 5px}.boss-action-line strong{font-size:13px;line-height:1.35}.boss #boss-opening-time{font-size:15px}.boss-timing{margin-top:6px}.boss .boss-detail{margin-top:8px;gap:6px}.boss .boss-guide-mark{font-size:13px;line-height:1.3}.boss .boss-detail p{font-size:9px;line-height:1.5}.hud.has-boss .vitals,.hud.has-boss .quest{top:204px}.hud.has-boss .quest{width:183px}.hud.has-boss .vitals .player-economy,.hud.has-boss .vitals .xp-track,.hud.has-boss .vitals .growth-row,.hud.has-boss .vitals .combat-state{display:none}.hud.has-boss .vitals{padding-top:9px;padding-bottom:10px}.hud.has-boss .vitals .player-heading{margin-bottom:9px}.hud.has-boss .utility{top:320px}.hud.has-boss .quest p{font-size:11px;line-height:1.4}.hud.has-boss .quest #hud-journal{font-size:7px}}
@media(max-height:650px) and (min-width:601px){.boss{top:15px;padding-top:12px;padding-bottom:11px}.boss #boss-name{font-size:19px}.boss .boss-track{margin-top:8px}.boss-stagger-heading{margin-top:8px}.boss-action-line{margin-top:9px}.boss .boss-detail{margin-top:8px}.boss .boss-detail p{font-size:9px}.hud.has-boss .vitals,.hud.has-boss .quest{top:204px}.hud.has-boss .vitals .player-economy,.hud.has-boss .vitals .xp-track,.hud.has-boss .vitals .growth-row{display:none}.hud.has-boss .utility{top:345px}}
/* Optional realm escape remains reachable on keyboard and touch. */
.utility .leave-realm{width:auto;height:auto;padding:.65rem .85rem;font:600 .7rem/1.2 var(--sans, sans-serif);letter-spacing:.05em;border-radius:.4rem;white-space:nowrap}
@media(max-width:600px){.utility .leave-realm{padding:.55rem;font-size:.6rem}}
@media(max-width:600px){.hud.has-boss .vitals,.hud.has-boss .quest{top:222px}.hud.has-boss .utility{top:356px}}
