/*
 * Escala visual base del juego.
 * El contenedor usa 10/13 del viewport y luego se amplía al 130%, por lo que
 * ocupa exactamente la pantalla sin depender del zoom configurado en el
 * navegador. Los breakpoints de responsive.css reducen la escala cuando el
 * espacio disponible no permite mantenerla sin recortes.
 */
body.game-active {
  overflow: hidden;
}

body.game-active #app {
  width: 76.923077vw;
  height: 76.923077vh;
  transform: scale(1.3);
  transform-origin: top left;
}

.game-shell {
  height: 100vh;
  min-height: 650px;
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  overflow: hidden;
  background: #111;
}

body.game-active .game-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Persistent section workspaces */
.portal-workspace {
  padding: 34px 70px 42px;
  color: #aeb4ba;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(92, 104, 115, 0.18), transparent 48%),
    #111418;
  background-size: 44px 44px, 44px 44px, auto, auto;
}

.portal-heading {
  width: min(1120px, 100%);
  min-height: 96px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-heading > div > span,
.portal-heading > strong {
  color: #b39a5a;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.portal-heading h1 {
  margin: 7px 0 5px;
  color: #edf0f2;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.015em;
}

.portal-heading p {
  margin: 0;
  color: #858d94;
  font-size: 10px;
}

.boss-workspace,
.ranking-workspace,
.notify-workspace {
  width: min(1120px, 100%);
  height: calc(100% - 116px);
  min-height: 0;
  margin: 0 auto;
}

.boss-workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 21, 25, 0.88);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.25);
}

.boss-catalog {
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(12, 14, 17, 0.45);
}

.boss-catalog > header {
  height: 54px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #b9bec2;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.boss-catalog > header small {
  color: #68717a;
  font-size: 7px;
}

.boss-catalog > div {
  padding: 8px;
}

.boss-catalog-card {
  width: 100%;
  min-height: 79px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.055);
  background: transparent;
  color: #9ca3aa;
  text-align: left;
  cursor: pointer;
}

.boss-catalog-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.boss-catalog-card.active {
  border-color: rgba(190, 157, 76, 0.58);
  background: linear-gradient(90deg, rgba(184, 144, 49, 0.13), rgba(184, 144, 49, 0.025));
  color: #eef0f1;
  box-shadow: inset 2px 0 #c19c46;
}

.boss-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.22);
  color: #c8ab66;
  font-size: 19px;
}

.boss-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boss-card-copy small,
.boss-card-copy i {
  color: #69727a;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.boss-card-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 500;
}

.boss-card-state {
  padding: 4px 6px;
  border: 1px solid rgba(173, 64, 70, 0.48);
  color: #d6757b;
  font-size: 7px;
  text-transform: uppercase;
}

.boss-card-state.available {
  border-color: rgba(76, 157, 111, 0.5);
  color: #72c694;
}

.boss-inspection {
  min-width: 0;
  display: grid;
  grid-template-columns: 46% 54%;
}

.boss-visual {
  min-height: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle, rgba(190, 157, 76, 0.17), transparent 36%),
    linear-gradient(145deg, #171c21, #0d1013);
}

.boss-visual::before,
.boss-visual::after {
  content: "";
  width: 230px;
  height: 230px;
  position: absolute;
  border: 1px solid rgba(190, 157, 76, 0.15);
  transform: rotate(45deg);
}

.boss-visual::after {
  width: 170px;
  height: 170px;
  border-color: rgba(255, 255, 255, 0.08);
}

.boss-visual span {
  position: relative;
  z-index: 1;
  color: #d3b66e;
  font-size: 88px;
  text-shadow: 0 0 44px rgba(199, 157, 56, 0.28);
}

.boss-visual i {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: #68727a;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.2em;
}

.boss-detail {
  padding: 58px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.boss-detail > span {
  color: #b59a58;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.boss-detail h2 {
  margin: 12px 0 12px;
  color: #eef0f2;
  font-size: 27px;
  font-weight: 400;
}

.boss-detail > p {
  max-width: 450px;
  min-height: 48px;
  margin: 0;
  color: #939aa1;
  font-size: 11px;
  line-height: 1.65;
}

.boss-detail dl {
  width: 100%;
  margin: 27px 0;
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.boss-detail dl div {
  padding: 14px;
}

.boss-detail dl div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.boss-detail dt {
  color: #68717a;
  font-size: 7px;
  letter-spacing: 0.15em;
}

.boss-detail dd {
  margin: 6px 0 0;
  color: #d4d8db;
  font-size: 10px;
}

.boss-detail button {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(72, 162, 111, 0.68);
  background: rgba(27, 78, 51, 0.18);
  color: #7dd1a0;
  font-size: 9px;
  letter-spacing: 0.16em;
  cursor: pointer;
}

.boss-detail button:disabled {
  border-color: rgba(151, 61, 67, 0.45);
  background: rgba(76, 22, 26, 0.12);
  color: #985b60;
  cursor: not-allowed;
}

.boss-detail > small {
  margin-top: 10px;
  color: #717980;
  font-size: 8px;
}

.ranking-workspace {
  max-width: 920px;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 18, 21, 0.9);
}

.ranking-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ranking-tabs button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: #747d84;
  font-size: 8px;
  letter-spacing: 0.17em;
  cursor: pointer;
}

.ranking-tabs button.active {
  background: rgba(190, 157, 76, 0.08);
  color: #d8bd77;
  box-shadow: inset 0 -1px #bf9b47;
}

.ranking-table {
  min-height: 0;
  overflow: auto;
  padding: 10px 18px;
}

.ranking-table > header,
.ranking-row {
  display: grid;
  grid-template-columns: 90px minmax(240px, 1fr) 120px 150px;
  align-items: center;
}

.ranking-table > header {
  height: 34px;
  color: #626c74;
  font-size: 7px;
  letter-spacing: 0.16em;
}

.ranking-row {
  min-height: 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  color: #a9b0b6;
  font-size: 10px;
}

.ranking-position {
  color: #c4a65f;
  font-size: 18px;
  font-weight: 400;
}

.ranking-player {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranking-player b {
  color: #e2e5e7;
  font-size: 12px;
  font-weight: 500;
}

.ranking-player small {
  color: #6f7880;
  font-size: 8px;
}

.ranking-workspace > footer {
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #6e767d;
  font-size: 8px;
}

.ranking-workspace > footer strong {
  color: #9c864f;
  font-size: 7px;
  letter-spacing: 0.12em;
}

.notify-workspace {
  max-width: 1030px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.notify-timeline,
.notify-schedule {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 18, 21, 0.9);
}

.notify-card {
  min-height: 92px;
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notify-card.featured {
  background: linear-gradient(90deg, rgba(54, 122, 85, 0.11), transparent 75%);
}

.notify-marker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #79828a;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notify-marker i {
  width: 23px;
  height: 1px;
  background: #b79950;
  box-shadow: 0 0 8px rgba(183, 153, 80, 0.32);
}

.notify-copy small {
  color: #808991;
  font-size: 8px;
}

.notify-copy h2 {
  margin: 5px 0;
  color: #dfe3e6;
  font-size: 13px;
  font-weight: 500;
}

.notify-copy p {
  margin: 0;
  color: #7c858c;
  font-size: 9px;
}

.notify-state {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a9b0b5;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.notify-schedule {
  padding: 22px;
  overflow: hidden;
}

.notify-schedule > span {
  color: #b49a5b;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.notify-schedule h2 {
  margin: 8px 0 20px;
  color: #e0e3e5;
  font-size: 16px;
  font-weight: 400;
}

.notify-schedule > div {
  min-height: 61px;
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.notify-schedule i {
  color: #ba9e59;
  font-size: 9px;
  font-style: normal;
}

.notify-schedule p {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notify-schedule strong {
  color: #cbd0d4;
  font-size: 10px;
  font-weight: 500;
}

.notify-schedule small,
.notify-schedule footer {
  color: #707980;
  font-size: 8px;
}

.notify-schedule footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.global-topbar {
  display: grid;
  grid-template-columns: minmax(185px, 1fr) auto minmax(400px, 1fr);
  align-items: center;
  gap: 24px;
  height: var(--topbar-height);
  padding: 0 17px;
  position: relative;
  z-index: 10;
  border-bottom: 1px solid #3b3b3b;
  background: #101010;
}

.global-topbar .brand-link {
  width: max-content;
  min-width: 0;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.nav-action {
  height: 40px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d8d8d8;
  cursor: pointer;
  font-size: 12px;
}

.nav-action:hover {
  color: #fff;
}

.nav-action.active {
  color: #f2f3f4;
}

.notify-nav-action span {
  min-width: 15px;
  height: 15px;
  margin-left: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(198, 69, 76, 0.62);
  color: #ef8c91;
  font-size: 8px;
  line-height: 1;
}

.topbar-wallet {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.topbar-wallet > span {
  min-width: 66px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: end;
  gap: 6px;
  white-space: nowrap;
}

.topbar-wallet small {
  color: #778089;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.topbar-wallet strong {
  color: #cfd4d8;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.topbar-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #8b98a2;
  font-size: 11px;
}

.topbar-currency {
  white-space: nowrap;
}

.settings-action {
  width: 38px;
  height: 38px;
  border: 1px solid #474747;
  background: #151515;
  cursor: pointer;
}

.section-workspace[hidden] {
  display: none !important;
}

.section-workspace {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.game-workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr) var(--hud-height);
}

.main-interface {
  min-height: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.026), transparent 34%),
    radial-gradient(circle at 18% 50%, rgba(255, 255, 255, 0.012), transparent 25%),
    radial-gradient(circle at 82% 50%, rgba(255, 255, 255, 0.012), transparent 25%),
    linear-gradient(180deg, #1a1a1a 0%, #171717 100%);
}

.side-dock {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.side-dock.left {
  left: 12px;
}

.side-dock.right {
  right: 12px;
}

.square-button {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 4px 4px;
  position: relative;
  border: 1px solid #4b4b4b;
  background: linear-gradient(180deg, #202020, #151515);
  color: #ddd;
  cursor: pointer;
  font-size: 18px;
}

.square-button:hover,
.square-button.is-active {
  border-color: #777;
  background: #292929;
}

.side-button-label {
  position: absolute;
  top: 5px;
  left: 2px;
  right: 2px;
  overflow: hidden;
  color: #748089;
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  pointer-events: none;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-button-icon {
  display: grid;
  place-items: center;
  line-height: 1;
  transform: translateY(3px);
}

.square-button:hover .side-button-label,
.square-button.is-active .side-button-label {
  color: #d8dde1;
}

.main-interface.mode-city .combat-cluster,
.main-interface.mode-combat .city-hub {
  display: none;
}

.city-hub {
  width: min(1040px, calc(100% - 150px));
  height: min(455px, calc(100% - 24px));
  display: grid;
  grid-template-columns: minmax(270px, 32%) minmax(0, 68%);
  position: absolute;
  left: 50%;
  top: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(20, 23, 27, 0.72);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
}

.city-portrait-panel {
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 25%, rgba(95, 119, 138, 0.18), transparent 38%),
    #11151a;
}

.city-portrait-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 70px;
}

.city-portrait-art > span {
  position: absolute;
}

.city-portrait-art img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.34);
  transform-origin: 50% 22%;
}

.city-portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(10, 12, 15, 0.05) 38%, rgba(10, 13, 16, 0.92) 91%),
    linear-gradient(90deg, transparent 68%, rgba(10, 13, 16, 0.28));
  pointer-events: none;
}

.city-portrait-caption {
  display: grid;
  gap: 4px;
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 19px;
  z-index: 3;
}

.city-portrait-caption > span {
  color: #84929d;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.city-portrait-caption strong {
  color: #edf0f2;
  font-size: 15px;
  font-weight: 500;
}

.city-portrait-caption small {
  color: #98a1a8;
  font-size: 8px;
}

.city-information-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 92px minmax(0, 1fr) 64px;
}

