@font-face {
  font-family: "Arcade";
  src: url("../fonts/ARCADECLASSIC.TTF");
}
@font-face {
  font-family: "Arcade2";
  src: url("../fonts/PlaymegamesReguler-2OOee.ttf");
}
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

body {
  box-sizing: border-box;
  font-size: 1vw;
  font-family: "Arcade2", "Roboto", sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
  /*@media all and (max-width : 1024px) {
      font-size : 9px;
  }
  @media all and (min-width : 2400px) {
      font-size : 23px;
  }*/
}

#mute-songs {
  position: absolute;
  z-index: 10;
  top: 1.0416666667vw;
  left: 1.0416666667vw;
  width: 2.6041666667vw;
  height: 2.6041666667vw;
}

#start-page {
  position: absolute;
  width: 100vw;
  height: 51.0416666667vw;
  background: url("../img/map_blurred.webp") no-repeat;
  background-size: 100% 100%;
  z-index: 20;
  color: #362010;
}

.text {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  margin-top: 10%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.text .clofus-logo {
  width: 12.2916666667vw;
  height: 7.96875vw;
  background: url("../img/Clofus2.webp") no-repeat;
  background-size: 100% 100%;
}
.text p {
  margin-top: 1.0416666667vw;
  margin-bottom: 2.6041666667vw;
}

.start__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  position: relative;
  width: 7.8125vw;
  height: 3.6458333333vw;
  font-weight: bold;
  letter-spacing: 0.1041666667vw;
}
.start__btn #start-page-btn {
  color: #362010;
  position: absolute;
  top: -4;
  left: -4;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  display: inline-block;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}
.start__btn #start-page-btn:hover {
  cursor: pointer;
}
.start__btn #start-page-btn .outline {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.start__btn #start-page-btn .outline:hover .top {
  stroke-dashoffset: -205%;
}
.start__btn #start-page-btn .outline:hover .bot {
  stroke-dashoffset: -430%;
}
.start__btn #start-page-btn .outline__rectangle {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  stroke-width: 0.2083333333vw;
  stroke-dasharray: 70% 330%;
  fill: none;
  stroke: #362010;
  transition: stroke-dashoffset 500ms ease-in-out;
}
.start__btn #start-page-btn .outline__rectangle.top {
  stroke-dashoffset: -30%;
}
.start__btn #start-page-btn .outline__rectangle.bot {
  stroke-dashoffset: -205%;
}

#end-page {
  position: absolute;
  width: 100vw;
  height: 51.0416666667vw;
  background: black;
  color: #979699;
  background-size: 100% 100%;
  text-align: center;
  z-index: -2;
}
#end-page .end-page-bloc {
  width: 26.0416666667vw;
  margin-left: auto;
  margin-right: auto;
  margin-top: 10.4166666667vw;
}
#end-page #end-page-btnWin, #end-page #end-page-btnLose {
  margin-top: 2.6041666667vw;
  font-size: 1rem;
  width: 10.4166666667vw;
  height: 3.125vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  background: #26252b;
  box-shadow: 2px 2px 2px rgba(100, 100, 100, 0.2);
  border-radius: 5px;
}
#end-page #end-page-btnWin:hover, #end-page #end-page-btnLose:hover {
  cursor: pointer;
  background: #4a4853;
}
#end-page h2 {
  font-size: 4rem;
}
#end-page p {
  font-size: 1.5rem;
}

#end-page-win, #end-page-lose {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  transform: scaleZ(0);
}
#end-page-win .icon-win, #end-page-win .icon-lose, #end-page-lose .icon-win, #end-page-lose .icon-lose {
  width: 5.2083333333vw;
  height: 5.2083333333vw;
  margin: 1.0416666667vw;
  background-size: 100% 100%;
}

.icon-win {
  background: url("../img/pourpre.webp") no-repeat;
}

.icon-lose {
  background: url("../img/skull.webp") no-repeat;
}

#home-page {
  position: absolute;
  width: 100vw;
  height: 51.0416666667vw;
  background: url("../img/map.webp") no-repeat;
  background-size: 100% 100%;
  z-index: 1;
}

#player {
  position: absolute;
  z-index: 99;
}

#home-grid {
  position: absolute;
  z-index: 10;
  transition: opacity 140ms ease;
}

#game-grid {
  transition: opacity 140ms ease;
}

#portal {
  width: 2vw;
  height: 1.53125vw;
  background: url("../img/portal5.webp") no-repeat;
  background-size: 100% 100%;
  top: 21.875vw;
  left: 38.0208333333vw;
  opacity: 1;
  position: absolute;
  z-index: 20;
}
#portal:hover {
  opacity: 0.7;
  cursor: pointer;
}

.runtime-portal {
  position: absolute;
  z-index: 21;
  background: url("../img/portal5.webp") no-repeat;
  background-size: 100% 100%;
  opacity: 1;
}
.runtime-portal:hover {
  opacity: 0.7;
  cursor: pointer;
}
.runtime-portal.runtime-portal--locked {
  opacity: 0.55;
  filter: grayscale(0.35) saturate(0.65);
}
.runtime-portal.runtime-portal--locked:hover {
  opacity: 0.7;
  cursor: not-allowed;
}

.runtime-map-object {
  position: absolute;
  z-index: 22;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.runtime-map-object--interactive {
  pointer-events: auto;
  cursor: pointer;
}
.runtime-map-object--interactive:hover {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.runtime-map-object--group {
  cursor: crosshair;
}

.runtime-map-object--group:hover {
  filter: drop-shadow(0 0 8px rgba(237, 80, 66, 0.72));
}

.runtime-mob-group-tooltip {
  position: fixed;
  z-index: 260;
  min-width: 220px;
  max-width: min(320px, 88vw);
  pointer-events: none;
  border: 2px solid rgba(71, 45, 28, 0.88);
  border-radius: 9px;
  padding: 8px 10px;
  color: #2b2015;
  background: linear-gradient(180deg, rgba(244, 232, 208, 0.98), rgba(224, 205, 169, 0.97));
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.runtime-mob-group-tooltip__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.runtime-mob-group-tooltip__line {
  font-size: 0.82rem;
  line-height: 1.35;
}

.runtime-mob-group-tooltip__hint {
  margin-top: 4px;
  color: #7a2b2b;
  font-weight: 700;
}

.editor-map-object {
  z-index: 96;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.runtime-rpg-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 18, 0.72);
}

.runtime-rpg-modal.is-visible {
  display: flex;
}

.runtime-rpg-modal__card {
  width: min(680px, 92vw);
  min-height: 220px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 18px;
  border: 3px solid #3e2e1a;
  border-radius: 12px;
  background: linear-gradient(180deg, #f1e6c8, #dac69d);
  color: #2f2215;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.runtime-rpg-modal__image {
  width: 100%;
  min-height: 170px;
  border-radius: 8px;
  border: 2px solid #6d5632;
  background: rgba(255, 255, 255, 0.5) center/contain no-repeat;
}

.runtime-rpg-modal__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.runtime-rpg-modal__title {
  margin: 0;
  font-size: 1.35rem;
}

.runtime-rpg-modal__description {
  margin: 0;
  line-height: 1.4;
}

.runtime-rpg-modal__actions {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 8px;
}

.runtime-rpg-modal__action-btn {
  border: 1px solid rgba(91, 58, 30, 0.7);
  border-radius: 8px;
  padding: 7px 8px;
  color: #2f2215;
  background: rgba(248, 236, 210, 0.88);
  font-weight: 700;
  cursor: pointer;
}
.runtime-rpg-modal__action-btn:hover {
  background: rgba(255, 247, 229, 0.96);
}

.runtime-rpg-modal__button {
  align-self: flex-end;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  color: #f6efe3;
  background: #5b3a1e;
  cursor: pointer;
}
.runtime-rpg-modal__button:hover {
  background: #744d2a;
}

body.is-fight-results-freeze #home-page,
body.is-fight-results-freeze #game-page,
body.is-fight-results-freeze .rpg-hud {
  pointer-events: none !important;
}

.fight-results-overlay {
  position: fixed;
  inset: 0;
  z-index: 325;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 18, 0.72);
}

.fight-results-overlay.is-visible {
  display: flex;
}

.fight-results-card {
  width: min(760px, 94vw);
  max-height: min(86vh, 780px);
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 3px solid #3e2e1a;
  border-radius: 12px;
  background: linear-gradient(180deg, #f1e6c8, #dac69d);
  color: #2f2215;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.fight-results-card__title {
  margin: 0;
  font-size: 1.35rem;
}

.fight-results-card__subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 0.95rem;
}

.fight-results-card__hint {
  color: #684d2a;
  font-weight: 700;
}

.fight-results-card__xp-header {
  font-weight: 700;
  font-size: 0.92rem;
}

.fight-results-card__xpbar {
  height: 18px;
  border: 1px solid #6d5632;
  border-radius: 999px;
  background: rgba(33, 28, 22, 0.78);
  overflow: hidden;
}

.fight-results-card__xpfill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4c8f36, #7cbf51, #9ed16e);
}

.fight-results-card__xp-text {
  font-size: 0.9rem;
}

.fight-results-card__loot-title {
  margin-top: 4px;
  font-weight: 700;
}

.fight-results-card__loot-list {
  display: grid;
  gap: 8px;
}

.fight-results-card__loot-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(62, 46, 26, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

.fight-results-card__loot-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(62, 46, 26, 0.46);
  background: rgba(255, 255, 255, 0.58) center/contain no-repeat;
}

.fight-results-card__loot-name {
  font-size: 0.92rem;
}

.fight-results-card__loot-qty {
  font-weight: 700;
}

.fight-results-card__loot-overflow {
  grid-column: 2 / 4;
  color: #7a2b2b;
  font-size: 0.82rem;
}

.fight-results-card__loot-empty {
  font-size: 0.9rem;
  color: #5f4d36;
}

.fight-results-card__close {
  justify-self: end;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  color: #f6efe3;
  background: #5b3a1e;
  cursor: pointer;
}

.fight-results-card__close:hover {
  background: #744d2a;
}

.tactical-fight-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0.8rem;
  pointer-events: none;
}

.tactical-fight-overlay.is-visible {
  display: flex;
}

.tactical-fight-card {
  width: min(420px, 92vw);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 3px solid #2d2318;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #f0e1c4, #d8c097);
  color: #2b2015;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  transform: translate(0, 0);
  transition: transform 140ms ease;
}

.tactical-fight-card.is-dragging {
  transition: none;
}

.tactical-fight-card.is-minimized .tactical-fight-meta,
.tactical-fight-card.is-minimized .tactical-fight-timeline,
.tactical-fight-card.is-minimized .tactical-fight-controls,
.tactical-fight-card.is-minimized .tactical-fight-grid,
.tactical-fight-card.is-minimized .tactical-fight-log {
  display: none;
}

.tactical-fight-card.is-minimized {
  width: min(260px, 72vw);
  max-height: none;
  overflow: visible;
}

.tactical-fight-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.tactical-fight-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.tactical-fight-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.tactical-fight-card.is-dragging .tactical-fight-title {
  cursor: grabbing;
}

.tactical-fight-meta {
  margin-bottom: 0.5rem;
}

.tactical-fight-meta-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tactical-fight-meta-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(83, 59, 34, 0.54);
  background: linear-gradient(180deg, rgba(252, 244, 230, 0.92), rgba(239, 224, 201, 0.88));
  color: #4f321d;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.22rem 0.52rem 0.22rem 0.36rem;
  box-shadow: 0 2px 7px rgba(26, 16, 8, 0.22);
}

