@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/cormorantgaramond.ttf") format("truetype");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/manrope.ttf") format("truetype");
}
:root {
  --ink: #101b1d;
  --panel: #142122;
  --gold: #cfb17b;
  --light: #ede7d5;
  --muted: #8e9b91;
  --line: #b8b08a30;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--ink);
  color: var(--light);
  font-family: var(--sans);
  font-size: 13px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button:hover {
  color: #ffe1ac;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
[hidden] {
  display: none !important;
}
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
}
.title-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.title-art,
.title-shade,
.title-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.title-art {
  background: #243530 url("assets/cover.webp") center 52% / cover no-repeat;
  animation: drift 30s ease-in-out infinite alternate;
}
.title-shade {
  background:
    linear-gradient(
      90deg,
      #0a1518f5 0%,
      #0b181dcc 29%,
      #111b1d45 65%,
      #11191d10 100%
    ),
    linear-gradient(
      0deg,
      #0d171ce6 0%,
      transparent 25%,
      transparent 74%,
      #0e181ca0
    );
}
.title-grain {
  opacity: 0.06;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.6' filter='url(%23n)'/%3E%3C/svg%3E");
}
.title-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 35px 5.3vw;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--light);
  text-decoration: none;
  letter-spacing: 3px;
  font-size: 16px;
}
.brand img {
  width: 38px;
  height: 44px;
}
.brand small {
  display: block;
  font-size: 8px;
  color: #c1b69b;
  letter-spacing: 2.7px;
  margin-top: 7px;
}
.edition {
  font-size: 9px;
  letter-spacing: 2.6px;
  color: #c9d0bd90;
  margin-left: auto;
  margin-right: 40px;
}
.edition b {
  font-weight: 400;
  color: var(--gold);
  margin-left: 24px;
}
.icon-button {
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #11202055;
}
.title-content {
  position: relative;
  margin: 7.5vh 0 0 10vw;
  width: 570px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.4px;
  color: var(--gold);
  display: flex;
  gap: 14px;
  align-items: center;
}
.eyebrow > span {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
h1 {
  font-family: var(--serif);
  font-size: clamp(64px, 7.5vw, 112px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 30px 0 26px;
  position: relative;
  text-shadow: 0 3px 30px #071218;
}
h1 em {
  font-weight: 400;
  color: var(--gold);
  font-style: normal;
}
h1 .title-mark {
  font-family: Georgia;
  font-size: 38px;
  color: var(--gold);
  display: inline-block;
  margin-left: 32px;
  vertical-align: middle;
  opacity: 0.7;
}
.hero-copy {
  font-size: 13px;
  color: #b9c0b3;
  line-height: 1.95;
  letter-spacing: 0.25px;
  margin: 0 0 30px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.primary-button {
  background: linear-gradient(120deg, #d5ba86, #ae8d5a);
  border: 1px solid #e4c894;
  color: #15201f;
  padding: 17px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  min-width: 232px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  box-shadow: 0 5px 35px #9c692220;
  transition: 0.2s;
}
.primary-button:hover {
  color: #09100f;
  background: #ead0a0;
  transform: translateY(-1px);
}
.primary-button span {
  font-size: 19px;
  font-weight: 400;
}
.secondary-button {
  padding: 15px 20px;
  border: 1px solid var(--line);
  background: #13212199;
  font-size: 11px;
  letter-spacing: 0.2px;
}
.secondary-button span {
  margin-left: 15px;
  color: var(--gold);
}
.title-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #8f9d94;
  margin-top: 25px;
  font-size: 10px;
}
.title-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.title-meta svg {
  width: 16px;
  color: var(--gold);
}
.title-meta i {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: #af9b69;
}
.title-footer {
  position: absolute;
  bottom: 30px;
  left: 5.3vw;
  right: 5.3vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b9c91;
  font-size: 8px;
  letter-spacing: 1.2px;
  padding-top: 22px;
  border-top: 1px solid #b6c4ab20;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b8c7a2;
  box-shadow: 0 0 10px #adc98a;
  margin-right: 8px;
}
.title-footer button {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #cecbb8;
}
.title-footer button span {
  color: var(--gold);
  margin-left: 18px;
}
.title-version b {
  margin-left: 20px;
  font-weight: 400;
  color: var(--gold);
}
@keyframes drift {
  to {
    transform: scale(1.045);
  }
}
.game-screen {
  height: 100%;
  width: 100%;
  position: relative;
  touch-action: none;
  user-select: none;
}
#world {
  display: block;
  position: absolute;
  inset: 0;
}
.game-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: linear-gradient(#09161df0, #10201d55, transparent);
  gap: 25px;
  height: 100px;
  pointer-events: none;
}
.game-header > * {
  pointer-events: auto;
}
.hero-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.hero-portrait {
  position: relative;
  width: 46px;
  height: 53px;
  background: linear-gradient(145deg, #51766a, #183535);
  border: 1px solid #bdb4878a;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}
.hero-portrait svg {
  width: 27px;
  height: 27px;
  color: #e0c897;
}
.hero-portrait b {
  position: absolute;
  bottom: 1px;
  color: var(--gold);
  font-size: 10px;
}
.hero-vitals {
  width: 178px;
}
.hero-name {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  margin-bottom: 8px;
}
.hero-name span {
  font-family: var(--sans);
  font-size: 6px;
  letter-spacing: 1px;
  color: #abb8a1;
  margin-left: 12px;
}
.vital {
  height: 8px;
  position: relative;
  background: #051418;
  border: 1px solid #7f8e7050;
  overflow: hidden;
}
.vital i,
.xp-track i {
  display: block;
  height: 100%;
  transition: width 0.15s;
  width: 100%;
}
.health i {
  background: linear-gradient(90deg, #597a55, #a1b783);
}
.vital span {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 6px;
  line-height: 7px;
  color: #fff4cf;
}
.mana {
  height: 4px;
  margin-top: 4px;
  border: 0;
}
.mana i {
  background: linear-gradient(90deg, #427c81, #8acab7);
}
.xp-track {
  height: 2px;
  background: #52635855;
  margin-top: 4px;
}
.xp-track i {
  background: var(--gold);
}
.chapter-label {
  text-align: center;
}
.chapter-label span {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  color: #bea577;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.chapter-label strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 25px;
}
.game-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.game-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d4d5ba;
  font-size: 9px;
}
.game-nav svg {
  width: 19px;
}
.game-nav b {
  position: absolute;
  top: -5px;
  right: -6px;
  background: var(--gold);
  color: #162321;
  font-size: 8px;
  min-width: 12px;
  border-radius: 50%;
  line-height: 12px;
}
.quest-hud {
  position: absolute;
  left: 28px;
  top: 125px;
  max-width: 240px;
  padding: 17px 17px 15px;
  border-left: 1px solid #c7ac7b70;
  background: linear-gradient(90deg, #0d1c20d9, transparent);
}
.eyebrow.small {
  font-size: 7px;
  letter-spacing: 1.8px;
  margin-bottom: 11px;
}
.quest-hud h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  margin: 0 0 6px;
}
.quest-hud p {
  font-size: 9px;
  color: #a8b5a4;
  line-height: 1.7;
  margin: 0 0 10px;
}
.quest-hud .q-count {
  color: var(--gold);
  font-size: 10px;
}
.quest-hud button {
  margin-top: 13px;
  padding: 0;
  font-size: 8px;
  color: #b8bea9;
}
.quest-hud button span {
  color: var(--gold);
  margin-left: 35px;
}
.minimap-hud {
  position: absolute;
  right: 28px;
  top: 118px;
  width: 166px;
  background: #0e1e20bb;
  border: 1px solid #a9b79335;
  padding: 8px;
}
.minimap-hud > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c7cbb1;
  font-size: 8px;
  gap: 6px;
}
.minimap-hud button {
  padding: 0;
  line-height: 0;
}
.minimap-hud svg {
  width: 15px;
  height: 15px;
}
.minimap-hud canvas {
  width: 148px;
  height: 148px;
  display: block;
  opacity: 0.85;
}
.minimap-hud small {
  color: var(--gold);
  font-size: 7px;
  display: flex;
  justify-content: space-between;
  letter-spacing: 0.3px;
}
.minimap-hud small span {
  color: #8ec8b6;
}
.boss-hud {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  text-align: center;
  text-shadow: 0 1px 8px #061218;
}
.boss-hud > span {
  font-family: var(--serif);
  font-size: 23px;
}
.boss-hud > div {
  margin: 7px auto;
  background: #0c1721;
  border: 1px solid #ae8d6655;
  height: 7px;
}
.boss-hud i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9b4c49, #d7a078);
}
.boss-hud small {
  font-size: 6px;
  color: #d4b496;
  letter-spacing: 1px;
}
.toast-stack {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 360px;
  max-width: 85%;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}
.toast {
  background: linear-gradient(
    90deg,
    transparent,
    #102022ee 10%,
    #102022ee 90%,
    transparent
  );
  padding: 12px 16px;
  color: #ecddaf;
  font-size: 11px;
  animation: appear 0.2s;
  border-bottom: 1px solid #c5af7550;
}
.toast small {
  color: #98b49e;
}
.interact-hint {
  position: absolute;
  bottom: 135px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #f0deae;
  background: #112222dd;
  border: 1px solid var(--line);
  padding: 10px 20px;
  white-space: nowrap;
}
.interact-hint:empty {
  display: none;
}
.bottom-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 28px 24px;
  background: linear-gradient(transparent, #0d1c20cc 45%, #0a181ef2);
  gap: 15px;
}
.currency {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 9px;
  align-items: center;
  min-width: 110px;
}
.gold-gem {
  color: #c9b075;
  font-size: 17px;
  grid-row: span 2;
}
.currency b {
  font-size: 14px;
  font-weight: 500;
}
.currency small {
  font-size: 6px;
  letter-spacing: 1.5px;
  color: #a7b49e;
}
.currency #save-status {
  grid-column: span 2;
  font-size: 7px;
  color: #6f9386;
  margin-top: 12px;
}
.desktop-hint {
  font-size: 8px;
  color: #99aa98;
  align-self: flex-end;
  margin-bottom: 8px;
}
.desktop-hint span {
  margin: 0 10px;
  color: var(--gold);
}
.action-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.skill {
  flex-shrink: 0;
  width: 53px;
  height: 56px;
  position: relative;
  background: linear-gradient(140deg, #334b44ee, #132b2cf0);
  border: 1px solid #b6b98a66;
  box-shadow: inset 0 0 0 3px #09202780;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.skill svg {
  width: 26px;
  height: 26px;
  color: #d6deb8;
  margin-top: -4px;
}
.skill small {
  position: absolute;
  bottom: 4px;
  font-size: 6px;
  letter-spacing: 1px;
  color: #aebc9a;
}
.skill b {
  position: absolute;
  top: 3px;
  right: 4px;
  font-size: 9px;
  color: #e3d1a8;
}
.skill.fire {
  background: linear-gradient(140deg, #574338ee, #282625f0);
  border-color: #bd996866;
}
.skill.fire svg {
  color: #e3b280;
}
.skill.potion {
  background: linear-gradient(140deg, #563c38dd, #24302ded);
}
.skill.potion svg {
  color: #d4ab96;
}
.skill.attack {
  width: 68px;
  height: 68px;
  background: linear-gradient(140deg, #838663dd, #2c483eed);
  border-color: #cebe8a;
  margin-left: 2px;
}
.skill.attack svg {
  width: 33px;
  height: 33px;
  color: #ecddae;
}
.skill .cd {
  position: absolute;
  inset: 0;
  background: #041417bd;
  font-size: 15px;
  display: none;
  place-items: center;
  color: #d4d8ba;
}
.skill.cooling .cd {
  display: grid;
}
.skill.locked {
  opacity: 0.42;
}
.action-divider {
  flex-shrink: 0;
  display: block;
  height: 33px;
  width: 1px;
  background: var(--line);
  margin: 0 4px;
}
.interact-button {
  flex-shrink: 0;
  border: 1px solid #bcba8b55;
  height: 42px;
  width: 42px;
  background: #18302ee6;
  font-size: 14px;
  color: var(--gold);
  position: relative;
  margin-left: 9px;
}
.interact-button span {
  display: none;
}
.joystick {
  display: none;
  position: absolute;
  width: 114px;
  height: 114px;
  bottom: 30px;
  left: 25px;
  border: 1px solid #bec8a84d;
  border-radius: 50%;
  background: #142c286b;
  touch-action: none;
}
.joy-cross {
  position: absolute;
  inset: 22px;
  border: 1px solid #bac7a522;
  border-radius: 50%;
}
.joy-cross:after,
.joy-cross:before {
  content: "";
  position: absolute;
  background: #c7d4b538;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 9px;
  transform: translateY(-50%);
}
.joy-cross:after {
  width: 9px;
  height: 1px;
  transform: translateX(-50%);
}
.joy-knob {
  position: absolute;
  width: 44px;
  height: 44px;
  left: 34px;
  top: 34px;
  border: 1px solid #b0be9399;
  background: radial-gradient(#5b756566, #304b4688);
  border-radius: 50%;
  box-shadow: 0 4px 16px #05181655;
  pointer-events: none;
}
.modal-layer {
  position: fixed;
  inset: 0;
  background: #051215bb;
  backdrop-filter: blur(7px);
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal {
  background: linear-gradient(145deg, #20302c, #0e1d22);
  border: 1px solid #a6b18855;
  width: 660px;
  max-width: 100%;
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 35px 120px #031019;
  padding: 35px;
  position: relative;
  outline: 0;
}
.modal .close {
  position: absolute;
  right: 20px;
  top: 17px;
  color: #a6b7a3;
  font-size: 24px;
  line-height: 1;
}
.modal h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  margin: 13px 0 16px;
  line-height: 1.1;
}
.modal p {
  line-height: 1.85;
  color: #b7c3b1;
  font-size: 12px;
}
.modal .speaker {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 8px;
  text-transform: uppercase;
}
.dialogue-text {
  font-family: var(--serif);
  font-size: 25px !important;
  color: #dce2c9 !important;
  line-height: 1.6 !important;
  min-height: 100px;
}
.dialogue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.dialogue-footer small {
  color: #91a68e;
  font-size: 9px;
}
.modal .primary-button {
  min-width: 180px;
}
.modal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quest-card,
.item-card,
.skill-card {
  border: 1px solid #a9b59235;
  background: #0b1d2144;
  padding: 16px;
}
.quest-card.done {
  opacity: 0.6;
  border-color: #90b69750;
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--serif);
  font-size: 22px;
  color: #e1dbbe;
}
.card-title b {
  font-size: 12px;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--gold);
}
.quest-card p,
.item-card p,
.skill-card p {
  font-size: 10px;
  margin: 8px 0;
}
.reward {
  color: #bfaa7d;
  font-size: 8px;
  letter-spacing: 0.4px;
}
.quest-card .optional {
  font-size: 6px;
  letter-spacing: 1px;
  color: #9da991;
}
.stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 13px 0 20px;
  color: #9ab19a;
  font-size: 10px;
}
.stats-row b {
  color: #e1d0a0;
  font-size: 16px;
  margin-left: 5px;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}
.small-button {
  padding: 9px 15px;
  border: 1px solid #c7b48255;
  color: #d7c18e;
  font-size: 9px;
  background: #1c302a;
}
.item-card.equipped {
  border-color: #c0ae7566;
}
.item-rarity {
  font-size: 7px;
  letter-spacing: 1px;
  color: #b5b289;
}
.skill-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 13px;
}
.skill-card svg {
  color: var(--gold);
  width: 28px;
  height: 28px;
}
.settings-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: #b6c3af;
  font-size: 11px;
}
.settings-row select {
  background: #21352f;
  border: 1px solid #8b9c7844;
  color: #e0d6b6;
  padding: 9px;
  font-family: inherit;
  font-size: 10px;
}
.help-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.help-grid > div {
  background: #152925;
  padding: 15px;
  border: 1px solid var(--line);
  color: #b6c5aa;
  line-height: 1.8;
  font-size: 10px;
}
.help-grid strong {
  color: var(--gold);
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
}
.map-large {
  display: block;
  margin: auto;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1;
}
.map-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #b8bda6;
  font-size: 9px;
}
.end-stats {
  display: flex;
  gap: 25px;
  margin: 20px 0 25px;
  color: #9eaf98;
  font-size: 9px;
}
.end-stats b {
  display: block;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 27px;
  margin-bottom: 4px;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@media (min-width: 1500px) {
  .title-content {
    margin-top: 12vh;
  }
}
@media (max-width: 1100px) {
  .desktop-hint {
    display: none;
  }
}
@media (max-height: 720px) and (min-width: 800px) {
  .title-content {
    margin-top: 3vh;
  }
  h1 {
    font-size: 85px;
  }
  .title-header {
    padding-top: 25px;
  }
  .title-footer {
    bottom: 20px;
  }
  .hero-copy {
    margin-bottom: 23px;
  }
}
@media (pointer: coarse) {
  .joystick {
    display: block;
  }
  .desktop-hint {
    display: none;
  }
  .bottom-hud .currency {
    align-self: flex-end;
  }
  .bottom-hud {
    padding-bottom: 20px;
  }
  .action-bar {
    margin-left: auto;
  }
}
@media (max-width: 800px) {
  .title-header {
    padding: 25px;
  }
  .edition {
    display: none;
  }
  .title-content {
    margin: 10vh 0 0 7vw;
    width: 85vw;
    max-width: 500px;
  }
  h1 {
    font-size: 90px;
  }
  .title-shade {
    background:
      linear-gradient(90deg, #0a171bee, #0b1a1ba5 70%, #0b191b50),
      linear-gradient(0deg, #0e191de6, transparent 40%);
  }
  .title-footer {
    left: 7vw;
    right: 7vw;
    bottom: 24px;
  }
  .title-version {
    display: none;
  }
  .title-footer > div {
    max-width: 60%;
    font-size: 7px;
    line-height: 1.8;
  }
  .game-header {
    padding: 15px;
    height: 85px;
    gap: 10px;
  }
  .hero-vitals {
    width: 130px;
  }
  .hero-name span {
    display: none;
  }
  .hero-portrait {
    width: 36px;
    height: 43px;
  }
  .hero-name {
    font-size: 19px;
  }
  .game-nav {
    gap: 16px;
  }
  .game-nav button span {
    display: none;
  }
  .chapter-label strong {
    font-size: 20px;
  }
  .chapter-label span {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .quest-hud {
    left: 15px;
    top: 95px;
    padding: 12px;
    max-width: 210px;
  }
  .minimap-hud {
    right: 15px;
    top: 95px;
    width: 120px;
    padding: 6px;
  }
  .minimap-hud canvas {
    width: 106px;
    height: 106px;
  }
  .minimap-hud > div span {
    font-size: 6px;
  }
  .minimap-hud small {
    font-size: 6px;
  }
  .bottom-hud {
    padding: 15px;
  }
  .skill {
    width: 46px;
    height: 49px;
  }
  .skill.attack {
    width: 61px;
    height: 61px;
  }
  .action-bar {
    gap: 7px;
  }
  .action-divider {
    margin: 0;
  }
  .desktop-hint {
    display: none;
  }
  .currency {
    min-width: 65px;
  }
  .currency small {
    font-size: 5px;
  }
  .currency #save-status {
    font-size: 6px;
  }
  .joystick {
    bottom: 38px;
    left: 24px;
  }
  .boss-hud {
    top: 230px;
    width: 210px;
  }
  .interact-hint {
    bottom: 155px;
    font-size: 9px;
  }
  .modal {
    padding: 27px;
  }
  .modal h2 {
    font-size: 33px;
  }
  .toast {
    font-size: 10px;
  }
}
@media (max-width: 540px) {
  .title-art {
    background-position: 63% center;
  }
  .title-header {
    padding: 22px;
  }
  .brand {
    font-size: 12px;
    gap: 10px;
  }
  .brand img {
    width: 30px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .title-content {
    margin-top: 11vh;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.7px;
    gap: 10px;
  }
  h1 {
    font-size: 76px;
    margin-top: 30px;
    line-height: 0.98;
  }
  .title-mark {
    font-size: 25px !important;
    margin-left: 22px !important;
  }
  .hero-copy {
    font-size: 11px;
    line-height: 1.95;
    max-width: 285px;
  }
  .hero-actions {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .primary-button {
    padding: 16px 21px;
    min-width: 228px;
  }
  .title-meta {
    gap: 15px;
    margin-top: 23px;
    font-size: 8px;
  }
  .title-footer {
    bottom: 20px;
    padding-top: 18px;
  }
  .title-footer button {
    font-size: 9px;
  }
  .game-header {
    padding-top: calc(13px + env(safe-area-inset-top));
    align-items: flex-start;
    gap: 5px;
  }
  .hero-identity {
    gap: 8px;
  }
  .hero-vitals {
    width: 109px;
  }
  .hero-name {
    font-size: 18px;
  }
  .game-nav {
    gap: 13px;
    padding-top: 4px;
  }
  .game-nav svg {
    width: 19px;
  }
  .game-nav button {
    padding: 3px;
  }
  .chapter-label {
    display: none;
  }
  .quest-hud {
    top: 88px;
    max-width: 205px;
    left: 12px;
    padding: 11px;
  }
  .quest-hud h3 {
    font-size: 20px;
  }
  .quest-hud p {
    font-size: 9px;
  }
  .quest-hud button {
    font-size: 8px;
    margin-top: 10px;
  }
  .minimap-hud {
    top: 90px;
    right: 12px;
    width: 105px;
    padding: 6px;
  }
  .minimap-hud canvas {
    width: 91px;
    height: 91px;
  }
  .minimap-hud > div span {
    display: none;
  }
  .minimap-hud > div {
    justify-content: flex-end;
    height: 16px;
  }
  .minimap-hud small {
    font-size: 5px;
  }
  .bottom-hud {
    height: 205px;
    display: block;
    padding: 14px 12px calc(15px + env(safe-area-inset-bottom));
  }
  .currency {
    position: absolute;
    bottom: 185px;
    left: 20px;
    display: flex;
    gap: 6px;
  }
  .currency .gold-gem {
    font-size: 12px;
  }
  .currency b {
    font-size: 11px;
  }
  .currency small {
    font-size: 5px;
  }
  .currency #save-status {
    margin: 0 0 0 9px;
  }
  .action-bar {
    position: absolute;
    right: 14px;
    bottom: calc(28px + env(safe-area-inset-bottom));
    width: 181px;
    height: 134px;
    display: block;
  }
  .skill {
    position: absolute;
    width: 49px;
    height: 51px;
    box-shadow: inset 0 0 0 3px #09202780;
  }
  .skill.attack {
    right: 0;
    bottom: 0;
    width: 67px;
    height: 69px;
    margin: 0;
  }
  .skill.fire {
    right: 4px;
    bottom: 83px;
  }
  .skill[data-action="nova"] {
    right: 68px;
    bottom: 79px;
  }
  .skill[data-action="dash"] {
    right: 83px;
    bottom: 13px;
  }
  .skill.potion {
    right: 133px;
    bottom: 78px;
    width: 42px;
    height: 45px;
  }
  .skill svg {
    width: 24px;
    height: 24px;
  }
  .skill small {
    font-size: 6px;
  }
  .action-divider {
    display: none;
  }
  .interact-button {
    position: absolute;
    right: 8px;
    bottom: 155px;
    width: 108px;
    height: 36px;
    font-size: 11px;
    margin: 0;
  }
  .interact-button span {
    display: inline;
    font-size: 8px;
    margin-left: 6px;
  }
  .joystick {
    display: block;
    bottom: calc(39px + env(safe-area-inset-bottom));
    left: 22px;
    width: 104px;
    height: 104px;
  }
  .joy-knob {
    left: 29px;
    top: 29px;
  }
  .interact-hint {
    bottom: 240px;
    max-width: 88vw;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 8px;
    padding: 8px 13px;
  }
  .boss-hud {
    top: 235px;
    width: 215px;
  }
  .boss-hud > span {
    font-size: 22px;
  }
  .toast-stack {
    top: 42%;
  }
  .modal-layer {
    padding: 14px;
  }
  .modal {
    padding: 25px 21px;
    max-height: 88dvh;
  }
  .modal h2 {
    font-size: 32px;
  }
  .modal p {
    font-size: 11px;
  }
  .dialogue-text {
    font-size: 24px !important;
    min-height: 130px;
  }
  .dialogue-footer {
    gap: 10px;
  }
  .dialogue-footer .primary-button {
    min-width: 150px;
    padding: 13px 17px;
    font-size: 10px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: 12px;
  }
  .card-title {
    font-size: 20px;
  }
  .card-title b {
    font-size: 10px;
  }
  .modal-list {
    gap: 10px;
  }
  .quest-card,
  .item-card,
  .skill-card {
    padding: 13px;
  }
  .end-stats {
    gap: 20px;
  }
}
@media (max-height: 500px) {
  .title-header {
    padding: 15px 4vw;
  }
  .title-content {
    margin: 1vh 0 0 7vw;
  }
  .title-content .eyebrow {
    font-size: 6px;
  }
  h1 {
    font-size: 58px !important;
    margin: 15px 0 12px;
  }
  .hero-copy {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .hero-actions {
    flex-direction: row;
  }
  .hero-actions .primary-button {
    padding: 10px 15px;
    min-width: 195px;
  }
  .title-meta {
    margin-top: 12px;
  }
  .title-footer {
    bottom: 13px;
    padding-top: 10px;
    font-size: 6px;
  }
  .game-header {
    padding: 10px 16px;
    height: 72px;
  }
  .quest-hud {
    top: 80px;
    max-width: 175px;
    padding: 10px;
  }
  .quest-hud h3 {
    font-size: 18px;
  }
  .quest-hud p {
    font-size: 8px;
  }
  .quest-hud button {
    display: none;
  }
  .minimap-hud {
    top: 78px;
    width: 102px;
  }
  .minimap-hud canvas {
    width: 88px;
    height: 88px;
  }
  .minimap-hud small {
    display: none;
  }
  .boss-hud {
    top: 76px;
    width: 240px;
  }
  .bottom-hud {
    padding-bottom: 10px;
    padding-top: 10px;
  }
  .currency {
    display: none;
  }
  .joystick {
    width: 100px;
    height: 100px;
    bottom: 18px;
    left: 22px;
  }
  .joy-knob {
    left: 27px;
    top: 27px;
  }
  .action-bar .skill {
    width: 46px;
    height: 48px;
  }
  .action-bar .skill.attack {
    width: 57px;
    height: 59px;
  }
  .bottom-hud {
    justify-content: flex-end;
  }
  .interact-hint {
    bottom: 90px;
  }
  .modal-layer {
    padding: 10px;
  }
  .modal {
    max-height: 94dvh;
    padding: 22px 28px;
  }
  .modal h2 {
    font-size: 30px;
    margin: 7px 0 10px;
  }
  .dialogue-text {
    font-size: 23px !important;
    min-height: 60px !important;
  }
  .dialogue-footer {
    margin-top: 12px;
    padding-top: 12px;
  }
  .modal .primary-button {
    padding: 10px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .title-art {
    animation: none;
  }
  .toast {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
@media (pointer: coarse) {
  .game-nav {
    gap: 3px;
  }
  .game-nav button {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
  .minimap-hud button {
    min-width: 36px;
    min-height: 36px;
    display: grid;
    place-items: center;
  }
  .quest-hud #all-quests {
    min-height: 36px;
    margin-top: 0;
  }
  .game-header {
    padding-left: calc(15px + env(safe-area-inset-left));
    padding-right: calc(15px + env(safe-area-inset-right));
  }
  .joystick {
    left: calc(22px + env(safe-area-inset-left));
  }
  .bottom-hud {
    padding-right: calc(15px + env(safe-area-inset-right));
  }
}
@media (max-width: 540px) {
  .game-header {
    padding-left: 12px;
    padding-right: 7px;
  }
  .hero-vitals {
    width: 100px;
  }
  .game-nav {
    gap: 0;
  }
  .quest-hud {
    top: calc(92px + env(safe-area-inset-top));
  }
  .minimap-hud {
    top: calc(92px + env(safe-area-inset-top));
  }
  .boss-hud {
    top: calc(250px + env(safe-area-inset-top));
  }
  .action-bar {
    right: calc(14px + env(safe-area-inset-right));
  }
  .minimap-hud > div {
    height: 22px;
  }
  .minimap-hud button {
    min-height: 26px;
    min-width: 36px;
  }
}
@media (pointer: coarse) {
  .skill small {
    font-size: 0;
  }
  .skill[data-action="slash"] small:after {
    content: "АТАКА";
    font-size: 6px;
  }
  .skill[data-action="fire"] small:after {
    content: "ИСКРА";
    font-size: 6px;
  }
  .skill[data-action="nova"] small:after {
    content: "ПЕЧАТЬ";
    font-size: 6px;
  }
  .skill[data-action="dash"] small:after {
    content: "РЫВОК";
    font-size: 6px;
  }
  .skill[data-action="potion"] small:after {
    content: "ЗЕЛЬЕ";
    font-size: 6px;
  }
  .interact-button {
    font-size: 0;
  }
  .interact-button:before {
    content: "✦";
    font-size: 16px;
  }
  .interact-button span {
    font-size: 8px;
  }
}
.modal-layer {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.modal {
  width: min(660px, calc(100vw - 48px));
}
@media (max-width: 540px) {
  .modal {
    width: calc(100vw - 28px);
  }
}

/* Environment information stays out of the player's movement and combat area. */
.climate-hud {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  color: #e4d5b6;
  text-shadow: 0 2px 8px #000;
  font:
    12px Georgia,
    serif;
  letter-spacing: 1px;
}
.climate-hud small {
  display: block;
  font:
    9px Arial,
    sans-serif;
  color: #a5b3b5;
  letter-spacing: 1.5px;
  margin-top: 7px;
}
.settings-row input[type="range"] {
  width: 145px;
  accent-color: #c8ab77;
}
@media (max-width: 700px) {
  .climate-hud {
    top: 90px;
    left: 20px;
    transform: none;
    text-align: left;
    font-size: 10px;
  }
  .climate-hud small {
    font-size: 8px;
  }
}

.climate-hud {
  top: 92px;
  font-size: 11px;
  letter-spacing: 0.4px;
  background: #10161570;
  padding: 7px 13px;
  border: 1px solid #b8a17820;
  border-radius: 2px;
}
.climate-hud small {
  display: none;
}
@media (max-width: 700px) {
  .climate-hud {
    top: 92px;
    background: none;
    border: 0;
    padding: 0;
    font-size: 9px;
  }
}

/* Equipment, merchant and fire enchantment. */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.equipment-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 12px 7px;
  background: #101d1a;
  border: 1px solid #4b5644;
}
.equipment-slot svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: #c4b18b;
  stroke-width: 1.5;
}
.equipment-slot small {
  color: #91a393;
  font-size: 10px;
}
.equipment-slot strong {
  font-size: 12px;
  min-height: 34px;
  color: #dbdccd;
}
.equipment-slot .small-button {
  padding: 5px 9px;
  font-size: 10px;
}
.inventory-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.inventory-tabs button {
  padding: 8px 12px;
  background: #182723;
  border: 1px solid #566450;
  color: #c1c9b4;
  cursor: pointer;
}
.inventory-tabs button.selected {
  border-color: #d3b781;
  color: #f5deb0;
  background: #394033;
}
.stat-up {
  color: #a9d29b;
}
.stat-down {
  color: #d39378;
}
.item-comparison,
.inventory-note {
  font-size: 12px;
}
.rarity-epic {
  border-left-color: #aa90b8;
}
.rarity-legendary {
  border-left-color: #e5b673;
}
.skill.ember {
  color: #ffae67;
  border-color: #d08044;
  background: #48281e;
}
.skill.ember svg {
  stroke: #ffac56;
}
.skill.ember.enchanted {
  box-shadow:
    0 0 16px #f5854170,
    inset 0 0 10px #ed7d4540;
}
@media (max-width: 760px) {
  .equipment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* The flame button shares the same compact layout breakpoint as the action bar. */
@media (max-width: 540px) {
  .skill.ember {
    position: absolute;
    right: 143px;
    bottom: 13px;
    width: 43px;
    height: 46px;
  }
}
@media (pointer: coarse) {
  .skill[data-action="ember"] small:after {
    content: "ПЛАМЯ";
    font-size: 6px;
  }
  .skill[data-action="ember"].enchanted small {
    font-size: 7px;
  }
  .skill[data-action="ember"].enchanted small:after {
    content: "";
  }
}
.atlas-regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}
.atlas-regions .quest-card,
.story-choice {
  text-align: left;
  width: 100%;
}
.atlas-regions .quest-card p {
  font-size: 12px;
  margin: 6px 0;
}
.tool-missing {
  opacity: 0.6;
}
.story-choice:hover {
  border-color: #d0ad73;
  background: #252b22;
}
.story-choice:disabled {
  opacity: 0.5;
  cursor: default;
}
@media (max-width: 640px) {
  .atlas-regions {
    grid-template-columns: 1fr;
  }
}
.quick-tool {
  position: absolute;
  bottom: 120px;
  right: 30px;
  max-width: 220px;
  pointer-events: auto;
  background: #17241ded;
}
@media (max-width: 640px) {
  .quick-tool {
    bottom: 205px;
    right: 15px;
    max-width: 170px;
    font-size: 10px;
    padding: 9px;
  }
}
@media (max-width: 340px),
  (pointer: coarse) and (min-width: 541px) and (max-width: 640px) {
  .joystick {
    left: calc(12px + env(safe-area-inset-left));
    width: 96px;
    height: 96px;
  }
  .joy-knob {
    left: 25px;
    top: 25px;
  }
}
.quest-card.failed {
  border-color: #805343;
  opacity: 0.78;
}
.quest-failure {
  color: #d99c84;
}
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 35%, #263a33, #0a171b 72%);
}
.loading-card {
  width: min(420px, 100%);
  text-align: center;
}
.loading-mark {
  color: var(--gold);
  font:
    64px Georgia,
    serif;
  margin-bottom: 24px;
  animation: loading-glow 2s ease-in-out infinite alternate;
}
.loading-card h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 400;
  margin: 16px 0 24px;
}
.loading-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
  margin: 22px 0;
}
.loading-meter {
  display: flex;
  gap: 14px;
  align-items: center;
}
.loading-meter progress {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 5px;
  border: 0;
  background: #ffffff15;
}
.loading-meter progress::-webkit-progress-bar {
  background: #ffffff15;
}
.loading-meter progress::-webkit-progress-value {
  background: var(--gold);
}
.loading-meter progress::-moz-progress-bar {
  background: var(--gold);
}
.loading-meter span {
  width: 40px;
  color: var(--gold);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
@keyframes loading-glow {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-mark {
    animation: none;
  }
}

/* The equipment screen uses a persistent selection, a paper doll and a readable inspector. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.modal.equipment-modal {
  width: 1200px;
  max-height: 92dvh;
  padding: 0;
  background:
    radial-gradient(ellipse at 12% 35%, #32423838, transparent 45%),
    linear-gradient(140deg, #1d2523, #101917 65%, #161d1b);
  border: 1px solid #95836388;
  box-shadow:
    0 30px 130px #000c,
    inset 0 0 0 4px #090f0d80;
  scrollbar-width: thin;
  scrollbar-color: #6d6752 #101916;
}
.equipment-modal .close {
  z-index: 2;
  top: 23px;
  right: 22px;
  width: 38px;
  height: 38px;
  border: 1px solid #bda97940;
  color: #c7c5b4;
  font-size: 27px;
  background: #111917;
}
.equipment-modal .close:hover {
  background: #34382b;
}
.equipment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 78px 20px 28px;
}
.equipment-header .speaker {
  font-size: 9px;
  letter-spacing: 2.2px;
}
.equipment-header h2 {
  margin: 9px 0 0;
  font-size: 38px;
  color: #eee5cb;
}
.inventory-wallet {
  text-align: right;
  white-space: nowrap;
}
.inventory-wallet > span {
  display: block;
  font-size: 10px;
  color: #a6ac9d;
}
.inventory-wallet strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.inventory-wallet i {
  color: #d7b675;
  font-style: normal;
  font-size: 17px;
}
.equipment-nav {
  display: flex;
  align-items: stretch;
  gap: 26px;
  min-height: 47px;
  padding: 0 28px;
  border-block: 1px solid #b8a67526;
  background: #060e0c45;
}
.equipment-nav > button,
.equipment-nav > .active {
  padding: 14px 0;
  color: #a9ad9e;
  font-size: 11px;
  border-bottom: 2px solid transparent;
}
.equipment-nav > .active {
  color: #ead1a0;
  border-color: #c9a368;
}
.equipment-nav button span {
  color: #c2ab76;
  margin-left: 8px;
}
.equipment-nav .nav-note {
  margin-left: auto;
  align-self: center;
  color: #98a390;
  font-size: 10px;
}
.equipment-layout {
  display: grid;
  grid-template-columns: 290px minmax(240px, 1fr) 294px;
  gap: 23px;
  padding: 22px 28px;
}
.equipment-layout > * {
  min-width: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.section-heading h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0;
  color: #dedac6;
}
.section-heading > span {
  color: #9aa292;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.paperdoll {
  position: relative;
  height: 328px;
  background: radial-gradient(ellipse at 50% 40%, #63726021, transparent 70%);
  border: 1px solid #b8a67526;
  box-shadow: inset 0 0 45px #02090599;
  overflow: hidden;
}
.paperdoll:before,
.paperdoll:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #bba37188;
  border-style: solid;
}
.paperdoll:before {
  left: 5px;
  top: 5px;
  border-width: 1px 0 0 1px;
}
.paperdoll:after {
  right: 5px;
  bottom: 5px;
  border-width: 0 1px 1px 0;
}
.hero-halo {
  position: absolute;
  width: 174px;
  height: 174px;
  border: 1px solid #ada36e27;
  border-radius: 50%;
  left: calc(50% - 87px);
  top: 18px;
  box-shadow:
    0 0 0 8px #afa57907,
    0 0 0 30px #afa57905;
}
.hero-art {
  position: absolute;
  left: calc(50% - 83px);
  top: 12px;
  width: 166px;
  height: 284px;
}
.hero-art > svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.gear-slot {
  position: absolute;
  z-index: 1;
  width: 73px;
  padding: 5px 3px 6px;
  background: linear-gradient(135deg, #26322dee, #0f1715f5);
  border: 1px solid
    color-mix(in srgb, var(--rarity-color, #acb4a3) 50%, #25342c);
  box-shadow: 0 3px 12px #0006;
}
.slot-helmet {
  left: 11px;
  top: 18px;
}
.slot-weapon {
  left: 11px;
  top: 135px;
}
.slot-armor {
  right: 11px;
  top: 18px;
}
.slot-shield {
  right: 11px;
  top: 135px;
}
.slot-charm {
  right: 11px;
  top: 244px;
}
.slot-caption {
  display: block;
  color: #babdab;
  font-size: 9px;
}
.slot-art {
  display: block;
  height: 46px;
}
.slot-art > svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.slot-item-name {
  display: block;
  font-size: 8px;
  line-height: 1.4;
  color: #d3d5c5;
  min-height: 22px;
}
.slot-equipped {
  position: absolute;
  right: 4px;
  top: 4px;
  font-size: 6px;
  color: #c7b57b;
}
.gear-slot:hover,
.gear-slot.slot-active {
  border-color: #e1c285;
  background: linear-gradient(135deg, #3b4232, #1a241e);
}
.gear-slot.slot-active:after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid #c8ad6655;
  pointer-events: none;
}
.gear-slot.slot-empty {
  border-style: dashed;
}
.slot-empty .slot-art {
  opacity: 0.25;
  filter: grayscale(1);
}
.hero-name {
  position: absolute;
  left: 19px;
  bottom: 13px;
  font-family: var(--serif);
  font-size: 27px;
  color: #e2d4b3;
}
.hero-name span {
  display: block;
  font: 7px var(--sans);
  letter-spacing: 1.8px;
  color: #919783;
  margin-top: 3px;
}
.character-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  margin-top: 15px;
}
.character-stats > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  border-bottom: 1px solid #b5ae8a19;
  padding: 8px 0;
}
.character-stats > div:first-child {
  grid-column: 1 / -1;
}
.character-stats span {
  color: #adb4a4;
  font-size: 10px;
}
.character-stats strong {
  color: #e0d6b9;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.equipment-modal .sheet-note {
  font-size: 10px;
  color: #919e8d;
  margin: 11px 0 0;
}
.inventory-bag {
  border-inline: 1px solid #b8a67522;
  padding-inline: 21px;
}
.bag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.bag-filters button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 10px;
  color: #aeb5a4;
  border: 1px solid #a4af9030;
  background: #0b1411;
}
.bag-filters button span {
  margin-left: 7px;
  color: #7e8e7b;
  font-size: 9px;
}
.bag-filters button:hover,
.bag-filters button.selected {
  color: #ebd6a6;
  border-color: #bf9f62a3;
  background: #343b2c;
}
.bag-filters button.selected span {
  color: #c1ab79;
}
.bag-controls {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}
.bag-search {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #9caa8933;
  background: #08110dd0;
  padding: 0 9px;
  flex: 1;
  min-width: 0;
}
.bag-search > span {
  color: #a6b09c;
  font-size: 23px;
  line-height: 1;
}
.bag-search input {
  width: 100%;
  min-width: 0;
  height: 37px;
  background: none;
  border: 0;
  font: 10px var(--sans);
  color: #e3dfc9;
  outline: 0;
}
.bag-search input::placeholder {
  color: #84907d;
}
.bag-search:focus-within {
  border-color: #c5aa73;
}
.bag-sort select {
  width: 98px;
  height: 39px;
  font: 10px var(--sans);
  background: #17211a;
  color: #bdc2ae;
  border: 1px solid #a4af9033;
  padding: 0 6px;
}
.bag-sort select:focus-visible {
  outline: 2px solid var(--gold);
}
.bag-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
  min-height: 274px;
  max-height: 330px;
  overflow-y: auto;
  padding: 3px;
  margin: -3px;
  scrollbar-width: thin;
  scrollbar-color: #6d6752 #101916;
}
.bag-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 8px 5px;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 42%, #16231a);
  border-bottom: 2px solid var(--rarity-color);
  background:
    radial-gradient(
      ellipse at 50% 25%,
      color-mix(in srgb, var(--rarity-color) 12%, transparent),
      transparent 78%
    ),
    #0c1511;
  text-align: center;
  min-height: 128px;
}
.rarity-common {
  --rarity-color: #9eac9b;
}
.rarity-rare {
  --rarity-color: #7eaebe;
}
.rarity-epic {
  --rarity-color: #b39acb;
}
.rarity-legendary {
  --rarity-color: #dda55e;
}
.bag-item-art {
  width: 100%;
  height: 67px;
  display: block;
}
.bag-item-art > svg {
  height: 100%;
  width: 100%;
  stroke: none;
}
.bag-item-name {
  font-size: 10px;
  line-height: 1.4;
  color: #d8d9c8;
  min-height: 28px;
  width: 100%;
  overflow-wrap: anywhere;
}
.bag-item-rarity {
  color: var(--rarity-color);
  font-size: 8px;
  margin-top: 5px;
}
.bag-item:hover,
.bag-item.is-selected {
  border-color: #dec28a;
  background:
    radial-gradient(ellipse at 50% 25%, #bca26330, transparent 78%), #293025;
}
.bag-item.is-selected {
  box-shadow: inset 0 0 0 2px #d2b27865;
}
.equipped-mark {
  position: absolute;
  right: 5px;
  top: 5px;
  color: #e2d2a4;
  font-size: 12px;
  width: 18px;
  height: 18px;
  background: #38442c;
  border: 1px solid #bcaa7260;
}
.bag-empty {
  grid-column: 1 / -1;
  text-align: center;
  align-self: center;
  padding: 25px 12px;
}
.bag-empty > span {
  font-size: 36px;
  color: #a18b5e;
}
.bag-empty h3 {
  font: 25px var(--serif);
  color: #d7cbb0;
  margin: 14px 0 8px;
}
.equipment-modal .bag-empty p {
  font-size: 11px;
  color: #a5b29a;
}
.potion-supply {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  border-block: 1px solid #b8a67526;
  padding: 10px 0;
}
.potion-art {
  display: block;
  width: 39px;
  height: 48px;
  flex-shrink: 0;
}
.potion-art > svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.potion-supply strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #cfcebb;
}
.potion-supply strong b {
  color: #e3c181;
  margin-left: 7px;
}
.potion-supply small {
  display: block;
  margin-top: 5px;
  color: #929f89;
  font-size: 9px;
  line-height: 1.6;
}
.potion-supply kbd {
  font: inherit;
  color: #d3c59d;
  padding: 1px 4px;
  border: 1px solid #b8a67540;
}
.equipment-modal .bag-caption {
  font-size: 9px;
  color: #8d9b85;
  margin: 11px 0 0;
}
.inspector-panel {
  min-width: 0;
}
.item-inspector {
  border-top: 2px solid var(--rarity-color);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rarity-color) 5%, transparent),
    transparent 40%
  );
  padding-top: 12px;
}
.inspector-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.rarity-text {
  color: var(--rarity-color);
  font-size: 9px;
  line-height: 1.5;
}
.worn-badge {
  color: #cbbc8a;
  font-size: 9px;
  border: 1px solid #bdac7040;
  padding: 3px 6px;
  white-space: nowrap;
}
.inspector-art {
  width: 100%;
  height: 142px;
  display: flex;
  justify-content: center;
  padding: 9px 25px;
  background: radial-gradient(
    ellipse at 50% 70%,
    color-mix(in srgb, var(--rarity-color) 12%, transparent),
    transparent 65%
  );
}
.inspector-art > svg {
  width: 100%;
  height: 100%;
  stroke: none;
  filter: drop-shadow(0 8px 8px #0006);
}
.item-inspector h3 {
  font: 500 29px/1.05 var(--serif);
  margin: 9px 0 11px;
  color: #e7d9bb;
  overflow-wrap: anywhere;
}
.equipment-modal .item-lore {
  color: #a5b09b;
  font-size: 11px;
  line-height: 1.75;
  margin: 0 0 15px;
}
.item-properties {
  margin: 0;
  padding: 11px 0;
  border-block: 1px solid #b8a67529;
}
.item-properties > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 11px;
}
.item-properties dt {
  color: #b5bdac;
}
.item-properties dd {
  color: #e1d6ae;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.item-compare {
  padding-top: 16px;
}
.compare-heading {
  color: #8c9c83;
  font-size: 9px;
  line-height: 1.5;
}
.compare-heading strong {
  display: block;
  color: #c8cbb6;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}
.comparison-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #86977c;
  margin: 14px 0 4px;
}
.comparison-row {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #a7b18b1a;
  font-size: 10px;
  color: #aeb7a0;
  font-variant-numeric: tabular-nums;
}
.comparison-row i {
  font-style: normal;
  color: #718469;
  margin: 0 4px;
}
.comparison-row b {
  color: #d0d3b9;
  font-weight: 500;
}
.comparison-row > strong {
  grid-column: 2;
  text-align: right;
  font-size: 9px;
  font-weight: 500;
  margin-top: 3px;
}
.equipment-modal .item-compare p {
  font-size: 10px;
  line-height: 1.5;
  margin: 10px 0 0;
}
.stat-up {
  color: #a1c790;
}
.stat-down {
  color: #e49e88;
}
.inspector-actions {
  margin-top: 19px;
}
.equipment-modal .primary-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px 15px;
  font-size: 12px;
}
.inspector-actions .small-button {
  width: 100%;
  min-height: 44px;
  font-size: 11px;
}
.item-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #94a189;
  margin: 12px 0;
}
.item-price strong {
  color: #cdb889;
  font-weight: 500;
  font-size: 11px;
}
.equipment-modal .action-reason {
  font-size: 10px;
  color: #a8b197;
  line-height: 1.6;
  margin: 8px 0 0;
}
.inspector-empty {
  display: flex;
  min-height: 350px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}
.inspector-empty > span {
  font-size: 44px;
  color: #a99b7066;
}
.inspector-empty h3 {
  font: 26px var(--serif);
  font-weight: 400;
  color: #c8b993;
}
.equipment-modal .inspector-empty p {
  font-size: 11px;
  color: #939f88;
}
.equipment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #b8a6752b;
  padding: 15px 28px;
  background: #07100c66;
}
.equipment-footer > span {
  color: #a3ac96;
  font-size: 10px;
  line-height: 1.5;
}
.equipment-footer .small-button {
  min-height: 40px;
  white-space: nowrap;
  font-size: 10px;
  background: #202a1e;
}
.shop-intro {
  padding-top: 10px;
}
.forge-mark {
  height: 145px;
  padding: 15px 60px;
  background: radial-gradient(ellipse at 50% 60%, #bd864a25, transparent 68%);
}
.forge-mark > svg {
  height: 100%;
  width: 100%;
  stroke: none;
}
.shop-intro h3 {
  font: 30px var(--serif);
  font-weight: 500;
  color: #e1d0ac;
  margin: 12px 0;
}
.equipment-modal .shop-intro p {
  font-size: 12px;
  line-height: 1.8;
  color: #aab59d;
}
.shop-purse {
  padding: 18px 0;
  margin: 20px 0;
  border-block: 1px solid #b8a6752b;
}
.shop-purse small {
  display: block;
  font-size: 10px;
  color: #a1ac92;
}
.shop-purse strong {
  font: 36px var(--serif);
  color: #e1c385;
  display: block;
  margin-top: 6px;
}
.shop-purse strong span {
  font-size: 17px;
}
.equipment-modal .shop-intro .trade-note {
  font-size: 10px;
  color: #929f83;
}
.shop-intro .small-button {
  min-height: 44px;
  margin-top: 8px;
  font-size: 10px;
  width: 100%;
}
.shop-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #6d6752 #101916;
  padding: 3px;
  margin: -3px;
}
.shop-item {
  border: 1px solid color-mix(in srgb, var(--rarity-color) 35%, #16231a);
  background: #0c1511;
  border-left: 2px solid var(--rarity-color);
  padding: 9px;
}
.shop-item.is-selected {
  border-color: #cfb078;
  background: #293025;
}
.shop-item-select {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
  width: 100%;
}
.shop-item-art {
  display: block;
  width: 49px;
  height: 66px;
  flex-shrink: 0;
}
.shop-item-art > svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.shop-item-copy {
  display: block;
  min-width: 0;
}
.shop-item-copy strong {
  display: block;
  font: 21px/1.1 var(--serif);
  color: #e2d9bf;
  margin: 4px 0;
}
.shop-item-copy > span {
  display: block;
  font-size: 9px;
  line-height: 1.6;
  color: #a6b09a;
}
.shop-item-trade {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
}
.shop-item-trade .small-button {
  min-height: 34px;
  font-size: 10px;
  background: #25301f;
}
.shop-item-trade > small {
  font-size: 9px;
  color: #c0ac8d;
  line-height: 1.4;
}
@media (min-width: 1500px) {
  .modal.equipment-modal {
    width: 1320px;
  }
  .equipment-layout {
    grid-template-columns: 310px minmax(300px, 1fr) 320px;
    gap: 28px;
  }
  .bag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .equipment-layout {
    grid-template-columns: 245px minmax(210px, 1fr) 250px;
    gap: 15px;
    padding: 20px;
  }
  .inventory-bag {
    padding-inline: 12px;
  }
  .bag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gear-slot {
    width: 63px;
  }
  .slot-item-name {
    font-size: 7px;
  }
  .hero-art {
    width: 148px;
    left: calc(50% - 74px);
  }
  .character-stats {
    column-gap: 12px;
  }
}
@media (max-width: 900px) and (min-width: 761px) {
  .equipment-layout {
    grid-template-columns: 225px minmax(180px, 1fr);
  }
  .inspector-panel {
    grid-column: 1 / -1;
    border-top: 1px solid #b8a67529;
    padding-top: 20px;
  }
  .item-inspector {
    display: grid;
    grid-template-columns: 170px 1fr 1fr;
    gap: 12px 20px;
  }
  .inspector-kicker {
    grid-column: 1 / -1;
  }
  .inspector-art {
    grid-row: 2 / 5;
    height: 180px;
  }
  .item-inspector h3 {
    grid-column: 2 / -1;
  }
  .item-lore {
    grid-column: 2 / -1;
  }
  .item-properties {
    grid-column: 2;
  }
  .item-compare {
    grid-column: 3;
    grid-row: 4 / 6;
  }
  .inspector-actions {
    grid-column: 2;
  }
}
@media (max-width: 760px) {
  .modal-layer:has(.equipment-modal) {
    padding: 10px;
  }
  .modal.equipment-modal {
    width: 100%;
    max-height: calc(100dvh - 20px);
  }
  .equipment-header {
    padding: 20px 58px 16px 18px;
    gap: 10px;
    align-items: flex-start;
  }
  .equipment-header .speaker {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .equipment-header h2 {
    font-size: 30px;
  }
  .inventory-wallet strong {
    font-size: 17px;
  }
  .inventory-wallet > span {
    font-size: 8px;
  }
  .equipment-modal .close {
    top: 15px;
    right: 12px;
    width: 34px;
    height: 34px;
  }
  .equipment-nav {
    padding: 0 18px;
    gap: 19px;
  }
  .equipment-nav > button,
  .equipment-nav > .active {
    font-size: 10px;
  }
  .equipment-nav .nav-note {
    display: none;
  }
  .equipment-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 18px;
  }
  .character-sheet .section-heading {
    margin-bottom: 10px;
  }
  .paperdoll {
    height: 235px;
  }
  .hero-art {
    width: 140px;
    height: 214px;
    left: calc(50% - 70px);
    top: 2px;
  }
  .hero-halo {
    top: 6px;
    width: 138px;
    height: 138px;
    left: calc(50% - 69px);
  }
  .gear-slot {
    width: 76px;
  }
  .slot-helmet {
    top: 11px;
  }
  .slot-weapon {
    top: 120px;
  }
  .slot-armor {
    top: 11px;
  }
  .slot-shield {
    top: 120px;
    right: 11px;
  }
  .slot-charm {
    top: auto;
    right: calc(50% - 33px);
    bottom: 7px;
    width: 66px;
    padding-block: 3px;
  }
  .slot-charm .slot-art {
    height: 26px;
  }
  .slot-charm .slot-item-name {
    display: none;
  }
  .hero-name {
    display: none;
  }
  .slot-caption {
    font-size: 10px;
  }
  .slot-item-name {
    font-size: 9px;
  }
  .slot-art {
    height: 48px;
  }
  .character-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    column-gap: 20px;
  }
  .character-stats > div {
    padding-block: 6px;
  }
  .character-stats > div:first-child {
    grid-column: auto;
  }
  .character-stats span {
    font-size: 10px;
  }
  .equipment-modal .sheet-note {
    display: none;
  }
  .inventory-bag {
    padding: 18px 0 0;
    border-inline: 0;
    border-top: 1px solid #b8a67529;
  }
  .bag-filters button {
    min-height: 40px;
    font-size: 11px;
    padding: 8px 10px;
  }
  .bag-search input,
  .bag-sort select {
    height: 44px;
    font-size: 11px;
  }
  .bag-sort select {
    width: 106px;
  }
  .bag-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
  .bag-item {
    min-height: 120px;
  }
  .bag-item-name {
    font-size: 9px;
  }
  .bag-item-art {
    height: 57px;
  }
  .potion-supply small {
    font-size: 10px;
  }
  .inspector-panel {
    border-top: 1px solid #b8a67529;
    padding-top: 18px;
    scroll-margin-block: 15px;
  }
  .inspector-art {
    height: 158px;
  }
  .item-inspector h3 {
    font-size: 32px;
  }
  .rarity-text,
  .worn-badge {
    font-size: 11px;
  }
  .equipment-modal .item-lore {
    font-size: 12px;
  }
  .item-properties > div {
    font-size: 12px;
  }
  .compare-heading,
  .comparison-labels {
    font-size: 10px;
  }
  .compare-heading strong,
  .comparison-row {
    font-size: 12px;
  }
  .comparison-row > strong {
    font-size: 11px;
  }
  .equipment-modal .action-reason,
  .item-price {
    font-size: 11px;
  }
  .equipment-footer {
    padding: 14px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .equipment-footer .small-button {
    width: 100%;
    min-height: 44px;
    font-size: 11px;
  }
  .equipment-footer > span {
    font-size: 10px;
  }
  .shop-intro {
    padding: 0;
  }
  .forge-mark,
  .shop-purse,
  .shop-intro .trade-note {
    display: none;
  }
  .shop-intro h3 {
    margin-top: 8px;
  }
  .shop-intro .small-button {
    width: auto;
    padding-inline: 16px;
    margin-right: 5px;
  }
  .shop-items {
    max-height: none;
    overflow: visible;
  }
  .shop-item-trade .small-button {
    min-height: 44px;
    font-size: 11px;
  }
  .shop-item-trade > small,
  .shop-item-copy > span {
    font-size: 10px;
  }
}
@media (max-width: 380px) {
  .equipment-header h2 {
    font-size: 27px;
  }
  .inventory-wallet strong {
    font-size: 15px;
  }
  .equipment-layout {
    padding-inline: 12px;
  }
  .bag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .gear-slot {
    width: 65px;
  }
  .slot-item-name {
    font-size: 8px;
  }
  .hero-art {
    width: 125px;
    left: calc(50% - 62px);
  }
}
@media (pointer: coarse) {
  .equipment-modal .gear-slot {
    min-height: 44px;
  }
  .equipment-modal .bag-filters button {
    min-height: 44px;
  }
  .equipment-modal .shop-item-trade .small-button {
    min-height: 44px;
  }
}
@media (min-width: 761px) {
  .equipment-modal:has(#equipment-shell) {
    overflow: hidden;
  }
  #equipment-shell {
    display: flex;
    flex-direction: column;
    max-height: 92dvh;
  }
  #equipment-shell > .equipment-header,
  #equipment-shell > .equipment-nav,
  #equipment-shell > .equipment-footer {
    flex-shrink: 0;
  }
  #equipment-shell > .equipment-layout {
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #6d6752 #101916;
  }
}
.travel-tools {
  padding: 8px 28px 28px;
}
.equipment-modal .tools-intro {
  font-size: 12px;
  color: #a9b69f;
  max-width: 720px;
  margin: 16px 0 24px;
}
.travel-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.travel-tool-card {
  padding: 18px;
  border: 1px solid #83977b55;
  background:
    radial-gradient(ellipse at 10% 0%, #85987415, transparent 70%), #0e1913;
}
.travel-tool-card.tool-selected {
  border-color: #c6aa70;
  box-shadow: inset 0 0 0 2px #c6aa7020;
  background-color: #202b1e;
}
.tool-card-top {
  display: flex;
  align-items: center;
  gap: 15px;
}
.travel-tool-art {
  display: block;
  width: 58px;
  height: 72px;
  flex-shrink: 0;
}
.travel-tool-art > svg {
  width: 100%;
  height: 100%;
  stroke: none;
}
.tool-card-top small {
  color: #a8b39b;
  font-size: 8px;
  letter-spacing: 1px;
}
.tool-selected .tool-card-top small {
  color: #dcc28b;
}
.tool-card-top h3 {
  font: 26px/1.1 var(--serif);
  font-weight: 500;
  margin: 6px 0 0;
  color: #e0d7bc;
}
.equipment-modal .travel-tool-card > p {
  font-size: 11px;
  color: #a8b49e;
  line-height: 1.8;
  min-height: 79px;
  margin: 14px 0;
}
.tool-cost {
  display: flex;
  gap: 20px;
  padding: 11px 0;
  border-block: 1px solid #b8a67526;
  font-size: 10px;
  color: #94a487;
}
.tool-cost b {
  font-weight: 500;
  color: #d8c59d;
  margin-left: 5px;
}
.tool-actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}
.tool-actions .small-button {
  min-height: 44px;
  flex: 1;
  padding: 8px;
  font-size: 10px;
}
.tool-location,
.tool-action-reason {
  display: block;
  color: #a6ac93;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 15px;
}
.tool-unowned {
  border-style: dashed;
}
.tool-unowned .travel-tool-art {
  opacity: 0.45;
  filter: grayscale(1);
}
@media (max-width: 1000px) {
  .travel-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .travel-tools {
    padding: 0 18px 18px;
  }
  .travel-tool-grid {
    grid-template-columns: 1fr;
  }
  .equipment-modal .travel-tool-card > p {
    min-height: 0;
    font-size: 12px;
  }
  .tool-card-top small {
    font-size: 9px;
  }
  .tool-actions .small-button {
    font-size: 11px;
  }
}
/* Keep the action readable immediately after replacing an inspector. */
.equipment-modal .primary-button {
  background: linear-gradient(120deg, #d5ba86, #ae8d5a);
  color: #15201f;
  transition: transform 0.15s;
}
.equipment-modal .primary-button:hover {
  background: #ead0a0;
  color: #09100f;
}
@media (prefers-reduced-motion: reduce) {
  .equipment-modal .primary-button {
    transition: none;
  }
}
@media (min-width: 901px) {
  .inspector-actions {
    position: sticky;
    bottom: -22px;
    z-index: 2;
    background: #142018;
    border-top: 1px solid #b8a67540;
    padding: 12px 0 8px;
    box-shadow: 0 -12px 18px #142018;
  }
}
@media (min-width: 901px) {
  .inspector-art {
    height: 110px;
  }
  .comparison-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
    align-items: center;
  }
  .comparison-row > strong {
    grid-column: auto;
    margin-top: 0;
    white-space: nowrap;
  }
  .item-properties > div {
    padding-block: 4px;
  }
}
@media (max-width: 760px) {
  .equipment-modal .close {
    position: fixed;
    top: 20px;
    right: 17px;
    width: 44px;
    height: 44px;
  }
}