.city-heading {
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
  z-index: 2;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(27, 31, 36, 0.9);
  text-align: center;
}

.city-kicker {
  color: #8998a3;
  font-size: 8px;
  letter-spacing: 0.2em;
}

.city-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
}

.city-heading h1 {
  margin: 0;
  color: #edf0f2;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.city-safe-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #77bd91;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.city-safe-status i {
  width: 6px;
  height: 6px;
  border: 1px solid #65a77d;
  background: #72b68a;
  box-shadow: 0 0 7px rgba(114, 182, 138, 0.22);
  transform: rotate(45deg);
}

.city-heading p {
  margin: 3px 0 0;
  color: #8f979e;
  font-size: 8px;
}

.city-scene {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  position: relative;
  overflow: hidden;
  padding: 24px 34px;
  background:
    radial-gradient(circle at 18% 50%, rgba(116, 139, 155, 0.17), transparent 29%),
    radial-gradient(circle at 72% 40%, rgba(126, 139, 150, 0.09), transparent 34%),
    linear-gradient(145deg, rgba(30, 35, 40, 0.9), rgba(14, 17, 20, 0.92));
}

.city-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.32;
  pointer-events: none;
}

.city-atmosphere::before,
.city-atmosphere::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(176, 190, 201, 0.18);
  transform: rotate(45deg);
}

.city-atmosphere::before {
  width: 190px;
  height: 190px;
  left: -70px;
  top: 38px;
}

.city-atmosphere::after {
  width: 250px;
  height: 250px;
  right: -120px;
  top: -92px;
}

.city-atmosphere i {
  width: 72px;
  position: absolute;
  bottom: -12px;
  border: 1px solid rgba(176, 190, 201, 0.15);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(90, 108, 121, 0.15), rgba(14, 17, 20, 0.55));
  clip-path: polygon(20% 14%, 42% 14%, 50% 0, 58% 14%, 80% 14%, 100% 100%, 0 100%);
}

.city-atmosphere i:nth-child(1) { left: 8%; height: 66%; }
.city-atmosphere i:nth-child(2) { left: 30%; width: 92px; height: 44%; }
.city-atmosphere i:nth-child(3) { left: 53%; width: 110px; height: 58%; }
.city-atmosphere i:nth-child(4) { right: 22%; height: 40%; }
.city-atmosphere i:nth-child(5) { right: 5%; width: 98px; height: 70%; }

.city-character-presence {
  min-width: 0;
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.city-character-art {
  width: 102px;
  height: 210px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 15, 18, 0.7);
  font-size: 38px;
}

.city-character-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(13, 16, 19, 0.9));
  pointer-events: none;
}

.city-character-art > span {
  position: absolute;
}

.city-character-art img {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: 50% 22%;
}

.city-character-presence > div:last-child {
  display: grid;
  gap: 4px;
  padding-bottom: 8px;
}

.city-character-presence > div:last-child > span {
  color: #7f8d98;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.city-character-presence strong {
  overflow: hidden;
  color: #dce1e4;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-character-presence small {
  color: #899198;
  font-size: 8px;
}

.city-services {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
  z-index: 1;
}

.city-service {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  position: relative;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(31, 36, 41, 0.78);
  color: #aeb5bb;
  cursor: pointer;
  text-align: left;
}

.city-service:hover {
  border-color: rgba(190, 201, 209, 0.42);
  background: rgba(49, 56, 63, 0.9);
  color: #edf0f2;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.city-service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 21, 25, 0.7);
  color: #c2c9ce;
  font-size: 14px;
}

.city-service-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.city-service-copy strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.city-service-copy small {
  overflow: hidden;
  color: #777f86;
  font-size: 7px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.city-service > i {
  align-self: start;
  color: #697179;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 7px;
  font-style: normal;
}

.city-gate-panel {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(27, 31, 36, 0.94);
}

.city-gate-panel > div {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 10px;
}

.city-gate-panel span {
  color: #84929d;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.city-gate-panel strong {
  color: #d2d7db;
  font-size: 10px;
  font-weight: 500;
}

.city-gate-panel small {
  grid-column: 1 / -1;
  color: #747c83;
  font-size: 7px;
}

.city-gate-panel button,
.return-city-button {
  border: 1px solid rgba(102, 153, 121, 0.68);
  background: rgba(35, 66, 46, 0.42);
  color: #80c399;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.city-gate-panel button {
  min-width: 205px;
  height: 38px;
}

.city-gate-panel button:hover,
.return-city-button:hover:not(:disabled) {
  border-color: #69ad82;
  background: rgba(43, 82, 57, 0.58);
  color: #a0dfb7;
  box-shadow: 0 0 16px rgba(91, 169, 120, 0.12);
}

.city-gate-panel button i {
  margin-left: 8px;
  font-style: normal;
}

.combat-cluster {
  width: 882px;
  height: 420px;
  display: grid;
  grid-template-columns: 286px 214px 286px;
  column-gap: 48px;
  align-items: start;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.fighter-column {
  width: 286px;
}

.fighter-heading {
  height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 1px;
  text-align: center;
}

.fighter-name {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 21px;
}

.fighter-meta {
  margin-top: 3px;
  color: #65717a;
  font-size: 11px;
}

.premium-inline {
  color: #c8a85d;
}

.fighter-card {
  width: 286px;
  height: 353px;
  position: relative;
  border: 0;
  background: transparent;
}

.fighter-placeholder {
  width: calc(100% - 36px);
  height: calc(100% - 34px);
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 0;
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid #555;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 64%),
    #202020;
  color: #888;
  font-family: Georgia, serif;
  font-size: 70px;
}

.character-fighter-placeholder {
  isolation: isolate;
  padding: 0;
}

.fighter-character-fallback {
  position: absolute;
  z-index: 0;
}

.fighter-character-image {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.9) contrast(1.05) brightness(0.9);
  transform: scale(1.52);
  transform-origin: 50% 25%;
}

.character-fighter-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 58%, rgba(17, 17, 17, 0.38));
  pointer-events: none;
}

.fighter-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
}

.fighter-hp-track {
  width: 100%;
  height: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid #4e332d;
  background: #080808;
}

.fighter-hp-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b81720, #e52a32 72%, #f04449);
  box-shadow: 0 0 10px rgba(229, 42, 50, 0.24);
  transition: width 240ms ease;
}

.fighter-hp-track::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%, rgba(0, 0, 0, 0.16));
  pointer-events: none;
}

.fighter-hp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0 7px;
  color: #f0eee8;
  font-size: 10px;
  font-weight: 500;
  text-shadow: 0 1px 3px #000;
}