.tactical-fight-meta-chip__icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(56, 37, 21, 0.42);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: rgba(252, 240, 220, 0.88);
  flex-shrink: 0;
}

.tactical-fight-meta-chip__label {
  opacity: 0.88;
}

.tactical-fight-meta-chip__value {
  font-weight: 800;
  color: #3f2817;
}

.tactical-fight-meta-chip--phase {
  background: linear-gradient(180deg, rgba(211, 239, 255, 0.96), rgba(177, 220, 246, 0.9));
  border-color: rgba(52, 123, 167, 0.56);
  color: #1f4f72;
}

.tactical-fight-meta-chip--player {
  background: linear-gradient(180deg, rgba(224, 244, 212, 0.95), rgba(195, 229, 174, 0.9));
  border-color: rgba(89, 145, 62, 0.56);
  color: #285624;
}

.tactical-fight-meta-chip--enemy {
  background: linear-gradient(180deg, rgba(255, 221, 221, 0.96), rgba(244, 190, 190, 0.9));
  border-color: rgba(169, 66, 66, 0.58);
  color: #712f2f;
}

.tactical-fight-meta-chip--pm {
  background: linear-gradient(180deg, rgba(208, 240, 255, 0.95), rgba(175, 223, 248, 0.88));
  border-color: rgba(63, 142, 184, 0.56);
  color: #1e506a;
}

.tactical-fight-meta-chip--pa {
  background: linear-gradient(180deg, rgba(255, 240, 188, 0.95), rgba(248, 220, 145, 0.9));
  border-color: rgba(178, 126, 47, 0.58);
  color: #734919;
}

.tactical-fight-meta-chip--mode {
  background: linear-gradient(180deg, rgba(234, 223, 255, 0.95), rgba(211, 195, 246, 0.9));
  border-color: rgba(106, 83, 173, 0.58);
  color: #403067;
}

.tactical-fight-controls {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.tactical-fight-timeline {
  margin-bottom: 0.55rem;
  border: 1px solid rgba(59, 43, 28, 0.4);
  border-radius: 8px;
  background: rgba(250, 241, 226, 0.74);
  padding: 0.38rem 0.45rem;
}

.tactical-fight-timeline__phase {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.24rem;
  opacity: 0.9;
}

.tactical-fight-timeline__chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tactical-fight-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(77, 53, 30, 0.42);
  padding: 0.14rem 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(243, 231, 212, 0.8);
  color: #4b3421;
}

.tactical-fight-chip.is-active {
  background: rgba(56, 128, 212, 0.88);
  color: #f4f9ff;
  border-color: rgba(33, 87, 150, 0.95);
}

.tactical-fight-chip__portrait {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(40, 29, 18, 0.45);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: rgba(229, 214, 191, 0.85);
}

.tactical-fight-chip__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(72, 49, 28, 0.16);
  font-size: 0.68rem;
  line-height: 1;
  padding: 0 4px;
}

.tactical-fight-btn {
  position: relative;
  border: 1px solid rgba(77, 53, 30, 0.58);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  color: #f7efe4;
  background: linear-gradient(180deg, #704a29, #5d3d21);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  cursor: pointer;
  box-shadow: 0 5px 10px rgba(16, 10, 5, 0.34);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, border-color 140ms ease;
}

.tactical-fight-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(238, 197, 141, 0.8);
  box-shadow: 0 8px 14px rgba(16, 10, 5, 0.42), 0 0 0 1px rgba(255, 220, 170, 0.26) inset;
  filter: brightness(1.06);
}

.tactical-fight-btn::before {
  content: "";
  width: 28px;
  height: 28px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  display: none;
}

.tactical-fight-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 5px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 216, 159, 0.6);
  border-radius: 7px;
  background: rgba(26, 20, 14, 0.95);
  color: #ffefd3;
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 7px;
  z-index: 3;
  transition: opacity 140ms ease, transform 140ms ease;
}

.tactical-fight-btn[data-tooltip]:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tactical-fight-btn.tactical-fight-btn--melee::before,
.tactical-fight-btn.tactical-fight-btn--frappe_ancestrale::before {
  display: block;
  background-image: url("../img/cac.webp");
}

.tactical-fight-btn.tactical-fight-btn--frappe_ancestrale::before {
  display: block;
  background-image: url("../img/frappe_ancestrale.webp");
}

.tactical-fight-btn.tactical-fight-btn--ranged::before,
.tactical-fight-btn.tactical-fight-btn--onde_de_compression::before {
  display: block;
  background-image: url("../img/dist.webp");
}

.tactical-fight-btn.tactical-fight-btn--onde_de_compression::before {
  display: block;
  background-image: url("../img/onde_de_compression.webp");
}

.tactical-fight-btn.tactical-fight-btn--posture_de_concentration::before {
  display: block;
  background-image: url("../img/posture_de_concentration.webp");
}

.tactical-fight-btn.tactical-fight-btn--theme-force {
  border-color: rgba(125, 91, 54, 0.7);
  background: linear-gradient(180deg, rgba(123, 88, 50, 0.94), rgba(89, 63, 36, 0.96));
}

.tactical-fight-btn.tactical-fight-btn--theme-intelligence {
  border-color: rgba(165, 74, 74, 0.74);
  background: linear-gradient(180deg, rgba(148, 56, 56, 0.94), rgba(108, 38, 38, 0.96));
}

.tactical-fight-btn.tactical-fight-btn--theme-agility {
  border-color: rgba(70, 132, 84, 0.75);
  background: linear-gradient(180deg, rgba(58, 120, 71, 0.94), rgba(37, 83, 50, 0.96));
}

.tactical-fight-btn.tactical-fight-btn--theme-chance {
  border-color: rgba(75, 108, 158, 0.75);
  background: linear-gradient(180deg, rgba(62, 94, 144, 0.94), rgba(40, 64, 105, 0.96));
}

.tactical-fight-btn.tactical-fight-btn--theme-neutral {
  border-color: rgba(116, 116, 116, 0.72);
  background: linear-gradient(180deg, rgba(93, 93, 93, 0.94), rgba(70, 70, 70, 0.96));
}

.tactical-fight-btn.is-active {
  border-color: rgba(126, 235, 155, 0.68);
  background: linear-gradient(180deg, #2f9d55, #267b44);
  box-shadow: 0 0 0 1px rgba(170, 255, 193, 0.22) inset, 0 8px 14px rgba(17, 46, 23, 0.42);
}

.tactical-fight-btn.tactical-fight-btn--danger {
  border-color: rgba(170, 69, 69, 0.68);
  background: linear-gradient(180deg, #ad3838, #912a2a);
}

.tactical-fight-btn.tactical-fight-btn--danger:hover {
  border-color: rgba(228, 133, 133, 0.82);
  background: linear-gradient(180deg, #bf4747, #a33535);
}

.tactical-fight-btn.tactical-fight-btn--icon {
  min-width: 30px;
  min-height: 30px;
  padding: 0.25rem 0.42rem;
  font-size: 0.9rem;
  line-height: 1;
}

.tactical-fight-btn.tactical-fight-btn--action {
  border-color: rgba(255, 214, 137, 0.68);
  background: linear-gradient(180deg, rgba(64, 46, 24, 0.92), rgba(37, 28, 17, 0.95));
}

.tactical-fight-btn.tactical-fight-btn--action::before {
  display: block;
  background-image: url("../img/pret.webp");
}

.tactical-fight-btn.tactical-fight-btn--action.is-pass::before {
  background-image: url("../img/pass.webp");
}

.tactical-fight-btn.tactical-fight-btn--action:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: 0 4px 8px rgba(16, 10, 5, 0.26);
}

.tactical-fight-btn.tactical-fight-btn--ready {
  background: #2f8850;
}

.tactical-fight-btn.tactical-fight-btn--ready:hover {
  background: #3ba764;
}

.tactical-fight-grid {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

.tactical-fight-hint {
  border-radius: 7px;
  border: 1px solid rgba(60, 43, 27, 0.35);
  padding: 0.42rem 0.55rem;
  background: rgba(252, 243, 227, 0.72);
  font-size: 0.83rem;
}

.tactical-fight-cell {
  min-height: 2.2rem;
  border: 1px solid rgba(32, 48, 36, 0.45);
  border-radius: 4px;
  background: rgba(215, 240, 215, 0.86);
  color: #173123;
  font-size: 0.72rem;
  cursor: pointer;
}

.tactical-fight-cell:hover {
  background: rgba(188, 230, 194, 0.92);
}

.tactical-fight-cell.is-blocked {
  background: rgba(128, 132, 139, 0.82);
  color: rgba(245, 246, 250, 0.9);
}

.tactical-fight-cell.is-player {
  background: rgba(65, 145, 236, 0.9);
  color: #f4f8ff;
  font-weight: 700;
}

.tactical-fight-cell.is-mob {
  background: rgba(196, 68, 53, 0.9);
  color: #fff4f2;
  font-weight: 700;
}

.tactical-fight-cell:disabled {
  opacity: 0.75;
  cursor: default;
}

.tactical-fight-log {
  border: 1px solid rgba(54, 39, 25, 0.45);
  border-radius: 8px;
  background: rgba(255, 248, 238, 0.74);
  min-height: 70px;
  max-height: 170px;
  overflow: auto;
  padding: 0.45rem 0.5rem;
  line-height: 1.35;
  font-size: 0.86rem;
}

.tactical-fight-log__error {
  color: #8d1e1e;
  font-weight: 700;
}

.tactical-fight-mob {
  position: absolute;
  z-index: 120;
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.42));
}

.tactical-fight-mob::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 58%;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(23, 16, 13, 0.52), rgba(23, 16, 13, 0));
  pointer-events: none;
}

.tactical-fight-mob__overlay {
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  min-width: 96px;
  max-width: 126px;
  display: grid;
  gap: 2px;
  pointer-events: none;
}

.tactical-fight-mob__name {
  justify-self: center;
  border: 1px solid rgba(46, 33, 23, 0.72);
  border-radius: 999px;
  background: rgba(24, 17, 13, 0.86);
  color: #ffe9c9;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 2px 7px;
  text-transform: capitalize;
  max-width: 124px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tactical-fight-mob__hp {
  position: relative;
  height: 12px;
  border: 1px solid rgba(55, 37, 26, 0.84);
  border-radius: 999px;
  background: rgba(14, 11, 9, 0.82);
  overflow: hidden;
}

.tactical-fight-mob__hpfill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: linear-gradient(90deg, #9b2e2e, #cb4a3d, #de8a5f);
  transition: width 180ms ease-out;
}

.tactical-fight-mob__hptext {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffeede;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.65);
}

.tactical-fight-mob__states {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  max-width: 128px;
}

.tactical-fight-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(40, 30, 20, 0.75);
  background: rgba(35, 25, 16, 0.86);
  color: #ffe8c4;
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  padding: 1px 5px;
}

.tactical-fight-state-badge.is-buff {
  border-color: rgba(110, 214, 145, 0.78);
  color: #baf6ce;
}

.tactical-fight-state-badge.is-debuff {
  border-color: rgba(224, 117, 117, 0.78);
  color: #ffc8c8;
}

.tactical-fight-mob.is-low-hp .tactical-fight-mob__hpfill {
  background: linear-gradient(90deg, #7f1616, #bb2222, #de3d3d);
}

.tactical-fight-float {
  position: absolute;
  z-index: 132;
  pointer-events: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, 0);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.58);
  animation: tactical-fight-float-up 880ms ease-out forwards;
}

