.game-dialog.updates-dialog { width: min(840px, calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 20px; overflow-y: auto; }
.updates-dialog .dialog-heading { margin-bottom: 9px; }
.updates-dialog .dialog-heading h2 { font-size: 21px; }
.updates-dialog .dialog-heading .icon-button { flex: 0 0 36px; }
.updates-page-link { margin-bottom: 16px; text-align: right; font-size: 13px; }
.updates-page-link a { color: #e0b967; text-underline-offset: 3px; }
.updates-page { width: min(900px, calc(100% - 32px)); margin: 32px auto; }
.updates-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #635336; }
.updates-page-heading h1 { margin: 6px 0 9px; color: #f5e7c8; font-size: 27px; }
.updates-page-heading p { color: #bac0b8; font-size: 14px; line-height: 1.7; }
.updates-page-heading .button { flex-shrink: 0; white-space: nowrap; }
.updates-page-heading .updates-game-name { color: #d6ae65; font-size: 13px; letter-spacing: .12em; }
.update-notes-list { display: grid; gap: 16px; min-width: 0; }
.update-note { min-width: 0; border: 1px solid #4d493c; border-radius: 6px; background: #111819; overflow-wrap: anywhere; }
.update-note > summary { position: relative; display: block; padding: 18px 46px 18px 18px; list-style: none; cursor: pointer; background: linear-gradient(120deg, #28241b, #172020); border-radius: 5px; }
.update-note > summary::-webkit-details-marker { display: none; }
.update-note > summary:hover { background: #2a2b20; }
.update-note > summary:focus-visible { outline: 2px solid #e0b967; outline-offset: 3px; }
.update-note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #b8bcb2; font-size: 13px; line-height: 1.6; }
.update-note-tag { padding: 1px 7px; color: #e5c68d; border: 1px solid #635336; border-radius: 3px; background: #211e16; }
.update-note-title { display: block; margin: 10px 0 8px; color: #f5e7c8; font-size: 18px; font-weight: 700; line-height: 1.55; }
.update-note-summary { display: block; color: #c3c7bc; font-size: 14px; line-height: 1.8; }
.update-note-toggle { position: absolute; right: 18px; top: 23px; width: 9px; height: 9px; border-right: 2px solid #e0b967; border-bottom: 2px solid #e0b967; transform: rotate(45deg); }
.update-note[open] > summary { border-bottom: 1px solid #4d493c; border-radius: 5px 5px 0 0; }
.update-note[open] .update-note-toggle { top: 28px; transform: rotate(225deg); }
.update-note-body { padding: 2px 20px 20px; color: #d6d9d0; font-size: 14px; line-height: 1.85; }
.update-note-section { margin-top: 22px; }
.update-note-section h4 { margin: 0 0 9px; color: #e9c888; font-size: 15px; line-height: 1.7; }
.update-note-section p { margin: 9px 0; }
.update-note-section ul { margin: 8px 0 0; padding-left: 20px; }
.update-note-section li + li { margin-top: 7px; }
.update-note-table-wrap { margin: 12px 0; }
.update-note table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.65; }
.update-note caption { margin-bottom: 7px; text-align: left; color: #b8bcb2; font-size: 13px; }
.update-note th, .update-note td { padding: 9px 10px; text-align: left; vertical-align: top; border: 1px solid #43483f; }
.update-note th { color: #e8d4ab; background: #24271f; font-weight: 600; }
.update-note tbody tr:nth-child(even) { background: #192120; }
.update-note-section .update-note-callout { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid #7aaab1; background: #182a2c; color: #d3e7e4; }
.update-note-section .update-note-callout.warning { border-left-color: #d4a45e; background: #30261b; color: #f4d7a9; }
@media (max-width: 480px) {
  .game-dialog.updates-dialog { padding: 13px; width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .updates-page { width: calc(100% - 24px); margin: 20px auto; }
  .updates-page-heading { flex-wrap: wrap; margin-bottom: 18px; }
  .update-note > summary { padding: 14px 34px 14px 13px; }
  .update-note-title { font-size: 17px; }
  .update-note-toggle { right: 14px; }
  .update-note-body { padding: 0 13px 15px; }
  .update-note th, .update-note td { padding: 8px 6px; }
}

:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0b0e10;
  color: #f2f0e9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  background: #0b0e10;
  color: #f2f0e9;
}

button,
input,
select { font: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #65a9d8;
  outline-offset: 2px;
}

h1,
h2,
h3,
p { margin: 0; }

h1 { font-size: 18px; font-weight: 600; }
h2 { font-size: 15px; font-weight: 600; }
.hidden { display: none !important; }
.muted { color: #aeb8b8; font-size: 13px; line-height: 1.45; }

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  background: #0f1315;
  border-left: 1px solid #2d373b;
  border-right: 1px solid #2d373b;
}

.app-header {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  background: #121719;
  border-bottom: 1px solid #394347;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #f2f0e9;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #765a2c;
  background: #1c1a15;
  color: #d6a85e;
  font-size: 13px;
  font-weight: 700;
}

.brand strong,
.brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 600; }
.brand small { margin-top: 2px; color: #aeb8b8; font-size: 13px; }
.header-actions { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; }
#openUpdatesBtn, #openLeaderboardBtn, #openSignInBtn, #openPremiumShopBtn, #switchCharacterBtn { flex: 0 0 auto; white-space: nowrap; }
.back-link { color: #d6a85e; font-size: 13px; text-decoration: none; }
.connection-state { color: #aeb8b8; font-size: 13px; }
.connection-state.online { color: #69c783; }

.icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #394347;
  border-radius: 4px;
  background: transparent;
  color: #d7dddd;
  cursor: pointer;
  font-size: 18px;
}

.surface {
  background: #182023;
  border: 1px solid #394347;
  border-radius: 6px;
}

.access-view,
.character-create {
  margin: 64px auto;
  padding: 22px;
}
.access-view { width: min(560px, calc(100% - 28px)); }
.character-create { width: min(980px, calc(100% - 28px)); }

.character-select-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.character-select-heading .muted { margin-top: 7px; }
.character-slot-count { color: #d6a85e; font-size: 13px; font-variant-numeric: tabular-nums; }
.character-roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 20px; }
.character-card { min-width: 0; min-height: 112px; display: grid; align-content: center; gap: 5px; padding: 13px; border: 1px solid #394347; border-radius: 4px; background: #121719; color: #f2f0e9; text-align: left; cursor: pointer; }
.character-card:hover { border-color: #657276; background: #1b2427; }
.character-card.active { border-color: #d6a85e; background: #211e17; }
.character-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.character-card span:not(.character-card-index), .character-card small { color: #aeb8b8; font-size: 13px; }
.character-card-index { color: #d6a85e; font-size: 13px; }
.character-card-empty { border-style: dashed; }
.character-card-empty strong { color: #aeb8b8; }

.access-view .muted { margin: 12px 0 18px; }
.message { min-height: 22px; margin-top: 12px; color: #e0a779; font-size: 13px; }
.fields { display: grid; gap: 10px; margin: 18px 0 12px; }

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #4c5957;
  border-radius: 4px;
  background: #0f1416;
  color: #f2f0e9;
  padding: 9px 11px;
}

.button,
button.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #765a2c;
  border-radius: 4px;
  background: #d6a85e;
  color: #17130d;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.workshop-actions > .button,
#confirmUpgradeBtn {
  transition: transform .08s ease, box-shadow .08s ease, filter .08s ease;
}
.workshop-actions > .button:not(:disabled):active,
#confirmUpgradeBtn:not(:disabled):active {
  transform: translateY(2px);
  filter: brightness(.94);
  box-shadow: inset 0 2px 5px rgba(34, 24, 11, .42), 0 0 0 #050606;
}
.workshop-actions > .button.synthesis-processing,
#confirmUpgradeBtn.is-processing {
  min-width: 132px;
  gap: 8px;
  color: #f2f0e9;
  background: #6b593b;
  border-color: #8d7448;
  opacity: .82;
}
.upgrade-processing-spinner {
  width: 13px;
  height: 13px;
  display: inline-block;
  border: 2px solid rgba(242, 240, 233, .35);
  border-top-color: #f2f0e9;
  border-radius: 50%;
  animation: upgrade-processing-spin .7s linear infinite;
}
@keyframes upgrade-processing-spin {
  to { transform: rotate(360deg); }
}

.button.secondary,
button.button.secondary { background: transparent; color: #e7d5b5; }
.button.danger,
button.button.danger { border-color: #9d4d48; background: #9d4d48; color: #fff; }
.button.danger:hover,
button.button.danger:hover { border-color: #c96b64; background: #b45751; }
.button.compact { min-height: 34px; padding: 6px 9px; }
.skill-entry-button { border-color: #b9883f; background: #2a241a; color: #f2c36d; }
.skill-entry-button:hover { border-color: #d6a85e; background: #332a1b; }
button:disabled { cursor: not-allowed; opacity: .45; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.game-view { min-width: 0; }
.character-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(240px, 420px) auto;
  align-items: center;
  gap: 22px;
  padding: 12px 16px;
  background: #151b1e;
  border-bottom: 1px solid #394347;
}

.character-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.character-identity h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.level-mark { color: #d6a85e; border: 1px solid #765a2c; padding: 4px 7px; font-size: 13px; white-space: nowrap; }
.experience-block { min-width: 0; width: 100%; }
.strip-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; color: #aeb8b8; }
.strip-label strong { min-width: 0; color: #f2f0e9; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.progress-track { height: 6px; background: #293033; overflow: hidden; }
.progress-fill { width: 0; height: 100%; background: #d6a85e; transition: width .25s ease; }
.master-experience-block { display: grid; gap: 4px; margin-top: 8px; }
.master-experience-block .strip-label { margin-bottom: 0; }
.master-experience-block .strip-label small { color: #d6a85e; font-size: 13px; font-weight: 500; }
.master-experience-block .progress-fill { background: #8f74c9; box-shadow: 0 0 8px rgba(143, 116, 201, .3); }
.strip-resources { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.strip-resources > span { display: flex; align-items: center; gap: 6px; color: #d7dddd; font-size: 13px; white-space: nowrap; }
.strip-resources b { color: #d6a85e; }

.game-layout {
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) 300px;
  gap: 1px;
  background: #394347;
  min-height: 680px;
}

.game-panel { min-width: 0; background: #121719; }
.character-panel,
.inventory-panel { padding: 14px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.panel-heading span { color: #aeb8b8; font-size: 13px; }
.inventory-panel > .panel-heading { flex-wrap: wrap; }
.inventory-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; margin-left: auto; max-width: 100%; }
.inventory-heading-actions .button { white-space: nowrap; }
.potion-backpack { margin: 0 0 10px; padding: 8px; border: 1px solid #3d4746; background: #0b1011; }
.subpanel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #e7d5b5; font-size: 13px; }
.subpanel-heading span { color: #aeb8b8; font-size: 13px; font-variant-numeric: tabular-nums; }
.inventory-grid.potion-backpack-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.potion-backpack-grid .inventory-slot { min-height: 46px; grid-template-rows: 1fr; padding: 4px; }
.potion-backpack-grid .inventory-slot .potion-icon { width: 32px; height: 32px; }
.potion-icon { position: relative; display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; overflow: visible; }
.potion-icon > img { display: block; width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.potion-quantity { position: absolute; right: -6px; bottom: -5px; min-width: 18px; padding: 1px 3px; border: 1px solid #111719; border-radius: 3px; background: #090c0d; color: #f2f0e9; font-size: 13px; font-weight: 700; line-height: 1.1; text-align: center; font-variant-numeric: tabular-nums; text-shadow: 0 1px 1px #000; }

.material-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; padding: 4px 5px; border: 1px solid #293236; background: #0b1011; }
.material-summary-label { color: #8f9a9c; font-size: 13px; }
.material-summary-item { min-width: 0; display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px; border: 1px solid #394347; background: #121719; color: #d7dddd; cursor: pointer; font-size: 13px; }
.material-summary-item:hover { border-color: #765a2c; color: #f0d393; }
.material-summary-icon { width: 20px !important; height: 20px !important; color: #f0c84e; }

.shared-jewels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 4px;
  margin: 0 0 10px;
  padding: 4px;
  border: 1px solid #3d4746;
  background: #0b1011;
}

.shared-jewel {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 3px;
  padding: 4px 3px;
  border: 1px solid #343e3d;
  background: #171f20;
  color: #f2f0e9;
  font-variant-numeric: tabular-nums;
}

.shared-jewel-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: auto;
}

.shared-jewel-image.is-missing {
  visibility: hidden;
}

.shared-jewel-quantity {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #e7d5b5;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.paperdoll {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  padding: 6px;
  background: #0f1416;
  border: 1px solid #293236;
}

.equipment-slot,
.inventory-slot,
.warehouse-item {
  min-width: 0;
  min-height: 32px;
  display: grid;
  align-content: center;
  padding: 5px 7px;
  border: 1px solid #394347;
  border-radius: 4px;
  background: #182023;
  color: #f2f0e9;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.equipment-slot:hover:not(:disabled):not([aria-disabled="true"]),
.inventory-slot:hover:not(:disabled),
.warehouse-item:hover:not(:disabled) { border-color: #657276; background: #20292c; }
.equipment-slot:disabled,
.equipment-slot[aria-disabled="true"] { cursor: default; opacity: 1; }
.equipment-slot-label { color: #8f9a9c; font-size: 13px; line-height: 1.2; }
.equipment-slot-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.25; }
.equipment-slot.empty .equipment-slot-name { color: #697578; font-weight: 400; }
.equipment-enhance { color: inherit; font-variant-numeric: tabular-nums; }

.equipment-name.enhance-base { color: #e6e9e7; }
.equipment-name.enhance-low { color: #83bce8; }
.equipment-name.enhance-mid { color: #72cf91; }
.equipment-name.enhance-high { color: #e4c35f; }
.equipment-name.enhance-very-high { color: #eb9562; }
.equipment-name.enhance-max { color: #d797eb; }
.equipment-name.enhance-base { --equipment-flow-base: #e6e9e7; }
.equipment-name.enhance-low { --equipment-flow-base: #83bce8; }
.equipment-name.enhance-mid { --equipment-flow-base: #72cf91; }
.equipment-name.enhance-high { --equipment-flow-base: #e4c35f; }
.equipment-name.enhance-very-high { --equipment-flow-base: #eb9562; }
.equipment-name.enhance-max { --equipment-flow-base: #d797eb; }
.stats-heading { margin-top: 18px; }
.stat-list { border-top: 1px solid #293236; }
.stat-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 7px 0; border-bottom: 1px solid #293236; color: #aeb8b8; font-size: 13px; }
.stat-row > span:first-child { min-width: 0; }
.stat-chance-value { white-space: nowrap; }
.stat-context { display: inline; margin-right: 6px; color: #7f8b8d; font-size: 13px; font-weight: 400; }
.stat-row strong { color: #f2f0e9; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-row.primary strong { color: #d6a85e; }
.stat-row.bonus strong { color: #7fd6a4; }
.stat-allocation { display: grid; gap: 8px; padding: 9px 0; border-bottom: 1px solid #39464a; color: #aeb8b8; font-size: 13px; }
.stat-allocation > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-allocation strong { color: #d6a85e; font-variant-numeric: tabular-nums; }
.stat-batches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.stat-batches button, .stat-value button { min-width: 28px; min-height: 28px; border: 1px solid #48575b; border-radius: 4px; background: #151c1e; color: #c4cdcd; cursor: pointer; font-size: 13px; }
.stat-batches button.active { border-color: #b9883f; color: #f2c36d; background: #2a241a; }
.stat-value { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.stat-value .stat-fruit-bonus { color: #7fd6a4; }
.stat-value .stat-earring-bonus { color: #ff4d4f; }
.stat-value .stat-set-bonus { color: #b9a0ff; }
.stat-source-note { margin: 8px 0 0; color: #aeb8b8; font-size: 13px; line-height: 1.5; }
.stat-value button { color: #d6a85e; font-size: 18px; line-height: 1; }
.stat-value button:disabled, .stat-batches button:disabled { cursor: default; opacity: .45; }
.progression-controls { display: grid; gap: 8px; margin-top: 14px; }
.progression-row { display: grid; gap: 7px; padding-top: 9px; border-top: 1px solid #293236; color: #aeb8b8; font-size: 13px; }
.progression-row > div { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.progression-row strong { color: #f2f0e9; font-weight: 500; }
.progression-row > small { color: #8f9a9c; font-size: 13px; line-height: 1.4; }
.progression-row button { min-height: 32px; border: 1px solid #765a2c; border-radius: 4px; background: transparent; color: #d6a85e; cursor: pointer; }
.guardian-reward-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.guardian-reward-actions button { flex: 1 1 120px; padding: 6px 9px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; color: #aeb8b8; font-size: 13px; padding-top: 9px; border-top: 1px solid #293236; }
.check input { width: 18px; min-height: 18px; margin: 0; }
.auto-sell-settings { display: grid; gap: 9px; padding-top: 9px; border-top: 1px solid #293236; }
.auto-sell-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; color: #aeb8b8; font-size: 13px; }
.auto-sell-heading strong { color: #d6a85e; font-weight: 500; }
.auto-sell-summary-list { display: grid; gap: 4px; }
.auto-sell-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 27px; padding: 4px 7px; border: 1px solid #293236; background: #121719; font-size: 13px; }
.auto-sell-summary-row span { color: #aeb8b8; }
.auto-sell-summary-row strong { color: #f0d393; font-weight: 500; text-align: right; }
.auto-sell-filter-dialog { width: min(1080px, calc(100% - 28px)); }
.auto-sell-filter-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
.auto-sell-filter-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #171a18; }
.auto-sell-filter-toolbar .auto-sell-filter-note { flex: 1 1 390px; min-width: 0; }
.auto-sell-wing-material-option,
.auto-sell-socket-option { display: flex; align-items: center; gap: 7px; margin-left: auto; padding: 8px 10px; color: #f0d393; font-size: 13px; line-height: 1.5; cursor: pointer; }
.auto-sell-wing-material-option input,
.auto-sell-socket-option input { width: 16px; min-height: 16px; flex: 0 0 16px; margin: 0; accent-color: #d6a85e; }
.auto-sell-filter-note { margin: 0; padding: 8px 10px; border-left: 2px solid #9b7539; background: #171a18; color: #c8d0cf; font-size: 13px; line-height: 1.5; }
.auto-sell-filter-table { overflow-x: auto; border: 1px solid #394347; background: #0d1213; scrollbar-color: #6a6b5f #111719; }
.auto-sell-filter-row { display: grid; grid-template-columns: 86px minmax(576px, 1fr); min-width: 662px; align-items: stretch; border-bottom: 1px solid #303a3b; }
.auto-sell-filter-row:last-child { border-bottom: 0; }
.auto-sell-filter-class { display: flex; align-items: center; padding: 9px 10px; border-right: 1px solid #394347; color: #f0d393; font-size: 14px; font-weight: 600; }
.auto-sell-filter-options { min-width: 576px; display: grid; grid-template-columns: repeat(6, minmax(96px, 1fr)); }
.auto-sell-filter-option { min-width: 0; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 6px; border-right: 1px solid #303a3b; color: #c8d0cf; cursor: pointer; font-size: 13px; text-align: center; white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.auto-sell-filter-option:last-child { border-right: 0; }
.auto-sell-filter-option:hover { background: #20251e; color: #f0d393; }
.auto-sell-filter-option.selected { background: #2a241a; color: #f0d393; box-shadow: inset 0 -2px 0 #d6a85e; }
.auto-sell-filter-option input { width: 15px; min-height: 15px; flex: 0 0 15px; margin: 0; accent-color: #d6a85e; }
.auto-potion-switches { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.auto-potion-switches .check { min-height: 30px; }
.potion-settings { display: grid; gap: 6px; padding-top: 9px; border-top: 1px solid #293236; }
.potion-setting-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 5px 7px; color: #aeb8b8; font-size: 13px; }
.potion-setting-kind { color: #d8dddd; }
.potion-setting-row select,
.potion-setting-row input { min-width: 0; min-height: 32px; padding: 4px 6px; font-size: 13px; }
.potion-threshold { grid-column: 2; display: grid; grid-template-columns: 1fr 48px auto; align-items: center; gap: 5px; }
.potion-threshold input { text-align: right; }

.battle-panel { display: flex; flex-direction: column; }
.battle-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #182023; border-bottom: 1px solid #394347; }
.battle-heading > div:first-child { min-width: 0; }
.battle-heading #mapMeta { overflow-wrap: anywhere; }
.battle-heading h2 { margin-bottom: 4px; }
.battle-heading-actions { display: flex; align-items: center; gap: 7px; }
.map-npc-panel { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: stretch; padding: 8px 12px; border-bottom: 1px solid #394347; background: #101618; }
.map-npc-heading { display: grid; align-content: center; gap: 4px; padding: 0 8px; border-left: 3px solid #69c783; }
.map-npc-heading span { color: #8f9a9c; font-size: 13px; }
.map-npc-heading strong { color: #d6a85e; font-size: 13px; }
.map-npc-list { container: map-npcs / inline-size; min-width: 0; display: grid; grid-auto-flow: row dense; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-content: start; gap: 6px; }
.map-npc-card { min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; align-content: start; gap: 7px; min-height: 48px; padding: 6px 8px; border: 1px solid #394347; border-radius: 4px; background: #182023; color: #f2f0e9; font-size: 13px; text-align: left; }
@media (min-width: 481px) {
  @container map-npcs (min-width: 426px) {
    .map-npc-card-wide { grid-column: span 2; }
  }
}
.map-npc-icon { display: grid; place-items: center; width: 26px; height: 26px; color: #d6a85e; border: 1px solid #765a2c; font-size: 16px; }
.map-npc-card strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.map-npc-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 5px; }
.map-npc-actions button { max-width: 100%; min-height: 28px; padding: 4px 8px; border: 1px solid #765a2c; border-radius: 3px; background: #211e17; color: #d6a85e; cursor: pointer; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.map-npc-actions button:hover { border-color: #d6a85e; color: #f0d393; }
.map-npc-empty { min-height: 48px; display: flex; align-items: center; padding: 7px 10px; border: 1px dashed #394347; color: #8f9a9c; font-size: 13px; }
.map-monster-panel { display: grid; gap: 8px; padding: 8px 12px; border-bottom: 1px solid #394347; background: #101618; }
.map-monster-section { min-width: 0; display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 10px; align-items: stretch; }
.map-monster-section.boss-section { padding-top: 8px; border-top: 1px solid #303a3c; }
.map-monster-heading { display: grid; align-content: center; gap: 4px; padding: 0 8px; border-left: 3px solid #c85852; }
.map-monster-heading span { color: #8f9a9c; font-size: 13px; }
.map-monster-heading strong { overflow: hidden; color: #f0d393; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.map-monster-list { min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; }
.map-monster-entry { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 4px; }
.map-monster-card { position: relative; min-width: 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 48px; padding: 6px 8px; border: 1px solid #394347; border-radius: 4px; background: #182023; color: #f2f0e9; cursor: pointer; text-align: left; }
.map-monster-card:hover { border-color: #c85852; background: #241918; }
.map-monster-card.selected { border-color: #c85852; background: #2b1d1c; }
.map-monster-card.boss { border-color: #584b34; }
.map-monster-card.boss:hover { border-color: #d6a85e; background: #241f16; }
.map-monster-card.boss.selected { border-color: #d6a85e; background: #2a2418; }
.map-monster-card.boss.active { box-shadow: inset 3px 0 0 #de736d; }
.map-monster-icon { display: grid; place-items: center; width: 26px; height: 26px; color: #de736d; border: 1px solid #80433f; font-size: 16px; }
.map-monster-card > span:not(.map-monster-icon) { min-width: 0; display: grid; gap: 2px; }
.map-monster-card strong { overflow: hidden; padding-right: 60px; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.map-monster-card small { overflow: hidden; color: #aeb8b8; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.map-monster-card b { position: absolute; top: 5px; right: 8px; color: #de736d; font-size: 13px; font-weight: 500; white-space: nowrap; }
.map-monster-card.selected b { color: #f0d393; }
.monster-info-button { width: 32px; min-height: 48px; padding: 0; border: 1px solid #394347; border-radius: 4px; background: #111719; color: #9fc4cd; cursor: pointer; font: 600 15px/1 serif; }
.monster-info-button:hover, .monster-info-button:focus-visible { border-color: #69a6b3; color: #d5edf2; outline: none; }
.monster-info-button.boss { border-color: #584b34; color: #d6a85e; }
.map-monster-empty { min-height: 48px; display: flex; align-items: center; padding: 7px 10px; border: 1px dashed #394347; color: #8f9a9c; font-size: 13px; }
.battle-scene,
.town-scene { position: relative; background: #101618; overflow: hidden; }
.battle-scene { min-height: 455px; }
.town-scene { min-height: 150px; }
.town-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48px;
  background: #1b2427;
  clip-path: polygon(0 50%, 16% 18%, 30% 78%, 44% 24%, 58% 66%, 72% 10%, 86% 54%, 100% 22%, 100% 100%, 0 100%);
}

.battle-toolbar { position: relative; z-index: 3; min-height: 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; padding: 7px 16px; border-bottom: 1px solid rgba(71, 83, 85, .9); background: #0b1011; }
.experience-potion-buff { overflow-wrap: anywhere; }
.battle-buff-stack { flex: 0 1 auto; max-width: 100%; display: grid; gap: 4px; }
.battle-buff { max-width: 100%; padding: 5px 8px; border: 1px solid #315b73; background: #101c22; color: #65a9d8; font-size: 13px; }
.support-buff-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid #394347; background: #101a16; }
.support-buff-heading { display: grid; gap: 2px; min-width: 52px; }
.support-buff-heading strong { color: #79d18e; font-size: 13px; letter-spacing: .04em; }
.support-buff-heading span { color: #8f9a9c; font-size: 13px; }
.support-buff-list { min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.support-buff-bar { border-top: 1px solid #394347; }
.map-mechanics { min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.map-mechanics span { padding: 4px 7px; border-left: 2px solid #d6a85e; background: #211e17; color: #e4d2aa; font-size: 13px; }
.combat-pack-control { min-width: 0; display: flex; align-items: center; gap: 8px; margin-left: auto; color: #aeb8b8; font-size: 13px; }
.combat-pack-options { display: flex; gap: 3px; }
.combat-pack-options button { min-width: 28px; min-height: 28px; padding: 2px 6px; border: 1px solid #465255; border-radius: 3px; background: #182023; color: #c7cecc; cursor: pointer; font-size: 13px; }
.combat-pack-options button[aria-pressed="true"] { border-color: #d6a85e; background: #3a2e1e; color: #f0d393; }
.combat-pack-options button:disabled { cursor: not-allowed; opacity: .42; }
.battlefield-canvas { width: 100%; height: auto; aspect-ratio: 1000 / 470; display: block; background: #101618; }
.combatants { min-height: 272px; display: grid; grid-template-columns: minmax(140px, 1fr) 112px minmax(140px, 1fr); align-items: center; gap: 18px; padding: 62px 26px 18px; position: relative; z-index: 1; }
.combat-hud-overlay { min-height: auto; position: relative; grid-template-columns: repeat(2, minmax(170px, 1fr)); align-items: stretch; padding: 8px 20px; background: #0b1011; pointer-events: none; }
.combat-hud-overlay .combatant { justify-items: stretch; gap: 3px; padding: 8px 10px; border: 1px solid rgba(71, 83, 85, .7); border-radius: 4px; background: rgba(7, 11, 12, .82); text-align: left; }
.combat-hud-overlay .combatant-stage,
.combat-hud-overlay .combatant-symbol { display: none; }
.combat-hud-overlay .combat-health { width: 100%; }
.combat-hud-overlay .combatant > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combatant { min-width: 0; display: grid; justify-items: center; gap: 6px; text-align: center; }
.combatant-stage { position: relative; }
.combatant-symbol { width: 82px; height: 82px; display: grid; place-items: center; border: 1px solid #394347; background: #182023; color: #d6a85e; font-size: 36px; }
.enemy-combatant .combatant-symbol { color: #de736d; }
.combatant.is-attacking .combatant-symbol { animation: combat-lunge 260ms ease-out; border-color: #d6a85e; }
.combatant.is-hit .combatant-symbol { animation: combat-hit 320ms ease-out; border-color: #de736d; }
.combatant strong { font-size: 14px; font-weight: 600; }
.combatant span { color: #aeb8b8; font-size: 13px; }
.combat-health { width: min(190px, 100%); display: grid; gap: 4px; }
.combat-mana { margin-top: 2px; }
.combat-health-label { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; font-variant-numeric: tabular-nums; }
.combat-health-label span { color: #aeb8b8; font-size: 13px; }
.combat-health-label strong { overflow: hidden; color: #f2f0e9; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.combat-health-track { width: 100%; height: 10px; overflow: hidden; border: 1px solid #30393c; background: #080b0c; }
.combat-health-fill { width: 0; height: 100%; transition: width 240ms ease-out; }
.player-health-fill { background: #55a86b; }
.player-mana-fill { background: #4f86c6; }
.player-sd-fill { background: #b38a42; }
.enemy-health-fill { background: #c85852; }
.damage-number-layer { position: absolute; inset: -30px -50px 0; z-index: 3; overflow: visible; pointer-events: none; }
.damage-number { position: absolute; top: 18px; left: 50%; min-width: max-content; color: #f2f0e9; font-size: 20px; font-weight: 700; line-height: 1; text-shadow: 0 2px 3px #000; transform: translateX(-50%); animation: damage-rise 900ms ease-out forwards; }
.damage-number.player-damage { color: #ffcf72; }
.damage-number.enemy-damage { color: #ff7971; }
.damage-number.critical { color: #59a9ff; font-size: 23px; }
.damage-number.excellent { color: #68ed8c; font-size: 23px; }
.damage-number small { display: block; margin-top: 3px; color: #d6d1c6; font-size: 13px; font-weight: 500; }
@keyframes combat-lunge { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(var(--lunge-distance, 10px)); } }
@keyframes combat-hit { 0%, 100% { transform: translateX(0); filter: none; } 30% { transform: translateX(-5px); filter: brightness(1.6); } 60% { transform: translateX(4px); } }
@keyframes damage-rise { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.82); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -32px) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .combatant.is-attacking .combatant-symbol, .combatant.is-hit .combatant-symbol { animation: none; }
  .damage-number { animation-duration: 1ms; }
}

.town-scene { display: grid; align-content: center; gap: 22px; padding: 22px 20px 52px; }
.town-title { position: relative; z-index: 1; text-align: center; }
.town-symbol { display: block; color: #69c783; font-size: 30px; line-height: 1; }
.town-title h2 { margin-top: 6px; font-size: 17px; }
.town-title p { margin-top: 4px; color: #aeb8b8; font-size: 13px; }
.town-services { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.town-services button { min-height: 86px; display: grid; place-items: center; align-content: center; gap: 4px; border: 1px solid #394347; border-radius: 4px; background: #182023; color: #f2f0e9; cursor: pointer; }
.town-services button > span { color: #d6a85e; font-size: 22px; }
.town-services strong { font-size: 13px; font-weight: 600; }
.town-services small { color: #aeb8b8; font-size: 13px; }

.battle-status { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #394347; border-bottom: 1px solid #293236; background: #182023; }
.battle-status > div { display: grid; gap: 3px; color: #aeb8b8; font-size: 13px; }
.battle-status strong { color: #f2f0e9; font-weight: 500; }
.town-button { background: #101c22 !important; border-color: #315b73 !important; color: #65a9d8 !important; }
.event-log { flex: 1; min-height: 150px; display: grid; align-content: start; gap: 5px; padding: 12px 14px; background: #0e1214; }
.event-row { display: grid; grid-template-columns: 54px 1fr; gap: 8px; color: #aeb8b8; font-size: 13px; line-height: 1.45; }
.event-row time { color: #778284; font-variant-numeric: tabular-nums; }
.event-row.drop { color: #b58bd4; }
.event-row.positive { color: #69c783; }
.event-row.error { color: #de736d; }

.inventory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; min-height: 206px; align-content: start; }
.inventory-slot[aria-pressed="true"] { outline: 2px solid #d6a85e; outline-offset: -2px; background: #211e17; }
.inventory-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; line-height: 1.25; }
.inventory-empty { grid-column: 1 / -1; padding: 28px 8px; text-align: center; color: #778284; font-size: 13px; }
.item-detail { min-height: 186px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #293236; }
.item-detail.equipment-detail { min-height: 0; }
.item-detail.equipment-detail .item-title strong { min-width: 0; overflow-wrap: anywhere; }
.item-title { display: flex; align-items: center; }
.item-title strong { font-size: 14px; font-weight: 600; }
.item-detail p { --equipment-flow-base: #aeb8b8; margin-top: 8px; color: #aeb8b8; font-size: 13px; line-height: 1.5; }
.item-detail-line { display: block; }
.item-delta { --equipment-flow-base: #69c783; margin-top: 8px; color: #69c783; font-size: 13px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.item-actions button { flex: 1 1 105px; min-height: 36px; border: 1px solid #765a2c; border-radius: 4px; background: #1c1a15; color: #d6a85e; cursor: pointer; font-size: 13px; }
.item-actions button.secondary { border-color: #394347; background: transparent; color: #aeb8b8; }
.warehouse-dialog { width: min(720px, calc(100% - 28px)); }
.warehouse-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.warehouse-heading strong { color: #d6a85e; font-size: 13px; }
.warehouse-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.warehouse-tab { flex: 1; min-height: 34px; border: 1px solid #4a5351; border-radius: 4px; background: #182022; color: #aeb9b4; cursor: pointer; font: inherit; }
.warehouse-tab[aria-selected="true"] { border-color: #b98a43; background: #302719; color: #f1d397; }
.warehouse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.warehouse-section-label { grid-column: 1 / -1; margin: 5px 0 0; padding-left: 8px; border-left: 3px solid #765a2c; color: #d6a85e; font-size: 13px; font-weight: 600; }

body.item-dragging,
body.item-dragging * { cursor: grabbing !important; }
.is-drag-source { opacity: .42; }
.drag-valid { border-color: #4f9d69 !important; box-shadow: inset 0 0 0 1px rgba(79, 157, 105, .55); }
.drag-invalid { opacity: .38; }
.drag-hover { border-color: #78d596 !important; background: #15271c !important; box-shadow: inset 0 0 0 2px #78d596, 0 0 0 2px rgba(120, 213, 150, .16); opacity: 1; }
.inventory-panel.drag-valid { box-shadow: inset 0 0 0 2px rgba(79, 157, 105, .75); }
.inventory-panel.drag-hover { box-shadow: inset 0 0 0 3px #78d596; }
.drag-avatar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1300;
  min-width: 138px;
  max-width: min(240px, calc(100vw - 24px));
  display: none;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid #d6a85e;
  border-radius: 4px;
  background: #151b1e;
  color: #f2f0e9;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.drag-avatar.is-visible { display: grid; }
.drag-avatar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.drag-avatar span { color: #aeb8b8; font-size: 13px; }
.drag-action-tray { display: none; }

.item-tooltip {
  position: fixed;
  z-index: 1000;
  width: min(330px, calc(100vw - 20px));
  min-width: min(260px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border: 1px solid #000;
  border-radius: 0;
  background: rgba(0, 0, 0, .8);
  color: #fff;
  box-shadow: none;
  transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.item-tooltip.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.item-tooltip-title { --equipment-flow-base: #f2f0e9; min-height: 31px; padding: 7px 12px 5px; overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center; text-shadow: 0 1px 2px #000; }
.item-tooltip-lines { padding: 1px 12px 10px; text-align: center; }
.item-tooltip-line { --equipment-flow-base: #fff; min-width: 0; padding: 2px 0; overflow-wrap: anywhere; color: #fff; font-size: 13px; line-height: 1.35; }
.item-tooltip-line.requirement.met { --equipment-flow-base: #fff; color: #fff; }
.item-tooltip-line.requirement.unmet { --equipment-flow-base: #ff331a; color: #ff331a; }
.item-tooltip-line.class-requirement.unmet { --equipment-flow-base: #fff; color: #fff; background: #a00000; }
.item-tooltip-line.skill { --equipment-flow-base: #80b3ff; color: #80b3ff; }
.item-tooltip-line.additional,
.item-tooltip-line.luck { --equipment-flow-base: #80b3ff; color: #80b3ff; }
.item-tooltip-line.set { --equipment-flow-base: #808080; color: #808080; }
.item-tooltip-line.set.active { --equipment-flow-base: #00ff00; color: #00ff00; }
.item-tooltip-line.excellent { --equipment-flow-base: #1aff80; color: #1aff80; }
.item-tooltip-line.archangel-power { --equipment-flow-base: #ffd34d; color: #ffd34d; }
.item-tooltip-line.protection { --equipment-flow-base: #ff331a; color: #ff331a; }
.archangel-preview, .archangel-shop-preview { min-width: 0; margin-top: 8px; border: 1px solid #615239; border-radius: 6px; background: #14120f; }
.archangel-preview summary, .archangel-shop-preview summary { padding: 9px; font-size: 13px; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.archangel-shop-preview > .archangel-preview { margin: 6px; }
.archangel-workshop select { min-width: 0; max-width: 100%; font-size: 13px; }
.archangel-preview .item-tooltip-title { white-space: normal; overflow-wrap: anywhere; }
.item-tooltip-line.socket.filled { --equipment-flow-base: #b366ff; color: #b366ff; }
.item-tooltip-line.socket.empty { --equipment-flow-base: #666; color: #666; }
.monster-drop-tooltip {
  position: fixed;
  z-index: 1001;
  width: min(600px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border: 1px solid #80504b;
  border-radius: 3px;
  background: rgba(8, 11, 12, .96);
  color: #f2f0e9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.monster-drop-tooltip.is-visible { visibility: visible; opacity: 1; transform: translateY(0); pointer-events: auto; }
.monster-drop-title { position: sticky; top: 0; z-index: 1; min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #4b3431; background: #211817; }
.monster-drop-close { flex: 0 0 28px; width: 28px; min-height: 28px; padding: 0; font-size: 18px; line-height: 1; }
.monster-drop-title span { color: #c8928d; font-size: 13px; }
.monster-drop-title strong { overflow-wrap: anywhere; color: #f0d393; font-size: 14px; }
.monster-drop-body { padding: 7px 12px 10px; }
.monster-drop-summary { display: flex; flex-wrap: wrap; gap: 0 16px; border-bottom: 1px solid #273033; }
.monster-drop-row { min-height: 29px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #273033; font-size: 13px; }
.monster-drop-summary .monster-drop-row { min-width: 0; flex: 0 0 auto; justify-content: flex-start; border-bottom: 0; gap: 5px; white-space: nowrap; }
.monster-drop-row span { min-width: 0; overflow-wrap: anywhere; }
.monster-drop-row strong { flex: 0 0 auto; color: #f2f0e9; font-size: 13px; font-weight: 600; }
.monster-drop-row.stat strong { color: #f0d393; }
.monster-drop-row.currency strong { color: #f0d393; }
.monster-drop-row.special strong { color: #7fd6a4; }
.monster-drop-row.skill strong { color: #e3b86d; }
.monster-drop-row.equipment strong { color: #80b3ff; }
.monster-drop-gems { min-height: 29px; gap: 12px; }
.monster-drop-gems strong { min-width: 0; flex: 1 1 0; overflow-wrap: anywhere; font-weight: 500; line-height: 1.45; }
.monster-drop-equipment { margin-top: 10px; padding-top: 8px; border-top: 1px solid #4b3431; }
.monster-drop-equipment-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 8px; padding-bottom: 5px; color: #f0d393; font-size: 13px; font-weight: 600; }
.monster-drop-equipment-title small { display: inline-flex; align-items: center; gap: 4px; color: #ffd66b; font-size: 13px; font-weight: 500; white-space: nowrap; }
.monster-drop-equipment-title small i { display: inline-block; flex: 0 0 auto; color: #ffd66b; font-size: 13px; font-style: normal; line-height: 1; text-shadow: 0 0 5px rgba(255, 214, 107, .65); }
.monster-drop-equipment-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.monster-drop-equipment-group { min-width: 0; border: 1px solid #273033; background: rgba(19, 29, 31, .72); }
.monster-drop-equipment-heading { min-height: 29px; display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 4px 7px; border-bottom: 1px solid #273033; background: rgba(33, 24, 23, .72); }
.monster-drop-equipment-heading span { min-width: 0; overflow-wrap: anywhere; color: #d8dddd; font-size: 13px; font-weight: 600; }
.monster-drop-equipment-heading strong { flex: 0 0 auto; color: #f0d393; font-size: 13px; font-weight: 500; }
.monster-drop-equipment-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: start; gap: 0 10px; padding: 4px 7px 6px; }
.monster-drop-equipment-item { min-width: 0; overflow-wrap: anywhere; color: #f2f0e9; font-size: 13px; line-height: 1.55; }
.monster-drop-equipment-item.excellent { color: #7fd6a4; }
.monster-drop-equipment-item.socket { color: #b366ff; }
.monster-drop-equipment-item.class-usable { font-weight: 600; }
.monster-drop-equipment-item.class-usable::before { content: '★'; display: inline-block; margin-right: 3px; color: #ffd66b; font-size: 13px; }
.monster-drop-equipment-group.socket { border-color: #755095; }
.monster-drop-equipment-group.socket .monster-drop-equipment-heading span { color: #b366ff; }
.monster-drop-equipment-group.excellent .monster-drop-equipment-heading span { color: #7fd6a4; }
.monster-drop-equipment-group.blood-angel { border-color: rgba(205, 62, 81, .68); background: rgba(42, 17, 27, .82); }
.monster-drop-equipment-group.blood-angel .monster-drop-equipment-heading { border-bottom-color: rgba(205, 62, 81, .58); background: rgba(74, 23, 35, .78); }
.monster-drop-equipment-group.blood-angel .monster-drop-equipment-heading span { color: #ff9aa3; }
.monster-drop-equipment-item.blood-angel { color: #ff7f8a; font-weight: 600; text-shadow: 0 0 5px rgba(255, 71, 96, .35); }
.monster-drop-equipment-empty { grid-column: 1 / -1; padding: 5px 0 4px; color: #8f9a9c; font-size: 13px; }
.monster-drop-pool { padding-top: 8px; }
.monster-drop-pool > span { color: #8f9a9c; font-size: 13px; }
.monster-drop-pool p { margin: 4px 0; overflow-wrap: anywhere; color: #d8dddd; font-size: 13px; line-height: 1.5; }
@media (max-width: 560px) {
  .monster-drop-equipment-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .monster-drop-equipment-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.equipment-drop-tooltip {
  position: fixed;
  z-index: 1002;
  width: min(430px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  border: 1px solid #4d865e;
  border-radius: 3px;
  background: rgba(8, 11, 12, .97);
  color: #f2f0e9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.equipment-drop-tooltip.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.equipment-codex-tooltip-title { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid #294a36; background: #132119; }
.equipment-codex-tooltip-title span { color: #80c995; font-size: 13px; }
.equipment-codex-tooltip-title strong { overflow-wrap: anywhere; color: #f2f0e9; font-size: 14px; text-align: right; }
.equipment-codex-tooltip-body { padding: 6px 10px 8px; }
.equipment-codex-tooltip-meta { padding-bottom: 4px; color: #aeb8b8; font-size: 13px; }
.equipment-codex-detail-heading { padding: 4px 0 2px; border-top: 1px solid #273033; color: #80c995; font-size: 13px; }
.equipment-codex-attribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; padding-bottom: 4px; }
.equipment-codex-attribute-row { min-width: 0; min-height: 22px; display: flex; justify-content: space-between; align-items: center; gap: 6px; border-bottom: 1px solid #20282a; font-size: 13px; line-height: 1.2; }
.equipment-codex-attribute-row.wide { grid-column: 1 / -1; align-items: flex-start; padding: 2px 0; }
.equipment-codex-attribute-row span { flex: 0 0 auto; color: #8f9a9c; }
.equipment-codex-attribute-row b { min-width: 0; overflow-wrap: anywhere; color: #f2f0e9; font-size: 13px; font-weight: 500; text-align: right; }
.equipment-codex-drop-heading { padding: 4px 0 2px; border-top: 1px solid #273033; color: #f0d393; font-size: 13px; }
.equipment-codex-drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 5px; }
.equipment-codex-drop-row { min-width: 0; min-height: 29px; display: flex; align-items: center; padding: 3px 5px; border: 1px solid #273033; background: rgba(19, 29, 31, .65); }
.equipment-codex-drop-row > span { min-width: 0; width: 100%; display: grid; gap: 1px; }
.equipment-codex-monster-heading { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.equipment-codex-monster-heading strong { min-width: 0; }
.equipment-codex-monster-level { flex: 0 0 auto; color: #f0d393; font-size: 13px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.equipment-codex-drop-row strong { overflow: hidden; color: #f2f0e9; font-size: 13px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.equipment-codex-drop-row small { overflow: hidden; color: #8f9a9c; font-size: 13px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.equipment-codex-no-drop { color: #8f9a9c; font-size: 13px; }
.game-dialog.equipment-codex-dialog {
  width: min(980px, calc(100% - 28px));
  height: calc(100vh - 36px);
  height: calc(100dvh - 36px);
  overflow: visible;
}
.equipment-codex-dialog[open] { display: flex; flex-direction: column; }
.equipment-codex-dialog > .dialog-heading,
.equipment-codex-controls { flex: 0 0 auto; }
.equipment-codex-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(180px, 260px); gap: 10px; align-items: center; margin-bottom: 10px; }
.equipment-codex-toolbar .segmented-control { display: flex; flex-wrap: wrap; gap: 4px; }
.equipment-codex-toolbar .segmented-control button { min-height: 34px; padding: 4px 10px; }
.equipment-codex-sort { min-width: 0; }
.equipment-codex-classes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
.equipment-codex-classes button { min-width: 0; min-height: 34px; padding: 4px 8px; font-size: 13px; white-space: nowrap; }
@media (max-width: 600px) {
  .equipment-codex-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.equipment-codex-search { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px; align-items: center; color: #aeb8b8; font-size: 13px; }
.equipment-codex-search input { min-width: 0; min-height: 34px; padding: 6px 9px; border: 1px solid #394347; border-radius: 3px; background: #0d1213; color: #f2f0e9; font-size: 13px; }
.equipment-codex-summary { min-height: 23px; margin-bottom: 6px; color: #8f9a9c; font-size: 13px; }
.equipment-codex-grid { min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; scrollbar-gutter: stable; }
.equipment-codex-grid:focus-visible { outline-offset: -2px; }
.equipment-codex-section { margin-top: 10px; }
.equipment-codex-section:first-child { margin-top: 0; }
.equipment-codex-section-heading { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 35px; padding: 7px 9px; border-left: 3px solid #d6a85e; border-bottom: 1px solid #2b3435; background: #171e20; box-shadow: 0 5px 8px rgba(5, 7, 8, .48); }
.equipment-codex-section-heading strong { color: #f0d393; font-size: 14px; }
.equipment-codex-section-heading span { color: #8f9a9c; font-size: 13px; }
.equipment-codex-group-heading { position: sticky; top: 35px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 30px; margin-top: 7px; padding: 5px 8px; border-bottom: 1px solid #273033; background: #12191a; color: #d7dddd; box-shadow: 0 3px 6px rgba(5, 7, 8, .4); }
.equipment-codex-group-heading strong { color: #a9d5b5; font-size: 13px; }
.equipment-codex-group-heading span { color: #8f9a9c; font-size: 13px; }
.equipment-codex-grid-inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding-top: 5px; }
.equipment-codex-series-list { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding: 5px 0; }
.equipment-codex-series-hint { display: none; margin: 5px 0 0; color: #aeb8b8; font-size: 13px; }
@media (max-width: 800px) {
  .equipment-codex-series-hint { display: block; }
}
.equipment-codex-series-columns, .equipment-codex-series-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-width: 740px; gap: 5px; }
.equipment-codex-series-columns { padding: 5px 0; color: #aeb8b8; font-size: 13px; text-align: center; }
.equipment-codex-series-row + .equipment-codex-series-row { margin-top: 5px; }
.equipment-codex-series-slot { min-width: 0; display: grid; gap: 5px; }
.equipment-codex-series-slot:empty { min-height: 62px; border: 1px dashed #273033; border-radius: 3px; background: #101517; }
.equipment-codex-series-slot > .equipment-codex-card { width: 100%; height: 100%; }
.equipment-codex-series-row .equipment-codex-copy strong, .equipment-codex-series-row .equipment-codex-copy small { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.equipment-codex-card { min-width: 0; min-height: 62px; display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 7px; padding: 7px 8px; border: 1px solid #394347; border-radius: 3px; background: #121719; color: #f2f0e9; cursor: help; text-align: left; }
.equipment-codex-card:hover, .equipment-codex-card:focus-visible { border-color: #d6a85e; background: #211e17; outline: none; }
.equipment-codex-icon { display: grid; place-items: center; width: 30px; height: 30px; color: #d6a85e; border: 1px solid #765a2c; }
.equipment-codex-icon .game-icon { width: 21px; height: 21px; }
.equipment-codex-copy { min-width: 0; display: grid; gap: 3px; }
.equipment-codex-copy strong { overflow: hidden; font-size: 13px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.equipment-codex-copy small { overflow: hidden; color: #aeb8b8; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.equipment-codex-empty { padding: 35px 12px; border: 1px dashed #394347; color: #8f9a9c; font-size: 13px; text-align: center; }
.item-link { color: #d6a85e; text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }
.item-link:focus-visible { outline: 2px solid #d6a85e; outline-offset: 2px; }
.quality-ordinary { color: #fff; }
.quality-material { color: #ffcc1a; }
.quality-enhanced { color: #ffcc1a; }
.quality-special { color: #80b3ff; }
.quality-excellent { --equipment-flow-base: #1aff80; color: #1aff80; }
.quality-set,
.quality-ancient { --equipment-flow-base: #00ff00; color: #00ff00; background: #3c3cc8; }
.quality-socket { --equipment-flow-base: #b366ff; color: #b366ff; }
.quality-premium { --equipment-flow-base: #ff4d4f; color: #ff4d4f; }

/* Equipment surfaces use item traits for the name color. Enhancement levels
   remain visible in the label but no longer change its color. */
.equipment-name.equipment-quality-ordinary { --equipment-flow-base: #fff; color: #fff; }
.equipment-name.equipment-quality-luck { --equipment-flow-base: #80b3ff; color: #80b3ff; }
.equipment-name.equipment-quality-excellent { --equipment-flow-base: #1aff80; color: #1aff80; }
.equipment-name.equipment-quality-set,
.equipment-name.equipment-quality-ancient { --equipment-flow-base: #00ff00; color: #00ff00; background: #3c3cc8; }
.equipment-name.equipment-quality-socket { --equipment-flow-base: #b366ff; color: #b366ff; }
.equipment-name.equipment-quality-premium { --equipment-flow-base: #ff4d4f; color: #ff4d4f; }

.game-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #4c5957;
  border-radius: 6px;
  background: #121719;
  color: #f2f0e9;
  padding: 16px;
}
.game-dialog::backdrop { background: rgba(5, 7, 8, .84); }
.game-dialog.purchase-confirm-dialog {
  width: min(460px, calc(100% - 28px));
  max-height: min(520px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border-color: #806335;
  background: #12191a;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .62), 0 0 0 1px rgba(214, 168, 94, .12);
}
.purchase-confirm-dialog .dialog-heading { margin: 0; padding: 17px 18px 13px; background: linear-gradient(135deg, #1d211e, #141a1a); border-bottom-color: #4c4a3d; }
.purchase-confirm-dialog .dialog-heading h2 { color: #f4dfaa; font-size: 17px; }
.purchase-confirm-dialog .dialog-heading p { color: #aeb8b8; }
.purchase-confirm-card { display: grid; gap: 12px; margin: 16px 18px 0; padding: 15px; border: 1px solid #4c5957; border-left: 3px solid #d6a85e; background: #0d1213; }
.purchase-confirm-card > strong { color: #f2f0e9; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.purchase-confirm-cost { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid #293536; color: #aeb8b8; font-size: 13px; }
.purchase-confirm-cost b { color: #f0d393; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.purchase-confirm-card p { color: #c4ccca; font-size: 13px; line-height: 1.6; }
.purchase-confirm-actions { justify-content: flex-end; margin: 16px 18px 18px; }
.purchase-confirm-actions .button { min-width: 96px; }
.purchase-confirm-actions .button.secondary { border-color: #4c5957; background: #182023; color: #c6cfcc; }
.purchase-confirm-actions .button.danger { border-color: #a95850; background: #8d3e39; color: #fff5ef; }
.purchase-confirm-actions .button:hover:not(:disabled) { filter: brightness(1.08); }
.character-action-dialog { width: min(500px, calc(100% - 28px)); }
.character-action-dialog label { color: #c8d0cf; font-size: 13px; }
.character-dialog-actions { justify-content: flex-end; }
.character-delete-confirm { display: grid; gap: 9px; padding: 13px; border-left: 3px solid #9d4d48; background: #1b1414; }
.character-delete-confirm strong { color: #efb1ad; font-size: 15px; }
.character-delete-confirm p { color: #c8b5b3; font-size: 13px; line-height: 1.6; }
.character-delete-confirm.final { border-color: #de736d; background: #241515; }
.bulk-sell-dialog { width: min(500px, calc(100% - 28px)); }
.bulk-sell-confirm { display: grid; gap: 11px; }
.bulk-sell-confirm > p { color: #c8d0cf; font-size: 13px; line-height: 1.6; }
.bulk-sell-confirm.final { padding: 13px; border-left: 3px solid #de736d; background: #241515; }
.bulk-sell-confirm.final > strong { color: #efb1ad; font-size: 15px; }
.bulk-sell-summary { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 12px; border: 1px solid #4c5957; background: #0d1213; }
.bulk-sell-summary span { color: #aeb8b8; font-size: 13px; }
.bulk-sell-summary strong { color: #d6a85e; font-size: 14px; font-variant-numeric: tabular-nums; }
.job-advance-dialog { width: min(560px, calc(100% - 28px)); }
.job-current-summary { display: grid; grid-template-columns: 1fr auto; gap: 7px 16px; padding: 12px; border: 1px solid #4c5957; background: #0d1213; }
.job-current-summary span { color: #aeb8b8; font-size: 13px; }
.job-current-summary strong { color: #f0d393; font-size: 14px; text-align: right; }
.job-stage-list { display: grid; gap: 7px; margin-top: 12px; }
.job-stage { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px; border: 1px solid #3e4848; background: #151d1f; }
.job-stage.done { border-color: #466c51; }
.job-stage.ready { border-color: #9b7539; background: #211e17; }
.job-stage-marker { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #566160; color: #aeb8b8; font-size: 13px; font-weight: 700; }
.job-stage.done .job-stage-marker { border-color: #4f9d69; color: #78d596; }
.job-stage.ready .job-stage-marker { border-color: #d6a85e; color: #f0d393; }
.job-stage-copy { min-width: 0; display: grid; gap: 4px; }
.job-stage-copy > div { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.job-stage-copy strong { color: #f2f0e9; font-size: 14px; }
.job-stage-copy span { flex: 0 0 auto; color: #aeb8b8; font-size: 13px; }
.job-stage.done .job-stage-copy span { color: #78d596; }
.job-stage.ready .job-stage-copy span { color: #f0d393; }
.job-stage-copy p, .job-stage-copy small, .job-location-note, .job-cap-notice { color: #aeb8b8; font-size: 13px; line-height: 1.5; }
.job-stage-copy small { color: #d2bf96; }
.job-cap-notice { margin-top: 10px; padding: 9px 11px; border-left: 3px solid #b9883f; background: #211e17; color: #e4c88e; }
.job-location-note { margin-top: 10px; }
.job-advance-actions { justify-content: flex-end; }
.trade-dialog[open] {
  position: fixed;
  top: 128px;
  right: max(314px, calc((100vw - 1440px) / 2 + 314px));
  left: auto;
  width: min(620px, calc(100vw - 330px));
  max-height: calc(100vh - 144px);
  margin: 0;
  z-index: 40;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
}
.trade-dialog.drag-valid { border-color: #4f9d69; box-shadow: inset 0 0 0 1px rgba(79, 157, 105, .55), 0 14px 36px rgba(0, 0, 0, .5); }
.trade-dialog.drag-hover { border-color: #78d596; box-shadow: inset 0 0 0 2px #78d596, 0 14px 36px rgba(0, 0, 0, .5); }
.trade-content { min-height: 84px; }
.potion-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.potion-shop-toolbar > span { color: #aeb8b8; font-size: 13px; }
.potion-shop-toolbar .segmented-control { width: 176px; }
.potion-shop-toolbar .segmented-control button { min-height: 34px; }
.shop-service-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; padding: 13px 14px; border: 1px solid #765a2c; background: #1d1b16; }
.shop-service-card > div { min-width: 0; display: grid; gap: 4px; }
.shop-service-card strong { color: #f0d18a; font-size: 16px; }
.shop-service-card p { margin: 0; color: #b9c1bf; font-size: 13px; }
.shop-service-card button { flex: 0 0 auto; min-height: 36px; padding: 7px 12px; border: 1px solid #a77d3d; border-radius: 3px; background: #2c2518; color: #f0d18a; cursor: pointer; }
.shop-service-card button:disabled { border-color: #394347; background: #151a1c; color: #7f898b; cursor: not-allowed; }
.shop-stock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.shop-stock-item {
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  overflow: hidden;
  border: 1px solid #394347;
  border-radius: 3px;
  background: #182023;
  color: #f2f0e9;
  text-align: left;
  cursor: grab;
}
.shop-stock-item:hover { border-color: #657276; background: #20292c; }
.shop-stock-item.unavailable { color: #7f898b; }
.shop-stock-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.shop-stock-item small { display: block; color: #9fa9a9; font-size: 13px; font-variant-numeric: tabular-nums; }
.shop-stock-item .shop-stock-action { display: block; margin-top: 4px; color: #f0d18a; font-size: 13px; font-weight: 600; }
.shop-stock-item.unavailable .shop-stock-action { color: #7f898b; }
.shop-grid { display: grid; gap: 8px; }
.shop-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid #394347; background: #182023; }
.shop-item > div { display: grid; gap: 5px; }
.shop-item strong { font-size: 14px; }
.shop-item span { color: #aeb8b8; font-size: 13px; }
.equipment-shop-dialog { width: min(620px, calc(100% - 28px)); }
.guardian-picker-dialog { width: min(520px, calc(100% - 28px)); }
.guardian-picker-options { display: grid; gap: 9px; }
.guardian-picker-option { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid #394347; background: #172022; color: #f2f0e9; text-align: left; cursor: pointer; }
.guardian-picker-option:hover:not(:disabled), .guardian-picker-option.selected { border-color: #d6a85e; background: #241f15; }
.guardian-picker-option.locked { cursor: not-allowed; opacity: .58; }
.guardian-picker-option > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.guardian-picker-option strong { font-size: 15px; }
.guardian-picker-option small { color: #aeb8b8; font-size: 13px; line-height: 1.4; }
.guardian-picker-option > b { color: #d6a85e; font-size: 13px; white-space: nowrap; }
.guardian-picker-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.guardian-picker-actions button.guardian-action-button { min-height: 30px; padding: 5px 8px; border-color: #8e672e; background: #c99a49; box-shadow: inset 0 0 0 1px rgba(255, 224, 157, .25), 0 1px 0 #050606; color: #17130d; font-size: 13px; transition: transform .08s ease, box-shadow .08s ease, filter .08s ease; }
.guardian-picker-actions button.guardian-action-button:not(:disabled):active { transform: translateY(2px); filter: brightness(.94); box-shadow: inset 0 2px 5px rgba(34, 24, 11, .42), 0 0 0 #050606; }
.guardian-picker-actions button.guardian-action-button.secondary { background: #171a18; color: #e5c987; }
.guardian-picker-actions button.guardian-action-button.guardian-action-processing { min-width: 70px; gap: 6px; background: #6b593b; border-color: #8d7448; color: #f2f0e9; opacity: .82; }
.guardian-picker-actions button.guardian-action-button:disabled { opacity: .45; }
.guardian-picker-option small.missing-materials { color: #d9917d; }
.guardian-picker-hint { margin: 14px 2px 0; color: #c7c0a9; font-size: 13px; line-height: 1.45; }
.guardian-fusion-panel { display: grid; gap: 7px; margin-top: 14px; padding: 12px; border: 1px solid #725b2e; background: #211d13; }
.guardian-fusion-panel h3 { color: #f0d393; font-size: 15px; }
.guardian-fusion-panel p { margin: 0; color: #c7c0a9; font-size: 13px; line-height: 1.45; }
.guardian-picker-icon { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #5a482b; background: #0a0e0f; color: #d6a85e; }
.guardian-picker-icon .game-icon { width: 25px; height: 25px; }
.equipment-vendor-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 10px 12px; border-left: 3px solid #b9883f; background: #0f1416; }
.equipment-vendor-summary > div { display: grid; gap: 3px; }
.equipment-vendor-summary span,
.equipment-vendor-summary p { color: #aeb8b8; font-size: 13px; }
.equipment-vendor-summary strong { color: #d6a85e; font-size: 14px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog-heading p { margin-top: 4px; color: #aeb8b8; font-size: 13px; }
.map-grid { display: grid; gap: 13px; }
.map-group { display: grid; gap: 7px; }
.map-group h3 { padding-left: 8px; border-left: 3px solid #765a2c; color: #d6a85e; font-size: 14px; font-weight: 600; }
.map-group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dungeon-grid { display: grid; gap: 14px; }
.dungeon-section { display: grid; gap: 9px; padding: 11px; border: 1px solid #394347; background: #101719; }
.dungeon-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #303a3a; }
.dungeon-section-heading > div { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 8px; }
.dungeon-section-heading strong { color: #f0d393; font-size: 15px; }
.dungeon-section-heading small { grid-column: 2; color: #aeb8b8; font-size: 13px; }
.dungeon-attempts { flex: 0 0 auto; color: #d6a85e; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.dungeon-attempts small { color: #aeb8b8; font-size: 13px; }
.dungeon-tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dungeon-tier-card { min-width: 0; display: grid; gap: 6px; padding: 10px; border: 1px solid #465250; background: #182023; color: #f2f0e9; text-align: left; cursor: pointer; }
.dungeon-tier-card:hover:not(:disabled) { border-color: #d6a85e; background: #241f15; }
.dungeon-tier-card:disabled { cursor: not-allowed; opacity: .58; }
.dungeon-tier-card.is-locked { background: #151b1c; }
.dungeon-tier-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dungeon-tier-heading strong { color: #f0d393; font-size: 14px; }
.dungeon-tier-heading b { color: #aeb8b8; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dungeon-tier-reward { min-height: 20px; color: #69c783; font-size: 13px; line-height: 1.45; }
.dungeon-tier-status { color: #d6a85e; font-size: 13px; }
.map-card,
.dungeon-card { min-height: 108px; display: grid; align-content: center; gap: 5px; padding: 11px; border: 1px solid #394347; border-radius: 4px; background: #182023; color: #f2f0e9; text-align: left; cursor: pointer; }
.map-card strong,
.dungeon-card strong { font-size: 14px; font-weight: 600; }
.map-card span,
.dungeon-card span { color: #aeb8b8; font-size: 13px; }
.map-card.current { border-color: #d6a85e; background: #211e17; }
.map-card.town strong { color: #69c783; }
.dungeon-card .reward { color: #d6a85e; }
.workshop-dialog { width: min(660px, calc(100% - 28px)); }
.game-dialog.premium-shop-dialog { width: min(860px, calc(100% - 28px)); height: min(780px, calc(100vh - 28px)); height: min(780px, calc(100dvh - 28px)); max-height: none; overflow: hidden; padding: 20px; border-color: #78613c; background: radial-gradient(ellipse at top left, #29251c 0, #151c1d 45%, #101719 100%); box-shadow: 0 24px 80px #0009, inset 0 1px 0 #f0d39320; }
.premium-shop-dialog[open] { display: flex; flex-direction: column; }
.premium-dialog-heading { flex-shrink: 0; margin-bottom: 18px; }
.premium-dialog-heading > div { min-width: 0; }
.premium-kicker { display: block; margin-bottom: 5px; color: #d6a85e; font-size: 13px; letter-spacing: .12em; }
.premium-dialog-heading h2 { color: #f5e7c8; font-size: 23px; letter-spacing: .04em; }
.premium-dialog-heading .icon-button { flex-shrink: 0; border-color: #675839; background: #d6a85e0a; color: #e7d5b5; }
.leaderboard-dialog { width: min(980px, calc(100% - 28px)); }
.leaderboard-content { min-height: 420px; }
.leaderboard-loading { min-height: 360px; display: grid; place-items: center; color: #aeb8b8; font-size: 14px; }
.leaderboard-loading.error { color: #de736d; }
.leaderboard-layout { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0, 1fr); gap: 12px; }
.leaderboard-list { max-height: min(66vh, 620px); overflow: auto; border: 1px solid #3d4746; background: #090c0d; }
.leaderboard-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 30px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-bottom: 1px solid #303938; background: #151c1e; color: #f2f0e9; text-align: left; cursor: pointer; }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row:hover { background: #1d2628; }
.leaderboard-row.active { background: #292317; box-shadow: inset 3px 0 0 #d6a85e; }
.leaderboard-row.own .leaderboard-player small { color: #69c783; }
.leaderboard-rank { color: #d6a85e; font-size: 15px; font-variant-numeric: tabular-nums; text-align: center; }
.leaderboard-class-icon { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #4c5553; background: #0a0e0f; color: #d6a85e; }
.leaderboard-class-icon .game-icon { width: 20px; height: 20px; }
.leaderboard-player { min-width: 0; display: grid; gap: 3px; }
.leaderboard-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2; }
.leaderboard-name.level-color-white { --leaderboard-name-color: #f2f0e9; color: var(--leaderboard-name-color); }
.leaderboard-name.level-color-blue { --leaderboard-name-color: #70b8ff; color: var(--leaderboard-name-color); }
.leaderboard-name.level-color-purple { --leaderboard-name-color: #c18cff; color: var(--leaderboard-name-color); }
.leaderboard-name.level-color-orange { --leaderboard-name-color: #ffad62; color: var(--leaderboard-name-color); }
.leaderboard-name.level-color-red { --leaderboard-name-color: #ff6969; color: var(--leaderboard-name-color); }
.leaderboard-name.rank-first { font-size: 17px; }
.leaderboard-name.rank-top-three { font-size: 16px; }
.leaderboard-name.rank-top-six { font-size: 15px; }
.leaderboard-name.rank-standard { font-size: 14px; }
.leaderboard-name.monthly-card-name {
  background: linear-gradient(100deg, var(--leaderboard-name-color) 0%, var(--leaderboard-name-color) 38%, #fff 50%, var(--leaderboard-name-color) 62%, var(--leaderboard-name-color) 100%);
  background-size: 240% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: leaderboard-name-flow 2.8s linear infinite;
}
@keyframes leaderboard-name-flow { from { background-position: 140% 0; } to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .leaderboard-name.monthly-card-name { animation: none; background: none; color: var(--leaderboard-name-color); } }
.leaderboard-player small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aeb8b8; font-size: 13px; }
.leaderboard-level { color: #f0d393; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.leaderboard-build { min-width: 0; }
.leaderboard-build-heading { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; padding: 9px 12px; border-left: 3px solid #d6a85e; background: #171e20; }
.leaderboard-build-heading > div { min-width: 0; display: grid; gap: 3px; }
.leaderboard-build-heading > div:last-child { text-align: right; }
.leaderboard-build-heading strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f0d393; font-size: 14px; }
.leaderboard-build-heading span { color: #aeb8b8; font-size: 13px; }
.leaderboard-equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.leaderboard-equipment-slot { min-width: 0; min-height: 58px; display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #444e4d; background: #172022; color: #f2f0e9; text-align: left; cursor: help; }
.leaderboard-equipment-slot:hover { border-color: #a77d3d; background: #241f15; }
.leaderboard-equipment-slot.empty { cursor: default; opacity: .58; }
.leaderboard-equipment-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #4c5553; background: #0a0e0f; color: #d6a85e; }
.leaderboard-equipment-icon .game-icon { width: 23px; height: 23px; }
.leaderboard-equipment-slot > span:last-child { min-width: 0; display: grid; gap: 3px; }
.leaderboard-equipment-slot small { color: #8f9a9c; font-size: 13px; }
.leaderboard-equipment-slot strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.premium-wallet { flex-shrink: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.premium-wallet > div { --wallet-accent: #e2b96f; min-width: 0; display: grid; gap: 5px; padding: 11px 13px; border: 1px solid #3a423e; border-top: 2px solid var(--wallet-accent); border-radius: 6px; background: #0c1316a6; }
.premium-wallet > .diamond { --wallet-accent: #84cdec; }
.premium-wallet > .bound-diamond { --wallet-accent: #b4a0e4; }
.premium-wallet > .points { --wallet-accent: #8bc9a1; }
.premium-wallet span { color: #acb7b6; font-size: 13px; }
.premium-wallet strong { overflow-wrap: anywhere; color: var(--wallet-accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.premium-tabs { flex-shrink: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; padding: 5px; border: 1px solid #39423e; border-radius: 8px; background: #090f11a6; }
.premium-tab { min-width: 0; min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #aeb8b8; cursor: pointer; text-align: left; }
.premium-tab:hover { background: #242b29; color: #f0dfbf; }
.premium-tab.is-active { border-color: #94713d; background: linear-gradient(120deg, #3d301d, #29261e); color: #f6d89e; box-shadow: inset 0 1px 0 #f0d39322; }
.premium-tab-index { color: #71817d; font-size: 16px; font-variant-numeric: tabular-nums; }
.premium-tab.is-active .premium-tab-index { color: #d6a85e; }
.premium-tab > span:last-child { min-width: 0; display: grid; gap: 3px; }
.premium-tab strong { font-size: 14px; white-space: nowrap; }
.premium-tab small { color: #9eaaa7; font-size: 13px; }
.premium-tab.is-active small { color: #c6b390; }
.premium-tab-panel { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #665c45 transparent; padding: 0 3px 3px; margin-top: 18px; }
.premium-tab-panel[hidden] { display: none !important; }
.premium-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.premium-section-heading > div { min-width: 0; display: grid; gap: 4px; }
.premium-section-heading h3 { color: #f2e6cd; font-size: 16px; }
.premium-section-heading span { color: #a9b5b2; font-size: 13px; line-height: 1.5; }
.premium-section-badge { flex-shrink: 0; padding: 4px 8px; border: 1px solid #645437; border-radius: 4px; color: #d7bd8d; background: #30271966; font-size: 13px; font-weight: 500; }
.diamond-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diamond-package { min-width: 0; min-height: 156px; display: grid; justify-items: center; align-content: center; gap: 8px; padding: 16px 10px 12px; border: 1px solid #59675f; border-radius: 7px; background: radial-gradient(ellipse at top, #26383d, #151e20 80%); color: #f2f0e9; cursor: pointer; text-align: center; }
.diamond-package:hover:not(:disabled) { border-color: #d6a85e; background: radial-gradient(ellipse at top, #34494b, #1c2626 80%); }
.diamond-package:disabled { border-color: #394347; opacity: 1; cursor: not-allowed; }
.diamond-package-icon { display: grid; place-items: center; color: #92d5ec; }
.diamond-package-icon .game-icon { width: 28px; height: 28px; }
.diamond-package strong { color: #e2f4fa; font-size: 23px; font-variant-numeric: tabular-nums; }
.diamond-package strong small { font-size: 13px; font-weight: 500; color: #afc3c5; }
.diamond-package-price { color: #e2b96f; font-size: 14px; }
.diamond-package-action { width: 100%; margin-top: 2px; padding-top: 9px; border-top: 1px solid #46534c; color: #cde5dd; font-size: 13px; }
.diamond-package:disabled .diamond-package-action { color: #9ba8a5; }
.premium-shop-stock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
#premiumPointRewards { grid-template-columns: minmax(0, 1fr); }
.premium-empty { grid-column: 1 / -1; min-height: 150px; display: grid; place-items: center; padding: 20px; border: 1px dashed #46534c; border-radius: 7px; color: #aeb8b8; font-size: 13px; }
.premium-product { min-width: 0; width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; gap: 13px 12px; padding: 16px; border: 1px solid #3c4a47; border-radius: 7px; background: linear-gradient(135deg, #1d292a, #141d20); }
.premium-product-featured { grid-column: 1 / -1; border-color: #82704a; background: linear-gradient(115deg, #302a1e, #1b2422); }
.premium-product.is-ready { border-color: #637e54; background: linear-gradient(135deg, #263323, #182320); }
.premium-product.is-claimed { border-color: #3b4c49; }
.premium-product-emblem { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #536564; border-radius: 6px; background: #0d161a; color: #91c9df; }
.premium-product-featured .premium-product-emblem { border-color: #806d42; color: #e6c282; background: #252116; }
.premium-product-icon { width: 30px; height: 30px; object-fit: contain; }
.premium-product-copy { min-width: 0; display: grid; align-content: start; gap: 7px; line-height: 1.6; overflow-wrap: anywhere; }
.premium-product-copy strong { color: #f1e4c9; font-size: 15px; line-height: 1.45; }
.premium-product-copy strong.quality-premium { color: #ff4d4f; }
.premium-reward-preview { grid-column: 1 / -1; }
.premium-reward-preview .archangel-preview-body { padding: 0 9px 9px; }
.premium-product-copy > span { color: #bcc9c6; font-size: 13px; }
.premium-product-copy small { color: #94bb9d; font-size: 13px; }
.premium-product-footer { grid-column: 1 / -1; align-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #3d4943; }
.premium-product-kind { color: #b8a681; font-size: 13px; }
.premium-product-buy { flex: 0 0 auto; min-height: 38px; max-width: 100%; font-variant-numeric: tabular-nums; }
.premium-product-buy:disabled { opacity: 1; border-color: #4b5550; background: #2b3632; color: #a5b3ac; }
.premium-reward-progress { grid-column: 1 / -1; display: grid; gap: 9px; margin-top: 6px; }
.premium-reward-progress > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; font-size: 13px; color: #afbeb3; }
.premium-reward-progress strong { color: #ead09b; font-size: 13px; font-variant-numeric: tabular-nums; }
.premium-progress-track { height: 7px; overflow: hidden; border-radius: 4px; background: #0a1213; }
.premium-progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9d773d, #e4c07d); }
.premium-reward.is-claimed .premium-progress-track > span { background: #63937a; }
#premiumShopMessage { flex-shrink: 0; min-height: 0; padding: 10px 12px; border: 1px solid #6d5838; border-radius: 5px; background: #302719; line-height: 1.5; }
#premiumShopMessage:empty { margin: 0; padding: 0; border: 0; }
@media (max-width: 620px) {
  .game-dialog.premium-shop-dialog { width: calc(100% - 16px); height: calc(100vh - 20px); height: calc(100dvh - 20px); padding: 13px; }
  .premium-dialog-heading { margin-bottom: 12px; }
  .premium-dialog-heading h2 { font-size: 20px; }
  .premium-tabs { gap: 3px; margin-top: 12px; padding: 4px; }
  .premium-tab { gap: 5px; padding: 8px 4px; text-align: center; }
  .premium-tab-index { display: none; }
  .premium-tab strong { font-size: 13px; }
  .premium-tab-panel { margin-top: 14px; }
  .premium-shop-stock { grid-template-columns: minmax(0, 1fr); }
  .diamond-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-product { padding: 13px; }
  .premium-section-badge { display: none; }
}
.sign-in-dialog { width: min(720px, calc(100% - 28px)); }
.sign-in-schedule { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.sign-in-day { min-width: 0; min-height: 116px; display: grid; align-content: space-between; gap: 8px; padding: 9px 7px; border: 1px solid #394347; background: #121719; text-align: left; color: #f2f0e9; }
.sign-in-day.is-today { border-color: #d6a85e; background: #201b13; }
.sign-in-day.is-yesterday { border-color: #5e8db0; }
.sign-in-day:disabled { opacity: .62; cursor: not-allowed; }
.sign-in-day strong { font-size: 13px; }
.sign-in-day span { color: #d6a85e; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.sign-in-day small { color: #8f9a9c; font-size: 13px; line-height: 1.35; }
.combat-skill-summary { display: grid; grid-template-columns: minmax(150px, 1.25fr) repeat(2, minmax(112px, .75fr)) minmax(240px, 1.5fr); gap: 1px; border-top: 1px solid #394347; border-bottom: 1px solid #394347; background: #293236; }
.combat-skill-summary > div { min-width: 0; display: grid; align-content: center; gap: 3px; padding: 9px 11px; background: #121719; }
.combat-skill-summary span { color: #8f9a9c; font-size: 13px; }
.combat-skill-summary strong { overflow-wrap: anywhere; color: #f2f0e9; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.combat-skill-summary .combat-skill-primary strong { color: #d6a85e; }
.combat-active-effects { display: flex !important; align-items: center; flex-wrap: wrap; gap: 5px; }
.active-effect { min-width: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid #467553; background: #142119; }
.active-effect strong { color: #79d18e; font-size: 13px; }
.active-effect em { max-width: 34ch; overflow: hidden; color: #b7d7bd; font-size: 13px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.active-effect small { color: #aeb8b8; font-size: 13px; font-variant-numeric: tabular-nums; }
.active-effect-empty { color: #7f898b !important; font-size: 13px; }
.skill-dialog { width: min(820px, calc(100% - 28px)); }
.master-skill-section { display: grid; gap: 10px; margin: 14px 0 18px; padding: 14px; border: 1px solid rgba(191, 150, 72, .36); border-radius: 12px; background: rgba(55, 38, 20, .32); }
.master-skill-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.master-skill-heading h3, .master-skill-locked h3 { margin: 0; color: #f1d18b; }
.master-skill-heading p, .master-skill-locked p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.master-exp-track { display: grid; gap: 4px; }
.master-exp-track small { color: var(--muted); font-size: 13px; }
.master-skill-list { display: grid; gap: 8px; }
.master-skill-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid rgba(255,255,255,.08); border-radius: 9px; background: rgba(0,0,0,.12); }
.master-skill-row.active { border-color: rgba(191, 150, 72, .48); }
.master-skill-copy { min-width: 0; display: grid; gap: 3px; }
.master-skill-copy strong { color: #f4e1b0; font-size: 14px; }
.master-skill-copy strong small { color: #d8b869; font-size: 13px; font-weight: 600; }
.master-skill-copy span, .master-skill-copy em { color: var(--muted); font-size: 13px; font-style: normal; }
.master-skill-copy em { color: #caa96c; }
.master-skill-locked { background: rgba(0,0,0,.16); }
@media (max-width: 480px) {
  .master-skill-heading { align-items: stretch; flex-direction: column; }
  .master-skill-heading .button { width: 100%; }
  .master-skill-row { align-items: stretch; flex-direction: column; }
  .master-skill-row .skill-action { width: 100%; }
}
.skill-overview { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(360px, 2fr) auto; gap: 12px; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #394347; background: #0f1416; }
.skill-overview-primary { display: grid; align-content: center; gap: 3px; }
.skill-overview-primary > span,
.skill-overview-primary > small { color: #aeb8b8; font-size: 13px; }
.skill-overview-primary > strong { color: #d6a85e; font-size: 14px; }
.skill-runtime-metrics { min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(84px, 1fr)); gap: 1px; background: #293236; }
.skill-runtime-metrics > span { min-width: 0; display: grid; gap: 3px; padding: 7px 8px; background: #121719; }
.skill-runtime-metrics small { color: #8f9a9c; font-size: 13px; }
.skill-runtime-metrics strong { overflow-wrap: anywhere; color: #d7dddd; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.skill-runtime-metrics strong.negative { color: #e99a95; }
.skill-auto-button { min-height: 38px; padding: 7px 12px; border: 1px solid #394347; border-radius: 4px; background: transparent; color: #aeb8b8; cursor: pointer; }
.skill-auto-button[aria-pressed="true"] { border-color: #765a2c; background: #211e17; color: #d6a85e; }
.skill-effect-section,
.skill-section { display: grid; gap: 7px; }
.skill-effect-section { margin-bottom: 13px; }
.skill-effect-section h3,
.skill-section h3 { padding-left: 8px; border-left: 3px solid #765a2c; color: #d6a85e; font-size: 14px; font-weight: 600; }
.skill-active-effects { min-height: 38px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 7px 9px; border: 1px solid #293236; background: #121719; }
.skill-sections { display: grid; gap: 15px; }
.skill-list { display: grid; gap: 7px; }
.skill-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid #394347; background: #182023; }
.skill-row.active { border-color: #765a2c; background: #211e17; }
.skill-row.locked { background: #121719; }
.skill-info { min-width: 0; display: grid; gap: 5px; }
.skill-title { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.skill-title strong { font-size: 14px; }
.skill-tag { padding: 2px 5px; border: 1px solid #4c5957; color: #aeb8b8; font-size: 13px; }
.skill-tag.active { border-color: #765a2c; color: #d6a85e; }
.skill-tag.enabled { border-color: #467553; color: #79d18e; }
.skill-tag.locked { border-color: #573d3b; color: #c7827e; }
.skill-description { color: #aeb8b8; font-size: 13px; line-height: 1.4; }
.skill-effect-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; color: #79d18e; font-size: 13px; line-height: 1.4; }
.skill-effect-values span { color: #8f9a9c; }
.skill-effect-values strong { color: #79d18e; font-size: 13px; font-weight: 600; }
.skill-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: #8f9a9c; font-size: 13px; font-variant-numeric: tabular-nums; }
.skill-action { min-width: 96px; min-height: 36px; padding: 7px 10px; border: 1px solid #765a2c; border-radius: 4px; background: transparent; color: #d6a85e; cursor: pointer; }
.skill-action.enabled { border-color: #467553; background: #142119; color: #79d18e; }
.workshop-form { display: grid; gap: 14px; }
.workshop-field { display: grid; gap: 7px; }
.workshop-field > label,
.workshop-label { color: #aeb8b8; font-size: 13px; }
.workshop-summary { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #394347; background: #0f1416; }
.workshop-summary > div { min-width: 0; display: grid; gap: 4px; padding: 11px; border-right: 1px solid #293236; }
.workshop-summary > div:last-child { border-right: 0; }
.workshop-summary span { color: #aeb8b8; font-size: 13px; }
.workshop-summary strong { overflow-wrap: anywhere; color: #f2f0e9; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.workshop-summary strong.accent { color: #d6a85e; }
.workshop-summary strong.danger { color: #de736d; }
.workshop-costs { display: flex; flex-wrap: wrap; gap: 7px; }
.workshop-costs span { padding: 6px 8px; border: 1px solid #394347; background: #182023; color: #d7dddd; font-size: 13px; }
.workshop-costs span.missing { border-color: #7a3f3b; color: #de736d; }
.workshop-costs span.virtual-material-cost { border-color: #8d6f39; background: #29251b; color: #f1d38b; }
.workshop-note { min-height: 42px; padding: 9px 10px; border-left: 3px solid #4c5957; background: #182023; color: #aeb8b8; font-size: 13px; line-height: 1.5; }
.workshop-note.danger { border-left-color: #de736d; color: #e99a95; }
.workshop-actions { display: flex; justify-content: flex-end; gap: 8px; }
.socket-gem-dialog { max-height: calc(100dvh - 28px); overflow-y: auto; }
.socket-gem-dialog-heading { align-items: center; }
.socket-gem-dialog-title { min-width: 0; }
.socket-gem-header-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-left: auto; }
.socket-gem-header-actions .button { white-space: nowrap; }
.segmented-control.socket-gem-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.socket-gem-tabs button { min-width: 0; padding: 6px 4px; overflow-wrap: anywhere; line-height: 1.25; }
.socket-punch-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel-soft); font-size: 13px; }
.socket-punch-summary strong { color: var(--accent); font-size: 16px; }
.socket-recycle-summary,
.socket-bulk-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel-soft); font-size: 13px; }
.socket-recycle-summary span,
.socket-bulk-summary span { color: #aeb8b8; }
.socket-recycle-summary strong,
.socket-bulk-summary strong { color: var(--accent); font-size: 14px; text-align: right; }
.socket-recycle-actions { flex-wrap: wrap; }
.socket-gem-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.socket-gem-slot { min-width: 0; min-height: 66px; display: grid; align-content: center; gap: 5px; padding: 8px 6px; border: 1px solid #394347; background: #12191a; color: #c8d0ca; text-align: left; cursor: pointer; }
.socket-gem-slot:hover, .socket-gem-slot.selected { border-color: #d6a85e; background: #241f15; }
.socket-gem-slot strong { color: #d6a85e; font-size: 13px; }
.socket-gem-slot span { min-width: 0; color: #aeb8b8; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.stat-socket-bonus { color: #b985e9; }
.upgrade-scroll-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.upgrade-scroll-option { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; padding: 9px 10px; border: 1px solid #394347; background: #182023; color: #d7dddd; cursor: pointer; }
.upgrade-scroll-option:has(input:checked) { border-color: #a77d3d; background: #241f15; }
.upgrade-scroll-option:has(input:disabled) { cursor: not-allowed; opacity: .65; }
.upgrade-scroll-option input { margin-top: 2px; accent-color: #d6a85e; }
.upgrade-scroll-option span { min-width: 0; display: grid; gap: 3px; }
.upgrade-scroll-option strong { overflow-wrap: anywhere; color: #f0d393; font-size: 13px; font-weight: 600; }
.upgrade-scroll-option small { color: #aeb8b8; font-size: 13px; line-height: 1.4; }
.segmented-control { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.segmented-control.two { grid-template-columns: repeat(2, 1fr); }
.segmented-control.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.segmented-control button { min-height: 38px; border: 1px solid #394347; border-radius: 4px; background: transparent; color: #aeb8b8; cursor: pointer; font-size: 13px; }
.segmented-control button[aria-pressed="true"] { border-color: #765a2c; background: #211e17; color: #d6a85e; }
.jewel-balances { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #293236; border: 1px solid #293236; }
.jewel-balances > div { min-width: 0; display: grid; gap: 3px; padding: 9px; background: #121719; }
.jewel-balances span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aeb8b8; font-size: 13px; }
.jewel-balances strong { color: #d6a85e; font-size: 14px; font-weight: 600; }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .game-layout { grid-template-columns: 220px minmax(360px, 1fr) 270px; }
  .character-strip { grid-template-columns: minmax(210px, 1fr) minmax(200px, 340px) auto; }
  .town-services { grid-template-columns: repeat(2, 1fr); }
  .map-group-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade-dialog[open] { right: 284px; width: min(580px, calc(100vw - 300px)); }
}

@media (max-width: 820px) {
  .app-shell { border: 0; }
  .app-header { padding: 9px 12px; }
  .back-link { display: none; }
  .character-strip { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 12px; }
  .experience-block { grid-column: 1 / -1; order: 3; }
  .strip-resources { gap: 10px; }
  .strip-resources > span { font-size: 13px; }
  .game-layout { display: block; min-height: 0; background: #121719; }
  .game-panel { display: none; min-height: 620px; }
  .game-panel.is-mobile-active { display: flex; }
  .character-panel.is-mobile-active,
  .inventory-panel.is-mobile-active { display: block; }
  .character-panel,
  .inventory-panel { padding: 14px 12px 22px; }
  .battle-heading { min-height: 66px; padding: 10px 12px; }
  .map-npc-panel { grid-template-columns: 1fr; gap: 7px; padding: 8px 12px; }
  .map-npc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-monster-panel { grid-template-columns: 1fr; gap: 7px; padding: 8px 12px; }
  .map-monster-section { grid-template-columns: 1fr; gap: 7px; }
  .map-monster-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .town-scene { min-height: 160px; }
  .battle-scene { min-height: 475px; }
  .battlefield-canvas { height: auto; aspect-ratio: 620 / 470; }
  .battle-toolbar { padding-right: 12px; }
  .event-log { min-height: 170px; }
  .mobile-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: sticky; bottom: 0; z-index: 10; border-top: 1px solid #394347; background: #0f1315; }
  .mobile-nav button { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; background: transparent; color: #aeb8b8; cursor: pointer; font-size: 13px; }
  .mobile-nav button[aria-pressed="true"] { background: #1b1915; color: #d6a85e; }
  .mobile-nav button span { font-size: 18px; }
  .dungeon-grid { grid-template-columns: 1fr 1fr; }
  .map-group-grid { grid-template-columns: 1fr 1fr; }
  .workshop-summary { grid-template-columns: 1fr; }
  .upgrade-scroll-grid { grid-template-columns: 1fr; }
  .segmented-control.socket-gem-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .socket-gem-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workshop-summary > div { border-right: 0; border-bottom: 1px solid #293236; }
  .workshop-summary > div:last-child { border-bottom: 0; }
  .warehouse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skill-row { grid-template-columns: 1fr; }
  .skill-action { width: 100%; }
  .combat-skill-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combat-active-effects { grid-column: 1 / -1; }
  .skill-overview { grid-template-columns: 1fr; }
  .skill-runtime-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .leaderboard-layout { grid-template-columns: 1fr; }
  .leaderboard-list { max-height: 250px; }
  .drag-action-tray.is-visible {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 68px;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid #4c5957;
    background: #0f1416;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .45);
  }
  .drag-action-tray button {
    min-width: 0;
    min-height: 48px;
    padding: 7px 8px;
    border: 1px solid #394347;
    border-radius: 4px;
    background: #182023;
    color: #f2f0e9;
    font-size: 13px;
  }
  .trade-dialog[open] {
    top: auto;
    right: 8px;
    bottom: 68px;
    left: 8px;
    width: auto;
    max-height: min(42vh, 360px);
    padding: 12px;
  }
  .trade-dialog .dialog-heading { margin-bottom: 9px; }
  .trade-dialog .dialog-heading p { max-width: 260px; }
  .shop-stock-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-codex-toolbar { grid-template-columns: 1fr; }
  .equipment-codex-grid-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .app-header { gap: 8px; flex-wrap: wrap; }
  .brand { flex: 1 1 auto; gap: 8px; }
  .brand > span:last-child { min-width: 0; }
  .brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
  .brand small { display: none; }
  .header-actions { flex: 1 1 100%; justify-content: flex-start; gap: 6px; }
  #openUpdatesBtn, #openDailyTasksBtn, #openLeaderboardBtn, #openSignInBtn, #openPremiumShopBtn, #openEquipmentCodexBtn { width: 36px; padding-inline: 0; }
  #openUpdatesBtn .header-action-label, #openDailyTasksBtn .header-action-label, #openLeaderboardBtn .header-action-label, #openSignInBtn .header-action-label, #openPremiumShopBtn .header-action-label, #openEquipmentCodexBtn .header-action-label { display: none; }
  .connection-state { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .character-strip { grid-template-columns: 1fr; }
  .strip-resources { display: grid; grid-template-columns: repeat(2, max-content); justify-content: flex-start; }
  .premium-wallet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .premium-wallet > div { gap: 3px; padding: 8px 10px; }
  .premium-wallet strong { font-size: 18px; }
  .sign-in-schedule { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .combatants { grid-template-columns: minmax(92px, 1fr) 68px minmax(92px, 1fr); gap: 8px; padding: 70px 12px 18px; }
  .combat-hud-overlay { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .combatant-symbol { width: 66px; height: 66px; font-size: 30px; }
  .town-services { grid-template-columns: 1fr; }
  .town-services button { min-height: 66px; grid-template-columns: 34px 1fr; justify-items: start; text-align: left; padding: 9px 12px; }
  .town-services button > span { grid-row: 1 / 3; align-self: center; }
  .battle-status { align-items: stretch; flex-direction: column; }
  .battle-status .button { width: 100%; }
  .battle-heading { align-items: flex-start; }
  .battle-heading-actions { flex-direction: column; align-items: stretch; }
  .battle-toolbar { align-items: stretch; padding: 7px 10px; }
  .combat-pack-control { width: 100%; justify-content: space-between; margin-left: 0; }
  .skill-auto-button { width: 100%; }
  .skill-runtime-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dungeon-grid { grid-template-columns: 1fr; }
  .map-group-grid,
  .map-npc-list,
  .map-monster-list { grid-template-columns: 1fr; }
  .jewel-balances { grid-template-columns: repeat(2, 1fr); }
  .shop-item { grid-template-columns: 1fr; }
  .equipment-vendor-summary { align-items: flex-start; flex-direction: column; }
  .character-roster { grid-template-columns: 1fr 1fr; }
  .warehouse-grid { grid-template-columns: 1fr; }
  .leaderboard-dialog { width: calc(100% - 16px); padding: 12px; }
  .leaderboard-content { min-height: 0; }
  .leaderboard-loading { min-height: 300px; }
  .leaderboard-equipment-grid { grid-template-columns: 1fr; }
}

/* MU visual system */
:root {
  --mu-void: #07090a;
  --mu-coal: #0d1113;
  --mu-iron: #151b1d;
  --mu-raised: #1b2325;
  --mu-line: #3b4545;
  --mu-line-bright: #68716c;
  --mu-gold: #d8aa58;
  --mu-gold-soft: #f0d391;
  --mu-blood: #a83d38;
  --mu-mana: #3674ad;
  --mu-emerald: #48b77b;
  --mu-text: #f1eee4;
  --mu-muted: #aab0aa;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--mu-void);
  color: var(--mu-text);
}

body {
  background-color: var(--mu-void);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M0 24h96M0 72h96M24 0v96M72 0v96' stroke='%23151a1c' stroke-width='1' opacity='.35'/%3E%3C/svg%3E");
}

.game-icon { width: 1em; height: 1em; display: block; overflow: visible; color: inherit; }
.app-shell { width: min(1500px, 100%); background: var(--mu-coal); border-color: #303839; box-shadow: 0 0 38px rgba(0, 0, 0, .7); }
.app-header {
  min-height: 68px;
  padding: 9px 18px;
  background: #0f1416;
  border-bottom: 1px solid #5d4b2d;
  box-shadow: inset 0 -3px 0 #090b0c;
}
.activity-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 16px;
  border-bottom: 1px solid #79602f;
  background: linear-gradient(90deg, #15120d, #322513 50%, #15120d);
  color: #f5ddb0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.activity-banner::before { content: '☾'; color: #f0bd59; font-size: 18px; }
.activity-banner strong { color: #ffd87e; }
.activity-banner > span { min-width: 0; overflow-wrap: anywhere; }
.activity-banner.upcoming { color: #cfc5ad; }
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--mu-gold);
  outline: 1px solid #31291c;
  outline-offset: -4px;
  background: #171713;
  color: var(--mu-gold-soft);
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0;
  text-shadow: 0 0 12px rgba(216, 170, 88, .48);
}
.brand strong { color: #faf5e8; font-size: 16px; }
.connection-state.online { color: #76d49a; }
.icon-button, .button, button.button, input, select { border-radius: 2px; }
.icon-button { border-color: #465153; background: #121719; }
.button, button.button {
  border-color: #8e672e;
  background: #c99a49;
  box-shadow: inset 0 0 0 1px rgba(255, 224, 157, .25), 0 1px 0 #050606;
}
.button.secondary, button.button.secondary { background: #171a18; color: #e5c987; }
.surface, .game-dialog {
  border-color: #5b615d;
  border-radius: 3px;
  background: #121719;
  box-shadow: inset 0 0 0 2px #0a0d0e, 0 16px 42px rgba(0, 0, 0, .52);
}
.character-create { background-color: #111719; background-image: url('/mu/assets/world-lorencia.svg?v=20260919-mu-visual-1'); background-position: center; background-size: cover; }
.character-select-heading, .character-roster { position: relative; z-index: 1; }
.character-create::before { content: ""; position: absolute; inset: 0; background: rgba(5, 8, 9, .52); pointer-events: none; }
.character-create { position: relative; overflow: hidden; }
.character-roster { gap: 10px; }
.character-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-height: 128px;
  padding: 13px 13px 13px 76px;
  overflow: hidden;
  border-color: #4a5453;
  border-radius: 2px;
  background: rgba(9, 13, 14, .88);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .42);
}
.character-card:hover { border-color: #9f7a3d; background: rgba(25, 24, 18, .94); }
.character-card.active { border-color: var(--mu-gold); background: rgba(33, 27, 17, .94); box-shadow: inset 0 0 18px rgba(216, 170, 88, .12); }
.character-card-portrait { position: absolute; left: 13px; top: 50%; width: 50px; height: 74px; display: grid; place-items: center; color: #b89455; transform: translateY(-50%); }
.character-card-portrait .game-icon { width: 42px; height: 58px; filter: drop-shadow(0 0 8px rgba(216, 170, 88, .22)); }
.character-card-portrait .character-portrait-image { width: 42px; height: 58px; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(216, 170, 88, .22)); }
.character-card-empty .character-card-portrait { color: #56605e; }
.character-card-index { position: absolute; top: 8px; right: 9px; }
.character-card .character-card-name { overflow: visible; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }

.character-strip {
  min-height: 78px;
  grid-template-columns: minmax(290px, 1fr) minmax(260px, 430px) auto;
  background: #141a1c;
  border-bottom-color: #4d5553;
  box-shadow: inset 0 -2px 0 #090b0c;
}
.character-identity { gap: 8px; }
.character-class-emblem {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border: 1px solid #725a31;
  background: #0b0f10;
  color: var(--mu-gold);
  box-shadow: inset 0 0 12px rgba(216, 170, 88, .12);
}
.character-class-emblem .game-icon { width: 29px; height: 29px; }
.character-class-emblem .character-portrait-image { width: 32px; height: 44px; image-rendering: pixelated; filter: drop-shadow(0 0 6px rgba(216, 170, 88, .2)); }
.level-mark { padding: 4px 6px; background: #17150f; color: var(--mu-gold-soft); }
.progress-track { height: 8px; border: 1px solid #303635; background: #080a0b; }
.progress-fill { background: #b88c3f; box-shadow: 0 0 8px rgba(216, 170, 88, .28); }
.strip-resources > span { min-height: 32px; padding: 4px 8px; border: 1px solid #343d3d; background: #0b0f10; }

.game-layout { grid-template-columns: 290px minmax(440px, 1fr) 320px; gap: 1px; background: #4a5251; min-height: 760px; }
.game-panel { background: #101517; }
.panel-heading h2, .battle-heading h2, .dialog-heading h2 { color: #f5eedf; }
.panel-heading h2::before, .dialog-heading h2::before { content: ""; display: inline-block; width: 3px; height: 13px; margin-right: 7px; background: var(--mu-gold); vertical-align: -1px; }
.character-panel, .inventory-panel { padding: 14px; }

.paperdoll {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  min-height: 328px;
  gap: 4px;
  padding: 8px;
  border: 1px solid #47504f;
  background-color: #090d0e;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .72);
}
.classic-equipment-frame {
  grid-column: 1;
  grid-row: 1;
}
.earring-equipment-frame {
  grid-column: 2;
  grid-row: 1;
}
.equipment-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.equipment-column-special { grid-template-rows: repeat(7, minmax(0, 1fr)); }
.equipment-slot, .inventory-slot, .warehouse-item {
  min-height: 0;
  align-content: center;
  justify-items: start;
  gap: 5px;
  padding: 4px 6px;
  border-color: #3e4a4b;
  border-radius: 2px;
  background: #151c1e;
  box-shadow: inset 0 0 0 1px #0b0e0f;
}
.equipment-slot { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr; align-items: center; }
.equipment-slot .slot-symbol { display: none; }
.equipment-slot.icon-only-slot { grid-template-columns: 1fr; justify-items: center; gap: 0; padding: 0; }
.equipment-slot.icon-only-slot .slot-symbol { display: grid; }
.equipment-slot.icon-only-slot .equipment-slot-name { display: none; }
.equipment-slot.icon-only-slot .slot-symbol .game-icon { width: 24px; height: 24px; }
.equipment-slot:hover:not(:disabled):not([aria-disabled="true"]), .inventory-slot:hover:not(:disabled), .warehouse-item:hover:not(:disabled) { border-color: #9d7840; background: #211e17; }
.slot-symbol { display: grid; place-items: center; color: #98a09b; }
.slot-symbol .game-icon { width: 22px; height: 22px; }
.equipment-slot:not(.empty) .slot-symbol { color: #dfba70; filter: drop-shadow(0 0 5px rgba(216, 170, 88, .35)); }
.equipment-slot[data-quality="premium"] .slot-symbol { color: #ff4d4f; filter: drop-shadow(0 0 5px rgba(255, 77, 79, .5)); }
.equipment-slot-name { width: 100%; min-width: 0; overflow: hidden; color: #cfd4d0; text-align: left; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.15; }
.equipment-slot.empty .equipment-slot-name { color: #707b79; }
.equipment-slot[data-quality="excellent"] { border-color: #30875a; box-shadow: inset 0 0 10px rgba(31, 216, 113, .12); }
.equipment-slot[data-quality="premium"] { border-color: #a33b43; box-shadow: inset 0 0 10px rgba(255, 77, 79, .16); }
.equipment-column-special .equipment-slot[data-slot="necklace"],
.equipment-column-special .equipment-slot[data-slot^="ring"],
.equipment-column-special .equipment-slot[data-slot^="earring"] {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 3px;
}
.equipment-column-special .equipment-slot[data-slot="necklace"] .slot-symbol,
.equipment-column-special .equipment-slot[data-slot^="ring"] .slot-symbol,
.equipment-column-special .equipment-slot[data-slot^="earring"] .slot-symbol { display: grid; }
.equipment-column-special .equipment-slot[data-slot="necklace"] .equipment-slot-name,
.equipment-column-special .equipment-slot[data-slot^="ring"] .equipment-slot-name,
.equipment-column-special .equipment-slot[data-slot^="earring"] .equipment-slot-name { display: none; }
.equipment-column-special .equipment-slot[data-slot="necklace"] .game-icon,
.equipment-column-special .equipment-slot[data-slot^="ring"] .game-icon,
.equipment-column-special .equipment-slot[data-slot^="earring"] .game-icon { width: 21px; height: 21px; }

.stats-heading { margin-top: 16px; }
.stat-list { border-top-color: #454e4c; }
.stat-row { border-bottom-color: #293230; }
.stat-row.primary { margin: 0 -4px; padding: 7px 4px; background: #151a18; }
.stat-row.primary strong { color: var(--mu-gold-soft); }
.stat-batches button.active { border-color: var(--mu-gold); background: #292116; }

.battle-heading { min-height: 76px; border-bottom-color: #4d5553; background: #171e20; box-shadow: inset 0 -2px 0 #090b0c; }
.battle-heading h2 { font-family: Georgia, "Noto Serif SC", serif; font-size: 18px; }
.map-npc-panel, .map-monster-panel { border-bottom-color: #46504e; background: #0d1213; }
.map-npc-card, .map-monster-card { border-radius: 2px; background: #161e20; }
.map-npc-icon, .map-monster-icon { width: 38px; height: 38px; border-color: #70572e; background: #0b0f10; }
.map-npc-icon .game-icon, .map-monster-icon .game-icon { width: 24px; height: 24px; }
.map-npc-card { grid-template-columns: 40px minmax(0, 1fr); }
.map-monster-card { grid-template-columns: 40px minmax(0, 1fr); }
.map-monster-icon { border-color: #713b37; }
.map-npc-heading { border-left-color: var(--mu-gold); }
.map-monster-heading { border-left-color: var(--mu-blood); }
.map-npc-actions button { border-color: #735426; background: #1c1912; color: #ebc573; }

.town-scene {
  min-height: 360px;
  align-content: end;
  padding: 40px 20px 58px;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}
.town-scene::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(3, 6, 7, .2); }
.town-scene::after { height: 88px; z-index: -1; background: rgba(4, 7, 8, .78); clip-path: polygon(0 48%, 15% 31%, 31% 62%, 44% 37%, 59% 59%, 73% 28%, 87% 52%, 100% 31%, 100% 100%, 0 100%); }
.town-scene[data-world-theme="lorencia"] { background-image: url('/mu/assets/world-lorencia.svg?v=20260919-mu-visual-1'); }
.town-scene[data-world-theme="noria"] { background-image: url('/mu/assets/world-noria.svg?v=20260919-mu-visual-1'); }
.town-scene[data-world-theme="devias"] { background-image: url('/mu/assets/world-devias.svg?v=20260919-mu-visual-1'); }
.town-scene[data-world-theme="dungeon"] { background-image: url('/mu/assets/world-dungeon.svg?v=20260919-mu-visual-1'); }
.town-scene[data-world-theme="atlans"] { background-image: url('/mu/assets/world-atlans.svg?v=20260919-mu-visual-1'); }
.town-title { padding: 16px; background: rgba(5, 8, 9, .7); text-shadow: 0 2px 4px #000; }
.town-symbol { color: var(--mu-gold); filter: drop-shadow(0 0 8px rgba(216, 170, 88, .45)); }
.town-title h2 { font-family: Georgia, "Noto Serif SC", serif; font-size: 20px; }

.battle-toolbar, .combat-hud-overlay { background: #080c0d; }
.battlefield-canvas { background: #090d0e; }
.combat-hud-overlay { border-top: 1px solid #54472f; }
.combat-hud-overlay .combatant { border-color: #474f4d; border-radius: 2px; background: rgba(7, 10, 11, .92); }
.combat-health-track { height: 12px; border-color: #555c58; box-shadow: inset 0 2px 4px #000; }
.player-health-fill { background: #a53c36; }
.player-mana-fill { background: #326ca5; }
.enemy-health-fill { background: #8f302e; }
.battle-status { background: #171e20; }
.event-log { background: #090d0e; border-left: 3px solid #242c2c; }

.inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 0; }
.inventory-slot, .warehouse-item, .shop-stock-item { position: relative; min-height: 72px; display: grid; grid-template-rows: 38px 1fr; align-content: center; justify-items: center; gap: 4px; padding: 5px; }
.inventory-slot.no-item-icon {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  justify-items: stretch;
}
.inventory-slot.no-item-icon .inventory-item-name { text-align: center; }
.inventory-slot .item-symbol, .warehouse-item .item-symbol, .shop-stock-item .item-symbol { width: 34px; height: 34px; color: #b8c0ba; filter: drop-shadow(0 0 4px rgba(210, 221, 214, .14)); }
.inventory-slot.material .item-symbol { color: #f0c84e; }
.inventory-slot.consumable .item-symbol { color: #d05d55; }
.inventory-slot[data-quality="excellent"] .item-symbol, .warehouse-item[data-quality="excellent"] .item-symbol { color: #2cdd79; filter: drop-shadow(0 0 6px rgba(44, 221, 121, .5)); }
.inventory-slot[data-quality="premium"] .item-symbol, .warehouse-item[data-quality="premium"] .item-symbol { color: #ff4d4f; filter: drop-shadow(0 0 6px rgba(255, 77, 79, .5)); }
.inventory-slot.rare, .warehouse-item.rare { border-color: #397556; box-shadow: inset 0 0 12px rgba(31, 197, 104, .1); }
.inventory-slot[data-quality="premium"], .warehouse-item[data-quality="premium"] { border-color: #8f353f; box-shadow: inset 0 0 12px rgba(255, 77, 79, .12); }
.inventory-slot[aria-pressed="true"] { outline: 1px solid var(--mu-gold); background: #261f14; box-shadow: inset 0 0 12px rgba(216, 170, 88, .14); }
.inventory-item-name { width: 100%; min-height: 30px; display: -webkit-box; overflow: hidden; white-space: normal; text-align: center; line-height: 1.15; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.item-detail { min-height: 205px; border-top-color: #49504e; }
.item-title { gap: 9px; }
.item-title .item-symbol { width: 36px; height: 36px; flex: 0 0 36px; padding: 5px; border: 1px solid #4c5553; background: #0a0e0f; color: var(--mu-gold); }
.item-title .item-symbol.quality-premium { color: #ff4d4f; filter: drop-shadow(0 0 6px rgba(255, 77, 79, .5)); }
.warehouse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.warehouse-grid .warehouse-item { min-width: 0; }

.game-dialog { padding: 17px; border-color: #6a6b5f; background: #111719; }
.game-dialog::backdrop { background: rgba(2, 4, 5, .88); }
.dialog-heading { padding-bottom: 11px; border-bottom: 1px solid #494f4c; }
.shop-stock-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.shop-stock-grid.potion-stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-stock-item { min-height: 86px; border-color: #444e4d; background: #172022; }
.shop-stock-item:hover { border-color: #a77d3d; background: #241f15; }
.shop-stock-item strong { width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; }
.skill-overview { border-color: #515957; background: #0c1112; }
.skill-section h3, .skill-effect-section h3 { color: var(--mu-gold-soft); }
.skill-row { grid-template-columns: 48px minmax(0, 1fr) auto; border-color: #434d4c; background: #172022; }
.skill-row.active { border-color: #9b7539; background: #282116; box-shadow: inset 3px 0 0 var(--mu-gold); }
.skill-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #5a482b; background: #0a0e0f; color: var(--mu-gold); }
.skill-symbol .game-icon { width: 25px; height: 25px; filter: drop-shadow(0 0 5px rgba(216, 170, 88, .38)); }
.skill-row.locked .skill-symbol { color: #69716d; border-color: #3b4341; }

.map-group h3 { border-left-color: var(--mu-gold); }
.map-card, .dungeon-card {
  position: relative;
  min-height: 136px;
  align-content: end;
  overflow: hidden;
  border-radius: 2px;
  background-position: center;
  background-size: cover;
  text-shadow: 0 1px 3px #000;
}
.map-card::before, .dungeon-card::before { content: ""; position: absolute; inset: 0; background: rgba(3, 6, 7, .58); }
.map-card > *, .dungeon-card > * { position: relative; z-index: 1; }
.map-card[data-world-theme="lorencia"] { background-image: url('/mu/assets/world-lorencia.svg?v=20260919-mu-visual-1'); }
.map-card[data-world-theme="noria"] { background-image: url('/mu/assets/world-noria.svg?v=20260919-mu-visual-1'); }
.map-card[data-world-theme="devias"] { background-image: url('/mu/assets/world-devias.svg?v=20260919-mu-visual-1'); }
.map-card[data-world-theme="dungeon"], .dungeon-card { background-image: url('/mu/assets/world-dungeon.svg?v=20260919-mu-visual-1'); }
.map-card[data-world-theme="atlans"] { background-image: url('/mu/assets/world-atlans.svg?v=20260919-mu-visual-1'); }
.map-card.current { border-color: var(--mu-gold); box-shadow: inset 0 0 20px rgba(216, 170, 88, .14); }
.map-card-symbol { position: absolute; top: 10px; right: 10px; color: #d7ba7a; }
.map-card-symbol .game-icon { width: 28px; height: 28px; }

/* The map selector mirrors the classic connected-region overview while the
   detail panel below keeps the real destination actions text based. */
.map-dialog { width: min(1180px, calc(100% - 16px)); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; }
.daily-tasks-dialog { width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 28px); overflow-y: auto; }
.daily-tasks-content { min-width: 0; display: grid; gap: 12px; }
.daily-task-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px 14px; padding: 10px 12px; border-left: 3px solid var(--mu-gold); background: #171d1d; color: #c8d0ca; font-size: 13px; line-height: 1.45; }
.daily-task-summary strong { color: #f0d393; font-size: 14px; }
.daily-task-map-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 7px; }
.daily-task-map { min-width: 0; display: grid; gap: 4px; padding: 9px 10px; border: 1px solid #394347; background: #12191a; color: #f2f0e9; text-align: left; cursor: pointer; }
.daily-task-map:hover, .daily-task-map.selected { border-color: var(--mu-gold); background: #241f15; }
.daily-task-map:disabled { cursor: not-allowed; opacity: .58; }
.daily-task-map:disabled:hover { border-color: #394347; background: #12191a; }
.daily-task-map span { overflow: hidden; color: #f0d393; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.daily-task-map small { color: #aeb8b8; font-size: 13px; }
.daily-task-current { display: grid; gap: 8px; }
.daily-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.daily-section-heading h3 { padding-left: 8px; border-left: 3px solid var(--mu-gold); color: #e4c88e; font-size: 14px; }
.daily-section-heading span { color: #9da8a4; font-size: 13px; }
.daily-task-card { display: grid; gap: 8px; padding: 12px; border: 1px solid #394347; background: #11191a; }
.daily-task-card.complete { border-color: #765a2c; background: #211e17; }
.daily-task-card.claimed { border-color: #467553; background: #142119; }
.daily-task-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.daily-task-card-heading > div { min-width: 0; display: grid; gap: 3px; }
.daily-task-kicker { color: #9da8a4; font-size: 13px; }
.daily-task-card h3 { overflow-wrap: anywhere; color: #f4dfac; font-size: 16px; line-height: 1.35; }
.daily-task-card-heading > strong { flex: 0 0 auto; color: #d6a85e; font-size: 13px; white-space: nowrap; }
.daily-task-card.claimed .daily-task-card-heading > strong { color: #79d18e; }
.daily-task-objective { color: #c8d0ca; font-size: 13px; line-height: 1.55; }
.daily-task-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9da8a4; font-size: 13px; }
.daily-task-progress-row strong { color: #e4c88e; font-size: 13px; font-variant-numeric: tabular-nums; }
.daily-task-progress { height: 8px; overflow: hidden; border: 1px solid #394347; background: #090e0f; }
.daily-task-progress span { display: block; height: 100%; background: linear-gradient(90deg, #8e672e, #d6a85e); transition: width .2s ease; }
.daily-task-card.claimed .daily-task-progress span { background: #467553; }
.daily-task-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.daily-task-rewards { min-width: 0; color: #79d18e; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.daily-achievement-section, .daily-record-section { display: grid; gap: 8px; padding-top: 4px; }
.daily-achievement-list, .daily-record-section ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.daily-achievement-row, .daily-record-section li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 10px; border: 1px solid #303a3a; background: #12191a; font-size: 13px; }
.daily-achievement-row > div, .daily-record-section li > span { min-width: 0; display: grid; gap: 3px; }
.daily-achievement-row strong, .daily-record-section li span { overflow-wrap: anywhere; color: #e4dfce; font-size: 13px; }
.daily-achievement-row small, .daily-record-section li small { color: #9da8a4; font-size: 13px; line-height: 1.4; }
.daily-achievement-row > span, .daily-record-section li small { flex: 0 0 auto; text-align: right; }
.daily-achievement-empty, .daily-task-empty, .daily-task-map-empty, .daily-tasks-empty { padding: 14px 12px; border: 1px dashed #394347; color: #9da8a4; font-size: 13px; line-height: 1.55; }
.map-overview { display: grid; gap: 9px; min-width: 0; }
.map-overview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.map-overview-legend { display: flex; flex-wrap: wrap; gap: 13px 20px; color: #c7cfca; font-size: 15px; font-weight: 600; line-height: 1.4; }
.map-overview-legend > span { display: inline-flex; align-items: center; gap: 8px; min-height: 22px; }
.map-legend-dot { width: 11px; height: 11px; display: inline-block; flex: 0 0 11px; border: 1px solid #57615e; background: #26302e; transform: rotate(45deg); }
.map-legend-dot.current { border-color: #e0b65f; background: #c99a49; box-shadow: 0 0 8px rgba(216, 170, 88, .4); }
.map-legend-dot.available { border-color: #6b9b7a; background: #335c43; }
.map-legend-dot.locked { border-color: #59605e; background: #252a29; }
.map-map-controls { display: flex; align-items: center; gap: 5px; }
.map-map-controls button, .map-map-controls output { min-width: 38px; min-height: 36px; display: inline-grid; place-items: center; padding: 5px 9px; border: 1px solid #4d5a56; background: #151d1d; color: #e8dec6; font-size: 14px; font-weight: 700; }
.map-map-controls button { cursor: pointer; }
.map-map-controls button:hover, .map-map-controls button:focus-visible { border-color: #d3ae62; background: #24271f; outline: 2px solid rgba(211, 174, 98, .3); }
.map-map-controls output { min-width: 58px; color: #e8c778; font-variant-numeric: tabular-nums; }
.map-map-controls [data-map-center-current] { min-width: 132px; font-weight: 600; }
.map-pan-hint { color: #9faeaa; font-size: 13px; line-height: 1.4; }
.map-graph-scroll { position: relative; height: min(58dvh, 650px); min-height: 300px; overflow: hidden; border: 1px solid #43504d; background: #091012; }
.map-graph-viewport { touch-action: none; cursor: grab; user-select: none; }
.map-graph-viewport.is-dragging { cursor: grabbing; }
.map-graph-viewport:focus-visible { outline: 2px solid #d2ac58; outline-offset: 2px; }
.map-graph { position: absolute; inset: 0 auto auto 0; width: 3960px; height: 1080px; overflow: hidden; transform-origin: 0 0; will-change: transform; background: #251a12; }
.map-graph-content { position: absolute; inset: 0 auto auto 0; width: 3300px; height: 900px; overflow: visible; transform: scale(1.2); transform-origin: 0 0; background: #251a12 url('/mu/assets/map-overview.svg?v=20261007-map-scale-1-2-no-soft-routes-1') left top / 3300px 900px no-repeat; }
.map-node { position: absolute; left: var(--node-x); top: var(--node-y); z-index: 2; width: 296px; height: 152px; display: block; padding: 0; border: 0; background: transparent; color: transparent; cursor: pointer; transform: translate(-50%, -50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); transition: background .15s ease, filter .15s ease; }
.map-node.advanced { width: 320px; height: 188px; }
.map-node:hover, .map-node:focus-visible { background: rgba(255, 226, 143, .09); filter: drop-shadow(0 0 8px rgba(255, 213, 105, .52)); outline: none; }
.map-node.selected { filter: drop-shadow(0 0 9px rgba(255, 213, 105, .62)); }
.map-node.current { background: rgba(255, 224, 131, .08); }
.map-node:focus-visible { box-shadow: inset 0 0 0 3px #ffe08b; }
.map-classic-only-note { padding: 8px 10px; border-left: 3px solid #d2af62; background: #211e17; color: #d7c796; font-size: 13px; line-height: 1.45; }
.map-detail { display: grid; gap: 10px; padding: 12px 13px; border: 1px solid #4b514b; border-left: 3px solid var(--mu-gold); background: #171d1d; }
.map-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-detail-heading > div { min-width: 0; display: grid; gap: 3px; }
.map-detail-heading span { color: #9da8a4; font-size: 12px; }
.map-detail-heading h3 { overflow: hidden; color: #f3d58f; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.map-detail-heading > strong { color: #d6a85e; font-size: 13px; white-space: nowrap; }
.map-detail-copy { color: #c0c9c4; font-size: 13px; line-height: 1.55; }
.map-detail-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 7px; }
.map-detail-option { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 10px; padding: 9px 10px; border: 1px solid #424b48; background: #111718; }
.map-detail-option.current { border-color: #8a6d37; background: #211d15; }
.map-detail-option.locked { opacity: .72; }
.map-detail-option > div { min-width: 0; display: grid; gap: 3px; }
.map-detail-option strong { overflow: hidden; color: #ede8d9; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.map-detail-option span, .map-detail-option small { color: #9eaaa5; font-size: 12px; line-height: 1.35; }
.map-detail-option small { grid-column: 1 / -1; color: #d0a85c; }
.map-detail-option .button { min-width: 84px; }
.map-dialog .map-detail-heading span, .map-dialog .map-detail-option span, .map-dialog .map-detail-option small { font-size: 13px; }

.drag-avatar { grid-template-columns: 40px 1fr; grid-template-rows: auto auto; border-color: var(--mu-gold); border-radius: 2px; background: #111719; }
.drag-avatar .item-symbol { grid-row: 1 / 3; width: 34px; height: 34px; color: var(--mu-gold); }
.mobile-nav { background: #0b0f10; border-top-color: #6d552f; box-shadow: 0 -8px 22px rgba(0, 0, 0, .48); }
.mobile-nav button[aria-pressed="true"] { background: #231e14; color: var(--mu-gold-soft); box-shadow: inset 0 2px 0 var(--mu-gold); }

.appearance-settings {
  display: grid;
  gap: 4px;
  padding: 9px 0;
  border-top: 1px solid #293236;
}
.appearance-settings .check { padding-top: 0; border-top: 0; }
.appearance-settings small { color: #8f9a9c; font-size: 13px; line-height: 1.4; }

/* Keep item surfaces compact: a small icon leads a single-line item name. */
.inventory-slot,
.warehouse-item {
  min-height: 48px;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 6px;
  padding: 4px 6px;
}
.inventory-slot .item-symbol,
.warehouse-item .item-symbol { width: 26px; height: 26px; }
.inventory-item-name {
  min-width: 0;
  min-height: 0;
  display: block;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* The switch only animates equipment names in the three item surfaces. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  body.equipment-text-flow .equipment-slot:not(.empty) .equipment-slot-name.equipment-name,
  body.equipment-text-flow .inventory-slot.gear .inventory-item-name.equipment-name,
  body.equipment-text-flow .warehouse-item .inventory-item-name.equipment-name,
  body.equipment-text-flow #itemDetail.equipment-detail .item-title strong.equipment-name,
  body.equipment-text-flow #itemDetail.equipment-detail p .item-detail-line:not(.requirement),
  body.equipment-text-flow #itemDetail.equipment-detail .item-delta,
  body.equipment-text-flow .item-tooltip-title.equipment-detail-title,
  body.equipment-text-flow .item-tooltip-lines.equipment-detail-lines .item-tooltip-line:not(.requirement):not(.class-requirement) {
    background-color: var(--equipment-flow-base);
    background-image:
      linear-gradient(115deg, transparent 0%, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%, transparent 100%),
      linear-gradient(var(--equipment-flow-base), var(--equipment-flow-base));
    background-position: 133% 0, 0 0;
    background-size: 160% 100%, 100% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 5px color-mix(in srgb, var(--equipment-flow-base) 28%, transparent);
    animation: mu-equipment-text-flow 5.8s linear infinite;
  }
}
@keyframes mu-equipment-text-flow {
  from { background-position: 133% 0, 0 0; }
  to { background-position: -33% 0, 0 0; }
}
@supports (background-clip: text) or (-webkit-background-clip: text) {
  @media (prefers-reduced-motion: reduce) {
    body.equipment-text-flow .equipment-slot:not(.empty) .equipment-slot-name.equipment-name,
    body.equipment-text-flow .inventory-slot.gear .inventory-item-name.equipment-name,
    body.equipment-text-flow .warehouse-item .inventory-item-name.equipment-name,
    body.equipment-text-flow #itemDetail.equipment-detail .item-title strong.equipment-name,
    body.equipment-text-flow #itemDetail.equipment-detail p .item-detail-line:not(.requirement),
    body.equipment-text-flow #itemDetail.equipment-detail .item-delta,
    body.equipment-text-flow .item-tooltip-title.equipment-detail-title,
    body.equipment-text-flow .item-tooltip-lines.equipment-detail-lines .item-tooltip-line:not(.requirement):not(.class-requirement) {
      background-image: none;
      background-color: transparent;
      color: var(--equipment-flow-base);
      -webkit-text-fill-color: currentColor;
      text-shadow: none;
      animation: none;
    }
  }
}

@media (max-width: 1120px) {
  .game-layout { grid-template-columns: 260px minmax(380px, 1fr) 280px; }
  .paperdoll { padding: 7px; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-stock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .app-header { min-height: 62px; }
  .character-strip { grid-template-columns: 1fr auto; }
  .character-class-emblem { width: 42px; height: 42px; flex-basis: 42px; }
  .game-layout { display: block; }
  .game-panel { min-height: 650px; }
  .paperdoll { width: min(360px, 100%); min-height: 328px; margin: 0 auto; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .town-scene { min-height: 310px; }
  .skill-row { grid-template-columns: 44px minmax(0, 1fr); }
  .skill-action { grid-column: 1 / -1; }
  .trade-dialog[open] { background: #111719; }
  .shop-stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .warehouse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-codex-toolbar { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-mark { width: 38px; height: 38px; }
  .activity-banner { align-items: flex-start; padding: 8px 12px; text-align: left; }
  .character-strip { grid-template-columns: minmax(0, 1fr); }
  .character-identity { display: grid; grid-template-columns: 42px auto 1fr; }
  .character-card { grid-template-columns: minmax(0, 1fr); min-height: 116px; padding-left: 65px; }
  .character-card-portrait { left: 10px; width: 45px; }
  .paperdoll { min-height: 328px; }
  .inventory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .inventory-item-name { font-size: 13px; }
  .map-npc-icon, .map-monster-icon { width: 36px; height: 36px; }
  .map-npc-card { grid-template-columns: 38px minmax(0, 1fr); }
  .map-monster-card { grid-template-columns: 38px minmax(0, 1fr); }
  .town-scene { min-height: 275px; }
  .combat-hud-overlay { padding: 7px; }
  .combat-health-label strong { max-width: 96px; }
  .skill-row { grid-template-columns: 40px minmax(0, 1fr); padding: 9px; }
  .skill-symbol { width: 38px; height: 38px; }
  .shop-stock-grid, .warehouse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-product-buy { width: 100%; }
  .equipment-codex-grid-inner { grid-template-columns: 1fr; }
  .game-dialog.equipment-codex-dialog { width: calc(100% - 16px); height: calc(100vh - 16px); height: calc(100dvh - 16px); padding: 12px; }
  .shop-stock-item { min-height: 80px; }
  .map-card, .dungeon-card { min-height: 126px; }
  .map-dialog { width: calc(100% - 12px); padding: 12px; }
  .daily-tasks-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 13px; }
  .daily-task-map-list { grid-template-columns: 1fr 1fr; }
  .daily-task-card-heading { flex-direction: column; }
  .daily-task-card-heading > strong { white-space: normal; }
  .daily-task-card-footer { align-items: stretch; flex-direction: column; }
  .daily-task-card-footer .button { width: 100%; }
  .daily-achievement-row, .daily-record-section li { align-items: flex-start; flex-direction: column; }
  .daily-achievement-row > span, .daily-record-section li small { text-align: left; }
  .map-detail-options { grid-template-columns: 1fr; }
  .map-detail-option { grid-template-columns: minmax(0, 1fr) auto; }
  .map-graph-scroll { height: min(48dvh, 440px); min-height: 270px; }
  .map-map-controls { width: 100%; }
  .map-map-controls [data-map-center-current] { margin-left: auto; }
}

@media (max-width: 820px) {
  .auto-sell-filter-dialog { left: 8px; right: auto; margin-inline: 0; width: calc(100vw - 16px); max-width: calc(100vw - 16px); padding: 12px; }
  .auto-sell-filter-class { padding-inline: 8px; }
}

@media (max-width: 480px) {
  .auto-sell-filter-note { font-size: 13px; }
  .auto-sell-filter-class { font-size: 13px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.auction-dialog { width: min(1040px, calc(100% - 28px)); }
.auction-statusbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) 38px;
  gap: 1px;
  margin-bottom: 12px;
  border: 1px solid #394347;
  background: #394347;
}
.auction-statusbar > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  background: #121719;
}
.auction-statusbar span { color: #aeb8b8; font-size: 13px; }
.auction-statusbar strong { color: #e0b65f; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.auction-statusbar .icon-button { align-self: stretch; width: 38px; height: auto; border-radius: 0; }
.auction-layout { min-height: 430px; display: grid; grid-template-columns: 280px minmax(0, 1fr); border: 1px solid #394347; background: #101416; }
.auction-sell-panel { min-width: 0; display: grid; align-content: start; gap: 12px; padding: 14px; border-right: 1px solid #394347; background: #151b1d; }
.auction-section-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.auction-section-heading h3 { margin: 0; color: #f2f0e9; font-size: 16px; }
.auction-section-heading span { color: #9ca8a8; font-size: 13px; font-variant-numeric: tabular-nums; }
.auction-field { min-width: 0; display: grid; gap: 6px; color: #bdc6c5; font-size: 13px; }
.auction-field select,
.auction-field input,
.auction-search input,
.auction-sort select { min-width: 0; height: 38px; border: 1px solid #465154; border-radius: 3px; background: #0e1315; color: #f2f0e9; font: inherit; font-size: 13px; }
.auction-field select,
.auction-sort select { padding: 0 30px 0 9px; }
.auction-field input,
.auction-search input { padding: 0 9px; }
.auction-currency-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.auction-currency-option { min-width: 0; min-height: 62px; display: grid; align-content: center; gap: 4px; padding: 8px 10px; border: 1px solid #465154; border-radius: 4px; background: #0e1315; color: #bdc6c5; text-align: left; cursor: pointer; }
.auction-currency-option:hover { border-color: #8aaec3; background: #141d21; }
.auction-currency-option:focus-visible { outline: 2px solid #9ac9e7; outline-offset: 1px; }
.auction-currency-option strong { color: #d4dcdb; font-size: 14px; font-weight: 600; }
.auction-currency-option small { color: #97a3a4; font-size: 13px; }
.auction-currency-option em { color: #849092; font-size: 13px; font-style: normal; }
.auction-currency-option.is-selected { border-color: #9ac9e7; background: linear-gradient(180deg, #263d4b, #18272e); box-shadow: 0 0 0 1px rgba(154, 201, 231, .28), inset 0 0 18px rgba(103, 169, 206, .12); }
.auction-currency-option.is-selected strong { color: #f5f8f8; font-weight: 800; }
.auction-currency-option.is-selected small { color: #dcecf4; }
.auction-price-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid #465154; border-radius: 3px; background: #0e1315; }
.auction-price-input:focus-within { border-color: #c99d50; }
.auction-price-input input { border: 0; background: transparent; outline: 0; }
.auction-price-input span { padding: 0 9px; color: #d8b366; font-size: 13px; }
.auction-sell-preview { min-height: 94px; display: grid; align-content: center; gap: 7px; padding: 10px; border: 1px dashed #465154; background: #101416; }
.auction-sell-preview.empty { color: #8c9798; font-size: 13px; text-align: center; }
.auction-fee-preview { min-height: 34px; padding: 8px 10px; border: 1px solid #394347; background: #101416; color: #aeb8b8; font-size: 13px; line-height: 1.45; }
.auction-fee-preview strong { color: #d8b366; font-weight: 600; }
.auction-item-title { min-width: 0; display: flex; align-items: center; gap: 8px; }
.auction-item-title .game-icon { width: 30px; height: 30px; flex: 0 0 30px; }
.auction-item-title strong { min-width: 0; overflow-wrap: anywhere; color: #f2f0e9; font-size: 14px; }
.auction-item-traits { display: flex; flex-wrap: wrap; gap: 4px; }
.auction-item-traits span { padding: 2px 5px; border: 1px solid #465154; border-radius: 2px; color: #b9c4c3; background: #171e20; font-size: 13px; }
.auction-submit { width: 100%; min-height: 40px; }
.auction-market-panel { min-width: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.auction-toolbar { display: grid; grid-template-columns: minmax(190px, 240px) minmax(150px, 1fr) 150px; gap: 8px; padding: 10px; border-bottom: 1px solid #394347; background: #151b1d; }
.auction-search, .auction-sort { min-width: 0; }
.auction-search input, .auction-sort select { width: 100%; }
.auction-filter-hint { margin: 0; padding: 8px 12px; color: #aab6b5; font-size: 13px; line-height: 1.6; border-bottom: 1px solid #394347; }
.auction-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid #394347; color: #bdc6c5; font-size: 13px; }
.auction-pagination > div { display: flex; gap: 8px; }
.auction-pagination button, .auction-toolbar button { font-size: 13px; min-height: 38px; }
.auction-list { min-height: 360px; max-height: min(58vh, 580px); overflow: auto; }
.auction-row { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 132px 104px; align-items: center; gap: 12px; padding: 11px 12px; border-bottom: 1px solid #2f383b; background: #101416; }
.auction-row:hover { background: #151b1d; }
.auction-row-main { min-width: 0; display: grid; gap: 5px; }
.auction-row-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: #909b9c; font-size: 13px; }
.auction-row-price { min-width: 0; display: grid; gap: 3px; text-align: right; }
.auction-row-price span { color: #96a1a2; font-size: 13px; }
.auction-row-price strong { color: #e0b65f; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.auction-row-action { min-height: 36px; width: 100%; padding: 6px 9px; }
.auction-row-action:disabled { border-color: #394347; background: #171d1f; color: #7f898b; }
.auction-status { color: #b8c3c2; font-size: 13px; text-align: center; }
.auction-status.sold { color: #79c890; }
.auction-status.expired { color: #d6a85e; }
.auction-status.cancelled { color: #8c9798; }
.auction-empty { min-height: 320px; display: grid; place-items: center; padding: 20px; color: #8c9798; font-size: 13px; text-align: center; }
.auction-dialog > .message { min-height: 20px; margin: 9px 0 0; }

@media (max-width: 820px) {
  .dungeon-tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .dungeon-section-heading { align-items: flex-start; }
  .dungeon-section-heading > div { grid-template-columns: auto minmax(0, 1fr); }
  .dungeon-attempts { white-space: nowrap; }
  .dungeon-monster-stat { display: grid; gap: 1px; }
}

@media (max-width: 820px) {
  .auction-dialog { width: calc(100% - 16px); padding: 12px; }
  .auction-layout { grid-template-columns: 1fr; }
  .auction-sell-panel { border-right: 0; border-bottom: 1px solid #394347; }
  .auction-toolbar { grid-template-columns: 1fr 1fr; }
  .auction-toolbar .segmented-control { grid-column: 1 / -1; }
  .auction-list { max-height: none; }
}

@media (max-width: 480px) {
  .auction-statusbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auction-statusbar .icon-button { grid-column: 1 / -1; width: 100%; min-height: 34px; }
  .auction-toolbar { grid-template-columns: 1fr; }
  .auction-toolbar .segmented-control { grid-column: auto; }
  .auction-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
  .auction-row-action, .auction-status { grid-column: 1 / -1; }
}

/* Mount inspection and evolution controls remain readable on narrow screens. */
.mount-picker-section { margin-top: 18px; }
.mount-picker-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; padding: 9px 11px; }
.mount-picker-copy { min-width: 0; flex: 1; }
.mount-picker-card h4 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mount-picker-name { min-width: 0; overflow: hidden; border: 0; padding: 0; background: transparent; color: #f2f0e9; font: inherit; font-size: 15px; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.mount-picker-name:hover, .mount-picker-name:focus-visible { color: #f0d393; text-decoration: underline; }
.mount-picker-status { flex: 0 0 auto; color: #d6a85e; font-size: 13px; font-weight: 600; }
.mount-picker-source { margin: 3px 0 0; color: #aeb8b8; font-size: 13px; line-height: 1.35; }
.mount-picker-settings { margin-top: 12px; border-top: 1px solid #394347; padding-top: 8px; }
.mount-picker-settings summary { color: #c7c0a9; font-size: 13px; cursor: pointer; }
.mount-picker-settings .workshop-note { margin-top: 8px; }
.mount-picker-settings .workshop-note p { margin-top: 0; }
.mount-picker-card .mount-picker-actions { flex: 0 0 auto; }
.mount-picker-section p, .mount-picker-card li { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.mount-picker-card { border: 1px solid #394347; margin-top: 8px; background: #172022; }
.mount-picker-card.selected { border-color: #d6a85e; }
.mount-picker-card h4 { margin: 0; font-size: 15px; }
.mount-picker-card ul { margin: 8px 0; padding-left: 18px; }
.mount-picker-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mount-picker-actions button { min-height: 34px; font-size: 13px; padding: 6px 10px; }
.mount-recipe-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.mount-recipe-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 10px; border: 1px solid #465054; border-radius: 3px; background: #182023; color: #d4dcdb; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: normal; cursor: pointer; }
.mount-recipe-tabs button::before { content: '✓'; width: 12px; flex: 0 0 12px; visibility: hidden; font-weight: 800; }
.mount-recipe-tabs button:hover:not(:disabled) { border-color: #a38655; background: #292a23; color: #f2f0e9; }
.mount-recipe-tabs button[aria-pressed="true"] { border-color: #ffe0a0; background: #d6a85e; color: #21180b; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 239, 203, .35), 0 0 0 1px rgba(214, 168, 94, .3); }
.mount-recipe-tabs button[aria-pressed="true"]::before { visibility: visible; }
.mount-recipe-tabs button[aria-pressed="true"]:hover:not(:disabled) { border-color: #ffe9bd; background: #e4b96f; color: #21180b; }
.mount-recipe-tabs button:disabled { cursor: not-allowed; opacity: .7; }
.mount-evolution-fields select { max-width: 100%; min-width: 0; font-size: 13px; }

.paperdoll { grid-template-rows: minmax(300px, 1fr) auto; }
.equipment-extra-row { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.equipment-extra-row .extra-equipment-slot { min-width: 0; min-height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 3px; }
.equipment-extra-row .slot-symbol { display: grid; }
.equipment-extra-row .equipment-slot-name { display: none; }
.equipment-extra-row .slot-symbol .game-icon { width: 21px; height: 21px; }
.equipment-extra-row .fashion-slot-badge { font-size: 13px; line-height: 1; color: #b7c8d5; white-space: nowrap; }
.mount-output-preview { padding-left: 18px; font-size: 13px; line-height: 1.6; }

/* Mount collection is a compact checkbox, not a full-width form field. */
.mount-collection-control { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.mount-collection-control > input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 1px 0 0; padding: 0; }
.mount-collection-control > span { flex: 1; min-width: 0; }

/* Excellent fusion uses the existing workshop layout and readable mobile text. */
.excellent-fusion-workshop { min-width: 0; font-size: 13px; }
.excellent-fusion-workshop select { width: 100%; min-width: 0; max-width: 100%; font-size: 13px; }
.excellent-fusion-preview { min-width: 0; padding: 10px; border: 1px solid #394347; background: #182023; overflow-wrap: anywhere; }
.excellent-fusion-preview summary { cursor: pointer; color: #f0d393; font-size: 13px; }
.excellent-fusion-preview[open] summary { margin-bottom: 8px; }
.excellent-fusion-preview .item-tooltip-line { font-size: 13px; }

/* Daily world boss: readable ranking cards at 320px and above. */
.world-boss-dialog { width: min(760px, calc(100vw - 24px)); }
.world-boss-dialog, .world-boss-dialog :is(p,span,small,label,button,select,summary,td,th,strong) { font-size: 13px; }
.world-boss-dialog h2 { font-size: 20px; }
.world-boss-dialog h3 { font-size: 16px; margin: 0; }
.world-boss-settings { display: grid; gap: 10px; margin: 12px 0; }
.world-boss-settings label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.world-boss-settings select { flex: 1; min-width: 0; max-width: 100%; }
.world-boss-rules { line-height: 1.6; opacity: .85; overflow-wrap: anywhere; }
.world-boss-actions, .world-boss-heading, .world-boss-pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.world-boss-heading { justify-content: space-between; }
.world-boss-heading select { max-width: 100%; }
.world-boss-health, .world-boss-mine { display: grid; gap: 8px; padding: 12px; margin: 12px 0; border: 1px solid #67543a; border-radius: 8px; }
.world-boss-health progress { width: 100%; height: 18px; accent-color: #b64337; }
.world-boss-mine { background: #e3bc6c12; }
.world-boss-rows { list-style: none; padding: 0; margin: 0; }
.world-boss-row { display: grid; grid-template-columns: 28px minmax(0,1fr) minmax(72px,auto); gap: 6px 10px; padding: 12px 8px; border-bottom: 1px solid #67543a60; }
.world-boss-row.own { background: #e3bc6c19; }
.world-boss-row div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.world-boss-row small { opacity: .8; }
.world-boss-row p { grid-column: 2 / -1; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.world-boss-damage { text-align: right; }
.world-boss-rank { color: #e3bc6c; }
.world-boss-empty { padding: 18px 8px; }
.world-boss-pager { justify-content: center; }
.world-boss-rewards { margin-top: 16px; }
.world-boss-rewards summary { cursor: pointer; padding: 8px 0; }
.world-boss-rewards table { width: 100%; border-collapse: collapse; }
.world-boss-rewards td, .world-boss-rewards th { padding: 7px 4px; text-align: left; border-bottom: 1px solid #67543a60; }
.world-boss-rewards p { line-height: 1.6; }

.world-boss-dialog [hidden] { display: none !important; }
.world-boss-settings input[type="checkbox"] { box-sizing: border-box; flex: 0 0 18px; width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; accent-color: #e3bc6c; }
.world-boss-settings label { min-height: 32px; }

/* Shared leaderboard navigation and today's world-boss standings. */
.leaderboard-dialog [hidden] { display: none !important; }
.leaderboard-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.leaderboard-tabs .button { min-height: 38px; font-size: 14px; }
.leaderboard-tabs [aria-selected="true"] { background: #292317; border-color: #d6a85e; color: #f2d292; }
#worldBossLeaderboardPanel { min-width: 0; font-size: 14px; }
#worldBossLeaderboardPanel small { font-size: 13px; }
#worldBossLeaderboardPanel .world-boss-row { align-items: center; }
#bossLeaderboardMine { line-height: 1.6; overflow-wrap: anywhere; }

.battle-scene[data-world-theme="worldBoss"] { border-color: rgba(226, 96, 64, .65); box-shadow: inset 0 0 70px rgba(112, 30, 20, .2); }

@media (max-width: 620px) {
  .socket-gem-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 13px; }
  .segmented-control.socket-gem-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