.combat-controls {
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 34px;
  text-align: center;
}

.zone-label {
  color: #68747c;
  font-size: 10px;
  letter-spacing: 0.3em;
}

.zone-name {
  margin-top: 21px;
  color: #fff;
  font-size: 18px;
}

.combat-toggle {
  width: 194px;
  height: 52px;
  margin-top: 18px;
  border: 1px solid #626262;
  background: #1c1c1c;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.09em;
}

.combat-toggle:hover {
  background: #292929;
}

.combat-status {
  height: 16px;
  margin-top: 20px;
  color: #69737b;
  font-size: 11px;
}

.return-city-button {
  min-width: 122px;
  height: 26px;
  margin-top: 7px;
  border-color: rgba(171, 184, 194, 0.34);
  background: rgba(38, 43, 48, 0.48);
  color: #9da8b0;
  font-size: 7px;
}

.return-city-button:disabled {
  color: #596168;
}

.combat-divider {
  width: 2px;
  height: 58px;
  margin-top: 10px;
  background: #454545;
}

.combat-wave {
  margin-top: 12px;
  color: #6c777f;
  font-size: 11px;
  line-height: 22px;
}

.damage-number {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, 0);
  color: #f0f0f0;
  font-size: 20px;
  pointer-events: none;
  text-shadow: 0 2px 3px #000;
  animation: damage-float 750ms ease forwards;
}

@keyframes damage-float {
  from {
    opacity: 0;
    transform: translate(-50%, 7px);
  }
  20% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -38px);
  }
}

.bottom-hud {
  height: var(--hud-height);
  position: relative;
  z-index: 8;
  border-top: 1px solid #444;
  background: #080808;
}

.experience-strip {
  height: 23px;
  border-bottom: 1px solid #393939;
  background: #141414;
}

.experience-label {
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b969f;
  font-size: 10px;
}

.experience-track {
  width: 900px;
  max-width: 58vw;
  height: 5px;
  margin: 0 auto;
  overflow: hidden;
  background: #090909;
}

.experience-fill {
  width: 34%;
  height: 100%;
  background: var(--exp);
  transition: width 250ms ease;
}

.hud-control-row {
  height: 98px;
  position: relative;
  background: #070707;
}

.hud-side-group {
  position: absolute;
  top: 8px;
}

.consumables-group {
  left: calc(50% - 603px);
  width: 285px;
}

.services-group {
  left: calc(50% + 303px);
  width: 224px;
}

.hud-group-title {
  height: 13px;
  color: #59636b;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.services-group .hud-group-title {
  text-align: right;
}

.hud-button-row {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.hud-slot {
  width: 53px;
  height: 53px;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
  border: 1px solid #4b4b4b;
  background: linear-gradient(180deg, #202020, #141414);
  color: #e5e5e5;
  cursor: pointer;
  font-size: 16px;
}

.hud-slot:hover {
  border-color: #777;
  background: #292929;
}

.hud-slot .key {
  position: absolute;
  left: 5px;
  top: 4px;
  color: #677078;
  font-size: 9px;
}

.hud-slot .assigned-label {
  position: absolute;
  right: 4px;
  bottom: 4px;
  color: #efefef;
  font-size: 9px;
}

.hud-core {
  width: 558px;
  height: 70px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  position: absolute;
  left: calc(50% - 280px);
  top: 16px;
}

.hud-core .hud-slot {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.resource-square {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid #4c4c4c;
  background: #111;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.018);
}

.resource-square.large {
  width: 70px;
  height: 70px;
}

.resource-square.small {
  width: 54px;
  height: 54px;
}

.resource-fill-vertical {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill, 100%);
  transition: height 250ms ease;
}

.resource-square.hp .resource-fill-vertical {
  background: var(--hp);
}

.resource-square.sd .resource-fill-vertical {
  background: var(--sd);
}

.resource-square.mp .resource-fill-vertical {
  background: var(--mp);
}

.resource-square.ag .resource-fill-vertical {
  background: var(--ag);
}

.resource-square::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 34%, rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.resource-name,
.resource-number {
  position: absolute;
  z-index: 2;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 1px 2px #000;
}

.resource-name {
  left: 7px;
  top: 7px;
}

.resource-number {
  right: 6px;
  bottom: 6px;
  font-size: 10px;
}

.resource-square.small .resource-name {
  left: 5px;
  top: 6px;
  font-size: 9px;
}

.resource-square.small .resource-number {
  right: 4px;
  bottom: 5px;
  font-size: 9px;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.modal-layer.open {
  display: grid;
}

.game-window {
  width: min(620px, 92vw);
  max-height: min(620px, 82vh);
  display: none;
  overflow: hidden;
  border: 1px solid #555;
  background: #202020;
  box-shadow: var(--shadow);
}

.game-window.open {
  display: flex;
  flex-direction: column;
  animation: window-in 170ms ease-out;
}

@keyframes window-in {
  from {
    transform: translateY(18px);
    opacity: 0;
  }
}

.window-header {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid #4a4a4a;
  background: #171717;
  color: #e8e8e8;
  font-size: 12px;
}

.window-header .window-close {
  margin-left: auto;
}

.window-close {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid #4b4b4b;
  background: #222;
  cursor: pointer;
}

.window-body {
  min-height: 280px;
  overflow: auto;
  padding: 16px;
}

.generic-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #7f888f;
  text-align: center;
}

.generic-placeholder .placeholder-icon {
  color: #aaa;
  font-size: 42px;
}

.generic-placeholder strong {
  color: #ddd;
  font-size: 14px;
  font-weight: 400;
}

.generic-placeholder p {
  max-width: 390px;
  margin: 0;
  font-size: 10px;
  line-height: 1.6;
}

.stat-points {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #3c3c3c;
  background: #181818;
  text-align: center;
  font-size: 11px;
}

.stat-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #3b3b3b;
  background: #1a1a1a;
  font-size: 11px;
}

.plus-button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 1px solid #666;
  background: #292929;
  cursor: pointer;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.item-slot {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #3f3f3f;
  background: #171717;
  color: #858e95;
  font-size: 18px;
}

.item-slot.filled {
  color: #ddd;
}

/* Character attributes */
.game-window.attributes-window-open {
  width: min(760px, 94vw);
  max-height: 90vh;
}

.attributes-window-open .window-header {
  min-height: 44px;
  font-size: 13px;
}

.attributes-window-open .window-body {
  min-height: 0;
  padding: 14px;
}

.mu-attributes {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(330px, 1.12fr);
  gap: 12px;
  color: var(--module-text);
}

.mu-attributes-primary,
.mu-effects-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-attributes-profile {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(15, 15, 15, 0.28);
}

.mu-profile-row {
  min-height: 27px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: #96999e;
  font-size: 11.5px;
}

.mu-profile-row + .mu-profile-row {
  border-top: 1px solid rgba(255, 255, 255, 0.025);
}

.mu-profile-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--module-title);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-profile-row.highlight strong,
.mu-profile-row.gold strong {
  color: var(--module-gold);
}

.mu-attribute-groups {
  overflow: visible;
  padding: 6px;
}

.mu-attribute-group + .mu-attribute-group {
  margin-top: 5px;
}

.mu-attribute-group > header {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-item);
  color: #b7bac0;
  font-size: 11px;
}

.mu-attribute-base {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mu-attribute-base button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid rgba(201, 56, 56, 0.42);
  background: rgba(74, 24, 27, 0.48);
  color: #d4777a;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.mu-attribute-base button:hover {
  border-color: rgba(230, 87, 93, 0.72);
  color: #ef8b8f;
  box-shadow: 0 0 10px rgba(201, 56, 56, 0.1);
}

.mu-attribute-base strong {
  color: var(--module-gold);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
  font-weight: 500;
}

.mu-derived-row,
.mu-effect-row {
  min-height: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  color: #94979c;
  font-size: 10.5px;
}

.mu-derived-row:nth-child(odd),
.mu-effect-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.012);
}

.mu-derived-row > span,
.mu-effect-row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mu-derived-row > span {
  gap: 0;
}

.mu-derived-row i {
  display: none;
}

.mu-derived-row i,
.mu-effect-row i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: #70747a;
  transform: rotate(45deg);
}