.tactical-fight-float--mob {
  color: #ffd26d;
}

.tactical-fight-float--player {
  color: #ff8d84;
}

.tactical-fight-float--spell {
  color: #9dd8ff;
}

.tactical-fight-float--crit {
  color: #ffd86f;
  font-size: 20px;
}

.tactical-fight-float--buff {
  color: #9af2b5;
}

.tactical-fight-float--debuff {
  color: #ffb0a9;
}

@keyframes tactical-fight-float-up {
  0% {
    opacity: 0;
    transform: translate(-50%, 8px) scale(0.78);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 0px)), -42px) scale(1.05);
  }
}

.tactical-fight-cell-fx {
  position: absolute;
  z-index: 127;
  width: 54px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(-24deg);
  border-radius: 10px;
  border: 1px solid rgba(255, 232, 183, 0.64);
  background: radial-gradient(circle at center, rgba(255, 229, 170, 0.42), rgba(255, 229, 170, 0));
  box-shadow: 0 0 16px rgba(255, 217, 151, 0.5);
  pointer-events: none;
  animation: tactical-cell-fx-pop 560ms ease-out forwards;
}

.tactical-fight-cell-fx--cast {
  border-color: rgba(154, 210, 255, 0.75);
  background: radial-gradient(circle at center, rgba(160, 221, 255, 0.48), rgba(160, 221, 255, 0));
  box-shadow: 0 0 18px rgba(128, 197, 255, 0.56);
}

.tactical-fight-cell-fx--impact {
  border-color: rgba(255, 212, 132, 0.82);
  background: radial-gradient(circle at center, rgba(255, 203, 112, 0.56), rgba(255, 203, 112, 0));
  box-shadow: 0 0 22px rgba(255, 190, 90, 0.62);
}

.tactical-fight-cell-fx--wave {
  border-color: rgba(150, 230, 246, 0.8);
  background: radial-gradient(circle at center, rgba(126, 218, 241, 0.52), rgba(126, 218, 241, 0));
  box-shadow: 0 0 18px rgba(99, 206, 237, 0.58);
}

.tactical-fight-cell-fx--wave-impact {
  border-color: rgba(255, 199, 126, 0.82);
  background: radial-gradient(circle at center, rgba(255, 178, 95, 0.58), rgba(255, 178, 95, 0));
  box-shadow: 0 0 20px rgba(255, 165, 78, 0.58);
}

.tactical-fight-cell-fx--buff {
  border-color: rgba(149, 240, 184, 0.82);
  background: radial-gradient(circle at center, rgba(145, 240, 178, 0.54), rgba(145, 240, 178, 0));
  box-shadow: 0 0 20px rgba(115, 224, 156, 0.58);
}

@keyframes tactical-cell-fx-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.72) rotate(-24deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06) rotate(-24deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -58%) scale(1.18) rotate(-24deg);
  }
}

.tactical-fight-player {
  position: absolute;
  z-index: 121;
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  image-rendering: auto;
}

.tactical-fight-mob.is-debuffed {
  filter: drop-shadow(0 0 8px rgba(232, 107, 107, 0.74));
}

.tactical-fight-mob.is-buffed {
  filter: drop-shadow(0 0 8px rgba(124, 219, 148, 0.74));
}

.tactical-fight-player.is-active-turn,
.tactical-fight-mob.is-active-turn {
  filter: drop-shadow(0 0 7px rgba(94, 164, 250, 0.9));
  animation: tactical-fighter-pulse 0.9s ease-in-out infinite alternate;
}

#player.is-spell-precast,
.tactical-fight-mob.is-spell-precast {
  filter: drop-shadow(0 0 10px rgba(170, 221, 255, 0.9));
}

#player.is-spell-cast,
.tactical-fight-mob.is-spell-cast {
  filter: drop-shadow(0 0 12px rgba(140, 234, 255, 0.96));
}

#player.is-spell-impact,
.tactical-fight-mob.is-spell-impact {
  filter: drop-shadow(0 0 14px rgba(255, 216, 132, 0.95));
}

#player.is-concentration-active {
  filter: drop-shadow(0 0 8px rgba(132, 247, 181, 0.86));
  animation: tactical-concentration-pulse 1.1s ease-in-out infinite;
}

@keyframes tactical-fighter-pulse {
  from {
    transform: translateY(0px) scale(1);
  }
  to {
    transform: translateY(-1px) scale(1.02);
  }
}

@keyframes tactical-concentration-pulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 7px rgba(132, 247, 181, 0.78));
  }
  50% {
    transform: scale(1.015);
    filter: drop-shadow(0 0 11px rgba(132, 247, 181, 0.95));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 7px rgba(132, 247, 181, 0.78));
  }
}

body.is-tactical-fight .runtime-map-object,
body.is-tactical-fight .runtime-portal,
body.is-tactical-fight #portal,
body.is-tactical-fight #pnj-interrogation {
  pointer-events: none !important;
}

body.is-tactical-fight .runtime-map-object,
body.is-tactical-fight .runtime-portal,
body.is-tactical-fight #portal,
body.is-tactical-fight #pnj-interrogation {
  display: none !important;
}

body.is-tactical-fight #player {
  display: block !important;
  pointer-events: none !important;
  z-index: 121 !important;
}

#player.tactical-fight-player-active {
  filter: drop-shadow(0 0 7px rgba(94, 164, 250, 0.9));
  animation: tactical-fighter-pulse 0.9s ease-in-out infinite alternate;
}

#player.is-guri-hidden {
  opacity: 0 !important;
}

.runtime-guri-form {
  position: absolute;
  z-index: 123;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  filter: drop-shadow(0 0 10px rgba(147, 255, 203, 0.88));
  opacity: 0;
  transition: opacity 130ms ease;
}

.runtime-guri-form.is-visible {
  opacity: 1;
  animation: runtime-guri-form-pulse 1.1s ease-in-out infinite alternate;
}

.runtime-guri-puff {
  position: absolute;
  z-index: 124;
  pointer-events: none;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(238, 255, 250, 0.88), rgba(203, 255, 239, 0.55) 42%, rgba(203, 255, 239, 0) 72%);
  box-shadow: 0 0 18px rgba(179, 245, 218, 0.68);
  animation: runtime-guri-puff 560ms ease-out forwards;
}

@keyframes runtime-guri-form-pulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 0 9px rgba(147, 255, 203, 0.82));
  }
  to {
    transform: scale(1.02);
    filter: drop-shadow(0 0 14px rgba(147, 255, 203, 0.97));
  }
}

@keyframes runtime-guri-puff {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.45);
  }
  25% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.34);
  }
}

#home-page.is-fight-transition::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 130;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 58%);
  animation: tactical-fight-transition 420ms ease-out forwards;
}

@keyframes tactical-fight-transition {
  from {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

#home-page.is-fight-impact-shake {
  animation: tactical-impact-shake 240ms ease-in-out;
}

@keyframes tactical-impact-shake {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(1px, -1px);
  }
  40% {
    transform: translate(-1px, 1px);
  }
  60% {
    transform: translate(1px, 0);
  }
  80% {
    transform: translate(-1px, 0);
  }
  100% {
    transform: translate(0, 0);
  }
}

.rpg-hud {
  --hud-bg: rgba(58, 48, 36, 0.84);
  --hud-panel: rgba(74, 62, 45, 0.62);
  --hud-border: rgba(255, 224, 170, 0.34);
  --hud-text: rgba(255, 255, 255, 0.92);
  --hud-muted: rgba(255, 245, 228, 0.82);
  --hud-accent: rgba(255, 196, 120, 0.85);
  --hud-danger: rgba(220, 60, 60, 0.95);
  --hud-ok: rgba(80, 200, 120, 0.9);
  --hud-disabled: rgba(255, 255, 255, 0.25);
  position: fixed;
  left: 0;
  right: 0;
  top: min(calc(51.0416666667vw + 8px), calc(100vh - 300px));
  bottom: auto;
  z-index: 310;
  display: none;
  padding: 8px 12px 10px;
  pointer-events: none;
  color: var(--hud-text);
  font-size: 14px;
  line-height: 1.3;
  transition: transform 180ms ease;
}

.rpg-hud.is-visible {
  display: block;
}

.rpg-hud__toggle {
  pointer-events: auto;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: rgba(74, 60, 43, 0.9);
  color: var(--hud-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 11px;
  margin: 0 auto 8px;
  display: block;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, margin 180ms ease, filter 120ms ease;
}

.rpg-hud__toggle:hover {
  filter: brightness(1.08);
}

.rpg-hud__content {
  width: 100%;
  margin: 0 auto;
  pointer-events: none;
}

.rpg-hud__bar {
  height: 224px;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(78, 65, 47, 0.88), rgba(52, 42, 31, 0.84));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
  padding: 8px;
  display: grid;
  grid-template-columns: 38fr 22fr 22fr 18fr;
  gap: 8px;
  pointer-events: auto;
}

.rpg-hud__panel {
  min-height: 0;
  background: linear-gradient(180deg, rgba(88, 72, 52, 0.7), rgba(64, 52, 39, 0.64));
  border-radius: 8px;
  padding: 6px;
  position: relative;
}

.rpg-hud__panel + .rpg-hud__panel::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--hud-border);
}

.rpg-hud__hud-tip {
  position: relative;
  overflow: visible;
}

.rpg-hud__hud-tip[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 5px);
  opacity: 0;
  pointer-events: none;
  max-width: min(280px, 78vw);
  white-space: nowrap;
  border: 1px solid rgba(255, 216, 159, 0.64);
  border-radius: 7px;
  background: rgba(26, 20, 14, 0.96);
  color: #ffefd3;
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 7px;
  z-index: 48;
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.3);
  transition: opacity 140ms ease, transform 140ms ease;
}

.rpg-hud__hud-tip[data-tooltip]:hover::after,
.rpg-hud__hud-tip[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.hud-tooltips-disabled .rpg-hud__hud-tip[data-tooltip]::after,
body.hud-tooltips-disabled .rpg-hud__slot[data-tooltip]::after {
  display: none !important;
}

body.hud-reduced-motion .rpg-hud *,
body.hud-reduced-motion .rpg-hud *::before,
body.hud-reduced-motion .rpg-hud *::after {
  animation: none !important;
  transition: none !important;
}

body.hud-font-standard .rpg-hud,
body.hud-font-standard .rpg-hud-window,
body.hud-font-standard .runtime-rpg-modal,
body.hud-font-standard .fight-results-overlay,
body.hud-font-standard .tactical-fight-overlay,
body.hud-font-standard #pnj-text {
  font-family: "Roboto", "Arial", sans-serif;
}

.rpg-hud__chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 6px;
  padding: 8px;
}

.rpg-hud__chat-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  min-height: 32px;
  flex: 0 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
}

.rpg-hud__chat-tab {
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: rgba(70, 58, 42, 0.9);
  color: var(--hud-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 7px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}

.rpg-hud__chat-tab.is-active {
  background: rgba(94, 77, 55, 0.95);
  color: var(--hud-text);
  border-color: rgba(255, 196, 120, 0.45);
}

.rpg-hud__chat-tab.is-unread::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #ff7a63;
}

.rpg-hud__chat-log {
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: rgba(36, 30, 23, 0.56);
  padding: 6px;
  overflow: auto;
  font-size: 14px;
  line-height: 1.3;
  min-height: 0;
  flex: 1 1 auto;
}

.rpg-hud__chat-line {
  color: var(--hud-text);
}

.rpg-hud__chat-line + .rpg-hud__chat-line {
  margin-top: 3px;
}

.rpg-hud__chat-time {
  color: var(--hud-muted);
}

.rpg-hud__chat-channel {
  color: rgba(255, 236, 187, 0.9);
  font-size: 11px;
}

.rpg-hud__chat-message {
  white-space: pre-wrap;
}

.rpg-hud__chat-new {
  justify-self: start;
  border: 1px solid rgba(255, 196, 120, 0.35);
  border-radius: 8px;
  background: rgba(43, 32, 23, 0.95);
  color: #ffe7bc;
  font-size: 11px;
  padding: 3px 7px;
  cursor: pointer;
  flex: 0 0 auto;
}

.rpg-hud__chat-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  min-height: 40px;
  align-items: center;
  flex: 0 0 auto;
}

.rpg-hud__chat-controls {
  display: flex;
  gap: 6px;
}

.rpg-hud__chat-util {
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: rgba(66, 54, 40, 0.9);
  color: var(--hud-muted);
  min-width: 48px;
  height: 26px;
  font-size: 11px;
  font-weight: 700;
  padding: 0 8px;
  cursor: pointer;
}

.rpg-hud__chat-util.is-active {
  color: var(--hud-text);
  border-color: rgba(255, 196, 120, 0.55);
}

.rpg-hud__chat-input {
  width: 100%;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: rgba(39, 33, 25, 0.82);
  color: var(--hud-text);
  font-size: 13px;
  padding: 8px 10px;
}

.rpg-hud__hotbar {
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: center;
  gap: 6px;
  height: 100%;
  padding: 6px;
}

.rpg-hud__hotbar-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(74, 61, 44, 0.9), rgba(56, 46, 34, 0.84));
  color: var(--hud-text);
  font-size: 11px;
  line-height: 1.2;
  padding: 4px 8px;
  min-height: 28px;
}

.rpg-hud__hotbar-mode {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #ffe2b8;
}

.rpg-hud__hotbar-detail {
  font-size: 11px;
  color: var(--hud-muted);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpg-hud__hotbar-info[data-kind="turn"] .rpg-hud__hotbar-mode {
  color: #9ed7ff;
}

.rpg-hud__hotbar-info[data-kind="placement"] .rpg-hud__hotbar-mode {
  color: #9ee9be;
}

.rpg-hud__hotbar-info[data-kind="waiting"] .rpg-hud__hotbar-mode {
  color: #f5d689;
}

.rpg-hud__hotbar-track {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(58px, auto);
  gap: 5px;
}

.rpg-hud__slot {
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  min-height: 58px;
  background: linear-gradient(180deg, rgba(78, 64, 47, 0.92), rgba(54, 44, 32, 0.9));
  color: var(--hud-text);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  padding: 3px 4px 3px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  position: relative;
  overflow: visible;
  transition: transform 120ms ease, filter 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.rpg-hud__slot::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.25;
  pointer-events: none;
}

.rpg-hud__slot::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 5px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 214, 147, 0.62);
  border-radius: 7px;
  background: rgba(20, 16, 13, 0.96);
  color: #ffe9c6;
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 6px;
  z-index: 4;
  transition: opacity 140ms ease, transform 140ms ease;
}

.rpg-hud__slot[data-tooltip]:hover:enabled::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.rpg-hud__slot--theme-force {
  border-color: rgba(150, 113, 73, 0.58);
  background: linear-gradient(180deg, rgba(116, 86, 54, 0.92), rgba(82, 61, 38, 0.9));
}

.rpg-hud__slot--theme-intelligence {
  border-color: rgba(170, 84, 84, 0.6);
  background: linear-gradient(180deg, rgba(123, 58, 58, 0.9), rgba(88, 40, 40, 0.9));
}

.rpg-hud__slot--theme-agility {
  border-color: rgba(88, 154, 107, 0.62);
  background: linear-gradient(180deg, rgba(62, 112, 77, 0.9), rgba(42, 79, 55, 0.9));
}

.rpg-hud__slot--theme-chance {
  border-color: rgba(88, 119, 174, 0.62);
  background: linear-gradient(180deg, rgba(62, 86, 131, 0.9), rgba(42, 60, 95, 0.9));
}

.rpg-hud__slot--theme-neutral {
  border-color: rgba(132, 132, 132, 0.56);
  background: linear-gradient(180deg, rgba(95, 95, 95, 0.88), rgba(70, 70, 70, 0.9));
}

.rpg-hud__slot-icon {
  font-size: 14px;
  color: rgba(255, 220, 166, 0.94);
  letter-spacing: 0.4px;
  position: relative;
  z-index: 1;
}

.rpg-hud__slot-label {
  display: none;
}

.rpg-hud__slot-key {
  align-self: end;
  justify-self: end;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 1;
}

.rpg-hud__slot:hover:enabled {
  border-color: rgba(255, 196, 120, 0.74);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(255, 216, 166, 0.2) inset;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rpg-hud__slot.is-active {
  border-color: rgba(80, 200, 120, 0.86);
  box-shadow: 0 0 0 1px rgba(80, 200, 120, 0.35) inset, 0 8px 14px rgba(17, 46, 23, 0.36);
}

.rpg-hud__slot:disabled {
  opacity: 0.62;
  cursor: default;
}

.rpg-hud__slot.is-muted {
  color: var(--hud-disabled);
}

.rpg-hud__slot-cooldown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 8, 0.48);
  color: #ffd7a8;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
}

.rpg-hud__slot:not(.is-cooldown) .rpg-hud__slot-cooldown {
  display: none;
}

.rpg-hud__slot--melee .rpg-hud__slot-icon,
.rpg-hud__slot--ranged .rpg-hud__slot-icon,
.rpg-hud__slot--frappe_ancestrale .rpg-hud__slot-icon,
.rpg-hud__slot--onde_de_compression .rpg-hud__slot-icon,
.rpg-hud__slot--posture_de_concentration .rpg-hud__slot-icon {
  width: 40px;
  height: 40px;
  font-size: 0;
  color: transparent;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.rpg-hud__slot--melee .rpg-hud__slot-icon,
.rpg-hud__slot--frappe_ancestrale .rpg-hud__slot-icon {
  background-image: url("../img/cac.webp");
}

.rpg-hud__slot--frappe_ancestrale .rpg-hud__slot-icon {
  background-image: url("../img/frappe_ancestrale.webp");
}

.rpg-hud__slot--ranged .rpg-hud__slot-icon,
.rpg-hud__slot--onde_de_compression .rpg-hud__slot-icon {
  background-image: url("../img/dist.webp");
}

.rpg-hud__slot--onde_de_compression .rpg-hud__slot-icon {
  background-image: url("../img/onde_de_compression.webp");
}

.rpg-hud__slot--posture_de_concentration .rpg-hud__slot-icon {
  background-image: url("../img/posture_de_concentration.webp");
}

.rpg-hud__player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 6px;
}

.rpg-hud__portrait-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.rpg-hud__portrait {
  width: 56px;
  height: 56px;
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: rgba(48, 40, 31, 0.84) url("../img/pfp.webp") no-repeat center center;
  background-size: 110% auto;
  background-position: center center;
}

.rpg-hud__level-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  border: 1px solid rgba(255, 196, 120, 0.42);
  border-radius: 999px;
  background: rgba(29, 22, 16, 0.95);
  color: #ffe9c4;
  font-size: 9px;
  line-height: 1;
  padding: 3px 5px;
}

.rpg-hud__stats {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rpg-hud__hp-line {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4px;
}

.rpg-hud__hpbar {
  position: relative;
  height: 18px;
  border: 1px solid var(--hud-border);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(33, 28, 22, 0.88);
}

.rpg-hud__hpbar-chip {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: rgba(238, 194, 112, 0.54);
  transition: width 220ms ease-out;
}

.rpg-hud__hpbar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, #8f2f2f, #c24747, #d96f56);
  transition: width 180ms ease-out;
}

.rpg-hud__hpbar-text {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  color: #ffefde;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.rpg-hud__resource-line {
  display: flex;
  gap: 8px;
}

.rpg-hud__player-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.rpg-hud__player-action-btn {
  border: 1px solid rgba(255, 214, 137, 0.34);
  border-radius: 8px;
  background: rgba(56, 47, 36, 0.86);
  color: #ffe8c3;
  min-height: 30px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
}

.rpg-hud__player-action-btn:hover {
  border-color: rgba(255, 214, 137, 0.58);
  filter: brightness(1.08);
}

.rpg-hud__player-action-btn.is-active {
  border-color: rgba(121, 206, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(80, 172, 255, 0.5);
}

.rpg-hud__player-action-icon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.rpg-hud__player-action-key {
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
  line-height: 1;
}

.rpg-hud__res {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #f6e9cf;
  background: rgba(36, 30, 24, 0.78);
}

.rpg-hud__res strong {
  font-weight: 700;
  font-size: 15px;
}

.rpg-hud__res--pa strong {
  color: #f2d27d;
}

.rpg-hud__res--pm strong {
  color: #8ad69f;
}

.rpg-hud__res--pa {
  border-color: rgba(242, 210, 125, 0.48);
  background: rgba(57, 47, 23, 0.62);
}

.rpg-hud__res--pm {
  border-color: rgba(138, 214, 159, 0.48);
  background: rgba(23, 51, 33, 0.62);
}

.rpg-hud__res.is-muted,
.rpg-hud__res.is-muted strong {
  color: rgba(255, 255, 255, 0.82);
}

.rpg-hud__combat-btn {
  position: relative;
  border: 1px solid rgba(255, 214, 137, 0.58);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(64, 46, 24, 0.92), rgba(37, 28, 17, 0.95));
  color: #ffedc8;
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 120ms ease, filter 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.rpg-hud__combat-btn::before {
  content: "";
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
  display: none;
}

.rpg-hud__combat-btn.is-ready::before {
  display: block;
  background-image: url("../img/pret.webp");
}

.rpg-hud__combat-btn.is-pass::before {
  display: block;
  background-image: url("../img/pass.webp");
}

.rpg-hud__combat-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 214, 137, 0.82);
  box-shadow: 0 8px 14px rgba(17, 46, 23, 0.3), 0 0 0 1px rgba(255, 216, 166, 0.24) inset;
  filter: brightness(1.08);
}

.rpg-hud__combat-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.rpg-hud__utils {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 8px;
  min-height: 0;
  overflow: visible;
}

.rpg-hud__utils-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(44px, auto);
  gap: 6px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.rpg-hud__util-btn {
  border: 1px solid var(--hud-border);
  border-radius: 10px;
  background: rgba(64, 52, 39, 0.9);
  color: var(--hud-text);
  min-height: 44px;
  width: 44px;
  justify-self: center;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  z-index: 1;
}

.rpg-hud__util-btn:hover {
  filter: brightness(1.1);
  z-index: 4;
}