.mu-derived-row strong,
.mu-effect-row strong {
  color: #aeb1b6;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mu-derived-row.gold i,
.mu-effect-row.active i {
  background: #8f7946;
}

.mu-derived-row.gold strong,
.mu-effect-row.active strong {
  color: var(--module-gold);
}

.mu-derived-row.violet i {
  background: #77747f;
}

.mu-derived-row.violet strong {
  color: #aaa6b2;
}

.mu-effects-panel {
  display: grid;
  grid-template-rows: 40px minmax(0, 1fr);
}

.mu-effects-panel > header {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(15, 15, 15, 0.4);
  color: var(--module-title);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.mu-effects-panel > header i {
  width: 7px;
  height: 7px;
  border: 1px solid #8f7946;
  transform: rotate(45deg);
}

.mu-effect-list {
  max-height: 515px;
  overflow: auto;
  padding: 7px;
}

/* Inventory and equipment system */
.game-window.inventory-window-open {
  width: min(700px, 94vw);
}

.inventory-window-open .window-body {
  min-height: 0;
  padding: 14px;
}

.mu-inventory,
.mu-skill-tree,
.mu-cashshop,
.mu-move,
.mu-attributes,
.mu-quest-hub,
.mu-crafting,
.mu-guild,
.mu-hunting,
.mu-warehouse,
.mu-city-shop {
  --module-text: #a4a9af;
  --module-muted: #747b82;
  --module-subtle: #858c93;
  --module-title: #c7cbd0;
  --module-gold: #adb7bf;
  --module-gold-border: rgba(174, 184, 192, 0.42);
  --module-border: rgba(255, 255, 255, 0.1);
  --module-border-strong: rgba(255, 255, 255, 0.135);
  --module-surface: rgba(24, 27, 31, 0.76);
  --module-surface-soft: rgba(31, 35, 40, 0.58);
  --module-item: rgba(35, 39, 45, 0.9);
  --module-item-hover: rgba(46, 51, 58, 0.96);
  color: var(--module-text);
}

.mu-inventory {
  --inventory-cell: 30px;
  --inventory-gap: 2px;
  min-width: 0;
  user-select: none;
}

.mu-inventory-hint {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  padding: 0 3px;
  color: #8b8b8b;
  font-size: 9px;
  letter-spacing: 0.13em;
}

.mu-inventory-hint small {
  color: #666;
  font-size: 9px;
  letter-spacing: 0;
}

.mu-inventory-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mu-inventory-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mu-inventory-section-title {
  align-self: stretch;
  color: #777;
  font-size: 9px;
  letter-spacing: 0.16em;
}

.mu-equipment-board {
  width: calc(8 * var(--inventory-cell) + 7 * 4px);
  height: calc(7 * var(--inventory-cell) + 6 * 4px);
  display: grid;
  grid-template-columns: repeat(8, var(--inventory-cell));
  grid-template-rows: repeat(7, var(--inventory-cell));
  gap: 4px;
}

.mu-equipment-slot,
.mu-grid-cell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(18, 20, 23, 0.62);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.34);
}

.mu-equipment-slot {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.mu-equipment-slot::after {
  content: attr(data-label);
  max-width: calc(100% - 7px);
  position: absolute;
  left: 50%;
  bottom: 4px;
  overflow: hidden;
  transform: translateX(-50%);
  color: #666;
  font-size: 7px;
  letter-spacing: 0.06em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.mu-equipment-slot:empty::after {
  opacity: 0.7;
}

.mu-equipment-slot.drag-over,
.mu-grid-cell.drag-over {
  border-color: rgba(212, 178, 96, 0.72);
  background: rgba(65, 56, 34, 0.48);
  box-shadow: inset 0 0 12px rgba(212, 178, 96, 0.06), 0 0 10px rgba(212, 178, 96, 0.08);
}

.mu-equipment-slot.invalid,
.mu-grid-cell.invalid {
  border-color: rgba(201, 56, 56, 0.75);
  background: rgba(74, 24, 27, 0.38);
}

.slot-artifact { grid-column: 1 / span 2; grid-row: 1 / span 2; }
.slot-helm { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.slot-wings { grid-column: 6 / span 3; grid-row: 1 / span 2; }
.slot-left-hand { grid-column: 1 / span 2; grid-row: 3 / span 3; }
.slot-amulet { grid-column: 3; grid-row: 3; }
.slot-armor { grid-column: 4 / span 2; grid-row: 3 / span 3; }
.slot-right-hand { grid-column: 7 / span 2; grid-row: 3 / span 3; }
.slot-gloves { grid-column: 1 / span 2; grid-row: 6 / span 2; }
.slot-ring-a { grid-column: 3; grid-row: 6; }
.slot-pants { grid-column: 4 / span 2; grid-row: 6 / span 2; }
.slot-ring-b { grid-column: 6; grid-row: 6; }
.slot-boots { grid-column: 7 / span 2; grid-row: 6 / span 2; }

.mu-inventory-board {
  width: var(--inventory-board-width);
  height: var(--inventory-board-height);
  position: relative;
}

.mu-inventory-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--inventory-columns), var(--inventory-cell));
  grid-template-rows: repeat(var(--inventory-rows), var(--inventory-cell));
  gap: var(--inventory-gap);
}

.mu-grid-cell {
  border-color: rgba(255, 255, 255, 0.055);
  background: rgba(15, 15, 15, 0.4);
}

.mu-item {
  display: grid;
  place-items: center;
  position: absolute;
  z-index: 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(25, 27, 31, 0.88);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42), 0 4px 10px rgba(0, 0, 0, 0.26);
  color: #a9adb4;
  cursor: grab;
  touch-action: none;
}

.mu-equipment-slot > .mu-item {
  width: auto !important;
  height: auto !important;
  inset: 2px;
}

.mu-item:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(32, 35, 40, 0.94);
  color: #d0d2d6;
}

.mu-item.selected {
  border-color: #c6a457;
  box-shadow: inset 0 0 0 1px rgba(198, 164, 87, 0.12), 0 0 12px rgba(198, 164, 87, 0.1);
}

.mu-item.dragging {
  opacity: 0.32;
}

.mu-item svg {
  width: 76%;
  height: 76%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.mu-item.image-item {
  background:
    radial-gradient(circle at 50% 44%, rgba(95, 117, 168, 0.22), transparent 62%),
    linear-gradient(145deg, rgba(31, 35, 43, 0.98), rgba(15, 18, 23, 0.98));
}

.mu-item.rarity-excellent {
  border-color: rgba(119, 143, 207, 0.58);
  box-shadow:
    inset 0 0 15px rgba(86, 107, 177, 0.09),
    0 0 9px rgba(84, 111, 186, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.28);
}

.mu-item.rarity-excellent:hover {
  border-color: rgba(166, 184, 235, 0.82);
  box-shadow:
    inset 0 0 18px rgba(105, 128, 205, 0.14),
    0 0 13px rgba(98, 127, 207, 0.18),
    0 5px 12px rgba(0, 0, 0, 0.3);
}

.mu-item-image {
  width: 100%;
  height: 100%;
  padding: 3px 3px 13px;
  position: relative;
  z-index: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42));
  transition: filter 150ms ease, transform 150ms ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.mu-item.image-item:hover .mu-item-image {
  filter: brightness(1.08) drop-shadow(0 2px 6px rgba(77, 105, 185, 0.32));
  transform: scale(1.04);
}

.mu-item-name {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  overflow: hidden;
  color: #8b9098;
  font-size: 7px;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

.mu-item.rarity-excellent .mu-item-name {
  color: #aebee9;
  text-shadow: 0 1px 3px #080a0d;
}

.mu-equipment-slot.compact .mu-item-name {
  display: none;
}

.mu-inventory-footer {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(12, 12, 12, 0.55);
}

.mu-inventory-zen {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.mu-coin-mark {
  color: #8f7946;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.mu-inventory-zen strong {
  color: #d4b260;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 11px;
}

.mu-inventory-status {
  min-width: 0;
  overflow: hidden;
  color: #73777d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-inventory-status strong {
  color: #b7bac0;
  font-weight: 500;
}

/* Skill Tree */
.game-window.skill-tree-window-open {
  width: min(1080px, 95vw);
  max-height: 90vh;
}

.skill-tree-window-open .window-body,
.cashshop-window-open .window-body {
  min-height: 0;
  padding: 0;
}

.mu-skill-tree {
  min-width: 0;
  user-select: none;
}

.mu-skill-summary {
  display: grid;
  grid-template-columns: minmax(145px, 1.4fr) repeat(4, minmax(105px, 1fr)) auto;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-skill-pill,
.mu-skill-reset {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-surface-soft);
  color: var(--module-text);
  font-size: 9px;
  white-space: nowrap;
}

.mu-skill-pill strong {
  color: var(--module-title);
  font-weight: 600;
}

.mu-skill-pill.title {
  justify-content: flex-start;
}

.mu-skill-pill.title i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--module-gold);
  box-shadow: 0 0 0 3px rgba(212, 178, 96, 0.08);
}

.mu-skill-reset {
  color: var(--module-text);
  cursor: pointer;
  letter-spacing: 0.08em;
}

.mu-skill-reset:hover {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
}