.rpg-hud__util-icon {
  width: 32px;
  height: 32px;
  display: block;
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #ffe3b8;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.rpg-hud__util-btn[data-util-id="inventory"] .rpg-hud__util-icon,
.rpg-hud__util-btn[data-util-id="stats"] .rpg-hud__util-icon,
.rpg-hud__util-btn[data-util-id="spells"] .rpg-hud__util-icon,
.rpg-hud__util-btn[data-util-id="quests"] .rpg-hud__util-icon,
.rpg-hud__util-btn[data-util-id="map"] .rpg-hud__util-icon,
.rpg-hud__util-btn[data-util-id="social"] .rpg-hud__util-icon {
  font-size: 0;
  color: transparent;
}

.rpg-hud__util-btn[data-util-id="inventory"] .rpg-hud__util-icon {
  background-image: url("../img/inventaire.webp");
}

.rpg-hud__util-btn[data-util-id="stats"] .rpg-hud__util-icon {
  background-image: url("../img/caracteristiques.webp");
}

.rpg-hud__util-btn[data-util-id="spells"] .rpg-hud__util-icon {
  background-image: url("../img/sort_grimoire.webp");
}

.rpg-hud__util-btn[data-util-id="quests"] .rpg-hud__util-icon {
  background-image: url("../img/quetes.webp");
}

.rpg-hud__util-btn[data-util-id="map"] .rpg-hud__util-icon {
  background-image: url("../img/map_icon.webp");
}

.rpg-hud__util-btn[data-util-id="social"] .rpg-hud__util-icon {
  background-image: url("../img/social.webp");
}

.rpg-hud__util-btn[data-util-id="settings"] .rpg-hud__util-icon {
  font-size: 0;
  color: transparent;
  background-image: url("../img/options.webp");
}

.rpg-hud__util-key {
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: var(--hud-muted);
  font-size: 8px;
  line-height: 1;
}

.rpg-hud__status {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
  min-width: 0;
  border-top: 1px solid rgba(255, 224, 170, 0.24);
  padding-top: 5px;
}

.rpg-hud__status-line {
  color: var(--hud-muted);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpg-hud__status-line + .rpg-hud__status-line::before {
  content: "•";
  display: inline-block;
  margin-right: 8px;
  color: rgba(255, 224, 170, 0.52);
}

.rpg-hud__windows {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 315;
}

.rpg-hud.is-collapsed .rpg-hud__content {
  display: none;
}

.rpg-hud.is-collapsed {
  top: auto;
  bottom: 8px;
  transform: none;
}

.rpg-hud.is-collapsed .rpg-hud__toggle {
  margin: 0 auto;
  transform: none;
}

.rpg-hud-window {
  position: absolute;
  display: none;
  width: min(360px, 82vw);
  border: 1px solid var(--hud-border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 36, 30, 0.97), rgba(26, 22, 18, 0.97));
  color: var(--hud-text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
}

.rpg-hud-window.is-visible {
  display: block;
}

.rpg-hud-window__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hud-border);
  font-size: 13px;
  font-weight: 700;
  cursor: move;
}

.rpg-hud-window__close {
  border: 1px solid var(--hud-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--hud-text);
  font-size: 12px;
  line-height: 1;
  padding: 3px 6px;
  cursor: pointer;
}

.rpg-hud-window__body {
  padding: 10px;
  font-size: 13px;
  line-height: 1.38;
  white-space: pre-line;
}

.rpg-hud-window__body[data-panel-id="stats"] {
  white-space: normal;
}

.rpg-hud-window__body[data-panel-id="inventory"] {
  white-space: normal;
  padding: 8px;
}

.rpg-hud-window[data-panel-id="inventory"] {
  width: min(980px, 94vw);
}

.rpg-hud-window[data-panel-id="quests"] {
  width: min(900px, 94vw);
}

.rpg-hud-window[data-panel-id="map"] {
  width: min(920px, 94vw);
}

.rpg-hud-window[data-panel-id="social"] {
  width: min(780px, 92vw);
}

.rpg-hud-window__body[data-panel-id="spells"],
.rpg-hud-window__body[data-panel-id="settings"] {
  white-space: normal;
}

.rpg-hud-window__body[data-panel-id="quests"] {
  white-space: normal;
}

.rpg-hud-window__body[data-panel-id="map"] {
  white-space: normal;
}

.rpg-hud-window__body[data-panel-id="social"] {
  white-space: normal;
}

.rpg-hud-window[data-panel-id="spells"] {
  width: min(840px, 94vw);
}

.rpg-hud-window[data-panel-id="settings"] {
  width: min(640px, 94vw);
}

.hud-spells {
  display: grid;
  gap: 10px;
}

.hud-spells__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 235, 198, 0.9);
}

.hud-spells__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 10px;
}

.hud-spells__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.hud-spells__card {
  border: 1px solid rgba(255, 224, 170, 0.24);
  border-radius: 9px;
  background: rgba(61, 49, 36, 0.7);
  color: #fbe7c5;
  padding: 8px;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease, border-color 140ms ease;
}

.hud-spells__card--theme-force {
  border-color: rgba(162, 121, 82, 0.42);
  background: rgba(109, 84, 59, 0.54);
}

.hud-spells__card--theme-intelligence {
  border-color: rgba(183, 86, 86, 0.44);
  background: rgba(117, 53, 53, 0.5);
}

.hud-spells__card--theme-agility {
  border-color: rgba(83, 160, 108, 0.44);
  background: rgba(53, 102, 66, 0.5);
}

.hud-spells__card--theme-chance {
  border-color: rgba(89, 127, 186, 0.46);
  background: rgba(52, 76, 118, 0.5);
}

.hud-spells__card--theme-neutral {
  border-color: rgba(145, 145, 145, 0.42);
  background: rgba(82, 82, 82, 0.44);
}

.hud-spells__card:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hud-spells__card.is-selected {
  border-color: rgba(126, 216, 141, 0.92);
  box-shadow: 0 0 0 1px rgba(126, 216, 141, 0.3) inset;
}

.hud-spells__card.is-locked {
  opacity: 0.68;
}

.hud-spells__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 224, 170, 0.32);
  background: rgba(35, 30, 24, 0.9);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.hud-spells__name {
  font-size: 12px;
  font-weight: 700;
}

.hud-spells__meta {
  font-size: 11px;
  color: rgba(255, 232, 194, 0.84);
}

.hud-spells__meta-note {
  font-size: 11px;
  color: rgba(216, 234, 255, 0.84);
}

.hud-spells__lock {
  display: inline-block;
  margin-top: 2px;
  border: 1px solid rgba(236, 144, 144, 0.48);
  border-radius: 6px;
  background: rgba(74, 29, 29, 0.62);
  color: #ffd1d1;
  font-size: 10px;
  padding: 1px 6px;
}

.hud-spells__detail {
  border: 1px solid rgba(255, 224, 170, 0.23);
  border-radius: 10px;
  background: rgba(43, 35, 27, 0.64);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.hud-spells__detail--theme-force {
  border-color: rgba(155, 116, 77, 0.38);
  background: rgba(66, 52, 37, 0.66);
}

.hud-spells__detail--theme-intelligence {
  border-color: rgba(180, 92, 92, 0.38);
  background: rgba(69, 40, 40, 0.66);
}

.hud-spells__detail--theme-agility {
  border-color: rgba(89, 159, 110, 0.38);
  background: rgba(39, 61, 47, 0.66);
}

.hud-spells__detail--theme-chance {
  border-color: rgba(96, 131, 189, 0.4);
  background: rgba(39, 49, 71, 0.66);
}

.hud-spells__detail--theme-neutral {
  border-color: rgba(141, 141, 141, 0.34);
  background: rgba(55, 55, 55, 0.6);
}

.hud-spells__detail-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff1d6;
}

.hud-spells__detail-state {
  width: fit-content;
  border: 1px solid rgba(120, 203, 138, 0.35);
  border-radius: 6px;
  background: rgba(44, 63, 45, 0.55);
  color: #baf2c2;
  font-size: 11px;
  padding: 2px 8px;
}

.hud-spells__detail-state.is-locked {
  border-color: rgba(236, 144, 144, 0.48);
  background: rgba(74, 29, 29, 0.62);
  color: #ffd1d1;
}

.hud-spells__detail-lines {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: rgba(255, 234, 203, 0.9);
}

.hud-spells__detail-desc {
  border: 1px solid rgba(255, 224, 170, 0.18);
  border-radius: 8px;
  background: rgba(66, 54, 40, 0.45);
  padding: 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #f5e4c6;
}

.hud-spells__pipeline {
  border-top: 1px solid rgba(255, 224, 170, 0.22);
  padding-top: 8px;
  font-size: 11px;
  color: rgba(255, 235, 203, 0.76);
}

.hud-settings {
  display: grid;
  gap: 10px;
}

.hud-settings__tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hud-settings__tab {
  border: 1px solid rgba(255, 224, 170, 0.3);
  border-radius: 8px;
  background: rgba(59, 47, 35, 0.78);
  color: #ffe9c2;
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  cursor: pointer;
}

.hud-settings__tab:hover {
  filter: brightness(1.08);
}

.hud-settings__tab.is-active {
  border-color: rgba(255, 210, 140, 0.62);
  background: linear-gradient(180deg, rgba(90, 70, 48, 0.92), rgba(64, 49, 34, 0.9));
  color: #fff1d4;
}

.hud-settings__section {
  display: grid;
  gap: 8px;
}

.hud-settings__section-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 236, 205, 0.9);
  letter-spacing: 0.2px;
  padding: 0 2px;
}

.hud-settings__row {
  border: 1px solid rgba(255, 224, 170, 0.22);
  border-radius: 8px;
  background: rgba(50, 40, 30, 0.56);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #f8e7cb;
  justify-content: space-between;
}

.hud-settings__row span {
  min-width: 0;
}

.hud-settings__row input[type="checkbox"] {
  accent-color: #9ddfb0;
  width: 18px;
  height: 18px;
}

.hud-settings__row--slider {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.hud-settings__row--select {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.hud-settings__row--select select {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(255, 224, 170, 0.3);
  border-radius: 8px;
  background: rgba(39, 33, 25, 0.82);
  color: #f8e7cb;
  font-size: 12px;
  padding: 0 8px;
}

.hud-settings__row input[type="range"] {
  width: 100%;
}

.hud-settings__row strong {
  font-size: 11px;
  color: rgba(255, 238, 212, 0.92);
  min-width: 44px;
  text-align: right;
}

.hud-settings__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 224, 170, 0.24);
  padding-top: 8px;
}

.hud-settings__reset {
  border: 1px solid rgba(255, 224, 170, 0.36);
  border-radius: 8px;
  background: rgba(61, 47, 34, 0.85);
  color: #ffe7bc;
  font-size: 12px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 10px;
  cursor: pointer;
}

.hud-settings__reset:hover {
  filter: brightness(1.1);
}

.hud-settings__hint {
  color: rgba(255, 235, 202, 0.8);
  font-size: 11px;
}

.hud-quests {
  display: grid;
  gap: 10px;
}

.hud-quests__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 238, 212, 0.86);
}

.hud-quests__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 10px;
}

.hud-quests__list {
  display: grid;
  gap: 7px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.hud-quests__card {
  border: 1px solid rgba(255, 224, 170, 0.24);
  border-radius: 9px;
  background: rgba(58, 47, 35, 0.72);
  color: #f9e7c6;
  text-align: left;
  padding: 8px;
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 8px;
  row-gap: 2px;
  cursor: pointer;
  transition: filter 120ms ease, transform 120ms ease, border-color 140ms ease;
}

.hud-quests__card:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.hud-quests__card.is-selected {
  border-color: rgba(120, 214, 136, 0.9);
  box-shadow: 0 0 0 1px rgba(120, 214, 136, 0.34) inset;
}

.hud-quests__card-thumb {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  border: 1px solid rgba(255, 224, 170, 0.28);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  background-color: rgba(30, 25, 21, 0.82);
  grid-row: 1 / span 3;
}

.hud-quests__card-title {
  font-size: 13px;
  font-weight: 700;
}

.hud-quests__card-status {
  font-size: 11px;
  width: fit-content;
  border-radius: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 224, 170, 0.32);
  background: rgba(62, 52, 38, 0.72);
}

.hud-quests__card.is-active .hud-quests__card-status {
  border-color: rgba(117, 197, 255, 0.55);
  background: rgba(35, 58, 80, 0.56);
  color: #cdeaff;
}

.hud-quests__card.is-completed .hud-quests__card-status {
  border-color: rgba(120, 214, 136, 0.58);
  background: rgba(36, 66, 42, 0.56);
  color: #ccf5d4;
}

.hud-quests__card.is-locked .hud-quests__card-status {
  border-color: rgba(239, 156, 156, 0.54);
  background: rgba(72, 33, 33, 0.56);
  color: #ffd0d0;
}

.hud-quests__card-summary {
  grid-column: 2;
  font-size: 11px;
  color: rgba(255, 232, 196, 0.84);
  line-height: 1.3;
}

.hud-quests__detail {
  border: 1px solid rgba(255, 224, 170, 0.24);
  border-radius: 10px;
  background: rgba(43, 35, 27, 0.68);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.hud-quests__detail-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.hud-quests__detail-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff1d6;
}

.hud-quests__detail-status {
  font-size: 11px;
  border-radius: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 224, 170, 0.34);
  background: rgba(62, 52, 38, 0.72);
}

.hud-quests__detail-status.is-active {
  border-color: rgba(117, 197, 255, 0.55);
  background: rgba(35, 58, 80, 0.56);
  color: #cdeaff;
}

.hud-quests__detail-status.is-completed {
  border-color: rgba(120, 214, 136, 0.58);
  background: rgba(36, 66, 42, 0.56);
  color: #ccf5d4;
}

.hud-quests__detail-status.is-locked {
  border-color: rgba(239, 156, 156, 0.54);
  background: rgba(72, 33, 33, 0.56);
  color: #ffd0d0;
}

.hud-quests__detail-summary {
  font-size: 12px;
  line-height: 1.35;
  color: #f6e5c8;
}

.hud-quests__detail-map {
  font-size: 11px;
  color: rgba(255, 235, 205, 0.78);
}

.hud-quests__objectives {
  border: 1px solid rgba(255, 224, 170, 0.2);
  border-radius: 8px;
  background: rgba(67, 54, 39, 0.48);
  padding: 8px;
  display: grid;
  gap: 5px;
}

.hud-quests__objective {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(255, 233, 201, 0.86);
}

.hud-quests__objective-check {
  width: 12px;
  text-align: center;
}

.hud-quests__objective.is-done {
  color: #c7f0d0;
}

.hud-quests__reward {
  border-top: 1px solid rgba(255, 224, 170, 0.22);
  padding-top: 7px;
  font-size: 11px;
  color: rgba(255, 234, 200, 0.84);
}

.hud-map {
  display: grid;
  gap: 10px;
}

.hud-map__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 236, 205, 0.88);
}

.hud-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 10px;
}

.hud-map__canvas-wrap {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(255, 224, 170, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 48%, rgba(90, 118, 88, 0.16), rgba(39, 31, 24, 0.74)),
    linear-gradient(180deg, rgba(54, 45, 34, 0.82), rgba(31, 25, 19, 0.84));
  overflow: hidden;
}

.hud-map__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hud-map__edge {
  stroke: rgba(232, 206, 160, 0.42);
  stroke-width: 0.42;
}

.hud-map__edge--portal {
  stroke: rgba(255, 210, 120, 0.58);
}

.hud-map__nodes {
  position: absolute;
  inset: 0;
}

.hud-map__node {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 72px;
  max-width: 132px;
  border: 1px solid rgba(255, 224, 170, 0.32);
  border-radius: 8px;
  background: rgba(60, 50, 38, 0.88);
  color: #fce8c6;
  padding: 5px 7px;
  text-align: center;
  cursor: pointer;
  display: grid;
  gap: 1px;
  transition: filter 120ms ease, transform 120ms ease, border-color 130ms ease;
}

.hud-map__node:hover {
  filter: brightness(1.09);
}

.hud-map__node.is-selected {
  border-color: rgba(130, 218, 145, 0.9);
  box-shadow: 0 0 0 1px rgba(130, 218, 145, 0.32) inset;
}

.hud-map__node.is-current {
  border-color: rgba(121, 188, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(121, 188, 255, 0.3) inset;
}

.hud-map__node.has-quest .hud-map__node-hint {
  color: #ffe6a6;
}

.hud-map__node-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.hud-map__node-hint {
  font-size: 9px;
  line-height: 1;
}

.hud-map__meta {
  border: 1px solid rgba(255, 224, 170, 0.24);
  border-radius: 10px;
  background: rgba(42, 34, 26, 0.7);
  padding: 10px;
  display: grid;
  gap: 7px;
}

.hud-map__meta-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff1d6;
}

.hud-map__meta-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 236, 202, 0.86);
}

.hud-map__meta-group {
  border-top: 1px solid rgba(255, 224, 170, 0.2);
  padding-top: 7px;
  display: grid;
  gap: 5px;
}

.hud-map__meta-subtitle {
  font-size: 11px;
  color: rgba(255, 233, 196, 0.9);
  font-weight: 700;
}

.hud-map__meta-note {
  font-size: 11px;
  color: rgba(255, 232, 198, 0.78);
}

.hud-map--empty {
  min-height: 140px;
  place-content: center;
}

.hud-map__empty-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff0d2;
}

.hud-map__empty-sub {
  font-size: 12px;
  color: rgba(255, 232, 197, 0.82);
}

.hud-social {
  display: grid;
  gap: 10px;
}

.hud-social__header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 236, 206, 0.86);
}

.hud-social__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-social__tab {
  border: 1px solid rgba(255, 224, 170, 0.32);
  border-radius: 8px;
  background: rgba(69, 56, 42, 0.82);
  color: #ffe9c7;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.hud-social__tab.is-active {
  border-color: rgba(119, 207, 137, 0.84);
  background: rgba(50, 69, 52, 0.84);
  color: #e2ffe7;
}

.hud-social__section {
  border: 1px solid rgba(255, 224, 170, 0.24);
  border-radius: 10px;
  background: rgba(45, 36, 27, 0.68);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.hud-social__section-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff0d3;
}

.hud-social__entries {
  display: grid;
  gap: 6px;
}

.hud-social__entry {
  border: 1px solid rgba(255, 224, 170, 0.2);
  border-radius: 8px;
  background: rgba(62, 50, 37, 0.58);
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
}

.hud-social__entry-name {
  font-size: 12px;
  font-weight: 700;
  color: #fbe8c8;
}

.hud-social__entry-status {
  font-size: 11px;
  color: #e6f8ea;
}

.hud-social__entry-note {
  grid-column: 1 / -1;
  font-size: 11px;
  color: rgba(255, 233, 198, 0.8);
}

.hud-social__entry.is-online .hud-social__entry-status {
  color: #bdf0c8;
}

.hud-social__entry.is-away .hud-social__entry-status {
  color: #ffe2a9;
}

.hud-social__entry.is-offline .hud-social__entry-status,
.hud-social__entry.is-locked .hud-social__entry-status {
  color: #ffc8c8;
}

.hud-social__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-social__action {
  border: 1px solid rgba(255, 224, 170, 0.32);
  border-radius: 8px;
  background: rgba(73, 59, 43, 0.84);
  color: #fbe9c8;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.hud-social__action:hover {
  filter: brightness(1.08);
}

.hud-social__feed {
  border: 1px solid rgba(255, 224, 170, 0.2);
  border-radius: 8px;
  background: rgba(30, 26, 21, 0.62);
  padding: 8px;
  max-height: 240px;
  overflow: auto;
  display: grid;
  gap: 5px;
}

.hud-social__feed-line {
  font-size: 11px;
  color: rgba(255, 236, 206, 0.86);
  line-height: 1.3;
  word-break: break-word;
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.hud-social__feed-time {
  color: rgba(255, 224, 170, 0.72);
  font-size: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hud-social__hint {
  font-size: 11px;
  color: rgba(255, 235, 203, 0.78);
}

:root {
  --inventory-silhouette-image: url("../img/silhouette_slot.webp");
  --inventory-slot-image: none;
  --inventory-equip-slot-image: none;
}

.hud-inventory {
  display: grid;
  gap: 8px;
}

.hud-inventory__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-inventory__tab {
  border: 1px solid rgba(255, 224, 170, 0.34);
  border-radius: 8px;
  background: rgba(77, 63, 45, 0.8);
  color: #ffe9c6;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
}

.hud-inventory__tab.is-active {
  border-color: rgba(255, 216, 147, 0.75);
  background: rgba(106, 84, 57, 0.9);
  color: #fff6e5;
}

.hud-inventory__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
}

.hud-inventory__grid-wrap {
  border: 1px solid rgba(255, 224, 170, 0.23);
  border-radius: 10px;
  background: rgba(40, 32, 24, 0.6);
  padding: 8px;
}

.hud-inventory__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.hud-inventory-slot {
  position: relative;
  border: 1px solid rgba(255, 224, 170, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(61, 50, 38, 0.84), rgba(43, 35, 26, 0.84));
  min-height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: filter 120ms ease, transform 120ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hud-inventory-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-image: var(--inventory-slot-image);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}

.hud-inventory-slot:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.hud-inventory-slot.is-empty {
  border-style: dashed;
  opacity: 0.66;
}

.hud-inventory-slot.is-occupied {
  border-style: solid;
}

.hud-inventory-slot.is-selected {
  border-color: rgba(121, 214, 137, 0.95);
  box-shadow: 0 0 0 1px rgba(121, 214, 137, 0.35) inset;
}

.hud-inventory-slot.is-filtered-out {
  opacity: 0.2;
}

.hud-inventory-slot.is-dragged {
  opacity: 0.45;
}

.hud-inventory-slot.is-disabled {
  opacity: 0.5;
  cursor: default;
}

.hud-inventory-slot.is-quest-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(137, 197, 255, 0.45) inset;
  pointer-events: none;
}

.hud-inventory-slot__icon {
  width: 30px;
  height: 30px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  pointer-events: none;
}

.hud-inventory-slot > * {
  position: relative;
  z-index: 1;
}

.hud-inventory-slot__qty {
  position: absolute;
  right: 4px;
  bottom: 3px;
  color: #fff6e0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.68);
  pointer-events: none;
}

.hud-inventory-slot__lock {
  position: absolute;
  left: 4px;
  bottom: 3px;
  color: #9fd0ff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hud-inventory__side {
  border: 1px solid rgba(255, 224, 170, 0.23);
  border-radius: 10px;
  background: rgba(40, 32, 24, 0.6);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.hud-inventory__preview-info {
  border: 1px solid rgba(255, 224, 170, 0.26);
  border-radius: 8px;
  background: rgba(80, 65, 46, 0.28);
  padding: 8px;
  display: grid;
  gap: 3px;
}

.hud-inventory__avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 184px;
  height: 300px;
  background-image: var(--inventory-silhouette-image, url("../img/silhouette_slot.webp"));
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  opacity: 0.98;
  pointer-events: none;
  z-index: 1;
  filter: brightness(1.16) contrast(1.18) saturate(0.9) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.hud-inventory__equip-stage {
  position: relative;
  border: 1px solid rgba(255, 224, 170, 0.22);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 48%, rgba(148, 128, 92, 0.34), rgba(42, 34, 26, 0.22));
  min-height: 356px;
  overflow: hidden;
}

.hud-inventory__preview-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff2d8;
}

.hud-inventory__preview-sub {
  font-size: 11px;
  color: rgba(255, 241, 212, 0.78);
  margin-top: 2px;
}