.mu-skill-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.mu-skill-branch {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-skill-branch > header {
  min-height: 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: var(--module-surface);
}

.mu-skill-branch h3 {
  margin: 0;
  color: #777;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mu-skill-branch.branch-bravery h3,
.mu-skill-branch.branch-anger h3 { color: #777; }

.mu-skill-branch header span {
  color: var(--module-muted);
  font-size: 9px;
}

.mu-skill-canvas {
  width: 260px;
  height: 430px;
  position: relative;
  margin: 0 auto;
}

.mu-skill-links {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}

.mu-skill-link {
  fill: none;
  stroke: #292929;
  stroke-width: 3;
}

.mu-skill-link.active {
  stroke: #8f7946;
}

.mu-skill-node {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--module-item);
  color: #a9adb4;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42);
}

.mu-skill-node:hover {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--module-item-hover);
  color: #d0d2d6;
  transform: translateY(-1px);
}

.mu-skill-node.locked {
  filter: saturate(0.35);
  opacity: 0.5;
}

.mu-skill-node.active {
  border-color: #c6a457;
  box-shadow: inset 0 0 0 1px rgba(198, 164, 87, 0.12), 0 0 12px rgba(198, 164, 87, 0.1);
}

.mu-skill-node.maxed {
  border-color: var(--module-gold);
  color: var(--module-gold);
}

.mu-skill-node svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.mu-skill-node span {
  min-width: 20px;
  height: 18px;
  display: grid;
  place-items: center;
  position: absolute;
  right: -5px;
  bottom: -5px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: #0d0d0d;
  color: var(--module-title);
  font-size: 8px;
  font-weight: 600;
}

.mu-skill-footer {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: var(--module-surface);
  color: var(--module-subtle);
  font-size: 9px;
}

.mu-skill-legend {
  display: flex;
  gap: 12px;
}

.mu-skill-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.mu-skill-legend i {
  width: 8px;
  height: 8px;
  border: 1px solid #555;
  background: rgba(18, 20, 23, 0.62);
}

.mu-skill-legend i.active { border-color: #8f7946; }
.mu-skill-legend i.maxed { border-color: var(--module-gold); }

/* Cashshop */
.game-window.cashshop-window-open {
  width: min(1050px, 95vw);
  max-height: 90vh;
}

.mu-cashshop {
  min-height: 570px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 230px;
  gap: 12px;
  padding: 12px;
}

.mu-shop-categories {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mu-shop-category,
.mu-shop-tab,
.mu-shop-product button {
  border: 1px solid var(--module-border);
  background: var(--module-surface-soft);
  color: var(--module-muted);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mu-shop-category {
  min-height: 42px;
}

.mu-shop-category:hover,
.mu-shop-tab:hover,
.mu-shop-product button:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--module-item-hover);
  color: #d0d2d6;
}

.mu-shop-category.active,
.mu-shop-tab.active {
  border-color: #c6a457;
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
  box-shadow: inset 0 0 0 1px rgba(198, 164, 87, 0.08), 0 0 12px rgba(198, 164, 87, 0.08);
}

.mu-shop-catalog,
.mu-shop-account-box,
.mu-shop-promo,
.mu-shop-storage {
  border: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-shop-catalog {
  min-width: 0;
  display: grid;
  grid-template-rows: 48px minmax(0, 1fr) 38px;
}

.mu-shop-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mu-shop-tab {
  flex: 1;
  border-width: 0 0 1px;
}

.mu-shop-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(145px, 1fr);
  gap: 9px;
  overflow: auto;
  padding: 11px;
}

.mu-shop-product {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 9px 9px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-surface-soft);
}

.mu-shop-product:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(25, 27, 31, 0.58);
}

.mu-shop-product > strong {
  color: var(--module-title);
  font-size: 9px;
  font-weight: 400;
  text-align: center;
}

.mu-shop-product-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--module-item);
  color: #a9adb4;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.42), 0 4px 10px rgba(0, 0, 0, 0.26);
}

.mu-shop-product:hover .mu-shop-product-icon {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--module-item-hover);
  color: #d0d2d6;
}

.mu-shop-price {
  color: var(--module-gold);
  font-size: 8px;
  font-weight: 600;
  text-align: center;
}

.mu-shop-product button {
  width: 100%;
  min-height: 29px;
}

.mu-shop-product button:hover {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
}

.mu-shop-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  color: var(--module-muted);
  font-size: 10px;
  text-align: center;
}

.mu-shop-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--module-muted);
  font-size: 9px;
}

.mu-shop-account {
  display: grid;
  grid-template-rows: auto 1fr minmax(190px, 1.35fr);
  gap: 10px;
}