.hud-inventory__preview-bonus {
  font-size: 11px;
  color: #9fe0af;
  border: 1px solid rgba(120, 206, 138, 0.24);
  border-radius: 8px;
  background: rgba(44, 60, 42, 0.22);
  padding: 6px 8px;
  min-height: 34px;
}

.hud-inventory-equip {
  position: absolute;
  width: 72px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(255, 224, 170, 0.3);
  border-radius: 9px;
  background: rgba(62, 51, 38, 0.68);
  color: #ffecc8;
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 130ms ease, border-color 130ms ease;
}

.hud-inventory-equip:hover {
  filter: brightness(1.08);
}

.hud-inventory-equip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-image: var(--equip-slot-image, var(--inventory-equip-slot-image, var(--inventory-slot-image)));
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center center;
  opacity: 0.52;
  z-index: 0;
  pointer-events: none;
}

.hud-inventory-equip__ghost {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 68% 68%;
  background-position: center center;
  opacity: 0.82;
  filter: saturate(0.95);
  z-index: 1;
  pointer-events: none;
}

.hud-inventory-equip.is-occupied .hud-inventory-equip__ghost {
  opacity: 0.22;
}

.hud-inventory-equip__icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  z-index: 2;
}

.hud-inventory-equip__label {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 3px;
  font-size: 9px;
  line-height: 1.1;
  text-align: center;
  color: #ffe8c1;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
  z-index: 3;
  pointer-events: none;
}

.hud-inventory-equip.is-empty {
  border-style: dashed;
}

.hud-inventory-equip.is-selected {
  border-color: rgba(121, 214, 137, 0.95);
  box-shadow: 0 0 0 1px rgba(121, 214, 137, 0.35) inset;
}

.hud-inventory-equip.is-disabled {
  opacity: 0.55;
}

.hud-inventory-equip--armor {
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
}

.hud-inventory-equip--helmet {
  left: 12px;
  top: 26px;
}

.hud-inventory-equip--amulet {
  left: 10px;
  top: 88px;
}

.hud-inventory-equip--ring1 {
  left: 14px;
  top: 150px;
}

.hud-inventory-equip--cape {
  left: 18px;
  top: 212px;
}

.hud-inventory-equip--weapon {
  right: 12px;
  top: 26px;
}

.hud-inventory-equip--belt {
  right: 10px;
  top: 88px;
}

.hud-inventory-equip--boots {
  right: 14px;
  top: 150px;
}

.hud-inventory-equip--ring2 {
  right: 18px;
  top: 212px;
}

.hud-inventory-equip--guri1 {
  left: 24%;
  bottom: 2px;
  transform: translateX(-50%);
}

.hud-inventory-equip--guri2 {
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
}

.hud-inventory-equip--guri3 {
  left: 76%;
  bottom: 2px;
  transform: translateX(-50%);
}

@keyframes hud-inventory-invalid-shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-2px);
  }
  100% {
    transform: translateX(0);
  }
}

.hud-inventory-slot.is-invalid-drop,
.hud-inventory-equip.is-invalid-drop {
  border-color: rgba(228, 96, 96, 0.95);
  box-shadow: 0 0 0 1px rgba(228, 96, 96, 0.35) inset;
}

.hud-inventory-slot.is-invalid-drop .hud-inventory-slot__icon,
.hud-inventory-equip.is-invalid-drop .hud-inventory-equip__icon {
  animation: hud-inventory-invalid-shake 210ms linear 1;
}

.hud-inventory-slot.is-invalid-drop::before,
.hud-inventory-equip.is-invalid-drop::before {
  opacity: 0.96;
  filter: saturate(1.2);
}

.hud-inventory-equip.is-invalid-drop::after {
  content: attr(data-drop-error);
  position: absolute;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  font-size: 9px;
  padding: 1px 5px;
  border: 1px solid rgba(255, 170, 170, 0.7);
  border-radius: 5px;
  background: rgba(63, 19, 19, 0.95);
  color: #ffe2e2;
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

.hud-inventory-equip {
  display: block;
}

.hud-inventory-equip__icon,
.hud-inventory-equip__ghost,
.hud-inventory-equip__label {
  pointer-events: none;
}

body.inventory-skin-enabled .hud-inventory-slot::before {
  opacity: 0.96;
}

body.inventory-skin-enabled .hud-inventory-equip::before {
  opacity: 0.96;
}

body.inventory-skin-enabled .hud-inventory-slot.is-empty,
body.inventory-skin-enabled .hud-inventory-equip.is-empty {
  border-style: solid;
}

.hud-inventory-slot.is-rarity-common,
.hud-inventory-equip.is-rarity-common {
  border-color: rgba(229, 214, 188, 0.42);
}

.hud-inventory-slot.is-rarity-uncommon,
.hud-inventory-equip.is-rarity-uncommon {
  border-color: rgba(119, 214, 128, 0.7);
}

.hud-inventory-slot.is-rarity-rare,
.hud-inventory-equip.is-rarity-rare {
  border-color: rgba(101, 178, 255, 0.76);
}

.hud-inventory-slot.is-rarity-epic,
.hud-inventory-equip.is-rarity-epic {
  border-color: rgba(210, 127, 255, 0.8);
}

.hud-inventory-slot.is-rarity-legendary,
.hud-inventory-equip.is-rarity-legendary {
  border-color: rgba(255, 180, 86, 0.9);
}

.hud-inventory-context {
  position: fixed;
  z-index: 620;
  border: 1px solid rgba(255, 224, 170, 0.44);
  border-radius: 8px;
  background: rgba(40, 32, 24, 0.96);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.45);
  padding: 5px;
  gap: 4px;
}

.hud-inventory-context__btn {
  border: 1px solid rgba(255, 224, 170, 0.22);
  border-radius: 6px;
  background: rgba(72, 58, 43, 0.9);
  color: #fff0d0;
  min-width: 146px;
  text-align: left;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
}

.hud-inventory-context__btn:hover:enabled {
  filter: brightness(1.1);
}

.hud-inventory-context__btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.hud-inventory-tooltip {
  position: fixed;
  z-index: 621;
  width: min(280px, 88vw);
  border: 1px solid rgba(255, 224, 170, 0.44);
  border-radius: 9px;
  background: rgba(28, 22, 17, 0.97);
  color: #fff0d2;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.44);
  padding: 8px 9px;
  pointer-events: none;
}

.hud-inventory-tooltip__title {
  font-size: 13px;
  font-weight: 700;
  color: #fff6e2;
}

.hud-inventory-tooltip__meta {
  font-size: 11px;
  color: rgba(255, 239, 205, 0.82);
  margin-top: 2px;
}

.hud-inventory-tooltip__stats {
  margin-top: 6px;
  font-size: 11px;
  color: #9fe0af;
  display: grid;
  gap: 2px;
}

.hud-inventory-tooltip__desc {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 239, 205, 0.9);
}

.hud-stats {
  display: grid;
  gap: 8px;
}

.hud-stats__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid rgba(255, 224, 170, 0.28);
  border-radius: 8px;
  background: rgba(83, 69, 49, 0.4);
}

.hud-stats__section {
  border: 1px solid rgba(255, 224, 170, 0.2);
  border-radius: 8px;
  background: rgba(57, 47, 35, 0.34);
  padding: 6px 8px;
  display: grid;
  gap: 5px;
}

.hud-stats__section-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffe3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.hud-stats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hud-stats__label {
  color: rgba(255, 245, 228, 0.9);
}

.hud-stats__base-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hud-stats__controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hud-stats__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.hud-stats__total {
  color: #fff0cc;
}

.hud-stats__bonus {
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 227, 171, 0.32);
  background: rgba(43, 35, 24, 0.62);
  color: rgba(255, 236, 202, 0.92);
}

.hud-stats__bonus.is-positive {
  border-color: rgba(140, 221, 136, 0.44);
  color: #c9f3b8;
}

.hud-stats__bonus.is-negative {
  border-color: rgba(234, 122, 122, 0.44);
  color: #ffd0d0;
}

.hud-stats__bonus.is-neutral {
  opacity: 0.86;
}

.hud-stats__btn {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 224, 170, 0.34);
  border-radius: 6px;
  background: rgba(74, 62, 45, 0.78);
  color: #ffefd1;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.hud-stats__btn:hover:enabled {
  filter: brightness(1.1);
}

.hud-stats__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.hud-stats__value {
  min-width: 24px;
  text-align: center;
  color: #ffe9c7;
}

.hud-stats__line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.hud-stats__line strong {
  color: #ffe6bb;
}

.hud-stats__line-sub {
  margin-top: 1px;
  font-size: 11px;
  color: rgba(220, 239, 208, 0.92);
}

.hud-stats__hint {
  font-size: 11px;
  color: rgba(255, 243, 216, 0.74);
  text-align: center;
}

@media (max-width: 1280px) {
  .rpg-hud__bar {
    grid-template-columns: 36fr 22fr 22fr 20fr;
  }
}

@media (max-width: 1024px) {
  .rpg-hud {
    padding: 12px;
  }

  .rpg-hud__toggle {
    margin: 0 auto 6px;
  }

  .rpg-hud__content {
    width: 100%;
  }

  .rpg-hud__bar {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
  }

  .rpg-hud__panel + .rpg-hud__panel::before {
    display: none;
  }

  .rpg-hud__chat {
    min-height: 200px;
  }

  .rpg-hud__chat-util {
    min-width: 42px;
    height: 24px;
    font-size: 10px;
    padding: 0 6px;
  }

  .rpg-hud__hotbar-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 0;
  }

  .rpg-hud__hotbar-detail {
    text-align: left;
  }

  .rpg-hud__hotbar-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .rpg-hud__slot {
    min-height: 52px;
  }

  .rpg-hud__player {
    padding: 8px;
  }

  .rpg-hud__utils-grid {
    grid-template-columns: 1fr;
  }

  .rpg-hud-window[data-panel-id="inventory"] {
    width: min(96vw, 760px);
  }

  .rpg-hud-window[data-panel-id="spells"] {
    width: min(96vw, 760px);
  }

  .rpg-hud-window[data-panel-id="quests"] {
    width: min(96vw, 760px);
  }

  .rpg-hud-window[data-panel-id="map"] {
    width: min(96vw, 760px);
  }

  .rpg-hud-window[data-panel-id="social"] {
    width: min(96vw, 700px);
  }

  .hud-spells__layout {
    grid-template-columns: 1fr;
  }

  .hud-quests__layout {
    grid-template-columns: 1fr;
  }

  .hud-map__layout {
    grid-template-columns: 1fr;
  }

  .hud-map__canvas-wrap {
    min-height: 300px;
  }

  .hud-inventory__layout {
    grid-template-columns: 1fr;
  }

  .hud-inventory__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hud-inventory__equip-stage {
    min-height: 330px;
  }

  .hud-inventory__avatar {
    width: 158px;
    height: 252px;
  }

  .hud-inventory-equip {
    width: 68px;
    height: 60px;
  }

  .hud-inventory-equip--helmet,
  .hud-inventory-equip--weapon {
    top: 26px;
  }

  .hud-inventory-equip--amulet,
  .hud-inventory-equip--belt {
    top: 86px;
  }

  .hud-inventory-equip--ring1,
  .hud-inventory-equip--boots {
    top: 146px;
  }

  .hud-inventory-equip--cape,
  .hud-inventory-equip--ring2 {
    top: 206px;
  }
}