.mu-shop-account-box {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.mu-shop-account-box h3 {
  margin: 0 0 5px;
  color: var(--module-gold);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.mu-shop-account-box div {
  display: flex;
  justify-content: space-between;
  color: var(--module-muted);
  font-size: 9px;
}

.mu-shop-account-box strong {
  color: var(--module-gold);
}

.mu-shop-promo {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  background: var(--module-surface);
  text-align: center;
}

.mu-shop-promo span,
.mu-shop-promo small {
  color: var(--module-muted);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.mu-shop-promo strong {
  color: var(--module-title);
  font-size: 10px;
  font-weight: 500;
}

.mu-shop-storage {
  min-height: 0;
  display: grid;
  grid-template-rows: 37px minmax(0, 1fr) auto;
}

.mu-shop-storage > header {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mu-shop-storage > header span {
  flex: 1;
  display: grid;
  place-items: center;
  color: var(--module-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.mu-shop-storage > header span.active { color: var(--module-title); }

.mu-shop-storage-list {
  min-height: 0;
  overflow: auto;
  padding: 8px;
}

.mu-shop-storage-list > div:not(.mu-shop-storage-empty) {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  color: var(--module-text);
  font-size: 8px;
}

.mu-shop-storage-list small,
.mu-shop-storage-empty {
  color: var(--module-muted);
  font-size: 8px;
}

.mu-shop-storage > footer {
  min-height: 35px;
  padding: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--module-subtle);
  font-size: 8px;
}

/* Move and warp system */
.game-window.move-window-open {
  width: min(560px, 94vw);
  max-height: 90vh;
}

.move-window-open .window-header {
  min-height: 40px;
  font-size: 13px;
}

.move-window-open .window-body {
  min-height: 0;
  padding: 10px;
}

.mu-move {
  min-width: 0;
  user-select: none;
}

.mu-move-table {
  border: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-move-head,
.mu-move-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 88px;
  align-items: center;
  gap: 10px;
}

.mu-move-head {
  min-height: 36px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: #8b8b8b;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mu-move-head span:not(:first-child),
.mu-move-level,
.mu-move-cost {
  text-align: right;
}

.mu-move-rows {
  max-height: 350px;
  overflow: auto;
  padding: 4px;
}

.mu-move-row {
  width: 100%;
  min-height: 34px;
  margin: 1px 0;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #a9adb4;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.mu-move-row:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(25, 27, 31, 0.58);
  color: #d0d2d6;
}

.mu-move-row.selected {
  border-color: #c6a457;
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
  box-shadow: inset 0 0 0 1px rgba(198, 164, 87, 0.08), 0 0 12px rgba(198, 164, 87, 0.06);
}

.mu-move-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mu-move-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-move-name i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 1px solid #777;
  background: rgba(18, 20, 23, 0.62);
}

.mu-move-row.available .mu-move-name i {
  border-color: #a9adb4;
  background: #73777d;
}

.mu-move-row.locked {
  color: #858585;
}

.mu-move-row.locked .mu-move-name i {
  border-color: rgba(201, 56, 56, 0.48);
  background: rgba(74, 24, 27, 0.58);
}

.mu-move-row.selected .mu-move-name i {
  border-color: var(--module-gold);
  background: #8f7946;
}

.mu-move-level,
.mu-move-cost {
  color: #9a9da2;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-variant-numeric: tabular-nums;
}

.mu-move-row.selected .mu-move-level,
.mu-move-row.selected .mu-move-cost {
  color: var(--module-gold);
}

.mu-move-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(12, 12, 12, 0.38);
}

.mu-move-warp,
.mu-move-close {
  min-height: 36px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-surface-soft);
  color: var(--module-text);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.mu-move-warp:not(:disabled) {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
}

.mu-move-warp:not(:disabled):hover,
.mu-move-close:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: var(--module-item-hover);
  color: #d0d2d6;
}

.mu-move-warp:not(:disabled):hover {
  border-color: #c6a457;
  color: var(--module-gold);
  box-shadow: 0 0 12px rgba(198, 164, 87, 0.08);
}

.mu-move-warp:disabled {
  color: #4d4d4d;
  cursor: not-allowed;
  opacity: 0.65;
}

/* Missions and class evolution quests */
.game-window.quests-window-open {
  width: min(820px, 96vw);
  max-height: 92vh;
}

.quests-window-open .window-header {
  min-height: 40px;
  font-size: 13px;
}

.quests-window-open .window-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.mu-quest-hub {
  min-width: 0;
  min-height: 500px;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr) 30px;
  user-select: none;
}

.mu-quest-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-quest-tabs button {
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  background: transparent;
  color: var(--module-muted);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.mu-quest-tabs button:last-child {
  border-right: 0;
}

.mu-quest-tabs button:hover {
  background: rgba(25, 27, 31, 0.46);
  color: #d0d2d6;
}

.mu-quest-tabs button.active {
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
  box-shadow: inset 0 -2px 0 #c6a457;
}

.mu-quest-content {
  min-width: 0;
  min-height: 0;
}

.mu-quest-layout {
  min-height: 432px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.mu-quest-list-panel,
.mu-quest-detail-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  background: var(--module-surface);
}

.mu-quest-list-panel {
  grid-template-rows: 36px minmax(0, 1fr);
  border-right: 1px solid var(--module-border);
}

.mu-quest-detail-panel {
  grid-template-rows: 36px minmax(0, 1fr) 48px;
}

.mu-quest-list-panel > header,
.mu-quest-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: var(--module-surface-soft);
}

.mu-quest-list-panel > header strong,
.mu-quest-panel-head strong {
  color: var(--module-title);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mu-quest-list-panel > header span,
.mu-quest-panel-head span {
  color: var(--module-muted);
  font-size: 9px;
}

.mu-quest-list {
  max-height: 396px;
  overflow: auto;
  padding: 5px;
}

.mu-quest-list-item {
  width: 100%;
  min-height: 56px;
  display: grid;
  gap: 5px;
  margin-bottom: 3px;
  padding: 7px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-surface-soft);
  color: var(--module-text);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.mu-quest-list-item.mission {
  min-height: 38px;
  display: flex;
  align-items: center;
  margin-bottom: 2px;
  padding: 0 10px;
}

.mu-quest-simple-name {
  min-width: 0;
  overflow: hidden;
  color: #b7bac0;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-quest-list-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(25, 27, 31, 0.58);
}

.mu-quest-list-item.active {
  border-color: #c6a457;
  background: rgba(65, 56, 34, 0.28);
  box-shadow: inset 0 0 0 1px rgba(198, 164, 87, 0.08);
}

.mu-quest-item-top,
.mu-quest-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mu-quest-item-top > strong {
  min-width: 0;
  overflow: hidden;
  color: #b7bac0;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-quest-item-meta small {
  color: var(--module-subtle);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
}

.mu-quest-badge {
  min-width: 60px;
  min-height: 18px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 1px solid var(--module-border-strong);
  background: rgba(12, 12, 12, 0.55);
  color: var(--module-muted);
  font-size: 7px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mu-quest-badge.locked {
  border-color: rgba(201, 56, 56, 0.4);
  color: #b76d70;
}

.mu-quest-badge.progress {
  border-color: rgba(143, 121, 70, 0.5);
  color: #a79a7c;
}

.mu-quest-badge.ready {
  border-color: var(--module-gold-border);
  color: var(--module-gold);
}

.mu-quest-badge.claimed {
  border-color: rgba(255, 255, 255, 0.13);
  color: #94989e;
}

.mu-quest-progress {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(0, 0, 0, 0.55);
}

.mu-quest-progress > i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #6f5c32, #c2a158);
}

.mu-quest-detail-scroll {
  max-height: 348px;
  overflow: auto;
  padding: 10px;
}

.mu-quest-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.mu-quest-detail-title h3 {
  margin: 0 0 5px;
  color: #d0d2d6;
  font-size: 15px;
  font-weight: 500;
}

.mu-quest-detail-title > div > span {
  color: var(--module-subtle);
  font-size: 10px;
}

.mu-quest-box {
  margin-bottom: 6px;
  padding: 8px;
  border: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-quest-label {
  display: block;
  margin-bottom: 5px;
  color: #8f7946;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mu-quest-box p {
  margin: 0;
  color: #aaaeb4;
  font-size: 11px;
  line-height: 1.55;
}

.mu-quest-box > strong {
  color: var(--module-title);
  font-size: 11px;
  font-weight: 500;
}

.mu-quest-box > small {
  display: block;
  margin-top: 5px;
  color: var(--module-subtle);
  font-size: 9px;
}

.mu-quest-brief {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(150px, 0.65fr);
  gap: 10px;
}

.mu-quest-objective,
.mu-quest-cost {
  min-width: 0;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.mu-quest-objective strong,
.mu-quest-cost strong {
  display: block;
  color: var(--module-title);
  font-size: 10px;
  font-weight: 500;
}

.mu-quest-objective small {
  display: block;
  margin-top: 4px;
  color: var(--module-subtle);
  font-size: 8px;
}

.mu-quest-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.mu-quest-progress-head .mu-quest-label {
  margin: 0;
}

.mu-quest-progress-head strong {
  color: var(--module-title);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 500;
}

.mu-quest-progress {
  height: 10px;
}

.mu-quest-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.mu-quest-rewards > div {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--module-border-strong);
  background: rgba(25, 27, 31, 0.58);
}

.mu-quest-rewards small {
  display: block;
  margin-bottom: 5px;
  color: var(--module-muted);
  font-size: 8px;
  text-transform: uppercase;
}

.mu-quest-rewards strong {
  display: block;
  overflow: hidden;
  color: var(--module-title);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-quest-detail-panel > footer {
  display: grid;
  padding: 7px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  background: var(--module-surface-soft);
}

.mu-quest-detail-panel > footer button {
  border: 1px solid var(--module-gold-border);
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.mu-quest-detail-panel > footer button:hover:not(:disabled) {
  border-color: #c6a457;
  box-shadow: 0 0 12px rgba(198, 164, 87, 0.08);
}

.mu-quest-detail-panel > footer button:disabled {
  border-color: var(--module-border-strong);
  background: var(--module-surface-soft);
  color: #555;
  cursor: not-allowed;
}

.mu-quest-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  color: var(--module-muted);
  font-size: 11px;
}

.mu-quest-status {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid var(--module-border);
  background: var(--module-surface);
  color: var(--module-subtle);
  font-size: 9px;
}

.mu-evolution-route {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-bottom: 1px solid var(--module-border);
  background: rgba(15, 15, 15, 0.4);
}

.mu-evolution-route strong {
  color: var(--module-title);
  font-size: 10px;
  font-weight: 500;
}

.mu-evolution-route > i {
  color: #8f7946;
  font-size: 11px;
  font-style: normal;
}

.mu-evolution-route > span {
  margin-left: auto;
  color: var(--module-muted);
  font-size: 9px;
}

.mu-quest-layout.evolution {
  min-height: 390px;
}

.mu-quest-layout.evolution .mu-quest-list,
.mu-quest-layout.evolution .mu-quest-detail-scroll {
  max-height: 306px;
}

.mu-evolution-requirements {
  display: grid;
  gap: 6px;
}

.mu-evolution-requirement {
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px 62px;
  align-items: center;
  gap: 8px;
  padding: 4px 7px;
  border: 1px solid var(--module-border-strong);
  background: rgba(25, 27, 31, 0.48);
}

.mu-evolution-requirement > div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mu-evolution-requirement strong {
  overflow: hidden;
  color: var(--module-title);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-evolution-requirement small,
.mu-evolution-requirement > span {
  color: var(--module-subtle);
  font-size: 8px;
}

.mu-evolution-requirement > span {
  font-family: Consolas, "SFMono-Regular", monospace;
  text-align: center;
}

.mu-evolution-requirement > div:last-child {
  display: flex;
  gap: 4px;
}

.mu-evolution-requirement button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--module-border-strong);
  background: var(--module-surface-soft);
  color: var(--module-text);
  cursor: pointer;
}

.mu-evolution-requirement button:hover:not(:disabled) {
  border-color: var(--module-gold-border);
  color: var(--module-gold);
}

.mu-evolution-requirement button:disabled {
  color: #4d4d4d;
  cursor: not-allowed;
}

/* Chaos crafting and equipment upgrades */
.game-window.crafting-window-open {
  width: min(800px, 96vw);
  max-height: 92vh;
}

.crafting-window-open .window-header {
  min-height: 40px;
  font-size: 13px;
}

.crafting-window-open .window-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.mu-crafting {
  min-width: 0;
  min-height: 470px;
  display: grid;
  grid-template-rows: 36px minmax(0, 1fr) 30px;
  background: rgba(8, 8, 8, 0.58);
  user-select: none;
}

.mu-craft-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface-soft);
  color: var(--module-subtle);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.mu-craft-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--module-gold);
  font-size: 10px;
  font-weight: 600;
}

.mu-craft-toolbar i {
  width: 8px;
  height: 8px;
  border: 1px solid #8f7946;
  background: #c6a457;
  box-shadow: 0 0 8px rgba(198, 164, 87, 0.24);
  transform: rotate(45deg);
}

.mu-craft-toolbar strong {
  margin-left: 5px;
  color: #d6bd7b;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.mu-craft-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.mu-craft-recipes {
  min-width: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 32px;
  border-right: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-craft-recipes > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 11px;
  border-bottom: 1px solid var(--module-border);
  color: var(--module-muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mu-craft-recipes > header strong {
  color: var(--module-subtle);
  font-weight: 500;
}

.mu-craft-recipes > footer {
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid var(--module-border);
  color: #5f6267;
  font-size: 8px;
}

.mu-craft-recipe-list {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 7px;
}

.mu-craft-recipe-list button {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid transparent;
  background: rgba(18, 18, 18, 0.52);
  color: #999da3;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.mu-craft-recipe-list button:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: var(--module-item-hover);
  color: #d0d2d6;
}

.mu-craft-recipe-list button.active {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
  box-shadow: inset 2px 0 0 #c6a457;
}

.mu-craft-workbench {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 52px 150px 118px minmax(68px, 1fr);
  background: rgba(10, 10, 10, 0.38);
}

.mu-craft-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-craft-info h3 {
  margin: 0 0 3px;
  color: #d0d2d6;
  font-size: 13px;
  font-weight: 500;
}

.mu-craft-info p {
  margin: 0;
  overflow: hidden;
  color: var(--module-subtle);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-craft-info > span {
  min-width: 70px;
  min-height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--module-border-strong);
  color: #8e9298;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mu-craft-info > span.upgrade {
  border-color: var(--module-gold-border);
  color: var(--module-gold);
}

.mu-craft-source-result,
.mu-craft-materials {
  min-width: 0;
  padding: 10px 14px;
  border-bottom: 1px solid var(--module-border);
}

.mu-craft-label {
  display: block;
  color: #747981;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mu-craft-slots {
  display: grid;
  grid-template-columns: 150px 28px 150px;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
}

.mu-craft-slots > div,
.mu-craft-material {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 5px;
}

.mu-craft-slots small,
.mu-craft-material > span,
.mu-craft-material > small {
  max-width: 100%;
  overflow: hidden;
  color: #85898f;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-craft-arrow {
  color: #666b71;
  font-size: 17px;
  font-style: normal;
  text-align: center;
}

.mu-craft-slot {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  position: relative;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(18, 20, 23, 0.72);
  color: #747a82;
}

button.mu-craft-slot {
  cursor: pointer;
}

button.mu-craft-slot:hover:not(:disabled) {
  border-color: rgba(212, 178, 96, 0.48);
  color: var(--module-gold);
}

.mu-craft-slot:disabled {
  cursor: default;
  opacity: 0.48;
}

.mu-craft-slot.filled,
.mu-craft-slot.ready {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.2);
  color: var(--module-gold);
}

.mu-craft-slot.success {
  border-color: rgba(82, 184, 121, 0.68);
  color: #72c691;
  box-shadow: 0 0 12px rgba(82, 184, 121, 0.1);
}

.mu-craft-slot.failed {
  border-color: rgba(201, 56, 56, 0.58);
  color: #c66e72;
}

.mu-craft-plus {
  font-size: 20px;
  font-weight: 300;
}

.mu-craft-icon,
.mu-craft-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mu-craft-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.mu-craft-level {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 3px;
  border: 1px solid rgba(212, 178, 96, 0.55);
  background: rgba(8, 8, 8, 0.88);
  color: #e0bd61;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 7px;
}

.mu-craft-material-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
}

.mu-craft-material {
  width: 82px;
}

.mu-craft-material .mu-craft-slot {
  width: 48px;
  height: 48px;
  padding: 7px;
}

.mu-craft-material > small {
  color: #777c83;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.mu-craft-material > small.ready {
  color: var(--module-gold);
}

.mu-craft-summary {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.4fr 108px;
  align-items: stretch;
  gap: 6px;
  padding: 9px 12px;
}

.mu-craft-summary > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-craft-summary span {
  color: #666b72;
  font-size: 7px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mu-craft-summary strong {
  overflow: hidden;
  color: #b8bbc0;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-craft-summary button,
.mu-craft-status button {
  border: 1px solid var(--module-gold-border);
  background: rgba(65, 56, 34, 0.24);
  color: var(--module-gold);
  cursor: pointer;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.mu-craft-summary button:hover:not(:disabled),
.mu-craft-status button:hover {
  border-color: #c6a457;
  background: rgba(82, 70, 40, 0.35);
  box-shadow: 0 0 12px rgba(198, 164, 87, 0.08);
}

.mu-craft-summary button:disabled {
  border-color: var(--module-border-strong);
  background: var(--module-surface-soft);
  color: #4d4d4d;
  cursor: not-allowed;
}

.mu-craft-status {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-top: 1px solid var(--module-border);
  background: var(--module-surface);
  color: var(--module-subtle);
  font-size: 8px;
}

.mu-craft-status > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-craft-status > span.success {
  color: #72c691;
}

.mu-craft-status > span.error {
  color: #c66e72;
}

.mu-craft-status button {
  min-height: 21px;
  margin-left: auto;
  padding: 0 8px;
  white-space: nowrap;
}

/* Guild management */
.game-window.guild-window-open {
  width: min(780px, 96vw);
  max-height: 92vh;
}

.guild-window-open .window-header {
  min-height: 40px;
  font-size: 13px;
}

.guild-window-open .window-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.mu-guild {
  min-width: 0;
  min-height: 480px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 30px;
  grid-template-areas: "sidebar content" "status status";
  background: rgba(8, 8, 8, 0.58);
  user-select: none;
}

.mu-guild-sidebar {
  grid-area: sidebar;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--module-border);
  background: var(--module-surface);
}

.mu-guild-identity {
  min-height: 106px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-guild-crest {
  width: 56px;
  height: 66px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--module-gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 600;
}

.mu-guild-crest::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--module-gold-border);
  background: linear-gradient(150deg, rgba(92, 76, 39, 0.38), rgba(15, 15, 15, 0.2));
  clip-path: polygon(50% 0, 92% 15%, 84% 72%, 50% 100%, 16% 72%, 8% 15%);
  box-shadow: inset 0 0 20px rgba(198, 164, 87, 0.08);
}

.mu-guild-crest span {
  position: relative;
  z-index: 1;
}

.mu-guild-identity h3 {
  margin: 0 0 3px;
  overflow: hidden;
  color: #d0d2d6;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-guild-identity > div:last-child > span {
  color: var(--module-gold);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
}

.mu-guild-identity p {
  margin: 7px 0 0;
  color: var(--module-muted);
  font-size: 8px;
  line-height: 1.4;
}

.mu-guild-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 7px;
  border-bottom: 1px solid var(--module-border);
}

.mu-guild-stats > div {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid var(--module-border);
  background: rgba(18, 18, 18, 0.42);
}

.mu-guild-stats dt {
  color: #666b72;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mu-guild-stats dd {
  margin: 0;
  color: #b8bbc0;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
}

.mu-guild-tabs {
  display: grid;
  gap: 2px;
  padding: 7px;
}

.mu-guild-tabs button {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid transparent;
  background: rgba(18, 18, 18, 0.42);
  color: #8c9096;
  cursor: pointer;
  font: inherit;
  font-size: 9px;
}

.mu-guild-tabs button i {
  color: #5d6167;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
  font-style: normal;
}

.mu-guild-tabs button:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--module-item-hover);
  color: #d0d2d6;
}