#pnj-interrogation {
  position: absolute;
  z-index: 99;
  /* top/left définis en JS (grille home, pnjCellI/pnjCellJ) */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
}
#pnj-interrogation #interrogation {
  width: 1.0416666667vw;
  height: 2.0833333333vw;
  background: url("../img/interrogation.webp") no-repeat;
  background-size: 100% 100%;
}
#pnj-interrogation #pnj {
  width: 3.6458333333vw;
  height: 6.40625vw;
  background: url("../img/pnj.webp") no-repeat;
  background-size: contain;
  background-position: center bottom;
  transform-origin: 50% 100%;
  cursor: pointer;
}

#pnj-text {
  position: absolute;
  z-index: 99;
  top: 11.2291666667vw;
  left: 61vw;
  border-radius: 5px;
  border: 0.2604166667vw solid #26252b;
  color: #26252b;
  background: #d7ddb9;
  text-align: justify;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: nowrap;
  transform: scaleZ(0);
}
#pnj-text #cross {
  align-self: flex-end;
  margin: 0.2604166667vw;
  width: 1.0416666667vw;
  height: 1.0416666667vw;
  background: url("../img/cross_dark.webp") no-repeat;
  background-size: 100% 100%;
  cursor: pointer;
}
#pnj-text p {
  width: 20vw;
  padding: 0.5208333333vw;
  padding-top: 0px;
}

.runtime-pnj-actions {
  width: 100%;
  padding: 0 0.5208333333vw 0.5208333333vw;
  display: flex;
  gap: 0.4166666667vw;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.runtime-pnj-actions__btn {
  border: 0;
  border-radius: 0.2604166667vw;
  padding: 0.3645833333vw 0.625vw;
  font-family: "Arcade2", "Roboto", sans-serif;
  font-size: 0.85rem;
  color: #f2ece2;
  background: #5b3a1e;
  cursor: pointer;
}
.runtime-pnj-actions__btn:hover {
  background: #734d2a;
}

body.editor-mode #start-page,
body.editor-mode #game-page,
body.editor-mode #end-page,
body.editor-mode #mute-songs,
body.editor-mode #player {
  display: none !important;
}

body.editor-mode #home-page {
  z-index: 5;
}

body.editor-mode #pnj-text {
  display: none !important;
}

body.editor-mode #home-grid {
  z-index: 80;
}
body.editor-mode #portal {
  display: block !important;
  z-index: 30;
  pointer-events: none;
}

body.editor-mode #pnj-interrogation {
  z-index: 120;
}
body.editor-mode #pnj-interrogation #pnj {
  cursor: default;
}

body.has-world-content #game-page {
  display: none !important;
}

#map-editor-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: min(24rem, 32vw);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  z-index: 220;
  border-radius: 0.65rem;
  border: 1px solid rgba(20, 35, 28, 0.7);
  background: rgba(233, 242, 233, 0.95);
  color: #0f2617;
  box-shadow: 0 0.45rem 1.25rem rgba(4, 20, 14, 0.35);
  padding: 0.85rem;
  font-family: "Roboto", sans-serif;
  font-size: 0.83rem;
}

.map-editor__title {
  font-size: 0.97rem;
  font-weight: 700;
  cursor: move;
  user-select: none;
}

.map-editor__subtitle {
  margin-top: 0.45rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
  opacity: 0.9;
}

.map-editor__menu-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.25rem;
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
}

.map-editor__menu-btn {
  border: 1px solid rgba(14, 59, 33, 0.55);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0f2617;
  padding: 0.3rem 0.2rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.map-editor__menu-btn:hover {
  background: rgba(211, 241, 223, 0.95);
}
.map-editor__menu-btn.is-active {
  background: #1e7f47;
  color: #ffffff;
}

.map-editor__section {
  display: block;
}
.map-editor__section.is-hidden {
  display: none;
}

.map-editor__tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}

.map-editor__tool,
.map-editor__actions button {
  border: 1px solid rgba(14, 59, 33, 0.6);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0f2617;
  padding: 0.35rem 0.45rem;
  font-size: 0.79rem;
  cursor: pointer;
}
.map-editor__tool:hover,
.map-editor__actions button:hover {
  background: rgba(211, 241, 223, 0.95);
}
.map-editor__tool.is-active {
  background: #1e7f47;
  color: #ffffff;
}

.map-editor__expand {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
.map-editor__expand button {
  border: 1px solid rgba(14, 59, 33, 0.6);
  border-radius: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
  color: #0f2617;
  padding: 0.35rem 0.45rem;
  font-size: 0.79rem;
  cursor: pointer;
}
.map-editor__expand button:hover {
  background: rgba(211, 241, 223, 0.95);
}

.map-editor__ranges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.map-editor__range {
  display: grid;
  grid-template-columns: 5.3rem minmax(0, 1fr) 5.4rem 2.6rem;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
}
.map-editor__range input[type=range] {
  width: 100%;
}
.map-editor__number {
  width: 100%;
  border: 1px solid rgba(17, 53, 32, 0.55);
  border-radius: 0.25rem;
  padding: 0.14rem 0.2rem;
  background: rgba(255, 255, 255, 0.98);
  color: #102518;
  font-family: monospace;
  font-size: 0.73rem;
}
.map-editor__range output {
  text-align: right;
  font-family: monospace;
  opacity: 0.75;
}

.map-editor__checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.map-editor__stats {
  margin-top: 0.55rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.map-editor__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.map-editor__status {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: #1a5f37;
}
.map-editor__status.is-error {
  color: #ab2f2f;
}

#map-editor-panel.is-dragging {
  opacity: 0.93;
}

#editor-export {
  width: 100%;
  height: 13rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(17, 53, 32, 0.65);
  background: rgba(254, 255, 254, 0.98);
  color: #102518;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.3;
  resize: vertical;
}

#worldmap-export {
  width: 100%;
  height: 11rem;
  margin-top: 0.4rem;
  padding: 0.45rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(17, 53, 32, 0.65);
  background: rgba(254, 255, 254, 0.98);
  color: #102518;
  font-family: monospace;
  font-size: 0.73rem;
  line-height: 1.25;
  resize: vertical;
}

.map-editor__hint {
  margin-top: 0.5rem;
  opacity: 0.9;
}

.map-editor__world-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}

.map-editor__world-grid {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.map-editor__world-cell {
  border: 1px solid rgba(14, 59, 33, 0.5);
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.93);
  color: #0f2617;
  min-height: 1.35rem;
  font-size: 0.62rem;
  padding: 0.1rem 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.map-editor__world-cell.is-map {
  background: rgba(63, 156, 94, 0.24);
  border-color: rgba(30, 109, 58, 0.72);
  font-weight: 600;
}
.map-editor__world-cell.is-selected {
  outline: 2px solid rgba(234, 152, 53, 0.95);
  outline-offset: 1px;
}
.map-editor__world-cell.is-start {
  box-shadow: inset 0 0 0 1px rgba(240, 193, 55, 0.95);
}

.editor-cell-label {
  pointer-events: none;
  user-select: none;
  fill: rgba(255, 255, 255, 0.95);
  font-size: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}
.editor-cell-label.is-hidden {
  display: none;
}

#game-page {
  position: absolute;
  width: 100vw;
  height: 51.0416666667vw;
  background: black;
  z-index: -1;
}

.life-pass-quit {
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  bottom: 2.0416666667vw;
  left: 3vw;
  width: 14.5833333333vw;
}
.life-pass-quit .pv {
  width: 4.5833333333vw;
  height: 4.5833333333vw;
  background: url("../img/Life4.webp");
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
}
.life-pass-quit .pv__text {
  color: white;
}
.life-pass-quit .btn {
  width: 3.6458333333vw;
  height: 2.0833333333vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  color: #979699;
  background: #26252b;
  border-radius: 5px;
  box-shadow: 2px 2px 2px rgba(100, 100, 100, 0.2);
  font-weight: 600;
}
.life-pass-quit .btn:hover {
  cursor: pointer;
  background: #4a4853;
}

.mob {
  position: absolute;
  z-index: 1;
  width: 3.5vw;
  height: 3.3177083333vw;
}
.mob:hover {
  cursor: pointer;
}
.mob:hover p {
  opacity: 0.8;
}
.mob p {
  text-align: center;
  border-radius: 5px;
  padding: 0.2604166667vw;
  background: black;
  width: 8.8541666667vw;
  position: relative;
  top: -2.6041666667vw;
  color: #979699;
  border: 1px solid #fcfcfc;
  opacity: 0;
  transform: translateX(-2.6770833333vw);
}

.mob--grey {
  width: 6.5vw;
  height: 5.359375vw;
}
.mob--grey p {
  transform: translateX(-1.1770833333vw);
  opacity: 0.7;
}

.Round {
  position: absolute;
  width: 7.8125vw;
  height: 2.34375vw;
  background: #26252b;
  color: #979699;
  border-radius: 5px;
  bottom: 9.3125vw;
  left: 3vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  font-weight: 600;
  box-shadow: 2px 2px 2px rgba(100, 100, 100, 0.2);
}
.Round__text {
  font-size: 1.5rem;
}

.nextRound {
  position: absolute;
  z-index: 4;
  top: 10.2083333333vw;
  right: 1.5625vw;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  width: 14.0625vw;
}
.nextRound__openClose {
  position: relative;
  top: 2px;
  width: 1.0416666667vw;
  height: 1.0416666667vw;
  background: url("../img/arrow.webp"), #26252b;
  background-size: 100% 100%;
  cursor: pointer;
}
.nextRound__table {
  width: 13.0208333333vw;
  color: #979699;
  background: #26252b;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 20ms;
}
.nextRound__table table {
  width: 100%;
  border-collapse: collapse;
  vertical-align: center;
}
.nextRound__table tr {
  border: 2px solid black;
}
.nextRound__table td, .nextRound__table th {
  padding-top: 0.5208333333vw;
  padding-bottom: 0.5208333333vw;
  width: 4.1666666667vw;
}

.rock {
  position: absolute;
  width: 2.5vw;
  height: 2.0416666667vw;
  background: url("../img/rocks.webp") no-repeat;
  background-size: 100% 100%;
}

.rules {
  position: absolute;
  z-index: 2;
  top: 4.1666666667vw;
  left: 0.5208333333vw;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 21.9791666667vw;
}
.rules__openClose {
  position: relative;
  width: 1.0416666667vw;
  height: 1.0416666667vw;
  background: url("../img/arrow.webp"), #26252b;
  background-size: 100% 100%;
  transform: rotateZ(180deg);
  cursor: pointer;
}
.rules__text {
  width: 20.8333333333vw;
  border-radius: 5px;
  color: #979699;
  background: #26252b;
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 20ms;
  text-align: justify;
  padding-left: 1.0416666667vw;
  padding-right: 1.0416666667vw;
}
.rules__text h2 {
  text-align: Center;
  padding: 0.5208333333vw;
}
.rules__text p {
  padding-bottom: 1.0416666667vw;
}

#pourpre {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.6041666667vw;
  height: 2.6041666667vw;
  background: url("../img/pourpre.webp") no-repeat;
  background-size: 100%;
}
#pourpre:hover {
  cursor: pointer;
}
#pourpre:hover p {
  opacity: 0.8;
}
#pourpre p {
  position: relative;
  text-align: center;
  width: 10.4166666667vw;
  padding: 0.2604166667vw;
  background: black;
  color: #979699;
  border: 1px solid #fcfcfc;
  border-radius: 5px;
  top: -2.0833333333vw;
  left: -3.90625vw;
  opacity: 0.7;
}

/*# sourceMappingURL=style.css.map */