.mu-guild-tabs button.active {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.28);
  color: var(--module-gold);
  box-shadow: inset 2px 0 0 #c6a457;
}

.mu-guild-tabs button.active i {
  color: var(--module-gold);
}

.mu-guild-actions {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 8px;
  border-top: 1px solid var(--module-border);
}

.mu-guild-actions button {
  min-height: 32px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-surface-soft);
  color: #96999e;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.mu-guild-actions button:first-child:not(:disabled),
.mu-guild-actions button:last-of-type:not(:disabled) {
  border-color: var(--module-gold-border);
  background: rgba(65, 56, 34, 0.22);
  color: var(--module-gold);
}

.mu-guild-actions button:hover:not(:disabled) {
  border-color: #c6a457;
  box-shadow: 0 0 12px rgba(198, 164, 87, 0.08);
}

.mu-guild-actions button:disabled {
  color: #4d4d4d;
  cursor: not-allowed;
}

.mu-guild-actions small {
  display: flex;
  justify-content: space-between;
  padding: 2px 3px 0;
  color: #5f6267;
  font-size: 7px;
}

.mu-guild-actions strong {
  color: #85898f;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-weight: 400;
}

.mu-guild-content {
  grid-area: content;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.36);
}

.mu-guild-overview,
.mu-guild-members {
  height: 100%;
  min-height: 0;
  display: grid;
}

.mu-guild-overview {
  grid-template-rows: 52px 76px 78px 100px minmax(0, 1fr);
}

.mu-guild-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 13px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-guild-content-head > div {
  display: grid;
  gap: 3px;
}

.mu-guild-content-head > div:last-child {
  text-align: right;
}

.mu-guild-content-head span,
.mu-guild-section > header span,
.mu-guild-notice > span,
.mu-guild-progress-section > header span {
  color: #696e75;
  font-size: 7px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mu-guild-content-head strong {
  color: #c5c8cd;
  font-size: 10px;
  font-weight: 500;
}

.mu-guild-content-head > div:last-child strong {
  color: var(--module-gold);
  font-family: Consolas, "SFMono-Regular", monospace;
}

.mu-guild-notice,
.mu-guild-progress-section,
.mu-guild-section {
  min-width: 0;
  padding: 10px 13px;
  border-bottom: 1px solid var(--module-border);
}

.mu-guild-notice p {
  margin: 7px 0 4px;
  color: #a6a9ae;
  font-size: 9px;
  line-height: 1.4;
}

.mu-guild-notice small,
.mu-guild-progress-section small,
.mu-guild-section > header small,
.mu-guild-members > footer {
  color: #62666c;
  font-size: 7px;
}

.mu-guild-progress-section > header,
.mu-guild-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mu-guild-progress-section > header strong {
  color: #a4a7ac;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
  font-weight: 400;
}

.mu-guild-progress {
  height: 7px;
  margin: 8px 0 6px;
  overflow: hidden;
  border: 1px solid var(--module-border-strong);
  background: rgba(0, 0, 0, 0.58);
}

.mu-guild-progress i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, #6f5c32, #c2a158);
  box-shadow: 0 0 10px rgba(194, 161, 88, 0.12);
}

.mu-guild-buffs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 7px;
}

.mu-guild-buff {
  min-width: 0;
  min-height: 59px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--module-border);
  background: var(--module-item);
}

.mu-guild-buff > i,
.mu-guild-activity-row > i {
  width: 6px;
  height: 6px;
  border: 1px solid #8f7946;
  transform: rotate(45deg);
}

.mu-guild-buff > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.mu-guild-buff strong {
  overflow: hidden;
  color: #aaadb2;
  font-size: 8px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-guild-buff small {
  overflow: hidden;
  color: #5f6369;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-guild-buff > span {
  color: var(--module-gold);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
}

.mu-guild-section.activity {
  min-height: 0;
  overflow: hidden;
  border-bottom: 0;
}

.mu-guild-activity {
  margin-top: 6px;
}

.mu-guild-activity-row {
  min-height: 25px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.mu-guild-activity-row p {
  margin: 0;
  overflow: hidden;
  color: #767a80;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-guild-activity-row strong {
  color: #a5a8ad;
  font-weight: 500;
}

.mu-guild-activity-row > span {
  color: #5c6066;
  font-size: 7px;
}

.mu-guild-members {
  grid-template-rows: 52px minmax(0, 1fr) 34px;
}

.mu-guild-member-table {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 9px;
}

.mu-guild-member-table > header,
.mu-guild-member-row {
  min-width: 500px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 55px 1fr 76px;
  align-items: center;
  gap: 8px;
}

.mu-guild-member-table > header {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--module-border);
  background: var(--module-surface-soft);
  color: #666b72;
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mu-guild-member-row {
  min-height: 47px;
  padding: 0 8px;
  border-right: 1px solid var(--module-border);
  border-bottom: 1px solid var(--module-border);
  border-left: 1px solid var(--module-border);
  background: rgba(18, 18, 18, 0.38);
  color: #8e9298;
  font-size: 8px;
}

.mu-guild-member-row.current {
  background: rgba(65, 56, 34, 0.2);
  box-shadow: inset 2px 0 0 #c6a457;
}

.mu-guild-member-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mu-guild-member-name > i {
  width: 24px;
  height: 24px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--module-border-strong);
  background: var(--module-item);
  color: #a6a9ae;
  font-style: normal;
}

.mu-guild-member-name strong {
  min-width: 0;
  overflow: hidden;
  color: #b8bbc0;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-guild-member-name small {
  color: var(--module-gold);
  font-size: 6px;
}

.mu-guild-member-row .role {
  color: #a6a9ae;
}

.mu-guild-member-row .status {
  display: flex;
  align-items: center;
  gap: 5px;
  text-transform: capitalize;
}

.mu-guild-member-row .status i {
  width: 5px;
  height: 5px;
  border: 1px solid #5b5f65;
  background: #44484e;
}

.mu-guild-member-row .status.online {
  color: #72b28a;
}

.mu-guild-member-row .status.online i {
  border-color: #4d9a6b;
  background: #62b47f;
  box-shadow: 0 0 7px rgba(98, 180, 127, 0.18);
}

.mu-guild-members > footer {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-top: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-guild-status {
  grid-area: status;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid var(--module-border);
  background: var(--module-surface);
  color: var(--module-subtle);
  font-size: 8px;
}

.mu-guild-status.success {
  color: #72c691;
}

.mu-guild-status.error {
  color: #c66e72;
}

/* City hunting selector */
.game-window.hunting-window-open {
  width: min(680px, 95vw);
  max-height: 90vh;
}

.hunting-window-open .window-body,
.warehouse-window-open .window-body,
.city-shop-window-open .window-body {
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.mu-hunting {
  min-height: 390px;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 38px;
  background: var(--module-surface);
}

.mu-hunting > header,
.mu-city-shop > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 14px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-hunting > header > div,
.mu-city-shop > header > div {
  display: grid;
  gap: 4px;
}

.mu-hunting > header span,
.mu-city-shop > header span {
  color: #82909b;
  font-size: 7px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mu-hunting > header strong,
.mu-city-shop > header strong {
  color: var(--module-title);
  font-size: 13px;
  font-weight: 500;
}

.mu-hunting > header p,
.mu-city-shop > header p {
  max-width: 330px;
  margin: 0;
  color: var(--module-subtle);
  font-size: 9px;
  line-height: 1.45;
  text-align: right;
}

.mu-hunting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.mu-hunting-area {
  min-width: 0;
  min-height: 126px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 6px 10px;
  position: relative;
  padding: 13px;
  border: 1px solid var(--module-border-strong);
  background:
    radial-gradient(circle at 85% 15%, rgba(143, 160, 173, 0.08), transparent 35%),
    var(--module-item);
  color: var(--module-text);
  cursor: pointer;
  text-align: left;
}

.mu-hunting-area:hover {
  border-color: rgba(196, 207, 215, 0.42);
  background-color: var(--module-item-hover);
  transform: translateY(-1px);
}

.mu-hunting-direction {
  grid-column: 1 / -1;
  color: #7f8e99;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mu-hunting-area > strong {
  color: #d5dade;
  font-size: 12px;
  font-weight: 500;
}

.mu-hunting-creatures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.mu-hunting-creatures i {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  border: 1px solid var(--module-border);
  background: rgba(18, 21, 25, 0.52);
  color: #9fa6ac;
  font-size: 8px;
  font-style: normal;
}

.mu-hunting-creatures b {
  color: #c5ccd1;
  font-size: 12px;
  font-weight: 400;
}

.mu-hunting-area > small {
  color: #6f777e;
  font-size: 7px;
}

.mu-hunting-area > em {
  position: absolute;
  top: 12px;
  right: 13px;
  color: #82909b;
  font-size: 14px;
  font-style: normal;
}

.mu-hunting > footer,
.mu-city-shop > footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-top: 1px solid var(--module-border);
  background: var(--module-surface-soft);
  color: var(--module-subtle);
  font-size: 8px;
}

.mu-hunting > footer button {
  min-width: 90px;
  height: 25px;
  margin-left: auto;
  border: 1px solid var(--module-border-strong);
  background: var(--module-item);
  color: var(--module-text);
  cursor: pointer;
  font-size: 8px;
}

/* Shared city Warehouse */
.game-window.warehouse-window-open,
.game-window.city-shop-window-open {
  width: min(620px, 95vw);
  max-height: 90vh;
}

.mu-warehouse {
  min-height: 450px;
  display: grid;
  grid-template-rows: 62px 82px minmax(0, 1fr) 34px;
  background: var(--module-surface);
}

.mu-warehouse-summary {
  display: grid;
  grid-template-columns: 1fr 30px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--module-border);
  background: var(--module-surface-soft);
}

.mu-warehouse-summary > div {
  display: grid;
  gap: 5px;
}

.mu-warehouse-summary > div:last-child {
  text-align: right;
}

.mu-warehouse-summary span,
.mu-warehouse-bank span,
.mu-warehouse-items span {
  color: #7e8b95;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mu-warehouse-summary strong {
  color: #d0d6da;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 13px;
  font-weight: 500;
}

.mu-warehouse-summary > i {
  color: #81909a;
  font-size: 16px;
  font-style: normal;
  text-align: center;
}

.mu-warehouse-bank,
.mu-warehouse-items {
  min-width: 0;
  padding: 9px 12px;
  border-bottom: 1px solid var(--module-border);
}

.mu-warehouse-bank > header,
.mu-warehouse-items > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mu-warehouse-bank header > div,
.mu-warehouse-items header > div {
  display: grid;
  gap: 3px;
}

.mu-warehouse-bank small,
.mu-warehouse-items small {
  color: var(--module-subtle);
  font-size: 7px;
}

.mu-warehouse-bank header > strong,
.mu-warehouse-items header > strong {
  color: #aeb6bc;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
  font-weight: 400;
}

.mu-warehouse-bank > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 8px;
}

.mu-warehouse-bank button {
  min-height: 31px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-item);
  color: #aeb5bb;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.mu-warehouse-bank button:hover:not(:disabled) {
  border-color: rgba(190, 202, 211, 0.42);
  background: var(--module-item-hover);
  color: #eef1f3;
}

.mu-warehouse-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.mu-warehouse-cell {
  aspect-ratio: 1;
  border: 1px solid var(--module-border);
  background: rgba(18, 21, 25, 0.48);
}

.mu-warehouse > footer {
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--module-subtle);
  font-size: 8px;
}

.mu-warehouse > footer.success { color: #72c691; }
.mu-warehouse > footer.error { color: #c66e72; }

/* Initial city vendor catalogs */
.mu-city-shop {
  min-height: 390px;
  display: grid;
  grid-template-rows: 66px minmax(0, 1fr) 34px;
  background: var(--module-surface);
}

.mu-city-shop > section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.mu-city-shop-item {
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--module-border-strong);
  background: var(--module-item);
}

.mu-city-shop-item > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--module-border-strong);
  background: rgba(17, 20, 24, 0.58);
  color: #c4cbd0;
  font-size: 17px;
  font-style: normal;
}

.mu-city-shop-item > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mu-city-shop-item strong {
  overflow: hidden;
  color: var(--module-title);
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mu-city-shop-item small {
  color: var(--module-subtle);
  font-size: 7px;
}

.mu-city-shop-item > span {
  color: #aeb7be;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
}

.mu-city-shop-item button {
  grid-column: 1 / -1;
  min-height: 25px;
  border: 1px solid var(--module-border);
  background: var(--module-surface-soft);
  color: #687179;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.map-entry,
.mission-entry,
.skill-entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 7px;
  padding: 10px;
  border: 1px solid #3b3b3b;
  background: #1a1a1a;
  font-size: 11px;
}

.map-entry small,
.mission-entry small,
.skill-entry small {
  grid-column: 1 / -1;
  color: #7d878f;
}

.window-list-value {
  color: #c7cdd1;
}

.account-menu {
  min-width: 190px;
}

.account-menu .button {
  width: 100%;
  margin-top: 8px;
}
