/* Consolidated base: style.css */
:root {
  --bg: #080b18;
  --panel: #101526;
  --panel2: #151b30;
  --line: rgba(177, 196, 255, 0.12);
  --text: #e9edff;
  --muted: #8f98b8;
  --cyan: #58e0ed;
  --purple: #8d72ff;
  --gold: #ffce70;
  --red: #ff6d7d;
  --green: #6cf0a9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 70% -20%, #26335f 0, transparent 30%), var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 14px;
  background: rgba(8, 11, 24, 0.86);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #b7c7ed;
  text-decoration: none;
  font-family: "DM Mono";
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.25;
  padding: 0 11px 26px;
}
.brand b {
  font-size: 17px;
  color: #fff;
  letter-spacing: 1px;
}
.brand-mark {
  font-size: 29px;
  color: var(--cyan);
  text-shadow: 0 0 22px var(--cyan);
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 7px 24px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(
    130deg,
    rgba(117, 103, 255, 0.15),
    rgba(88, 224, 237, 0.04)
  );
}
.profile .avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: #293660;
  font-size: 20px;
}
.profile b {
  font-size: 12px;
  display: block;
}
.profile small {
  font-size: 10px;
  color: var(--muted);
}
nav {
  display: grid;
  gap: 4px;
}
.nav-item {
  font: 600 13px Manrope;
  color: #9fa9c9;
  border: 0;
  background: transparent;
  border-radius: 9px;
  text-align: left;
  padding: 12px 13px;
  cursor: pointer;
  transition: 0.18s;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-item span {
  font-size: 18px;
  width: 18px;
  text-align: center;
}
.nav-item i {
  margin-left: auto;
  border-radius: 12px;
  background: #553d94;
  color: #e8dbff;
  font: 700 10px "DM Mono";
  padding: 3px 6px;
}
.nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}
.nav-item.active {
  background: linear-gradient(
    90deg,
    rgba(116, 88, 255, 0.24),
    rgba(116, 88, 255, 0.06)
  );
  color: #fff;
  box-shadow: inset 2px 0 var(--cyan);
}
.sidebar-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 10px;
  padding: 11px;
}
.online-dot {
  display: inline-block;
  background: var(--green);
  width: 6px;
  height: 6px;
  border-radius: 100%;
  box-shadow: 0 0 8px var(--green);
  margin-right: 6px;
}
main {
  min-width: 0;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 24, 0.4);
}
.crumb {
  font-size: 13px;
  font-weight: 700;
}
.crumb span {
  color: var(--muted);
  padding: 0 8px;
}
.resources {
  display: flex;
  align-items: center;
  gap: 11px;
}
.resource {
  border: 1px solid var(--line);
  background: rgba(19, 25, 46, 0.7);
  border-radius: 9px;
  padding: 7px 10px;
  font: 12px "DM Mono";
}
.gold {
  color: var(--gold);
}
.gems {
  color: #c89aff;
}
.settings,
.menu-button {
  border: 0;
  color: #c7d1f7;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}
.menu-button {
  display: none;
}
.content {
  padding: clamp(20px, 4vw, 52px);
  max-width: 1450px;
  margin: auto;
}
.hero {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #10152a url("./assets/moon-knight-keyart.webp") center 43% / cover
    no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 24, 0.94) 0%,
      rgba(8, 11, 24, 0.6) 35%,
      rgba(8, 11, 24, 0.03) 75%
    ),
    linear-gradient(0deg, rgba(8, 11, 24, 0.5), transparent 60%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 530px;
  padding: clamp(25px, 5vw, 54px);
}
.eyebrow {
  font: 600 10px "DM Mono";
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
}
.hero h1,
.view-title h1 {
  font-family: "Playfair Display";
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
  margin: 11px 0 12px;
}
.hero p {
  color: #c1c9e3;
  line-height: 1.65;
  font-size: 13px;
  max-width: 420px;
}
.button {
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  font: 700 12px Manrope;
  cursor: pointer;
  transition: 0.18s;
}
.button.primary {
  background: linear-gradient(135deg, #78dced, #6d67ff);
  color: #08101d;
  box-shadow: 0 6px 22px rgba(92, 181, 255, 0.25);
}
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.button.ghost {
  color: #c8d1eb;
  background: #202941;
  border: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 36px 0 15px;
}
.section-head h2 {
  font: 700 18px "Playfair Display";
  margin: 0;
}
.section-head small {
  font: 11px "DM Mono";
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 16px;
}
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: linear-gradient(
    145deg,
    rgba(25, 32, 57, 0.92),
    rgba(14, 19, 35, 0.92)
  );
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
}
.stat-card {
  position: relative;
  overflow: hidden;
}
.stat-card:after {
  content: "";
  position: absolute;
  right: -20px;
  top: -25px;
  width: 90px;
  height: 90px;
  background: radial-gradient(
    circle,
    var(--card-color, rgba(88, 224, 237, 0.2)),
    transparent 70%
  );
}
.stat-name {
  color: var(--muted);
  font: 700 10px "DM Mono";
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stat-number {
  font: 800 23px Manrope;
  margin-top: 8px;
}
.stat-sub {
  font-size: 10px;
  color: var(--green);
  margin-top: 4px;
}
.missions {
  grid-template-columns: 1.45fr 1fr;
}
.mission-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mission-row:last-child {
  border: 0;
}
.mission-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #252b51;
  font-size: 19px;
}
.mission-text {
  flex: 1;
}
.mission-text b {
  font-size: 12px;
}
.mission-text small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.pill {
  font: 700 9px "DM Mono";
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(108, 240, 169, 0.12);
  color: var(--green);
}
.idle-card {
  background: linear-gradient(
    135deg,
    rgba(39, 54, 104, 0.65),
    rgba(25, 21, 54, 0.8)
  );
  position: relative;
  overflow: hidden;
}
.idle-card:before {
  content: "✦";
  position: absolute;
  right: 13px;
  top: -12px;
  color: rgba(102, 234, 255, 0.14);
  font-size: 100px;
}
.idle-card h3 {
  font: 700 17px "Playfair Display";
  margin: 0 0 8px;
}
.idle-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #b8c4eb;
  max-width: 290px;
}
.idle-reward {
  font: 800 26px "DM Mono";
  color: var(--gold);
  margin: 20px 0 11px;
}
.view-title {
  margin-bottom: 25px;
}
.view-title h1 {
  font-size: 39px;
  margin-bottom: 7px;
}
.view-title p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.choice-grid {
  grid-template-columns: repeat(3, 1fr);
}
.action-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.action-card .big-icon {
  position: absolute;
  right: 16px;
  top: 8px;
  font-size: 58px;
  opacity: 0.32;
}
.action-card h3 {
  font: 700 17px "Playfair Display";
  margin: 0 0 4px;
}
.action-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 17px;
}
.power {
  font: 10px "DM Mono";
  color: var(--gold);
  margin-bottom: 12px;
}
.duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 22px;
}
.fighter {
  padding: 15px;
}
.fighter .fighter-avatar {
  margin: auto auto 9px;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(145deg, #304171, #1c2444);
  border: 1px solid rgba(133, 204, 255, 0.3);
}
.fighter b {
  font-size: 13px;
}
.fighter small {
  color: var(--muted);
  font-size: 10px;
  display: block;
  margin: 4px;
}
.vs {
  font: 700 21px "Playfair Display";
  color: var(--red);
}
.hpbar {
  height: 6px;
  border-radius: 9px;
  background: #242a43;
  margin: 10px auto;
  width: 82%;
  overflow: hidden;
}
.hpbar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  width: 78%;
}
.guild-banner {
  padding: 27px;
  background:
    radial-gradient(circle at 80% 0, #55408b, transparent 40%),
    linear-gradient(125deg, #25244d, #151c37);
}
.guild-banner h2 {
  font: 700 25px "Playfair Display";
  margin: 6px 0;
}
.guild-members {
  display: flex;
  margin: 19px 0;
}
.member {
  width: 31px;
  height: 31px;
  margin-right: -5px;
  border: 2px solid #24264e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3b4676;
  font-size: 15px;
}
.market-row {
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  gap: 13px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.market-row:last-child {
  border: 0;
}
.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4a3a69, #232a50);
  font-size: 21px;
}
.market-row b {
  font-size: 12px;
}
.market-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.price {
  font: 12px "DM Mono";
  color: var(--gold);
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(110px);
  transition: 0.3s;
  background: #dce9ff;
  color: #10172a;
  border-radius: 10px;
  padding: 12px 16px;
  font: 700 12px Manrope;
  box-shadow: 0 12px 40px #0008;
  z-index: 10;
}
.toast.show {
  transform: translateY(0);
}
.progress {
  height: 7px;
  background: #252c47;
  border-radius: 99px;
  overflow: hidden;
  margin: 11px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: inherit;
}
.tag {
  font: 700 9px "DM Mono";
  padding: 4px 7px;
  background: rgba(141, 114, 255, 0.16);
  color: #c9bbff;
  border-radius: 5px;
}
@media (max-width: 850px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 5;
    transition: 0.25s;
  }
  .sidebar.open {
    left: 0;
  }
  .menu-button {
    display: block;
  }
  .stats-grid,
  .choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .missions {
    grid-template-columns: 1fr;
  }
  .topbar {
    height: 63px;
  }
  .content {
    padding: 22px 17px;
  }
  .hero {
    min-height: 390px;
    background-position: 63% center;
  }
  .hero:after {
    background: linear-gradient(
      0deg,
      rgba(8, 11, 24, 0.9),
      rgba(8, 11, 24, 0.12) 85%
    );
  }
  .hero-copy {
    padding: 27px;
  }
  .market-row {
    grid-template-columns: 40px 1fr auto;
  }
  .market-row .button {
    grid-column: 2/4;
  }
  .duel {
    gap: 0;
  }
  .fighter {
    padding: 5px;
  }
  .fighter .fighter-avatar {
    width: 56px;
    height: 56px;
    font-size: 29px;
  }
}
@media (max-width: 440px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resource {
    padding: 6px 7px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .market-row {
    gap: 8px;
  }
}
.timer {
  font: 700 11px "DM Mono";
  color: var(--cyan);
}
.action-card .button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  filter: none;
}
.inventory-grid {
  grid-template-columns: repeat(3, 1fr);
}
.item-card {
  min-height: 170px;
  position: relative;
}
.item-card .item-icon {
  margin-bottom: 16px;
  width: 50px;
  height: 50px;
  font-size: 27px;
}
.item-card h3 {
  font: 700 16px "Playfair Display";
  margin: 0 0 5px;
}
.item-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.item-card .tag {
  position: absolute;
  right: 16px;
  top: 16px;
}
.equipped {
  box-shadow:
    inset 0 0 0 1px var(--cyan),
    0 0 24px rgba(88, 224, 237, 0.1);
}
.equipment-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.equipment-slot {
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(9, 13, 28, 0.36);
}
.equipment-slot small {
  display: block;
  color: var(--muted);
  font: 10px "DM Mono";
  margin-bottom: 6px;
}
.equipment-slot b {
  font-size: 12px;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 28px;
}
.combat-note {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
@media (max-width: 850px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}
.dungeon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dungeon-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dungeon-art {
  min-height: 240px;
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: flex-end;
}
.dungeon-art__copy {
  padding: 18px;
}
.dungeon-art h2 {
  margin: 9px 0 3px;
  font: 700 25px "Playfair Display";
  text-shadow: 0 3px 18px #000;
}
.dungeon-art p {
  margin: 0;
  color: #d6def6;
  font-size: 11px;
}
.dungeon-card__body {
  display: grid;
  gap: 13px;
  padding: 16px;
}
.dungeon-card__body p {
  margin: 6px 0 0;
  color: #aeb8d5;
  font-size: 11px;
  line-height: 1.55;
}
.dungeon-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ffda88;
  font: 10px "DM Mono";
}
.dungeon-card .button {
  width: 100%;
}
@media (max-width: 1000px) {
  .dungeon-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 850px) {
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .inventory-grid {
    grid-template-columns: 1fr;
  }
}
.energy {
  color: var(--green);
}
.auth-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 0, #263d70 0, rgba(8, 11, 24, 0.96) 48%),
    rgba(8, 11, 24, 0.96);
}
.auth-layer.hidden {
  display: none;
}
.auth-card {
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, #1b2444, #101526);
  box-shadow: 0 28px 80px #000a;
}
.auth-card > .brand-mark {
  display: block;
  margin-bottom: 20px;
}
.auth-card h1 {
  font: 700 32px "Playfair Display";
  margin: 10px 0;
}
.auth-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.auth-card label {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  color: #cfd7f4;
  font-size: 11px;
  font-weight: 700;
}
.auth-card input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0b1021;
  font: 13px Manrope;
}
.auth-card input:focus {
  outline: 1px solid var(--cyan);
  border-color: var(--cyan);
}
.auth-name {
  display: none !important;
}
.auth-card.signup .auth-name {
  display: grid !important;
}
.auth-error {
  min-height: 20px;
  color: #ff9ba7 !important;
  margin: 8px 0 !important;
}
.auth-card .button {
  width: 100%;
  margin-top: 4px;
}
.auth-switch {
  display: block;
  margin: 16px auto 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font: 600 12px Manrope;
  cursor: pointer;
}
.affixes {
  display: grid;
  gap: 4px;
  margin: 12px 0 15px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
  font: 600 10px "DM Mono";
  color: #8deaff;
}
.affixes li {
  color: #8deaff;
}
.affixes li strong {
  color: #ffdc7e;
  margin-left: 4px;
}
.affixes li em {
  color: #cba5ff;
  font-style: normal;
}
.affixes .implicit {
  color: #d4d9ee;
}
.affixes .unique-effect {
  color: #ffce70;
}
.item-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.item-actions .button {
  margin: 0 !important;
}
.button.craft {
  background: #173d3a;
  color: #95ffcf;
  border: 1px solid rgba(108, 240, 169, 0.25);
}
.button.apex {
  background: #412342;
  color: #ffc0df;
  border: 1px solid rgba(255, 126, 175, 0.28);
}
.button.craft[disabled],
.button.apex[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: none;
}
.bonus-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}
.bonus-summary span {
  border-radius: 6px;
  padding: 5px 7px;
  background: rgba(88, 224, 237, 0.08);
  color: #8deaff;
  font: 10px "DM Mono";
}
.rarity-ungewöhnlich {
  border-color: rgba(114, 239, 157, 0.65);
  box-shadow: 0 0 18px rgba(114, 239, 157, 0.08);
}
.rarity-magisch {
  border-color: rgba(88, 224, 237, 0.35);
}
.rarity-selten {
  border-color: rgba(255, 211, 108, 0.6);
  box-shadow: 0 0 20px rgba(255, 211, 108, 0.07);
}
.rarity-episch {
  border-color: rgba(177, 116, 255, 0.58);
}
.rarity-legendär {
  border-color: rgba(255, 173, 74, 0.65);
  box-shadow: 0 0 24px rgba(255, 173, 74, 0.08);
}
.rarity-mythisch {
  border-color: rgba(255, 88, 142, 0.8);
  box-shadow: 0 0 30px rgba(255, 88, 142, 0.13);
}
.crafting-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  background: linear-gradient(
    130deg,
    rgba(32, 83, 73, 0.55),
    rgba(50, 26, 67, 0.64)
  );
}
.crafting-panel h2 {
  font: 700 22px "Playfair Display";
  margin: 5px 0;
}
.crafting-panel p {
  margin: 0;
  max-width: 680px;
  color: #c9d4ee;
  font-size: 11px;
  line-height: 1.65;
}
.material-counts {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 190px;
  font: 600 10px "DM Mono";
  color: #dce7ff;
}
.material-counts span {
  border: 1px solid var(--line);
  padding: 9px;
  border-radius: 8px;
  background: rgba(6, 10, 22, 0.38);
}
.mod-cap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9ea9c8;
  font: 9px "DM Mono";
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(2, 6, 16, 0.4);
}
.mod-cap span:first-child {
  color: #8deaff;
}
.shift-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px dashed rgba(141, 114, 255, 0.36);
  border-radius: 9px;
  color: #aeb7d0;
  font: 10px "DM Mono";
}
.shift-hint.active {
  border-color: #ffdc7e;
  color: #ffdc7e;
  background: rgba(255, 211, 108, 0.08);
}
.class-grid {
  grid-template-columns: repeat(4, 1fr);
}
.class-card {
  padding: 0;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.class-portrait {
  height: 148px;
  background-image:
    linear-gradient(0deg, rgba(8, 11, 24, 0.55), transparent 55%),
    url("./assets/class-portraits-atlas.webp");
  background-size: 400% 200%;
  background-position: var(--x) var(--y);
  border-bottom: 1px solid var(--line);
}
.class-copy {
  padding: 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
}
.class-copy h3 {
  margin: 0 0 4px;
  font: 700 18px "Playfair Display";
}
.class-copy p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.class-passive {
  margin: 0 0 14px;
  color: #8deaff;
  font: 600 10px "DM Mono";
  line-height: 1.5;
}
.class-card.active-class {
  box-shadow:
    inset 0 0 0 1px var(--cyan),
    0 0 28px rgba(88, 224, 237, 0.12);
}
.class-card .button {
  margin-top: auto;
}
.auth-class {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 15px 0;
}
.auth-card.signup .auth-class {
  display: grid;
}
.auth-class button {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1021;
  color: #cdd8f6;
  font: 600 9px Manrope;
  cursor: pointer;
}
.auth-class button.active {
  border-color: var(--cyan);
  background: rgba(88, 224, 237, 0.12);
  color: #fff;
}
.auth-class button span {
  font-size: 17px;
  display: block;
  margin-bottom: 3px;
}
.class-statline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.class-statline span {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(141, 114, 255, 0.14);
  color: #cfc1ff;
  font: 9px "DM Mono";
}
@media (max-width: 850px) {
  .class-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 440px) {
  .class-grid {
    grid-template-columns: 1fr;
  }
  .auth-class {
    grid-template-columns: repeat(2, 1fr);
  }
}
.chapter-list {
  display: grid;
  gap: 20px;
}
.chapter-card {
  padding: 0;
  overflow: hidden;
}
.chapter-card.chapter-locked {
  filter: saturate(0.48);
  border-color: rgba(141, 114, 255, 0.25);
}
.chapter-locked .chapter-head {
  background: linear-gradient(
    110deg,
    rgba(38, 35, 60, 0.5),
    rgba(12, 17, 34, 0.55)
  );
}
.chapter-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 21px 21px 17px;
  background: linear-gradient(
    110deg,
    rgba(61, 55, 116, 0.34),
    rgba(12, 17, 34, 0.3)
  );
}
.chapter-head h2 {
  margin: 8px 0 5px;
  font: 700 25px "Playfair Display";
}
.chapter-head p {
  margin: 0;
  color: #bbc6e5;
  font-size: 11px;
  line-height: 1.6;
  max-width: 760px;
}
.chapter-head p b {
  color: #8deaff;
}
.chapter-progress {
  display: grid;
  align-content: center;
  text-align: right;
  white-space: nowrap;
}
.chapter-progress b {
  font: 800 23px "DM Mono";
  color: var(--gold);
}
.chapter-progress small {
  font: 10px "DM Mono";
  color: var(--muted);
}
.encounter-list {
  padding: 0 20px 18px;
  display: grid;
  gap: 9px;
}
.encounter-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(7, 11, 23, 0.38);
}
.encounter-row.cleared {
  border-color: rgba(108, 240, 169, 0.28);
}
.encounter-row.locked {
  opacity: 0.42;
  filter: saturate(0.4);
}
.encounter-thumb {
  height: 66px;
  border-radius: 8px;
  background-size: cover;
  background-position: 70% center;
}
.encounter-copy {
  display: grid;
  gap: 4px;
}
.encounter-copy .tag {
  justify-self: start;
}
.encounter-copy b {
  font-size: 13px;
}
.encounter-copy small,
.encounter-copy em {
  font: 10px "DM Mono";
  color: var(--muted);
  font-style: normal;
}
.encounter-copy em {
  color: #f6d483;
}
.boss-gate {
  border-top: 1px solid var(--line);
  background: #0a0f20;
  padding: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  opacity: 0.6;
}
.boss-gate.ready {
  opacity: 1;
}
.boss-gate__art {
  min-height: 148px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 17px;
}
.boss-gate h3 {
  margin: 8px 0 3px;
  font: 700 23px "Playfair Display";
}
.boss-gate p {
  margin: 0;
  color: #c8d2ef;
  font-size: 10px;
}
.combat-stage {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  overflow: hidden;
}
.combat-stage__top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.phase-tag {
  font: 700 10px "DM Mono";
  color: #ffbdc8;
  background: rgba(255, 91, 121, 0.15);
  padding: 5px 8px;
  border-radius: 6px;
}
.combat-vitals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.combat-vital {
  padding: 12px;
  background: rgba(7, 10, 22, 0.78);
  backdrop-filter: blur(9px);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.combat-vital b {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.combat-vital b small {
  color: #aab6d7;
  font-size: 10px;
}
.combat-vital em {
  font: 10px "DM Mono";
  color: #dbe5ff;
  font-style: normal;
}
.combat-hp {
  height: 10px;
  border-radius: 20px;
  overflow: hidden;
  background: #2a2941;
  margin: 9px 0 6px;
}
.combat-hp span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #58e0ed, #6cf0a9);
}
.combat-hp.enemy span {
  background: linear-gradient(90deg, #ff727d, #ffce70);
}
.combat-result-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}
.combat-log p {
  margin: 8px 0;
  color: #bdc8e8;
  font: 11px "DM Mono";
  line-height: 1.6;
}
.combat-log strong {
  color: #ffda88;
}
.phase-log {
  color: #ff9ca8;
}
.level-log {
  color: #8effc6;
}
.combat-rewards h2 {
  font: 700 21px "Playfair Display";
  margin: 8px 0;
}
.combat-rewards p {
  color: #aeb9d8;
  font-size: 11px;
  line-height: 1.55;
}
.loot-name {
  color: #ffdc8d !important;
  font-weight: 700;
}
.material-drop {
  color: #8effc6 !important;
}
.combat-rewards .button {
  margin-top: 10px;
}
.item-compare {
  margin: 0 0 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font: 700 10px "DM Mono";
}
.item-compare.better {
  color: #8effc6;
  background: rgba(108, 240, 169, 0.09);
}
.item-compare.worse {
  color: #ffabb4;
  background: rgba(255, 109, 125, 0.09);
}
@media (max-width: 850px) {
  .chapter-head,
  .boss-gate {
    grid-template-columns: 1fr;
  }
  .chapter-progress {
    text-align: left;
  }
  .encounter-row {
    grid-template-columns: 62px 1fr;
  }
  .encounter-row .button {
    grid-column: 1/-1;
  }
  .encounter-thumb {
    height: 58px;
  }
  .combat-vitals,
  .combat-result-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 440px) {
  .chapter-head {
    padding: 16px;
  }
  .encounter-list {
    padding: 0 13px 13px;
  }
  .boss-gate {
    padding: 13px;
  }
  .combat-stage {
    min-height: 300px;
    padding: 14px;
  }
  .combat-stage__top {
    align-items: flex-start;
    flex-direction: column;
  }
}
.codex-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 80% 0, rgba(88, 224, 237, 0.2), transparent 38%),
    linear-gradient(125deg, rgba(54, 43, 104, 0.72), rgba(14, 20, 40, 0.8));
}
.codex-hero h2 {
  margin: 7px 0;
  font: 700 30px "Playfair Display";
}
.codex-hero p {
  max-width: 600px;
  margin: 0;
  color: #c3cdea;
  font-size: 11px;
  line-height: 1.6;
}
.codex-score {
  display: grid;
  min-width: 126px;
  text-align: right;
}
.codex-score b {
  font: 800 30px "DM Mono";
  color: #ffdc8d;
}
.codex-score small {
  font: 10px "DM Mono";
  color: var(--muted);
}
.contract-list {
  display: grid;
  gap: 10px;
}
.contract-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px 16px;
}
.contract-card.ready {
  border-color: rgba(108, 240, 169, 0.5);
  box-shadow: 0 0 20px rgba(108, 240, 169, 0.06);
}
.contract-card.claimed {
  opacity: 0.58;
}
.contract-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #38366e, #1d2949);
  font-size: 22px;
}
.contract-copy h3 {
  margin: 2px 0 4px;
  font: 700 17px "Playfair Display";
}
.contract-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.contract-copy small {
  color: #f0d496;
  font: 10px "DM Mono";
}
@media (max-width: 620px) {
  .codex-hero,
  .contract-card {
    grid-template-columns: 1fr;
  }
  .codex-score {
    text-align: left;
  }
  .contract-card .button {
    width: 100%;
  }
}
.bestiary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bestiary-card {
  padding: 0;
  overflow: hidden;
}
.bestiary-card.bestiary-boss {
  border-color: rgba(255, 206, 112, 0.38);
}
.bestiary-card.undiscovered {
  filter: saturate(0.08);
  opacity: 0.62;
}
.bestiary-art {
  height: 152px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-start;
  padding: 13px;
}
.bestiary-copy {
  padding: 15px;
}
.bestiary-copy h3 {
  margin: 6px 0 5px;
  font: 700 20px "Playfair Display";
}
.bestiary-copy p {
  margin: 0;
  color: #b5c0dd;
  font-size: 11px;
  line-height: 1.55;
}
.bestiary-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font: 9px "DM Mono";
  color: #ffdc8d;
}
.bestiary-meta span:last-child {
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8deaff;
}
@media (max-width: 1050px) {
  .bestiary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .bestiary-grid {
    grid-template-columns: 1fr;
  }
  .bestiary-art {
    height: 175px;
  }
}
.campaign-map {
  display: grid;
  gap: 17px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 80% 0, rgba(88, 224, 237, 0.14), transparent 40%),
    linear-gradient(125deg, rgba(39, 39, 81, 0.78), rgba(14, 19, 37, 0.92));
}
.campaign-map h2 {
  margin: 7px 0 0;
  font: 700 23px "Playfair Display";
}
.map-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  overflow: auto;
  padding: 3px 0;
}
.map-node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 68px;
  color: #65708e;
  font: 9px "DM Mono";
}
.map-node:after {
  content: "";
  position: absolute;
  top: 18px;
  left: calc(50% + 23px);
  width: calc(100% - 39px);
  height: 2px;
  background: #2b3047;
}
.map-node:last-child:after {
  display: none;
}
.map-node > span {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid #37405c;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #151a2d;
  font-size: 16px;
}
.map-node b {
  color: inherit;
}
.map-node.unlocked {
  color: #d7e4ff;
}
.map-node.unlocked > span {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(88, 224, 237, 0.18);
}
.map-node.complete {
  color: #9bffd0;
}
.map-node.complete > span {
  border-color: var(--green);
  background: #12382f;
}
.map-node.complete:after {
  background: linear-gradient(90deg, var(--green), var(--cyan));
}
@media (max-width: 620px) {
  .campaign-map {
    padding: 15px;
  }
  .map-track {
    justify-content: flex-start;
  }
  .map-node {
    min-width: 60px;
  }
}
.talent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 26px;
}
.talent-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: center;
  padding: 13px;
}
.talent-card.maxed {
  border-color: rgba(108, 240, 169, 0.42);
  background: linear-gradient(
    135deg,
    rgba(20, 73, 59, 0.4),
    rgba(18, 25, 45, 0.9)
  );
}
.talent-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4b3b77, #1d2d54);
  font-size: 19px;
}
.talent-card h3 {
  margin: 3px 0;
  font: 700 16px "Playfair Display";
}
.talent-card p {
  grid-column: 2;
  margin: 0;
  color: #adb9d9;
  font-size: 11px;
  line-height: 1.45;
}
.talent-card .button {
  grid-column: 1/-1;
  width: 100%;
  padding: 8px;
}
@media (max-width: 1000px) {
  .talent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .talent-grid {
    grid-template-columns: 1fr;
  }
}
.merchant-banner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at 85% 0, rgba(255, 206, 112, 0.2), transparent 35%),
    linear-gradient(130deg, #30264b, #151c34);
}
.merchant-banner h2 {
  margin: 7px 0;
  font: 700 27px "Playfair Display";
}
.merchant-banner p {
  margin: 0;
  color: #c3cde8;
  font-size: 11px;
  line-height: 1.55;
  max-width: 620px;
}
.merchant-grid {
  display: grid;
  gap: 10px;
}
.merchant-card {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
}
.merchant-card.sold {
  opacity: 0.55;
}
.merchant-card h3 {
  margin: 4px 0;
  font: 700 17px "Playfair Display";
}
.merchant-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.merchant-buy {
  display: grid;
  justify-items: end;
  gap: 8px;
}
.merchant-buy b {
  font: 11px "DM Mono";
  color: #ffdc8d;
}
@media (max-width: 760px) {
  .merchant-card {
    grid-template-columns: 45px 1fr;
  }
  .merchant-buy {
    grid-column: 1/-1;
    justify-items: stretch;
  }
  .merchant-banner {
    display: grid;
  }
}
.achievement-list {
  display: grid;
  gap: 9px;
  margin-bottom: 26px;
}
.achievement-card {
  display: grid;
  grid-template-columns: 37px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 14px;
}
.achievement-card > span {
  font-size: 22px;
}
.achievement-card.ready {
  border-color: rgba(255, 206, 112, 0.5);
  box-shadow: 0 0 18px rgba(255, 206, 112, 0.07);
}
.achievement-card.claimed {
  opacity: 0.55;
}
.achievement-card h3 {
  margin: 0 0 3px;
  font: 700 16px "Playfair Display";
}
.achievement-card p {
  margin: 0;
  color: #b9c5e0;
  font-size: 10px;
}
.achievement-card small {
  font: 9px "DM Mono";
  color: #ffdc8d;
}
.worldboss-hp {
  margin: 18px 0;
}
.worldboss-hp > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font: 10px "DM Mono";
  color: #e1e8fb;
}
.worldboss-hp b {
  color: #ffabb5;
}
.worldboss-hp .progress {
  height: 11px;
  margin: 8px 0;
}
.worldboss-hp .progress span {
  background: linear-gradient(90deg, #ff697a, #ffce70);
}
@media (max-width: 620px) {
  .achievement-card {
    grid-template-columns: 32px 1fr;
  }
  .achievement-card .button {
    grid-column: 1/-1;
    width: 100%;
  }
}
.inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(12, 17, 34, 0.72);
}
.inventory-toolbar > b {
  margin-right: auto;
  font: 700 11px "DM Mono";
  color: #ffdc8d;
}
.inventory-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 10px "DM Mono";
}
.inventory-toolbar select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #10172b;
  color: var(--text);
  padding: 7px 9px;
  font: 11px Manrope;
}
.item-card.item-locked {
  border-color: rgba(255, 206, 112, 0.38);
}
.button.salvage {
  color: #ffb2bc;
  background: rgba(255, 109, 125, 0.09);
  border: 1px solid rgba(255, 109, 125, 0.25);
}
.button.salvage[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.button.item-lock {
  color: #f5d791;
}
@media (max-width: 620px) {
  .inventory-toolbar {
    align-items: stretch;
  }
  .inventory-toolbar > b {
    width: 100%;
  }
  .inventory-toolbar label {
    flex: 1;
    display: grid;
  }
  .inventory-toolbar select {
    width: 100%;
  }
}

/* VEYDRIS consolidated component foundation.
 * Mechanically migrated from the still-referenced pre-17.5 visual modules in original cascade order.
 * Runtime shell, focus, overlay and responsive ownership lives in vey-game-shell.css / vey-responsive.css.
 */

/* source: fonts.css */
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("./assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("./assets/fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fonts/playfair-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("./assets/fonts/playfair-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* source: effects.css */
.sidebar {
  width: 250px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(141, 114, 255, 0.45) transparent;
}

.auth-layer {
  place-items: start center;
  overflow-y: auto;
  padding: 20px 12px;
}
.auth-layer > .auth-card {
  margin: auto 0;
}

.auth-recovery {
  display: none !important;
}
.auth-card.recover .auth-name,
.auth-card.recover .auth-class {
  display: none !important;
}
.auth-card.recover .auth-recovery {
  display: grid !important;
}
.auth-card.recover .auth-forgot {
  display: none;
}
.auth-card.signup .auth-forgot {
  display: none;
}
.auth-card.signup #emailResetRequest,
.auth-card.recover #emailResetRequest,
.auth-card.email-reset #emailResetRequest,
.auth-card.email-reset .auth-name,
.auth-card.email-reset .auth-class,
.auth-card.email-reset .auth-email,
.auth-card.email-reset .auth-recovery,
.auth-card.email-reset .auth-forgot {
  display: none !important;
}
.dialog-layer {
  z-index: 40;
  background: rgba(5, 8, 19, 0.86);
  backdrop-filter: blur(12px);
}
.recovery-card,
.account-card {
  position: relative;
  text-align: center;
}
.account-close-icon {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(220, 190, 132, 0.48);
  border-radius: 7px;
  background: rgba(8, 11, 20, 0.9);
  color: #f2dfbc;
  font: 400 30px/1 sans-serif;
  cursor: pointer;
}
.account-close-icon:hover {
  border-color: #e0b86e;
  background: #191522;
}
.account-close-icon:focus-visible {
  outline: 3px solid #7ce9f3;
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .account-close-icon {
    position: sticky;
    top: max(8px, env(safe-area-inset-top));
    float: right;
    margin: -2px -2px 4px 8px;
  }
}
.recovery-code {
  display: block;
  margin: 20px 0 14px;
  padding: 15px 10px;
  border: 1px solid rgba(88, 224, 237, 0.42);
  border-radius: 10px;
  background: #090e20;
  color: #8deaff;
  font: 700 15px "DM Mono";
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  user-select: all;
}
.account-card .button,
.recovery-card .button {
  margin-top: 9px;
}
.preference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 14px 0 6px;
}
.preference-grid .button {
  padding-inline: 6px;
  font-size: 10px;
}
.button.danger {
  border-color: rgba(255, 111, 132, 0.45);
  color: #ffd3d9;
  background: rgba(150, 32, 54, 0.2);
}
.leaderboard,
.guild-ranking {
  margin-top: 18px;
}
.leaderboard-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  color: #cbd4ef;
  font-size: 11px;
}
.leaderboard-row:last-child {
  border-bottom: 0;
}
.leaderboard-row span {
  color: var(--gold);
  font-family: "DM Mono";
}
.leaderboard-row small {
  color: var(--muted);
}
.leaderboard-row.is-me {
  border-radius: 8px;
  background: rgba(88, 224, 237, 0.09);
  color: #fff;
}
.season-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.season-challenge {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
}
.season-challenge > span {
  font-size: 27px;
}
.season-challenge h3,
.season-challenge p {
  margin: 0 0 6px;
}
.season-challenge p,
.season-challenge small {
  color: var(--muted);
  font-size: 11px;
}
.season-challenge .button {
  grid-column: 1 / -1;
}
.season-challenge.ready {
  border-color: rgba(108, 240, 169, 0.45);
}
.chapter-toggle {
  display: block;
  margin: 18px auto 0;
}
@media (max-width: 850px) {
  .season-grid {
    grid-template-columns: 1fr;
  }
  .leaderboard-row {
    grid-template-columns: 1fr auto;
  }
  .leaderboard-row small {
    grid-column: 1 / -1;
  }
}

*:focus-visible {
  outline: 2px solid #8deaff;
  outline-offset: 3px;
}
.floating-damage {
  position: absolute;
  z-index: 8;
  top: 38%;
  color: #fff4af;
  font: 800 30px "DM Mono";
  text-shadow:
    0 2px 8px #000,
    0 0 18px #ff9f43;
  animation: damage-float 0.58s ease-out both;
}
.floating-damage.player {
  right: 27%;
}
.floating-damage.enemy {
  left: 27%;
  color: #ff9eae;
}
.mechanic-tag {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid rgba(255, 190, 105, 0.45);
  border-radius: 7px;
  color: #ffd18c;
  background: rgba(91, 44, 27, 0.52);
  font: 700 9px "DM Mono";
  text-transform: uppercase;
}
.combat-equipment {
  position: absolute;
  display: flex;
  gap: 3px;
  bottom: 21px;
}
.combat-equipment span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(141, 224, 255, 0.35);
  border-radius: 7px;
  background: rgba(7, 11, 24, 0.84);
  font-size: 13px;
}
@keyframes damage-float {
  from {
    transform: translateY(12px) scale(0.82);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  to {
    transform: translateY(-28px) scale(1.08);
    opacity: 0;
  }
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
.ascension-hero {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: center;
  min-height: 250px;
  margin-bottom: 18px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(141, 114, 255, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 12% 50%,
      rgba(88, 224, 237, 0.18),
      transparent 27%
    ),
    radial-gradient(circle at 85% 0, rgba(170, 94, 255, 0.25), transparent 38%),
    linear-gradient(135deg, #151b39, #0c1023);
}
.ascension-hero.ready {
  border-color: rgba(108, 240, 169, 0.5);
  box-shadow: 0 0 45px rgba(88, 224, 237, 0.08);
}
.ascension-hero h2,
.ascension-gate h2 {
  margin: 7px 0;
  font: 700 30px "Playfair Display";
}
.ascension-hero p,
.ascension-gate p,
.ascension-upgrade p {
  color: #bdc8e8;
  font-size: 11px;
  line-height: 1.65;
}
.ascension-orbit {
  position: relative;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 224, 237, 0.45);
  border-radius: 50%;
  box-shadow:
    inset 0 0 32px rgba(141, 114, 255, 0.3),
    0 0 30px rgba(88, 224, 237, 0.15);
  animation: ascension-pulse 3.5s ease-in-out infinite;
}
.ascension-orbit::before,
.ascension-orbit::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(185, 138, 255, 0.5);
  border-radius: 50%;
  animation: ascension-spin 12s linear infinite;
}
.ascension-orbit::after {
  inset: -8px;
  animation-direction: reverse;
  animation-duration: 18s;
}
.ascension-orbit span {
  font: 700 58px "Playfair Display";
  color: #8deaff;
  text-shadow: 0 0 22px #8d72ff;
}
.ascension-currencies {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.ascension-currencies span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(7, 11, 25, 0.6);
  color: #f4da96;
  font: 10px "DM Mono";
}
.ascension-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: start;
}
.ascension-gate {
  position: sticky;
  top: 92px;
}
.ascension-requirements {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}
.ascension-requirements div {
  display: flex;
  gap: 9px;
  color: #8f98b8;
  font-size: 11px;
}
.ascension-requirements .done {
  color: #8effc6;
}
.ascend-button {
  width: 100%;
  color: #07111b;
  background: linear-gradient(135deg, #79f0d0, #8d72ff, #ff9ed0);
  box-shadow: 0 0 30px rgba(141, 114, 255, 0.28);
}
.ascension-warning {
  color: #ffbdc8;
}
.ascension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ascension-upgrade {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 11px;
  align-items: center;
}
.ascension-upgrade .button {
  grid-column: 1 / -1;
}
.ascension-upgrade.maxed {
  border-color: rgba(108, 240, 169, 0.45);
}
.ascension-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #47386f, #193654);
  font-size: 22px;
}
.ascension-upgrade h3 {
  margin: 4px 0;
  font: 700 17px "Playfair Display";
}
@keyframes ascension-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes ascension-pulse {
  50% {
    transform: scale(1.035);
    filter: brightness(1.18);
  }
}
@media (max-width: 850px) {
  .sidebar {
    pointer-events: none;
  }
  .sidebar.open {
    pointer-events: auto;
  }
  .menu-button {
    position: relative;
    z-index: 21;
  }
  .ascension-layout {
    grid-template-columns: 1fr;
  }
  .ascension-gate {
    position: static;
  }
}
@media (max-width: 620px) {
  .ascension-hero {
    grid-template-columns: 1fr;
  }
  .ascension-orbit {
    width: 96px;
    height: 96px;
  }
  .ascension-grid {
    grid-template-columns: 1fr;
  }
}

.loadout-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  background:
    radial-gradient(circle at 0 50%, rgba(88, 224, 237, 0.11), transparent 32%),
    linear-gradient(135deg, rgba(32, 39, 75, 0.9), rgba(13, 18, 34, 0.94));
}
.loadout-panel h2 {
  margin: 6px 0;
  font: 700 22px "Playfair Display";
}
.loadout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.loadout-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 12, 27, 0.5);
}
.loadout-card > div {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
}
.loadout-card small {
  color: #8deaff;
  font: 8px "DM Mono";
}
.loadout-card b {
  font-size: 12px;
}
.loadout-card span {
  color: var(--muted);
  font-size: 9px;
}
.loadout-card .button {
  padding: 7px 5px;
  font-size: 9px;
}
.equipped-panel {
  margin-bottom: 12px;
}
.inventory-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.reroll-cost {
  margin: 8px 0;
  color: #d6c5ff;
  font: 9px "DM Mono";
}
.affixes li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
}
.affix-reroll {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 138, 255, 0.3);
  border-radius: 6px;
  color: #d6c5ff;
  background: rgba(141, 114, 255, 0.1);
  cursor: pointer;
}
.affix-reroll:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}
.tutorial-panel {
  margin-bottom: 16px;
  background:
    radial-gradient(
      circle at 90% 0,
      rgba(108, 240, 169, 0.12),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(29, 43, 73, 0.94), rgba(13, 19, 37, 0.96));
}
.tutorial-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.tutorial-head h2 {
  margin: 5px 0;
  font: 700 24px "Playfair Display";
}
.tutorial-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.tutorial-score {
  display: grid;
  text-align: right;
}
.tutorial-score b {
  color: #8effc6;
  font: 800 28px "DM Mono";
}
.tutorial-score small {
  color: var(--muted);
  font: 8px "DM Mono";
}
.tutorial-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 15px 0;
}
.tutorial-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 68px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: rgba(7, 11, 25, 0.5);
  text-align: left;
  cursor: pointer;
}
.tutorial-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #252d52;
}
.tutorial-step b,
.tutorial-step small {
  display: block;
}
.tutorial-step b {
  font-size: 10px;
}
.tutorial-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}
.tutorial-step.done {
  border-color: rgba(108, 240, 169, 0.35);
}
.tutorial-step.done > span {
  color: #071b16;
  background: #6cf0a9;
}
@media (max-width: 900px) {
  .loadout-panel {
    grid-template-columns: 1fr;
  }
  .tutorial-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 620px) {
  .loadout-grid {
    grid-template-columns: 1fr;
  }
  .inventory-tabs .button {
    flex: 1;
  }
  .tutorial-head {
    align-items: flex-start;
  }
  .tutorial-steps {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.combat-animated {
  position: relative;
  isolation: isolate;
  min-height: 430px;
}
.combat-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 52%,
    rgba(141, 114, 255, 0.16),
    transparent 34%
  );
  pointer-events: none;
}
.combatants {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  gap: 20px;
  margin: auto 0;
  padding: 25px 6%;
}
.combatant {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}
.combatant > span {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 205, 255, 0.36);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(57, 76, 129, 0.95),
    rgba(20, 27, 55, 0.96)
  );
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
  font-size: 46px;
}
.enemy-combatant > span {
  border-color: rgba(255, 123, 145, 0.42);
  background: linear-gradient(
    145deg,
    rgba(100, 41, 65, 0.95),
    rgba(36, 20, 42, 0.96)
  );
}
.combatant small {
  color: #dce5ff;
  font: 10px "DM Mono";
  text-align: center;
}
.combatant-aura {
  position: absolute;
  top: 4px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #58e0ed;
  opacity: 0.14;
  filter: blur(18px);
  animation: combat-aura 1.8s ease-in-out infinite;
}
.enemy-combatant .combatant-aura {
  background: #ff6d7d;
}
.combat-impact {
  color: #ffdf92;
  font: 900 22px "DM Mono";
  text-align: center;
  text-shadow: 0 0 18px currentColor;
  animation: impact-pop 0.55s ease both;
}
.hero-strike .hero-combatant {
  animation: hero-lunge 0.55s ease both;
}
.hero-strike .enemy-combatant {
  animation: enemy-hit 0.55s ease both;
}
.enemy-strike .enemy-combatant {
  animation: enemy-lunge 0.55s ease both;
}
.enemy-strike .hero-combatant {
  animation: hero-hit 0.55s ease both;
}
.skill-banner {
  position: absolute;
  z-index: 4;
  top: 52px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(88, 224, 237, 0.4);
  border-radius: 10px;
  background: rgba(9, 14, 31, 0.88);
  box-shadow: 0 0 25px rgba(88, 224, 237, 0.15);
  animation: skill-reveal 0.6s ease both;
}
.skill-banner > span {
  font-size: 24px;
}
.skill-banner small,
.skill-banner b {
  display: block;
}
.skill-banner small {
  color: #8deaff;
  font: 8px "DM Mono";
  letter-spacing: 1.4px;
}
.skill-banner b {
  margin-top: 2px;
  font: 700 14px "Playfair Display";
}
.skill-log {
  color: #8deaff;
}
.combat-fx-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.combat-fx-layer i {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 2px;
  height: 120%;
  transform: rotate(22deg);
  background: linear-gradient(
    transparent,
    rgba(141, 114, 255, 0.45),
    transparent
  );
  animation: fx-drift 4s linear infinite;
}
.combat-fx-layer i:nth-child(2) {
  left: 52%;
  animation-delay: -1.3s;
}
.combat-fx-layer i:nth-child(3) {
  left: 80%;
  animation-delay: -2.6s;
}
.combat-log {
  max-height: 350px;
  overflow: auto;
}
.combat-hp span {
  transition: width 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes hero-lunge {
  45% {
    transform: translateX(42px) scale(1.08);
  }
}
@keyframes enemy-lunge {
  45% {
    transform: translateX(-42px) scale(1.08);
  }
}
@keyframes hero-hit {
  40% {
    transform: translateX(-10px);
    filter: brightness(1.8) saturate(1.8);
  }
}
@keyframes enemy-hit {
  40% {
    transform: translateX(10px);
    filter: brightness(1.8) saturate(1.8);
  }
}
@keyframes impact-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  45% {
    opacity: 1;
    transform: scale(1.4);
  }
}
.toast {
  opacity: 0;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

.account-verification {
  display: grid;
  gap: 8px;
  margin: 10px 0 16px;
}
.verified-mark,
.pending-mark {
  font: 700 10px "DM Mono";
}
.verified-mark {
  color: var(--green);
}
.pending-mark {
  color: var(--gold);
}
.alpha-loading {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  font: 700 12px "DM Mono";
}
.event-hero,
.raid-hero,
.guild-alpha-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 85% 0, rgba(88, 224, 237, 0.18), transparent 38%),
    linear-gradient(125deg, rgba(48, 40, 94, 0.86), rgba(14, 20, 40, 0.92));
}
.event-hero > div,
.raid-hero > div {
  flex: 1;
}
.event-hero h2,
.raid-hero h2,
.guild-alpha-head h2,
.season-pass h2,
.set-bonus h2,
.alpha-form h2 {
  margin: 7px 0;
  font: 700 25px "Playfair Display";
}
.event-hero p,
.raid-hero p,
.set-bonus p {
  color: #c5cfea;
  font-size: 11px;
}
.alpha-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 12px;
}
.alpha-section-title h2 {
  margin: 0;
  font: 700 20px "Playfair Display";
}
.alpha-section-title span {
  color: var(--gold);
  font: 700 11px "DM Mono";
}
.liveops-list,
.feedback-list {
  display: grid;
  gap: 10px;
}
.liveops-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
}
.liveops-card.claimed {
  opacity: 0.65;
}
.alpha-icon,
.recipe-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #493c7e, #1c2c50);
  font-size: 24px;
}
.liveops-card h3,
.recipe-card h3,
.feedback-row h3 {
  margin: 5px 0 2px;
  font: 700 17px "Playfair Display";
}
.liveops-card p,
.recipe-card p,
.feedback-row p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}
.season-pass,
.set-bonus {
  margin-top: 18px;
}
.season-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.season-tier {
  display: grid;
  gap: 7px;
  min-height: 130px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7, 11, 25, 0.46);
}
.season-tier.claimed {
  border-color: rgba(108, 240, 169, 0.35);
}
.season-tier span {
  color: #dce4fb;
  font-size: 10px;
}
.season-tier small {
  color: var(--gold);
  font: 9px "DM Mono";
}
.season-tier .button {
  margin-top: auto;
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.recipe-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
}
.recipe-card small {
  color: var(--gold);
  font: 9px "DM Mono";
}
.raid-overview,
.raid-wing-title,
.raid-difficulty-head,
.raid-personal,
.guild-treasury {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.raid-overview {
  margin-bottom: 16px;
  background: linear-gradient(
    120deg,
    rgba(63, 48, 118, 0.72),
    rgba(20, 43, 68, 0.78)
  );
}
.raid-overview h2,
.raid-wing h2 {
  margin: 5px 0;
  font: 700 24px "Playfair Display";
}
.raid-overview p {
  max-width: 760px;
  color: var(--muted);
  font-size: 11px;
}
.raid-overview strong {
  white-space: nowrap;
  color: var(--gold);
  font: 700 12px "DM Mono";
}
.raid-wing {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  background:
    linear-gradient(90deg, rgba(10, 14, 31, 0.96), rgba(10, 14, 31, 0.84)),
    var(--raid-image) right 22% / 48% auto no-repeat;
}
.raid-wing-title {
  justify-content: flex-start;
  margin-bottom: 16px;
}
.raid-wing-title > span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #4d3c85, #173a55);
  font-size: 28px;
}
.raid-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.raid-difficulty {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(6, 10, 23, 0.5);
}
.raid-difficulty.defeated {
  border-color: rgba(108, 240, 169, 0.4);
}
.raid-difficulty-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}
.raid-difficulty-head > b {
  color: var(--gold);
  font: 9px "DM Mono";
}
.raid-difficulty .worldboss-hp {
  margin: 14px 0;
}
.raid-difficulty .worldboss-hp small {
  display: block;
  min-height: 28px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.raid-personal {
  align-items: flex-start;
  margin: 10px 0;
  color: var(--muted);
  font-size: 9px;
}
.raid-personal > span:last-child {
  display: grid;
  gap: 3px;
  text-align: right;
}
.raid-personal b {
  color: var(--text);
}
.raid-personal > span:last-child span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.raid-milestones {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.raid-milestone {
  min-width: 0;
  padding: 7px 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #111831;
  cursor: pointer;
}
.raid-milestone b,
.raid-milestone span,
.raid-milestone small {
  display: block;
}
.raid-milestone b {
  color: var(--cyan);
}
.raid-milestone span,
.raid-milestone small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 7px;
  text-overflow: ellipsis;
}
.raid-milestone.claimed {
  border-color: rgba(108, 240, 169, 0.45);
}
.raid-strike {
  width: 100%;
}
.set-bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.set-bonus-grid .set-bonus {
  margin-top: 0;
}
.guild-dashboard,
.guild-social-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 14px;
}
.guild-treasury {
  display: grid;
  justify-items: end;
  color: var(--gold);
  font: 700 10px "DM Mono";
}
.guild-objectives,
.guild-research-grid,
.guild-donations {
  display: grid;
  gap: 8px;
}
.guild-objective,
.guild-research,
.guild-activity {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 11, 25, 0.4);
}
.guild-objective > span,
.guild-research > span {
  font-size: 21px;
}
.guild-objective small,
.guild-research small {
  color: var(--muted);
  font-size: 8px;
}
.guild-objective .progress {
  margin: 5px 0 0;
}
.guild-objective.claimed,
.guild-research.maxed {
  border-color: rgba(108, 240, 169, 0.35);
}
.guild-donations form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}
.guild-donations label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}
.guild-donations select {
  width: 100%;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #0b1021;
}
.guild-research-panel {
  margin-bottom: 14px;
}
.guild-research-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.guild-research p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 9px;
}
.guild-panel-head {
  padding: 0 16px;
}
.guild-activity-panel {
  align-self: start;
}
.guild-activity {
  grid-template-columns: auto 1fr auto;
  margin-bottom: 6px;
}
.guild-activity p {
  margin: 0;
  font-size: 9px;
}
.guild-activity small {
  color: var(--muted);
  font-size: 8px;
}
.item-set-mark {
  margin: 8px 0;
  padding: 7px 9px;
  border: 1px solid rgba(108, 240, 169, 0.25);
  border-radius: 7px;
  color: #8effc6;
  background: rgba(108, 240, 169, 0.07);
  font: 700 9px "DM Mono";
}
.invite-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.invite-card small {
  display: block;
  color: var(--muted);
}
.guild-roster {
  margin-bottom: 16px;
}
.guild-member-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.guild-member-row:last-child {
  border-bottom: 0;
}
.guild-member-row small {
  display: block;
  color: var(--muted);
  font: 9px "DM Mono";
}
.alpha-form {
  display: grid;
  gap: 13px;
  margin-bottom: 16px;
}
.alpha-form label,
.inline-form label {
  display: grid;
  gap: 6px;
  color: #c6d0ec;
  font-size: 10px;
  font-weight: 700;
}
.alpha-form input,
.alpha-form select,
.alpha-form textarea,
.inline-form input,
.inline-form select,
.chat-compose input,
.admin-user-row select,
.admin-feedback-row select,
.admin-feedback-row input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #e9edff;
  background: #0b1021;
  font: 11px Manrope;
}
.alpha-form input::placeholder,
.inline-form input::placeholder,
.chat-compose input::placeholder,
.admin-feedback-row input::placeholder {
  color: #aeb8d5;
  opacity: 1;
}
.alpha-form textarea {
  min-height: 140px;
  resize: vertical;
}
.inline-form {
  display: flex;
  align-items: end;
  gap: 9px;
  margin-bottom: 16px;
}
.inline-form label {
  flex: 1;
}
.chat-panel {
  padding: 0;
  overflow: hidden;
}
.chat-log {
  display: grid;
  gap: 7px;
  max-height: 470px;
  padding: 16px;
  overflow: auto;
}
.chat-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(7, 11, 25, 0.42);
}
.chat-message b {
  color: var(--cyan);
  font-size: 11px;
}
.chat-message p {
  margin: 4px 0;
  font-size: 11px;
}
.chat-message small {
  color: var(--muted);
  font: 8px "DM Mono";
}
.chat-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 13px;
  border-top: 1px solid var(--line);
}
.feedback-form {
  grid-template-columns: 1fr 180px;
}
.feedback-form label:nth-of-type(2),
.feedback-form label:nth-of-type(3),
.feedback-form button {
  grid-column: 1 / -1;
}
.feedback-row small {
  display: block;
  margin-top: 8px;
  color: var(--green);
}
.alpha-metrics {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}
.alpha-metrics article {
  display: grid;
  gap: 7px;
}
.alpha-metrics small {
  color: var(--muted);
  font: 9px "DM Mono";
}
.alpha-metrics b {
  color: var(--gold);
  font: 800 28px Manrope;
}
.admin-tools {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-tools form {
  flex: 1;
  margin: 0;
}
.invite-code {
  padding: 10px;
  color: var(--gold);
  font: 800 13px "DM Mono";
}
.admin-table {
  margin-bottom: 14px;
}
.admin-user-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 110px auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.admin-user-row small,
.admin-feedback-row small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.admin-feedback-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 180px auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.admin-feedback-row p {
  margin: 4px 0 0;
  color: #bdc7e4;
  font-size: 10px;
}

@media (max-width: 900px) {
  .season-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .recipe-grid,
  .alpha-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .admin-user-row,
  .admin-feedback-row {
    grid-template-columns: 1fr 1fr;
  }
  .raid-difficulty-grid,
  .set-bonus-grid,
  .guild-dashboard,
  .guild-social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .event-hero,
  .raid-hero,
  .raid-overview,
  .raid-difficulty-head,
  .raid-personal,
  .guild-alpha-head,
  .guild-treasury,
  .admin-tools,
  .inline-form {
    display: grid;
  }
  .liveops-card,
  .recipe-card,
  .invite-card,
  .feedback-form,
  .alpha-metrics,
  .recipe-grid,
  .admin-user-row,
  .admin-feedback-row {
    grid-template-columns: 1fr;
  }
  .guild-member-row {
    grid-template-columns: 1fr;
  }
  .guild-research-grid {
    grid-template-columns: 1fr;
  }
  .guild-research-panel .section-head {
    display: grid;
    justify-content: start;
    gap: 5px;
  }
  .guild-treasury {
    justify-items: start;
  }
  .alpha-icon,
  .recipe-icon {
    width: 42px;
    height: 42px;
  }
  .chat-compose {
    grid-template-columns: 1fr;
  }
}

@keyframes combat-aura {
  50% {
    opacity: 0.3;
    transform: scale(1.25);
  }
}
@keyframes skill-reveal {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.92);
  }
}
@keyframes fx-drift {
  from {
    transform: translateX(-80px) rotate(22deg);
  }
  to {
    transform: translateX(80px) rotate(22deg);
  }
}
@media (max-width: 620px) {
  .combat-animated {
    min-height: 390px;
  }
  .combatants {
    grid-template-columns: 1fr 44px 1fr;
    gap: 5px;
    padding-inline: 0;
  }
  .combatant > span {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    font-size: 32px;
  }
  .skill-banner {
    top: 48px;
  }
}

/* Stable, touch-friendly combat playback */
.combat-screen {
  overflow-anchor: none;
}
.combat-toolbar {
  min-height: 58px;
  margin-bottom: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 17, 34, 0.78);
}
.combat-current-status {
  min-width: 0;
  margin: 0;
  color: #c6d1ec;
  font-size: 11px;
  line-height: 1.45;
}
.combat-speed-control,
.combat-speed-buttons {
  display: flex;
  align-items: center;
}
.combat-speed-control {
  flex: 0 0 auto;
  gap: 9px;
  color: var(--muted);
  font: 700 9px "DM Mono";
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.combat-speed-buttons {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 9, 21, 0.72);
}
.combat-speed-button {
  min-width: 38px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: #aeb9d7;
  background: transparent;
  font: 800 11px "DM Mono";
  cursor: pointer;
  touch-action: manipulation;
}
.combat-speed-button.active {
  color: #07131f;
  background: linear-gradient(135deg, #8deaff, #8d72ff);
  box-shadow: 0 4px 14px rgba(88, 224, 237, 0.2);
}
.combat-stage[data-combat-stage] {
  contain: layout paint;
  overflow-anchor: none;
}
.combat-stage__top {
  min-height: 28px;
  align-items: flex-start;
}
.combat-stage__top .is-hidden,
.skill-banner.is-hidden {
  visibility: hidden;
}
.combat-damage-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}
.combat-vital {
  min-width: 0;
}
.combat-vital b > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combat-log {
  height: 240px;
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.combat-log__entries {
  flex: 1;
  min-height: 0;
  margin-top: 7px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.combat-log__entries p:first-child {
  margin-top: 0;
}
.combat-rewards {
  min-height: 240px;
}

@media (max-width: 850px) {
  .combat-log {
    height: 190px;
  }
  .combat-rewards {
    min-height: 175px;
  }
}

@keyframes hero-lunge-mobile {
  45% {
    transform: translateX(12px) scale(1.035);
  }
}
@keyframes enemy-lunge-mobile {
  45% {
    transform: translateX(-12px) scale(1.035);
  }
}
@keyframes hero-hit-mobile {
  40% {
    transform: translateX(-4px);
    filter: brightness(1.55) saturate(1.35);
  }
}
@keyframes enemy-hit-mobile {
  40% {
    transform: translateX(4px);
    filter: brightness(1.55) saturate(1.35);
  }
}

@media (max-width: 620px) {
  .combat-toolbar {
    min-height: 112px;
    display: grid;
    gap: 8px;
    padding: 10px;
  }
  .combat-current-status {
    min-height: 32px;
  }
  .combat-speed-control {
    justify-content: space-between;
  }
  .combat-speed-button {
    min-width: 48px;
    min-height: 44px;
  }
  .combat-stage[data-combat-stage] {
    min-height: 400px;
    padding: 13px;
  }
  .combat-stage__top {
    min-height: 54px;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .combatants {
    min-height: 132px;
  }
  .combat-vitals {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 7px;
  }
  .combat-vital {
    min-height: 91px;
    padding: 9px;
  }
  .combat-vital b {
    min-height: 31px;
    display: grid;
    align-content: start;
    gap: 2px;
  }
  .combat-vital b small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .combat-vital em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
  }
  .floating-damage {
    top: 34%;
    font-size: 24px;
  }
  .floating-damage.player {
    right: 18%;
  }
  .floating-damage.enemy {
    left: 18%;
  }
  .hero-strike .hero-combatant {
    animation-name: hero-lunge-mobile;
  }
  .hero-strike .enemy-combatant {
    animation-name: enemy-hit-mobile;
  }
  .enemy-strike .enemy-combatant {
    animation-name: enemy-lunge-mobile;
  }
  .enemy-strike .hero-combatant {
    animation-name: hero-hit-mobile;
  }
}

@media (max-width: 390px) {
  .combat-speed-button {
    min-width: 44px;
    padding-inline: 7px;
  }
  .combatant > span {
    width: 60px;
    height: 60px;
  }
}

/* source: game-shell.css */
:root {
  --void: #05070b;
  --stone-0: #090b0f;
  --stone-1: #11131a;
  --stone-2: #191b23;
  --iron: #25252a;
  --iron-light: #48464a;
  --old-gold: #b68a47;
  --bright-gold: #f0cb79;
  --rune: #8066df;
  --rune-bright: #a995ff;
  --soul: #77d6df;
  --blood: #a23c43;
  --parchment: #d6c5a5;
  --shell-width: 284px;
}

html {
  background: var(--void);
}

body {
  min-height: 100vh;
  padding-bottom: 42px;
  background:
    radial-gradient(
      circle at 70% -20%,
      rgba(75, 52, 128, 0.34),
      transparent 35%
    ),
    linear-gradient(rgba(5, 7, 11, 0.94), rgba(5, 7, 11, 0.98)),
    url("./assets/world/citadel.webp") center / cover fixed;
  color: #ece5d9;
}

button,
select,
input,
textarea {
  font: inherit;
}

.app-shell {
  grid-template-columns: var(--shell-width) minmax(0, 1fr);
}

.sidebar {
  width: var(--shell-width);
  padding: 20px 15px 54px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025),
      transparent 10%,
      transparent 90%,
      rgba(0, 0, 0, 0.55)
    ),
    radial-gradient(circle at 50% 0, rgba(120, 86, 45, 0.16), transparent 28%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.012) 0 1px,
      transparent 1px 5px
    ),
    #0b0d12;
  border-right: 1px solid #3d3326;
  box-shadow: 14px 0 38px rgba(0, 0, 0, 0.54);
  z-index: 20;
}

.brand {
  justify-content: center;
  padding: 2px 8px 18px;
  color: #a99a82;
}

.brand b {
  color: var(--bright-gold);
  font-family: "Playfair Display";
  font-size: 19px;
  letter-spacing: 0.08em;
}

.brand-mark {
  color: var(--bright-gold);
  text-shadow: 0 0 18px rgba(202, 157, 77, 0.58);
}

.profile {
  width: calc(100% - 2px);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  margin: 0 1px 17px;
  padding: 11px;
  color: #ede5d7;
  text-align: left;
  border: 1px solid #55452f;
  border-radius: 3px;
  background:
    linear-gradient(135deg, rgba(126, 91, 49, 0.22), transparent 45%),
    linear-gradient(180deg, #191a20, #0e1015);
  box-shadow:
    inset 0 0 0 1px #090a0d,
    0 8px 20px rgba(0, 0, 0, 0.33);
  cursor: pointer;
}

.profile::after {
  content: "CHARACTER";
  grid-column: 1 / -1;
  color: #8f8069;
  font: 500 8px "DM Mono";
  letter-spacing: 0.18em;
  text-align: right;
}

.profile .avatar {
  width: 58px;
  height: 68px;
  border: 1px solid #6b5435;
  border-radius: 2px;
  background: linear-gradient(0deg, rgba(8, 9, 13, 0.45), transparent);
  background-position: 49% 17%;
  background-size: 230% auto;
  box-shadow:
    inset 0 0 12px #000,
    0 0 14px rgba(91, 66, 145, 0.18);
  color: transparent;
}

.profile-copy {
  min-width: 0;
}

.profile-kicker {
  display: block;
  margin-bottom: 2px;
  color: #9b8665;
  font: 600 7px "DM Mono";
  letter-spacing: 0.16em;
}

.profile b,
.profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile b {
  font-family: "Playfair Display";
  font-size: 14px;
}

.profile small {
  color: #a99e8c;
  font-size: 9px;
}

.profile-meter {
  display: block;
  height: 4px;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid #29252a;
  background: #050609;
}

.profile-meter i {
  display: block;
  height: 100%;
}

.profile-meter.hp i {
  background: linear-gradient(90deg, #6c1f29, #cf5860);
}

.profile-meter.xp {
  margin-top: 3px;
}

.profile-meter.xp i {
  background: linear-gradient(90deg, #463189, #8e78e5);
}

#nav {
  gap: 3px;
}

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 0 10px;
  min-height: 48px;
  padding: 8px 11px;
  color: #afa795;
  border: 1px solid transparent;
  border-radius: 2px;
}

.nav-item > span {
  grid-row: 1 / 3;
  align-self: center;
  width: 25px;
  color: #867253;
  font-size: 19px;
}

.nav-item > b {
  align-self: end;
  font-family: "Playfair Display";
  font-size: 13px;
  font-weight: 600;
}

.nav-item > small {
  align-self: start;
  color: #969288;
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-item i {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  background: #5f2834;
  color: #ffd7bd;
  box-shadow: 0 0 10px rgba(188, 51, 69, 0.35);
}

.nav-item:hover {
  color: #f0e6d4;
  border-color: #3d3327;
  background: linear-gradient(90deg, rgba(150, 107, 54, 0.14), transparent);
}

.nav-item.active {
  color: #fff6df;
  border-color: #5a4730;
  background:
    linear-gradient(90deg, rgba(172, 119, 49, 0.26), rgba(66, 44, 87, 0.1)),
    #15161b;
  box-shadow:
    inset 3px 0 var(--bright-gold),
    inset 0 0 16px rgba(211, 157, 66, 0.05);
}

.nav-item.active > span {
  color: var(--bright-gold);
  text-shadow: 0 0 12px rgba(237, 190, 101, 0.55);
}

.sidebar-bottom {
  border-top: 1px solid #2e2921;
  color: #7f786c;
}

main {
  min-height: calc(100vh - 42px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  height: 67px;
  padding-inline: clamp(18px, 3vw, 42px);
  border-bottom: 1px solid #483a29;
  background:
    linear-gradient(180deg, rgba(20, 20, 24, 0.97), rgba(9, 10, 14, 0.93)),
    #101116;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
}

.crumb {
  color: #d8c8ad;
  font-family: "Playfair Display";
  letter-spacing: 0.03em;
}

.crumb span {
  color: #6f614c;
}

.resource {
  border-color: #40362a;
  border-radius: 2px;
  background: linear-gradient(#17181d, #0d0e12);
  box-shadow: inset 0 0 0 1px #08090c;
}

.resource.gold {
  color: #e8bd64;
}

.resource.gems,
.resource.essence {
  color: #b59aff;
}

.resource.energy {
  color: #7bd7c3;
}

.resource.level {
  color: #d7c7ae;
}

.settings {
  width: 34px;
  height: 34px;
  border: 1px solid #40362a;
  background: #121318;
}

#view {
  min-height: calc(100vh - 109px);
}

#view.view-enter {
  animation: world-fade 220ms ease both;
}

@keyframes world-fade {
  from {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(4px);
  }
}

.content,
.location-screen {
  max-width: 1540px;
  margin: auto;
  padding: clamp(24px, 3vw, 46px);
}

.view-title {
  padding: 23px 26px;
  border: 1px solid #42382c;
  border-left: 3px solid var(--old-gold);
  background:
    linear-gradient(90deg, rgba(110, 77, 37, 0.18), transparent 45%),
    rgba(10, 11, 15, 0.86);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

.view-title h1,
.location-heading h1 {
  color: #f2e8d8;
  text-shadow: 0 2px 16px #000;
}

.view-title p,
.location-heading p {
  color: #aaa08f;
  line-height: 1.65;
}

.card {
  border-color: #3c3429;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(123, 88, 45, 0.06), transparent 38%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.01) 0 1px,
      transparent 1px 4px
    ),
    linear-gradient(145deg, rgba(24, 24, 29, 0.96), rgba(10, 11, 15, 0.97));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    0 10px 28px rgba(0, 0, 0, 0.23);
}

.button {
  position: relative;
  border-radius: 2px;
  border: 1px solid #5d4a31;
  color: #f2e6d2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%),
    linear-gradient(135deg, #45331f, #221b15);
  box-shadow:
    inset 0 0 0 1px #15100c,
    0 5px 14px rgba(0, 0, 0, 0.32);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button.primary {
  border-color: #a37b3e;
  color: #171009;
  background:
    linear-gradient(180deg, rgba(255, 250, 218, 0.34), transparent 42%),
    linear-gradient(135deg, #e2b45a, #9b6629);
  box-shadow:
    inset 0 0 0 1px #5a3513,
    0 0 22px rgba(206, 145, 51, 0.2);
}

.button.ghost,
.button.metal {
  border-color: #454146;
  color: #d7cfbf;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(135deg, #29292e, #131419);
}

.button[disabled] {
  opacity: 0.42;
  filter: grayscale(0.7);
}

.eyebrow {
  color: #c99b50;
}

.tag {
  border: 1px solid rgba(151, 112, 62, 0.35);
  border-radius: 2px;
  background: rgba(75, 55, 35, 0.62);
  color: #dbc08c;
}

.progress,
.ornate-progress {
  border: 1px solid #302a24;
  border-radius: 1px;
  background: #07080b;
  box-shadow: inset 0 2px 5px #000;
}

.progress span,
.ornate-progress span {
  background: linear-gradient(90deg, #6447ad, #b18cff, #75d4d8);
}

/* Eternal Citadel */
.citadel-home {
  max-width: 1700px;
  margin: auto;
  padding: clamp(12px, 2vw, 28px);
}

.citadel-scene {
  position: relative;
  min-height: min(770px, calc(100vh - 135px));
  overflow: hidden;
  border: 1px solid #51422d;
  border-radius: 3px;
  background:
    linear-gradient(0deg, rgba(4, 5, 8, 0.8), transparent 25%),
    linear-gradient(
      90deg,
      rgba(4, 5, 8, 0.44),
      transparent 18%,
      transparent 82%,
      rgba(4, 5, 8, 0.35)
    ),
    url("./assets/world/citadel.webp") center / cover no-repeat;
  box-shadow:
    inset 0 0 80px #000,
    0 24px 55px rgba(0, 0, 0, 0.42);
}

.citadel-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 5, 8, 0.7), transparent 35%);
}

.citadel-progression-layers,
.citadel-progression-layers i {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.citadel-progression-layers {
  z-index: 1;
  overflow: hidden;
}
.citadel-progression-layers i {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.citadel-progress-3 .layer-regions,
.citadel-progress-4 .layer-regions,
.citadel-progress-5 .layer-regions {
  opacity: 0.34;
  background: radial-gradient(
    circle at 50% 65%,
    rgba(212, 170, 87, 0.2),
    transparent 38%
  );
}
.citadel-ascension-1 .layer-ascension {
  opacity: 0.38;
  background: radial-gradient(
    ellipse at 50% 72%,
    transparent 24%,
    rgba(116, 76, 174, 0.22) 52%,
    transparent 72%
  );
}
.citadel-ascension-3 .layer-ascension {
  opacity: 0.55;
  background:
    radial-gradient(
      circle at 24% 36%,
      rgba(148, 104, 218, 0.2) 0 1.5%,
      transparent 8%
    ),
    radial-gradient(
      circle at 72% 28%,
      rgba(190, 154, 255, 0.24) 0 1%,
      transparent 7%
    ),
    radial-gradient(
      ellipse at 50% 72%,
      transparent 20%,
      rgba(112, 66, 178, 0.3) 55%,
      transparent 76%
    );
}
.citadel-ascension-5 .layer-ascension {
  opacity: 0.7;
  background:
    linear-gradient(
      115deg,
      transparent 25%,
      rgba(145, 92, 220, 0.13) 48%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 50% 70%,
      transparent 16%,
      rgba(119, 70, 194, 0.38) 58%,
      transparent 80%
    );
  animation: eternal-citadel-pulse 7s ease-in-out infinite;
}
.citadel-ascension-10 .layer-ascension {
  opacity: 0.82;
  background:
    radial-gradient(
      ellipse at 50% 4%,
      rgba(116, 78, 190, 0.42),
      transparent 45%
    ),
    repeating-conic-gradient(
      from 0deg at 50% 70%,
      transparent 0 17deg,
      rgba(201, 172, 255, 0.08) 18deg 19deg,
      transparent 20deg 36deg
    );
  animation: eternal-citadel-pulse 6s ease-in-out infinite;
}
.citadel-scene[data-world-boss-layer="true"] .layer-world-boss {
  opacity: 0.28;
  background: radial-gradient(
    circle at 88% 36%,
    rgba(180, 41, 54, 0.55),
    transparent 22%
  );
}
.citadel-scene[data-event-layer="true"] .layer-event {
  opacity: 0.25;
  background: linear-gradient(
    135deg,
    transparent 48%,
    rgba(89, 165, 209, 0.25) 50%,
    transparent 52%
  );
}
@keyframes eternal-citadel-pulse {
  50% {
    opacity: 0.48;
    filter: brightness(1.15);
  }
}

.citadel-title {
  position: absolute;
  z-index: 3;
  top: 4.5%;
  left: 50%;
  width: min(620px, 80%);
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 3px 18px #000;
}

.citadel-title h1 {
  margin: 6px 0;
  color: #f3e9db;
  font: 700 clamp(34px, 4vw, 62px) / 1 "Playfair Display";
  letter-spacing: 0.04em;
}

.citadel-title p {
  margin: 0;
  color: #c0b7a8;
  font-size: 11px;
}

.citadel-location {
  position: absolute;
  z-index: 4;
  display: grid;
  grid-template-columns: 34px auto;
  gap: 1px 9px;
  min-width: 145px;
  padding: 8px 11px;
  color: #eee3d2;
  text-align: left;
  border: 1px solid rgba(128, 100, 61, 0.58);
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(9, 9, 12, 0.94),
    rgba(14, 14, 19, 0.78)
  );
  box-shadow:
    0 8px 22px #000b,
    inset 0 0 0 1px #09080a;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.citadel-location::before {
  content: "";
  position: absolute;
  inset: -22px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(239, 178, 75, 0.18),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 180ms ease;
}

.citadel-location:hover,
.citadel-location:focus-visible {
  z-index: 6;
  border-color: var(--bright-gold);
  filter: brightness(1.2);
  transform: translateY(-4px) scale(1.035);
}

.citadel-location:hover::before,
.citadel-location:focus-visible::before {
  opacity: 1;
}

.location-icon {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--bright-gold);
  font-size: 25px;
  text-align: center;
  text-shadow: 0 0 14px currentColor;
}

.citadel-location b {
  font: 600 14px "Playfair Display";
}

.citadel-location small {
  color: #9d9280;
  font: 500 8px "DM Mono";
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.location-alert {
  position: absolute;
  top: -10px;
  right: -9px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #ffbe71;
  border-radius: 50%;
  background: #8d2735;
  color: #fff4ce;
  font: 800 12px "DM Mono";
  box-shadow: 0 0 16px rgba(255, 92, 88, 0.75);
  animation: alert-pulse 2s ease-in-out infinite;
}

@keyframes alert-pulse {
  50% {
    transform: scale(1.12);
    box-shadow: 0 0 24px rgba(255, 112, 80, 0.9);
  }
}

.citadel-location.tavern {
  left: 4%;
  top: 55%;
}
.citadel-location.arena {
  left: 23%;
  top: 61%;
}
.citadel-location.forge {
  left: 50%;
  top: 54%;
}
.citadel-location.guildhall {
  right: 13%;
  top: 57%;
}
.citadel-location.dungeon {
  left: 41%;
  top: 73%;
}
.citadel-location.worldboss {
  right: 2.5%;
  top: 37%;
}
.citadel-location.ascension {
  right: 27%;
  top: 72%;
}
.citadel-location.keep {
  left: 46%;
  top: 30%;
}

.citadel-status {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 17px;
  left: 18px;
  display: grid;
  grid-template-columns: 58px minmax(170px, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid #57452f;
  background: rgba(7, 8, 11, 0.92);
  box-shadow: 0 8px 30px #000c;
  backdrop-filter: blur(10px);
}

.citadel-level {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #856539;
  background: radial-gradient(circle, #33251a, #0e0f13);
}

.citadel-level span,
.citadel-status small {
  color: #9b8c74;
  font: 8px "DM Mono";
}

.citadel-level b {
  color: var(--bright-gold);
  font: 800 21px "Playfair Display";
}

.citadel-status > div:nth-child(2) > b,
.citadel-status > div:nth-child(2) > small {
  display: block;
}

.citadel-status .ornate-progress {
  height: 7px;
  margin-top: 8px;
}

.citadel-tutorial {
  margin-top: 15px;
}

.citadel-tutorial .tutorial-panel {
  margin: 0;
}

.citadel-notices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.citadel-notices button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 1px 10px;
  padding: 10px 12px;
  color: #cfc5b5;
  text-align: left;
  border: 1px solid #332d25;
  background: rgba(9, 10, 13, 0.88);
  cursor: pointer;
}

.citadel-notices button > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--old-gold);
  font-size: 20px;
  text-align: center;
}

.citadel-notices small {
  color: #7e7465;
  font: 8px "DM Mono";
}

.citadel-notices b {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Shared location heading */
.location-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 21px;
  padding: 0 3px 17px;
  border-bottom: 1px solid #4a3c2a;
}

.location-heading h1 {
  margin: 5px 0 4px;
  font: 700 clamp(33px, 4vw, 56px) / 1 "Playfair Display";
}

.location-heading p {
  max-width: 700px;
  margin: 0;
  font-size: 11px;
}

/* Character hall */
.character-screen {
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(103, 70, 172, 0.16),
      transparent 28%
    ),
    linear-gradient(rgba(5, 7, 11, 0.72), rgba(5, 7, 11, 0.94)),
    url("./assets/world/citadel.webp") center / cover fixed;
}

.character-sanctum {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(360px, 1.5fr) minmax(
      190px,
      0.8fr
    );
  align-items: center;
  gap: clamp(13px, 2.5vw, 36px);
  min-height: 590px;
  padding: 14px clamp(10px, 3vw, 42px);
  border: 1px solid #403528;
  background:
    radial-gradient(
      ellipse at 50% 72%,
      rgba(89, 57, 153, 0.24),
      transparent 31%
    ),
    linear-gradient(
      90deg,
      rgba(4, 5, 8, 0.9),
      rgba(13, 13, 18, 0.62) 50%,
      rgba(4, 5, 8, 0.9)
    );
  box-shadow: inset 0 0 75px #000;
}

.hero-gear-column {
  display: grid;
  gap: 58px;
}

.hero-gear-slot {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 8px;
  color: #e8ddcb;
  text-align: left;
  border: 1px solid #4a4034;
  border-radius: 2px;
  background: linear-gradient(135deg, #1b1b20, #0d0e12);
  box-shadow:
    inset 0 0 0 1px #08090b,
    0 8px 20px #0008;
  cursor: pointer;
}

.hero-gear-slot::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.35;
}

.hero-gear-column.left .hero-gear-slot::after {
  right: -56px;
}
.hero-gear-column.right .hero-gear-slot::after {
  left: -56px;
  transform: rotate(180deg);
}

.hero-gear-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid currentColor;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), #0c0d11);
  font-size: 29px;
  box-shadow:
    inset 0 0 15px #000,
    0 0 14px currentColor;
}

.hero-gear-slot small,
.hero-gear-slot b,
.hero-gear-slot em {
  display: block;
}

.hero-gear-slot small {
  color: #807665;
  font: 8px "DM Mono";
}

.hero-gear-slot b {
  margin: 3px 0;
  font: 600 12px "Playfair Display";
}

.hero-gear-slot em {
  color: currentColor;
  font: 8px "DM Mono";
  font-style: normal;
}

.hero-gear-slot.empty {
  color: #56565d;
}
.hero-gear-slot.rarity-ungewöhnlich {
  color: #72ef9d;
}
.hero-gear-slot.rarity-magisch {
  color: #77dffa;
}
.hero-gear-slot.rarity-selten {
  color: #ffd36c;
}
.hero-gear-slot.rarity-episch {
  color: #b98aff;
}
.hero-gear-slot.rarity-legendär {
  color: #ffad4a;
}
.hero-gear-slot.rarity-mythisch {
  color: #ff588e;
}
.hero-gear-slot.rarity-ewig {
  color: #e9fbff;
}

.hero-gear-slot.rank-max {
  animation: max-rune 2.7s ease-in-out infinite;
}

@keyframes max-rune {
  50% {
    filter: brightness(1.32);
    box-shadow:
      inset 0 0 0 1px #08090b,
      0 0 26px currentColor;
  }
}

.hero-figure {
  position: relative;
  align-self: stretch;
  min-height: 555px;
}

.hero-figure__art {
  position: absolute;
  inset: -10px 0 50px;
  background: none;
  filter: drop-shadow(0 18px 22px #000)
    drop-shadow(0 0 22px rgba(116, 82, 196, 0.2));
}

.hero-identity {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  text-align: center;
  text-shadow: 0 3px 14px #000;
}

.hero-identity span {
  color: var(--bright-gold);
  font: 700 10px "DM Mono";
  letter-spacing: 0.28em;
}

.hero-identity h2 {
  margin: 4px 0 0;
  color: #f4eadb;
  font: 700 35px "Playfair Display";
  text-transform: uppercase;
}

.hero-identity p {
  margin: 1px;
  color: #9f9586;
  font-size: 10px;
}

.hero-progression {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  padding: 12px 18px;
  border: 1px solid #42382b;
  background: rgba(10, 11, 15, 0.92);
}

.hero-level-seal {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #92703f;
  background: radial-gradient(circle, #35241a, #0b0c10 68%);
}

.hero-level-seal b {
  color: var(--bright-gold);
  font: 800 25px "Playfair Display";
}
.hero-level-seal small {
  color: #8c7a60;
  font: 7px "DM Mono";
}
.hero-xp > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #cbbfae;
  font: 9px "DM Mono";
}
.hero-xp .ornate-progress {
  height: 10px;
  margin-top: 9px;
}

.hero-attributes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.hero-attribute {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  padding: 11px;
  border: 1px solid #3a332b;
  background: rgba(11, 12, 16, 0.92);
}

.hero-attribute > span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--old-gold);
  font-size: 20px;
}
.hero-attribute small {
  color: #837969;
  font: 9px "DM Mono";
  text-transform: uppercase;
}
.hero-attribute b {
  font-size: 16px;
}
.character-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
}

/* Wanderer's Inn */
.tavern-screen {
  min-height: calc(100vh - 109px);
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 9, 0.18),
      transparent 50%,
      rgba(5, 6, 9, 0.18)
    ),
    linear-gradient(
      0deg,
      rgba(5, 6, 9, 0.76),
      rgba(5, 6, 9, 0.08) 54%,
      rgba(5, 6, 9, 0.24)
    ),
    url("./assets/locations/tavern.webp") center 18% / cover no-repeat;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.58);
}

.tavern-heading {
  text-shadow: 0 3px 14px #000;
}

.active-expedition {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  max-width: 850px;
  margin: 0 auto 24px;
  padding: 15px;
  border: 1px solid #715837;
  background: rgba(8, 8, 11, 0.94);
  box-shadow: 0 12px 34px #000b;
}

.active-expedition.ready {
  border-color: #d19b4f;
  box-shadow: 0 0 28px rgba(227, 156, 60, 0.2);
}

.active-expedition__art {
  display: grid;
  min-height: 120px;
  place-items: center;
  border: 1px solid #3d3327;
  background: radial-gradient(circle, rgba(122, 81, 44, 0.35), #0c0d11 70%);
  font-size: 49px;
}

.active-expedition__copy h2 {
  margin: 5px 0;
  font: 700 25px "Playfair Display";
}
.active-expedition__copy p {
  margin: 0;
  color: #9e9484;
  font-size: 10px;
}
.active-expedition .mission-row {
  border: 0;
}
.active-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.active-rewards span {
  padding: 5px 7px;
  border: 1px solid #3c3328;
  color: #dbc18a;
  font: 8px "DM Mono";
  background: #111116;
}

.quest-givers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 25px);
  align-items: end;
  min-height: 560px;
  padding-top: 185px;
}

.quest-giver {
  position: relative;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.quest-giver:hover {
  z-index: 2;
  filter: brightness(1.08);
  transform: translateY(-7px);
}

.quest-giver.locked {
  filter: grayscale(0.55) brightness(0.75);
}

.quest-npc-focus {
  position: absolute;
  right: 0;
  bottom: calc(100% - 20px);
  left: 0;
  display: grid;
  justify-items: center;
  text-align: center;
  text-shadow: 0 3px 10px #000;
}

.quest-npc-focus > span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid #7d5b36;
  border-radius: 50%;
  background: rgba(10, 9, 11, 0.82);
  color: var(--bright-gold);
  font-size: 31px;
  box-shadow: 0 0 25px #000;
}

.quest-npc-focus small {
  margin-top: 5px;
  color: #d3c3a9;
  font: 9px "DM Mono";
  text-transform: uppercase;
}

.quest-parchment {
  position: relative;
  min-height: 330px;
  padding: 23px 22px 19px;
  color: #31271d;
  border: 1px solid #8e7149;
  background:
    linear-gradient(
      105deg,
      transparent,
      rgba(93, 59, 24, 0.13),
      transparent 62%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(80, 52, 26, 0.025) 0 1px,
      transparent 1px 4px
    ),
    #c9b794;
  box-shadow:
    0 16px 35px #000c,
    inset 0 0 30px rgba(80, 48, 19, 0.22);
  clip-path: polygon(1% 0, 99% 1%, 100% 97%, 96% 100%, 2% 98%, 0 3%);
}

.quest-type {
  color: #6d4426;
  font: 800 9px "DM Mono";
  letter-spacing: 0.16em;
}

.quest-parchment h2 {
  margin: 7px 0;
  font: 700 24px/1.05 "Playfair Display";
}

.quest-parchment > p {
  min-height: 45px;
  color: #544536;
  font: 600 10px/1.5 Manrope;
}

.quest-duration,
.quest-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid rgba(64, 43, 25, 0.22);
}

.quest-duration span {
  font: 700 8px "DM Mono";
}

.quest-rewards {
  display: grid;
}

.quest-rewards small {
  color: #6f4b2b;
  font: 800 8px "DM Mono";
}
.quest-rewards b {
  font-size: 11px;
}
.quest-rewards em {
  color: #5c336c;
  font: 700 9px "DM Mono";
  font-style: normal;
}
.quest-parchment .button {
  width: 100%;
  margin-top: 10px;
}

/* Campaign world map */
.world-map-screen {
  background: linear-gradient(rgba(5, 7, 10, 0.91), rgba(5, 7, 10, 0.97));
}

.map-level {
  display: grid;
  min-width: 135px;
  justify-items: end;
}

.map-level > span {
  color: #8f816c;
  font: 8px "DM Mono";
}
.map-level > b {
  color: var(--bright-gold);
  font: 800 38px "Playfair Display";
}
.map-level small {
  color: #8c806f;
  font-size: 16px;
}

.world-map-canvas {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid #5b482e;
  background: url("./assets/world/world-map.webp") center / cover no-repeat;
  box-shadow:
    inset 0 0 85px #000,
    0 18px 44px #0008;
}

.world-map-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse, transparent 50%, rgba(3, 4, 7, 0.68));
}

.world-map-canvas .map-track {
  position: absolute;
  inset: 0;
  display: block;
  overflow: visible;
}

.world-map-canvas .map-node {
  position: absolute;
  display: grid;
  grid-template-columns: 36px auto;
  gap: 0 8px;
  min-width: 130px;
  padding: 6px 8px;
  color: #f1e6d2;
  text-align: left;
  border: 1px solid #56452f;
  border-radius: 2px;
  background: #08090d;
  box-shadow: 0 6px 18px #000b;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.world-map-canvas .map-node::after {
  display: none;
}
.world-map-canvas .map-node > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border-color: #665136;
  background: #121216;
}
.world-map-canvas .map-node b {
  align-self: end;
  font: 600 10px "Playfair Display";
}
.world-map-canvas .map-node small {
  align-self: start;
  color: #d8be8d;
  font: 7px "DM Mono";
}
.world-map-canvas .map-node.unlocked > span {
  border-color: #bd8e49;
  box-shadow: 0 0 18px rgba(214, 156, 72, 0.28);
}
.world-map-canvas .map-node.current {
  z-index: 4;
  border-color: #b99cff;
  box-shadow: 0 0 27px rgba(137, 102, 224, 0.48);
}
.world-map-canvas .map-node.current > span {
  border-color: #b69cff;
  background: #2f2250;
}
.world-map-canvas .map-node.complete {
  border-color: #5aa684;
}
.world-map-canvas .map-node.locked {
  opacity: 0.62;
  filter: grayscale(0.8);
}
.map-node-1 {
  left: 22%;
  top: 25%;
}
.map-node-2 {
  left: 35%;
  top: 31%;
}
.map-node-3 {
  left: 46%;
  top: 51%;
}
.map-node-4 {
  left: 31%;
  top: 65%;
}
.map-node-5 {
  left: 52%;
  top: 72%;
}
.map-node-6 {
  left: 68%;
  top: 62%;
}
.map-node-7 {
  left: 76%;
  top: 45%;
}
.map-node-8 {
  left: 68%;
  top: 28%;
}
.map-node-9 {
  left: 53%;
  top: 23%;
}
.map-node-10 {
  left: 84%;
  top: 78%;
}

.map-legend {
  position: absolute;
  right: 12px;
  bottom: 11px;
  display: flex;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid #3f3428;
  background: rgba(5, 6, 9, 0.84);
  color: #9d9281;
  font: 7px "DM Mono";
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9d7441;
}
.map-legend i.current {
  background: #9276db;
  box-shadow: 0 0 7px #9276db;
}
.map-legend i.complete {
  background: #5da984;
}

.region-heading {
  margin: 34px 0 15px;
  text-align: center;
}

.region-heading h2 {
  margin: 5px 0;
  font: 700 30px "Playfair Display";
}
.region-heading p {
  margin: 0;
  color: #8f8678;
  font-size: 10px;
}

.region-expedition {
  position: relative;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, 0.97), rgba(8, 9, 12, 0.78)),
    var(--region-art) center / cover;
}

.region-expedition .chapter-head {
  min-height: 165px;
  align-items: end;
  background: linear-gradient(0deg, rgba(7, 8, 11, 0.85), rgba(7, 8, 11, 0.18));
}

/* Cinematic combat */
.combat-screen {
  max-width: 1580px;
}

.combat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 58px;
  margin-bottom: 10px;
  padding: 9px 13px;
  border: 1px solid #413629;
  background: rgba(8, 9, 12, 0.94);
}

.combat-current-status {
  margin: 3px 0 0;
  color: #a99e8d;
  font-size: 10px;
}
.combat-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.combat-speed-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.combat-speed-control > span {
  color: #8c806e;
  font: 8px "DM Mono";
}

.combat-speed-button {
  width: 35px;
  height: 31px;
  border: 1px solid #4a4033;
  border-radius: 1px;
  background: #15161a;
  color: #a99e8c;
  font: 700 9px "DM Mono";
  cursor: pointer;
}

.combat-speed-button.active {
  border-color: #c3944d;
  color: #1a1109;
  background: #d7a654;
  box-shadow: 0 0 13px rgba(218, 157, 66, 0.3);
}

.combat-stage {
  position: relative;
  min-height: min(700px, calc(100vh - 235px));
  padding: 18px;
  border-color: #55432e;
  border-radius: 2px;
  background: #07080b;
  isolation: isolate;
  box-shadow:
    inset 0 0 80px #000,
    0 20px 45px #0009;
}

.combat-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 9, 0.78),
      rgba(5, 6, 9, 0.18) 50%,
      rgba(5, 6, 9, 0.62)
    ),
    var(--enemy-art) center / cover no-repeat;
  filter: saturate(0.75) brightness(0.6);
}

.combat-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 5, 8, 0.9), transparent 52%);
}

.combatants {
  position: absolute;
  inset: 58px 25px 105px;
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  align-items: end;
}

.combatant {
  position: relative;
  display: grid;
  justify-items: center;
  height: 100%;
}

.combatant-art {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: drop-shadow(0 20px 22px #000)
    drop-shadow(0 0 13px rgba(92, 69, 145, 0.26));
}

.hero-art {
  background-image: var(--hero-art);
}
.enemy-art {
  background-image: var(--enemy-art);
  background-position: center;
  background-size: cover;
  clip-path: polygon(10% 3%, 90% 3%, 100% 88%, 83% 100%, 17% 100%, 0 88%);
  opacity: 0.88;
}
.combatant-aura {
  position: absolute;
  bottom: 0;
  width: 75%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(113, 76, 194, 0.36),
    transparent 68%
  );
  filter: blur(8px);
}
.enemy-combatant .combatant-aura {
  background: radial-gradient(
    ellipse,
    rgba(189, 59, 50, 0.38),
    transparent 68%
  );
}

.combat-nameplate {
  position: absolute;
  bottom: 4px;
  z-index: 3;
  min-width: 210px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid #5b472f;
  background: rgba(7, 8, 11, 0.9);
  box-shadow: 0 8px 18px #000b;
}

.combat-nameplate small {
  display: block;
  color: #a47b42;
  font: 8px "DM Mono";
}
.combat-nameplate b {
  font: 600 15px "Playfair Display";
}
.combat-impact {
  align-self: center;
  z-index: 6;
  color: #f0d493;
  font: 800 clamp(22px, 3vw, 42px) "Playfair Display";
  text-shadow: 0 0 20px #d66553;
}
.combat-equipment {
  z-index: 5;
  bottom: 48px;
}

.combat-vitals {
  position: relative;
  z-index: 8;
  margin-top: auto;
}

.combat-vital {
  border-color: #57452f;
  border-radius: 2px;
  background: rgba(6, 7, 10, 0.91);
}

.combat-hp {
  height: 13px;
  border: 1px solid #3d2427;
  border-radius: 1px;
  background: #070709;
}

.combat-hp span {
  background: linear-gradient(90deg, #283d89, #64cec1);
}
.combat-hp.enemy span {
  background: linear-gradient(90deg, #722331, #da5960);
}

.skill-banner {
  z-index: 10;
  border: 1px solid #a98b51;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(19, 14, 27, 0.96),
    rgba(68, 45, 105, 0.92),
    rgba(19, 14, 27, 0.96)
  );
  box-shadow: 0 0 28px rgba(144, 100, 232, 0.38);
}

.floating-damage {
  top: 33%;
  font-size: clamp(31px, 4vw, 54px);
}

.combat-result-grid {
  grid-template-columns: 0.7fr 1.3fr;
}

.combat-log,
.combat-rewards {
  min-height: 180px;
  padding: 17px;
  border: 1px solid #3c3328;
  background: rgba(9, 10, 13, 0.96);
}

.combat-log__entries {
  max-height: 190px;
  overflow-y: auto;
}

.victory-banner > small,
.defeat-banner > small {
  color: var(--bright-gold);
  font: 800 11px "DM Mono";
  letter-spacing: 0.28em;
}

.loot-reveal {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 12px;
  overflow: hidden;
  text-align: center;
  border: 1px solid currentColor;
  background: radial-gradient(
    circle,
    color-mix(in srgb, currentColor 18%, transparent),
    #090a0d 65%
  );
}

.loot-reveal.rarity-selten {
  color: #ffd36c;
}
.loot-reveal.rarity-episch {
  color: #b98aff;
}
.loot-reveal.rarity-legendär {
  color: #ffad4a;
}
.loot-reveal.rarity-mythisch {
  color: #ff588e;
  animation: mythic-loot 1.5s ease-in-out infinite;
}
.loot-reveal.rarity-ewig {
  color: #e6fbff;
  animation: mythic-loot 1s ease-in-out infinite;
}
.loot-rays {
  position: absolute;
  inset: -80%;
  pointer-events: none;
  background: repeating-conic-gradient(
    from 0deg,
    transparent 0 12deg,
    currentColor 14deg 16deg,
    transparent 18deg 30deg
  );
  opacity: 0.08;
  animation: loot-spin 18s linear infinite;
}
.loot-icon {
  z-index: 1;
  font-size: 49px;
  filter: drop-shadow(0 0 12px currentColor);
}
.loot-reveal small {
  z-index: 1;
  font: 800 9px "DM Mono";
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.loot-reveal h2 {
  z-index: 1;
  margin: 4px 0;
  color: currentColor;
}
.loot-reveal p {
  z-index: 1;
  margin: 0;
}
.combat-end-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

@keyframes loot-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mythic-loot {
  50% {
    box-shadow: 0 0 32px currentColor;
    filter: brightness(1.15);
  }
}

/* Persistent world feed and mobile dock */
.world-feed {
  position: fixed;
  right: 0;
  bottom: 0;
  left: var(--shell-width);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-top: 1px solid #463828;
  background: rgba(8, 9, 12, 0.97);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  color: #9d9486;
  font-size: 9px;
  pointer-events: none;
}

.world-feed__sigil {
  color: var(--bright-gold);
  font-size: 16px;
}
.world-feed > b {
  color: #c0ad8e;
  font: 8px "DM Mono";
  letter-spacing: 0.12em;
}
.world-feed__online {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #7f9989;
}
.world-feed__online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72c89c;
  box-shadow: 0 0 8px #72c89c;
}
.mobile-dock {
  display: none;
}

@media (max-width: 1180px) {
  :root {
    --shell-width: 244px;
  }
  .sidebar {
    width: var(--shell-width);
  }
  .citadel-location {
    min-width: 125px;
    padding: 7px 8px;
  }
  .citadel-location b {
    font-size: 12px;
  }
  .hero-attributes {
    grid-template-columns: repeat(3, 1fr);
  }
  .character-sanctum {
    grid-template-columns: 190px minmax(310px, 1fr) 190px;
  }
  .world-map-canvas {
    min-height: 590px;
  }
}

@media (max-width: 850px) {
  :root {
    --shell-width: 280px;
  }
  body {
    padding-bottom: 68px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    left: calc(var(--shell-width) * -1);
    padding-bottom: 72px;
  }
  .sidebar.open {
    left: 0;
  }
  .topbar {
    height: 58px;
    padding: 0 13px;
  }
  .crumb {
    display: block;
    max-width: 92px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .menu-button {
    display: block;
  }
  .resources {
    width: 100%;
    justify-content: flex-end;
    gap: 5px;
  }
  .resource {
    padding: 5px 6px;
    font-size: 9px;
  }
  .resource.gems,
  .resource.essence,
  .resource.level {
    display: none;
  }
  #view {
    min-height: calc(100vh - 126px);
  }
  .content,
  .location-screen {
    padding: 18px 12px 26px;
  }
  .citadel-home {
    padding: 8px;
  }
  .citadel-scene {
    min-height: 680px;
    background-position: 51% center;
  }
  .citadel-title {
    top: 4%;
    width: 92%;
  }
  .citadel-title h1 {
    font-size: 36px;
  }
  .citadel-title p {
    display: none;
  }
  .citadel-location {
    min-width: 112px;
    grid-template-columns: 25px 1fr;
    padding: 6px;
  }
  .location-icon {
    width: 25px;
    font-size: 19px;
  }
  .citadel-location b {
    font-size: 10px;
  }
  .citadel-location small {
    font-size: 6px;
  }
  .citadel-location.tavern {
    left: 3%;
    top: 49%;
  }
  .citadel-location.arena {
    left: 5%;
    top: 64%;
  }
  .citadel-location.forge {
    left: 40%;
    top: 54%;
  }
  .citadel-location.guildhall {
    right: 2%;
    top: 61%;
  }
  .citadel-location.dungeon {
    left: 36%;
    top: 70%;
  }
  .citadel-location.worldboss {
    right: 2%;
    top: 39%;
  }
  .citadel-location.ascension {
    right: 4%;
    top: 75%;
  }
  .citadel-location.keep {
    left: 38%;
    top: 28%;
  }
  .citadel-status {
    right: 7px;
    bottom: 7px;
    left: 7px;
    grid-template-columns: 43px 1fr;
    padding: 7px;
  }
  .citadel-level {
    width: 40px;
    height: 40px;
  }
  .citadel-status .button {
    grid-column: 1 / -1;
    padding: 8px;
  }
  .citadel-notices {
    grid-template-columns: 1fr;
  }
  .citadel-notices button:nth-child(n + 2) {
    display: none;
  }
  .location-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .character-sanctum {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }
  .hero-figure {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 480px;
  }
  .hero-gear-column {
    gap: 7px;
  }
  .hero-gear-column.left {
    grid-column: 1;
    grid-row: 2;
  }
  .hero-gear-column.right {
    grid-column: 2;
    grid-row: 2;
  }
  .hero-gear-slot {
    grid-template-columns: 46px 1fr;
    min-height: 62px;
  }
  .hero-gear-icon {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
  .hero-gear-slot::after {
    display: none;
  }
  .hero-attributes {
    grid-template-columns: repeat(2, 1fr);
  }
  .quest-givers {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 50px;
    gap: 70px;
  }
  .quest-npc-focus {
    bottom: calc(100% - 8px);
    align-items: center;
    justify-items: start;
    grid-template-columns: 53px 1fr;
    padding-left: 12px;
  }
  .quest-npc-focus > span {
    width: 49px;
    height: 49px;
    font-size: 23px;
  }
  .quest-npc-focus small {
    margin: 0 0 0 8px;
  }
  .quest-parchment {
    min-height: 0;
    padding: 20px 18px 16px;
  }
  .active-expedition {
    grid-template-columns: 75px 1fr;
  }
  .active-expedition__art {
    min-height: 80px;
  }
  .world-map-canvas {
    min-height: 720px;
    background-size: auto 100%;
  }
  .world-map-canvas .map-node {
    min-width: 105px;
    grid-template-columns: 27px 1fr;
    padding: 4px 6px;
  }
  .world-map-canvas .map-node > span {
    width: 25px;
    height: 25px;
    font-size: 11px;
  }
  .world-map-canvas .map-node b {
    font-size: 8px;
  }
  .world-map-canvas .map-node small {
    font-size: 6px;
  }
  .map-node-1 {
    left: 22%;
    top: 18%;
  }
  .map-node-2 {
    left: 63%;
    top: 20%;
  }
  .map-node-3 {
    left: 34%;
    top: 31%;
  }
  .map-node-4 {
    left: 70%;
    top: 38%;
  }
  .map-node-5 {
    left: 28%;
    top: 47%;
  }
  .map-node-6 {
    left: 69%;
    top: 55%;
  }
  .map-node-7 {
    left: 29%;
    top: 64%;
  }
  .map-node-8 {
    left: 70%;
    top: 72%;
  }
  .map-node-9 {
    left: 28%;
    top: 81%;
  }
  .map-node-10 {
    left: 70%;
    top: 89%;
  }
  .combat-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .combat-controls {
    width: 100%;
    justify-content: space-between;
  }
  .combat-stage {
    min-height: 520px;
  }
  .combatants {
    inset: 70px 8px 120px;
    grid-template-columns: 1fr 52px 1fr;
  }
  .combat-nameplate {
    min-width: 130px;
    padding: 5px;
  }
  .combat-nameplate b {
    font-size: 10px;
  }
  .combat-result-grid {
    grid-template-columns: 1fr;
  }
  .world-feed {
    display: none;
  }
  .mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 26;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 66px;
    border-top: 1px solid #5b472e;
    background: rgba(8, 9, 12, 0.98);
    box-shadow: 0 -8px 25px #0009;
  }
  .mobile-dock button {
    display: grid;
    place-items: center;
    gap: 1px;
    color: #8d8374;
    border: 0;
    border-right: 1px solid #26221d;
    background: transparent;
    font: 700 8px "DM Mono";
    text-transform: uppercase;
  }
  .mobile-dock button span {
    color: #a08150;
    font-size: 19px;
  }
  .mobile-dock button.active {
    color: #f1d69d;
    background: linear-gradient(0deg, rgba(147, 100, 44, 0.22), transparent);
  }
  .mobile-dock button.active span {
    color: var(--bright-gold);
    text-shadow: 0 0 12px currentColor;
  }
}

@media (max-width: 500px) {
  .citadel-scene {
    min-height: 620px;
  }
  .citadel-title h1 {
    font-size: 29px;
  }
  .citadel-location {
    min-width: 96px;
  }
  .citadel-location b {
    font-size: 9px;
  }
  .citadel-location small {
    max-width: 65px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .character-sanctum {
    padding-inline: 6px;
    gap: 6px;
  }
  .hero-figure {
    min-height: 400px;
  }
  .hero-gear-slot {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 92px;
    text-align: center;
  }
  .hero-gear-slot b {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero-progression {
    grid-template-columns: 58px 1fr;
    padding-inline: 8px;
  }
  .hero-level-seal {
    width: 50px;
    height: 50px;
  }
  .hero-xp > div:first-child {
    display: grid;
    gap: 3px;
  }
  .character-actions {
    display: grid;
  }
  .world-map-canvas {
    min-height: 660px;
  }
  .map-legend {
    display: none;
  }
  .combat-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .combat-speed-control {
    justify-content: space-between;
  }
  .combat-speed-buttons {
    display: flex;
  }
  .combat-speed-button {
    width: 31px;
  }
  .combat-stage {
    min-height: 455px;
    padding: 9px;
  }
  .combatants {
    inset: 72px 2px 120px;
  }
  .combat-nameplate {
    min-width: 100px;
  }
  .combat-nameplate small {
    font-size: 6px;
  }
  .combat-impact {
    font-size: 18px;
  }
  .combat-vitals {
    gap: 5px;
  }
  .combat-vital {
    padding: 7px;
  }
  .combat-vital b {
    display: grid;
    font-size: 9px;
  }
  .combat-end-actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-alert,
  .hero-gear-slot.rank-max,
  .loot-reveal,
  .loot-rays,
  .citadel-progression-layers i {
    animation: none !important;
    transition: none !important;
  }
  #view.view-enter {
    animation: none;
  }
}

/* source: phase4.css */
/* Phase 4 — immersive world locations. Gameplay and data remain in app.js/alpha-client.js. */

.immersive-location {
  --location-accent: #d4a85c;
  --location-accent-rgb: 212, 168, 92;
  position: relative;
  min-width: 0;
  color: #f3eadc;
}

.location-hero {
  position: relative;
  min-height: clamp(520px, 68vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(var(--location-accent-rgb), 0.4);
  border-radius: 8px 8px 2px 2px;
  background-image: var(--location-art);
  background-position: center;
  background-size: cover;
  box-shadow:
    0 30px 80px #02030a,
    inset 0 0 80px rgba(0, 0, 0, 0.7);
  isolation: isolate;
}

.location-hero::before,
.location-hero::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.location-hero::before {
  inset: 12px;
  border: 1px solid rgba(var(--location-accent-rgb), 0.28);
  clip-path: polygon(
    0 0,
    35% 0,
    35% 1px,
    65% 1px,
    65% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.location-hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  background: linear-gradient(transparent, #070912 90%);
}

.location-hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(3, 4, 10, 0.94) 0%,
      rgba(3, 4, 10, 0.52) 42%,
      rgba(3, 4, 10, 0.12) 72%
    ),
    linear-gradient(0deg, rgba(4, 5, 12, 0.9), transparent 48%);
}

.location-hero__heading {
  position: relative;
  z-index: 4;
  max-width: 650px;
  padding: clamp(48px, 8vw, 104px) clamp(26px, 6vw, 80px);
  text-shadow: 0 3px 18px #000;
}

.location-hero__heading h1,
.location-section-heading h2,
.forge-master h1 {
  margin: 8px 0 12px;
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.location-hero__heading p {
  max-width: 590px;
  margin: 0;
  color: #d3c8b7;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.65;
}

.location-stats {
  position: absolute;
  z-index: 5;
  top: 42px;
  right: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  width: min(390px, 40%);
  padding: 8px;
  border: 1px solid rgba(var(--location-accent-rgb), 0.35);
  background: linear-gradient(
    135deg,
    rgba(8, 9, 16, 0.94),
    rgba(18, 17, 22, 0.78)
  );
  box-shadow: 0 12px 32px #02030a;
  backdrop-filter: blur(10px);
}

.location-stat {
  display: flex;
  min-width: 0;
  min-height: 66px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.location-stat small,
.location-stat span {
  color: #9c9388;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.location-stat b {
  overflow: hidden;
  color: #fff4d8;
  font-family: var(--font-display, serif);
  font-size: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-hero__actions {
  position: absolute;
  z-index: 6;
  right: 38px;
  bottom: 38px;
  display: flex;
  max-width: calc(100% - 76px);
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.location-particles i {
  position: absolute;
  z-index: 3;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--location-accent);
  box-shadow: 0 0 14px var(--location-accent);
  animation: location-drift 7s ease-in-out infinite;
  opacity: 0.5;
}

.location-particles i:nth-child(1) {
  left: 22%;
  bottom: 18%;
}
.location-particles i:nth-child(2) {
  right: 31%;
  bottom: 35%;
  animation-delay: -2.7s;
}
.location-particles i:nth-child(3) {
  right: 12%;
  top: 25%;
  animation-delay: -4.4s;
}

@keyframes location-drift {
  50% {
    transform: translate3d(12px, -46px, 0) scale(1.8);
    opacity: 0.9;
  }
}

.location-section-heading {
  margin: 34px 0 20px;
  text-align: center;
}

.location-section-heading h2 {
  font-size: clamp(30px, 3vw, 46px);
}

/* Progression-reactive Citadel: all values are derived from real level, regions and ascensions. */
body[data-view="camp"][data-citadel-band="2"] .citadel-scene::after,
body[data-view="camp"][data-citadel-band="3"] .citadel-scene::after,
body[data-view="camp"][data-citadel-band="4"] .citadel-scene::after,
body[data-view="camp"][data-citadel-band="5"] .citadel-scene::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(177, 46, 36, 0.12) 58%,
    transparent 72%
  );
}

body[data-view="camp"][data-citadel-band="3"] .citadel-scene,
body[data-view="camp"][data-citadel-band="4"] .citadel-scene,
body[data-view="camp"][data-citadel-band="5"] .citadel-scene {
  filter: saturate(1.08) contrast(1.04);
}

body[data-view="camp"][data-citadel-ascensions]:not(
    [data-citadel-ascensions="0"]
  )
  .citadel-scene {
  box-shadow:
    inset 0 0 100px rgba(126, 79, 255, 0.23),
    0 28px 70px #03040a;
}

body[data-view="camp"][data-citadel-ascensions]:not(
    [data-citadel-ascensions="0"]
  )
  .citadel-atmosphere
  i {
  background: #9c76ff;
  box-shadow: 0 0 24px #7d55ff;
}

/* Crimson Arena */
.arena-location {
  --location-accent: #d15550;
  --location-accent-rgb: 209, 85, 80;
}
.arena-location .location-hero__shade {
  background:
    linear-gradient(90deg, rgba(10, 5, 7, 0.95), rgba(10, 5, 7, 0.22) 64%),
    linear-gradient(0deg, #100709, transparent 48%);
}
.arena-roster {
  margin-top: -55px;
  position: relative;
  z-index: 8;
  padding: 0 clamp(14px, 3vw, 36px);
}
.arena-champions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.arena-champion {
  position: relative;
  overflow: hidden;
  padding: 0 18px 20px;
  border: 1px solid rgba(213, 84, 77, 0.55);
  background: linear-gradient(
    155deg,
    rgba(34, 16, 18, 0.98),
    rgba(7, 8, 13, 0.98)
  );
  box-shadow:
    inset 0 0 0 4px #0b090c,
    0 16px 32px #030306;
  text-align: center;
}
.arena-champion::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(229, 166, 91, 0.2);
  content: "";
  pointer-events: none;
}
.champion-portrait {
  position: relative;
  display: block;
  width: calc(100% + 36px);
  max-width: none;
  height: 210px;
  margin: 0 -18px 16px;
  padding: 0;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(166, 57, 52, 0.65),
      transparent 37%
    ),
    linear-gradient(#261416, #09090d);
}
.champion-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 54%, #140d10);
  content: "";
}
.champion-portrait span {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  font-size: 94px;
  filter: drop-shadow(0 0 22px #b53535);
  transition: transform 240ms ease;
}
.arena-champion:hover .champion-portrait span {
  transform: translateX(-50%) scale(1.08);
}
.arena-champion:hover {
  border-color: #f1b45e;
  box-shadow:
    inset 0 0 25px rgba(210, 71, 61, 0.25),
    0 18px 36px #020205;
}
.champion-rank {
  color: #cf9259;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.arena-champion h2 {
  min-height: 52px;
  margin: 7px 0 12px;
  font-family: var(--font-display, serif);
  font-size: 25px;
}
.champion-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 12px;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
}
.champion-stats span {
  padding: 10px 4px;
}
.champion-stats small {
  display: block;
  color: #8e8583;
  font-size: 8px;
}
.champion-stats b {
  color: #f3dfbd;
}
.champion-odds {
  margin-bottom: 12px;
  color: #afa5a4;
  font-size: 11px;
}
.arena-champion .button {
  width: 100%;
}
.arena-leaderboard {
  margin: 22px clamp(14px, 3vw, 36px) 0;
  border: 1px solid #33292b;
  background: #0b0c12;
}
.arena-leaderboard summary {
  padding: 16px 20px;
  cursor: pointer;
  color: #dec7a3;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.arena-leaderboard > div {
  padding: 0 18px 18px;
}
.arena-combat .combat-backdrop {
  background-image:
    linear-gradient(rgba(5, 3, 6, 0.32), rgba(5, 3, 6, 0.82)), var(--arena-art);
  background-size: cover;
  background-position: center;
}
.arena-outcome {
  text-align: center;
  padding: 20px;
}
.arena-outcome small {
  display: block;
  font-family: var(--font-display, serif);
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: 0.08em;
}
.arena-outcome.victory small,
.arena-outcome.victory b {
  color: #f4ca73;
}
.arena-outcome.defeat small,
.arena-outcome.defeat b {
  color: #e36a70;
}
.arena-outcome h2 {
  font-size: 28px;
  margin: 8px 0;
}
.arena-outcome b {
  font-size: 22px;
}

/* World Gate */
.world-boss-location {
  --location-accent: #8d71ff;
  --location-accent-rgb: 141, 113, 255;
}
.world-boss-location .location-hero__actions {
  z-index: 20;
  bottom: 110px;
}
.world-boss-location .location-hero {
  min-height: min(78vh, 820px);
  background-position: center top;
}
.world-boss-location .location-hero__shade {
  background:
    linear-gradient(90deg, rgba(5, 4, 12, 0.91), rgba(6, 4, 14, 0.1) 60%),
    linear-gradient(0deg, #080711, transparent 54%);
}
.world-boss-location.wounded .location-hero {
  filter: saturate(1.15) contrast(1.07);
}
.world-boss-location.enraged {
  --location-accent: #ff4f4f;
  --location-accent-rgb: 255, 79, 79;
}
.world-boss-location.enraged .location-hero {
  animation: boss-pulse 2.2s ease-in-out infinite;
  filter: saturate(1.25) contrast(1.08);
}
@keyframes boss-pulse {
  50% {
    box-shadow:
      inset 0 0 100px rgba(255, 40, 35, 0.26),
      0 30px 80px #02030a;
  }
}
.world-boss-attack {
  min-height: 56px;
  padding-inline: 28px;
  border-color: #b99cff;
  background: linear-gradient(#6d4ee3, #38217f);
  color: #fff;
  font-size: 13px;
}
.world-boss-console {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 18px;
  margin-top: -70px;
  padding: 0 clamp(14px, 3vw, 36px);
}
.worldboss-hp.massive {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid rgba(145, 112, 255, 0.48);
  background: rgba(6, 6, 15, 0.95);
  box-shadow: 0 18px 45px #030309;
}
.worldboss-hp.massive > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.worldboss-hp.massive .progress {
  height: 22px;
  margin: 10px 0;
  border: 1px solid #564487;
  background: #130e24;
}
.worldboss-hp.massive .progress span {
  background: linear-gradient(90deg, #5639ae, #a077ff, #e7c4ff);
  box-shadow: 0 0 24px #754fff;
}
.world-boss-result,
.world-boss-ranking {
  border: 1px solid #302842;
  background: linear-gradient(135deg, #12101d, #080910);
  padding: 22px;
}
.world-boss-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.world-boss-result span {
  color: #b59cf7;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.world-boss-result b {
  color: #eee3ff;
  font-family: var(--font-display, serif);
  font-size: clamp(36px, 5vw, 62px);
}
.world-boss-result small {
  color: #a99eb8;
}

/* Eternal Sanctum */
.sanctum-location {
  --location-accent: #bda0ff;
  --location-accent-rgb: 189, 160, 255;
}
.sanctum-location .location-hero__actions {
  z-index: 20;
  right: auto;
  bottom: 110px;
  left: clamp(26px, 6vw, 80px);
}
.sanctum-location .location-hero__shade {
  background:
    linear-gradient(90deg, rgba(7, 7, 18, 0.91), rgba(7, 7, 18, 0.1) 64%),
    linear-gradient(0deg, #090913, transparent 56%);
}
.sanctum-preview {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  margin: -70px clamp(14px, 3vw, 36px) 0;
}
.sanctum-gain,
.sanctum-bonuses,
.sanctum-clarity article,
.sanctum-rune {
  border: 1px solid rgba(166, 132, 242, 0.3);
  background: linear-gradient(
    145deg,
    rgba(18, 17, 30, 0.98),
    rgba(8, 9, 15, 0.98)
  );
  box-shadow:
    inset 0 0 28px rgba(108, 70, 188, 0.07),
    0 14px 30px #030309;
}
.sanctum-gain,
.sanctum-bonuses {
  padding: 25px;
}
.sanctum-gain h2 {
  margin: 5px 0;
  color: #e7d8ff;
  font-family: var(--font-display, serif);
  font-size: 38px;
}
.sanctum-bonuses > div {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sanctum-bonuses b {
  color: #c9afff;
  font-size: 17px;
}
.sanctum-clarity {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px clamp(14px, 3vw, 36px);
}
.sanctum-clarity article {
  padding: 24px;
}
.sanctum-clarity article > span {
  color: #9dcd94;
  letter-spacing: 0.18em;
}
.sanctum-clarity .reset > span {
  color: #e08b8f;
}
.sanctum-clarity p {
  color: #bcb4c8;
  font-size: 11px;
  line-height: 1.5;
}
.sanctum-upgrades {
  padding: 0 clamp(14px, 3vw, 36px);
}
.ascension-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.sanctum-rune {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}
.sanctum-rune h3,
.sanctum-rune p {
  margin: 3px 0;
}
.fantasy-dialog-layer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 2, 8, 0.83);
  backdrop-filter: blur(8px);
}
.fantasy-dialog {
  max-width: 560px;
  padding: 34px;
  border: 1px solid #8d70d4;
  background:
    radial-gradient(circle at 50% 0, rgba(111, 75, 193, 0.25), transparent 42%),
    linear-gradient(#171424, #080910);
  box-shadow: 0 0 80px rgba(124, 78, 230, 0.28);
  text-align: center;
}
.fantasy-dialog h2 {
  font-family: var(--font-display, serif);
  font-size: 34px;
}
.fantasy-dialog > div:last-child {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ascension-dialog-sigil {
  display: block;
  color: #d8c2ff;
  font-size: 58px;
}
.ascension-cinematic {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle,
    rgba(160, 117, 255, 0.46),
    #05040c 48%,
    #010103
  );
  animation: ascension-flash 2.6s ease both;
  text-align: center;
}
.ascension-cinematic__runes {
  color: #fff;
  font-size: 100px;
  filter: drop-shadow(0 0 35px #a576ff);
  animation: rune-awaken 1.4s ease both;
}
.ascension-cinematic span {
  letter-spacing: 0.32em;
}
.ascension-cinematic h2 {
  margin: 8px;
  font-family: var(--font-display, serif);
  font-size: clamp(42px, 7vw, 88px);
}
.ascension-cinematic b {
  color: #d6baff;
  font-size: 22px;
}
.ascension-cinematic .button {
  margin-top: 26px;
}
@keyframes ascension-flash {
  0% {
    opacity: 0;
    background: #000;
  }
  18% {
    opacity: 1;
  }
  55% {
    background: radial-gradient(
      circle,
      #fff 0,
      rgba(160, 117, 255, 0.55) 18%,
      #05040c 55%
    );
  }
  100% {
    background: radial-gradient(
      circle,
      rgba(160, 117, 255, 0.38),
      #05040c 52%,
      #010103
    );
  }
}
@keyframes rune-awaken {
  0% {
    transform: scale(0.2) rotate(-180deg);
    opacity: 0;
  }
  65% {
    transform: scale(1.3) rotate(8deg);
  }
  100% {
    transform: scale(1);
  }
}

/* Archive, Grove, Stables and Legends */
.bestiary-location {
  --location-accent: #b39158;
  --location-accent-rgb: 179, 145, 88;
}
.archive-book {
  position: relative;
  z-index: 7;
  margin: -65px clamp(14px, 3vw, 36px) 0;
  padding: 28px;
  border: 8px solid #2a1b13;
  border-inline-width: 16px;
  background: linear-gradient(
    90deg,
    #c5aa77 0,
    #dbc392 49.5%,
    #876d48 50%,
    #ddc797 50.5%,
    #c4a978 100%
  );
  box-shadow: 0 25px 55px #020205;
  color: #271c17;
}
.archive-book__spine {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 14px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    rgba(52, 30, 18, 0.5),
    rgba(255, 238, 190, 0.2),
    rgba(52, 30, 18, 0.5)
  );
}
.bestiary-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 38px;
}
.beast-page {
  display: grid;
  grid-template-columns: 135px 1fr;
  min-height: 160px;
  border-bottom: 1px solid rgba(57, 35, 21, 0.28);
  background: rgba(255, 244, 211, 0.1);
}
.bestiary-art {
  min-height: 160px;
  background-size: cover;
  background-position: center;
  filter: sepia(0.15);
}
.bestiary-copy {
  padding: 13px;
}
.bestiary-copy h3 {
  margin: 4px 0;
  font-family: var(--font-display, serif);
  font-size: 22px;
}
.bestiary-copy p {
  font-size: 11px;
}
.bestiary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10px;
}
.beast-page.undiscovered {
  filter: grayscale(1);
  opacity: 0.57;
}
.companions-location {
  --location-accent: #789bdd;
  --location-accent-rgb: 120, 155, 221;
}
.mounts-location {
  --location-accent: #b5d1dd;
  --location-accent-rgb: 181, 209, 221;
}
.sanctuary-collection,
.stable-collection,
.legend-gallery {
  position: relative;
  z-index: var(--layer-content);
  padding: 0 clamp(14px, 3vw, 36px);
}
.achievements-location {
  --location-accent: #d6b665;
  --location-accent-rgb: 214, 182, 101;
}
.legend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legend-plaque {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px solid #3e382b;
  background: linear-gradient(145deg, #171612, #090a0d);
}
.legend-plaque.unlocked,
.legend-plaque.ready {
  border-color: #9e8244;
  box-shadow: inset 0 0 28px rgba(207, 170, 78, 0.12);
}
.legend-plaque.locked {
  filter: saturate(0.25);
  opacity: 0.62;
}
.legend-icon {
  font-size: 48px;
  text-align: center;
  filter: drop-shadow(0 0 14px #a58139);
}
.legend-plaque h2,
.legend-plaque p {
  margin: 4px 0;
}
.legend-plaque small {
  color: #c39c50;
  letter-spacing: 0.13em;
}

/* Forge */
.forge-market-location {
  --location-accent: #f08a42;
  --location-accent-rgb: 240, 138, 66;
}
.forge-workbench {
  position: relative;
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.75fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 20px;
  padding: clamp(24px, 5vw, 65px);
  overflow: hidden;
  border: 1px solid #714127;
  background-image: var(--location-art);
  background-size: cover;
  background-position: center;
  box-shadow:
    inset 0 0 80px #000,
    0 22px 55px #030306;
  isolation: isolate;
}
.forge-workbench__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 8, 0.92), rgba(8, 7, 8, 0.18)),
    linear-gradient(0deg, rgba(9, 5, 5, 0.94), transparent 50%);
}
.forge-master h1 {
  max-width: 500px;
}
.forge-master p {
  max-width: 520px;
  color: #d0b8a5;
}
.forge-anvil {
  padding: 18px;
  border: 1px solid rgba(244, 129, 57, 0.45);
  background: rgba(13, 9, 9, 0.9);
  box-shadow:
    0 15px 45px #000,
    inset 0 0 30px rgba(226, 80, 26, 0.1);
  text-align: center;
}
.anvil-item > span,
.anvil-empty > span {
  display: block;
  font-size: 60px;
  filter: drop-shadow(0 0 18px #e6682f);
}
.anvil-item h2 {
  margin: 5px;
}
.anvil-rank {
  margin: 8px;
  color: #ffcf8f;
  font-family: var(--font-display, serif);
  font-size: 30px;
}
.anvil-rank i {
  padding: 0 13px;
  color: #8b7062;
  font-size: 18px;
}
.anvil-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0;
}
.anvil-comparison span small {
  display: block;
  color: #8f7d73;
}
.anvil-comparison .better {
  color: #74d995;
}
.anvil-comparison .worse {
  color: #ea7474;
}
.hammer-upgrade {
  width: 100%;
  margin: 8px 0;
}
.forge-stock {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  margin: -60px clamp(14px, 3vw, 36px) 0;
}
.forge-npc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border: 1px solid #74472d;
  background: linear-gradient(#26150f, #0c0909);
}
.forge-npc > span {
  font-size: 70px;
}
.merchant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.merchant-card {
  margin: 0;
  background: linear-gradient(145deg, #1c1210, #09090c);
  border-color: #5b3624;
}

/* Abyssal Gate and Raids */
.abyssal-gate-location {
  --location-accent: #9d77e8;
  --location-accent-rgb: 157, 119, 232;
}
.abyssal-wings {
  position: relative;
  z-index: 7;
  margin-top: -65px;
  padding: 0 clamp(14px, 3vw, 36px);
}
.raid-wing-location {
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #413454;
  background: #090911;
  box-shadow: 0 20px 45px #020205;
}
.raid-wing-location.locked-wing .raid-boss-stage {
  filter: grayscale(0.75) brightness(0.6);
}
.raid-boss-stage {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background-image: var(--raid-image);
  background-size: cover;
  background-position: center 32%;
  isolation: isolate;
}
.raid-boss-stage__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 11, 0.9), rgba(5, 5, 11, 0.12) 62%),
    linear-gradient(0deg, #090911, transparent 58%);
}
.raid-wing-number {
  position: absolute;
  top: 22px;
  left: 25px;
  color: #d1b8ff;
  font-size: 10px;
  letter-spacing: 0.2em;
}
.raid-boss-copy {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 690px;
}
.raid-boss-copy > span {
  font-size: 58px;
}
.raid-boss-copy h2 {
  margin: 4px 0;
  font-family: var(--font-display, serif);
  font-size: clamp(28px, 4vw, 48px);
}
.raid-loot-preview {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  max-width: 320px;
  flex-direction: column;
  padding: 16px;
  border: 1px solid rgba(180, 142, 235, 0.42);
  background: rgba(7, 6, 14, 0.88);
}
.raid-loot-preview small {
  color: #ad8bdd;
}
.raid-difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #332942;
}
.raid-difficulty {
  padding: 14px;
  background: linear-gradient(#14111e, #090a10);
}
.raid-difficulty[data-raid-difficulty="mythic"] {
  box-shadow: inset 0 0 30px rgba(134, 78, 214, 0.13);
}
.raid-difficulty.locked {
  opacity: 0.58;
}
.raid-difficulty-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.raid-difficulty-head small {
  display: block;
  color: #928b9e;
  font-size: 9px;
}
.raid-personal {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0;
  font-size: 11px;
}
.raid-personal span:last-child {
  display: flex;
  flex-direction: column;
}
.raid-milestones {
  display: grid;
  gap: 5px;
}
.raid-milestone {
  display: grid;
  grid-template-columns: 24px 1fr;
  padding: 7px;
  border: 1px solid #2c2836;
  background: #0b0c12;
  color: #bcb4ca;
  text-align: left;
}
.raid-milestone small {
  grid-column: 2;
}
.raid-strike {
  width: 100%;
  margin-top: 10px;
}
.raid-strike-result {
  margin: 0 auto 18px;
  padding: 16px 34px;
  width: max-content;
  max-width: 100%;
  border: 1px solid #855cc9;
  background: #110d1c;
  text-align: center;
}
.raid-strike-result span,
.raid-strike-result small {
  display: block;
  color: #a68bbc;
  font-size: 9px;
  letter-spacing: 0.17em;
}
.raid-strike-result b {
  color: #e6d5ff;
  font-size: 34px;
}
.set-bonus-grid,
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.recipe-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.raid-set-reveal {
  position: relative;
  overflow: hidden;
  width: min(520px, 100%);
  padding: 40px;
  border: 1px solid #c69b5a;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(246, 197, 97, 0.22),
      transparent 34%
    ),
    #0b0910;
  box-shadow: 0 0 90px rgba(194, 143, 59, 0.25);
  text-align: center;
}
.raid-set-reveal .loot-icon {
  font-size: 74px;
}
.raid-set-reveal h2 {
  font-family: var(--font-display, serif);
  font-size: 36px;
}
.raid-set-reveal > div:not(.loot-icon) {
  margin: 8px;
  color: #d3c6ad;
}

/* Hall of Oaths */
.guild-hall-location {
  --location-accent: #d2aa68;
  --location-accent-rgb: 210, 170, 104;
}
.guild-hall-location .location-hero__actions {
  right: 22px;
  bottom: 22px;
  left: 22px;
  max-width: none;
}
.guild-hall-hotspots {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  gap: 8px;
}
.guild-hall-hotspots button {
  min-height: 74px;
  padding: 8px;
  border: 1px solid rgba(209, 166, 95, 0.45);
  background: linear-gradient(rgba(35, 28, 23, 0.9), rgba(12, 12, 14, 0.94));
  color: #e6d7bd;
  font-size: 9px;
  letter-spacing: 0.09em;
  cursor: pointer;
}
.guild-hall-hotspots button:hover {
  border-color: #e4b965;
  box-shadow: inset 0 0 20px rgba(218, 172, 88, 0.12);
  transform: translateY(-2px);
}
.guild-hall-hotspots span {
  display: block;
  margin-bottom: 5px;
  color: #d9ad62;
  font-size: 24px;
}
.guild-hall-overlay,
.guild-founder-overlay {
  position: relative;
  z-index: 7;
  min-height: 260px;
  margin: -10px clamp(14px, 3vw, 36px) 0;
  padding: 24px;
  border: 1px solid #4c3d2c;
  background: linear-gradient(
    135deg,
    rgba(23, 19, 17, 0.98),
    rgba(8, 9, 12, 0.98)
  );
  box-shadow: 0 20px 45px #020205;
}
.guild-hall-overlay > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.guild-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.guild-overview-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #3f3428;
}
.guild-overview-quick > section {
  padding: 14px;
  border: 1px solid #3a3027;
  background: #0c0c0f;
}
.guild-overview-quick .section-head {
  margin: 0;
}
.quick-donation {
  margin-top: 10px;
}
.quick-chat {
  grid-column: 1 / -1;
}
.guild-research-tree {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 70px;
  padding: 20px;
}
.guild-research-tree::before {
  position: absolute;
  top: 50%;
  right: 15%;
  left: 15%;
  height: 1px;
  background: #695236;
  content: "";
}
.guild-research {
  position: relative;
  z-index: 2;
  border: 1px solid #5c4934;
  background: linear-gradient(#231d18, #0d0d0f);
}
.treasury-vault {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 30px;
  background:
    radial-gradient(
      circle at 20% 60%,
      rgba(216, 158, 63, 0.23),
      transparent 30%
    ),
    linear-gradient(135deg, #17120e, #09090b);
}
.treasury-total {
  display: flex;
  flex-direction: column;
}
.treasury-total span {
  color: #b6955f;
  letter-spacing: 0.18em;
}
.treasury-total b {
  color: #f0d291;
  font-family: var(--font-display, serif);
  font-size: 36px;
}
.guild-war-map {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: radial-gradient(circle, rgba(125, 57, 40, 0.2), transparent 50%);
}
.guild-war-map > span {
  font-size: 90px;
  color: #b87657;
}
.hall-chat {
  max-width: 760px;
  margin: auto;
}
.guild-founder-overlay {
  margin-top: -90px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Chronicle */
.chronicle-location {
  --location-accent: #c6a36a;
  --location-accent-rgb: 198, 163, 106;
}
.chronicle-table {
  position: relative;
  z-index: 7;
  margin: -65px clamp(14px, 3vw, 36px) 0;
  padding: 26px;
  border: 6px solid #34251b;
  background: linear-gradient(135deg, #2a1c13, #0b0b0e 42%);
  box-shadow: 0 20px 50px #020205;
}
.event-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px;
  border: 1px solid #6d5738;
  background: linear-gradient(
    90deg,
    rgba(73, 47, 29, 0.7),
    rgba(14, 13, 15, 0.92)
  );
}
.event-banner h2 {
  margin: 5px 0;
  font-family: var(--font-display, serif);
  font-size: 34px;
}
.season-scroll {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid #705a38;
  background:
    linear-gradient(90deg, rgba(197, 158, 94, 0.1), transparent), #12100e;
}
.season-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.season-tier {
  position: relative;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #50432f;
  background: #17140f;
}

@media (max-width: 1050px) {
  .location-stats {
    top: auto;
    right: 28px;
    bottom: 118px;
    width: min(440px, 55%);
  }
  .arena-champions,
  .raid-difficulty-grid {
    grid-template-columns: 1fr;
  }
  .champion-portrait {
    height: 150px;
  }
  .set-bonus-grid {
    grid-template-columns: 1fr;
  }
  .guild-hall-hotspots {
    grid-template-columns: repeat(3, 1fr);
  }
  .guild-hall-location .location-hero {
    min-height: 710px;
  }
}

@media (max-width: 760px) {
  .location-hero {
    min-height: 560px;
    background-position: 62% center;
  }
  .location-hero__heading {
    padding: 40px 22px;
  }
  .location-hero__heading h1 {
    font-size: 40px;
  }
  .location-stats {
    right: 14px;
    bottom: 118px;
    left: 14px;
    width: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .location-hero__actions {
    right: 14px;
    bottom: 20px;
    left: 14px;
    max-width: none;
    justify-content: stretch;
  }
  .sanctum-location .location-hero__actions {
    right: 14px;
    bottom: 24px;
    left: 14px;
  }
  .world-boss-location .location-hero__actions {
    right: 14px;
    bottom: 24px;
    left: 14px;
  }
  .location-hero__actions > .button {
    flex: 1 1 auto;
  }
  .arena-roster,
  .world-boss-console,
  .sanctum-preview,
  .sanctuary-collection,
  .stable-collection,
  .legend-gallery,
  .abyssal-wings,
  .chronicle-table {
    margin-top: -28px;
  }
  .arena-champions,
  .world-boss-console,
  .sanctum-preview,
  .sanctum-clarity,
  .ascension-grid,
  .bestiary-grid,
  .legend-grid,
  .forge-workbench,
  .forge-stock,
  .recipe-grid,
  .guild-overview-grid,
  .guild-overview-quick,
  .treasury-vault,
  .guild-founder-overlay {
    grid-template-columns: 1fr;
  }
  .worldboss-hp.massive > div:first-child {
    flex-direction: column;
    gap: 4px;
  }
  .sanctum-rune,
  .legend-plaque {
    grid-template-columns: 48px 1fr;
  }
  .sanctum-rune .button,
  .legend-plaque .button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .archive-book {
    padding: 12px;
    border-inline-width: 8px;
  }
  .archive-book__spine {
    display: none;
  }
  .beast-page {
    grid-template-columns: 100px 1fr;
  }
  .forge-workbench {
    min-height: 720px;
    padding: 24px 16px;
  }
  .merchant-grid {
    grid-template-columns: 1fr;
  }
  .raid-boss-stage {
    min-height: 420px;
    padding: 20px;
  }
  .raid-loot-preview {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 15px;
  }
  .guild-hall-hotspots {
    grid-template-columns: repeat(2, 1fr);
  }
  .guild-hall-location .location-hero {
    min-height: 820px;
  }
  .guild-research-tree {
    grid-template-columns: 1fr;
    padding: 0;
  }
  .guild-research-tree::before {
    display: none;
  }
  .event-banner {
    grid-template-columns: 1fr;
  }
  .season-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .season-tier {
    min-width: 190px;
    scroll-snap-align: start;
  }
  .fantasy-dialog > div:last-child {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .location-particles i,
  .world-boss-location.enraged .location-hero,
  .ascension-cinematic,
  .ascension-cinematic__runes {
    animation: none !important;
  }
}

/* source: phase5.css */
/* Phase 5: presentation-only game feel. Gameplay and API semantics stay untouched. */
:root {
  --feel-fast: 160ms;
  --feel-medium: 260ms;
  --impact-delay: calc(120ms / var(--combat-speed, 1));
}

.profile .avatar {
  background-position: 50% 18%;
  background-size: cover;
  border-color: color-mix(in srgb, var(--class-accent, #c99b56) 55%, #2a251f);
  box-shadow: 0 0 18px
    color-mix(in srgb, var(--class-accent, #c99b56) 20%, transparent);
  color: transparent;
}

.button,
.nav-item,
.citadel-location,
.map-node,
.hero-gear-slot {
  transform-origin: center;
  transition:
    transform var(--feel-fast) ease,
    filter var(--feel-fast) ease,
    border-color var(--feel-fast) ease,
    box-shadow var(--feel-fast) ease,
    background-color var(--feel-fast) ease;
}

.button:hover:not(:disabled),
.citadel-location:hover,
.hero-gear-slot:hover {
  transform: translateY(-1px);
}
.button:active:not(:disabled),
.citadel-location:active,
.hero-gear-slot:active {
  transform: translateY(1px) scale(0.985);
}
.button:focus-visible,
.nav-item:focus-visible,
.citadel-location:focus-visible {
  outline: 2px solid #e4bd70;
  outline-offset: 3px;
}
.button[disabled] {
  filter: grayscale(0.58) brightness(0.68);
}

.action-loading .button:not([disabled]) {
  cursor: wait;
}
.action-loading .button.primary::after {
  content: "";
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 8px;
  border: 1px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  vertical-align: -2px;
  animation: rune-spin 0.7s linear infinite;
}

.audio-mixer {
  display: grid;
  gap: 12px;
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid #3b3228;
  background: linear-gradient(145deg, #15120f, #0b0d12);
}
.audio-mixer label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  color: #cab99e;
  font: 10px "DM Mono";
}
.audio-mixer input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #c3914d;
}
.audio-mixer output {
  color: #edcc8a;
}
.auth-class button {
  min-height: 92px;
  padding-top: 54px;
  background:
    linear-gradient(0deg, #090b10 0 38%, transparent 72%),
    var(--class-art) 50% 18% / cover;
  border-color: color-mix(in srgb, var(--class-accent) 35%, #312c25);
}
.auth-class button span {
  display: none;
}
.auth-class button.active {
  border-color: var(--class-accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--class-accent) 24%, transparent);
}

/* Class identity */
.class-card {
  overflow: hidden;
  border-color: color-mix(in srgb, var(--class-accent) 28%, #36322b);
}
.class-portrait {
  min-height: 235px;
  background: var(--class-art) 50% 18% / cover no-repeat;
  filter: saturate(0.88) contrast(1.04);
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}
.class-card:hover .class-portrait {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.07);
}
.class-card.active-class {
  box-shadow:
    inset 0 0 0 1px var(--class-accent),
    0 0 28px color-mix(in srgb, var(--class-accent) 18%, transparent);
}
.character-screen {
  --hero-accent: #c99b56;
}
.hero-figure__art {
  background:
    linear-gradient(0deg, rgba(6, 6, 8, 0.86), transparent 38%),
    var(--hero-art) 50% 15% / cover no-repeat;
  filter: drop-shadow(
    0 0 18px color-mix(in srgb, var(--hero-accent) 24%, transparent)
  );
  animation: hero-idle 5.2s ease-in-out infinite;
}
.hero-figure::before {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--hero-accent) 30%, transparent),
    transparent 66%
  );
}

/* Scalable item art: base image + rarity frame + rank effects. */
.item-icon,
.loot-icon,
.anvil-item > span:first-child,
.hero-gear-icon {
  position: relative;
  isolation: isolate;
  background-image: var(--item-art);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: transparent !important;
  text-shadow: none !important;
}
.item-icon > span,
.loot-icon > span {
  opacity: 0;
}
.item-card .item-icon {
  width: 92px;
  height: 92px;
  margin: 10px auto;
  border: 1px solid currentColor;
  box-shadow: inset 0 0 18px #050506;
}
.item-card.rarity-selten .item-icon {
  box-shadow:
    inset 0 0 18px #050506,
    0 0 15px rgba(255, 211, 108, 0.13);
}
.item-card.rarity-episch .item-icon {
  box-shadow:
    inset 0 0 18px #050506,
    0 0 18px rgba(185, 138, 255, 0.2);
}
.item-card.rarity-legendär .item-icon {
  box-shadow:
    inset 0 0 18px #050506,
    0 0 22px rgba(255, 171, 98, 0.27);
}
.item-card.rarity-mythisch .item-icon {
  box-shadow:
    inset 0 0 18px #050506,
    0 0 25px rgba(255, 126, 175, 0.34);
}
.item-card[class*="rank-1"] .item-icon::after,
.anvil-item[class*="rank-1"] > span:first-child::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(234, 191, 102, 0.38);
  box-shadow: inset 0 0 12px rgba(151, 92, 255, 0.17);
}
.item-card.rank-20 .item-icon,
.anvil-item.rank-20 > span:first-child {
  animation: apex-item 1.8s ease-in-out infinite;
}
.hero-gear-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid rgba(207, 169, 100, 0.28);
}
.anvil-item > span:first-child {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 8px;
}

.raid-loot-preview i,
.set-bonus > i {
  display: block;
  background: var(--set-art) center / cover no-repeat;
  border: 1px solid rgba(219, 176, 100, 0.3);
  box-shadow: inset 0 -22px 30px rgba(4, 4, 7, 0.7);
}
.raid-loot-preview i {
  width: 100%;
  height: 88px;
  margin-bottom: 9px;
}
.set-bonus > i {
  height: 145px;
  margin: -18px -18px 14px;
}

/* Combat timing and identity */
.combat-screen {
  position: relative;
}
.combat-stage {
  --combat-speed: 1;
}
.combatant-art.hero-art {
  background-image: var(--hero-art);
  background-position: 50% 18%;
  background-size: cover;
}
.combatant-art.enemy-art {
  background-image: var(--enemy-art);
  background-position: 50% 25%;
  background-size: cover;
}
.combatant-art {
  transition:
    filter var(--feel-fast),
    transform var(--feel-fast);
}
.hero-combatant .combatant-aura {
  color: var(--hero-accent);
}
.hero-strike .hero-combatant {
  animation: hero-strike calc(430ms / var(--combat-speed))
    cubic-bezier(0.2, 0.8, 0.3, 1);
}
.enemy-strike .enemy-combatant {
  animation: enemy-strike calc(430ms / var(--combat-speed))
    cubic-bezier(0.2, 0.8, 0.3, 1);
}
.hero-strike .enemy-combatant .combatant-art,
.enemy-strike .hero-combatant .combatant-art {
  animation: hit-flash calc(260ms / var(--combat-speed)) var(--impact-delay)
    both;
}
.critical-impact .combat-backdrop {
  animation: critical-pulse calc(360ms / var(--combat-speed))
    var(--impact-delay) both;
}
.critical-impact .combatants {
  animation: critical-nudge calc(240ms / var(--combat-speed))
    var(--impact-delay) both;
}

.combat-damage-layer {
  pointer-events: none;
  z-index: 12;
}
.floating-damage {
  animation: damage-rise calc(680ms / var(--combat-speed)) var(--impact-delay)
    cubic-bezier(0.15, 0.8, 0.25, 1) both;
  color: #f3e2c4;
  font: 800 clamp(22px, 3.5vw, 44px) "Playfair Display";
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 2px #000,
    0 0 12px rgba(240, 90, 72, 0.7);
}
.floating-damage.enemy {
  left: 31%;
  color: #ffb7aa;
}
.floating-damage.player {
  right: 26%;
}
.floating-damage.critical {
  color: #ffd477;
  font-size: clamp(29px, 4.3vw, 57px);
}
.floating-damage small {
  display: block;
  color: #fff0b7;
  font: 800 10px "DM Mono";
  letter-spacing: 0.24em;
}
.floating-damage.heal {
  left: 24%;
  color: #7be3a6;
  text-shadow: 0 0 13px rgba(64, 221, 148, 0.7);
}

.combat-hp {
  position: relative;
  overflow: hidden;
}
.combat-hp span,
.combat-hp i {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  transition: width calc(240ms / var(--combat-speed)) var(--impact-delay)
    ease-out;
}
.combat-hp i {
  background: rgba(255, 237, 171, 0.42);
  transition-duration: calc(430ms / var(--combat-speed));
  transition-delay: calc(230ms / var(--combat-speed));
}
.combat-hp span {
  z-index: 1;
}

.skill-banner {
  border-color: color-mix(in srgb, var(--hero-accent) 48%, #433327);
}
.skill-fx-rune .combat-fx-layer i {
  border: 1px solid #e3a44e;
  border-radius: 8%;
  animation: rune-impact 0.5s var(--impact-delay) both;
}
.skill-fx-astral .combat-fx-layer i {
  background: linear-gradient(
    150deg,
    transparent 40%,
    #74a7ff 49%,
    transparent 52%
  );
  animation: star-fall 0.55s var(--impact-delay) both;
}
.skill-fx-void .combat-fx-layer {
  filter: hue-rotate(30deg) contrast(1.5);
  animation: void-shear 0.46s var(--impact-delay) both;
}
.skill-fx-spirit .combat-fx-layer i {
  border-radius: 50%;
  box-shadow: 0 0 28px #58d3ac;
  animation: spirit-pulse 0.55s var(--impact-delay) both;
}
.skill-fx-ember-holy .combat-fx-layer {
  background: radial-gradient(
    circle at 38% 50%,
    rgba(255, 196, 94, 0.38),
    transparent 25%
  );
  animation: holy-ember 0.6s var(--impact-delay) both;
}
.skill-fx-lightning .combat-fx-layer i {
  background: linear-gradient(
    110deg,
    transparent 44%,
    #9cecff 47%,
    #fff 49%,
    transparent 52%
  );
  animation: lightning-arc 0.42s var(--impact-delay) both;
}
.skill-fx-threads .combat-fx-layer {
  background: repeating-linear-gradient(
    115deg,
    transparent 0 17%,
    rgba(189, 102, 255, 0.55) 17.2% 17.6%,
    transparent 18% 28%
  );
  animation: thread-bind 0.55s var(--impact-delay) both;
}
.skill-fx-time .combatant-art.hero-art {
  filter: drop-shadow(-18px 0 rgba(111, 224, 219, 0.2))
    drop-shadow(18px 0 rgba(225, 187, 108, 0.2));
}

.boss-wounded .enemy-combatant .combatant-aura {
  opacity: 0.8;
  filter: hue-rotate(-15deg) saturate(1.25);
}
.boss-enraged {
  box-shadow: inset 0 0 80px rgba(143, 23, 35, 0.27);
}
.boss-enraged .enemy-combatant .combatant-art {
  filter: saturate(1.22) contrast(1.08)
    drop-shadow(0 0 15px rgba(216, 51, 59, 0.35));
}

.boss-intro {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: end start;
  padding: clamp(24px, 7vw, 90px);
  background:
    linear-gradient(90deg, rgba(3, 4, 7, 0.94), rgba(3, 4, 7, 0.2)),
    var(--boss-art) center / cover;
  animation: boss-intro 1.15s ease both;
}
.boss-intro > div {
  max-width: 780px;
}
.boss-intro span {
  color: #d7a04c;
  font: 700 11px "DM Mono";
  letter-spacing: 0.35em;
}
.boss-intro h1 {
  margin: 8px 0;
  color: #f3e7d0;
  font: 700 clamp(36px, 7vw, 90px)/0.95 "Playfair Display";
  text-shadow: 0 4px 20px #000;
}
.boss-intro p {
  color: #c7b99f;
  font-size: 13px;
}

/* Loot cadence */
.loot-reveal {
  --reveal-time: 0.32s;
}
.loot-reveal .loot-icon {
  width: 126px;
  height: 126px;
  margin: 8px auto;
  opacity: 0;
  transform: scale(0.72);
  animation: loot-item-in 0.34s 0.12s ease forwards;
}
.loot-reveal .loot-rays {
  animation-duration: 2.5s;
}
.loot-reveal > small,
.loot-reveal > h2,
.loot-reveal > p,
.loot-actions {
  opacity: 0;
  animation: loot-copy-in 0.25s 0.3s ease forwards;
}
.loot-reveal.rarity-gewöhnlich .loot-rays {
  display: none;
}
.loot-reveal.rarity-ungewöhnlich {
  box-shadow: inset 0 0 22px rgba(70, 217, 135, 0.1);
}
.loot-reveal.rarity-magisch {
  box-shadow: inset 0 0 28px rgba(75, 169, 255, 0.13);
}
.loot-reveal.rarity-episch {
  box-shadow: inset 0 0 38px rgba(167, 89, 255, 0.19);
}
.loot-reveal.rarity-legendär,
.loot-reveal.rarity-mythisch {
  box-shadow:
    inset 0 0 60px currentColor,
    0 0 24px color-mix(in srgb, currentColor 32%, transparent);
}
.loot-cinematic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(2, 3, 5, 0.74);
  backdrop-filter: blur(2px);
}
.loot-skip {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #a99c88;
  font: 9px "DM Mono";
  cursor: pointer;
}
.loot-actions {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  animation-delay: 0.42s;
}
.loot-revealed *,
.loot-revealed {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Progression and forge feedback */
#phase5Feedback:empty {
  display: none;
}
.progression-celebration,
.forge-feedback {
  position: fixed;
  z-index: 190;
  inset: 76px 0 auto 250px;
  margin: auto;
  width: min(620px, calc(100vw - 280px));
  padding: 28px;
  text-align: center;
  color: #f2e3c5;
  border: 1px solid #ae7f40;
  background:
    radial-gradient(circle, rgba(109, 77, 34, 0.45), transparent 65%),
    rgba(7, 7, 9, 0.96);
  box-shadow: 0 20px 80px #000;
  animation:
    celebration-in 0.26s ease,
    celebration-out 0.3s 1.15s ease forwards;
  pointer-events: none;
}
.progression-celebration > span,
.forge-feedback > span {
  color: #e9ba61;
  font: 800 12px "DM Mono";
  letter-spacing: 0.3em;
}
.progression-celebration h2,
.forge-feedback h2 {
  margin: 7px 0;
  font: 700 clamp(36px, 6vw, 66px) "Playfair Display";
}
.progression-celebration h2 i {
  color: #9c8460;
  font-style: normal;
}
.region-celebration {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    linear-gradient(0deg, rgba(5, 5, 8, 0.91), rgba(5, 5, 8, 0.22)),
    var(--region-art) center / cover;
  animation: celebration-in 0.26s ease;
}
.region-celebration .button {
  margin-top: 12px;
  pointer-events: auto;
}
.forge-hammer {
  display: block;
  font-size: 58px;
  font-style: normal;
  transform-origin: 80% 80%;
  animation: hammer-strike 0.42s ease both;
}
.reroll-feedback > i {
  display: block;
  color: #a96dff;
  font-size: 52px;
  font-style: normal;
  animation: rune-spin 0.62s ease;
}
.reroll-feedback del {
  color: #9d817a;
}

/* Citadel world layers */
.citadel-scene {
  isolation: isolate;
}
.citadel-atmosphere i:first-child {
  animation: citadel-fog 24s linear infinite;
  opacity: 0.42;
}
.citadel-atmosphere i:nth-child(2) {
  animation: ember-drift 9s linear infinite;
}
.citadel-atmosphere i:nth-child(3) {
  animation: sky-breathe 6s ease-in-out infinite;
}
.citadel-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    104deg,
    transparent 0 18%,
    rgba(234, 164, 73, 0.05) 18.2% 18.5%,
    transparent 19% 36%
  );
  background-size: 130% 100%;
  animation: banner-shift 8s ease-in-out infinite;
  mix-blend-mode: screen;
}
body[data-citadel-ascensions]:not([data-citadel-ascensions="0"])
  .citadel-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 58% 34%,
      rgba(111, 56, 201, 0.26),
      transparent 15%
    ),
    repeating-radial-gradient(
      circle at 58% 34%,
      transparent 0 8%,
      rgba(146, 82, 255, 0.06) 8.2% 8.5%,
      transparent 9% 15%
    );
  animation: rift-pulse 5s ease-in-out infinite;
}
body[data-world-boss-active="true"] .citadel-location.worldboss {
  box-shadow:
    0 0 32px rgba(175, 66, 214, 0.4),
    inset 0 0 18px rgba(132, 48, 180, 0.25);
}
body[data-world-boss-active="true"] .citadel-scene {
  filter: saturate(1.07);
}

/* Unified feedback, tooltips and states */
.toast.error {
  border-color: #9c3e44;
  color: #ffd5d2;
  background: #211012;
}
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  color: #e5d8c3;
  border: 1px solid #554530;
  background: #0b0b0d;
  box-shadow: 0 8px 25px #000;
  font: 10px/1.45 Manrope;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: 0.15s ease;
}
[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}
.empty-state::before {
  content: "◇";
  display: block;
  margin-bottom: 8px;
  color: #856d49;
  font-size: 28px;
}

@keyframes rune-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hero-idle {
  0%,
  100% {
    transform: translateY(0) scale(1.01);
  }
  50% {
    transform: translateY(-5px) scale(1.015);
  }
}
@keyframes apex-item {
  50% {
    filter: brightness(1.22);
    box-shadow:
      0 0 30px #c375ff,
      inset 0 0 20px #fff3;
  }
}
@keyframes hit-flash {
  0%,
  100% {
    filter: none;
  }
  35% {
    filter: brightness(2.2) saturate(0.4);
    transform: translateX(3px);
  }
}
@keyframes critical-pulse {
  35% {
    filter: brightness(1.45) contrast(1.18);
  }
}
@keyframes critical-nudge {
  35% {
    transform: translateX(2px);
  }
  65% {
    transform: translateX(-2px);
  }
}
@keyframes damage-rise {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.82);
  }
  18% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translateY(-52px) scale(0.96);
  }
}
@keyframes rune-impact {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(20deg);
  }
  45% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}
@keyframes star-fall {
  from {
    opacity: 0;
    transform: translate(-20%, -60%);
  }
  45% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(18%, 35%);
  }
}
@keyframes void-shear {
  45% {
    transform: skewX(-3deg);
    filter: blur(1px) hue-rotate(20deg);
  }
}
@keyframes spirit-pulse {
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
  to {
    opacity: 0;
  }
}
@keyframes holy-ember {
  50% {
    filter: brightness(1.6);
  }
}
@keyframes lightning-arc {
  0%,
  100% {
    opacity: 0;
  }
  40%,
  55% {
    opacity: 1;
    transform: scaleX(1.05);
  }
}
@keyframes thread-bind {
  45% {
    opacity: 1;
    transform: scale(0.96);
  }
  to {
    opacity: 0;
    transform: scale(1.04);
  }
}
@keyframes boss-intro {
  0% {
    opacity: 0;
    filter: brightness(0.35);
  }
  18%,
  76% {
    opacity: 1;
    filter: brightness(1);
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes loot-item-in {
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1.08);
  }
}
@keyframes loot-copy-in {
  to {
    opacity: 1;
  }
}
@keyframes celebration-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
}
@keyframes celebration-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
  }
}
@keyframes hammer-strike {
  0% {
    transform: rotate(-42deg) translateY(-18px);
  }
  70% {
    transform: rotate(8deg);
  }
  80% {
    filter: brightness(2);
  }
}
@keyframes citadel-fog {
  from {
    transform: translateX(-5%);
  }
  to {
    transform: translateX(8%);
  }
}
@keyframes ember-drift {
  from {
    background-position: 0 20px;
  }
  to {
    background-position: 40px -80px;
  }
}
@keyframes sky-breathe {
  50% {
    opacity: 0.65;
    filter: brightness(1.16);
  }
}
@keyframes banner-shift {
  50% {
    background-position: -2% 0;
    opacity: 0.75;
  }
}
@keyframes rift-pulse {
  50% {
    opacity: 0.58;
    transform: scale(1.012);
  }
}

@media (max-width: 850px) {
  .progression-celebration,
  .forge-feedback {
    inset: 62px 10px auto;
    width: calc(100vw - 20px);
  }
  .class-portrait {
    min-height: 205px;
  }
  .loot-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
  .boss-intro {
    padding: 24px;
  }
}

@media (max-width: 440px) {
  .combat-stage {
    min-height: 430px;
  }
  .combatant-art {
    max-height: 240px;
  }
  .floating-damage {
    font-size: 24px;
  }
  .floating-damage.critical {
    font-size: 31px;
  }
  .loot-reveal .loot-icon {
    width: 98px;
    height: 98px;
  }
  .loot-actions {
    grid-template-columns: 1fr;
  }
  .audio-mixer {
    padding: 10px;
  }
  .hero-gear-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
  .hero-figure__art,
  .citadel-atmosphere i,
  .citadel-scene::before,
  .citadel-scene::after,
  .item-card.rank-20 .item-icon,
  .anvil-item.rank-20 > span:first-child {
    animation: none !important;
  }
  .critical-impact .combatants {
    animation: none !important;
  }
  .boss-intro {
    animation-duration: 0.08s !important;
  }
  .floating-damage {
    animation-duration: 0.25s !important;
    animation-delay: 0s !important;
  }
  .combat-hp span,
  .combat-hp i {
    transition-duration: 0.12s !important;
    transition-delay: 0s !important;
  }
}
.reduce-motion .hero-figure__art,
.reduce-motion .citadel-atmosphere i,
.reduce-motion .citadel-scene::before,
.reduce-motion .citadel-scene::after {
  animation: none !important;
}

body[data-view="combat"] #view.view-enter {
  animation-duration: 0.16s;
}
body[data-view="dungeons"] #view.view-enter {
  animation-name: phase5-dark-wipe;
}
body[data-view="ascension"] #view.view-enter {
  animation-name: phase5-magic-fade;
}
@keyframes phase5-dark-wipe {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
  }
}
@keyframes phase5-magic-fade {
  from {
    opacity: 0;
    filter: brightness(1.45) blur(2px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}

/* source: phase6.css */
:root {
  --objective-height: 74px;
}

.objective-bar {
  position: relative;
  z-index: 18;
  min-height: var(--objective-height);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 10px clamp(16px, 2vw, 30px);
  border-bottom: 1px solid rgba(202, 158, 82, 0.22);
  background:
    linear-gradient(90deg, rgba(16, 15, 17, 0.97), rgba(25, 20, 20, 0.94)),
    radial-gradient(circle at 18% 0, rgba(206, 142, 55, 0.15), transparent 42%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
}

.objective-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.objective-sigil {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #f0bd62;
  border: 1px solid rgba(220, 168, 82, 0.46);
  border-radius: 50%;
  background: rgba(3, 4, 7, 0.54);
  box-shadow: inset 0 0 18px rgba(218, 159, 66, 0.15);
}

.objective-copy small,
.objective-copy b,
.objective-copy span {
  display: block;
}
.objective-copy small {
  color: #c7964e;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}
.objective-copy b {
  overflow: hidden;
  color: #f4e9d4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.objective-copy span {
  overflow: hidden;
  color: #a99f90;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.objective-progress {
  width: min(340px, 100%);
  height: 3px;
  margin-top: 6px;
  background: #08090c;
}
.objective-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8b3d25, #e6aa4a);
  box-shadow: 0 0 10px #bf6e32;
}
.objective-bar .button {
  min-width: 150px;
  min-height: 44px;
}

.contextual-hint {
  max-width: 660px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid rgba(211, 162, 85, 0.32);
  background: linear-gradient(
    90deg,
    rgba(12, 13, 17, 0.96),
    rgba(27, 22, 20, 0.9)
  );
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}
.contextual-hint__rune {
  color: #e7ad52;
  font-size: 1.2rem;
}
.contextual-hint b {
  color: #ead9bc;
}
.contextual-hint p {
  margin: 2px 0 0;
  color: #b5aa98;
  font-size: 0.8rem;
}
.contextual-hint button {
  width: 40px;
  height: 40px;
  color: #c9bba5;
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.first-login-intro,
.returning-summary {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(48, 31, 27, 0.25),
    rgba(3, 4, 8, 0.78)
  );
  animation: phase6-intro 2.4s both;
}
.first-login-intro > div,
.returning-summary > div {
  max-width: 620px;
  padding: 30px 44px;
  text-align: center;
  border: 1px solid rgba(220, 168, 82, 0.35);
  background: rgba(7, 8, 12, 0.88);
  box-shadow: 0 30px 90px #000;
}
.first-login-intro h2,
.returning-summary h2 {
  margin: 5px 0;
  color: #f0e2c8;
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 5vw, 3.8rem);
}
.first-login-intro p,
.returning-summary p {
  margin: 0;
  color: #c2b49f;
}
@keyframes phase6-intro {
  0% {
    opacity: 0;
  }
  15%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

body.new-player .citadel-location.tavern,
body.new-player .citadel-location.dungeon,
body.new-player .citadel-location.keep {
  filter: saturate(1.14) brightness(1.08);
}
body.new-player .citadel-location.tavern {
  box-shadow:
    0 0 0 2px rgba(231, 171, 77, 0.62),
    0 0 34px rgba(221, 140, 47, 0.5);
}
body.new-player .citadel-location.arena,
body.new-player .citadel-location.guildhall,
body.new-player .citadel-location.worldboss,
body.new-player .citadel-location.ascension,
body.new-player .citadel-location.forge {
  opacity: 0.58;
  filter: saturate(0.54) brightness(0.72);
}
body.new-player .nav-item[data-view="arena"],
body.new-player .nav-item[data-view="community"] {
  opacity: 0.62;
}
.power-feedback h2 {
  color: #e9c173;
}
.power-feedback .power-gain {
  color: #7fdb9d;
  font-size: 1.25rem;
}
.first-loot-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.first-loot-compare span {
  min-width: 0;
  padding: 9px;
  background: rgba(2, 3, 6, 0.62);
}
.first-loot-compare small {
  display: block;
  color: #9b8e7c;
  font-size: 0.62rem;
}
.first-loot-compare b {
  display: block;
  overflow: hidden;
  color: #e1d5c1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.first-loot-compare strong {
  grid-column: 1 / -1;
  color: #7fdb9d;
}
.first-loot-compare strong.negative {
  color: #df7c72;
}
.combat-end-actions {
  position: relative;
  z-index: 6;
}

.alpha-feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 58px;
  z-index: 55;
  min-height: 44px;
  padding: 0 16px;
  color: #e6d6bd;
  border: 1px solid rgba(205, 160, 84, 0.42);
  background: linear-gradient(#2b241d, #151517);
  box-shadow: 0 10px 30px #0008;
  cursor: pointer;
}
.quick-alpha-feedback {
  position: fixed;
  right: 18px;
  bottom: 112px;
  z-index: 58;
  width: min(360px, calc(100vw - 24px));
  padding: 17px;
  border: 1px solid rgba(211, 161, 80, 0.45);
  background: rgba(10, 10, 14, 0.97);
  box-shadow: 0 18px 60px #000;
}
.quick-alpha-feedback > b {
  display: block;
  margin: 4px 28px 12px 0;
  color: #eadcc4;
}
.quick-alpha-feedback > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.quick-alpha-feedback > div button {
  min-height: 42px;
  color: #d8cab4;
  border: 1px solid #5e4931;
  background: #1d1917;
  cursor: pointer;
}
.quick-feedback-close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 40px;
  height: 40px;
  color: #bfb19e;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
}
.build-label {
  display: block;
  margin-top: 8px;
  color: #7f776c;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}
.whats-new-list {
  display: grid;
  gap: 14px;
}
.whats-new-list article {
  padding: 18px;
  border-left: 2px solid #a66935;
  background: rgba(8, 9, 13, 0.72);
}
.whats-new-list time {
  color: #b88b50;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}
.admin-alpha-overview {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 16px;
  margin: 16px 0;
}
.funnel-list {
  display: grid;
  gap: 8px;
}
.funnel-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 12px;
  padding: 9px 10px 12px;
  overflow: hidden;
  background: rgba(3, 4, 8, 0.48);
}
.funnel-row span {
  color: #d7cab6;
}
.funnel-row b {
  color: #edbd69;
}
.funnel-row small {
  grid-column: 1 / -1;
  color: #827a70;
}
.funnel-row i {
  position: absolute;
  inset: auto auto 0 0;
  height: 2px;
  background: #c17d3c;
}
.timing-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(196, 156, 92, 0.13);
}
.timing-row span {
  color: #aaa093;
}
.timing-row b {
  color: #ead7b7;
}
.admin-user-row > div small {
  display: block;
  margin-top: 3px;
}

@media (max-width: 720px) {
  :root {
    --objective-height: auto;
  }
  .objective-bar {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 8px 12px;
  }
  .objective-copy {
    gap: 9px;
  }
  .objective-sigil {
    width: 34px;
    height: 34px;
  }
  .objective-copy span {
    font-size: 0.7rem;
  }
  .objective-bar .button {
    min-width: 0;
    width: 100%;
    min-height: 42px;
  }
  .alpha-feedback-fab {
    right: 0;
    top: 48%;
    bottom: auto;
    min-height: 62px;
    padding: 5px 7px;
    font-size: 0.62rem;
    writing-mode: vertical-rl;
    opacity: 0.82;
  }
  .quick-alpha-feedback {
    right: 10px;
    bottom: 128px;
  }
  .contextual-hint {
    margin: 10px 0;
  }
  .first-login-intro > div,
  .returning-summary > div {
    padding: 24px 18px;
  }
  .admin-alpha-overview {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-login-intro,
  .returning-summary {
    animation-duration: 0.15s;
  }
  .objective-progress i {
    transition: none;
  }
}

/* source: mounts-companions.css */
/* Mounts & companions: readable utility without a second design system. */
.profile {
  margin-bottom: 7px;
}

.profile-power {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #a99a82;
  font: 600 7px "DM Mono";
  letter-spacing: 0.09em;
}

.profile-power b {
  color: #e6c477;
  font: 700 9px "DM Mono";
}

.profile-allies {
  margin: 0 1px 12px;
  padding: 7px;
  border: 1px solid #332c24;
  background: linear-gradient(
    145deg,
    rgba(25, 24, 27, 0.96),
    rgba(8, 9, 12, 0.96)
  );
  box-shadow: inset 0 0 18px #0008;
}

.profile-allies > div:first-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.profile-allies button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0 5px;
  min-width: 0;
  min-height: 42px;
  padding: 5px;
  color: #ddd2c0;
  text-align: left;
  border: 1px solid #41372b;
  background: linear-gradient(#17181d, #0e0f13);
  cursor: pointer;
}

.profile-allies button > span {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 19px;
  text-align: center;
}

.profile-allies button small {
  overflow: hidden;
  color: #807565;
  font: 600 6px "DM Mono";
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-allies button b {
  overflow: hidden;
  font: 600 8px Manrope;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-allies button:hover,
.profile-allies button:focus-visible {
  border-color: #8c744b;
  box-shadow: 0 0 13px rgba(194, 151, 78, 0.13);
}

.profile-active-bonuses {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}

.profile-active-bonuses span {
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  color: #aaa08f;
  font: 7px/1.25 "DM Mono";
}

.profile-active-bonuses i {
  flex: 0 0 14px;
  color: #d2af6a;
  font-style: normal;
  text-align: center;
}

.mission-time-breakdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}

.mission-time-breakdown span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid #393329;
  background: rgba(12, 13, 17, 0.82);
}

.mission-time-breakdown small {
  overflow: hidden;
  color: #918675;
  font: 600 6px "DM Mono";
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mission-time-breakdown b {
  color: #d9c9ae;
  font: 700 9px "DM Mono";
}

.mission-time-breakdown .mission-final-time {
  border-color: #9a7440;
  background: linear-gradient(
    145deg,
    rgba(91, 61, 28, 0.35),
    rgba(17, 15, 15, 0.94)
  );
}

.mission-time-breakdown .mission-final-time b {
  color: #f0cb76;
}

.quest-parchment .mission-time-breakdown.compact {
  grid-template-columns: 1fr 1fr;
  margin: 8px 0;
}

.quest-parchment .mission-time-breakdown span {
  border-color: rgba(76, 50, 26, 0.24);
  background: rgba(65, 45, 28, 0.08);
}

.quest-parchment .mission-time-breakdown small {
  color: #735337;
}

.quest-parchment .mission-time-breakdown b {
  color: #3d2d20;
}

.active-collection-showcase {
  position: relative;
  z-index: var(--layer-card);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-width: none;
  min-height: 82px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(134, 166, 211, 0.5);
  background:
    radial-gradient(
      circle at 12% 50%,
      rgba(109, 146, 220, 0.24),
      transparent 25%
    ),
    linear-gradient(145deg, rgba(19, 24, 34, 0.98), rgba(7, 9, 13, 0.98));
  box-shadow:
    0 18px 45px #000b,
    inset 0 0 38px rgba(89, 125, 198, 0.1);
}

.active-collection-portrait {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid #657a9c;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(112, 158, 224, 0.28), #0b0e15 68%);
  box-shadow:
    0 0 28px rgba(104, 153, 226, 0.22),
    inset 0 0 22px #000;
  font-size: 34px;
}

.active-collection-showcase h2 {
  margin: 2px 0;
  font: 700 clamp(20px, 2vw, 28px) "Playfair Display";
}

.active-collection-showcase p,
.location-section-heading p {
  color: #a9a092;
  font-size: 10px;
}

.active-collection-showcase > div:nth-child(2) {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  overflow: hidden;
}

.active-collection-showcase > div:nth-child(2) > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.active-collection-showcase > div:nth-child(2) > h2 {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-collection-showcase > div:nth-child(2) > p {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  white-space: nowrap;
}

.active-collection-showcase .collection-bonus-list {
  grid-column: 2;
  grid-row: 2;
  flex-wrap: nowrap;
  margin: 0;
  overflow: hidden;
}

.active-collection-showcase .collection-bonus-list span {
  overflow: hidden;
  padding: 3px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-bonus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.collection-bonus-list span {
  padding: 5px 7px;
  color: #c6d8f0;
  border: 1px solid rgba(109, 145, 197, 0.32);
  background: rgba(35, 52, 78, 0.37);
  font: 8px/1.35 "DM Mono";
}

.collection-bonus-list.prominent span {
  color: #f1d99b;
  border-color: #745d38;
  background: rgba(83, 61, 29, 0.3);
  font-size: 9px;
}

.collection-card-copy {
  min-width: 0;
}

.equipped-state,
.collection-card-status {
  color: #d9bd7d;
  font: 800 8px "DM Mono";
  letter-spacing: 0.12em;
}

.shared-collection-screen {
  min-height: 0;
  display: grid;
  grid-template-rows: 34px 40px minmax(132px, 1fr) 24px minmax(104px, 0.85fr);
  gap: 5px;
  overflow: hidden;
}

.shared-collection-screen > .location-section-heading {
  min-height: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.shared-collection-screen > .location-section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.collection-focus-grid,
.collection-card-grid {
  min-width: 0;
  min-height: 0;
}

.collection-focus-grid {
  overflow: hidden;
}

.collection-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  grid-auto-rows: 118px;
  align-content: start;
  gap: 6px;
  padding: 1px;
  overflow: auto;
}

.collection-entity-card {
  position: relative;
  z-index: var(--layer-card);
  min-width: 0;
  min-height: 0;
  display: grid;
  gap: 10px;
  overflow: hidden;
  border-color: rgba(109, 145, 197, 0.35);
  background: linear-gradient(
    145deg,
    rgba(19, 25, 35, 0.98),
    rgba(7, 9, 14, 0.98)
  );
}

.collection-focus-grid .collection-entity-card {
  width: 100%;
  height: 100%;
  grid-template-columns: minmax(150px, 26%) minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 10px;
}

.collection-grid-card {
  height: 118px;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 30px;
  padding: 6px;
}

.collection-entity-card.active-companion,
.collection-entity-card.active-mount {
  border-color: #8b72ae;
  box-shadow: inset 0 0 30px rgba(100, 145, 235, 0.15);
}

.companion-card.locked-companion,
.mount-card.locked-companion {
  opacity: 1;
  filter: saturate(0.55);
}

.companion-card.locked-companion .companion-icon,
.mount-card.locked-companion .mount-icon {
  opacity: 0.48;
  filter: grayscale(1);
}

.companion-card .companion-icon,
.mount-card .mount-icon {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  border: 1px solid rgba(119, 155, 209, 0.32);
  background: radial-gradient(circle, rgba(103, 144, 207, 0.2), #0a0d13 70%);
}

.collection-focus-grid .collection-art {
  grid-row: 1 / -1;
}

.collection-grid-card .collection-art {
  grid-row: 1;
}

.collection-card-copy {
  align-self: center;
  overflow: hidden;
}

.collection-card-copy h3 {
  overflow: hidden;
  margin: 4px 0 2px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card-copy > .tag {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card-copy p {
  overflow: hidden;
  margin: 0;
  color: #a9a092;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-grid-card .collection-card-details {
  display: none;
}

.collection-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid #312f31;
  background: #0a0b0f;
}

.collection-comparison > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.collection-comparison small {
  color: #81786c;
  font: 8px "DM Mono";
}

.collection-comparison b {
  overflow: hidden;
  color: #ddd2c0;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-comparison em {
  color: #9fb6d5;
  font: 8px/1.3 "DM Mono";
  font-style: normal;
}

.collection-comparison > i {
  color: #b99a60;
  font-style: normal;
}

.unlock-condition {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 7px;
  border: 1px solid #363137;
  background: #0b0c10;
}

.unlock-condition small {
  color: #aaa0ad;
  font: 6px "DM Mono";
}

.unlock-condition b {
  color: #d0c6b7;
  font-size: 8px;
}

.companion-actions,
.collection-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.collection-focus-grid .collection-card-footer {
  grid-column: 2 / -1;
}

.collection-grid-card .collection-card-footer {
  grid-column: 1 / -1;
}

.collection-card-footer .button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 8px;
}

.collection-grid-card .collection-card-status {
  position: absolute;
  z-index: 1;
  bottom: 7px;
  left: 7px;
  display: block;
  max-width: 48px;
  overflow: hidden;
  padding: 2px 3px;
  color: #e0c783;
  background: #090b0ee8;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-grid-card .companion-actions {
  width: calc(100% - 52px);
  margin-left: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.collection-grid-card .companion-actions .button {
  min-width: 0;
  padding-inline: 2px;
  overflow: hidden;
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-grid-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9b9184;
  font: 700 8px "DM Mono";
  letter-spacing: 0.08em;
}

.collection-reveal {
  position: fixed;
  z-index: var(--layer-modal);
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  color: #eee5d6;
  text-align: center;
  background:
    radial-gradient(circle, rgba(103, 137, 215, 0.28), transparent 26%),
    rgba(3, 4, 7, 0.94);
  animation: collection-reveal-in 360ms ease both;
}

.collection-reveal::before {
  content: "";
  position: absolute;
  width: min(70vw, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(142, 175, 230, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 90px rgba(92, 131, 216, 0.22),
    inset 0 0 70px rgba(124, 165, 234, 0.08);
  animation: collection-rune-pulse 2.4s ease-in-out infinite;
}

.collection-reveal > * {
  position: relative;
  z-index: 1;
}

.reveal-runes {
  color: #98b8ed;
  font-size: 35px;
  text-shadow: 0 0 30px currentColor;
}

.collection-reveal-icon {
  display: grid;
  width: 150px;
  height: 150px;
  margin: 14px;
  place-items: center;
  border: 1px solid #738bb5;
  border-radius: 50%;
  background: radial-gradient(circle, #283d66, #080b11 68%);
  box-shadow: 0 0 65px rgba(110, 153, 230, 0.35);
  font-size: 82px;
}

.collection-reveal > small {
  color: #af9a75;
  font: 700 9px "DM Mono";
  letter-spacing: 0.14em;
}

.collection-reveal h2 {
  margin: 8px 0;
  font: 700 clamp(34px, 7vw, 64px) "Playfair Display";
}

.collection-reveal > div:last-child {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

@keyframes collection-reveal-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes collection-rune-pulse {
  50% {
    opacity: 0.55;
    transform: scale(1.035);
  }
}

@media (max-width: 850px) {
  .active-collection-showcase {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    margin: 0;
    padding: 13px;
  }

  .active-collection-portrait {
    width: 68px;
    height: 68px;
    font-size: 36px;
  }

  .active-collection-showcase > .equipped-state {
    display: none;
  }

  .mission-time-breakdown {
    grid-template-columns: 1fr 1fr;
  }

  .collection-reveal {
    padding: 22px 14px 90px;
  }

  .collection-reveal-icon {
    width: 120px;
    height: 120px;
    font-size: 65px;
  }
}

@media (max-width: 430px) {
  .collection-comparison {
    grid-template-columns: 1fr;
  }

  .collection-comparison > i {
    transform: rotate(90deg);
    text-align: center;
  }

  .collection-reveal > div:last-child {
    display: grid;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-reveal,
  .collection-reveal::before {
    animation: none !important;
  }
}

/* source: phase66.css */
/* Phase 6.6 — complete content-art coverage and readable production crops. */
.resource-art,
.profile-asset-icon,
.collection-art,
.collection-reveal-art,
.achievement-art,
.forge-npc-art,
.recipe-icon {
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.resource-art {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(202, 164, 92, 0.28);
  clip-path: polygon(
    50% 0,
    90% 20%,
    100% 67%,
    72% 100%,
    28% 100%,
    0 67%,
    10% 20%
  );
  box-shadow: inset 0 0 8px #000;
}
.resource.gold .resource-art {
  background-image: url("./assets/resources/gold.webp");
}
.resource.gems .resource-art {
  background-image: url("./assets/resources/gems.webp");
}
.resource.energy .resource-art {
  background-image: url("./assets/resources/energy.webp");
}
.resource.essence .resource-art {
  background-image: url("./assets/resources/eternal-essence.webp");
}

.profile-asset-icon {
  width: 26px;
  height: 32px;
  border: 1px solid rgba(181, 156, 105, 0.28);
  background-position: 50% 22%;
  box-shadow: inset 0 -9px 10px #050508;
}
.profile-bonus-art {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(183, 151, 91, 0.25);
  background: var(--bonus-art) 50% 20% / cover no-repeat;
  box-shadow: inset 0 0 4px #000;
}

.quest-npc-focus {
  min-height: 205px;
  justify-content: end;
  background:
    linear-gradient(0deg, #09090d 0, transparent 44%),
    var(--npc-art) 50% 18% / cover no-repeat;
  filter: drop-shadow(0 8px 13px #000b);
  clip-path: polygon(8% 0, 92% 0, 100% 88%, 77% 100%, 23% 100%, 0 88%);
}
.quest-npc-focus small {
  width: 100%;
  margin: 0;
  padding: 10px;
  background: linear-gradient(0deg, #08090de8, transparent);
}

.skill-banner > [data-combat-skill-icon] {
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--hero-accent) 60%, #b89557);
  background-position: center;
  background-size: cover;
  box-shadow:
    inset 0 0 13px #000,
    0 0 14px color-mix(in srgb, var(--hero-accent) 35%, transparent);
  clip-path: polygon(
    50% 0,
    92% 20%,
    100% 68%,
    72% 100%,
    28% 100%,
    0 68%,
    8% 20%
  );
}
.combat-equipment-art {
  width: 25px;
  height: 25px;
  border: 1px solid rgba(195, 161, 94, 0.42);
  background: var(--combat-item-art) center / cover no-repeat;
  box-shadow: inset 0 0 6px #000;
  clip-path: polygon(
    50% 0,
    92% 20%,
    100% 68%,
    72% 100%,
    28% 100%,
    0 68%,
    8% 20%
  );
}

.collection-art {
  background-image:
    linear-gradient(0deg, rgba(5, 6, 9, 0.72), transparent 46%),
    var(--collection-art);
  background-position: 50% 18%;
}
.companion-card .companion-icon,
.mount-card .mount-icon {
  background-image:
    linear-gradient(0deg, rgba(5, 6, 9, 0.76), transparent 52%),
    var(--collection-art);
  background-position: 50% 20%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.93) contrast(1.04);
}
.companion-card.locked-companion .collection-art,
.mount-card.locked-companion .collection-art {
  opacity: 1;
  filter: grayscale(1) brightness(0.5) contrast(1.25);
}
.active-collection-portrait.collection-art {
  background-position: 50% 18%;
  border-radius: 2px;
}

.collection-reveal-art {
  width: min(280px, 66vw);
  height: min(350px, 48vh);
  margin: 10px 0;
  border: 1px solid #738bb5;
  background-image:
    linear-gradient(0deg, #080b11 0, transparent 48%), var(--collection-art);
  background-position: 50% 18%;
  box-shadow:
    0 0 65px rgba(110, 153, 230, 0.35),
    inset 0 -45px 45px #05070b;
  clip-path: polygon(
    8% 0,
    92% 0,
    100% 8%,
    100% 92%,
    92% 100%,
    8% 100%,
    0 92%,
    0 8%
  );
}

.forge-npc-art {
  width: 100%;
  min-height: 300px;
  margin: -24px -24px 15px;
  background-image:
    linear-gradient(0deg, #110b09 0, transparent 48%), var(--npc-art);
  background-position: 50% 16%;
}
.merchant-art {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
}
.material-counts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.material-counts i {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(180, 145, 83, 0.3);
  background: var(--material-art) center / cover no-repeat;
  clip-path: polygon(
    50% 0,
    90% 18%,
    100% 68%,
    72% 100%,
    28% 100%,
    0 68%,
    10% 18%
  );
}

.achievement-art {
  width: 64px;
  height: 64px;
  border: 1px solid #7f6838;
  background-image: var(--achievement-art);
  box-shadow:
    inset 0 0 13px #000,
    0 0 13px rgba(189, 148, 62, 0.18);
  clip-path: polygon(
    50% 0,
    90% 18%,
    100% 68%,
    72% 100%,
    28% 100%,
    0 68%,
    10% 18%
  );
}
.legend-plaque.locked .achievement-art {
  filter: grayscale(1) brightness(0.36);
}

.recipe-icon {
  width: 78px;
  height: 78px;
  border: 1px solid #705743;
  background-image: var(--item-art);
  box-shadow: inset 0 0 14px #000;
}
.raid-set-reveal .loot-icon {
  display: block;
  width: 126px;
  height: 126px;
  margin: 8px auto 15px;
  background-image: var(--item-art);
  background-position: center;
  background-size: cover;
  border: 1px solid #c69b5a;
  box-shadow:
    inset 0 0 18px #000,
    0 0 25px rgba(198, 155, 90, 0.22);
}

.world-boss-keyart {
  position: relative;
  z-index: 6;
  width: min(980px, calc(100% - 28px));
  min-height: clamp(300px, 47vw, 580px);
  margin: -78px auto 22px;
  border: 1px solid rgba(151, 84, 178, 0.43);
  background:
    linear-gradient(0deg, #090812 0, transparent 44%),
    radial-gradient(
      circle at 50% 25%,
      transparent 28%,
      rgba(4, 4, 8, 0.48) 100%
    ),
    var(--boss-keyart) 50% 22% / cover no-repeat;
  box-shadow:
    0 24px 65px #000c,
    inset 0 -40px 60px #07070d;
  clip-path: polygon(
    2% 0,
    98% 0,
    100% 4%,
    100% 96%,
    98% 100%,
    2% 100%,
    0 96%,
    0 4%
  );
}
.world-boss-location.wounded .world-boss-keyart {
  filter: saturate(1.12) contrast(1.05);
}
.world-boss-location.enraged .world-boss-keyart {
  filter: saturate(1.24) contrast(1.08);
  box-shadow:
    0 0 55px rgba(180, 42, 55, 0.24),
    inset 0 -40px 70px rgba(74, 7, 13, 0.78);
}

/* Seven real rarity ranks stay distinguishable without relying on hue alone. */
.item-card[class*="rarity-"] .item-icon::before,
.loot-reveal[class*="rarity-"] .loot-icon::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 2px;
  pointer-events: none;
  border: 1px solid currentColor;
  clip-path: polygon(
    0 0,
    35% 0,
    42% 4%,
    58% 4%,
    65% 0,
    100% 0,
    100% 100%,
    65% 100%,
    58% 96%,
    42% 96%,
    35% 100%,
    0 100%
  );
}
.rarity-ungewöhnlich .item-icon::before {
  border-style: double;
}
.rarity-magisch .item-icon::before {
  inset: 4px;
  transform: rotate(45deg) scale(0.75);
}
.rarity-selten .item-icon::before {
  border-width: 2px 1px;
}
.rarity-episch .item-icon::before {
  box-shadow: inset 0 0 11px currentColor;
}
.rarity-legendär .item-icon::before {
  border-width: 2px;
}
.rarity-mythisch .item-icon::before {
  border-width: 2px;
  box-shadow:
    inset 0 0 16px currentColor,
    0 0 11px currentColor;
}

@media (max-width: 720px) {
  .resource-art {
    width: 18px;
    height: 18px;
  }
  .quest-npc-focus {
    min-height: 72px;
    background-position: 50% 16%;
    background-size: cover;
  }
  .world-boss-keyart {
    min-height: 300px;
    margin-top: -42px;
  }
  .forge-npc-art {
    min-height: 220px;
  }
  .collection-reveal-art {
    height: min(300px, 42vh);
  }
  #closeAccount {
    position: relative;
    z-index: 2;
    min-height: 44px;
    padding: 10px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-boss-keyart,
  .collection-reveal-art,
  .collection-art {
    animation: none !important;
    transition: none !important;
  }
}

/* source: phase67.css */
/* Phase 6.7 — compact gameplay UI. Spectacle screens intentionally keep their scale. */
:root {
  --compact-gap: clamp(8px, 1vw, 13px);
  --slot-surface: rgba(10, 11, 15, 0.96);
  --slot-line: #51483b;
}

.content {
  padding: clamp(14px, 2.2vw, 30px);
}
.location-heading {
  margin-bottom: 14px;
  gap: 14px;
}
.location-heading h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  margin: 5px 0;
}
.location-heading p {
  max-width: 720px;
  line-height: 1.45;
}
.view-title {
  margin-bottom: 14px;
}
.view-title h1 {
  margin: 0 0 4px;
  font-size: clamp(28px, 3vw, 38px);
}
.section-head {
  margin: 18px 0 10px;
}
.card {
  padding: 13px;
}
.button {
  min-height: 34px;
  padding: 8px 12px;
}

/* One reusable keyboard-, pointer- and touch-friendly RPG item slot. */
.item-slot {
  --rarity-color: #8a8175;
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  padding: 3px;
  color: var(--rarity-color);
  border: 1px solid var(--rarity-color);
  border-radius: 3px;
  background:
    radial-gradient(
      circle at 50% 45%,
      color-mix(in srgb, var(--rarity-color) 17%, transparent),
      transparent 57%
    ),
    linear-gradient(145deg, #18191e, var(--slot-surface));
  box-shadow:
    inset 0 0 18px #000,
    0 2px 7px #0007;
  cursor: pointer;
  isolation: isolate;
}
.item-slot::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 3px;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--rarity-color) 64%, transparent);
  clip-path: polygon(
    0 0,
    34% 0,
    40% 5%,
    60% 5%,
    66% 0,
    100% 0,
    100% 100%,
    66% 100%,
    60% 95%,
    40% 95%,
    34% 100%,
    0 100%
  );
}
.item-slot::after {
  content: "·";
  position: absolute;
  z-index: 3;
  top: 1px;
  left: 5px;
  color: var(--rarity-color);
  font: 800 11px "DM Mono";
}
.item-slot img {
  width: 96%;
  height: 96%;
  object-fit: contain;
  filter: drop-shadow(0 5px 5px #000) saturate(1.05);
  transition:
    transform 140ms ease,
    filter 140ms ease;
}
.item-slot:hover img,
.item-slot:focus-visible img {
  transform: scale(1.055);
  filter: drop-shadow(0 5px 6px #000) brightness(1.12);
}
.item-slot:focus-visible {
  outline: 2px solid #f0ddaa;
  outline-offset: 3px;
  z-index: 8;
}
.item-slot.is-equipped {
  box-shadow:
    inset 0 0 0 2px #e9dfc1,
    inset 0 0 20px #000,
    0 0 14px color-mix(in srgb, var(--rarity-color) 45%, transparent);
}
.item-slot-empty {
  cursor: default;
  color: #514d47;
  font-size: 26px;
  border-style: dashed;
}
.item-slot-rank,
.item-slot-equipped,
.item-slot-marker {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #090a0ddd;
  box-shadow: 0 1px 5px #000;
}
.item-slot-rank {
  right: 4px;
  bottom: 4px;
  min-width: 25px;
  padding: 3px 4px;
  color: #f5e7ca;
  font: 800 9px "DM Mono";
}
.item-slot-equipped {
  left: 4px;
  bottom: 4px;
  width: 18px;
  height: 18px;
  color: #d8f8f3;
  border: 1px solid #86c5bb;
  font: 800 8px "DM Mono";
}
.item-slot-marker {
  top: 4px;
  width: 18px;
  height: 18px;
  font: 800 9px "DM Mono";
}
.item-slot-marker.lock {
  right: 4px;
  color: #ead38a;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.item-slot-marker.set {
  left: 4px;
  color: #d0a8ff;
  border: 1px solid #9d72d0;
}
.item-slot-marker.better {
  right: 4px;
  top: 26px;
  color: #74e39b;
  border: 1px solid #438a5d;
}
.item-slot-marker.new {
  left: 4px;
  top: 26px;
  width: auto;
  padding: 0 3px;
  color: #fff2b0;
  border: 1px solid #a47d37;
  font-size: 6px;
}
.item-slot-marker.perfect,
.item-slot-marker.high-roll {
  left: 4px;
  top: 48px;
  color: #7ff3e6;
  border: 1px solid #4aaea5;
  background: #071a1bdd;
}
.item-slot-marker.high-roll {
  width: auto;
  padding: 0 3px;
  color: #a9d8ff;
  border-color: #557ea0;
  font-size: 6px;
}

.item-slot.rarity-ungewöhnlich {
  --rarity-color: #72c98e;
}
.item-slot.rarity-magisch {
  --rarity-color: #70bfd9;
}
.item-slot.rarity-selten {
  --rarity-color: #e3bd5e;
}
.item-slot.rarity-episch {
  --rarity-color: #a77be1;
}
.item-slot.rarity-legendär {
  --rarity-color: #e68e42;
}
.item-slot.rarity-mythisch {
  --rarity-color: #e35e91;
}
.item-slot.rarity-ewig {
  --rarity-color: #d8f5f5;
}
.item-slot.rarity-ungewöhnlich::before {
  border-style: double;
  border-width: 3px;
}
.item-slot.rarity-magisch::before {
  inset: 7px;
  transform: rotate(45deg) scale(0.7);
}
.item-slot.rarity-selten::before {
  border-width: 2px 1px;
}
.item-slot.rarity-episch::before {
  box-shadow: inset 0 0 9px var(--rarity-color);
}
.item-slot.rarity-legendär::before {
  border-width: 2px;
  clip-path: polygon(
    0 0,
    28% 0,
    36% 8%,
    64% 8%,
    72% 0,
    100% 0,
    100% 100%,
    72% 100%,
    64% 92%,
    36% 92%,
    28% 100%,
    0 100%
  );
}
.item-slot.rarity-mythisch::before {
  border-width: 2px;
  box-shadow:
    inset 0 0 14px var(--rarity-color),
    0 0 7px var(--rarity-color);
}
.item-slot.rarity-ewig::before {
  border: 3px double var(--rarity-color);
  box-shadow:
    inset 0 0 17px #8fe8f2,
    0 0 10px #fff;
}
.item-slot.rarity-legendär::after {
  content: "✦";
}
.item-slot.rarity-mythisch::after {
  content: "✧";
}
.item-slot.rarity-ewig::after {
  content: "∞";
}

/* Unified tooltip and mobile detail sheet. */
.game-tooltip {
  position: fixed;
  z-index: var(--layer-tooltip);
  width: min(360px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  overflow: auto;
  color: #e8dfd0;
  border: 1px solid #786449;
  border-radius: 4px;
  background: linear-gradient(145deg, #19191e, #090a0d 72%);
  box-shadow:
    0 18px 48px #000e,
    inset 0 0 28px #0006;
  animation: compact-tooltip-in 110ms ease-out;
}
.game-tooltip.is-inspect-drawer {
  z-index: var(--layer-drawer);
  width: min(390px, calc(100vw - 20px));
  max-height: min(72vh, 680px);
}
.game-tooltip:not(.is-pinned):not(.is-bottom-sheet) {
  pointer-events: none;
}
.game-tooltip-close {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 5px;
  width: 27px;
  height: 27px;
  color: #b9ad9a;
  border: 0;
  background: #090a0dbb;
  cursor: pointer;
}
.game-tooltip-item {
  padding: 13px;
}
.game-tooltip-item header {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  align-items: center;
  padding-right: 22px;
}
.game-tooltip-item header img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 5px 6px #000);
}
.game-tooltip h2 {
  margin: 2px 0;
  font: 700 21px/1.08 "Playfair Display";
}
.game-tooltip small {
  color: #a79780;
  font: 700 8px "DM Mono";
  letter-spacing: 0.08em;
}
.game-tooltip-item header span {
  color: #d4bd8b;
  font: 9px "DM Mono";
}
.tooltip-power {
  display: flex;
  gap: 8px;
  margin: 11px 0 8px;
}
.tooltip-power > span {
  flex: 1;
  padding: 7px 9px;
  border: 1px solid #3f382f;
  background: #111216;
}
.tooltip-power small,
.tooltip-power b {
  display: block;
}
.tooltip-power b {
  margin-top: 2px;
  font: 800 19px "DM Mono";
}
.tooltip-delta.better b {
  color: #76e09b;
}
.tooltip-delta.worse b {
  color: #ed7a7a;
}
.tooltip-delta.neutral b {
  color: #aaa49b;
}
.tooltip-modifiers {
  display: grid;
  gap: 3px;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.tooltip-modifiers li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 7px;
  color: #bcb2a3;
  border-left: 2px solid #6b5940;
  background: #121318;
  font-size: 11px;
}
.tooltip-modifiers b {
  color: #eadab7;
  text-align: right;
}
.game-tooltip-set {
  display: grid;
  gap: 4px;
  margin: 9px 0;
  padding: 8px;
  border: 1px solid #57406c;
  background: #17121e;
}
.game-tooltip-set span {
  color: #756d7c;
  font-size: 9px;
}
.game-tooltip-set span.active {
  color: #d4b2fb;
}
.game-tooltip-item footer {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  color: #8f8679;
  font: 8px "DM Mono";
}
.game-tooltip-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.game-tooltip-actions .button {
  min-width: 0;
  padding: 7px 4px;
  font-size: 9px;
}
.advanced-item-inspect {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 8px;
  border: 1px solid #315d61;
  background: linear-gradient(145deg, #0b1719, #0b0e12);
}
.advanced-item-inspect > header,
.advanced-current > header {
  display: flex;
  grid-template-columns: none;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  color: #8ddbd4;
  font: 800 8px "DM Mono";
  letter-spacing: 0.1em;
}
.advanced-item-inspect ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.advanced-roll {
  padding: 6px;
  border-left: 2px solid #43666a;
  background: #101419;
}
.advanced-roll > div:first-child,
.roll-range {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
}
.advanced-roll > div:first-child span {
  display: grid;
}
.advanced-roll > div:first-child b,
.advanced-roll > div:first-child strong {
  color: #e9dec8;
  font: 800 9px "DM Mono";
}
.advanced-roll > em {
  color: #8b8275;
  font: 700 7px "DM Mono";
}
.roll-range {
  margin-top: 4px;
  color: #9b9181;
  font: 7px "DM Mono";
}
.roll-range b {
  color: #8ddbd4;
}
.roll-range mark {
  color: #8ff7e9;
  background: transparent;
  font: 800 7px "DM Mono";
}
.roll-quality-bar {
  display: block;
  height: 3px;
  margin: 4px 0 3px;
  overflow: hidden;
  background: #253035;
}
.roll-quality-bar u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3a7376, #82e8dc);
}
.advanced-roll.perfect {
  border-left-color: #8ff7e9;
  box-shadow: inset 0 0 12px #4ee9d515;
}
.advanced-roll.high-roll {
  border-left-color: #7eb7e5;
}
.advanced-current {
  display: grid;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid #294144;
}
.advanced-current > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}
.advanced-current span {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 3px;
  background: #11161a;
}
.roll-formula {
  margin: 0;
  color: #817a70;
  font: 7px/1.45 "DM Mono";
}
.mobile-advanced-toggle {
  display: none;
  width: 100%;
  margin-top: 8px;
}
.monster-role,
.elite-tag {
  padding: 4px 7px;
  color: #a8d9d3;
  border: 1px solid #426c68;
  background: #0c1b1bcc;
  font: 800 8px "DM Mono";
  letter-spacing: 0.08em;
}
.region-hunt-divider {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 3px 3px;
  color: #b2a27f;
  border-top: 1px solid #443c30;
  font: 800 8px "DM Mono";
  letter-spacing: 0.1em;
}
.region-hunt-divider small {
  color: #756e64;
}
.regional-hunt {
  border-color: #3c443f;
  background: linear-gradient(90deg, #0b1110cc, #090b10aa);
}
.elite-combat .enemy-combatant .combatant-aura {
  opacity: 0.92;
  filter: hue-rotate(126deg) saturate(1.45);
}
.elite-combat .enemy-combatant {
  filter: drop-shadow(0 0 18px #62e2d34d);
}
.elite-tag {
  color: #8ff7e9;
  border-color: #63bcb2;
}
.loot-roll-badge {
  display: inline-block;
  margin: 5px auto;
  padding: 4px 7px;
  color: #8ff7e9;
  border: 1px solid #5ab7ae;
  background: #0b2221;
  font: 800 8px "DM Mono";
  letter-spacing: 0.08em;
}
.reroll-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.reroll-values::before {
  content: "→";
  grid-column: 2;
  grid-row: 1;
  color: #d7bb7a;
}
.reroll-values p:first-child {
  grid-column: 1;
}
.reroll-values p:last-child {
  grid-column: 3;
}
.reroll-values small {
  display: block;
  color: #a39582;
  font: 7px "DM Mono";
}
.game-tooltip-generic,
.game-tooltip-collection {
  padding: 16px;
}
.game-tooltip-generic p {
  margin: 7px 0 0;
  color: #b8ad9e;
  font-size: 10px;
  line-height: 1.5;
}
.game-tooltip-collection img {
  float: left;
  width: 58px;
  height: 58px;
  margin: 0 10px 6px 0;
  object-fit: cover;
  border: 1px solid #5a4b39;
}
.game-tooltip-collection ul {
  clear: both;
  display: grid;
  gap: 3px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: #c3b7a6;
  font-size: 9px;
}
@keyframes compact-tooltip-in {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

/* Inventory + forge: ten scannable columns, compact controls, no card prose. */
body[data-view="inventory"] .view-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 9px;
  align-items: start;
}
.inventory-grid > .item-slot {
  min-height: 0;
}
.inventory-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  margin: 9px 0;
  padding: 8px 10px;
  gap: 8px;
  background: rgba(10, 12, 16, 0.96);
  backdrop-filter: blur(10px);
}
.inventory-toolbar label {
  gap: 5px;
}
.inventory-toolbar select {
  padding: 5px 7px;
}
.inventory-tabs {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.capacity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid #40382e;
  background: linear-gradient(135deg, #111319, #18150f);
}
.capacity-head h2 {
  margin: 2px 0 0;
  font: 800 22px "DM Mono";
}
.capacity-head > strong {
  color: #bfa56d;
  font: 800 9px "DM Mono";
  letter-spacing: 0.12em;
}
.capacity-head.almost-full {
  border-color: #986f39;
}
.capacity-head.almost-full small {
  color: #e3af61;
}
.capacity-slot-locked {
  display: grid;
  place-items: center;
  border-style: dashed;
  border-color: #3b3834;
  background: repeating-linear-gradient(
    135deg,
    #101115,
    #101115 7px,
    #15161a 7px,
    #15161a 14px
  );
  color: #5f5b55;
}
.capacity-slot-locked b {
  font: 700 7px "DM Mono";
  letter-spacing: 0.1em;
}
.capacity-grid-expand {
  width: 100%;
  margin: 8px 0;
  padding: 9px;
  border: 1px dashed #68593f;
  color: #cfb77d;
  background: #121318;
  font: 800 9px "DM Mono";
  letter-spacing: 0.08em;
  cursor: pointer;
}
.capacity-dialog-layer {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3, 4, 7, 0.84);
  backdrop-filter: blur(8px);
}
.capacity-dialog {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid #8b713f;
  background: linear-gradient(150deg, #1b1b20, #0d0f13);
  box-shadow: 0 24px 70px #000;
}
.capacity-dialog h2 {
  margin: 7px 0 0;
  font: 800 30px "DM Mono";
}
.capacity-dialog h2 i {
  color: #c6a45e;
  font-style: normal;
}
.capacity-dialog dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 16px 0;
}
.capacity-dialog dl div {
  padding: 9px;
  border: 1px solid #38342e;
  background: #111216;
}
.capacity-dialog dt,
.capacity-dialog > small {
  color: #918a7f;
  font: 7px "DM Mono";
}
.capacity-dialog dd {
  margin: 4px 0 0;
  color: #ead7ad;
  font: 800 14px "DM Mono";
}
.capacity-dialog > div {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.capacity-dialog > div .button {
  flex: 1;
}
.capacity-dialog .link {
  margin-top: 8px;
}
.unclaimed-loot {
  margin: 12px 0;
  border-color: #825945;
}
.unclaimed-loot p {
  margin: 2px 0 10px;
  color: #b8aa98;
}
.unclaimed-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}
.crystal-vault {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  border-color: #5e4774;
  background: linear-gradient(135deg, #15111c, #111319);
}
.crystal-vault h2 {
  margin: 3px 0;
}
.vault-expansions,
.closed-alpha-purchases {
  display: grid;
  gap: 7px;
}
.vault-expansions span,
.closed-alpha-purchases {
  padding: 9px;
  border: 1px solid #41374c;
  background: #121118;
}
.vault-expansions b,
.vault-expansions small,
.closed-alpha-purchases > * {
  display: block;
}
.vault-expansions b,
.closed-alpha-purchases b {
  color: #d2b8ef;
  font: 800 9px "DM Mono";
}
.vault-expansions small,
.closed-alpha-purchases span,
.closed-alpha-purchases small {
  margin-top: 3px;
  color: #aaa0b2;
  font-size: 8px;
}
.equipped-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.equipped-panel .section-head {
  display: block;
  margin: 0;
}
.equipment-summary {
  display: grid;
  grid-template-columns: repeat(10, minmax(48px, 58px));
  gap: 5px;
  justify-content: end;
}
.equipment-slot {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
}
.equipment-slot small {
  margin: 0;
  text-align: center;
}
.loadout-panel,
.crafting-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}
.loadout-panel h2,
.crafting-panel h2 {
  margin: 2px 0;
  font-size: 15px;
}
.loadout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.loadout-card {
  min-height: 0;
  padding: 7px;
  gap: 6px;
}
.loadout-card span {
  display: none;
}
.loadout-card .button {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 8px;
}
.crafting-panel p {
  display: none;
}
.material-counts {
  justify-self: end;
}
.material-counts span {
  padding: 4px 7px;
  font-size: 9px;
}
.material-counts i {
  width: 23px;
  height: 23px;
  flex-basis: 23px;
}
.compact-forge.forge-workbench {
  min-height: 265px;
  grid-template-columns: minmax(210px, 0.55fr) minmax(430px, 1fr);
  align-items: center;
  margin-bottom: 9px;
  padding: 16px 20px;
}
.compact-forge .forge-master h1 {
  margin: 3px 0;
  font-size: 30px;
}
.compact-forge .forge-master p {
  margin: 4px 0 9px;
  font-size: 10px;
}
.compact-forge .forge-anvil {
  padding: 11px;
  text-align: left;
}
.forge-item-focus {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 11px;
  align-items: center;
}
.forge-item-focus h2 {
  margin: 2px 0;
  font-size: 22px;
}
.compact-forge .anvil-rank {
  margin: 2px 0;
  font-size: 20px;
}
.compact-forge .anvil-comparison {
  justify-content: flex-start;
  margin: 6px 0;
}
.compact-forge .hammer-upgrade {
  margin: 5px 0;
}
.forge-secondary-actions {
  display: flex;
  gap: 5px;
}
.forge-secondary-actions .button {
  flex: 1;
  font-size: 8px;
}
.forge-affixes {
  margin-top: 6px;
}
.forge-affixes .affixes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.forge-affixes .affixes li {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid #3c322a;
  font-size: 10px;
}

/* One-second mission scan: target, time, cost, rewards, drop, start. */
.tavern-screen .location-heading {
  margin-bottom: 8px;
}
.tavern-heading h1 {
  font-size: clamp(29px, 3vw, 40px);
}
body:not(.new-player) .tavern-screen > .contextual-hint {
  display: none;
}
.quest-givers {
  display: flex;
  min-height: 0;
  padding-top: 76px;
  gap: 12px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x proximity;
}
.quest-giver {
  flex: 0 0 min(310px, 82vw);
  scroll-snap-align: start;
}
.quest-giver:hover {
  transform: translateY(-2px);
}
.quest-npc-focus {
  min-height: 92px;
  bottom: calc(100% - 12px);
  background-position: 50% 18%;
}
.quest-npc-focus small {
  padding: 5px;
  font-size: 7px;
}
.quest-parchment {
  min-height: 205px;
  display: flex;
  flex-direction: column;
  padding: 10px 11px 8px;
}
.quest-parchment h2 {
  margin: 2px 0;
  min-height: 25px;
  font-size: 16px;
}
.quest-parchment > p {
  min-height: 17px;
  margin: 1px 0 4px;
  font-size: 7px;
  line-height: 1.25;
}
.quest-fast-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.quest-fast-facts > span {
  display: grid;
  grid-template-columns: 21px 1fr;
  grid-template-rows: auto auto;
  gap: 0 5px;
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(68, 45, 26, 0.2);
  background: rgba(76, 47, 23, 0.08);
}
.quest-fast-facts i,
.quest-rewards.compact i {
  grid-row: 1/3;
  display: block;
  width: 21px;
  height: 21px;
  align-self: center;
  background: var(--fact-art) center / cover no-repeat;
  font-style: normal;
  font-size: 15px;
}
.quest-fast-facts small,
.quest-rewards.compact small {
  color: #76573d;
  font: 700 6px "DM Mono";
}
.quest-fast-facts b {
  overflow: hidden;
  font: 800 8px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quest-rewards.compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 55px;
  gap: 4px;
  margin-top: 3px;
  padding: 3px 0;
}
.quest-rewards.compact > span {
  display: grid;
  grid-template-columns: 21px 1fr;
  grid-template-rows: auto auto;
  gap: 0 5px;
  align-items: center;
}
.quest-rewards.compact > span b {
  font: 800 10px "DM Mono";
}
.mission-drops {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.random-drop-preview {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}
.random-drop-preview b,
.random-drop-preview small {
  white-space: nowrap;
}
.mission-drop-slot {
  width: 38px;
}
.mission-drop-slot .item-slot-rank {
  display: none;
}
.quest-parchment .button {
  margin-top: auto;
  min-height: 28px;
  padding: 5px 7px;
  font-size: 8px;
}
.active-expedition {
  max-width: none;
  grid-template-columns: 72px 1fr;
  margin-bottom: 10px;
  padding: 9px;
}
.active-expedition__art {
  min-height: 72px;
  font-size: 32px;
}
.active-expedition__copy h2 {
  font-size: 19px;
}
.active-expedition .mission-time-breakdown {
  grid-template-columns: repeat(4, 1fr);
  margin: 5px 0;
}
.compact-active-expedition {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 68px;
}
.compact-active-expedition .active-expedition__art {
  min-height: 54px;
  font-size: 27px;
}
.compact-active-expedition .active-expedition__copy h2 {
  display: inline;
  margin-right: 8px;
}
.active-mission-action {
  min-width: 150px;
  text-align: right;
}

/* Character: artwork remains dominant, equipment becomes true square slots. */
.character-sanctum {
  grid-template-columns: 92px minmax(330px, 1fr) 92px;
  gap: 15px;
  min-height: 490px;
  padding: 8px clamp(10px, 2vw, 24px);
}
.hero-figure {
  min-height: 470px;
}
.hero-gear-column {
  gap: 44px;
}
.hero-gear-slot-wrap {
  display: grid;
  gap: 5px;
  text-align: center;
}
.hero-gear-slot-wrap > small {
  color: #8f806d;
  font: 7px "DM Mono";
}
.hero-gear-slot-wrap .item-slot {
  width: 82px;
  margin: auto;
}
.hero-progression {
  margin-top: 8px;
}
.hero-attributes {
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-top: 8px;
}
.hero-attribute {
  min-height: 60px;
  padding: 8px;
}
.character-actions {
  margin-top: 9px;
}

/* Supporting collections and commerce. */
.bestiary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.beast-page {
  grid-template-columns: 72px 1fr;
  min-height: 78px;
  padding: 0;
  color: inherit;
  text-align: left;
  border: 1px solid rgba(57, 35, 21, 0.28);
  background: rgba(255, 244, 211, 0.07);
  cursor: pointer;
}
.bestiary-art {
  min-height: 76px;
}
.bestiary-copy {
  display: grid;
  align-content: center;
  padding: 8px;
}
.bestiary-copy h3 {
  margin: 0;
  font-size: 14px;
}
.bestiary-copy span {
  color: #897d6f;
  font-size: 8px;
}
.beast-page.bestiary-boss {
  grid-column: span 2;
  grid-template-columns: 112px 1fr;
}
.beast-page.bestiary-boss .bestiary-art {
  min-height: 88px;
}
.archive-book {
  padding: 18px;
}
.forge-stock {
  grid-template-columns: 190px 1fr;
  gap: 10px;
}
.forge-npc {
  padding: 14px;
}
.forge-npc-art {
  min-height: 210px;
  margin: -14px -14px 10px;
}
.merchant-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.merchant-card {
  grid-template-columns: 66px 1fr;
  gap: 7px;
  padding: 8px;
}
.merchant-art {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}
.merchant-card h3 {
  margin: 0;
  font-size: 13px;
}
.merchant-buy {
  grid-column: 1/-1;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-items: start;
  gap: 5px;
}
.merchant-buy .button {
  min-height: 29px;
}
.recipe-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.compact-recipe {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 7px;
  padding: 8px;
}
.compact-recipe .item-slot {
  width: 58px;
}
.compact-recipe h3 {
  margin: 2px 0;
  font-size: 13px;
}
.compact-recipe p {
  margin: 2px 0;
  font-size: 9px;
}
.compact-recipe > .button {
  grid-column: 1/-1;
}

/* Compact permanent status and resource controls. */
.profile-active-bonuses {
  display: flex;
  gap: 4px;
}
.profile-active-bonuses button {
  display: grid;
  grid-template-columns: 1fr;
  width: 27px;
  min-height: 27px;
  place-items: center;
  padding: 2px;
}
.profile-active-bonuses button i {
  width: 19px;
  height: 19px;
}
.resource {
  min-height: 34px;
  padding: 5px 8px;
}
.resources {
  gap: 6px;
}
.profile-meter,
.progress,
.ornate-progress,
.combat-hp {
  border-radius: 1px;
}
.combat-skill-slot {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid var(--hero-accent);
  background: var(--skill-icon) center / cover no-repeat;
  box-shadow:
    inset 0 0 10px #000,
    0 0 10px color-mix(in srgb, var(--hero-accent) 35%, transparent);
  cursor: pointer;
  clip-path: polygon(
    50% 0,
    92% 20%,
    100% 68%,
    72% 100%,
    28% 100%,
    0 68%,
    8% 20%
  );
}
.combat-skill-slot:focus-visible {
  outline: 2px solid #fff1c7;
  outline-offset: 3px;
}

@media (max-width: 1450px) {
  .inventory-grid {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
  .content {
    padding: 14px 18px 22px;
  }
  .quest-givers {
    padding-top: 70px;
  }
  .quest-npc-focus {
    min-height: 86px;
  }
  .quest-parchment {
    min-height: 205px;
  }
}

@media (max-width: 1100px) {
  .inventory-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .compact-forge.forge-workbench {
    grid-template-columns: 180px 1fr;
  }
  .bestiary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .merchant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .content {
    padding: 12px 10px 82px;
  }
  .game-tooltip.is-bottom-sheet {
    inset: auto 8px var(--tooltip-visual-bottom, 8px) !important;
    width: calc(100vw - 16px);
    max-height: min(72vh, 560px);
    border-radius: 8px 8px 3px 3px;
    animation: bottom-sheet-in 150ms ease-out;
  }
  .game-tooltip-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  @keyframes bottom-sheet-in {
    from {
      opacity: 0;
      transform: scale(0.985);
      transform-origin: bottom center;
    }
  }
  .inventory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .unclaimed-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .crystal-vault {
    grid-template-columns: 1fr;
  }
  .inventory-toolbar {
    top: 61px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .inventory-toolbar > b {
    grid-column: 1/-1;
  }
  .inventory-toolbar label {
    display: grid;
  }
  .inventory-toolbar .button {
    min-width: 0;
  }
  .equipped-panel {
    grid-template-columns: 1fr;
  }
  .equipment-summary {
    justify-content: start;
    grid-template-columns: repeat(5, minmax(50px, 64px));
  }
  .crafting-panel {
    grid-template-columns: 1fr;
  }
  .material-counts {
    justify-self: start;
  }
  .compact-forge.forge-workbench {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 11px;
  }
  .compact-forge .forge-master {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
  }
  .compact-forge .forge-master p,
  .compact-forge .forge-master .eyebrow {
    display: none;
  }
  .quest-givers {
    grid-template-columns: 1fr;
    padding-top: 0;
    gap: 8px;
  }
  .quest-giver {
    display: grid;
    grid-template-columns: 94px 1fr;
  }
  .quest-npc-focus {
    position: relative;
    bottom: auto;
    min-height: 100%;
    clip-path: none;
  }
  .quest-parchment {
    min-height: 250px;
  }
  .character-sanctum {
    grid-template-columns: 62px minmax(170px, 1fr) 62px;
    min-height: 410px;
    gap: 5px;
  }
  .hero-figure {
    min-height: 400px;
  }
  .hero-gear-slot-wrap .item-slot {
    width: 58px;
  }
  .hero-gear-column {
    gap: 76px;
  }
  .hero-attributes {
    grid-template-columns: repeat(3, 1fr);
  }
  .bestiary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .merchant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .recipe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-advanced-toggle {
    display: block;
  }
  .advanced-item-inspect {
    max-height: 38vh;
    overflow: auto;
  }
  .region-hunt-divider {
    display: grid;
  }
}

@media (max-width: 520px) {
  .view-title p,
  .location-heading p {
    display: none;
  }
  .inventory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .capacity-dialog dl {
    grid-template-columns: 1fr;
  }
  .quest-giver {
    grid-template-columns: 74px 1fr;
  }
  .quest-parchment {
    min-height: 245px;
    padding: 11px;
  }
  .quest-fast-facts {
    grid-template-columns: repeat(3, 1fr);
  }
  .quest-fast-facts i {
    display: none;
  }
  .quest-fast-facts > span {
    grid-template-columns: 1fr;
  }
  .merchant-grid {
    grid-template-columns: 1fr 1fr;
  }
  .merchant-card {
    grid-template-columns: 54px 1fr;
  }
  .merchant-art {
    width: 52px;
    height: 52px;
  }
  .forge-stock {
    grid-template-columns: 1fr;
  }
  .forge-npc {
    display: none;
  }
}

/* Phase 7 · professional character profile and authoritative equipment paper doll. */
.phase7-character {
  min-height: 100%;
  padding: 10px;
  background:
    radial-gradient(
      circle at 47% 28%,
      color-mix(in srgb, var(--hero-accent) 15%, transparent),
      transparent 27%
    ),
    linear-gradient(135deg, rgba(7, 8, 12, 0.95), rgba(13, 12, 18, 0.88)),
    url("./assets/world/citadel.webp") center / cover fixed;
}
.character-profile-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(180px, 0.65fr);
  align-items: center;
  min-height: 74px;
  padding: 8px 14px 12px;
  border: 1px solid #4c402f;
  background: linear-gradient(
    90deg,
    rgba(8, 9, 13, 0.98),
    rgba(24, 20, 22, 0.92),
    rgba(8, 9, 13, 0.98)
  );
  box-shadow:
    inset 0 0 38px #0009,
    0 8px 25px #0008;
}
.character-profile-name h1 {
  margin: 1px 0;
  font-size: clamp(22px, 2.4vw, 34px);
}
.character-profile-name p,
.character-profile-power span,
.character-profile-meta span {
  color: #a99b86;
  font: 8px "DM Mono";
  letter-spacing: 0.14em;
}
.character-profile-power {
  display: grid;
  justify-items: center;
  padding: 0 24px;
  border-inline: 1px solid #4c402f;
}
.character-profile-power small {
  color: #b7a273;
  font: 8px "DM Mono";
  letter-spacing: 0.3em;
}
.character-profile-power b {
  color: #f1d98f;
  font: 700 clamp(24px, 2.6vw, 36px) "Playfair Display";
  text-shadow: 0 0 18px #b88a3c55;
}
.character-profile-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 9px;
}
.profile-xp {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: #08090d;
}
.profile-xp span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hero-accent), #e6d9aa);
  box-shadow: 0 0 12px var(--hero-accent);
}
.character-core {
  display: grid;
  grid-template-columns: minmax(550px, 1fr) minmax(220px, 270px);
  gap: 9px;
  margin-top: 9px;
}
.character-paperdoll {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(300px, 1fr) 76px;
  gap: 7px;
  min-height: 430px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid #443829;
  background:
    radial-gradient(
      ellipse at 50% 72%,
      color-mix(in srgb, var(--hero-accent) 19%, transparent),
      transparent 34%
    ),
    linear-gradient(90deg, #06070bee, #111116aa 50%, #06070bee);
  box-shadow: inset 0 0 70px #000;
}
.phase7-character .hero-gear-column {
  z-index: 3;
  display: grid;
  align-content: space-around;
  gap: 2px;
}
.phase7-character .hero-gear-slot-wrap {
  position: relative;
  gap: 2px;
}
.phase7-character .hero-gear-slot-wrap > small {
  color: #a79578;
  font-size: 7px;
  letter-spacing: 0.08em;
}
.phase7-character .hero-gear-slot-wrap .item-slot {
  width: 62px;
  height: 62px;
}
.phase7-character .hero-gear-slot-wrap.drop-ready .item-slot {
  border-color: #79e7bd;
  box-shadow:
    0 0 20px #46d7a966,
    inset 0 0 18px #46d7a933;
  transform: scale(1.04);
}
.phase7-character .hero-figure {
  min-height: 412px;
  overflow: hidden;
}
.phase7-character .hero-figure__art {
  inset: -6px -8% 41px;
  background-size: contain;
  background-position: 50% 14%;
}
.class-atmosphere {
  position: absolute;
  inset: 8% 2% 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--hero-accent) 16%, transparent),
    transparent 63%
  );
  filter: blur(3px);
  animation: character-aura 5s ease-in-out infinite;
}
.phase7-character[data-class="starcaller"] .class-atmosphere,
.phase7-character[data-class="chronomancer"] .class-atmosphere {
  background-image:
    radial-gradient(circle at 25% 30%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 45%, #fff 0 1px, transparent 2px),
    radial-gradient(
      circle,
      color-mix(in srgb, var(--hero-accent) 18%, transparent),
      transparent 63%
    );
  background-size:
    80px 95px,
    110px 75px,
    auto;
}
.phase7-character[data-class="shadowblade"] .class-atmosphere,
.phase7-character[data-class="veilweaver"] .class-atmosphere {
  filter: blur(9px);
  opacity: 0.8;
}
@keyframes character-aura {
  50% {
    opacity: 0.72;
    transform: scale(1.025);
  }
}
.phase7-character .hero-identity {
  bottom: 4px;
}
.phase7-character .hero-identity h2 {
  margin: 1px 0;
  font-size: 21px;
}
.phase7-character .hero-identity p {
  margin: 0;
  color: #a99a84;
  font-size: 10px;
}
.character-stat-panel {
  min-height: 430px;
  padding: 10px;
  border: 1px solid #443829;
  background: linear-gradient(180deg, #121217f2, #08090df2);
  box-shadow: inset 0 0 35px #000a;
}
.phase7-character .hero-attributes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 0;
}
.phase7-character .hero-attribute {
  min-height: 57px;
  padding: 7px;
}
.phase7-character .hero-attribute:first-child {
  grid-column: 1 / -1;
}
.equipment-power {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 7px 0;
}
.equipment-power span {
  display: grid;
  padding: 6px;
  border: 1px solid #363028;
  background: #0b0c10;
}
.equipment-power small,
.advanced-stats small {
  color: #9a8f7d;
  font: 9px "DM Mono";
}
.equipment-power b {
  color: #dec783;
  font: 700 18px "DM Mono";
}
.stat-details-toggle {
  width: 100%;
}
.advanced-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 6px;
}
.advanced-stats span {
  display: grid;
  padding: 4px 5px;
  border-bottom: 1px solid #302a23;
}
.advanced-stats b {
  font: 10px "DM Mono";
}
.character-set {
  display: grid;
  gap: 2px;
  margin-top: 7px;
  padding: 7px;
  border: 1px solid #3e3429;
  background: #0b0c10;
}
.character-set b {
  color: #d8c18d;
  font: 12px "Playfair Display";
}
.character-set span,
.character-set small {
  color: #9b9182;
  font: 7px "DM Mono";
}
.character-set small.active {
  color: #87d9b1;
}
.character-inventory-dock {
  margin-top: 9px;
  padding: 9px;
  border: 1px solid #443829;
  background: linear-gradient(180deg, #0e0f14fa, #08090dfa);
}
.character-inventory-dock > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.character-inventory-dock h2 {
  display: inline;
  margin-left: 8px;
  font: 16px "DM Mono";
}
.character-inventory-dock > header > div:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #756c60;
  font: 7px "DM Mono";
}
.character-inventory-dock > header .active {
  color: #ead696;
}
.character-inventory-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(48px, 1fr));
  gap: 6px;
  max-height: 154px;
  overflow-y: auto;
  scrollbar-color: #68563c #0a0b0f;
}
.character-inventory-grid .item-slot {
  width: 100%;
  max-width: 70px;
}
.equipment-empty img {
  width: 66%;
  height: 66%;
  opacity: 0.28;
  filter: sepia(0.25) brightness(0.85);
}
.equipment-empty:hover img,
.equipment-empty:focus-visible img {
  opacity: 0.55;
}
.tooltip-target {
  margin: 6px 0;
  color: #c3ad75;
  font: 8px "DM Mono";
  letter-spacing: 0.1em;
}
.forge-gear-stock {
  padding: 10px;
  border: 1px solid #443829;
  background: #0b0c10ed;
}
.forge-gear-stock > div:last-child {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.forge-gear-offer {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 70px;
  padding: 6px;
  border: 1px solid #3c3329;
  background: linear-gradient(135deg, #17161a, #0b0c10);
}
.forge-gear-offer .item-slot {
  width: 54px;
}
.forge-gear-offer > div {
  display: grid;
  min-width: 0;
}
.forge-gear-offer small,
.forge-gear-offer span {
  color: #9a8f7d;
  font: 7px "DM Mono";
}
.forge-gear-offer b {
  overflow: hidden;
  font: 11px "Playfair Display";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forge-gear-offer > .button {
  grid-column: 1 / -1;
  min-height: 28px;
}
.bestiary-supplemental-drops {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) 1fr;
  gap: 12px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #443829;
  background: linear-gradient(120deg, #121117f2, #08090df2);
  box-shadow: inset 0 0 36px #0009;
}
.bestiary-supplemental-drops h2 {
  margin: 3px 0 5px;
  font: 22px "Playfair Display";
}
.bestiary-supplemental-drops p {
  margin: 0;
  color: #a79b89;
  font-size: 10px;
  line-height: 1.5;
}
.random-drop-preview {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 2px 7px;
  min-width: 142px;
  padding: 7px 9px;
  border: 1px solid #635337;
  background: #0c101b;
  color: #e0bd77;
}
.random-drop-preview > i {
  grid-row: 1 / 3;
  font-size: 20px;
  font-style: normal;
}
.random-drop-preview b,
.random-drop-preview small {
  display: block;
}
.random-drop-preview b {
  font-size: 10px;
}
.random-drop-preview small {
  color: #9da7b9;
  font-size: 8px;
}
.bestiary-drop-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.bestiary-drop-preview {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 3px;
  border: 1px solid #3b332a;
  background: #0c0d12;
  color: #d9ccb0;
  cursor: help;
}
.bestiary-drop-preview:hover,
.bestiary-drop-preview:focus-visible {
  border-color: #8d7448;
  box-shadow: inset 0 0 14px #a57a2b22;
}
.bestiary-drop-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.bestiary-drop-preview span {
  display: grid;
  min-width: 0;
  text-align: center;
}
.bestiary-drop-preview b {
  overflow: hidden;
  font: 9px "Playfair Display";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bestiary-drop-preview small {
  color: #9a8f7d;
  font: 6px "DM Mono";
}

@media (min-width: 1500px) {
  .character-paperdoll {
    min-height: 505px;
    grid-template-columns: 86px minmax(390px, 1fr) 86px;
  }
  .phase7-character .hero-figure {
    min-height: 487px;
  }
  .phase7-character .hero-gear-slot-wrap .item-slot {
    width: 70px;
    height: 70px;
  }
  .character-stat-panel {
    min-height: 505px;
  }
  .character-inventory-grid {
    grid-template-columns: repeat(12, minmax(52px, 1fr));
  }
}
@media (max-width: 900px) {
  .character-profile-header {
    grid-template-columns: 1fr auto;
  }
  .character-profile-meta {
    display: none;
  }
  .character-core {
    grid-template-columns: 1fr;
  }
  .character-stat-panel {
    min-height: 0;
  }
  .character-inventory-grid {
    grid-template-columns: repeat(7, minmax(48px, 1fr));
  }
  .forge-gear-stock > div:last-child {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bestiary-supplemental-drops {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .phase7-character {
    padding: 4px;
  }
  .character-profile-header {
    grid-template-columns: 1fr auto;
    min-height: 64px;
    padding-inline: 9px;
  }
  .character-profile-power {
    padding: 0 8px;
    border-right: 0;
  }
  .character-profile-power b {
    font-size: 22px;
  }
  .character-profile-name h1 {
    font-size: 20px;
  }
  .character-paperdoll {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 4px;
  }
  .phase7-character .hero-figure {
    order: 1;
    min-height: 330px;
  }
  .phase7-character .hero-figure__art {
    inset: 0 -4% 36px;
  }
  .phase7-character .hero-gear-column {
    order: 2;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .phase7-character .hero-gear-slot-wrap .item-slot {
    width: 100%;
    max-width: 62px;
    height: auto;
  }
  .phase7-character .hero-gear-slot-wrap > small {
    font-size: 6px;
  }
  .phase7-character .hero-attributes {
    grid-template-columns: repeat(2, 1fr);
  }
  .character-inventory-dock > header > div:last-child > span {
    display: none;
  }
  .character-inventory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 230px;
  }
  .character-inventory-grid .item-slot {
    max-width: none;
  }
  .forge-gear-stock > div:last-child {
    grid-template-columns: 1fr;
  }
  .bestiary-drop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.reduce-motion .class-atmosphere {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .class-atmosphere {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-slot img,
  .game-tooltip {
    animation: none !important;
    transition: none !important;
  }
}

/* source: phase85.css */
/* Phase 8.5: deterministic combat presentation. The server event stream drives every class below. */
.combat-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.combat-preview > span,
.combat-identity-tags > button {
  min-height: 25px;
  padding: 5px 8px;
  border: 1px solid rgba(167, 143, 103, 0.32);
  border-radius: 3px;
  color: #c9bda8;
  background: rgba(8, 10, 15, 0.78);
  font: 700 8px "DM Mono";
  letter-spacing: 0.08em;
}
.combat-preview .difficulty-easy {
  color: #83dcb4;
}
.combat-preview .difficulty-even {
  color: #e8ca81;
}
.combat-preview .difficulty-dangerous {
  color: #ef8b91;
}
.combat-identity {
  min-width: 260px;
}
.combat-identity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.combat-identity-tags > button {
  cursor: help;
}
.monster-role::first-letter {
  color: var(--bright-gold);
}
.elite-tag {
  color: #d8b2ff;
  border-color: rgba(171, 100, 240, 0.48);
}
.boss-signature {
  color: var(--boss-accent);
  border-color: color-mix(in srgb, var(--boss-accent) 54%, transparent);
}

.combat-backdrop {
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 9, 0.82),
      rgba(5, 6, 9, 0.2) 50%,
      rgba(5, 6, 9, 0.68)
    ),
    var(--battle-bg) center / cover no-repeat;
}
.combat-ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.combat-ambient i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  opacity: 0.38;
  animation: combat-drift calc(8s / var(--combat-speed)) linear infinite;
}
.combat-ambient i:nth-child(1) {
  left: 17%;
  top: 71%;
  animation-delay: -2s;
}
.combat-ambient i:nth-child(2) {
  left: 48%;
  top: 46%;
  animation-delay: -5s;
}
.combat-ambient i:nth-child(3) {
  left: 82%;
  top: 66%;
  animation-delay: -7s;
}
.ambient-snow .combat-ambient i {
  background: #dffaff;
  box-shadow:
    22px -90px #dffaff,
    80px -36px #dffaff;
}
.ambient-ash .combat-ambient i,
.ambient-embers .combat-ambient i {
  background: #ee8c43;
  box-shadow:
    31px -82px #d75932,
    93px -22px #f2ad56;
}
.ambient-void .combat-ambient i,
.ambient-ink .combat-ambient i {
  background: #a079dc;
  box-shadow:
    30px -72px #65429d,
    91px -29px #c3a4ed;
}
.ambient-tide .combat-ambient i,
.ambient-rain .combat-ambient i {
  width: 1px;
  height: 18px;
  border-radius: 0;
  background: #78c5dc;
}
.ambient-stardust .combat-ambient i {
  background: #f3d695;
  box-shadow:
    42px -70px #93cfe6,
    92px -20px #f3d695;
}
.ambient-fog .combat-ambient::before,
.ambient-mire .combat-ambient::before {
  content: "";
  position: absolute;
  inset: 45% -20% -10%;
  background: radial-gradient(
    ellipse,
    rgba(185, 203, 211, 0.12),
    transparent 62%
  );
  animation: fog-breathe 7s ease-in-out infinite alternate;
}

.combatant-art.enemy-art {
  background-position: center bottom;
  background-size: contain;
  clip-path: none;
  opacity: 0.96;
  transform: scale(var(--enemy-scale));
  transform-origin: center var(--enemy-baseline);
}
.enemy-size-small .enemy-combatant .combatant-art {
  max-height: 78%;
  top: 22%;
}
.enemy-size-large .enemy-combatant .combatant-art {
  max-height: 108%;
}
.enemy-size-boss .enemy-combatant .combatant-art {
  inset: -6% -5% 0;
  filter: drop-shadow(0 24px 25px #000)
    drop-shadow(
      0 0 22px color-mix(in srgb, var(--boss-accent) 35%, transparent)
    );
}
.elite-combat .enemy-combatant::before {
  content: "";
  position: absolute;
  inset: 9% 5% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 86, 229, 0.2), transparent 66%);
  filter: blur(8px);
  animation: elite-aura 2.8s ease-in-out infinite alternate;
}
.stance-floating .hero-art {
  transform: translateY(-7px);
}
.stance-low .hero-art {
  transform: translateY(7px) rotate(-1deg);
}
.stance-heavy .hero-art {
  transform: scale(1.035);
  transform-origin: center bottom;
}
.stance-threads .hero-art {
  filter: drop-shadow(-8px 0 rgba(157, 97, 216, 0.26))
    drop-shadow(8px 0 rgba(96, 200, 216, 0.18));
}

.cast-origin,
.combat-projectile,
.impact-burst {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  opacity: 0;
}
.cast-origin {
  left: var(--origin-x);
  top: var(--origin-y);
  width: 34px;
  height: 34px;
  margin: -17px;
  border: 2px solid var(--hero-accent);
  border-radius: 50%;
}
.combat-projectile {
  left: var(--origin-x);
  top: var(--origin-y);
  width: 54px;
  height: 5px;
  border-radius: 100%;
  background: linear-gradient(90deg, transparent, var(--hero-accent), #fff);
  box-shadow: 0 0 13px var(--hero-accent);
  transform-origin: left;
}
.impact-burst {
  left: var(--enemy-hit-x);
  top: var(--enemy-hit-y);
  width: 72px;
  height: 72px;
  margin: -36px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff,
    var(--boss-accent, var(--hero-accent)) 13%,
    transparent 67%
  );
}
.hero-strike.attack-melee .hero-combatant {
  animation: phase85-hero-lunge calc(440ms / var(--combat-speed)) ease both;
}
.hero-strike.attack-ranged .combat-projectile {
  animation: phase85-projectile calc(520ms / var(--combat-speed)) ease-in both;
}
.hero-strike.attack-magic .cast-origin {
  animation: phase85-cast calc(580ms / var(--combat-speed)) ease both;
}
.hero-strike.attack-magic .combat-projectile {
  height: 12px;
  border-radius: 50%;
  animation: phase85-projectile calc(600ms / var(--combat-speed)) ease-in both;
}
.hero-strike .impact-burst,
.enemy-strike .impact-burst,
.block-impact .impact-burst {
  animation: phase85-impact calc(390ms / var(--combat-speed)) ease-out 0.22s
    both;
}
.enemy-strike .enemy-combatant {
  animation: phase85-enemy-lunge calc(420ms / var(--combat-speed)) ease both;
}
.hero-strike .enemy-art,
.enemy-strike .hero-art {
  animation: phase85-hit calc(320ms / var(--combat-speed)) ease 0.24s both;
}
.heavy-impact .impact-burst,
.critical-impact .impact-burst {
  width: 104px;
  height: 104px;
  margin: -52px;
}
.block-impact .impact-burst {
  background: radial-gradient(circle, #fff, #70a8ce 13%, transparent 62%);
}
.dodge-impact .enemy-art {
  animation: phase85-dodge calc(420ms / var(--combat-speed)) ease both;
}
.death-impact .enemy-art {
  animation: phase85-death calc(680ms / var(--combat-speed)) ease both;
}
.death-impact .hero-art {
  animation: phase85-death-player calc(680ms / var(--combat-speed)) ease both;
}
.critical-impact .combatants,
.heavy-impact.boss-fx-forge .combatants {
  animation: phase85-shake calc(260ms / var(--combat-speed)) ease both;
}

.combat-telegraph {
  position: absolute;
  z-index: 12;
  top: 30%;
  left: 50%;
  min-width: 210px;
  padding: 9px 16px;
  transform: translateX(-50%);
  text-align: center;
  border: 1px solid #d7834c;
  background: rgba(26, 8, 9, 0.9);
  box-shadow: 0 0 24px rgba(211, 71, 54, 0.26);
}
.combat-telegraph small {
  display: block;
  color: #d08c73;
  font: 700 7px "DM Mono";
  letter-spacing: 0.28em;
}
.combat-telegraph b {
  color: #ffddd1;
  font: 800 14px "Playfair Display";
}
.combat-telegraph.is-hidden {
  display: none;
}
.phase-tag {
  border: 1px solid color-mix(in srgb, var(--boss-accent) 58%, transparent);
  color: #fff1d4;
  background: color-mix(in srgb, var(--boss-accent) 20%, rgba(6, 7, 10, 0.86));
  box-shadow: 0 0 16px color-mix(in srgb, var(--boss-accent) 22%, transparent);
}
.phase-impact .phase-tag {
  animation: phase85-phase calc(700ms / var(--combat-speed)) ease both;
}

.floating-damage.player {
  right: auto;
  left: clamp(52%, var(--enemy-hit-x), 88%);
  top: clamp(18%, var(--enemy-hit-y), 68%);
}
.floating-damage.enemy {
  left: clamp(8%, var(--origin-x), 48%);
  top: clamp(18%, var(--origin-y), 70%);
}
.floating-damage.dodge {
  color: #addef0;
  font-size: clamp(20px, 3vw, 34px);
}
.floating-damage.heal {
  color: #84e7ac;
}
.floating-damage.enemy-heal {
  left: var(--enemy-hit-x);
}
.combat-equipment {
  display: flex;
  gap: 4px;
}
.combat-equipment-art {
  width: 34px;
  height: 34px;
  border: 1px solid #574632;
  background: rgba(7, 8, 11, 0.85) var(--combat-item-art) center / contain
    no-repeat;
}

.combat-log {
  transition:
    height 0.18s ease,
    min-height 0.18s ease;
}
.combat-log > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.combat-log > header .button {
  min-height: 28px;
  margin: 0;
  padding: 4px 10px;
}
.combat-log.collapsed {
  height: 62px;
  min-height: 62px;
}
.combat-log.collapsed .combat-log__entries {
  display: none;
}
.combat-summary {
  margin-top: 12px;
  border-top: 1px solid #3c3328;
  padding-top: 9px;
}
.combat-summary > .button {
  margin: 0;
  min-height: 30px;
}
.combat-summary__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}
.combat-summary__grid > span {
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid #332d27;
  background: #0c0d11;
}
.combat-summary__grid small {
  color: #887e70;
  font: 7px "DM Mono";
}
.combat-summary__grid b {
  color: #ded2bd;
  font: 800 10px "DM Mono";
}
.combat-summary__grid.is-hidden {
  display: none;
}
.boss-combat .victory-banner small {
  color: var(--boss-accent);
}
.defeat-banner b {
  color: #d9b66d;
  font: 700 8px "DM Mono";
  letter-spacing: 0.12em;
}
.world-boss-keyart {
  position: relative;
}
.world-boss-signature,
.raid-signature {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(187, 136, 82, 0.48);
  color: #e6c687;
  background: rgba(7, 8, 12, 0.82);
  font: 800 8px "DM Mono";
  letter-spacing: 0.11em;
}
.world-boss-signature {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 16px;
}
.world-boss-signature.fracture {
  color: #d5a4ff;
  border-color: rgba(175, 107, 224, 0.58);
}
.raid-signature {
  margin: 8px 0;
  color: #b7dce8;
  border-color: rgba(92, 166, 194, 0.4);
}
.raid-phase-active:not(.defeated) .worldboss-hp .progress span {
  box-shadow: 0 0 12px rgba(111, 197, 220, 0.35);
}

@keyframes combat-drift {
  from {
    transform: translateY(80px) translateX(-10px);
  }
  to {
    transform: translateY(-430px) translateX(35px);
  }
}
@keyframes fog-breathe {
  from {
    transform: translateX(-4%);
    opacity: 0.5;
  }
  to {
    transform: translateX(4%);
    opacity: 0.9;
  }
}
@keyframes elite-aura {
  from {
    opacity: 0.45;
    transform: scale(0.94);
  }
  to {
    opacity: 0.9;
    transform: scale(1.04);
  }
}
@keyframes phase85-hero-lunge {
  0%,
  100% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(clamp(26px, 7vw, 105px));
  }
}
@keyframes phase85-enemy-lunge {
  0%,
  100% {
    transform: translateX(0);
  }
  48% {
    transform: translateX(clamp(-105px, -7vw, -26px));
  }
}
@keyframes phase85-projectile {
  0% {
    opacity: 0;
    transform: translate(0, 0) scaleX(0.3);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(clamp(170px, 40vw, 650px), 0) scaleX(1.4);
  }
}
@keyframes phase85-cast {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(0);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.5) rotate(160deg);
  }
}
@keyframes phase85-impact {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  38% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
@keyframes phase85-hit {
  35% {
    filter: brightness(2) saturate(0.4);
    transform: translateX(5px);
  }
}
@keyframes phase85-dodge {
  50% {
    transform: translateX(34px) scale(var(--enemy-scale));
    opacity: 0.48;
  }
}
@keyframes phase85-death {
  to {
    transform: translateY(22px) scale(calc(var(--enemy-scale) * 0.96));
    filter: grayscale(0.8) brightness(0.3);
    opacity: 0;
  }
}
@keyframes phase85-death-player {
  to {
    transform: translateY(18px);
    filter: grayscale(0.7) brightness(0.35);
    opacity: 0.12;
  }
}
@keyframes phase85-shake {
  30% {
    transform: translateX(-3px);
  }
  60% {
    transform: translateX(3px);
  }
}
@keyframes phase85-phase {
  0% {
    opacity: 0;
    transform: scale(0.75);
  }
  45% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 1366px) and (min-width: 621px) {
  .combat-stage {
    min-height: min(510px, calc(100vh - 215px));
  }
  .combat-result-grid {
    margin-top: 9px;
  }
  .combat-log,
  .combat-rewards {
    min-height: 150px;
  }
}

@media (max-width: 620px) {
  .combat-toolbar {
    min-height: 0;
  }
  .combat-controls {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
  }
  .combat-speed-control {
    grid-column: 1 / -1;
  }
  .combat-skip {
    min-height: 42px;
  }
  .combat-identity-tags {
    max-height: 58px;
    overflow: auto;
  }
  .combat-stage[data-combat-stage] {
    min-height: 470px;
  }
  .combatants {
    inset: 72px 4px 145px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  }
  .combat-nameplate {
    min-width: 0;
    width: 94%;
    padding: 6px;
  }
  .combat-nameplate b {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .combat-impact {
    font-size: 15px;
  }
  .combat-vitals {
    margin-top: auto;
  }
  .floating-damage.player {
    left: clamp(55%, var(--enemy-hit-x), 84%);
  }
  .floating-damage.enemy {
    left: clamp(12%, var(--origin-x), 44%);
  }
  .combat-telegraph {
    top: 27%;
    min-width: 170px;
  }
  .combat-result-grid {
    grid-template-columns: 1fr;
  }
  .combat-log.open {
    height: 160px;
  }
  .combat-summary__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .boss-intro {
    padding: 20px;
  }
  .boss-intro h1 {
    font-size: clamp(31px, 11vw, 50px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .combat-ambient *,
  .combat-ambient::before,
  .elite-combat .enemy-combatant::before,
  .hero-strike .hero-combatant,
  .hero-strike .enemy-art,
  .enemy-strike .enemy-combatant,
  .enemy-strike .hero-art,
  .cast-origin,
  .combat-projectile,
  .impact-burst,
  .death-impact .enemy-art,
  .death-impact .hero-art,
  .critical-impact .combatants,
  .phase-impact .phase-tag {
    animation: none !important;
  }
  .stance-floating .hero-art {
    transform: none;
  }
}

/* source: phase9.css */
.class-arsenal {
  --arsenal-accent: #d79a42;
  display: grid;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  color: #e9edf7;
}

.arsenal-hero {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(360px, 1fr) 190px;
  align-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--arsenal-accent) 45%, #293149);
  border-radius: 18px;
  background:
    radial-gradient(
      circle at 18% 45%,
      color-mix(in srgb, var(--arsenal-accent) 24%, transparent),
      transparent 35%
    ),
    linear-gradient(110deg, #080c18 0%, #111728 56%, #090d19 100%);
  box-shadow:
    inset 0 0 45px #0008,
    0 18px 50px #0005;
}

.arsenal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 60%,
    color-mix(in srgb, var(--arsenal-accent) 8%, transparent)
  );
}

.arsenal-hero-art {
  align-self: stretch;
  background: var(--arsenal-hero) center 15% / auto 130% no-repeat;
  filter: drop-shadow(
    0 0 24px color-mix(in srgb, var(--arsenal-accent) 26%, transparent)
  );
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.arsenal-identity {
  z-index: 1;
  padding: 26px 24px;
}

.arsenal-identity h1 {
  margin: 4px 0 6px;
  font: 600 clamp(36px, 4vw, 64px)/1 var(--font-display, serif);
  letter-spacing: -0.035em;
}

.arsenal-identity > p {
  max-width: 660px;
  margin: 0 0 18px;
  color: #aeb7cc;
}

.build-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.build-summary small {
  width: 100%;
  color: #78839d;
  letter-spacing: 0.16em;
}

.build-summary b {
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--arsenal-accent) 50%, #30394f);
  border-radius: 4px;
  background: color-mix(in srgb, var(--arsenal-accent) 10%, #101626);
  color: color-mix(in srgb, var(--arsenal-accent) 75%, #fff);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.build-summary span {
  width: 100%;
  color: #c2cada;
  font-size: 12px;
}

.arsenal-unlocks {
  z-index: 1;
  margin-right: 20px;
  padding: 18px;
  border-left: 1px solid #ffffff18;
  display: grid;
  gap: 5px;
}

.arsenal-unlocks small,
.arsenal-unlocks span {
  color: #8994ab;
  font-size: 10px;
  letter-spacing: 0.13em;
}
.arsenal-unlocks b {
  color: #fff;
}

.arsenal-equipped {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
}

.arsenal-equipped > div,
.arsenal-available,
.arsenal-loadouts,
.class-switcher {
  padding: 18px;
  border: 1px solid #252e43;
  border-radius: 14px;
  background: linear-gradient(145deg, #111726f2, #090e1af5);
  box-shadow: inset 0 1px #ffffff08;
}

.arsenal-equipped h2,
.arsenal-available h2,
.arsenal-loadouts h2 {
  margin: 3px 0 5px;
  font-family: var(--font-display, serif);
}
.arsenal-equipped p {
  margin: 0 0 14px;
  color: #828da4;
  font-size: 12px;
}

.arsenal-slot-row {
  display: grid;
  gap: 10px;
}

.active-slots {
  grid-template-columns: repeat(3, minmax(100px, 1fr));
}
.passive-slots {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
}

.arsenal-slot {
  position: relative;
  min-height: 112px;
  padding: 9px;
  border: 1px solid #343e55;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #202943 0%, #101626 65%);
  transition:
    border-color 0.16s,
    transform 0.16s,
    box-shadow 0.16s;
}

.arsenal-slot.passive {
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--arsenal-accent) 11%, #202943),
    #101626 67%
  );
}
.arsenal-slot.drop-ready {
  border-color: var(--arsenal-accent);
  box-shadow: 0 0 18px
    color-mix(in srgb, var(--arsenal-accent) 35%, transparent);
  transform: translateY(-2px);
}
.arsenal-slot > small {
  position: absolute;
  top: 6px;
  left: 8px;
  color: #717e99;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.skill-icon-button,
.arsenal-skill-inspect {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.skill-icon-button {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 4px;
  background: transparent;
}

.skill-icon-button img,
.arsenal-skill-inspect img {
  border: 1px solid color-mix(in srgb, var(--arsenal-accent) 46%, #39435a);
  border-radius: 9px;
  background: #080c17;
  box-shadow: 0 0 13px
    color-mix(in srgb, var(--arsenal-accent) 20%, transparent);
}

.skill-icon-button span {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.empty-skill-rune {
  color: #3b465f;
  font-size: 36px;
}
.arsenal-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #080c17cc;
  color: #8590a5;
  cursor: pointer;
}

.arsenal-available > header,
.arsenal-loadouts > header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.arsenal-available > header:not(:first-child) {
  margin-top: 22px;
}
.arsenal-available > header small {
  margin-left: auto;
  color: #778198;
}
.arsenal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
}
.arsenal-grid.passives {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.arsenal-skill-card {
  position: relative;
  min-width: 0;
  padding: 9px;
  border: 1px solid #293248;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: #0d1321;
}

.arsenal-skill-card.equipped {
  border-color: color-mix(in srgb, var(--arsenal-accent) 58%, #3c4559);
  background: color-mix(in srgb, var(--arsenal-accent) 7%, #0d1321);
}
.arsenal-skill-card.locked {
  opacity: 0.58;
}
.arsenal-skill-inspect {
  min-width: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  align-items: center;
  text-align: left;
  background: transparent;
}
.arsenal-skill-inspect img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}
.arsenal-skill-inspect span {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.arsenal-skill-inspect small {
  color: #98a5bc;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.arsenal-skill-inspect b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.arsenal-skill-inspect em {
  overflow: hidden;
  color: #8f9ab0;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.skill-equip-priorities {
  align-self: center;
  display: grid;
  gap: 4px;
}
.skill-equip-priorities button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #39435a;
  border-radius: 4px;
  background: #151c2d;
  color: #9ca7bc;
  cursor: pointer;
  font-size: 10px;
}
.skill-equip-priorities button.active {
  border-color: var(--arsenal-accent);
  color: #fff;
  background: color-mix(in srgb, var(--arsenal-accent) 22%, #151c2d);
}
.skill-unlock {
  align-self: center;
  color: #9099ac;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.arsenal-loadouts > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.arsenal-loadouts article {
  padding: 12px;
  border: 1px solid #293248;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  background: #0d1321;
}
.arsenal-loadouts article small,
.arsenal-loadouts article b,
.arsenal-loadouts article span {
  grid-column: 1;
}
.arsenal-loadouts article span {
  color: #9aa6bc;
  font-size: 10px;
}
.arsenal-loadouts article .button {
  grid-column: 2;
  padding: 7px 10px;
  font-size: 9px;
}
.arsenal-loadouts article .button:first-of-type {
  grid-row: 1 / span 2;
}
.arsenal-loadouts article .button:last-of-type {
  grid-row: 3;
}

.class-switcher summary {
  cursor: pointer;
  color: #aeb7c9;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.class-switch-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.class-switch-grid article {
  overflow: hidden;
  border: 1px solid #293248;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 8px;
  background: #0c1220;
}
.class-switch-grid article.current {
  border-color: var(--arsenal-accent);
}
.class-switch-grid article > div {
  align-self: stretch;
  min-height: 64px;
  background: var(--switch-art) center 14% / 115% auto no-repeat;
}
.class-switch-grid span {
  display: grid;
  min-width: 0;
}
.class-switch-grid small {
  color: #79859d;
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.class-switch-grid b {
  font-size: 11px;
}
.class-switch-grid .button {
  margin-right: 7px;
  padding: 6px 8px;
  font-size: 8px;
}

.game-tooltip-skill {
  width: min(390px, calc(100vw - 24px));
  color: #e8edf7;
}
.game-tooltip-skill .mobile-advanced-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.game-tooltip-skill > header {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
}
.game-tooltip-skill > header img {
  border: 1px solid #46516a;
  border-radius: 9px;
  background: #080c17;
}
.game-tooltip-skill > header div {
  display: grid;
}
.game-tooltip-skill h2 {
  margin: 2px 0;
  font-family: var(--font-display, serif);
}
.game-tooltip-skill p {
  color: #a6b0c4;
}
.skill-tooltip-core {
  margin: 10px 0 4px;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  border: 1px solid #303a51;
  background: #0e1524;
}
.skill-synergies {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.skill-synergies small {
  width: 100%;
  color: #77849c;
}
.skill-synergies span {
  padding: 3px 6px;
  border: 1px solid #344057;
  border-radius: 3px;
  font-size: 9px;
}
.advanced-skill-inspect {
  margin-top: 12px;
  border-top: 1px solid #30394d;
  padding-top: 10px;
}
.advanced-skill-inspect header,
.advanced-skill-inspect div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
}
.advanced-skill-inspect header {
  color: #c5a86d;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.advanced-skill-inspect div {
  color: #9faabd;
  font-size: 11px;
}
.advanced-skill-inspect div b {
  color: #f1f4fa;
}
.combat-build-skills {
  display: flex;
  gap: 5px;
}
.skill-unlock-celebration img {
  margin: 10px auto;
  border: 1px solid #6c7891;
  border-radius: 12px;
  box-shadow: 0 0 24px #71a8c855;
}
.tooltip-modifiers .build-synergy {
  border-left: 2px solid #7db6c9;
  padding-left: 7px;
}
.tooltip-modifiers .build-synergy span {
  display: grid;
}
.tooltip-modifiers .build-synergy small {
  color: #7db6c9;
  font-size: 7px;
  letter-spacing: 0.09em;
}

@media (max-width: 1100px) {
  .arsenal-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .class-switch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .arsenal-hero {
    min-height: 220px;
    grid-template-columns: 40% 60%;
  }
  .arsenal-hero-art {
    background-size: auto 115%;
  }
  .arsenal-identity {
    padding: 18px 12px 18px 0;
  }
  .arsenal-identity h1 {
    font-size: 34px;
  }
  .arsenal-unlocks {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-top: 1px solid #ffffff14;
    display: flex;
  }
  .arsenal-equipped {
    grid-template-columns: 1fr;
  }
  .arsenal-grid,
  .arsenal-grid.passives {
    grid-template-columns: 1fr;
  }
  .arsenal-loadouts > div {
    grid-template-columns: 1fr;
  }
  .class-switch-grid {
    grid-template-columns: 1fr;
  }
  .arsenal-available > header {
    flex-wrap: wrap;
  }
  .arsenal-available > header small {
    margin-left: 0;
    width: 100%;
  }
  .combat-build-skills .combat-skill-slot:nth-child(n + 3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .active-slots {
    grid-template-columns: repeat(3, 1fr);
  }
  .passive-slots {
    grid-template-columns: repeat(2, 1fr);
  }
  .arsenal-slot {
    min-height: 92px;
    padding: 7px;
  }
  .skill-icon-button img {
    width: 50px;
    height: 50px;
  }
  .skill-icon-button span {
    font-size: 9px;
  }
  .arsenal-equipped > div,
  .arsenal-available,
  .arsenal-loadouts,
  .class-switcher {
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arsenal-slot {
    transition: none;
  }
}

/* source: phase10.css */
.collection-journal {
  --journal-border: rgba(197, 158, 91, 0.32);
  display: grid;
  gap: 20px;
}

.collection-heading {
  min-height: 180px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--journal-border);
  background:
    radial-gradient(
      circle at 80% 35%,
      rgba(132, 87, 191, 0.2),
      transparent 34%
    ),
    linear-gradient(125deg, rgba(11, 15, 31, 0.98), rgba(25, 18, 39, 0.94));
}

.collection-total {
  display: grid;
  min-width: 150px;
  place-items: center;
  align-content: center;
  border-left: 1px solid var(--journal-border);
}

.collection-total b {
  font:
    700 clamp(36px, 5vw, 64px)/1 "Playfair Display",
    serif;
  color: #e7c98e;
}
.collection-total small {
  letter-spacing: 0.12em;
}

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

.collection-summary > div,
.collection-section {
  border: 1px solid var(--journal-border);
  background: rgba(10, 14, 29, 0.86);
}

.collection-summary > div {
  display: grid;
  gap: 5px;
  padding: 14px;
}
.collection-summary span {
  color: #aeb5c8;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.collection-summary b {
  color: #f1dfba;
}
.collection-summary progress {
  width: 100%;
  height: 5px;
  accent-color: #c69a58;
}
.collection-section {
  padding: clamp(16px, 2.5vw, 30px);
}

.boss-hunt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.boss-hunt-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(171, 139, 88, 0.25);
  background:
    linear-gradient(90deg, rgba(7, 10, 23, 0.98), rgba(7, 10, 23, 0.72)),
    var(--boss-hunt-art) center/cover;
}

.boss-hunt-card.discovered {
  border-color: rgba(219, 181, 104, 0.58);
}
.boss-hunt-identity {
  min-width: 0;
}
.boss-hunt-identity span {
  color: #c8a66d;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.boss-hunt-identity h3 {
  margin: 5px 0;
}
.notable-drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px solid rgba(214, 178, 105, 0.35);
  background: rgba(5, 8, 19, 0.85);
  color: #ead7b3;
  cursor: help;
}
.notable-drop img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}
.notable-drop span {
  max-width: 110px;
  font-size: 11px;
  text-align: center;
}
.notable-drop.silhouette img {
  filter: grayscale(1) brightness(0.08);
}
.boss-notable-drops {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.boss-notable-drops .notable-drop {
  display: flex;
  width: min(100%, 260px);
  min-height: 62px;
  padding: 5px 10px;
}
.boss-notable-drops .notable-drop img {
  width: 48px;
  height: 48px;
}
.boss-records {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.boss-records span {
  padding: 7px;
  background: rgba(255, 255, 255, 0.035);
}
.boss-records small,
.profile-showcase-strip small {
  display: block;
  color: #8f98ad;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.boss-hunt-card > .button {
  grid-column: 1 / -1;
}

.raid-piece-journal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.collection-piece {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.collection-piece > span {
  font-size: 22px;
  color: #606a7d;
}
.collection-piece.found > span {
  color: #d8b46d;
}
.collection-piece small,
.collection-piece b {
  display: block;
}
.collection-piece small {
  color: #8992a6;
  font-size: 10px;
}

.class-challenge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.class-challenge {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.class-challenge.complete {
  border-color: rgba(206, 168, 95, 0.55);
}
.challenge-class {
  min-height: 132px;
  background:
    linear-gradient(0deg, rgba(8, 11, 24, 0.85), transparent),
    var(--challenge-class-art) top center/cover;
}
.class-challenge small,
.class-challenge em {
  display: block;
  color: #b99a66;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
}
.class-challenge h3 {
  margin: 4px 0;
}
.class-challenge p {
  margin: 0 0 7px;
  color: #aeb5c8;
  font-size: 12px;
}
.class-challenge .progress {
  height: 5px;
}

.collection-section.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ascension-milestone-grid {
  display: grid;
  gap: 8px;
}
.ascension-milestone {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ascension-milestone > span {
  display: grid;
  width: 38px;
  place-items: center;
  color: #9b7cc9;
  font-size: 24px;
}
.ascension-milestone.complete {
  border-color: rgba(157, 115, 211, 0.58);
  background: rgba(112, 72, 164, 0.1);
}
.ascension-milestone small,
.ascension-milestone b {
  display: block;
}
.ascension-milestone p {
  margin: 3px 0 0;
  color: #9ca5b8;
  font-size: 12px;
}
.cosmetic-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.cosmetic-choices h3 {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-size: 11px;
  color: #9ba4b8;
}
.cosmetic-choice {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #11172a;
  color: #c7cfdf;
  text-transform: capitalize;
}
.cosmetic-choice.selected {
  border-color: #d5ac65;
  color: #f3dfb8;
  box-shadow: inset 0 0 14px rgba(202, 158, 85, 0.14);
}
.recent-drops ol {
  display: grid;
  gap: 6px;
  padding: 0;
  list-style: none;
}
.recent-drops li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 7px 0;
}
.recent-drops li span {
  color: #919aac;
  font-size: 11px;
}

body .phase7-character .profile-showcase-strip {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr)) auto;
  gap: 1px;
  margin: 0 24px;
  border: 1px solid rgba(194, 155, 89, 0.24);
  background: rgba(7, 10, 22, 0.92);
}
.profile-showcase-strip > span {
  min-width: 0;
  padding: 3px 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.profile-showcase-strip small {
  font-size: 7px;
  line-height: 1;
}
.profile-showcase-strip b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.1;
}
.profile-showcase-strip > .button {
  min-height: 22px;
  padding: 2px 8px;
}
.boss-signature-drop {
  display: grid;
  gap: 4px;
  align-content: start;
}
.boss-signature-drop > small {
  color: #a7afc0;
  font:
    700 8px "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}
.named-discovery-reveal {
  pointer-events: none;
}
.named-discovery-reveal button {
  pointer-events: auto;
}
@media (min-width: 901px) {
  .phase7-character .character-core {
    margin-top: 4px;
  }
  .phase7-character .character-paperdoll,
  .phase7-character .character-stat-panel {
    min-height: 416px;
  }
  .phase7-character .character-paperdoll {
    padding: 3px;
  }
}
.has-cosmetic-frame .character-profile-header {
  box-shadow:
    inset 0 0 0 2px rgba(211, 171, 98, 0.42),
    0 0 24px rgba(136, 91, 188, 0.14);
}
.raid-set-piece-list {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}
.raid-set-piece {
  display: flex;
  gap: 6px;
  color: #8e98aa;
  font-size: 11px;
}
.raid-set-piece.found {
  color: #dbc28e;
}
.raid-longterm {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.raid-longterm span {
  padding: 9px;
  background: rgba(7, 10, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.raid-longterm small,
.raid-longterm b {
  display: block;
}
.raid-longterm small {
  color: #929bad;
  font-size: 9px;
}
.returning-summary > div {
  max-width: min(760px, calc(100vw - 24px));
}
.returning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.returning-grid span {
  padding: 8px;
  background: rgba(255, 255, 255, 0.045);
}
.returning-grid small,
.returning-grid b {
  display: block;
}
.returning-grid small {
  color: #b99a69;
  font-size: 9px;
  letter-spacing: 0.08em;
}
.returning-grid b {
  margin-top: 3px;
  font-size: 11px;
}

@media (max-width: 900px) {
  .collection-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .boss-hunt-grid,
  .class-challenge-grid,
  .collection-section.split {
    grid-template-columns: 1fr;
  }
  .raid-piece-journal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body .phase7-character .profile-showcase-strip {
    display: flex;
    margin: 0 10px;
    overflow-x: auto;
  }
  body .phase7-character .profile-showcase-strip > span {
    flex: 0 0 31%;
  }
  .raid-longterm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .collection-heading {
    min-height: 0;
  }
  .collection-total {
    min-width: 0;
    border: 0;
  }
  .collection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .boss-hunt-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    padding: 12px;
  }
  .boss-records {
    grid-template-columns: 1fr;
  }
  .raid-piece-journal {
    grid-template-columns: 1fr;
  }
  .class-challenge {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .challenge-class {
    min-height: 105px;
  }
  .returning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .named-discovery-reveal,
  .has-cosmetic-frame .character-profile-header {
    animation: none !important;
  }
}

/* source: accessibility.css */
/* Readability layer: loaded last so older compact phase styles remain usable
   while text has a humane, user-controlled minimum size. */
:root {
  --read-body: 13px;
  --read-small: 11px;
  --read-label: 11px;
  --read-control: 13px;
  --read-line: 1.55;
  --muted: #aeb8d5;
}

:root[data-text-size="large"] {
  --read-body: 15px;
  --read-small: 13px;
  --read-label: 12px;
  --read-control: 14px;
  --read-line: 1.65;
}

:root[data-text-size="xlarge"] {
  --read-body: 17px;
  --read-small: 15px;
  --read-label: 14px;
  --read-control: 16px;
  --read-line: 1.72;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-size: var(--read-body);
  line-height: var(--read-line);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body p,
body li,
body dd,
body .empty-state,
body .combat-log__entries {
  font-size: var(--read-body) !important;
  line-height: var(--read-line) !important;
}

body small,
body .eyebrow,
body .tag,
body .pill,
body .profile-kicker,
body .build-label,
body .timer,
body .power,
body .tooltip-target,
body .world-feed > b,
body .combat-current-status,
body .combat-speed-control > span,
body .boss-records small,
body .profile-showcase-strip small,
body .raid-longterm small,
body .returning-grid small {
  font-size: var(--read-small) !important;
  line-height: 1.4 !important;
}

body .button,
body .nav-item,
body .auth-switch,
body input,
body select,
body textarea,
body output {
  font-size: var(--read-control) !important;
  line-height: 1.35 !important;
}

body .nav-item {
  min-height: 46px;
}

body .nav-item small,
body .profile small,
body .resource,
body .quest-fast-facts,
body .quest-rewards,
body .game-tooltip,
body .game-tooltip small,
body .game-tooltip p,
body .game-tooltip li,
body .advanced-stats,
body .advanced-stats small,
body .character-set small,
body .collection-summary span,
body .collection-piece small,
body .class-challenge small,
body .class-challenge em,
body .raid-set-piece,
body .recent-drops li span,
body .returning-grid b {
  font-size: var(--read-small) !important;
  line-height: 1.45 !important;
}

body .profile-showcase-strip b,
body .forge-gear-offer b,
body .bestiary-drop-preview b,
body .combat-vital b,
body .combat-nameplate b {
  font-size: var(--read-label) !important;
  line-height: 1.35 !important;
}

/* Locked raid content remains unavailable, but its progress labels still need
   to be readable; lock state is already conveyed by text and controls. */
body .raid-wing-location.locked-wing {
  opacity: 1 !important;
}
body .raid-wing-location.locked-wing .raid-longterm small {
  color: #b8c2d4 !important;
}

/* Spatial labels need to remain inside their visual nodes, but are no longer
   allowed to fall to the former 6–7 px sizes. */
body .citadel-scene small,
body .world-map-canvas small,
body .combat-stage small,
body .item-slot-rank,
body .item-slot-equipped {
  font-size: max(10px, calc(var(--read-small) - 2px)) !important;
  line-height: 1.25 !important;
}

:root[data-text-size="large"] body .eyebrow,
:root[data-text-size="large"] body .tag,
:root[data-text-size="xlarge"] body .eyebrow,
:root[data-text-size="xlarge"] body .tag {
  letter-spacing: 0.08em !important;
}

body :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid #7ce9f3 !important;
  outline-offset: 3px !important;
}

body .account-card {
  width: min(100%, 540px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}

body .preference-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Keep dense desktop systems compact by scrolling their secondary details,
   rather than shrinking the newly readable text again. */
@media (min-width: 901px) {
  body .quest-parchment {
    min-height: 200px;
  }

  body .character-stat-panel {
    height: 430px;
    min-height: 430px;
    overflow-y: auto;
  }
}

@media (min-width: 1500px) {
  body .character-stat-panel {
    height: 505px;
    min-height: 505px;
  }
}

@media (max-width: 620px) {
  :root[data-text-size="large"] {
    --read-body: 14px;
    --read-small: 12px;
    --read-label: 12px;
    --read-control: 14px;
  }

  :root[data-text-size="xlarge"] {
    --read-body: 16px;
    --read-small: 14px;
    --read-label: 13px;
    --read-control: 15px;
  }

  body .preference-grid {
    grid-template-columns: 1fr;
  }

  body .button {
    min-height: 42px;
  }

  /* Item sheets scroll internally. Interactive rows must stay above their
     long, readable modifier lists during touch hit-testing. */
  body
    .game-tooltip.is-bottom-sheet
    :is(.mobile-advanced-toggle, .game-tooltip-actions) {
    position: relative;
    z-index: 5;
  }
}

/* source: mobile-polish.css */
/* Mobile comfort pass: larger touch/read targets with less vertical travel. */
.multi-loot-bundle {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(215, 177, 105, 0.3);
  background: rgba(7, 10, 22, 0.86);
}
.multi-loot-bundle > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.multi-loot-bundle > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.multi-loot-bundle article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}
.multi-loot-bundle img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}
.multi-loot-bundle span,
.multi-loot-bundle b,
.multi-loot-bundle small,
.multi-loot-bundle em {
  display: block;
  min-width: 0;
}
.multi-loot-bundle b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.multi-loot-bundle small {
  color: #caa96f;
  font-size: 9px;
  text-transform: uppercase;
}
.multi-loot-bundle em {
  color: #98a2b6;
  font-size: 9px;
  font-style: normal;
}

@media (max-width: 850px) {
  body[data-view="missions"] .quest-givers {
    display: flex;
    gap: 10px;
    min-height: 0;
    margin-inline: -10px;
    padding: 58px 10px 8px;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
  }
  body[data-view="missions"] .quest-giver {
    flex: 0 0 min(82vw, 330px);
    grid-template-columns: 62px minmax(0, 1fr);
    scroll-snap-align: start;
  }
  body[data-view="missions"] .quest-parchment {
    min-height: 218px;
    padding: 8px;
  }
  body[data-view="missions"] .quest-parchment > p {
    display: none;
  }
  body[data-view="missions"] .quest-npc-focus {
    min-height: 72px;
  }
  body[data-view="missions"] .mission-drops small,
  body[data-view="missions"] .random-drop-preview small {
    font-size: 6px;
  }
  html {
    scroll-padding-bottom: 78px;
  }
  body {
    font-size: 14px;
  }
  .content,
  .location-screen {
    padding: 10px 10px calc(76px + env(safe-area-inset-bottom));
  }
  .location-screen {
    gap: 10px;
  }
  .location-heading,
  .location-hero__content,
  .collection-heading {
    padding: 16px;
  }
  .location-heading h1,
  .location-hero h1 {
    font-size: clamp(25px, 8vw, 36px);
    line-height: 1.02;
  }
  .location-heading p,
  .location-hero p {
    margin-block: 5px 9px;
    font-size: 13px;
    line-height: 1.42;
  }
  .location-section-heading {
    margin-bottom: 9px;
  }
  .location-section-heading h2 {
    margin: 2px 0;
    font-size: 19px;
  }
  .location-section-heading p {
    margin: 3px 0;
    font-size: 12px;
    line-height: 1.4;
  }
  .card,
  .collection-section {
    padding: 12px;
  }
  .button,
  button {
    min-height: 42px;
  }
  .tag,
  .eyebrow {
    font-size: 10px;
  }

  .citadel-scene {
    min-height: 530px;
  }
  .world-map {
    min-height: 560px;
  }
  .combat-stage,
  .combat-stage[data-combat-stage] {
    min-height: 410px;
  }
  .combat-toolbar {
    gap: 7px;
    padding: 8px;
  }
  .combat-toolbar .combat-current-status {
    font-size: 11px;
  }
  .combat-result-grid {
    gap: 8px;
  }
  .combat-log {
    max-height: 210px;
  }

  .collection-summary {
    gap: 5px;
  }
  .collection-journal,
  .collection-section,
  .collection-summary,
  .collection-summary > div {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  .collection-summary > div {
    gap: 3px;
    padding: 9px;
  }
  .collection-summary span {
    font-size: 9px;
  }
  .boss-hunt-grid,
  .class-challenge-grid {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    padding-bottom: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .boss-hunt-card,
  .class-challenge {
    flex: 0 0 min(84vw, 390px);
    width: min(84vw, 390px);
    min-width: 0;
    box-sizing: border-box;
    scroll-snap-align: start;
  }
  .boss-hunt-card {
    min-height: 0;
  }
  .boss-records {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .raid-piece-journal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .collection-piece {
    min-height: 52px;
    padding: 7px;
  }
  .returning-grid {
    gap: 5px;
  }

  .inventory-toolbar {
    gap: 6px;
  }
  .inventory-toolbar label {
    min-width: 0;
  }
  .inventory-grid {
    gap: 6px;
  }
  .returning-summary > div {
    max-height: calc(100dvh - 20px);
    overflow: auto;
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .location-heading,
  .location-hero__content,
  .collection-heading {
    padding: 13px;
  }
  .collection-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }
  .collection-heading p {
    display: none;
  }
  .collection-total b {
    font-size: 28px;
  }
  .collection-total small {
    max-width: 70px;
    font-size: 8px;
    text-align: center;
  }
  .boss-hunt-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    padding: 10px;
  }
  .boss-records {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .boss-records span {
    padding: 5px;
  }
  .raid-piece-journal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-piece {
    gap: 6px;
  }
  .collection-piece b {
    font-size: 11px;
  }
  .collection-piece small {
    font-size: 8px;
  }
  .class-challenge {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .challenge-class {
    min-height: 98px;
  }
  .profile-showcase-strip {
    display: flex;
    overflow-x: auto;
  }
  .profile-showcase-strip > span {
    flex: 0 0 31%;
  }
  .returning-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .returning-grid span {
    padding: 6px;
  }

  .collection-bonus-list {
    gap: 3px;
  }
  .collection-bonus-list span {
    padding: 4px 5px;
    font-size: 9px;
  }

  .combat-stage,
  .combat-stage[data-combat-stage] {
    min-height: 370px;
  }
  .combat-log {
    max-height: 170px;
  }
  .loot-reveal {
    padding: 12px;
  }
  .first-loot-compare {
    gap: 5px;
  }
  .multi-loot-bundle > div:last-child {
    grid-template-columns: 1fr;
  }
  .multi-loot-bundle article {
    padding: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boss-hunt-grid,
  .class-challenge-grid {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

/* source: phase11.css */
/* Phase 11 — clarity and mobile flow polish. */
.objective-progress-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(380px, 100%);
}

.objective-progress-row .objective-progress {
  flex: 1;
  width: auto;
}

.objective-progress-row em {
  min-width: 34px;
  color: #bca986;
  font: 700 9px "DM Mono";
  font-style: normal;
  text-align: right;
}

.objective-bar.is-complete .objective-sigil,
.objective-bar.is-complete .objective-progress-row em {
  color: #77d5a0;
}

.objective-bar.is-complete .objective-progress i {
  background: linear-gradient(90deg, #397c5d, #77d5a0);
  box-shadow: 0 0 10px rgba(119, 213, 160, 0.65);
}

.victory-banner,
.defeat-banner {
  padding: 10px 12px;
  border-left: 3px solid #6acb91;
  background: linear-gradient(90deg, rgba(67, 143, 98, 0.16), transparent);
}

.defeat-banner {
  border-left-color: #d66b69;
  background: linear-gradient(90deg, rgba(155, 61, 61, 0.16), transparent);
}

.victory-banner h2,
.defeat-banner h2 {
  margin: 3px 0;
}

.loot-reveal::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: currentColor;
  box-shadow: 0 0 15px currentColor;
}

.first-loot-compare strong {
  padding: 5px 7px;
  border: 1px solid currentColor;
  background: rgba(108, 240, 169, 0.06);
}

@media (max-width: 850px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .topbar {
    height: 54px;
  }

  #view {
    min-height: calc(100dvh - 116px);
  }

  .objective-bar {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px 10px;
  }

  .objective-copy {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .objective-copy > .objective-sigil,
  .objective-copy > div > small,
  .objective-copy > div > span {
    display: none;
  }

  .objective-copy small {
    font-size: 8px;
    line-height: 1.1;
  }

  .objective-copy b {
    font-size: 12px;
    line-height: 1.35;
  }

  .objective-progress-row {
    gap: 5px;
    margin-top: 3px;
  }

  .objective-progress-row .objective-progress {
    margin: 0;
  }

  .objective-progress-row em {
    min-width: 28px;
    font-size: 8px;
  }

  .objective-bar .button {
    width: auto;
    min-width: 76px;
    min-height: 40px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .mobile-dock {
    height: calc(60px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-dock button {
    min-height: 58px;
  }

  .mobile-dock button span {
    font-size: 18px;
  }

  .alpha-feedback-fab {
    display: none;
  }

  .citadel-scene {
    min-height: 530px;
  }

  .citadel-status {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .citadel-status .button {
    grid-column: auto;
    min-width: 74px;
    min-height: 40px;
    padding: 7px;
    font-size: 0;
  }

  .citadel-status .button::after {
    content: "KAMPF";
    font: 800 9px "DM Mono";
  }

  .combat-toolbar {
    gap: 7px;
  }

  .combat-toolbar .eyebrow {
    font-size: 8px;
  }

  .combat-controls {
    gap: 6px;
  }

  .combat-skip {
    min-height: 38px;
  }

  .combat-stage,
  .combat-stage[data-combat-stage] {
    min-height: 360px;
  }

  .combat-result-grid {
    margin-top: 8px;
  }

  .combat-log,
  .combat-rewards {
    min-height: 0;
    padding: 12px;
  }

  .combat-log__entries {
    max-height: 135px;
  }

  .loot-reveal .loot-icon {
    width: 82px;
    height: 82px;
    margin: 4px auto;
  }

  .loot-reveal h2 {
    font-size: 18px;
  }

  .loot-reveal p {
    font-size: 10px;
  }

  .first-loot-compare {
    margin-top: 7px;
  }

  .loot-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
  }

  .loot-actions .button {
    min-height: 40px;
    padding: 6px;
    font-size: 9px;
  }

  .combat-end-actions {
    position: relative;
    z-index: 12;
    padding: 7px;
    border: 1px solid rgba(198, 155, 85, 0.24);
    background: rgba(8, 9, 12, 0.94);
  }
}

@media (max-width: 520px) {
  .content,
  .location-screen {
    padding-inline: 9px;
  }

  .citadel-title {
    top: 3%;
  }

  .citadel-title h1 {
    font-size: 27px;
  }

  .combat-stage,
  .combat-stage[data-combat-stage] {
    min-height: 350px;
  }

  .combatants {
    inset: 64px 2px 108px;
  }

  .combat-vitals {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .objective-progress i,
  .loot-reveal::after {
    transition: none;
  }
}

/* Phase 11 — public RPG profile. Kept in the existing layer to avoid a second
   phase stylesheet and deliberately scoped so later gameplay screens do not move. */
body[data-view="profile"] #currentObjective,
body[data-view="profile"] #sectionNavigation,
body[data-view="profile"] #contextResources {
  display: none !important;
}

.profile-loading {
  min-height: 55vh;
  display: grid;
  place-content: center;
  text-align: center;
}
.public-profile {
  position: relative;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px;
  color: #ddd5c7;
}
.public-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background:
    radial-gradient(
      circle at 18% 4%,
      color-mix(in srgb, var(--profile-accent) 45%, transparent),
      transparent 34%
    ),
    linear-gradient(135deg, rgba(164, 125, 67, 0.08), transparent 42%);
}
.public-profile-header {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  min-height: 230px;
  align-items: end;
  gap: 22px;
  padding: 46px 28px 20px;
  overflow: hidden;
  border: 1px solid rgba(186, 148, 91, 0.38);
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.28), rgba(5, 7, 11, 0.92) 48%),
    var(--profile-art) 8% 20%/420px auto no-repeat,
    #090b10;
  box-shadow:
    inset 0 0 70px #050609,
    0 14px 40px rgba(0, 0, 0, 0.32);
}
.public-profile-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 2px solid color-mix(in srgb, var(--profile-accent) 65%, #aa8957);
  opacity: 0.7;
}
.public-profile.ascension-1 .public-profile-header::after,
.public-profile.ascension-2 .public-profile-header::after {
  box-shadow: inset 0 12px 25px rgba(133, 105, 178, 0.12);
}
.public-profile.ascension-3 .public-profile-header::after,
.public-profile.ascension-4 .public-profile-header::after {
  box-shadow: inset 0 18px 38px rgba(133, 105, 178, 0.22);
}
.public-profile.ascension-5 .public-profile-header::after,
.public-profile.ascension-6 .public-profile-header::after,
.public-profile.ascension-7 .public-profile-header::after,
.public-profile.ascension-8 .public-profile-header::after,
.public-profile.ascension-9 .public-profile-header::after {
  box-shadow: inset 0 24px 55px rgba(118, 91, 173, 0.3);
}
.public-profile.ascension-10 .public-profile-header::after {
  background: radial-gradient(
    circle at 78% 0,
    rgba(171, 139, 211, 0.24),
    transparent 32%
  );
  box-shadow: inset 0 0 45px rgba(134, 101, 187, 0.28);
}
.profile-back {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
}
.public-profile-portrait {
  width: 138px;
  aspect-ratio: 1;
  align-self: end;
  border: 2px solid #927344;
  border-radius: 50%;
  background:
    linear-gradient(0deg, rgba(4, 5, 8, 0.35), transparent),
    var(--profile-art) 50% 13%/210% auto no-repeat;
  box-shadow:
    inset 0 0 22px #050608,
    0 0 0 5px rgba(25, 20, 17, 0.88),
    0 0 0 7px rgba(157, 122, 68, 0.45);
}
.public-profile-portrait[data-frame="eternal-crown"],
.public-profile-portrait[data-frame="first-ascension"] {
  border-color: #d4b875;
  box-shadow:
    inset 0 0 22px #050608,
    0 0 0 5px #18120c,
    0 0 0 8px #8e713d,
    0 0 24px rgba(192, 158, 88, 0.38);
}
.public-profile-portrait[data-frame*="astral"],
.public-profile-portrait[data-frame*="moon"] {
  border-color: #a68bd1;
  box-shadow:
    inset 0 0 22px #050608,
    0 0 0 5px #12101a,
    0 0 0 8px #655084,
    0 0 24px rgba(153, 118, 208, 0.35);
}
.public-profile-identity {
  position: relative;
  z-index: 1;
}
.public-profile-identity h1 {
  margin: 4px 0;
  font:
    700 clamp(32px, 4vw, 58px) Cinzel,
    serif;
  letter-spacing: 0.04em;
}
.public-profile-identity > p {
  margin: 0 0 18px;
  color: #afa28e;
  font: 700 11px "DM Mono";
  letter-spacing: 0.1em;
}
.public-profile-identity > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.public-profile-identity > div span,
.prestige-numbers span,
.profile-collection > div > span,
.raid-prestige span {
  min-width: 112px;
  padding: 8px 11px;
  border-left: 1px solid #80663e;
  background: rgba(9, 10, 14, 0.72);
}
.public-profile-identity small,
.profile-panel small {
  display: block;
  color: #9c8a70;
  font: 700 8px "DM Mono";
  letter-spacing: 0.11em;
}
.public-profile-identity b {
  font-size: 15px;
}
.profile-edit {
  position: relative;
  z-index: 2;
  align-self: end;
}
.public-profile-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(390px, 0.95fr) minmax(
      270px,
      0.66fr
    );
  gap: 12px;
  margin-top: 12px;
}
.profile-panel {
  border: 1px solid rgba(159, 127, 78, 0.3);
  background: linear-gradient(
    145deg,
    rgba(18, 19, 25, 0.96),
    rgba(8, 9, 13, 0.98)
  );
  padding: 14px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}
.profile-panel > header {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(164, 132, 82, 0.22);
  padding-bottom: 8px;
}
.profile-panel h2 {
  margin: 2px 0;
  font:
    600 19px Cinzel,
    serif;
}
.profile-equipment {
  grid-row: span 2;
}
.profile-equipment > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(62px, 1fr));
  gap: 9px;
}
.public-equipment-slot {
  min-width: 0;
  text-align: center;
}
.public-equipment-slot > small {
  min-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-equipment-slot .item-slot {
  width: 100%;
  max-width: 78px;
  margin: auto;
}
.profile-build {
  grid-column: 2;
}
.profile-build h3 {
  margin: 11px 0 6px;
  color: #aa956e;
  font: 700 9px "DM Mono";
  letter-spacing: 0.12em;
}
.profile-skill-row {
  display: flex;
  gap: 7px;
}
.profile-skill {
  width: 74px;
  padding: 0;
  border: 1px solid rgba(151, 121, 77, 0.35);
  color: #d7cdbd;
  background: #0b0d12;
}
.profile-skill img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.profile-skill span {
  display: block;
  padding: 4px;
  overflow: hidden;
  font-size: 8px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.profile-bonds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.profile-bonds article {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(151, 121, 77, 0.25);
  background: #090b10;
}
.profile-bonds i {
  flex: 0 0 50px;
  height: 50px;
  background: var(--bond-art) center/cover no-repeat;
}
.profile-bonds b,
.profile-bonds em {
  display: block;
  font-style: normal;
  font-size: 10px;
}
.profile-bonds em {
  color: #a99d8b;
  font-size: 8px;
}
.profile-prestige {
  grid-column: 3;
  grid-row: 1 / span 2;
}
.prestige-numbers,
.raid-prestige {
  display: grid;
  gap: 6px;
}
.prestige-numbers b,
.raid-prestige b {
  font-size: 16px;
}
.raid-prestige {
  margin-top: 12px;
}
.profile-prestige > p {
  color: #b7a47f;
  font: 700 9px "DM Mono";
}
.profile-collection {
  grid-column: 2;
}
.profile-collection > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}
.profile-collection > div > span {
  min-width: 0;
  padding: 7px;
}
.profile-showcase {
  grid-column: 2/4;
}
.profile-showcase > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.profile-trophy {
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(159, 127, 78, 0.35);
  background: linear-gradient(120deg, rgba(83, 60, 31, 0.15), transparent);
}
.profile-trophy b,
.profile-trophy span {
  display: block;
}
.profile-trophy span {
  color: #a99d8b;
  font-size: 9px;
}
.profile-hidden {
  color: #8f8678;
}
.profile-editor {
  position: relative;
  margin-top: 12px;
  padding: 18px;
  border: 1px solid #80663e;
  background: #090b10;
}
.profile-editor > header {
  display: flex;
  justify-content: space-between;
}
.profile-editor > div {
  margin-top: 14px;
}
.profile-cosmetic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.profile-cosmetic-grid .cosmetic-choice {
  min-height: 52px;
}
.profile-cosmetic-grid small {
  display: block;
}
.profile-editor form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-top: 16px;
}
.profile-editor form h2,
.profile-editor form p {
  flex-basis: 100%;
  margin: 0;
}
.profile-editor form label {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 180px;
  color: #a99a82;
  font: 700 9px "DM Mono";
}
.profile-editor select {
  min-height: 40px;
  color: #ddd3c3;
  border: 1px solid #665338;
  background: #0c0e13;
}
.arena-champion .champion-portrait {
  background:
    linear-gradient(0deg, rgba(4, 5, 8, 0.35), transparent),
    var(--champion-art) 50% 12%/210% auto no-repeat;
  cursor: pointer;
}
.champion-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.leaderboard-row:is(button) {
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.guild-member-profile {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 2px solid #765e3d;
  border-radius: 50%;
  color: #c9b895;
  background:
    linear-gradient(0deg, rgba(4, 5, 8, 0.3), transparent),
    var(--member-art) 50% 12%/210% auto no-repeat,
    #11131a;
}
.guild-member-profile[data-frame]:not([data-frame=""]),
.arena-champion .champion-portrait[data-frame]:not([data-frame=""]) {
  outline: 2px solid #80669f;
  outline-offset: 2px;
}
.guild-member-profile[data-frame="eternal-crown"],
.arena-champion .champion-portrait[data-frame="eternal-crown"] {
  border-color: #d2b36e;
  box-shadow:
    0 0 0 2px #1a130a,
    0 0 13px rgba(193, 154, 77, 0.35);
}

@media (max-width: 1180px) {
  .public-profile-grid {
    grid-template-columns: minmax(390px, 1fr) minmax(330px, 1fr);
  }
  .profile-prestige {
    grid-column: 2;
    grid-row: auto;
  }
  .profile-showcase {
    grid-column: 1/3;
  }
}

@media (max-width: 850px) {
  .public-profile {
    padding: 8px;
  }
  .public-profile-header {
    grid-template-columns: 90px 1fr;
    min-height: 310px;
    align-items: end;
    gap: 12px;
    padding: 52px 12px 14px;
    background:
      linear-gradient(0deg, #080a0f 8%, rgba(5, 7, 11, 0.15) 65%),
      var(--profile-art) 50% 7%/270px auto no-repeat,
      #090b10;
  }
  .public-profile-portrait {
    width: 82px;
  }
  .public-profile-identity h1 {
    font-size: 27px;
  }
  .public-profile-identity > div span {
    min-width: 82px;
    padding: 6px;
  }
  .profile-edit {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .public-profile-grid {
    display: flex;
    flex-direction: column;
  }
  .profile-equipment {
    order: 1;
  }
  .profile-build {
    order: 2;
  }
  .profile-prestige {
    order: 3;
  }
  .profile-collection {
    order: 4;
  }
  .profile-showcase {
    order: 5;
  }
  .profile-equipment > div {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .public-equipment-slot > small {
    font-size: 6px;
  }
  .profile-bonds {
    grid-template-columns: 1fr;
  }
  .profile-collection > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-showcase > div,
  .profile-cosmetic-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-profile::before,
  .public-profile-header::after {
    animation: none !important;
    transition: none !important;
  }
}

/* source: phase12-1.css */
/* Phase 12.1 — RPG game shell and navigation hierarchy. */
:root {
  --shell-width: 226px;
  --phase12-header: 86px;
}

.sidebar {
  width: var(--shell-width);
  padding: 18px 13px 50px;
}
.brand {
  justify-content: flex-start;
  padding-bottom: 22px;
}
.shell-profile-link {
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 58px;
  margin-bottom: 18px;
  padding: 8px;
  border-color: rgba(182, 138, 71, 0.3);
  background:
    linear-gradient(135deg, rgba(126, 91, 49, 0.13), transparent), #101116;
}
.shell-profile-link .avatar {
  width: 42px;
  height: 42px;
  background-size: 210% auto;
}
.shell-profile-link::after {
  display: none;
}
.shell-profile-link .profile-kicker {
  font-size: 6px;
}
.shell-profile-link .profile-copy > b {
  font-size: 12px;
}
.shell-profile-link .profile-copy > small {
  font-size: 8px;
}

#nav {
  gap: 6px;
}
#nav .nav-item {
  min-height: 54px;
}
#nav .nav-item > span {
  grid-column: 1;
  grid-row: 1 / 3;
}
#nav .nav-item > b {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 14px !important;
}
#nav .nav-item > small {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 8px !important;
  white-space: nowrap;
}

.topbar {
  height: var(--phase12-header);
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto auto;
  gap: clamp(14px, 2.5vw, 34px);
  padding-inline: clamp(16px, 2.4vw, 34px);
}
.global-hero {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 5px 12px 5px 5px;
  color: #efe5d5;
  border: 0;
  border-left: 1px solid rgba(216, 169, 91, 0.48);
  background: linear-gradient(90deg, rgba(183, 127, 54, 0.1), transparent 90%);
  text-align: left;
  cursor: pointer;
}
.global-hero__portrait {
  width: 48px;
  height: 62px;
  border: 1px solid #6a5334;
  background-position: 50% 17%;
  background-size: 225% auto;
  box-shadow:
    inset 0 0 13px #000,
    0 0 15px rgba(125, 89, 197, 0.16);
}
.global-hero__portrait[data-frame]:not([data-frame=""]) {
  outline: 2px solid #9671db;
  outline-offset: 2px;
}
.global-hero__identity {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
}
.global-hero__identity small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #a98755;
  font: 600 7px "DM Mono";
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-hero__identity b {
  overflow: hidden;
  font: 700 16px "Playfair Display";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-hero__identity em {
  align-self: center;
  color: #b9ad9b;
  font: 600 9px Manrope;
  font-style: normal;
  white-space: nowrap;
}
.global-hero__xp {
  grid-column: 1 / -1;
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid #29252a;
  background: #050609;
}
.global-hero__xp span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #514092, #a488ed);
}
.global-hero__xptext {
  grid-column: 1 / -1;
  margin-top: 2px;
  color: #8f877b;
  font: 600 7px "DM Mono";
}
.global-hero__power {
  min-width: 86px;
  padding-left: 13px;
  border-left: 1px solid #3d3428;
  text-align: right;
}
.global-hero__power small {
  display: block;
  color: #9e8a69;
  font: 600 7px "DM Mono";
  letter-spacing: 0.14em;
}
.global-hero__power b {
  color: #efc875;
  font: 800 17px Manrope;
}
.topbar .crumb {
  max-width: 180px;
  font-size: 11px;
  white-space: nowrap;
}
.resources {
  gap: 7px;
}
.resource {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-navigation {
  position: relative;
  z-index: 14;
  display: flex;
  gap: 2px;
  min-height: 43px;
  padding: 5px clamp(14px, 2.4vw, 34px);
  overflow-x: auto;
  border-bottom: 1px solid #2b261f;
  background: rgba(9, 10, 14, 0.96);
  scrollbar-width: none;
}
.section-navigation[hidden] {
  display: none;
}
.section-navigation button {
  flex: 0 0 auto;
  padding: 6px 12px;
  color: #8e8578;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: 700 9px Manrope;
  cursor: pointer;
}
.section-navigation button:hover {
  color: #ddd0ba;
}
.section-navigation button.active {
  color: #f1d49d;
  border-bottom-color: #d8a556;
}
.context-resources {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 5px clamp(14px, 2.4vw, 34px);
  border-bottom: 1px solid rgba(182, 138, 71, 0.15);
  background: rgba(14, 14, 17, 0.9);
}
.context-resources[hidden] {
  display: none;
}
.context-resources span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 7px;
  color: #b9aa94;
  border-left: 1px solid #453725;
}
.context-resources small {
  font-size: 7px;
  text-transform: uppercase;
}
.context-resources b {
  color: #e6c37e;
  font: 700 9px "DM Mono";
}

.objective-bar {
  min-height: 68px;
  padding-block: 8px;
}
.objective-copy b {
  font-size: 15px;
}
.objective-bar .button {
  min-width: 172px;
  background: linear-gradient(#d9aa5c, #a87331);
  color: #100d09;
}

.phase12-hub {
  max-width: 1540px;
  margin: auto;
  padding: clamp(22px, 3vw, 44px);
}
.phase12-hub__hero {
  position: relative;
  min-height: 245px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid #4b3c2a;
  background:
    linear-gradient(90deg, rgba(5, 6, 9, 0.94), rgba(5, 6, 9, 0.25)),
    var(--hub-art) center / cover;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.34);
}
.phase12-hub__hero > div {
  max-width: 680px;
  padding: clamp(24px, 4vw, 50px);
}
.phase12-hub__hero h1 {
  margin: 7px 0 8px;
  color: #f3e7d3;
  font: 700 clamp(32px, 4vw, 52px) "Playfair Display";
}
.phase12-hub__hero p {
  max-width: 580px;
  margin: 0;
  color: #bdb19f;
  font-size: 13px;
  line-height: 1.65;
}
.phase12-primary-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.phase12-path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid #44382a;
  background: linear-gradient(
    145deg,
    rgba(29, 27, 29, 0.96),
    rgba(10, 11, 15, 0.96)
  );
}
.phase12-path__icon {
  grid-row: 1 / 3;
  color: #dcaa59;
  font-size: 36px;
}
.phase12-path small,
.phase12-system-grid small,
.phase12-chronicle-grid small {
  color: #b48648;
  font: 700 8px "DM Mono";
  letter-spacing: 0.14em;
}
.phase12-path h2 {
  margin: 4px 0 7px;
  color: #f0e4d1;
  font: 700 25px "Playfair Display";
}
.phase12-path p {
  margin: 0 0 10px;
  color: #a9a094;
  font-size: 12px;
  line-height: 1.55;
}
.phase12-path div > b {
  color: #d8be8d;
  font-size: 11px;
}
.phase12-path > .button {
  grid-column: 2;
  width: 100%;
  margin-top: 5px;
}
.phase12-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 18px;
  padding: 14px;
  color: #ad8955;
  border: 1px solid rgba(182, 138, 71, 0.18);
  font: 700 9px "DM Mono";
  letter-spacing: 0.1em;
}
.phase12-loop i {
  color: #554a3d;
  font-style: normal;
}
.phase12-system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.phase12-system-grid button {
  min-height: 175px;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 20px;
  color: #dcd0bc;
  border: 1px solid #41372b;
  background: linear-gradient(145deg, #19191e, #0b0c10);
  text-align: left;
  cursor: pointer;
}
.phase12-system-grid button > span {
  color: #d5a14e;
  font-size: 30px;
}
.phase12-system-grid button > b {
  font: 700 21px "Playfair Display";
}
.phase12-system-grid button > em {
  color: #9f9688;
  font-size: 10px;
  font-style: normal;
}
.phase12-system-grid button:hover,
.phase12-chronicle-grid button:hover {
  border-color: #86663d;
  transform: translateY(-2px);
}
.is-preview {
  opacity: 0.62;
  filter: saturate(0.7);
}
.phase12-chronicle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.phase12-chronicle-grid button {
  min-height: 92px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  color: #ddd1be;
  border: 1px solid #3b3329;
  background: #111217;
  text-align: left;
  cursor: pointer;
}
.phase12-chronicle-grid button > span {
  color: #cfa056;
  font-size: 24px;
  text-align: center;
}
.phase12-chronicle-grid button div {
  display: grid;
  gap: 3px;
}
.phase12-chronicle-grid button b {
  font: 700 16px "Playfair Display";
}
.phase12-chronicle-grid button em {
  color: #938c82;
  font-size: 9px;
  font-style: normal;
}
.phase12-chronicle-grid button > i {
  color: #9c7b4a;
  font: 700 7px "DM Mono";
  font-style: normal;
}

.phase12-home {
  max-width: 1540px;
  margin: auto;
  padding: clamp(14px, 2.3vw, 34px);
}
.phase12-citadel {
  min-height: min(610px, calc(100vh - 285px));
}
.phase12-citadel .citadel-title {
  top: 7%;
}
.phase12-home-action {
  position: absolute;
  z-index: 6;
  bottom: 7%;
  left: 6%;
  width: min(480px, 88%);
  padding: 22px;
  border-left: 3px solid #d8a34f;
  background: linear-gradient(
    90deg,
    rgba(7, 8, 11, 0.95),
    rgba(12, 12, 16, 0.78)
  );
  box-shadow: 0 18px 45px #0009;
}
.phase12-home-action small {
  color: #c5964e;
  font: 700 8px "DM Mono";
  letter-spacing: 0.14em;
}
.phase12-home-action h2 {
  margin: 5px 0;
  color: #f1e4ce;
  font: 700 clamp(23px, 3vw, 34px) "Playfair Display";
}
.phase12-home-action p {
  margin: 0 0 15px;
  color: #b4aa9b;
  font-size: 11px;
}
.phase12-home-action .button {
  min-width: 230px;
}
.phase12-home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.phase12-home-cards button {
  min-height: 88px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  color: #ddd0bc;
  border: 1px solid #3c3328;
  background: rgba(15, 16, 20, 0.96);
  text-align: left;
  cursor: pointer;
}
.phase12-home-cards button > span {
  color: #d5a14e;
  font-size: 22px;
  text-align: center;
}
.phase12-home-cards button div {
  display: grid;
  gap: 2px;
}
.phase12-home-cards small {
  color: #a17b47;
  font: 700 9px "DM Mono";
}
.phase12-home-cards b {
  font: 700 17px "Playfair Display";
}
.phase12-home-cards em {
  overflow: hidden;
  color: #8f887e;
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phase12-home-cards button > i {
  color: #967346;
  font: 700 7px "DM Mono";
  font-style: normal;
}

body[data-shell-group="gear"] .inventory-toolbar {
  border-color: rgba(196, 150, 80, 0.35);
}
body[data-gear-subview="inventory"] .forge-workbench {
  display: none;
}
body[data-gear-subview="forge"] .equipped-panel {
  display: none;
}
body[data-shell-group="social"] .location-screen,
body[data-shell-group="hero"] .character-screen {
  max-width: 1540px;
  margin-inline: auto;
}

/* Preserve every legacy equipment slot while keeping the compact paperdoll
   readable. Full slot names remain available through the existing tooltips. */
.equipment-summary {
  width: min(100%, 650px);
  grid-template-columns: repeat(10, minmax(0, 1fr));
}
.equipment-summary .equipment-slot small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 8px;
}

@media (max-width: 1180px) {
  :root {
    --shell-width: 210px;
  }
  .topbar {
    grid-template-columns: minmax(300px, 1fr) auto;
  }
  .topbar .crumb {
    display: none;
  }
  .global-hero__power {
    min-width: 72px;
  }
  .phase12-system-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  :root {
    --shell-width: 280px;
    --phase12-header: 88px;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .sidebar {
    padding-bottom: 78px;
  }
  .sidebar #nav {
    display: none;
  }
  .topbar {
    height: var(--phase12-header);
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px 8px;
  }
  .menu-button {
    width: 30px;
    padding: 0;
  }
  .global-hero {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 7px;
    padding: 3px 5px 3px 3px;
  }
  .global-hero__portrait {
    width: 36px;
    height: 48px;
  }
  .global-hero__identity {
    column-gap: 5px;
  }
  .global-hero__identity small {
    font-size: 5px;
  }
  .global-hero__identity b {
    font-size: 12px;
  }
  .global-hero__identity em {
    font-size: 7px;
  }
  .global-hero__xptext {
    font-size: 6px;
  }
  .global-hero__power {
    min-width: 58px;
    padding-left: 6px;
  }
  .global-hero__power small {
    font-size: 5px;
  }
  .global-hero__power b {
    font-size: 11px;
  }
  .resources {
    width: auto;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 3px;
  }
  .resource {
    min-height: 27px;
    padding: 3px 4px;
    font-size: 7px;
  }
  .resource.gems {
    display: inline-flex !important;
  }
  .resource.energy {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .resource-art {
    width: 14px;
    height: 14px;
  }
  .settings {
    display: none;
  }
  .objective-bar {
    min-height: 64px;
  }
  .objective-copy b {
    font-size: 11px;
  }
  .objective-bar .button {
    min-width: 82px;
  }
  .section-navigation {
    min-height: 39px;
    padding-inline: 7px;
  }
  .section-navigation button {
    padding-inline: 9px;
    font-size: 8px;
  }
  .context-resources {
    justify-content: flex-start;
    overflow-x: auto;
    padding-inline: 8px;
  }
  .context-resources span {
    flex: 0 0 auto;
  }
  .phase12-hub {
    padding: 10px 9px 24px;
  }
  .phase12-hub__hero {
    min-height: 240px;
    background-position: 62% center;
  }
  .phase12-hub__hero > div {
    padding: 22px 18px;
  }
  .phase12-hub__hero h1 {
    font-size: 30px;
  }
  .phase12-hub__hero p {
    font-size: 11px;
  }
  .phase12-primary-paths {
    grid-template-columns: 1fr;
  }
  .phase12-path {
    padding: 18px 15px;
  }
  .phase12-path h2 {
    font-size: 21px;
  }
  .phase12-system-grid,
  .phase12-chronicle-grid {
    grid-template-columns: 1fr;
  }
  .phase12-system-grid button {
    min-height: 125px;
  }
  .phase12-loop {
    gap: 7px;
    font-size: 7px;
  }
  .phase12-home {
    padding: 8px 7px 20px;
  }
  .phase12-citadel {
    min-height: 510px;
    background-position: 52% center;
  }
  .phase12-citadel .citadel-title {
    top: 4%;
  }
  .phase12-home-action {
    right: 10px;
    bottom: 12px;
    left: 10px;
    width: auto;
    padding: 15px;
  }
  .phase12-home-action h2 {
    font-size: 22px;
  }
  .phase12-home-action .button {
    width: 100%;
    min-width: 0;
  }
  .phase12-home-cards {
    grid-template-columns: 1fr;
  }
  .phase12-home-cards button:nth-child(n + 3) {
    display: none;
  }
  #view {
    min-height: calc(100dvh - 190px);
  }
}

@media (max-width: 430px) {
  .global-hero__identity em {
    max-width: 102px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .global-hero__power {
    min-width: 50px;
  }
  .global-hero__power b {
    font-size: 10px;
  }
  .phase12-citadel {
    min-height: 475px;
  }
  .phase12-citadel .citadel-title h1 {
    font-size: 26px;
  }
  .phase12-home-action p {
    display: none;
  }
  .phase12-home-action h2 {
    font-size: 19px;
  }
}

/* Keep the existing accessibility preference effective in the new persistent
   identity header as well. */
:root[data-text-size="xlarge"] .global-hero__identity b {
  font-size: 18px;
}
@media (max-width: 850px) {
  :root[data-text-size="large"] .global-hero__identity b {
    font-size: 13px;
  }
  :root[data-text-size="xlarge"] .global-hero__identity b {
    font-size: 15px;
  }
}

/* source: phase12-1b.css */
/* Phase 12.1B — visual polish only. No gameplay values live here. */
.alpha-feedback-fab {
  display: none;
}

/* One continuous RPG identity instead of a row of stat boxes. */
.topbar {
  grid-template-columns: minmax(520px, 1fr) auto auto;
  gap: clamp(12px, 1.8vw, 28px);
}
.global-hero {
  max-width: 860px;
  grid-template-columns: 54px minmax(0, 1fr) 94px;
  padding-right: 15px;
  border-left-color: rgba(216, 169, 91, 0.62);
  background:
    radial-gradient(
      circle at 56px 50%,
      rgba(135, 91, 35, 0.16),
      transparent 170px
    ),
    linear-gradient(90deg, rgba(183, 127, 54, 0.08), transparent 88%);
}
.global-hero__identity {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 4px auto;
  column-gap: 12px;
}
.global-hero__identity b {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  font-size: clamp(14px, 1.05vw, 17px);
}
.global-hero__identity em {
  grid-column: 2;
  grid-row: 1;
}
.global-hero__identity small {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 1px;
  letter-spacing: 0.08em;
  text-transform: none;
}
.global-hero__xp {
  grid-column: 1 / -1;
  grid-row: 3;
}
.global-hero__xptext {
  grid-column: 1 / -1;
  grid-row: 4;
}
.global-hero__power {
  background: linear-gradient(90deg, rgba(218, 170, 90, 0.035), transparent);
}
.global-hero__power small {
  letter-spacing: 0.08em;
}
.resources .resource {
  border-color: rgba(158, 125, 76, 0.28);
  background: rgba(13, 14, 18, 0.72);
  box-shadow: none;
}

/* Stronger headings, quieter microcopy and fewer visible boxes. */
.phase12-hub__hero .eyebrow,
.phase12-path > div > small,
.phase12-home-action > small {
  letter-spacing: 0.1em;
}
.phase12-path {
  border-color: rgba(164, 128, 75, 0.3);
  background:
    radial-gradient(
      circle at 8% 20%,
      rgba(189, 142, 70, 0.07),
      transparent 190px
    ),
    rgba(16, 15, 18, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}
.phase12-path .button:not(.primary) {
  background: rgba(31, 31, 37, 0.75);
}
.phase12-loop {
  border: 0;
  background: transparent;
  opacity: 0.72;
}

/* The integrated home objective replaces the second competing global CTA. */
body[data-shell-group="home"] .objective-bar {
  display: none;
}
.phase12-citadel {
  border-color: rgba(187, 142, 72, 0.46);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}
.phase12-citadel .citadel-title h1 {
  text-shadow: 0 4px 25px #000;
}
.phase12-home-action {
  border-left-width: 3px;
  background: linear-gradient(
    100deg,
    rgba(7, 8, 12, 0.97),
    rgba(8, 8, 12, 0.82) 75%,
    transparent
  );
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
}
.phase12-home-cards button {
  border-color: rgba(159, 123, 71, 0.25);
  background: rgba(11, 12, 16, 0.7);
}

/* Hero overview: character art first, metadata secondary. */
.character-screen.phase7-character {
  max-width: 1520px;
  margin-inline: auto;
}
.character-profile-header {
  min-height: 126px;
  border-color: rgba(175, 137, 78, 0.35);
  background: linear-gradient(
    100deg,
    rgba(18, 15, 17, 0.94),
    rgba(8, 9, 13, 0.82)
  );
}
.character-profile-name h1 {
  max-width: min(800px, 62vw);
  overflow-wrap: anywhere;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 2.5vw, 40px);
}
.profile-showcase-strip {
  display: none;
}
.phase7-character > .contextual-hint {
  max-width: 560px;
  min-height: 0;
  margin: 12px 0;
  padding: 12px 18px;
  background: linear-gradient(
    90deg,
    rgba(27, 22, 20, 0.92),
    rgba(16, 15, 18, 0.78)
  );
}
.phase7-character > .contextual-hint p {
  margin-block: 3px;
}
.character-core {
  margin-top: 10px;
}
.character-paperdoll {
  border-color: rgba(173, 133, 75, 0.28);
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(125, 86, 42, 0.16),
      transparent 48%
    ),
    #07080b;
}
.character-stat-panel {
  border-color: rgba(157, 123, 74, 0.25);
  background: rgba(9, 10, 14, 0.78);
}
.hero-attributes > span {
  border-color: rgba(155, 123, 78, 0.22);
  background: rgba(14, 14, 18, 0.5);
}

/* Gear reads as a treasure table instead of a form dashboard. */
body[data-shell-group="gear"] .view-title {
  min-height: 96px;
  align-items: center;
  border-color: rgba(181, 139, 73, 0.36);
  background:
    radial-gradient(
      circle at 90% 40%,
      rgba(151, 105, 45, 0.09),
      transparent 35%
    ),
    rgba(14, 13, 16, 0.88);
}
body[data-shell-group="gear"] .view-title h1 {
  font-size: clamp(30px, 3vw, 43px);
}
.equipped-panel {
  border-color: rgba(160, 124, 71, 0.28);
  background: rgba(14, 14, 17, 0.72);
}
.capacity-head {
  border-color: rgba(157, 122, 67, 0.28);
  background: rgba(21, 19, 18, 0.78);
}
.inventory-toolbar {
  border-color: rgba(157, 122, 67, 0.25);
  background: rgba(9, 10, 14, 0.88);
}
.inventory-grid .item-slot {
  background-color: rgba(12, 13, 17, 0.88);
}
.inventory-grid .item-slot[class*="rarity-"] {
  box-shadow: inset 0 -2px 0 currentColor;
}

/* World boss: one restrained status overlay, one dominant gold action. */
.world-boss-location .location-stats {
  top: 34px;
  width: min(500px, 42%);
  padding: 0;
  border-color: rgba(151, 124, 208, 0.32);
  background: rgba(7, 7, 15, 0.72);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
}
.world-boss-location .location-stat {
  min-height: 72px;
  border: 0;
  border-left: 1px solid rgba(179, 157, 223, 0.13);
}
.world-boss-location .location-stat small {
  letter-spacing: 0.08em;
  text-transform: none;
}
.world-boss-location .location-hero__heading {
  max-width: 590px;
}
.world-boss-location .location-hero__actions {
  bottom: 62px;
}
.world-boss-attack {
  min-height: 58px;
  border-color: #d8ad62;
  background: linear-gradient(#d5a857, #8f5d25);
  color: #100d09;
  box-shadow: 0 8px 28px rgba(192, 138, 60, 0.22);
}

@media (max-width: 1500px) {
  .topbar {
    grid-template-columns: minmax(430px, 1fr) auto;
  }
  .topbar .crumb {
    display: none;
  }
  .alpha-feedback-fab {
    display: none;
  }
}

@media (max-width: 850px) {
  :root {
    --phase12-header: 82px;
  }
  body,
  .main,
  #view {
    max-width: 100vw;
    overflow-x: hidden;
  }
  .topbar {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
  .global-hero {
    grid-template-columns: 36px minmax(0, 1fr) 52px;
    gap: 6px;
    padding-right: 4px;
  }
  .global-hero__identity {
    column-gap: 4px;
  }
  .global-hero__identity b {
    font-size: clamp(11px, 3.3vw, 14px);
  }
  .global-hero__identity em {
    font-size: 7px;
  }
  .global-hero__identity small {
    max-width: 100%;
    font-size: 6px;
  }
  .global-hero__power {
    min-width: 48px;
    padding-left: 5px;
  }
  .resources {
    gap: 2px;
  }
  .resource {
    border: 0;
    background: transparent;
  }

  body[data-shell-group="home"] .phase12-home {
    padding-top: 6px;
  }
  .phase12-citadel {
    min-height: 430px;
  }
  .phase12-citadel .citadel-title {
    top: 5%;
  }
  .phase12-citadel .citadel-title h1 {
    font-size: 30px;
  }
  .phase12-home-action {
    padding: 13px 14px;
  }
  .phase12-home-action h2 {
    font-size: 20px;
  }
  .phase12-home-cards button {
    min-height: 92px;
  }

  .phase12-hub__hero {
    min-height: 205px;
  }
  .phase12-hub__hero > div {
    padding: 18px 16px;
  }
  .phase12-hub__hero h1 {
    font-size: 31px;
  }
  .phase12-hub__hero p {
    font-size: 11px;
    line-height: 1.5;
  }
  .phase12-path {
    min-height: 0;
    padding: 15px 13px;
  }
  .phase12-path h2 {
    font-size: 20px;
  }
  .phase12-path p {
    line-height: 1.5;
  }

  .phase7-character .character-profile-header,
  .phase7-character .profile-showcase-strip {
    display: none;
  }
  .phase7-character > .contextual-hint {
    max-width: none;
    margin: 8px 9px;
    padding: 9px 12px;
    font-size: 10px;
  }
  .phase7-character > .contextual-hint p {
    line-height: 1.35;
  }
  .character-core {
    margin-top: 7px;
  }
  .character-paperdoll {
    min-height: 610px;
  }
  .hero-figure__art {
    background-position: 50% top;
  }

  body[data-shell-group="gear"] .view-title {
    min-height: 82px;
    padding: 14px;
  }
  body[data-shell-group="gear"] .view-title h1 {
    font-size: 28px;
  }
  .equipped-panel {
    min-width: 0;
    max-width: 100%;
    padding: 10px;
  }
  .equipment-summary {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    grid-template-columns: repeat(10, 58px);
  }
  .inventory-toolbar,
  .inventory-grid {
    min-width: 0;
    max-width: 100%;
  }
  .inventory-toolbar {
    position: static;
    z-index: auto;
    grid-template-columns: 1fr 1fr;
  }
  #mobileDock {
    position: fixed !important;
    inset-inline: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 26 !important;
    isolation: isolate;
    pointer-events: auto !important;
  }
  #mobileDock button {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
  }

  .world-boss-location .location-stats {
    position: relative;
    inset: auto;
    width: auto;
    margin: -8px 12px 12px;
  }
  .world-boss-location .location-hero__actions {
    bottom: 24px;
  }

  /* After resolution the loot decision is the mobile screen, not a second
     viewport below an already-finished battlefield. */
  .combat-screen.combat-finished > .combat-toolbar,
  .combat-screen.combat-finished > .combat-stage,
  .combat-screen.combat-finished .combat-log {
    display: none;
  }
  .combat-screen.combat-finished .combat-result-grid {
    margin-top: 8px;
  }
  .combat-screen.combat-finished .combat-rewards {
    padding: 10px;
  }
  .combat-screen.combat-finished .contextual-hint {
    padding: 10px 12px;
  }
  .combat-screen.combat-finished .combat-end-actions {
    margin-bottom: 72px;
  }
}

@media (max-width: 430px) {
  .global-hero__identity em {
    max-width: 88px;
  }
  .phase12-citadel {
    min-height: 410px;
  }
  .phase12-citadel .citadel-title h1 {
    font-size: 27px;
  }
  .phase12-home-action p {
    display: block;
    font-size: 9px;
  }
}

/* source: phase12-2.css */
.item-slot-marker.unique {
  inset: 5px auto auto 5px;
  color: #f6d680;
  background: radial-gradient(circle, #563c87, #171020 72%);
  box-shadow: 0 0 13px rgb(157 105 255 / 72%);
}

.game-tooltip-item.is-unique {
  border-color: rgb(197 151 255 / 64%);
  box-shadow:
    0 20px 55px rgb(0 0 0 / 72%),
    inset 0 0 48px rgb(105 52 163 / 10%);
}

.game-tooltip-item.is-unique > header img {
  object-fit: contain;
  filter: drop-shadow(0 0 13px rgb(184 124 255 / 58%));
}

.game-tooltip-unique {
  margin: 13px 0;
  padding: 15px 16px;
  border-block: 1px solid rgb(197 151 255 / 38%);
  background: linear-gradient(90deg, rgb(89 44 126 / 22%), transparent);
}

.game-tooltip-unique small,
.unique-reveal-copy small {
  color: #d9b7ff;
  letter-spacing: 0.12em;
}

.game-tooltip-unique h3,
.unique-reveal-copy h3 {
  margin: 4px 0 7px;
  color: #f4dfae;
  font-family: var(--font-display, serif);
}

.game-tooltip-item blockquote {
  margin: 10px 0;
  color: #bdb4c8;
  font-style: italic;
}

.tooltip-origin,
.tooltip-roll-quality {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  color: #c7bdcf;
}

.tooltip-roll-quality b {
  color: #f0ce77;
}

.unique-reveal-copy {
  width: min(100%, 460px);
  margin: 10px auto 16px;
  padding: 14px 18px;
  border-block: 1px solid rgb(204 157 255 / 45%);
  background: rgb(37 18 52 / 74%);
}

.unique-reveal-copy > strong {
  display: block;
  margin-bottom: 8px;
  color: #ffe39a;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px #a773ff;
}

.unique-reveal-copy p {
  margin: 0 0 8px;
}
.unique-reveal-copy em {
  color: #aaa0b8;
}

.unique-journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.unique-journal-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgb(170 120 223 / 28%);
  background: linear-gradient(145deg, rgb(28 19 38 / 96%), rgb(10 10 16 / 96%));
}

.unique-journal-art {
  display: grid;
  height: 128px;
  place-items: center;
  margin-bottom: 10px;
  background: radial-gradient(circle, rgb(111 63 150 / 22%), transparent 68%);
}

.unique-journal-art img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgb(167 105 223 / 42%));
}

.unique-journal-art.silhouette img {
  filter: brightness(0) opacity(0.44) drop-shadow(0 0 8px #6e4b84);
}

.unique-journal-card h3 {
  margin: 5px 0;
  color: #ecd9aa;
}
.unique-journal-card p {
  min-height: 3.8em;
  color: #b9b0c3;
}
.unique-journal-card em {
  color: #92889d;
}

.world-drop-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.world-drop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 210px;
}

.world-drop img {
  object-fit: contain;
}
.world-drop.silhouette img {
  filter: brightness(0) opacity(0.55);
}

.affixes .unique-effect {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-block: 1px solid rgb(186 135 236 / 38%);
  color: #ddd0e7;
}

.affixes .unique-effect b {
  color: #f1d28b;
}

.tooltip-origin-marker {
  margin-top: 10px;
  color: #d8b86f;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.game-tooltip-unique {
  border-block: 1px solid rgb(196 147 235 / 42%);
  padding: 12px 0;
}

.game-tooltip-unique > small,
.advanced-unique-effect header span {
  color: #e9c46f;
  letter-spacing: 0.15em;
}

.unique-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.unique-keywords span {
  border: 1px solid rgb(219 184 111 / 38%);
  padding: 2px 6px;
  color: #d9caa7;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.unique-build-synergy {
  display: block;
  margin-top: 9px;
  color: #b9d6ae;
  font-size: 0.72rem;
}
.advanced-unique-effect {
  margin-top: 10px;
  border-top: 1px solid rgb(196 147 235 / 28%);
  padding-top: 9px;
}
.advanced-unique-effect header,
.advanced-unique-effect > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.advanced-unique-effect header {
  display: flex;
  justify-content: space-between;
}
.advanced-unique-effect > div span {
  display: grid;
  gap: 2px;
}
.advanced-unique-effect > div small {
  color: #94899d;
  font-size: 0.65rem;
}

.hero-gear-slot-wrap.signature-slot {
  position: relative;
}
.hero-gear-slot-wrap.signature-slot::after {
  content: "SIGNATURE";
  position: absolute;
  inset: auto 5px 4px auto;
  color: #ead190;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.unique-proc-banner {
  position: absolute;
  z-index: 8;
  inset: 23% auto auto 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 7px 11px;
  border: 1px solid rgb(219 184 111 / 58%);
  background: linear-gradient(110deg, rgb(26 17 34 / 94%), rgb(56 34 68 / 92%));
  box-shadow: 0 0 18px rgb(153 91 205 / 24%);
  transform: translateX(-50%);
  animation: signature-proc-in 0.28s ease-out both;
}
.unique-proc-banner.is-hidden {
  display: none;
}
.unique-proc-banner > span {
  color: #e9c46f;
  font-size: 1.1rem;
}
.unique-proc-banner div {
  display: grid;
}
.unique-proc-banner small {
  color: #b9a9c8;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}
.unique-proc-banner b {
  color: #f0dfb2;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.unique-log {
  color: #e8cb81;
}
.signature-contribution {
  border-color: rgb(192 137 229 / 35%);
}

@keyframes signature-proc-in {
  from {
    opacity: 0;
    transform: translate(-50%, 6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .unique-proc-banner {
    animation: none;
  }
}

@media (max-width: 600px) {
  .unique-journal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .unique-journal-card {
    padding: 10px;
  }
  .unique-journal-art {
    height: 92px;
  }
  .unique-journal-art img {
    width: 86px;
    height: 86px;
  }
  .unique-journal-card p {
    min-height: 0;
    font-size: 0.82rem;
  }
  .game-tooltip-item.is-unique {
    max-height: min(78vh, 690px);
    overflow-y: auto;
  }
  .unique-reveal-copy {
    padding: 10px 12px;
  }
  .advanced-unique-effect > div {
    grid-template-columns: 1fr;
  }
  .unique-proc-banner {
    inset-block-start: 18%;
    max-width: 220px;
  }
}

/* source: phase12-3.css */
.chronicle-tabs {
  display: flex;
  gap: 8px;
  margin: 22px auto 4px;
  max-width: 760px;
  padding: 5px;
  border: 1px solid rgba(196, 166, 102, 0.22);
  border-radius: 14px;
  background: rgba(8, 10, 20, 0.72);
}
.chronicle-tabs button {
  flex: 1;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #aaa9b5;
  font: 700 13px/1 var(--font-ui);
  cursor: pointer;
}
.chronicle-tabs button.active {
  background: linear-gradient(
    135deg,
    rgba(127, 76, 180, 0.48),
    rgba(72, 43, 112, 0.42)
  );
  color: #f1e5ff;
  box-shadow: inset 0 0 0 1px rgba(200, 165, 255, 0.22);
}
.boss-notable-drops .pity-status {
  display: block;
  margin-top: 7px;
  color: #c6bdad;
  font-size: 12px;
}
.map-node small {
  max-width: 150px;
  white-space: normal;
  line-height: 1.25;
}
.tooltip-stat-deltas {
  margin: 12px 0;
  padding: 12px 14px;
  border-top: 1px solid rgba(197, 167, 105, 0.2);
  border-bottom: 1px solid rgba(197, 167, 105, 0.2);
  background: rgba(10, 13, 25, 0.5);
}
.tooltip-stat-deltas header {
  display: flex;
  justify-content: space-between;
  color: #bda66e;
}
.tooltip-stat-deltas header b {
  color: #c7a6f1;
  font-size: 11px;
}
.tooltip-stat-deltas ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 9px 0 5px;
  padding: 0;
  list-style: none;
}
.tooltip-stat-deltas li {
  display: flex;
  gap: 7px;
  color: #c9c6cf;
  font-size: 12px;
}
.tooltip-stat-deltas li span {
  min-width: 65px;
  font-weight: 800;
}
.tooltip-stat-deltas .gain span {
  color: #7ed9a1;
}
.tooltip-stat-deltas .loss span {
  color: #ef9a92;
}
.tooltip-stat-deltas p {
  margin: 6px 0 0;
  color: #85828d;
  font-size: 10px;
}
.tooltip-origin {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 0;
  padding: 9px 12px;
  border-left: 2px solid #8d6cb1;
  background: rgba(93, 63, 127, 0.12);
}
.tooltip-origin small {
  color: #958ba3;
  font-size: 9px;
  letter-spacing: 0.11em;
}
.tooltip-origin b {
  color: #ded5e7;
  font-size: 12px;
}
.game-tooltip-item h2 {
  overflow-wrap: anywhere;
}
.home-special-drops {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border-top: 1px solid rgba(201, 171, 106, 0.2);
}
.home-special-drops header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  color: #c6a961;
}
.home-special-drops header button {
  border: 0;
  background: none;
  color: #b99adc;
  cursor: pointer;
}
.home-special-drops article {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 6px 0;
  color: #d9d2df;
  font-size: 12px;
}
.home-special-drops article span {
  color: #918b98;
  text-align: right;
}
@media (max-width: 850px) {
  .chronicle-tabs {
    margin: 14px 12px 2px;
  }
  .tooltip-stat-deltas ul {
    grid-template-columns: 1fr;
  }
  .game-tooltip-item header h2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.14;
  }
  .home-special-drops {
    margin: 12px;
  }
  .home-special-drops article {
    display: block;
  }
  .home-special-drops article span {
    display: block;
    margin-top: 2px;
    text-align: left;
  }
}
.community-location input {
  color: #c8c5ce;
}
.feedback-location input,
.feedback-location select,
.feedback-location textarea {
  color: #c8c5ce;
}
#view input,
#view select,
#view textarea {
  color: #c8c5ce;
}

/* source: phase13.css */
/* Phase 13 — World Progression 2.0 */
.world-map-heading {
  min-height: 240px;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(6, 8, 18, 0.96), rgba(6, 8, 18, 0.48)),
    var(--region-art) center/cover;
  border-radius: 18px;
  padding: 32px;
}
.world-map-heading h1 {
  font-family: var(--font-display, serif);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  margin: 0.25rem 0 0.8rem;
}
.world-map-heading p {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.65;
}
.legacy-world-map-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.world-map-canvas {
  padding: 26px 24px;
  margin-top: 18px;
  border: 1px solid rgba(190, 164, 255, 0.14);
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(104, 74, 173, 0.17),
      transparent 55%
    ),
    rgba(7, 9, 19, 0.78);
  border-radius: 20px;
  overflow: auto;
}
.map-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(125px, 1fr));
  gap: 24px;
  min-width: 1380px;
  position: relative;
  padding: 12px;
}
.map-track:before {
  content: "";
  position: absolute;
  top: 43px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(
    90deg,
    #b99555 0 45%,
    rgba(150, 130, 180, 0.18) 45%
  );
  z-index: 0;
}
.map-node {
  position: relative;
  z-index: 1;
  min-height: 112px;
  padding: 8px;
  background: none;
  border: 0;
  color: #8d8fa0;
  text-align: center;
  cursor: pointer;
}
.map-node > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid rgba(155, 142, 183, 0.28);
  background: #0a0d19;
  font-size: 1.35rem;
  box-shadow: 0 0 0 7px #080b15;
}
.map-node b {
  display: block;
  color: #c9cad2;
  font-family: var(--font-display, serif);
  font-size: 1rem;
  line-height: 1.1;
}
.map-node small {
  display: block;
  margin-top: 6px;
  font-size: 0.66rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
}
.map-node.complete > span {
  color: #18120a;
  background: #d2ab66;
  border-color: #f2d397;
}
.map-node.current > span {
  border-color: #b89afc;
  box-shadow:
    0 0 0 7px #080b15,
    0 0 28px rgba(156, 104, 255, 0.55);
}
.map-node.current b {
  color: #f5eaff;
}
.region-heading {
  margin: 38px 0 18px;
}
.region-heading h2 {
  font: 700 clamp(1.9rem, 4vw, 3.1rem)/1 var(--font-display, serif);
  margin: 0.3rem 0;
}
.region-heading p {
  color: #aaa8b7;
}
.region-expedition {
  padding: 0;
  overflow: hidden;
  border-color: rgba(191, 169, 125, 0.18);
  background: rgba(7, 9, 18, 0.86);
}
.region-hero {
  min-height: 330px;
  padding: 52px 46px 34px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  background:
    linear-gradient(
      90deg,
      rgba(6, 8, 17, 0.97) 0%,
      rgba(6, 8, 17, 0.75) 48%,
      rgba(6, 8, 17, 0.2)
    ),
    var(--region-art) center/cover;
}
.region-hero > div:first-child {
  max-width: 750px;
}
.region-hero h2 {
  font: 700 clamp(2.25rem, 5vw, 4.5rem)/0.95 var(--font-display, serif);
  margin: 0.55rem 0;
}
.region-hero strong {
  display: block;
  color: #d9bd82;
  font-size: 1.05rem;
}
.region-hero p {
  max-width: 680px;
  color: #c3c1cb;
  line-height: 1.65;
}
.region-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.region-keywords span {
  padding: 8px 11px;
  border-radius: 99px;
  background: rgba(7, 9, 17, 0.65);
  border: 1px solid rgba(219, 190, 124, 0.2);
  font-size: 0.72rem;
  color: #d9d1bd;
}
.chapter-progress {
  min-width: 130px;
  text-align: center;
  background: rgba(6, 8, 16, 0.74);
  border: 1px solid rgba(210, 183, 120, 0.2);
  padding: 18px;
  border-radius: 14px;
}
.chapter-progress b {
  display: block;
  font-size: 2rem;
  color: #e0bd70;
}
.chapter-progress small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}
.region-journey-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 28px;
  background: rgba(10, 12, 24, 0.96);
  border-bottom: 1px solid rgba(180, 165, 210, 0.1);
}
.region-journey-track span {
  padding: 8px 13px;
  border-radius: 99px;
  color: #747584;
  border: 1px solid rgba(130, 130, 150, 0.16);
  font-size: 0.75rem;
}
.region-journey-track span.done {
  color: #dec17f;
  border-color: rgba(222, 193, 127, 0.36);
}
.region-journey-track span.current {
  color: #efe7ff;
  border-color: #8e6ec8;
  background: rgba(111, 75, 176, 0.17);
}
.region-journey-track i {
  width: 40px;
  height: 1px;
  background: rgba(180, 165, 210, 0.18);
}
.encounter-list {
  padding: 28px 34px;
}
.story-encounter,
.regional-hunt {
  border-left: 2px solid rgba(217, 183, 112, 0.4);
}
.regional-hunt {
  border-left-color: rgba(142, 109, 205, 0.45);
  background: rgba(40, 28, 67, 0.12);
}
.required-step {
  color: #dbba78;
}
.optional-step {
  color: #b89cde;
}
.enemy-danger {
  font-size: 0.78rem;
  color: #9996a8;
  margin: 0.4rem 0;
}
.encounter-copy em {
  font-style: normal;
  color: #b8a779;
}
.region-hunt-divider {
  margin-top: 28px;
  padding-top: 24px;
}
.region-hunt-divider span {
  font-family: var(--font-display, serif);
  font-size: 1.15rem;
}
.region-hunt-divider small {
  display: block;
  color: #868492;
  margin-top: 4px;
}
.region-mastery {
  margin: 0 34px 28px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border-radius: 14px;
  background: linear-gradient(
    110deg,
    rgba(66, 47, 91, 0.25),
    rgba(17, 16, 27, 0.75)
  );
  border: 1px solid rgba(169, 136, 215, 0.18);
}
.region-mastery ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.region-mastery li {
  font-size: 0.78rem;
  color: #858492;
}
.region-mastery li.done {
  color: #d8c18d;
}
.region-mastery li span {
  margin-right: 7px;
}
.region-mastery small {
  color: #8f8c98;
}
.boss-gate {
  margin: 0 34px 34px;
}
.boss-gate__art {
  min-height: 270px;
  display: flex;
  align-items: end;
  padding: 30px;
  border-radius: 16px;
}
.boss-gate__art h3 {
  font: 700 clamp(1.8rem, 4vw, 3.5rem)/1 var(--font-display, serif);
  margin: 0.4rem 0;
}
.boss-gate__art > div {
  max-width: 760px;
}
.boss-gate > .button {
  width: 100%;
  margin-top: 12px;
  min-height: 52px;
}
.region-intro {
  position: fixed;
  z-index: 10020;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 3, 8, 0.88);
  backdrop-filter: blur(8px);
}
.region-intro {
  pointer-events: none;
}
.region-intro > div {
  pointer-events: none;
}
.region-intro button {
  pointer-events: auto;
}
.region-intro > div {
  width: min(920px, 100%);
  min-height: 560px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid rgba(223, 191, 120, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(0deg, rgba(5, 7, 14, 0.98), rgba(5, 7, 14, 0.18)),
    var(--region-art) center/cover;
  box-shadow: 0 24px 90px #000;
}
.region-intro span {
  color: #d6af65;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
}
.region-intro h2 {
  font: 700 clamp(3rem, 8vw, 6rem)/0.9 var(--font-display, serif);
  margin: 0.5rem 0;
}
.region-intro strong {
  font-size: 1.2rem;
  color: #d9cba8;
}
.region-intro p {
  max-width: 660px;
  line-height: 1.65;
}
.region-intro .button {
  align-self: start;
  min-width: 250px;
  margin-top: 14px;
}
.region-celebration h3 {
  font: 700 2rem/1 var(--font-display, serif);
  margin: 0.5rem 0 1.2rem;
}
.region-celebration small {
  display: block;
  margin-top: 18px;
  color: #d4b46f;
  letter-spacing: 0.15em;
}
.campaign-finale {
  background:
    linear-gradient(0deg, rgba(5, 6, 14, 0.96), rgba(5, 6, 14, 0.25)),
    var(--region-art) center/cover;
}
.campaign-finale h2,
.level-100-celebration h2 {
  font-size: clamp(3rem, 8vw, 6rem);
}
@media (max-width: 800px) {
  body:has(.region-intro) .mobile-dock {
    visibility: hidden;
    pointer-events: none;
  }
  .world-map-heading {
    min-height: 220px;
    padding: 22px;
  }
  .map-track {
    grid-template-columns: repeat(10, 112px);
    min-width: 1340px;
  }
  .world-map-canvas {
    margin-inline: -14px;
    border-radius: 0;
    padding: 18px 8px;
  }
  .region-hero {
    min-height: 390px;
    padding: 30px 20px 24px;
    align-items: end;
    flex-direction: column;
    justify-content: end;
  }
  .region-hero h2 {
    font-size: 2.6rem;
  }
  .region-hero .chapter-progress {
    align-self: flex-start;
  }
  .region-journey-track {
    justify-content: flex-start;
    overflow: auto;
    padding: 16px;
  }
  .region-journey-track span {
    white-space: nowrap;
  }
  .encounter-list {
    padding: 18px 14px;
  }
  .encounter-row {
    grid-template-columns: 72px 1fr;
  }
  .encounter-row .button {
    grid-column: 1/-1;
    width: 100%;
  }
  .region-mastery {
    margin: 0 14px 20px;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
  }
  .region-mastery ul {
    display: grid;
    gap: 9px;
  }
  .boss-gate {
    margin: 0 14px 20px;
  }
  .boss-gate__art {
    min-height: 330px;
    padding: 20px;
  }
  .combat-preview {
    display: none;
  }
  .region-intro {
    padding: 10px;
  }
  .region-intro > div {
    min-height: calc(100dvh - 20px);
    padding: 28px 22px;
  }
  .region-intro h2 {
    font-size: 3.1rem;
  }
  .region-intro .button {
    width: 100%;
    min-width: 0;
  }
  .region-celebration {
    width: calc(100vw - 24px);
  }
}

/* source: phase13-5.css */
/* Phase 13.5 — compact RPG experience, mission journey and gameplay-first UI. */
:root {
  --shell-width: 190px;
  --phase12-header: 64px;
  --phase135-gold: #d7a84f;
  --phase135-panel: rgba(10, 11, 15, 0.92);
}

/* A smaller shell gives the scene back to the game. */
.sidebar {
  width: var(--shell-width);
  padding: 12px 10px 42px;
}
.brand {
  min-height: 48px;
  padding: 3px 8px 12px;
  font-size: 10px;
}
.brand .brand-mark {
  font-size: 20px;
}
.shell-profile-link {
  display: none;
}
#nav {
  gap: 3px;
}
#nav .nav-item {
  min-height: 43px;
  padding: 7px 9px;
  grid-template-columns: 24px 1fr;
}
#nav .nav-item > b {
  align-self: center;
  grid-row: 1;
  font-size: 12px !important;
}
#nav .nav-item > small {
  display: none;
}
#nav .nav-item > span {
  grid-row: 1;
  font-size: 15px;
}
#view input,
#view select,
#view textarea {
  color: #d4d1d9;
  -webkit-text-fill-color: #d4d1d9;
}
#view input::placeholder,
#view textarea::placeholder {
  color: #b2b2ba;
  opacity: 1;
}
.season-tier > b {
  color: #e7dfd2;
}
.season-tier > span {
  color: #c6c3cc;
}
.season-tier > small {
  color: #d6ad62;
}

.topbar {
  height: var(--phase12-header);
  grid-template-columns: minmax(360px, 1fr) auto auto;
  gap: 10px;
  padding: 5px 14px;
}
.global-hero {
  max-width: 660px;
  grid-template-columns: 42px minmax(0, 1fr) 78px;
  gap: 8px;
  padding: 2px 9px 2px 2px;
}
.global-hero__portrait {
  width: 38px;
  height: 50px;
}
.global-hero__identity {
  grid-template-rows: auto 3px auto;
}
.global-hero__identity small {
  display: none;
}
.global-hero__identity b {
  font-size: clamp(13px, 1vw, 16px);
}
.global-hero__identity em {
  font-size: 8px;
}
.global-hero__xp {
  grid-row: 2;
  margin-top: 3px;
  height: 3px;
}
.global-hero__xptext {
  grid-row: 3;
  margin: 1px 0 0;
  font-size: 6px;
}
.global-hero__power {
  min-width: 68px;
  padding-left: 9px;
}
.global-hero__power small {
  font-size: 6px;
}
.global-hero__power b {
  font-size: 14px;
}
.topbar .crumb {
  display: none;
}
.resources {
  gap: 4px;
}
.resource {
  min-height: 32px;
  padding: 4px 7px;
  border-color: rgba(158, 125, 76, 0.2);
}
.resource-art {
  width: 18px;
  height: 18px;
}
.settings {
  width: 32px;
  height: 32px;
}

.header-mission {
  min-width: 170px;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  color: #d8cdbb;
  border: 1px solid rgba(193, 149, 79, 0.28);
  background: rgba(22, 19, 20, 0.75);
  text-align: left;
  cursor: pointer;
}
.header-mission[hidden] {
  display: none;
}
.header-mission__sigil {
  width: 18px;
  height: 18px;
  border: 1px solid #c5954e;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #17151a;
  background: #a97835;
}
.header-mission span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.header-mission small {
  overflow: hidden;
  color: #998c7a;
  font: 600 7px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-mission b {
  color: #e8d3a7;
  font: 700 9px Manrope;
  white-space: nowrap;
}
.header-mission.ready {
  border-color: #d5a44f;
  background: rgba(75, 52, 23, 0.55);
}
.header-mission.ready .header-mission__sigil {
  box-shadow:
    0 0 16px rgba(226, 174, 82, 0.7),
    inset 0 0 0 5px #17151a;
}

.objective-bar {
  min-height: 44px;
  padding: 5px 14px;
}
.objective-copy {
  min-width: 0;
}
.objective-copy > div > small,
.objective-copy > div > span,
.objective-progress-row {
  display: none;
}
.objective-copy b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.objective-bar .button {
  min-width: 92px;
  min-height: 31px;
  padding: 5px 12px;
  font-size: 8px;
}
.section-navigation {
  min-height: 35px;
  padding: 2px 16px;
}
.section-navigation button {
  padding: 5px 12px;
  font-size: 8px;
}
.context-resources {
  min-height: 31px;
  padding-block: 3px;
}
.world-feed {
  height: 30px;
}

/* Home and adventure: one scene, one state, very little chrome. */
.phase12-home {
  padding: 12px 18px 28px;
}
.phase12-citadel {
  min-height: min(520px, calc(100vh - 180px));
}
.phase12-citadel .citadel-title {
  top: 5%;
}
.phase12-citadel .citadel-title h1 {
  font-size: clamp(32px, 4vw, 50px);
}
.phase12-home-action {
  bottom: 6%;
  left: 4%;
  padding: 17px 19px;
}
.phase12-home-action h2 {
  font-size: clamp(23px, 2.4vw, 31px);
}
.phase12-home-action.mission-active {
  border-left-color: #b69af4;
}
.phase12-home-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}
.phase12-home-cards button {
  min-height: 66px;
  padding: 8px 11px;
  border: 0;
  border-top: 1px solid rgba(159, 123, 71, 0.22);
}
.phase12-home-cards button > span {
  width: 8px;
  height: 8px;
  border: 1px solid #bd8c44;
  transform: rotate(45deg);
}
.phase12-home-cards em {
  max-width: 38vw;
}

.phase135-adventure {
  padding: 16px 22px 28px;
}
.phase135-adventure .phase12-hub__hero {
  min-height: 180px;
}
.phase135-adventure .phase12-hub__hero > div {
  padding: 24px 30px;
}
.phase135-adventure .phase12-hub__hero h1 {
  font-size: clamp(31px, 3.6vw, 46px);
}
.phase135-adventure .phase12-primary-paths {
  margin-top: 10px;
}
.phase135-adventure .phase12-path {
  min-height: 158px;
  padding: 18px 20px;
}
.phase135-adventure .phase12-path__icon {
  width: 18px;
  height: 18px;
  margin-top: 8px;
  border: 1px solid #c99b52;
  transform: rotate(45deg);
}
.phase135-adventure .world-path .phase12-path__icon {
  border-radius: 50%;
  transform: none;
}
.phase135-adventure .phase12-loop {
  margin-top: 5px;
  padding: 9px;
}

/* Mission screen shell. The offer itself is defined once in Mission Focus Panel below. */
.phase135-missions {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 14px 22px 34px;
}
.phase135-missions .tavern-heading {
  min-height: 92px;
  padding: 14px 18px;
}
.phase135-missions .tavern-heading h1 {
  margin: 2px 0;
  font-size: clamp(28px, 3.2vw, 40px);
}
.phase135-missions .tavern-heading p {
  margin: 0;
}
.phase135-missions .contextual-hint {
  max-width: 560px;
  min-height: 0;
  margin: 8px 0;
  padding: 8px 12px;
}
.phase135-missions .contextual-hint p {
  margin: 2px 0;
}

/* Mission Journey: existing authoritative timer, new continuous presentation. */
.mission-journey {
  --mission-progress: 0;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: min(690px, calc(100vh - 150px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(330px, 1fr) auto;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(195, 154, 85, 0.34);
  background: #08090d;
  box-shadow: 0 28px 80px #0009;
}
.mission-journey.active-expedition > header,
.mission-journey.active-expedition > .journey-scene,
.mission-journey.active-expedition > footer {
  grid-column: 1;
  min-width: 0;
}
.mission-journey > header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  padding: 22px 28px 12px;
  background: linear-gradient(#090a0f, rgba(9, 10, 15, 0.7), transparent);
}
.mission-journey > header h1 {
  margin: 3px 0;
  color: #f2e7d6;
  font: 700 clamp(29px, 3.6vw, 46px)/1.05 "Playfair Display";
}
.mission-journey > header p {
  margin: 6px 0 0;
  color: #9f978c;
  font-size: 11px;
}
.journey-region {
  padding: 6px 9px;
  color: #c9b17f;
  border-bottom: 1px solid rgba(202, 161, 91, 0.35);
  font: 600 8px "DM Mono";
}
.journey-scene {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(5, 6, 10, 0.88), transparent 55%),
    linear-gradient(
      90deg,
      rgba(5, 6, 10, 0.28),
      transparent 22% 78%,
      rgba(5, 6, 10, 0.38)
    ),
    var(--journey-bg) center/cover;
}
.journey-depth {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 50% 85%,
      transparent 0 20%,
      rgba(6, 7, 10, 0.34) 66%
    ),
    linear-gradient(0deg, #08090d 0, transparent 23%);
}
.journey-route {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 23%;
  height: 4px;
  background: linear-gradient(
    90deg,
    #8d6638,
    #e0b668 calc(var(--mission-progress) * 100%),
    rgba(215, 187, 133, 0.2) 0
  );
  box-shadow: 0 2px 10px #000;
}
.journey-route i {
  position: absolute;
  inset: -7px 0;
  border-block: 1px dashed rgba(226, 198, 145, 0.16);
}
.journey-marker {
  position: absolute;
  bottom: calc(23% - 9px);
  width: 20px;
  height: 20px;
  border: 2px solid #b38b4f;
  border-radius: 50%;
  background: #0a0b10;
  box-shadow: 0 0 0 6px rgba(8, 9, 13, 0.55);
}
.journey-marker.start {
  left: 6%;
}
.journey-marker.finish {
  right: 6%;
  border-color: #a988d7;
}
.mission-traveler {
  position: absolute;
  z-index: 2;
  left: calc(8% + var(--mission-progress) * 84%);
  bottom: 19%;
  width: 230px;
  height: 150px;
  transform: translateX(-50%);
  transition: left 0.22s linear;
}
.mission-traveler i {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--traveler-art) center/contain no-repeat;
  filter: drop-shadow(0 18px 15px #000c);
}
.mission-traveler span {
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  padding: 3px 8px;
  color: #d8c49a;
  background: rgba(7, 8, 12, 0.76);
  font: 600 7px "DM Mono";
  white-space: nowrap;
}
.mission-journey.has-mount .mission-traveler {
  width: 155px;
  height: 155px;
  bottom: 20%;
  border: 1px solid rgba(205, 171, 109, 0.5);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 18px 35px #000b;
}
.mission-journey.has-mount .mission-traveler i {
  background-size: cover;
  background-position: center 38%;
  filter: none;
}
.mission-journey.has-mount .mission-traveler span {
  bottom: 8px;
}
.journey-arrival {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(87, 60, 128, 0.42),
    rgba(6, 7, 11, 0.78) 48%,
    transparent 72%
  );
  transition: opacity 0.5s ease;
}
.journey-arrival small {
  color: #d7b16b;
  font: 700 9px "DM Mono";
  letter-spacing: 0.18em;
}
.journey-arrival b {
  margin-top: 8px;
  color: #f0e4d2;
  font: 700 25px "Playfair Display";
}
.mission-journey.ready .journey-arrival {
  opacity: 1;
}
.mission-journey.ready .mission-traveler {
  left: 92%;
}
.mission-journey > footer {
  position: relative;
  z-index: 3;
  padding: 13px 28px 19px;
  background: linear-gradient(transparent, #08090d 18%);
}
.journey-progress-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.journey-progress-copy strong {
  color: #e5bd70;
  font: 800 25px "DM Mono";
}
.journey-progress-copy span {
  color: #b4aa9b;
  font-size: 10px;
}
.journey-progress {
  height: 9px;
  margin: 8px 0 10px;
  overflow: hidden;
  border: 1px solid rgba(198, 155, 84, 0.34);
  background: #111117;
}
.journey-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #815c31, #e3b864);
  transition: width 0.18s linear;
}
.journey-actions {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.journey-actions small {
  color: #aaa198;
  font-size: 8px;
}
.journey-actions .button {
  min-width: 230px;
}

.mission-complete {
  min-height: min(680px, calc(100vh - 150px));
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 30px;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(112, 78, 155, 0.17),
      transparent 35%
    ),
    rgba(8, 9, 13, 0.92);
}
.mission-complete > header {
  text-align: center;
}
.mission-complete > header h1 {
  margin: 6px 0;
  color: #f2e6d4;
  font: 700 clamp(32px, 4vw, 50px) "Playfair Display";
}
.mission-complete > header p {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: #deb66c;
}
.mission-loot-result {
  align-self: center;
}
.mission-loot-result > div:first-child {
  text-align: center;
}
.mission-loot-result h2 {
  margin: 3px 0;
  font: 700 27px "Playfair Display";
}
.mission-loot-result small {
  color: #9b9285;
}
.mission-loot-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.mission-loot-grid article {
  width: min(270px, 30%);
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: rgba(15, 15, 20, 0.86);
}
.mission-loot-grid article > div {
  width: 64px;
}
.mission-loot-grid article > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.mission-loot-grid article b {
  overflow: hidden;
  color: #e5d9c6;
  font-size: 11px;
  text-overflow: ellipsis;
}
.mission-loot-grid article em {
  color: #8cae91;
  font-size: 7px;
  font-style: normal;
}
.mission-complete > footer {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.mission-complete > footer .button {
  min-width: 220px;
}

/* World, combat, hero and gear remain rich but fit the first viewport better. */
.world-map-screen {
  max-width: 1500px;
  margin: auto;
  padding: 14px 20px 32px;
}
.world-map-heading {
  min-height: 155px;
  padding: 20px 26px;
  border-radius: 0;
}
.world-map-heading h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}
.world-map-heading p {
  max-width: 620px;
  font-size: 0.78rem;
  line-height: 1.45;
}
.world-map-canvas {
  margin-top: 9px;
  padding: 10px 14px;
  border-radius: 0;
}
.map-track {
  grid-template-columns: repeat(10, minmax(108px, 1fr));
  min-width: 1190px;
  gap: 10px;
  padding: 4px;
}
.map-track:before {
  top: 28px;
}
.map-node {
  min-height: 78px;
  padding: 4px;
}
.map-node > span {
  width: 42px;
  height: 42px;
  margin-bottom: 6px;
  box-shadow: 0 0 0 4px #080b15;
}
.map-node b {
  font-size: 0.78rem;
}
.map-node small {
  margin-top: 3px;
  font-size: 0.53rem;
}
.region-heading {
  margin: 14px 0 8px;
}
.region-hero {
  min-height: 225px;
  padding: 25px 28px 20px;
}
.region-hero h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.region-hero p {
  line-height: 1.4;
}
.region-journey-track {
  padding: 12px 18px;
}
.encounter-list {
  padding: 14px 20px;
}
.encounter-row {
  padding: 7px;
}
.region-mastery {
  margin: 0 20px 15px;
  padding: 13px 16px;
}
.boss-gate {
  margin: 0 20px 18px;
}
.boss-gate__art {
  min-height: 210px;
}

.combat-screen {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 20px 34px;
}
.combat-toolbar {
  min-height: 55px;
  padding: 7px 10px;
}
.combat-current-status {
  margin: 2px 0;
}
.combat-speed-control > span {
  text-transform: none;
}
.combat-speed-button {
  min-width: 35px;
}
.combat-skip {
  min-height: 34px;
  padding: 6px 10px;
}
.combat-stage {
  min-height: min(430px, calc(100vh - 220px));
}
.combat-result-grid {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 7px;
}
.combat-log.collapsed {
  height: 43px;
  min-height: 43px;
  padding: 6px 10px;
}
.combat-rewards {
  padding: 13px;
}
.combat-rewards > .eyebrow {
  text-transform: none;
}
.combat-summary {
  margin-top: 7px;
}
.combat-end-actions {
  display: flex;
  justify-content: center;
}
.combat-end-actions .button {
  min-width: 220px;
}
.loot-delivery {
  display: block;
  margin: -3px 0 9px;
  color: #8fb89a;
  font: 600 8px "DM Mono";
  font-style: normal;
}
.loot-reveal .loot-icon > span {
  visibility: hidden;
}
.combat-finished .combat-log {
  display: none;
}
.combat-finished .combat-result-grid {
  margin-top: 7px;
}
.combat-finished .combat-rewards {
  min-height: 0;
}
.combat-finished .combat-stage {
  min-height: 245px;
  max-height: 245px;
}
.combat-finished .combatants {
  inset-block: 32px 78px;
}
.combat-finished .combat-vitals {
  transform: scale(0.82);
  transform-origin: bottom center;
}
.combat-finished .contextual-hint {
  display: none;
}

.character-screen.phase7-character {
  padding: 10px 18px 32px;
}
.character-profile-header {
  min-height: 78px;
  padding: 10px 14px;
}
.character-profile-name h1 {
  font-size: clamp(24px, 2.2vw, 34px);
}
.character-profile-name p {
  margin: 2px 0;
}
.phase7-character > .contextual-hint {
  display: none;
}
.character-core {
  margin-top: 7px;
  grid-template-columns: minmax(0, 1fr) 230px;
}
.character-paperdoll {
  min-height: min(520px, calc(100vh - 225px));
}
.character-stat-panel {
  min-height: 0;
}
.hero-attributes {
  grid-template-columns: 1fr 1fr;
}
.character-inventory-dock {
  display: none;
}

body[data-shell-group="gear"] .view-title {
  min-height: 68px;
  padding: 9px 16px;
}
body[data-shell-group="gear"] .view-title h1 {
  margin: 2px 0;
  font-size: 28px;
}
body[data-shell-group="gear"] .view-title p {
  margin: 0;
  font-size: 9px;
}
.equipped-panel {
  padding: 7px 10px;
}
.capacity-head {
  min-height: 54px;
  padding: 8px 12px;
}
.inventory-toolbar {
  min-height: 46px;
  padding: 6px 8px;
}
.inventory-grid {
  grid-template-columns: repeat(10, minmax(72px, 1fr));
  gap: 7px;
}
.inventory-grid > .item-slot {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
}
body[data-gear-subview="inventory"] .crafting-panel,
body[data-gear-subview="inventory"] .loadout-panel {
  display: none;
}
body[data-gear-subview="forge"] .inventory-tabs,
body[data-gear-subview="forge"] .capacity-head,
body[data-gear-subview="forge"] .inventory-toolbar,
body[data-gear-subview="forge"] .inventory-grid,
body[data-gear-subview="forge"] .capacity-grid-expand,
body[data-gear-subview="forge"] .crafting-panel,
body[data-gear-subview="forge"] .loadout-panel {
  display: none;
}

@media (max-width: 1280px) {
  :root {
    --shell-width: 178px;
  }
  .topbar {
    grid-template-columns: minmax(330px, 1fr) auto;
  }
  .header-mission {
    position: fixed;
    z-index: 20;
    right: 10px;
    bottom: 38px;
    min-width: 155px;
    box-shadow: 0 8px 28px #000b;
  }
  .inventory-grid {
    grid-template-columns: repeat(9, minmax(64px, 1fr));
  }
}

@media (max-width: 850px) {
  :root {
    --shell-width: 280px;
    --phase12-header: 72px;
  }
  .sidebar {
    padding-bottom: 72px;
  }
  .topbar {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 4px 6px;
  }
  .global-hero {
    grid-template-columns: 34px minmax(0, 1fr) 46px;
  }
  .global-hero__portrait {
    width: 32px;
    height: 44px;
  }
  .global-hero__identity b {
    font-size: 11px;
  }
  .global-hero__power {
    min-width: 42px;
  }
  .resource {
    min-height: 25px;
    padding: 2px 3px;
  }
  .header-mission {
    right: 8px;
    bottom: calc(66px + env(safe-area-inset-bottom));
    min-width: 145px;
    padding: 5px 8px;
  }
  .objective-bar {
    min-height: 43px;
    padding-inline: 8px;
  }
  .section-navigation {
    min-height: 36px;
    padding-inline: 5px;
  }
  .phase12-home {
    padding: 5px 7px 78px;
  }
  .phase12-citadel {
    min-height: 390px;
  }
  .phase12-citadel .citadel-title p {
    display: none;
  }
  .phase12-home-action {
    left: 4%;
    bottom: 5%;
    width: 92%;
    padding: 12px 13px;
  }
  .phase12-home-action h2 {
    font-size: 20px;
  }
  .phase12-home-action .button {
    min-width: 0;
    width: 100%;
  }
  .phase12-home-cards {
    grid-template-columns: 1fr;
  }
  .phase12-home-cards em {
    max-width: 55vw;
  }
  .phase135-adventure {
    padding: 7px 8px 80px;
  }
  .phase135-adventure .phase12-hub__hero {
    min-height: 155px;
  }
  .phase135-adventure .phase12-hub__hero > div {
    padding: 16px;
  }
  .phase135-adventure .phase12-hub__hero h1 {
    font-size: 29px;
  }
  .phase135-adventure .phase12-primary-paths {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .phase135-adventure .phase12-path {
    min-height: 120px;
    padding: 12px;
  }
  .phase135-adventure .phase12-loop {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .phase135-missions {
    padding: 6px 8px 85px;
  }
  .phase135-missions .tavern-heading {
    min-height: 78px;
    padding: 9px 11px;
  }
  .phase135-missions .tavern-heading h1 {
    font-size: 27px;
  }
  .phase135-missions .tavern-heading p {
    display: none;
  }
  .mission-journey {
    min-height: calc(100dvh - 183px);
    grid-template-rows: auto minmax(290px, 1fr) auto;
  }
  .mission-journey > header {
    padding: 15px 15px 7px;
  }
  .mission-journey > header h1 {
    font-size: 28px;
  }
  .journey-region {
    display: none;
  }
  .journey-scene {
    min-height: 300px;
  }
  .mission-traveler {
    width: 150px;
    height: 105px;
    bottom: 20%;
  }
  .mission-journey.has-mount .mission-traveler {
    width: 112px;
    height: 112px;
  }
  .mission-journey > footer {
    padding: 9px 14px 14px;
  }
  .journey-progress-copy {
    align-items: start;
    flex-direction: column;
    gap: 2px;
  }
  .journey-progress-copy strong {
    font-size: 21px;
  }
  .journey-progress-copy span {
    font-size: 8px;
  }
  .journey-actions small {
    display: none;
  }
  .journey-actions .button {
    width: 100%;
    min-width: 0;
  }
  .mission-complete {
    min-height: calc(100dvh - 183px);
    padding: 18px 12px 85px;
  }
  .mission-loot-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .mission-loot-grid article {
    min-width: 250px;
    width: 78vw;
  }
  .mission-complete > footer {
    flex-direction: column-reverse;
  }
  .mission-complete > footer .button {
    width: 100%;
    min-width: 0;
  }

  .world-map-screen {
    padding: 7px 8px 80px;
  }
  .world-map-heading {
    min-height: 145px;
    padding: 15px;
  }
  .world-map-heading h1 {
    font-size: 2.2rem;
  }
  .world-map-heading p {
    display: none;
  }
  .world-map-canvas {
    margin-inline: -8px;
    padding: 9px 4px;
  }
  .region-hero {
    min-height: 300px;
    padding: 20px 15px;
  }
  .region-hero p {
    display: none;
  }
  .encounter-list {
    padding: 9px 7px;
  }
  .region-mastery {
    margin-inline: 7px;
  }
  .boss-gate {
    margin-inline: 7px;
  }

  .combat-screen {
    padding: 6px 7px 78px;
  }
  .combat-toolbar {
    gap: 5px;
    padding: 5px;
  }
  .combat-controls {
    grid-template-columns: 1fr auto;
  }
  .combat-build-skills {
    display: none;
  }
  .combat-speed-control {
    grid-column: 1;
  }
  .combat-stage[data-combat-stage] {
    min-height: 365px;
  }
  .combat-screen.combat-finished > .combat-stage {
    display: block;
    min-height: 150px;
    max-height: 150px;
  }
  .combat-screen.combat-finished .combatants {
    inset: 15px 5px 38px;
  }
  .combat-screen.combat-finished .combat-vitals {
    display: none;
  }
  .combat-screen.combat-finished .combat-rewards {
    padding: 7px;
  }
  .combat-screen.combat-finished .combat-end-actions {
    margin-bottom: 8px;
  }

  .phase7-character .character-profile-header {
    display: none;
  }
  .character-screen.phase7-character {
    padding: 5px 7px 78px;
  }
  .character-core {
    grid-template-columns: 1fr;
  }
  .character-paperdoll {
    min-height: 515px;
  }
  .character-stat-panel {
    padding: 7px;
  }
  .inventory-grid {
    grid-template-columns: repeat(5, minmax(58px, 1fr));
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mission-traveler,
  .journey-progress i,
  .journey-arrival {
    transition: none !important;
    animation: none !important;
  }
}

/* source: phase14-1.css */
/* Phase 14.1 — Combat 2.0 core visual experience */
body[data-view="combat"] .view {
  padding-top: 0;
}
body[data-view="combat"] .objective-bar,
body[data-view="combat"] .section-navigation,
body[data-view="combat"] .context-resources {
  display: none;
}

.combat-screen {
  width: min(100%, 1530px);
  padding: 8px 14px 24px;
}

.combat-toolbar {
  min-height: 48px;
  margin-bottom: 7px;
  padding: 6px 9px;
  border-color: rgba(120, 94, 59, 0.42);
  background: linear-gradient(
    90deg,
    rgba(7, 8, 12, 0.97),
    rgba(15, 12, 22, 0.94)
  );
}

.combat-identity {
  min-width: 0;
}
.combat-identity > .eyebrow {
  color: #c8a86b;
  letter-spacing: 0.15em;
}
.combat-current-status {
  overflow: hidden;
  margin: 2px 0 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combat-identity-tags {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}
.combat-identity-tags > * {
  min-height: 20px;
  padding: 2px 6px;
  font-size: 7px;
}
.combat-controls {
  flex-wrap: nowrap;
  gap: 6px;
}
.combat-build-skills {
  display: flex;
  gap: 3px;
}
.combat-build-skills .combat-skill-slot {
  width: 30px;
  height: 30px;
}
.combat-speed-control {
  gap: 5px;
}
.combat-speed-buttons {
  display: flex;
  gap: 2px;
}
.combat-speed-button {
  width: 35px;
  height: 30px;
}
.combat-skip {
  min-height: 30px;
  padding: 5px 9px;
  white-space: nowrap;
}

.combat-stage[data-combat-stage] {
  min-height: min(620px, calc(100vh - 208px));
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(132, 100, 58, 0.62);
  background: #05060a;
  box-shadow:
    inset 0 0 110px #000,
    0 18px 38px #0008;
}

.combat-backdrop {
  background:
    linear-gradient(
      90deg,
      rgba(2, 4, 8, 0.72),
      rgba(4, 5, 10, 0.08) 46%,
      rgba(4, 3, 7, 0.52)
    ),
    linear-gradient(0deg, rgba(3, 4, 7, 0.92), transparent 56%),
    var(--battle-bg), var(--enemy-art);
  background-position: center, center, center, center;
  background-size: cover;
  filter: saturate(0.82) brightness(0.62);
}

.combat-stage__top {
  top: 11px;
  left: 12px;
  right: 12px;
}
.combatants {
  inset: 42px 3.2% 94px;
  grid-template-columns: minmax(0, 1fr) clamp(54px, 7vw, 98px) minmax(0, 1fr);
}
.combatant-art {
  filter: drop-shadow(0 24px 25px #000)
    drop-shadow(0 0 18px rgba(101, 70, 163, 0.24));
}
.hero-art {
  background-position: center bottom;
  background-size: contain;
}
.enemy-art {
  background-position: center;
  background-size: cover;
  clip-path: polygon(7% 2%, 93% 2%, 100% 87%, 87% 100%, 13% 100%, 0 87%);
  opacity: 0.98;
}
.combat-nameplate {
  bottom: 2px;
  min-width: min(230px, 88%);
  padding: 6px 10px;
  border-color: rgba(145, 111, 64, 0.56);
  background: rgba(4, 5, 8, 0.9);
}
.combat-nameplate small {
  font-size: 7px;
}
.combat-nameplate b {
  font-size: clamp(13px, 1.25vw, 18px);
}
.combat-impact {
  font-size: clamp(18px, 2.4vw, 34px);
}

.combat-vitals {
  position: absolute;
  z-index: 12;
  right: 3.2%;
  bottom: 12px;
  left: 3.2%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(58px, 10vw, 145px);
  margin: 0;
}
.combat-vital {
  min-width: 0;
  padding: 7px 9px;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 6, 10, 0.96),
    rgba(10, 11, 17, 0.84)
  );
  box-shadow: 0 8px 22px #000b;
}
.enemy-vital {
  text-align: right;
  background: linear-gradient(
    270deg,
    rgba(4, 6, 10, 0.96),
    rgba(10, 11, 17, 0.84)
  );
}
.combat-vital b {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}
.enemy-vital b {
  justify-content: flex-end;
}
.combat-vital b > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combat-vital em {
  display: block;
  margin-top: 3px;
  color: #ddd3c1;
  font: 700 9px "DM Mono";
  font-style: normal;
}
.combat-hp {
  height: 17px;
  margin-top: 4px;
  border-color: rgba(79, 43, 49, 0.7);
}
.combat-hp span {
  box-shadow: 0 0 12px rgba(89, 208, 191, 0.35);
}
.combat-hp.enemy span {
  box-shadow: 0 0 12px rgba(218, 74, 88, 0.38);
}

.skill-banner {
  top: 15%;
  min-width: min(370px, 70%);
  padding: 8px 14px;
  animation-duration: calc(520ms / var(--combat-speed));
}
.skill-banner > span {
  width: 40px;
  height: 40px;
  background-position: center;
  background-size: cover;
}
.skill-banner b {
  font-size: clamp(14px, 1.6vw, 22px);
}
.combat-telegraph {
  top: 20%;
}

.boss-mechanic-callout {
  position: absolute;
  z-index: 30;
  top: 19%;
  left: 50%;
  display: grid;
  width: min(520px, 72%);
  padding: 12px 18px;
  text-align: center;
  transform: translateX(-50%);
  border-block: 1px solid
    color-mix(in srgb, var(--boss-accent) 65%, transparent);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(7, 6, 12, 0.96) 18% 82%,
    transparent
  );
  box-shadow: 0 0 30px color-mix(in srgb, var(--boss-accent) 28%, transparent);
  animation: phase14-mechanic calc(700ms / var(--combat-speed)) ease both;
}
.boss-mechanic-callout.is-hidden {
  display: none;
}
.boss-mechanic-callout small {
  color: var(--boss-accent);
  font: 800 8px "DM Mono";
  letter-spacing: 0.22em;
}
.boss-mechanic-callout b {
  margin: 3px 0;
  color: #f5dfae;
  font: 700 clamp(20px, 2.3vw, 34px) "Playfair Display";
}
.boss-mechanic-callout span {
  color: #c5baaa;
  font-size: 10px;
}

.floating-damage {
  z-index: 35;
  font-size: clamp(28px, 3.5vw, 52px);
  text-shadow:
    0 3px 4px #000,
    0 0 15px currentColor;
}
.floating-damage small {
  font-size: 9px;
}
.floating-damage.critical {
  color: #ffe095;
  font-size: clamp(38px, 4.6vw, 66px);
}
.floating-damage.heavy:not(.critical) {
  color: #ff9b75;
  font-size: clamp(34px, 4vw, 59px);
}
.floating-damage.block {
  color: #b9d9ef;
  font-size: clamp(23px, 2.7vw, 39px);
}
.floating-damage.dodge {
  color: #b9e8f2;
}
.floating-damage.heal {
  color: #8ff0b7;
}
.combat-outcome-title {
  position: absolute;
  z-index: 45;
  top: 46%;
  left: 50%;
  color: #f0d79a;
  font: 800 clamp(48px, 8vw, 112px) "Playfair Display";
  letter-spacing: 0.12em;
  text-shadow:
    0 5px 20px #000,
    0 0 38px rgba(220, 168, 79, 0.7);
  transform: translate(-50%, -50%);
  animation: phase14-outcome 620ms ease both;
}
.combat-defeat .combat-outcome-title {
  color: #d99b96;
  text-shadow:
    0 5px 20px #000,
    0 0 35px rgba(178, 52, 66, 0.6);
}

.combat-result-grid {
  grid-template-columns: 1fr;
  gap: 5px;
  margin-top: 5px;
}
.combat-screen:not(.combat-finished) .combat-result-grid {
  min-height: 43px;
}
.combat-screen:not(.combat-finished) .combat-rewards {
  display: none;
}
.combat-log {
  min-height: 0;
  padding: 6px 10px;
  border-color: rgba(78, 65, 49, 0.48);
}
.combat-log > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.combat-log > header small {
  overflow: hidden;
  color: #81786d;
  font: 7px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combat-log.collapsed {
  height: 43px;
  min-height: 43px;
}
.combat-log.collapsed .combat-detail-strip,
.combat-log.collapsed .combat-log__entries {
  display: none;
}
.combat-log.open {
  height: min(235px, 29vh);
}
.combat-detail-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 8px 0;
}
.combat-detail-strip > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 5px 7px;
  background: rgba(255, 255, 255, 0.025);
}
.combat-detail-strip small {
  color: #81786c;
  font: 7px "DM Mono";
}
.combat-detail-strip b {
  color: #d9c69f;
  font: 800 11px "DM Mono";
}
.combat-log__entries {
  max-height: calc(29vh - 92px);
}
.combat-log__entries p {
  margin: 4px 0;
}

/* Preserve AA contrast in the compact character/result chrome at large text. */
.equipment-power small,
.character-set.empty small {
  color: #aaa092;
}
.journey-actions small {
  color: #a9a094;
}
#view select {
  color: #ded8cf;
}
.capacity-grid-expand {
  color: #ddc58d;
}

@keyframes phase14-mechanic {
  0% {
    opacity: 0;
    transform: translate(-50%, -9px) scale(0.96);
  }
  35%,
  82% {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  100% {
    opacity: 0.88;
  }
}
@keyframes phase14-outcome {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
  }
  48%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 1366px) and (min-width: 621px) {
  .combat-stage[data-combat-stage] {
    min-height: min(510px, calc(100vh - 202px));
  }
  .combat-log,
  .combat-rewards {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .combat-screen {
    padding: 5px 7px 76px;
  }
  .combat-toolbar {
    align-items: stretch;
    flex-direction: row;
    gap: 5px;
    margin-bottom: 5px;
    padding: 5px 6px;
  }
  .combat-identity > .eyebrow {
    font-size: 7px;
  }
  .combat-current-status {
    max-width: 100%;
    font-size: 8px;
  }
  .combat-identity-tags {
    display: none;
  }
  .combat-controls {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: end;
    gap: 3px;
    width: auto;
  }
  .combat-build-skills {
    display: none;
  }
  .combat-speed-control {
    grid-column: 1;
    gap: 2px;
  }
  .combat-speed-control > span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }
  .combat-speed-button {
    width: 31px;
    height: 29px;
    padding: 0;
  }
  .combat-skip {
    grid-column: 2;
    min-height: 29px;
    max-width: 88px;
    overflow: hidden;
    padding: 4px 6px;
    font-size: 7px;
    text-overflow: ellipsis;
  }
  .combat-stage[data-combat-stage] {
    min-height: min(430px, calc(100svh - 218px));
    padding: 7px;
  }
  .combat-stage__top {
    top: 7px;
    left: 7px;
    right: 7px;
  }
  .combat-stage__top .tag {
    font-size: 6px;
  }
  .combatants {
    inset: 38px 0 91px;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  }
  .combat-nameplate {
    bottom: 0;
    width: 94%;
    min-width: 0;
    padding: 4px;
  }
  .combat-nameplate small {
    font-size: 6px;
  }
  .combat-nameplate b {
    display: block;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .combat-equipment {
    display: none;
  }
  .combat-vitals {
    right: 2%;
    bottom: 7px;
    left: 2%;
    gap: 24px;
  }
  .combat-vital {
    padding: 5px;
  }
  .combat-vital b {
    font-size: 9px;
  }
  .combat-vital b small {
    display: none;
  }
  .combat-vital em {
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .combat-hp {
    height: 13px;
  }
  .skill-banner {
    top: 16%;
    min-width: 74%;
    padding: 6px 9px;
  }
  .skill-banner > span {
    width: 31px;
    height: 31px;
  }
  .skill-banner b {
    font-size: 14px;
  }
  .combat-telegraph {
    top: 22%;
    min-width: 150px;
  }
  .boss-mechanic-callout {
    top: 18%;
    width: 88%;
    padding: 8px 10px;
  }
  .boss-mechanic-callout b {
    font-size: 20px;
  }
  .boss-mechanic-callout span {
    font-size: 8px;
  }
  .floating-damage.player {
    left: clamp(58%, var(--enemy-hit-x), 82%);
  }
  .floating-damage.enemy {
    left: clamp(15%, var(--origin-x), 42%);
  }
  .floating-damage {
    font-size: 26px;
  }
  .floating-damage.critical {
    font-size: 36px;
  }
  .combat-outcome-title {
    font-size: clamp(44px, 16vw, 72px);
  }
  .combat-log.open {
    height: min(195px, 28svh);
  }
  .combat-detail-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .combat-log__entries {
    max-height: calc(28svh - 122px);
  }
  .combat-finished .combat-stage[data-combat-stage] {
    min-height: 150px;
    max-height: 150px;
  }
}

body.phase14-screenshot .floating-damage {
  opacity: 1 !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .boss-mechanic-callout,
  .combat-outcome-title,
  .floating-damage,
  .skill-banner {
    animation: none !important;
  }
  .hero-strike .hero-combatant,
  .enemy-strike .enemy-combatant,
  .hero-strike .enemy-art,
  .enemy-strike .hero-art {
    transform: none !important;
    animation: none !important;
  }
}

/* source: phase14-2.css */
/* Phase 14.2 — semantic skill VFX, class signatures, boss presence and 2D depth */
.combat-screen {
  --signature-primary: #e5a64d;
  --signature-secondary: #ffe0a1;
}
.journey-actions small {
  color: #aaa094;
}

.combat-depth-backdrop,
.combat-foreground {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.combat-depth-backdrop {
  z-index: 1;
  background:
    radial-gradient(
      ellipse at 50% 72%,
      transparent 0 38%,
      rgba(0, 0, 0, 0.34) 80%
    ),
    linear-gradient(
      112deg,
      rgba(255, 255, 255, 0.035),
      transparent 28% 70%,
      rgba(0, 0, 0, 0.18)
    );
  transform: scale(1.025);
  animation: phase142-depth calc(8s / var(--combat-speed)) ease-in-out infinite
    alternate;
}
.combat-foreground {
  z-index: 10;
  background:
    linear-gradient(0deg, rgba(2, 3, 6, 0.7), transparent 18%),
    radial-gradient(
      ellipse at 50% 118%,
      color-mix(in srgb, var(--signature-primary) 11%, transparent),
      transparent 48%
    );
  box-shadow: inset 0 -32px 50px #020308cc;
}
.combat-fx-layer {
  z-index: 16;
}
.combat-damage-layer {
  z-index: 32;
}
.combat-fx-layer .vfx-core,
.combat-fx-layer .vfx-ring,
.combat-fx-layer .vfx-trail,
.combat-fx-layer .vfx-glyph,
.combat-fx-layer .vfx-echo {
  position: absolute;
  display: none;
  pointer-events: none;
  color: var(--signature-primary);
  filter: drop-shadow(0 0 9px currentColor);
}

/* Eight class signatures share the same fixed VFX nodes but alter color and shape. */
.class-signature-rune .vfx-glyph {
  border-radius: 4px;
  transform: rotate(45deg);
}
.class-signature-astral .vfx-glyph {
  border-radius: 50%;
  box-shadow:
    0 0 0 7px #fff1,
    0 0 22px currentColor;
}
.class-signature-shadow .vfx-trail {
  height: 3px;
  transform: skewX(-28deg) rotate(-12deg);
}
.class-signature-wild .vfx-ring {
  border-radius: 65% 35% 62% 38%;
}
.class-signature-ash .vfx-core {
  border-radius: 52% 48% 65% 35%;
}
.class-signature-storm .vfx-trail {
  clip-path: polygon(
    0 40%,
    35% 33%,
    44% 0,
    53% 68%,
    68% 46%,
    100% 54%,
    63% 64%,
    50% 100%,
    40% 62%
  );
}
.class-signature-veil .vfx-trail {
  height: 1px;
  box-shadow:
    0 8px currentColor,
    0 -8px currentColor;
}
.class-signature-chrono .vfx-glyph {
  border-radius: 50%;
  border-style: double;
}

/* Basic attacks retain a restrained class cadence. */
.hero-strike:not([data-vfx-family]) .hero-combatant {
  animation: phase142-basic-lunge calc(360ms / var(--combat-speed))
    cubic-bezier(0.2, 0.75, 0.35, 1) both;
}
.class-signature-shadow .hero-strike:not([data-vfx-family]) .hero-art,
.class-signature-chrono .hero-strike:not([data-vfx-family]) .hero-art {
  animation: phase142-afterimage calc(420ms / var(--combat-speed)) ease both;
}
.class-signature-storm .hero-strike:not([data-vfx-family]) .combat-impact {
  text-shadow: 0 0 16px var(--signature-primary);
}

/* STRIKE */
.vfx-family-strike .vfx-trail,
.vfx-family-execute .vfx-trail {
  display: block;
  top: var(--enemy-hit-y);
  left: calc(var(--enemy-hit-x) - 11%);
  width: 22%;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--signature-secondary),
    var(--signature-primary),
    transparent
  );
  transform: rotate(-17deg);
  animation: phase142-slash calc(430ms / var(--combat-speed)) ease-out both;
}
.vfx-family-strike .hero-combatant {
  animation: phase142-skill-lunge calc(480ms / var(--combat-speed))
    cubic-bezier(0.18, 0.8, 0.3, 1) both;
}

/* PROJECTILE */
.vfx-family-projectile .vfx-core {
  display: block;
  top: var(--origin-y);
  left: var(--origin-x);
  width: clamp(15px, 2vw, 29px);
  aspect-ratio: 1;
  border: 2px solid var(--signature-secondary);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #fff,
    var(--signature-primary) 32%,
    transparent 68%
  );
  animation: phase142-projectile calc(560ms / var(--combat-speed))
    cubic-bezier(0.2, 0.7, 0.25, 1) both;
}
.vfx-family-projectile .vfx-trail {
  display: block;
  top: var(--origin-y);
  left: var(--origin-x);
  width: calc(var(--enemy-hit-x) - var(--origin-x));
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--signature-primary),
    var(--signature-secondary)
  );
  transform-origin: left;
  animation: phase142-trail calc(500ms / var(--combat-speed)) ease-out both;
}

/* BURST */
.vfx-family-burst .vfx-core,
.vfx-family-burst .vfx-ring {
  display: block;
  top: var(--enemy-hit-y);
  left: var(--enemy-hit-x);
  width: clamp(70px, 10vw, 150px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.vfx-family-burst .vfx-core {
  background: radial-gradient(
    circle,
    #fff 0 5%,
    var(--signature-secondary) 9%,
    var(--signature-primary) 27%,
    transparent 68%
  );
  animation: phase142-burst calc(560ms / var(--combat-speed)) ease-out both;
}
.vfx-family-burst .vfx-ring {
  border: 3px solid var(--signature-primary);
  animation: phase142-ring calc(580ms / var(--combat-speed)) ease-out both;
}

/* BARRIER / HEAL center on the hero and do not cover the HP chrome. */
.vfx-family-barrier .vfx-ring,
.vfx-family-barrier .vfx-glyph,
.vfx-family-heal .vfx-ring,
.vfx-family-heal .vfx-core {
  display: block;
  top: var(--origin-y);
  left: var(--origin-x);
  transform: translate(-50%, -50%);
}
.vfx-family-barrier .vfx-ring {
  width: clamp(92px, 14vw, 190px);
  aspect-ratio: 1;
  border: 3px solid var(--signature-primary);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 46%,
    color-mix(in srgb, var(--signature-primary) 18%, transparent)
  );
  animation: phase142-barrier calc(720ms / var(--combat-speed)) ease both;
}
.vfx-family-barrier .vfx-glyph {
  width: clamp(40px, 6vw, 78px);
  aspect-ratio: 1;
  border: 2px solid var(--signature-secondary);
  animation: phase142-glyph calc(720ms / var(--combat-speed)) ease both;
}
.vfx-family-heal .vfx-ring {
  width: clamp(76px, 11vw, 150px);
  aspect-ratio: 0.55;
  border: 2px solid var(--signature-secondary);
  border-radius: 50%;
  box-shadow: 0 -60px 42px
    color-mix(in srgb, var(--signature-primary) 30%, transparent);
  animation: phase142-heal-ring calc(760ms / var(--combat-speed)) ease both;
}
.vfx-family-heal .vfx-core {
  width: 5px;
  height: clamp(110px, 20vw, 230px);
  background: linear-gradient(
    0deg,
    var(--signature-primary),
    var(--signature-secondary),
    transparent
  );
  animation: phase142-heal-column calc(720ms / var(--combat-speed)) ease-out
    both;
}

/* EXECUTE */
.vfx-family-execute .vfx-echo {
  display: block;
  inset: 0;
  background: linear-gradient(
    108deg,
    transparent 43%,
    color-mix(in srgb, var(--signature-primary) 38%, transparent) 48%,
    #fff9 50%,
    transparent 52%
  );
  animation: phase142-execute calc(560ms / var(--combat-speed)) ease-out both;
}
.vfx-family-execute .combatants {
  animation: phase142-stage-hit calc(430ms / var(--combat-speed)) ease-out both;
}

/* AOE / WAVE */
.vfx-family-wave .vfx-ring,
.vfx-family-wave .vfx-trail {
  display: block;
}
.vfx-family-wave .vfx-ring {
  bottom: 17%;
  left: 22%;
  width: 62%;
  height: 30%;
  border-top: 5px solid var(--signature-primary);
  border-radius: 50%;
  transform: perspective(340px) rotateX(66deg);
  animation: phase142-wave calc(720ms / var(--combat-speed)) ease-out both;
}
.vfx-family-wave .vfx-trail {
  top: 43%;
  left: 24%;
  width: 56%;
  height: 12%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--signature-primary) 46%, transparent),
    transparent
  );
  filter: blur(3px);
  animation: phase142-wave-trail calc(680ms / var(--combat-speed)) ease-out both;
}

/* TIME / ARCANE */
.vfx-family-time .vfx-ring,
.vfx-family-time .vfx-glyph,
.vfx-family-time .vfx-echo {
  display: block;
  top: var(--enemy-hit-y);
  left: var(--enemy-hit-x);
  width: clamp(90px, 13vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.vfx-family-time .vfx-ring {
  border: 2px solid var(--signature-primary);
  animation: phase142-time-ring calc(780ms / var(--combat-speed)) ease both;
}
.vfx-family-time .vfx-glyph {
  width: clamp(54px, 8vw, 112px);
  border: 4px double var(--signature-secondary);
  background: conic-gradient(
    from 0deg,
    transparent 0 22%,
    currentColor 23% 25%,
    transparent 26% 48%,
    currentColor 49% 51%,
    transparent 52%
  );
  animation: phase142-time-glyph calc(780ms / var(--combat-speed)) ease both;
}
.vfx-family-time .vfx-echo {
  background: radial-gradient(
    circle,
    transparent 28%,
    color-mix(in srgb, var(--signature-primary) 24%, transparent),
    transparent 64%
  );
  animation: phase142-time-echo calc(780ms / var(--combat-speed)) ease both;
}

/* Class-specific variants without new DOM or per-skill engines. */
.class-signature-rune [data-vfx-family] .hero-combatant {
  filter: drop-shadow(0 0 10px #e5a64d55);
}
.class-signature-astral .vfx-core {
  box-shadow:
    0 0 0 9px #78bfff19,
    0 0 28px #78bfff;
}
.class-signature-shadow .vfx-family-execute .vfx-trail {
  box-shadow:
    10px 10px 0 #6d31a8aa,
    -11px -8px 0 #dba8ff88;
}
.class-signature-wild .vfx-family-projectile .vfx-core {
  border-radius: 90% 10% 90% 10%;
  transform: rotate(45deg);
}
.class-signature-ash .vfx-family-heal .vfx-core {
  width: 14px;
  clip-path: polygon(50% 0, 100% 40%, 72% 100%, 35% 80%, 0 44%);
}
.class-signature-storm .vfx-family-burst .vfx-core {
  border-radius: 12%;
  clip-path: polygon(
    46% 0,
    61% 35%,
    100% 43%,
    65% 58%,
    53% 100%,
    40% 64%,
    0 50%,
    37% 37%
  );
}
.class-signature-veil .vfx-family-projectile .vfx-core {
  width: 4px;
  border-radius: 0;
  border-width: 0 1px;
}
.class-signature-chrono .vfx-family-time .enemy-art {
  animation: phase142-time-target calc(760ms / var(--combat-speed)) ease both;
}

/* Movement, target push and sparing camera impact. */
.hero-strike .enemy-art {
  animation: phase142-target-push calc(390ms / var(--combat-speed)) ease-out
    both;
}
.enemy-strike .hero-art {
  animation: phase142-hero-push calc(390ms / var(--combat-speed)) ease-out both;
}
.enemy-strike .enemy-combatant {
  animation: phase142-enemy-lunge calc(430ms / var(--combat-speed)) ease-out
    both;
}
.heavy-impact .combatants,
.critical-impact .combatants {
  animation: phase142-stage-hit calc(430ms / var(--combat-speed)) ease-out both;
}
.boss-combat.heavy-impact .combat-backdrop {
  animation: phase142-boss-heavy calc(500ms / var(--combat-speed)) ease-out both;
}

/* Boss hierarchy, intro, phases and defeat beat. */
.boss-combat .enemy-vital {
  padding: 9px 11px;
  border-top: 1px solid color-mix(in srgb, var(--boss-accent) 70%, transparent);
  box-shadow:
    0 0 24px color-mix(in srgb, var(--boss-accent) 17%, transparent),
    0 8px 22px #000b;
}
.boss-combat .enemy-vital b > span {
  color: #f4d79d;
  font: 800 clamp(12px, 1.25vw, 18px) "Playfair Display";
  letter-spacing: 0.04em;
}
.boss-combat .enemy-vital .combat-hp {
  height: 21px;
  border-color: color-mix(in srgb, var(--boss-accent) 50%, #44262c);
}
.phase14-2-boss-intro {
  overflow: hidden;
  background: radial-gradient(
    circle at 70% 50%,
    color-mix(in srgb, var(--boss-accent) 18%, transparent),
    rgba(2, 3, 7, 0.96) 63%
  );
}
.phase14-2-boss-intro::before {
  content: "";
  position: absolute;
  inset: -7%;
  background: var(--boss-art) 72% center/contain no-repeat;
  filter: drop-shadow(
    0 0 24px color-mix(in srgb, var(--boss-accent) 45%, transparent)
  );
  animation: phase142-intro-art 1.25s ease-out both;
}
.phase14-2-boss-intro > div {
  position: relative;
  z-index: 2;
}
.phase14-2-boss-intro p {
  display: grid;
  gap: 4px;
}
.phase14-2-boss-intro p strong {
  color: var(--boss-accent);
  font: 800 clamp(18px, 2.2vw, 32px) "Playfair Display";
  letter-spacing: 0.06em;
}
.phase14-2-boss-intro p small {
  max-width: 48ch;
  color: #c8bdae;
  font-size: 10px;
}
.phase14-2-boss-intro.repeat-intro::before {
  animation-duration: 0.38s;
}
.phase-impact .enemy-art {
  filter: drop-shadow(0 0 30px var(--boss-accent)) saturate(1.25);
  animation: phase142-phase-boss calc(760ms / var(--combat-speed)) ease both;
}
.phase-impact .combat-backdrop {
  animation: phase142-phase-bg calc(760ms / var(--combat-speed)) ease both;
}
.boss-death-title {
  position: absolute;
  z-index: 46;
  top: 49%;
  left: 50%;
  display: grid;
  color: #f4dba4;
  font: 800 clamp(42px, 6vw, 84px) "Playfair Display";
  text-align: center;
  letter-spacing: 0.12em;
  text-shadow:
    0 4px 16px #000,
    0 0 38px var(--boss-accent);
  transform: translate(-50%, -50%);
  animation: phase142-death-title calc(620ms / var(--combat-speed)) ease both;
}
.boss-death-title small {
  color: #d0b982;
  font: 800 10px "DM Mono";
  letter-spacing: 0.18em;
}
.boss-death-moment .enemy-art {
  animation: phase142-boss-death calc(680ms / var(--combat-speed)) ease-in both;
}
.boss-death-moment .combat-backdrop {
  animation: phase142-death-bg calc(680ms / var(--combat-speed)) ease both;
}
.boss-result .enemy-art {
  opacity: 0.42;
  filter: grayscale(0.65) drop-shadow(0 16px 18px #000);
}

@keyframes phase142-depth {
  to {
    transform: scale(1.045) translate3d(-0.6%, -0.4%, 0);
  }
}
@keyframes phase142-basic-lunge {
  0%,
  100% {
    transform: none;
  }
  45% {
    transform: translateX(clamp(8px, 1.4vw, 22px)) scale(1.012);
  }
}
@keyframes phase142-skill-lunge {
  0%,
  100% {
    transform: none;
  }
  38% {
    transform: translateX(clamp(18px, 3vw, 48px)) scale(1.025);
  }
}
@keyframes phase142-enemy-lunge {
  0%,
  100% {
    transform: none;
  }
  42% {
    transform: translateX(clamp(-34px, -2vw, -12px)) scale(1.018);
  }
}
@keyframes phase142-target-push {
  0%,
  100% {
    transform: none;
  }
  48% {
    transform: translateX(clamp(5px, 1vw, 15px)) scale(0.985);
  }
}
@keyframes phase142-hero-push {
  0%,
  100% {
    transform: none;
  }
  48% {
    transform: translateX(clamp(-15px, -1vw, -5px)) scale(0.985);
  }
}
@keyframes phase142-afterimage {
  0%,
  100% {
    filter: drop-shadow(0 24px 25px #000);
  }
  42% {
    filter: drop-shadow(
        -18px 2px 1px
          color-mix(in srgb, var(--signature-primary) 48%, transparent)
      )
      drop-shadow(
        -34px 3px 1px
          color-mix(in srgb, var(--signature-primary) 20%, transparent)
      );
  }
}
@keyframes phase142-slash {
  0% {
    opacity: 0;
    transform: rotate(-17deg) scaleX(0.1);
  }
  35% {
    opacity: 1;
    transform: rotate(-17deg) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: rotate(-17deg) translateX(20px);
  }
}
@keyframes phase142-projectile {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25);
  }
  18% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    top: var(--enemy-hit-y);
    left: var(--enemy-hit-x);
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    top: var(--enemy-hit-y);
    left: var(--enemy-hit-x);
    transform: translate(-50%, -50%) scale(2.4);
  }
}
@keyframes phase142-trail {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  35%,
  75% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
  }
}
@keyframes phase142-burst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.1);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.45);
  }
}
@keyframes phase142-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.7);
  }
}
@keyframes phase142-barrier {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
  }
  32%,
  75% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}
@keyframes phase142-glyph {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0) scale(0.5);
  }
  40%,
  78% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(135deg) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(180deg) scale(1.15);
  }
}
@keyframes phase142-heal-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -15%) scale(0.5);
  }
  30%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -105%) scale(1.25);
  }
}
@keyframes phase142-heal-column {
  0% {
    opacity: 0;
    transform: translate(-50%, 5%) scaleY(0.1);
  }
  30%,
  72% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scaleY(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -80%) scaleY(0.7);
  }
}
@keyframes phase142-execute {
  0%,
  100% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
}
@keyframes phase142-wave {
  0% {
    opacity: 0;
    transform: perspective(340px) rotateX(66deg) scale(0.25);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: perspective(340px) rotateX(66deg) scale(1.35);
  }
}
@keyframes phase142-wave-trail {
  0% {
    opacity: 0;
    transform: translateX(-24%) scaleX(0.2);
  }
  42% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateX(22%) scaleX(1.2);
  }
}
@keyframes phase142-time-ring {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.4) rotate(-90deg);
  }
  40%,
  72% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8) rotate(30deg);
  }
}
@keyframes phase142-time-glyph {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-110deg);
  }
  35%,
  74% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}
@keyframes phase142-time-echo {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.45);
  }
}
@keyframes phase142-time-target {
  0%,
  100% {
    transform: none;
  }
  35% {
    transform: translateX(-6px);
    filter: hue-rotate(25deg) drop-shadow(13px 0 1px #55e7dc66);
  }
  55% {
    transform: translateX(4px);
    filter: hue-rotate(-20deg) drop-shadow(-13px 0 1px #f2d78755);
  }
}
@keyframes phase142-stage-hit {
  0%,
  100% {
    transform: none;
  }
  32% {
    transform: translate3d(-2px, 1px, 0) scale(1.006);
  }
  48% {
    transform: translate3d(3px, -1px, 0) scale(1.006);
  }
  65% {
    transform: translate3d(-1px, 0, 0);
  }
}
@keyframes phase142-boss-heavy {
  0%,
  100% {
    transform: none;
    filter: saturate(0.82) brightness(0.62);
  }
  38% {
    transform: scale(1.025) translate3d(-3px, 2px, 0);
    filter: saturate(1.1) brightness(0.75);
  }
  54% {
    transform: scale(1.02) translate3d(4px, -2px, 0);
  }
}
@keyframes phase142-intro-art {
  0% {
    opacity: 0;
    transform: translateX(5%) scale(0.93);
    filter: brightness(0.4);
  }
  65%,
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes phase142-phase-boss {
  0%,
  100% {
    transform: none;
  }
  30% {
    transform: scale(1.045);
    filter: drop-shadow(0 0 44px var(--boss-accent)) saturate(1.45);
  }
}
@keyframes phase142-phase-bg {
  0%,
  100% {
    filter: saturate(0.82) brightness(0.62);
  }
  38% {
    filter: saturate(1.4) brightness(0.8) hue-rotate(-8deg);
  }
}
@keyframes phase142-death-title {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
  }
  45%,
  85% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.8;
  }
}
@keyframes phase142-boss-death {
  0% {
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 24px 25px #000);
  }
  58% {
    opacity: 0.8;
    transform: translateY(5px) scale(1.025);
    filter: brightness(1.5) drop-shadow(0 0 32px var(--boss-accent));
  }
  100% {
    opacity: 0.12;
    transform: translateY(22px) scale(0.94);
    filter: grayscale(1) blur(2px);
  }
}
@keyframes phase142-death-bg {
  0%,
  100% {
    filter: saturate(0.82) brightness(0.62);
  }
  48% {
    filter: saturate(0.35) brightness(0.86);
  }
}

@media (max-width: 760px) {
  .combat-depth-backdrop {
    transform: scale(1.015);
  }
  .boss-combat .enemy-vital {
    padding: 6px;
  }
  .boss-combat .enemy-vital b > span {
    font-size: 10px;
  }
  .boss-combat .enemy-vital .combat-hp {
    height: 16px;
  }
  .phase14-2-boss-intro::before {
    inset: 5% -25% 5% 19%;
    background-position: center;
    opacity: 0.78;
  }
  .phase14-2-boss-intro > div {
    max-width: 62%;
  }
  .phase14-2-boss-intro p small {
    font-size: 8px;
    line-height: 1.35;
  }
  .combat-fx-layer .vfx-ring,
  .combat-fx-layer .vfx-core,
  .combat-fx-layer .vfx-glyph {
    max-width: 112px;
  }
  .vfx-family-wave .vfx-ring {
    bottom: 24%;
  }
  .boss-death-title {
    font-size: clamp(33px, 11vw, 50px);
  }
  .combat-outcome-title {
    width: 94%;
    text-align: center;
    font-size: clamp(35px, 12vw, 58px);
  }
}

.motion-reduced .combat-depth-backdrop,
.motion-reduced .combat-fx-layer *,
.motion-reduced .combatants,
.motion-reduced .combatant,
.motion-reduced .combatant-art,
.motion-reduced .combat-backdrop,
.motion-reduced .boss-death-title,
.motion-reduced .phase14-2-boss-intro::before {
  animation: none !important;
  transform: none !important;
}
.motion-reduced .combat-fx-layer [class^="vfx-"] {
  opacity: 0.72;
}

body.phase14-screenshot [data-vfx-family] .combat-fx-layer [class^="vfx-"] {
  animation: none !important;
  opacity: 0.9;
}
body.phase14-screenshot .phase14-2-boss-intro {
  animation: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.phase14-screenshot .boss-death-moment .enemy-art {
  animation: none !important;
  opacity: 0.2;
  transform: translateY(18px) scale(0.95);
  filter: grayscale(1) drop-shadow(0 0 28px var(--boss-accent));
}
.boss-death-moment .combat-impact {
  display: none;
}
.combat-damage-layer > .boss-death-title {
  position: absolute !important;
  top: 49% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: auto !important;
  height: auto !important;
  display: grid !important;
  z-index: 46 !important;
  color: #f4dba4 !important;
  font: 800 clamp(42px, 6vw, 84px) "Playfair Display" !important;
  text-align: center !important;
  letter-spacing: 0.12em !important;
  transform: translate(-50%, -50%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .combat-depth-backdrop,
  .combat-fx-layer *,
  .combatants,
  .combatant,
  .combatant-art,
  .combat-backdrop,
  .boss-death-title,
  .phase14-2-boss-intro::before {
    animation: none !important;
    transform: none !important;
  }
  .combat-fx-layer [class^="vfx-"] {
    opacity: 0.72;
  }
}

/* source: phase14-3.css */
/* Phase 14.3 — compact tactical readability without new combat systems */
.combat-status-row {
  position: absolute;
  bottom: calc(100% + 5px);
  display: flex;
  gap: 5px;
  max-width: min(42vw, 430px);
  min-height: 25px;
  z-index: 38;
}
.hero-vital .combat-status-row {
  left: 0;
}
.enemy-vital .combat-status-row {
  right: 0;
  justify-content: flex-end;
}
.combat-status {
  display: grid;
  grid-template-columns: 19px auto;
  grid-template-rows: 14px 10px;
  align-items: center;
  min-width: 0;
  max-width: 142px;
  padding: 3px 7px 3px 3px;
  border: 1px solid #ffffff19;
  border-radius: 5px;
  color: #e6dfd1;
  background: rgba(7, 9, 14, 0.91);
  box-shadow: 0 4px 12px #0008;
  text-align: left;
}
.combat-status i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  color: #d9f4ff;
  background: #427a8d44;
  font: 800 12px "DM Mono";
}
.combat-status.status-offense i {
  color: #ffd0c0;
  background: #a9473d55;
}
.combat-status.status-heal i {
  color: #c9ffd9;
  background: #34895755;
}
.combat-status span {
  overflow: hidden;
  font: 800 9px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combat-status small {
  color: #a9a197;
  font: 600 7px "DM Mono";
  white-space: nowrap;
}
.enemy-vital .combat-status {
  text-align: right;
}

.floating-reduction {
  position: absolute;
  top: 59%;
  left: 29%;
  color: #9ed7e7;
  font: 800 clamp(8px, 0.75vw, 11px) "DM Mono";
  text-shadow: 0 2px 5px #000;
  animation: phase143-reduction calc(650ms / var(--combat-speed)) ease-out both;
}
@keyframes phase143-reduction {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  25%,
  75% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.priority-trigger {
  min-width: 150px;
}
.priority-trigger b {
  color: #d4b978;
  font-size: 9px;
}
.combat-learning-summary {
  margin: 10px 0 5px;
  padding-top: 9px;
  border-top: 1px solid #ffffff12;
}
.combat-learning-summary > small {
  color: #9d958a;
  font: 800 8px "DM Mono";
  letter-spacing: 0.14em;
}
.combat-learning-summary > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 6px;
}
.combat-learning-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 4px;
  background: #ffffff08;
}
.combat-learning-summary span small {
  overflow: hidden;
  color: #9f978d;
  font: 600 7px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.combat-learning-summary span b {
  color: #e9d49e;
  font: 800 10px "Manrope";
}
.defeat-banner + .combat-learning-summary span b {
  color: #d9cec1;
}

.tactical-priority {
  min-height: 145px;
}
.priority-meta {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 6px 8px 7px;
  background: #0003;
}
.priority-meta b {
  width: max-content;
  padding: 2px 5px;
  border-radius: 3px;
  color: #e9d59e;
  background: #ad874429;
  font: 800 8px "DM Mono";
  letter-spacing: 0.08em;
}
.priority-meta span,
.priority-meta em {
  color: #aaa196;
  font: 600 8px "DM Mono";
  font-style: normal;
}
.priority-meta em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.defensive-summary-block {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffffff12;
}
.defensive-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}
.defensive-summary > span {
  position: relative;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border-left: 2px solid
    color-mix(in srgb, var(--arsenal-accent) 62%, transparent);
  background: #ffffff08;
}
.defensive-summary small {
  color: #9e958b;
  font: 700 7px "DM Mono";
}
.defensive-summary b {
  color: #e4d6b4;
  font: 800 11px "Manrope";
}
.defensive-summary em {
  position: absolute;
  top: 4px;
  right: 5px;
  color: #878076;
  font: 600 6px "DM Mono";
  font-style: normal;
}

@media (max-width: 760px) {
  .combat-status-row {
    bottom: calc(100% + 3px);
    gap: 3px;
    max-width: 45vw;
    min-height: 20px;
  }
  .combat-status {
    grid-template-columns: 16px auto;
    grid-template-rows: 12px;
    max-width: 94px;
    padding: 2px 4px 2px 2px;
  }
  .combat-status i {
    grid-row: 1;
    width: 15px;
    height: 15px;
    font-size: 9px;
  }
  .combat-status span {
    font-size: 7px;
  }
  .combat-status small {
    display: none;
  }
  .floating-reduction {
    top: 62%;
    left: 21%;
    font-size: 7px;
  }
  .combat-learning-summary > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .combat-learning-summary span {
    padding: 5px 6px;
  }
  .tactical-priority {
    min-height: 130px;
  }
  .priority-meta span,
  .priority-meta em {
    font-size: 7px;
  }
  .defensive-summary {
    grid-template-columns: 1fr 1fr;
  }
}

.motion-reduced .floating-reduction {
  animation: none !important;
  opacity: 1;
  transform: none;
}

/* Existing compact character labels keep their hierarchy at AA contrast. */
.equipment-power small,
.character-set > small {
  color: #908a81;
}

/* The optional survey may overlap the fourth skill at 1366px; its empty/text
   surface must not swallow drag gestures, while its controls remain usable. */
#phase5Feedback {
  pointer-events: none;
}
#phase5Feedback button {
  pointer-events: auto;
}

/* source: phase15-1.css */
/* Phase 15.1 — character progression and build identity. */
.phase151-character .character-core {
  grid-template-columns: minmax(0, 1fr) 260px;
}
.phase151-character .character-paperdoll {
  min-height: min(540px, calc(100vh - 220px));
}
.phase151-character .hero-gear-slot-wrap {
  position: relative;
  min-width: 0;
}
.phase151-character .hero-gear-slot-wrap > small {
  color: #aaa196;
}
.hero-gear-caption {
  display: grid;
  min-width: 0;
  margin-top: 3px;
  color: #77736d;
  font: 700 6px "DM Mono";
  text-align: center;
  text-transform: uppercase;
}
.hero-gear-caption b {
  color: currentColor;
  font-size: 6px;
}
.hero-gear-caption em {
  overflow: hidden;
  color: #9e978e;
  font: 600 6px "Manrope";
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-gear-slot-wrap.rarity-episch {
  color: #c49af4;
}
.hero-gear-slot-wrap.rarity-legendär {
  color: #efb45b;
}
.hero-gear-slot-wrap.rarity-mythisch,
.hero-gear-slot-wrap.rarity-eternal {
  color: #f178a2;
}

.phase151-character .hero-attributes {
  grid-template-columns: 1fr 1fr;
}
.phase151-character .hero-attribute {
  width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: help;
}
.phase151-character .hero-attribute:first-child {
  grid-column: 1 / -1;
}
.phase151-character .hero-attribute:focus-visible,
.phase151-character .advanced-stats button:focus-visible {
  outline: 2px solid #e2b767;
  outline-offset: 2px;
}
.phase151-character .advanced-stats {
  grid-template-columns: 1fr;
  gap: 3px;
}
.phase151-character .advanced-stats button {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 5px 7px;
  border: 0;
  color: #d8cdbd;
  background: #ffffff08;
  text-align: left;
  cursor: help;
}
.phase151-character .advanced-stats button small {
  color: #aaa298;
}
.phase151-character .advanced-stats button b {
  color: #ead39d;
}
.phase151-character .advanced-stats button i {
  color: #948b7e;
  font: 700 6px "DM Mono";
  font-style: normal;
}
.character-unique-effects {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}
.character-unique-effects span {
  display: grid;
  padding: 5px 7px;
  border-left: 2px solid #d36298;
  background: #7e2f571c;
}
.character-unique-effects b {
  color: #f0a5c7;
  font: 800 7px "DM Mono";
}
.character-unique-effects small {
  overflow: hidden;
  color: #aaa198;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phase151-character .character-set {
  margin-top: 7px;
  padding: 7px;
}
.phase151-character .character-set > b {
  color: #d9be83;
  font-size: 8px;
}
.phase151-character .character-set > span {
  color: #9a9186;
  font-size: 6px;
}

.item-slot-marker.set,
.item-slot-marker.unique,
.item-slot-marker.god-roll {
  width: auto;
  min-width: 20px;
  height: 13px;
  padding: 1px 3px;
  border-radius: 2px;
  font: 900 6px/11px "DM Mono";
  letter-spacing: 0.04em;
}
.item-slot-marker.set {
  color: #8bd8ff;
  background: #17506fea;
}
.item-slot-marker.unique {
  color: #ffd3e4;
  background: #8e315bea;
}
.item-slot-marker.god-roll {
  color: #171008;
  background: #f3d381;
  box-shadow: 0 0 10px #e0ad5b99;
}

.game-tooltip-stat-source > small {
  color: #bca46e;
  font: 800 8px "DM Mono";
  letter-spacing: 0.12em;
}
.game-tooltip-stat-source h2 {
  margin: 4px 0;
  color: #f3e5c8;
  font: 700 24px "Playfair Display";
}
.game-tooltip-stat-source > p {
  margin: 0 0 10px;
  color: #b8b0a6;
  font-size: 10px;
  line-height: 1.5;
}
.stat-source-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-left: 2px solid #d0a65e;
  background: #ffffff0a;
}
.stat-source-total span {
  color: #a69d91;
  font-size: 9px;
}
.stat-source-total b {
  color: #f0d89e;
  font-size: 15px;
}
.game-tooltip-stat-source > h3 {
  margin: 9px 0 3px;
  color: #968d82;
  font: 800 7px "DM Mono";
  letter-spacing: 0.12em;
}
.stat-source-rows {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}
.stat-source-rows > span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 7px;
  background: #ffffff06;
}
.stat-source-rows small {
  color: #aaa299;
  font-size: 8px;
}
.stat-source-rows b {
  color: #ddd3c4;
  font: 700 9px "DM Mono";
}
.stat-source-rows em {
  color: #999188;
  font-size: 9px;
  font-style: normal;
}

.phase151-builds {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 16px 22px 36px;
}
.phase151-builds-hero {
  min-height: 150px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid #a9814766;
  background:
    linear-gradient(90deg, #0b0d13f2, #15101cbd),
    url("./assets/world/citadel.webp") center 37% / cover;
}
.phase151-builds-hero h1 {
  margin: 3px 0;
  color: #f2e6d1;
  font: 700 clamp(30px, 4vw, 48px) "Playfair Display";
}
.phase151-builds-hero p {
  max-width: 650px;
  margin: 0;
  color: #b1a99e;
  font-size: 11px;
}
.phase151-builds-hero > span {
  display: grid;
  min-width: 180px;
  padding: 10px 13px;
  border-left: 2px solid #c79c52;
  background: #090a0dcc;
}
.phase151-builds-hero > span small {
  color: #9f9588;
  font: 700 7px "DM Mono";
}
.phase151-builds-hero > span b {
  color: #e8cf98;
  font-size: 12px;
}
.phase151-loadout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.phase151-loadout-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid #38323a;
  background: linear-gradient(145deg, #11131b, #090a0f);
  box-shadow: 0 14px 28px #0005;
}
.phase151-loadout-card.is-active {
  border-color: #c99f55;
  box-shadow:
    inset 0 0 22px #b8893420,
    0 14px 28px #0007;
}
.phase151-loadout-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phase151-loadout-card > header > span {
  color: #c6aa72;
  font: 800 7px "DM Mono";
  letter-spacing: 0.12em;
}
.loadout-rename-trigger {
  padding: 3px 5px;
  border: 0;
  color: #aaa197;
  background: transparent;
  font: 700 7px "DM Mono";
  cursor: pointer;
}
.loadout-rename-trigger:hover {
  color: #efd8a5;
}
.loadout-identity {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 100px;
  margin-top: 5px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 50%, #7d5c9a22, transparent 42%);
}
.loadout-identity > i {
  width: 76px;
  height: 96px;
  background:
    linear-gradient(0deg, #090a0f 0, transparent 55%),
    var(--loadout-art) center 15% / 135% auto no-repeat;
  filter: drop-shadow(0 8px 12px #000);
}
.loadout-identity h2 {
  overflow: hidden;
  margin: 0;
  color: #f0e4d0;
  font: 700 21px "Playfair Display";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loadout-identity p {
  margin: 3px 0 0;
  color: #a9a096;
  font-size: 9px;
}
.phase151-loadout-card dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5px;
  margin: 5px 0;
}
.phase151-loadout-card dl div {
  min-width: 0;
  padding: 7px;
  background: #ffffff08;
}
.phase151-loadout-card dt {
  color: #928a81;
  font: 700 9px "DM Mono";
}
.phase151-loadout-card dd {
  overflow: hidden;
  margin: 2px 0 0;
  color: #dbcfbd;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loadout-build-counts {
  display: flex;
  gap: 4px;
}
.loadout-build-counts span {
  padding: 3px 5px;
  color: #ada396;
  background: #ffffff08;
  font: 700 8px "DM Mono";
}
.loadout-effects {
  min-height: 39px;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 4px;
  padding: 5px 0;
}
.loadout-effects span {
  padding: 3px 5px;
  color: #d9c58e;
  border: 1px solid #9b793f55;
  background: #8b68271a;
  font: 700 8px "DM Mono";
}
.loadout-effects small {
  color: #8e8780;
  font-size: 8px;
}
.phase151-loadout-card > footer {
  display: flex;
  gap: 5px;
}
.phase151-loadout-card > footer .button {
  flex: 1;
  min-width: 0;
  min-height: 32px;
  padding: 6px;
  font-size: 9px;
}
.arsenal-loadouts .phase151-loadout-card {
  padding: 8px;
}
.arsenal-loadouts .phase151-loadout-card .loadout-identity {
  grid-template-columns: 46px 1fr;
  min-height: 64px;
}
.arsenal-loadouts .phase151-loadout-card .loadout-identity > i {
  width: 46px;
  height: 62px;
}
.arsenal-loadouts .phase151-loadout-card .loadout-identity h2 {
  font-size: 14px;
}
.arsenal-loadouts .phase151-loadout-card dl,
.arsenal-loadouts .phase151-loadout-card .loadout-effects {
  display: none;
}
.phase151-build-note {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  color: #aaa198;
  background: #ffffff07;
  font-size: 9px;
}
.phase151-build-note > span {
  color: #d0a964;
}
.phase151-build-note p {
  margin: 0;
}

.phase151-dialog-layer {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #05060ace;
  backdrop-filter: blur(7px);
}
.phase151-rename-dialog {
  width: min(430px, 100%);
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid #9f7c456b;
  background: linear-gradient(145deg, #17131c, #090a0f);
  box-shadow: 0 25px 80px #000;
}
.phase151-rename-dialog h2 {
  margin: 0;
  color: #f0e1c5;
  font: 700 30px "Playfair Display";
}
.phase151-rename-dialog p {
  margin: 0 0 5px;
  color: #aaa198;
  font-size: 10px;
}
.phase151-rename-dialog label {
  color: #c5b18a;
  font: 700 8px "DM Mono";
}
.phase151-rename-dialog input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #665438;
  color: #f4eadb;
  background: #08090d;
  font-size: 14px;
}
.phase151-rename-dialog > small {
  color: #969087;
  font: 700 7px "DM Mono";
  text-align: right;
}
.phase151-rename-dialog > div {
  display: flex;
  justify-content: end;
  gap: 6px;
  margin-top: 6px;
}

.phase151-level-up {
  width: min(590px, calc(100vw - 28px));
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #d8ad5d8c;
  background:
    radial-gradient(circle at 50% 18%, #c6923b36, transparent 35%),
    linear-gradient(145deg, #17131d, #08090e 70%);
  box-shadow:
    0 25px 90px #000,
    inset 0 0 60px #ad773618;
  animation: celebration-in 0.26s ease both;
  pointer-events: auto;
}
.phase151-level-up > span {
  color: #e0bd74;
  font: 900 8px "DM Mono";
  letter-spacing: 0.2em;
}
.phase151-level-up > h2 {
  margin: 4px 0 14px;
  color: #fff0c8;
  font: 800 clamp(38px, 6vw, 62px) "Playfair Display";
  text-shadow: 0 0 24px #e8ae4e55;
}
.level-up-runes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.level-up-runes i {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1px solid #d9ad5f29;
  transform: rotate(45deg);
  animation: phase151-runes 2.6s ease-in-out infinite alternate;
}
.level-up-runes i:nth-child(1) {
  top: -70px;
  left: -30px;
}
.level-up-runes i:nth-child(2) {
  top: -80px;
  right: -35px;
  animation-delay: -0.8s;
}
.level-up-runes i:nth-child(3) {
  right: 32%;
  bottom: -100px;
  animation-delay: -1.5s;
}
@keyframes phase151-runes {
  to {
    opacity: 0.25;
    transform: rotate(62deg) scale(1.08);
  }
}
.level-up-gains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.level-up-gains > span {
  display: grid;
  padding: 9px 10px;
  background: #ffffff09;
}
.level-up-gains small {
  color: #a69d91;
  font: 700 7px "DM Mono";
}
.level-up-gains b {
  color: #f0d69c;
  font-size: 14px;
}
.level-up-gains em {
  color: #8fd0a1;
  font: 700 8px "DM Mono";
  font-style: normal;
}
.level-up-unlocks {
  display: grid;
  gap: 5px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #ffffff13;
}
.level-up-unlocks > small {
  color: #d1b16f;
  font: 800 7px "DM Mono";
  letter-spacing: 0.12em;
}
.level-up-unlocks > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
  align-items: center;
  padding: 5px;
  background: #a47b3215;
}
.level-up-unlocks img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}
.level-up-unlocks > div > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #e2bf75;
  border: 1px solid #a98346;
  font-style: normal;
}
.level-up-unlocks span {
  display: grid;
}
.level-up-unlocks b {
  color: #eee0c7;
  font-size: 11px;
}
.level-up-unlocks em {
  color: #9f978c;
  font: 700 7px "DM Mono";
  font-style: normal;
}
.phase151-level-up > .button {
  width: 100%;
  margin-top: 11px;
}

@media (max-width: 760px) {
  .phase151-character .character-core {
    grid-template-columns: 1fr;
  }
  .phase151-character .character-paperdoll {
    min-height: 390px;
  }
  .phase151-character .hero-gear-caption em {
    display: none;
  }
  .phase151-character .character-stat-panel {
    padding-bottom: 4px;
  }
  .phase151-character .hero-attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .phase151-character .hero-attribute:first-child {
    grid-column: auto;
  }
  .phase151-builds {
    padding: 7px 7px 78px;
  }
  .phase151-builds-hero {
    min-height: 112px;
    display: grid;
    padding: 15px;
  }
  .phase151-builds-hero p {
    font-size: 9px;
  }
  .phase151-builds-hero > span {
    min-width: 0;
    padding: 6px 9px;
  }
  .phase151-loadout-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .phase151-loadout-card {
    padding: 9px;
  }
  .loadout-identity {
    grid-template-columns: 60px 1fr;
    min-height: 74px;
  }
  .loadout-identity > i {
    width: 60px;
    height: 72px;
  }
  .phase151-loadout-card dl {
    margin: 2px 0;
  }
  .loadout-effects {
    min-height: 0;
  }
  .phase151-build-note {
    font-size: 8px;
  }
  .phase151-level-up {
    max-height: calc(100dvh - 30px);
    overflow-y: auto;
    padding: 18px 14px;
  }
  .phase151-level-up > h2 {
    margin-bottom: 9px;
    font-size: 39px;
  }
  .level-up-gains {
    gap: 3px;
  }
  .level-up-gains > span {
    padding: 7px 6px;
  }
  .level-up-gains small {
    font-size: 6px;
  }
  .level-up-gains b {
    font-size: 11px;
  }
  .level-up-gains em {
    font-size: 7px;
  }
  .level-up-unlocks > div {
    grid-template-columns: 34px 1fr;
  }
  .level-up-unlocks img,
  .level-up-unlocks > div > i {
    width: 34px;
    height: 34px;
  }
  .game-tooltip-stat-source h2 {
    font-size: 22px;
  }
}

.reduce-motion .level-up-runes i {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .level-up-runes i {
    animation: none !important;
  }
}

/* source: phase13-power.css */
.phase13-power-character .power-details-trigger {
  display: block;
  min-height: 24px;
  margin: 4px auto 0;
  padding: 3px 8px;
  font-size: 7px;
}
.phase13-power-character .character-inventory-dock {
  display: block;
}
.mobile-power-details {
  display: none;
}
.power-details-panel {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  margin: 7px 12px;
  padding: 9px 12px;
  border: 1px solid #92733f70;
  background: linear-gradient(100deg, #0b0d14f2, #17130df2);
  box-shadow: inset 0 0 20px #0008;
}
.power-details-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-right: 1px solid #8c70414a;
  padding-right: 10px;
}
.power-details-panel header span {
  display: grid;
}
.power-details-panel small,
.power-details-panel em {
  color: #a99f90;
  font: 700 7px "DM Mono";
  font-style: normal;
  letter-spacing: 0.09em;
}
.power-details-panel header b {
  color: #f1d69a;
  font-size: 21px;
}
.power-details-panel header em {
  color: #83b995;
}
.power-details-panel > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(85px, 1fr));
  gap: 4px;
}
.power-details-panel > div span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 6px;
  background: #ffffff08;
}
.power-details-panel > div b {
  color: #d8c18f;
  font: 800 8px "DM Mono";
}
.power-details-panel > p {
  grid-column: 1/-1;
  margin: 0;
  color: #aaa196;
  font-size: 8px;
}
.build-summary-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 0;
}
.build-summary-strip small {
  color: #938a7e;
  margin-right: auto;
}
.build-summary-strip b {
  padding: 3px 5px;
  border: 1px solid #89703d66;
  color: #d7bc7c;
  font: 700 6px "DM Mono";
}
.phase13-power-character .advanced-stats.grouped {
  display: grid;
  gap: 5px;
  max-height: min(340px, 35vh);
  overflow: auto;
}
.advanced-stat-group {
  display: grid;
  gap: 3px;
}
.advanced-stat-group h3 {
  margin: 0;
  color: #c8a963;
  font: 800 7px "DM Mono";
  letter-spacing: 0.12em;
}
.advanced-stat-group > div {
  display: grid;
  gap: 3px;
}
.phase13-power-character .advanced-stats button.build-relevant {
  border-left-color: #d2a94d;
}
.phase13-power-character .advanced-stats button.build-relevant i {
  color: #d3b56f;
}
.gear-summary {
  margin-top: 6px;
  padding: 7px;
  border: 1px solid #765f384f;
  background: #080a0f99;
}
.gear-summary > header {
  display: flex;
  justify-content: space-between;
  color: #cdb274;
}
.gear-summary > header small {
  font: 800 7px "DM Mono";
  letter-spacing: 0.12em;
}
.gear-summary > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  margin-top: 5px;
}
.gear-summary > div span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.gear-summary > div small {
  color: #938b81;
  font: 700 6px "DM Mono";
}
.gear-summary > div b {
  color: #dec793;
  font: 800 7px "DM Mono";
}
.gear-goals {
  display: grid;
  gap: 3px;
  margin-top: 5px;
}
.gear-goals > small {
  color: #c4a55e;
  font: 800 7px "DM Mono";
}
.gear-goals > span {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 6px;
  border-left: 2px solid #9a7a3f;
  background: #aa81340d;
}
.gear-goals b {
  color: #d7be84;
  font-size: 7px;
}
.gear-goals span small {
  color: #918a80;
  font-size: 6px;
}
.character-unique-effects > header {
  color: #c5a660;
  font: 800 7px "DM Mono";
  letter-spacing: 0.1em;
}
.advanced-quality-summary,
.tooltip-identity-deltas > span,
.set-impact > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px;
  background: #fff6;
}
.advanced-inspect-title {
  margin: 0;
  color: #b7ece7;
  font: 800 8px "DM Mono";
  letter-spacing: 0.12em;
}
.advanced-quality-summary span,
.tooltip-identity-deltas small,
.set-impact small {
  color: #9b9285;
  font: 700 7px "DM Mono";
}
.advanced-quality-summary b {
  color: #d9bd7a;
  font: 800 8px "DM Mono";
}
.tooltip-identity-deltas {
  display: grid;
  gap: 4px;
  padding: 7px 0;
  border-top: 1px solid #7e673b55;
}
.tooltip-identity-deltas > span b,
.set-impact b {
  font: 800 8px "DM Mono";
}
.tooltip-identity-deltas .gain b {
  color: #8cc49b;
}
.tooltip-identity-deltas .loss b {
  color: #d9978d;
}
.set-impact {
  display: grid;
  gap: 3px;
}
.tooltip-roll-quality > span {
  display: block;
  color: #b3a98f;
  font: 700 7px "DM Mono";
}
.stat-cap {
  margin-top: 7px;
  padding: 5px;
  border-left: 2px solid #a98243;
  background: #a9824312;
}
.profile-gear-summary {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 7px;
}
.profile-gear-summary span {
  display: flex;
  justify-content: space-between;
  padding: 4px 6px;
  background: #ffffff09;
}
.profile-gear-summary small {
  color: #9c9488;
  font: 700 6px "DM Mono";
}
.profile-gear-summary b {
  color: #ddc58c;
  font: 800 8px "DM Mono";
}
.power-feedback.power-loss .power-gain {
  color: #d19a8f;
}
.equip-stat-changes {
  display: grid;
  gap: 3px;
  margin-top: 6px;
}
.equip-stat-changes span {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 3px 6px;
  background: #ffffff0a;
}
.equip-stat-changes small,
.equip-stat-changes b,
.equip-stat-changes em {
  font: 700 7px "DM Mono";
  font-style: normal;
}
.equip-stat-changes small {
  color: #a49b8f;
}
.equip-stat-changes b {
  color: #d5c18f;
}
.equip-stat-changes em {
  color: #92ba98;
}
.power-feedback > p {
  margin: 5px 0 0;
  color: #9d958b;
  font-size: 7px;
}
.loadout-stat-comparison {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin: 5px 0;
}
.loadout-stat-comparison span {
  display: grid;
  padding: 4px;
  background: #ffffff09;
}
.loadout-stat-comparison small {
  color: #938c82;
  font: 700 6px "DM Mono";
}
.loadout-stat-comparison b {
  color: #dec58e;
  font: 800 8px "DM Mono";
}

@media (max-width: 1366px) {
  .power-details-panel {
    grid-template-columns: 125px minmax(0, 1fr);
    margin: 4px 7px;
    padding: 6px 8px;
  }
  .power-details-panel > div {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
  .phase13-power-character .gear-summary,
  .phase13-power-character .gear-goals {
    padding-block: 4px;
  }
}
@media (max-width: 760px) {
  .phase13-power-character .character-inventory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mobile-power-details {
    display: block;
    width: 100%;
    margin-bottom: 5px;
  }
  .power-details-panel {
    grid-template-columns: 1fr;
    margin: 5px;
  }
  .power-details-panel > header {
    border-right: 0;
    border-bottom: 1px solid #8c70414a;
    padding: 0 0 6px;
  }
  .power-details-panel > div {
    grid-template-columns: 1fr 1fr;
  }
  .phase13-power-character .advanced-stats.grouped {
    max-height: none;
    overflow: visible;
  }
  .gear-summary > div {
    grid-template-columns: 1fr 1fr;
  }
  .profile-gear-summary {
    grid-template-columns: 1fr 1fr;
  }
  .loadout-stat-comparison {
    grid-template-columns: repeat(3, 1fr);
  }
  .gear-goals > span {
    display: grid;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phase13-power-character .character-profile-power b,
  .power-details-panel {
    transition: none !important;
    animation: none !important;
  }
}

/* source: phase14-forge.css */
.phase14-forge {
  min-height: 560px;
  grid-template-columns: minmax(220px, 0.75fr) minmax(540px, 1.8fr);
}
.phase14-forge .forge-master {
  align-content: end;
}
.forge-materials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 10px;
}
.forge-materials span {
  padding: 6px;
  border: 1px solid #ad884f55;
  background: #090b10c9;
  color: #e3c987;
  font: 800 8px "DM Mono";
}
.phase14-forge .forge-anvil {
  align-items: stretch;
  overflow: auto;
}
.phase14-forge .anvil-item {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(320px, 1.3fr);
  gap: 8px;
  width: 100%;
  padding: 10px;
}
.phase14-forge .forge-item-focus {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.phase14-forge .forge-item-focus .item-slot {
  flex: 0 0 68px;
}
.max-upgrade-item {
  border-color: #d5b45f;
  box-shadow: inset 0 0 38px #d5a84018;
}
.max-upgrade-label {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 6px;
  border: 1px solid #d7b76588;
  color: #f0d68f;
  font: 900 8px "DM Mono";
  letter-spacing: 0.12em;
}
.item-slot-marker.max-upgrade {
  background: #352b17;
  color: #f0d58d;
  font-size: 6px;
}
.forge-upgrade-preview,
.forge-affix-station {
  padding: 8px;
  border: 1px solid #8a70453d;
  background: #070910df;
}
.forge-upgrade-preview > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.forge-upgrade-preview span {
  display: grid;
  padding: 6px;
  background: #ffffff08;
}
.forge-upgrade-preview small,
.forge-affix-station small {
  color: #9f978b;
  font: 700 7px "DM Mono";
}
.forge-upgrade-preview b {
  color: #e1c784;
}
.forge-upgrade-preview p {
  color: #999186;
  font-size: 8px;
}
.forge-upgrade-preview .hammer-upgrade {
  width: 100%;
}
.forge-affix-station > header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: end;
}
.forge-affix-station > header span {
  display: grid;
}
.forge-affix-station > header b {
  color: #e2c981;
}
.forge-affix-station > header em {
  color: #958c80;
  font: 700 7px "DM Mono";
  font-style: normal;
}
.forge-affix-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 7px 0;
}
.forge-affix-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 6px;
  min-height: 44px;
  padding: 5px 7px;
  border: 1px solid #564c3d;
  background: #11131a;
  color: #c5bcae;
  text-align: left;
}
.forge-affix-choice small {
  grid-column: 1/-1;
}
.forge-affix-choice.selected {
  border-color: #d1a955;
  box-shadow: inset 3px 0 #d1a955;
}
.forge-affix-choice:disabled {
  opacity: 0.45;
}
.forge-change-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid #55726c55;
  background: #091313;
}
.forge-change-preview > span {
  display: grid;
  align-content: center;
}
.forge-change-preview > span b {
  color: #9be0d5;
  font-size: 16px;
}
.forge-change-preview > span em {
  color: #9e968a;
  font: 700 7px "DM Mono";
  font-style: normal;
}
.forge-change-preview p {
  margin: 2px 0;
  color: #a9a197;
  font-size: 7px;
}
.forge-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-top: 6px;
}
.phase14-forge .anvil-item > footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a59d91;
  font: 700 7px "DM Mono";
}
.forge-filters {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 7px;
  background: #080a0edb;
}
.forge-filters .button {
  min-height: 28px;
  padding: 5px 8px;
}
.forge-filters .anvil-comparison {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.forge-picker {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(auto-fill, 54px);
  gap: 5px;
  padding: 8px;
  background: #05070bd9;
}
.forge-picker .item-slot {
  width: 54px;
  height: 54px;
}
.forge-picker .forge-selected {
  outline: 2px solid #d6ae57;
  outline-offset: 1px;
}
.plus20-reached::before {
  content: "";
  position: absolute;
  inset: -15%;
  border: 1px solid #e2c16a66;
  transform: rotate(4deg);
}
.refine-feedback > i {
  color: #83d7c9;
}

@media (max-width: 900px) {
  .phase14-forge {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .phase14-forge .forge-master {
    min-height: 190px;
  }
  .phase14-forge .anvil-item {
    grid-template-columns: 1fr;
  }
  .phase14-forge .forge-item-focus,
  .phase14-forge .anvil-item > footer {
    grid-column: 1;
  }
}
@media (max-width: 760px) {
  .phase14-forge .forge-master {
    min-height: 160px;
  }
  .forge-materials {
    grid-template-columns: 1fr 1fr;
  }
  .forge-affix-list {
    grid-template-columns: 1fr;
  }
  .forge-change-preview {
    grid-template-columns: 1fr;
  }
  .forge-action-grid {
    grid-template-columns: 1fr;
  }
  .forge-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .forge-filters .button {
    flex: 0 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phase14-forge *,
  .plus20-reached::before {
    animation: none !important;
    transition: none !important;
  }
}

/* source: phase15.css */
/* Phase 15 — campaign and mission clarity. */
.phase135-missions .tavern-heading {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 9, 14, 0.96), rgba(8, 9, 14, 0.72)),
    var(--region-art) center 45% / cover;
}
.mission-region-summary {
  max-width: 360px;
  display: grid;
  gap: 5px;
  padding: 10px 13px;
  border-left: 1px solid rgba(215, 168, 79, 0.45);
  text-align: right;
}
.mission-region-summary small {
  color: #a99c88;
  font: 600 7px "DM Mono";
}
.mission-region-summary b {
  color: #e0bd7b;
  font-size: 10px;
}
/* Laptop density for the mission shell. */
@media (min-width: 801px) and (max-height: 850px) {
  .phase135-missions {
    padding-top: 8px;
  }
  .phase135-missions .tavern-heading {
    min-height: 76px;
    padding-block: 9px;
  }
  .phase135-missions .tavern-heading h1 {
    font-size: 31px;
  }
  .phase135-missions .contextual-hint {
    margin-block: 5px;
    padding-block: 5px;
  }
}
@media (max-width: 800px) {
  .mission-region-summary {
    max-width: none;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid rgba(215, 168, 79, 0.25);
    text-align: left;
  }
  .phase135-missions .tavern-heading {
    align-items: stretch;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mission-traveler,
  .journey-arrival {
    transition: none !important;
  }
}

/* Mission Focus Panel — single production composition for offers and states. */
body[data-view="missions"] .phase135-missions {
  width: min(1480px, 100%);
  height: 100%;
  margin: 0 auto;
  padding: 10px 16px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body[data-view="missions"] .phase135-missions .tavern-heading {
  flex: 0 0 auto;
  min-height: 90px;
  margin-bottom: 7px;
  padding: 12px 18px;
}
body[data-view="missions"] .phase135-missions .tavern-heading h1 {
  margin: 1px 0 3px;
  font-size: clamp(29px, 3vw, 42px);
}
body[data-view="missions"] .phase135-missions .tavern-heading p {
  max-width: 760px;
  margin: 0;
  font-size: 11px;
}
body[data-view="missions"] .quest-givers.vey-focus-track {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: hidden;
}
body[data-view="missions"] .quest-givers.vey-focus-track > .vey-focus-current {
  height: 100%;
}
body[data-view="missions"] .quest-givers.vey-focus-track > .vey-focus-previous,
body[data-view="missions"] .quest-givers.vey-focus-track > .vey-focus-next {
  display: none;
}
.mission-focus-nav {
  grid-template-columns: minmax(160px, 0.7fr) minmax(230px, 1fr) minmax(
      160px,
      0.7fr
    );
  min-height: 52px;
  margin: 0;
  gap: 7px;
  flex: 0 0 52px;
}
.mission-focus-nav button,
.mission-focus-nav .focus-current {
  min-height: 52px;
  padding-block: 7px;
  border-color: rgba(168, 129, 72, 0.38);
  background: linear-gradient(
    145deg,
    rgba(24, 21, 22, 0.95),
    rgba(8, 9, 13, 0.98)
  );
}
.mission-focus-nav .focus-current {
  display: grid;
  place-content: center;
  border-color: rgba(164, 116, 197, 0.68);
  background:
    radial-gradient(
      circle at 50% 120%,
      rgba(115, 71, 145, 0.35),
      transparent 65%
    ),
    #111016;
}
.mission-focus-nav button span {
  display: grid;
  gap: 2px;
}
.mission-focus-nav button small,
.mission-focus-nav .focus-current > small {
  color: #c9ad7a;
  font: 700 10px "DM Mono";
  letter-spacing: 0.13em;
}
.mission-focus-nav button b {
  color: #ded3c1;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.mission-position {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}
.mission-position i {
  color: #665d55;
  font: 700 10px "Playfair Display";
  font-style: normal;
}
.mission-position i.active {
  color: #e7c575;
  text-shadow: 0 0 10px rgba(222, 179, 93, 0.7);
}

.mission-focus-card {
  --mission-accent: #9caebc;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 420px;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(230px, 36%) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(178, 137, 72, 0.48);
  border-bottom: 2px solid var(--mission-accent);
  color: #ddd5c8;
  background:
    linear-gradient(90deg, rgba(6, 7, 10, 0.34), #090a0f 43% 100%),
    var(--mission-region-art) center / cover;
  box-shadow:
    inset 0 0 70px #0008,
    0 18px 46px #0008;
  transform: none;
  opacity: 1;
}
.mission-focus-card.mission-type-contract {
  --mission-accent: #d0a257;
}
.mission-focus-card.mission-type-expedition {
  --mission-accent: #a98ad7;
}
.mission-focus-card:hover {
  filter: brightness(1.03);
  transform: none;
}
.mission-focus-card.locked {
  filter: saturate(0.42);
  opacity: 0.72;
}
.mission-focus-art {
  position: relative;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  border-right: 1px solid rgba(190, 151, 86, 0.28);
  background:
    linear-gradient(0deg, #090a0f 2%, transparent 52%),
    linear-gradient(90deg, transparent 68%, #090a0f),
    var(--mission-region-art) center / cover;
}
.mission-focus-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 48% 38%,
    transparent 18%,
    rgba(4, 5, 8, 0.18) 58%,
    rgba(4, 5, 8, 0.72)
  );
  pointer-events: none;
}
.mission-portrait {
  position: absolute;
  z-index: 1;
  inset: 3% 5% 17%;
  background: var(--mission-npc-art) center 18% / cover no-repeat;
  filter: drop-shadow(0 16px 22px #000d);
}
.mission-giver-identity {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 18px;
  left: 17px;
  display: grid;
  padding-top: 10px;
  border-top: 1px solid rgba(220, 177, 97, 0.45);
  text-shadow: 0 2px 8px #000;
}
.mission-giver-identity small {
  color: #b9a582;
  font: 700 9px "DM Mono";
  letter-spacing: 0.16em;
}
.mission-giver-identity b {
  color: #f1e3cc;
  font: 700 24px "Playfair Display";
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mission-giver-identity span {
  color: #d3b477;
  font: 700 9px "DM Mono";
  letter-spacing: 0.08em;
}

.mission-focus-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, auto) auto;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 2vw, 30px);
  background: linear-gradient(
    135deg,
    rgba(11, 12, 17, 0.92),
    rgba(6, 7, 11, 0.98)
  );
}
.mission-focus-content > header {
  min-width: 0;
}
.mission-focus-content .quest-type {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(207, 165, 89, 0.35);
  color: #d4b26f;
  font: 700 9px "DM Mono";
  letter-spacing: 0.1em;
}
.mission-focus-content h2 {
  overflow: visible;
  margin: 7px 0 4px;
  color: #f1e6d4;
  font: 700 clamp(30px, 3vw, 46px)/1.02 "Playfair Display";
  white-space: normal;
}
.mission-focus-content > header p {
  max-width: 660px;
  min-height: 0;
  margin: 0;
  color: #aaa298;
  font-size: 12px;
  line-height: 1.45;
}
.mission-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid rgba(184, 143, 76, 0.24);
}
.mission-values > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 9px;
  padding: 11px 8px;
  border-right: 1px solid rgba(184, 143, 76, 0.15);
}
.mission-values > span:last-child {
  border-right: 0;
}
.mission-values i {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  align-self: center;
  display: grid;
  place-items: center;
  color: #d8b76e;
  background: var(--value-art) center / cover no-repeat;
  font: 23px serif;
  filter: drop-shadow(0 2px 5px #000);
}
.mission-values small {
  color: #a69b8d;
  font: 700 10px "DM Mono";
  letter-spacing: 0.12em;
}
.mission-values b {
  overflow: hidden;
  color: #f0dfbf;
  font: 800 clamp(21px, 2vw, 28px)/1.1 "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mission-drop-preview {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.mission-drop-preview > div:first-child {
  display: grid;
  gap: 4px;
}
.mission-drop-preview > div:first-child small,
.mission-active-bonuses > small {
  color: #c6a96f;
  font: 700 10px "DM Mono";
  letter-spacing: 0.14em;
}
.mission-drop-preview > div:first-child b {
  color: #ded4c3;
  font-size: 11px;
}
.mission-drop-slots {
  display: flex;
  gap: 8px;
  min-width: 0;
}
.mission-drop-slot {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(162, 126, 74, 0.48);
  color: #d8c9b4;
  background: radial-gradient(circle, #28222c, #0d0e13 70%);
  cursor: help;
}
.mission-drop-slot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(223, 190, 121, 0.12);
  pointer-events: none;
}
.mission-drop-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.mission-drop-slot span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  overflow: hidden;
  padding: 2px 3px;
  color: #d8cbb9;
  background: rgba(5, 6, 9, 0.86);
  font: 700 7px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mission-active-bonuses {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.mission-active-bonuses > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.mission-active-bonuses span {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 8px;
  padding: 6px 9px;
  border: 1px solid rgba(120, 101, 137, 0.42);
  background: rgba(35, 27, 43, 0.38);
}
.mission-active-bonuses span small {
  color: #a899b2;
  font: 700 8px "DM Mono";
}
.mission-active-bonuses span b {
  color: #e0d4e8;
  font-size: 10px;
}
.mission-active-bonuses span em {
  grid-column: 1 / -1;
  color: #9f959f;
  font: 7px "DM Mono";
  font-style: normal;
}
.mission-focus-content > footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 143, 76, 0.2);
}
.mission-focus-content > footer > span {
  margin-right: auto;
  color: #9f9587;
  font: 700 9px "DM Mono";
}
.mission-focus-content > footer .button {
  width: auto;
  min-width: 210px;
  min-height: 46px;
  padding-inline: 28px;
}

body[data-view="missions"] .mission-state-screen {
  justify-content: center;
}
body[data-view="missions"] .mission-journey {
  min-height: min(620px, calc(100dvh - 145px));
  grid-template-rows: auto minmax(260px, 1fr) auto;
}
.journey-status {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.journey-status > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 15px;
}
.journey-status small {
  color: #d7c399;
  font: 700 14px "DM Mono";
  letter-spacing: 0.08em;
}
.journey-status strong {
  color: #e8bf70;
  font: 800 28px "DM Mono";
  white-space: nowrap;
}
.journey-rewards {
  min-width: 220px;
  color: #bcb1a0;
  font: 700 11px "DM Mono";
  text-align: right;
  white-space: nowrap;
}
.mission-journey.ready .journey-status small {
  color: #e6bd6d;
  font-size: 17px;
}
.mission-journey.ready .journey-actions .button {
  min-width: 220px;
  min-height: 46px;
}

@media (min-width: 851px) and (max-height: 850px) {
  body[data-view="missions"] .phase135-missions {
    padding-block: 7px 14px;
  }
  body[data-view="missions"] .phase135-missions .tavern-heading {
    min-height: 76px;
    padding-block: 8px;
  }
  body[data-view="missions"] .phase135-missions .tavern-heading h1 {
    font-size: 30px;
  }
  body[data-view="missions"] .quest-givers.vey-focus-track {
    min-height: 390px;
  }
  .mission-focus-nav,
  .mission-focus-nav button,
  .mission-focus-nav .focus-current {
    min-height: 45px;
  }
  .mission-focus-content {
    gap: 8px;
    padding-block: 14px;
  }
  .mission-focus-content h2 {
    font-size: clamp(28px, 3vw, 38px);
  }
  .mission-values > span {
    padding-block: 8px;
  }
  .mission-drop-slot {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }
  .mission-giver-identity b {
    font-size: 21px;
  }
}

@media (max-width: 850px) {
  body[data-view="missions"] .phase135-missions {
    height: auto;
    min-height: 100%;
    padding: 6px 8px 84px;
    overflow: visible;
  }
  body[data-view="missions"] .phase135-missions .tavern-heading {
    min-height: 72px;
    padding: 9px 11px;
  }
  body[data-view="missions"] .phase135-missions .tavern-heading h1 {
    font-size: 27px;
  }
  body[data-view="missions"] .phase135-missions .tavern-heading p,
  body[data-view="missions"] .mission-region-summary {
    display: none;
  }
  body[data-view="missions"] .quest-givers.vey-focus-track {
    display: block;
    height: auto;
    overflow: visible;
  }
  .mission-focus-nav {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    min-height: 48px;
  }
  .mission-focus-nav button {
    min-width: 0;
    padding: 0;
  }
  .mission-focus-nav button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .mission-focus-nav .previous::before {
    left: 18px;
  }
  .mission-focus-nav .next::before {
    right: 18px;
  }
  .mission-focus-card {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }
  .mission-focus-art {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(190, 151, 86, 0.28);
  }
  .mission-portrait {
    inset: 0 8% 0;
    background-position: center 20%;
  }
  .mission-giver-identity {
    right: 12px;
    bottom: 10px;
    left: 12px;
  }
  .mission-giver-identity b {
    font-size: 20px;
  }
  .mission-focus-content {
    gap: 8px;
    padding: 12px 10px 14px;
  }
  .mission-focus-content h2 {
    font-size: clamp(28px, 9vw, 36px);
  }
  .mission-focus-content > header p {
    font-size: 11px;
  }
  .mission-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mission-values > span:nth-child(2) {
    border-right: 0;
  }
  .mission-values > span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(184, 143, 76, 0.15);
  }
  .mission-values b {
    font-size: 22px;
  }
  .mission-drop-preview {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .mission-drop-slots {
    overflow-x: auto;
  }
  .mission-drop-slot {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }
  .mission-active-bonuses {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .mission-focus-content > footer {
    align-items: stretch;
    flex-direction: column;
  }
  .mission-focus-content > footer > span {
    display: none;
  }
  .mission-focus-content > footer .button {
    width: 100%;
  }
  body[data-view="missions"] .mission-journey {
    min-height: calc(100dvh - 190px);
  }
  .journey-status {
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }
  .journey-status small {
    font-size: 11px;
  }
  .journey-rewards {
    min-width: 220px;
    font-size: 9px;
    text-align: left;
  }
}

/* source: phase16.css */
.brand > span:last-child {
  display: grid;
  gap: 2px;
  line-height: 1;
  letter-spacing: 0.16em;
}
.brand > span:last-child b {
  color: #f0d79d;
  font:
    800 17px "Playfair Display",
    serif;
  letter-spacing: 0.18em;
}
.brand > span:last-child small {
  color: #8f887c;
  font:
    700 6px "DM Mono",
    monospace;
  letter-spacing: 0.1em;
}
.tooltip-affix-count {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border-block: 1px solid #ffffff12;
  color: #cbb17c;
}
.tooltip-affix-count small {
  font:
    700 8px "DM Mono",
    monospace;
  letter-spacing: 0.14em;
}
.rift-screen {
  min-height: calc(100dvh - 116px);
  padding: 18px;
  color: #d9d2c7;
  background:
    radial-gradient(circle at 72% 4%, #4b277b24, transparent 34%),
    linear-gradient(150deg, #0e1018, #07080d 62%);
}
.rift-hero {
  min-height: 240px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid #8f72bd48;
  background:
    linear-gradient(90deg, #080910ef 0%, #0809108c 46%, #08091022),
    url("./assets/rifts/eternal-rift.webp") center 49% / cover;
  box-shadow:
    0 28px 70px #0009,
    inset 0 0 60px #5d2d7b20;
}
.rift-hero h1 {
  margin: 3px 0;
  color: #f1e3ff;
  font:
    800 clamp(38px, 6vw, 76px) "Playfair Display",
    serif;
}
.rift-hero p {
  max-width: 620px;
  margin: 0;
  color: #b6acbd;
}
.rift-hero > span {
  min-width: 170px;
  padding: 12px;
  border: 1px solid #ad8ddc55;
  background: #090a11d9;
  text-align: right;
}
.rift-hero > span small,
.rift-hero > span em {
  display: block;
  color: #9e92aa;
  font: 700 7px "DM Mono";
}
.rift-hero > span b {
  display: block;
  color: #e3caff;
  font-size: 24px;
}
.rift-select-stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.35fr);
  gap: 14px;
  margin-top: 14px;
}
.rift-shard-grid {
  max-height: 570px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #ffffff14;
  background: #07080d;
}
.rift-shard {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #353040;
  color: #cfc8d4;
  background: linear-gradient(145deg, #16131d, #0a0a10);
  text-align: left;
}
.rift-shard:hover,
.rift-shard:focus-visible,
.rift-shard.selected {
  border-color: #be94ed;
  box-shadow: inset 0 0 20px #9659d121;
}
.rift-shard > i {
  position: relative;
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ae7ce3;
  text-align: center;
}
.rift-shard > i::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid currentColor;
  clip-path: polygon(50% 0, 95% 25%, 88% 83%, 50% 100%, 12% 83%, 5% 25%);
  opacity: calc(0.22 + var(--tier-glow, 0.15));
}
.rift-shard > i img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(
    0 0 calc(5px + var(--tier-glow, 0.15) * 12px) currentColor
  );
}
.rift-shard[data-tier="1"],
.rift-shard[data-tier="2"] {
  --tier-glow: 0.12;
}
.rift-shard[data-tier="3"],
.rift-shard[data-tier="4"] {
  --tier-glow: 0.22;
}
.rift-shard[data-tier="5"],
.rift-shard[data-tier="6"] {
  --tier-glow: 0.34;
}
.rift-shard[data-tier="7"],
.rift-shard[data-tier="8"] {
  --tier-glow: 0.48;
}
.rift-shard[data-tier="9"],
.rift-shard[data-tier="10"] {
  --tier-glow: 0.68;
}
.rift-shard[data-tier="3"],
.rift-shard[data-tier="4"],
.rift-shard[data-tier="7"],
.rift-shard[data-tier="8"],
.rift-shard[data-tier="10"] {
  border-inline-width: 2px;
}
.rift-shard[data-tier="5"],
.rift-shard[data-tier="6"],
.rift-shard[data-tier="9"],
.rift-shard[data-tier="10"] {
  background: linear-gradient(145deg, #21172a, #0a0a10 68%);
}
.rift-shard span,
.rift-shard span > * {
  min-width: 0;
  display: block;
}
.rift-shard small,
.rift-shard em,
.rift-shard > u {
  color: #958c9d;
  font: 700 8px "DM Mono";
  text-decoration: none;
}
.rift-shard b {
  overflow: hidden;
  color: #e4d8e9;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rift-shard > u {
  grid-column: 2;
  color: #b69dcc;
}
.rift-inspect,
.rift-run,
.rift-cache-reveal {
  position: relative;
  padding: 22px;
  border: 1px solid #80639f66;
  background: linear-gradient(145deg, #17131f, #090a10 72%);
  box-shadow: 0 22px 50px #0007;
}
.rift-inspect header,
.rift-run header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #ffffff12;
  padding-bottom: 14px;
}
.rift-inspect-art {
  width: clamp(92px, 12vw, 160px);
  height: clamp(92px, 12vw, 160px);
  object-fit: contain;
  filter: drop-shadow(0 0 22px #975cc770);
}
.rift-inspect h2,
.rift-run h2,
.rift-cache-reveal h2 {
  margin: 2px 0;
  color: #eee0fa;
  font: 700 clamp(28px, 4vw, 48px) "Playfair Display";
}
.rift-inspect header > b {
  color: #d0a7f2;
  font: 800 26px "DM Mono";
  text-align: right;
}
.rift-inspect header > b small {
  display: block;
  color: #9788a4;
  font-size: 9px;
}
.rift-mod-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.rift-mod-columns section {
  padding: 12px;
  background: #ffffff06;
}
.rift-mod-columns h3 {
  color: #bda0d1;
  font: 800 10px "DM Mono";
  letter-spacing: 0.16em;
}
.rift-mod-columns span {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #ffffff0d;
}
.rift-mod-columns img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.rift-mod-columns .risk-mod img {
  filter: drop-shadow(0 0 5px #a34d55);
}
.rift-mod-columns .reward-mod img {
  filter: drop-shadow(0 0 5px #8f65c4);
}
.rift-mod-columns b {
  color: #d8d0dd;
  font-size: 11px;
}
.rift-mod-columns small {
  color: #918896;
  font-size: 9px;
}
.rift-mod-range {
  display: none;
  grid-column: 1/-1;
  color: #bda5cf;
  font:
    700 7px "DM Mono",
    monospace;
  font-style: normal;
}
.shift-inspect .rift-mod-range {
  display: block;
}
.rift-range-hint {
  color: #91899a;
  font-size: 10px;
}
.rift-open {
  width: 100%;
  min-height: 44px;
}
.rift-run {
  max-width: 880px;
  margin: 14px auto 0;
}
.rift-run::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./assets/rifts/overlays/rift-crack.webp") 50% 42% /
    min(55%, 420px) no-repeat;
  opacity: 0.06;
  pointer-events: none;
}
.rift-run.open::before {
  animation: rift-open-pulse 0.7s ease both;
}
.rift-state-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px #a86dda);
}
.rift-run progress {
  width: min(320px, 42vw);
  accent-color: #af78e5;
}
.rift-run-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.rift-run-summary span {
  padding: 12px;
  background: #ffffff08;
}
.rift-run-summary small,
.rift-run-summary b {
  display: block;
}
.rift-run-summary small {
  color: #968b9c;
  font: 700 7px "DM Mono";
}
.rift-run-summary b {
  color: #eadcf2;
  font-size: 16px;
}
.rift-run > div:last-child {
  display: flex;
  justify-content: end;
  gap: 8px;
}
.eternal-cache-button {
  width: 100%;
  min-height: 52px;
  box-shadow: 0 0 28px #bd81ef3d;
}
.rift-cache-reveal {
  max-width: 760px;
  margin: 14px auto 0;
  padding: 30px 40px 40px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, #8e5bb74d, transparent 43%),
    linear-gradient(145deg, #191120, #08090e);
}
.rift-cache-reveal > img {
  width: min(360px, 70vw);
  height: min(360px, 70vw);
  display: block;
  margin: -34px auto -42px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px #9d5adf77);
  animation: cache-awaken 0.7s ease both;
}
.crystal-reward {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #cbb9ff;
  white-space: nowrap;
}
.crystal-reward img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}
.fatebound-affix {
  position: relative;
  padding-left: 4px;
  border-left: 2px solid #a774d4;
  background: linear-gradient(90deg, #7b48a519, transparent 65%);
}
.fatebound-affix > img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #b879e5);
}
.fatebound-affix span small {
  color: #c69aeb;
  letter-spacing: 0.13em;
}
body[data-gear-subview="inventory"] .crafting-panel {
  display: flex;
}
.phase16-materials {
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  gap: 7px;
}
.phase16-materials .material-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid #ffffff10;
  background: #090a0f;
}
.phase16-materials .material-chip:focus-visible {
  outline: 2px solid #b68add;
  outline-offset: 2px;
}
.phase16-materials .material-chip i {
  grid-row: 1/3;
  width: 38px;
  height: 38px;
  background: var(--material-art) center/contain no-repeat;
}
.phase16-materials .material-chip b {
  font: 800 13px "DM Mono";
}
.phase16-materials .material-chip small {
  overflow: hidden;
  color: #9c929f;
  font: 700 7px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.material-drop {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #7b678044;
  background: linear-gradient(90deg, #6a45751f, transparent);
}
.material-drop img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px #b27bd0);
}
.material-drop span,
.material-drop small {
  display: block;
}
.material-drop small {
  color: #ad90bb;
  font: 800 7px "DM Mono";
  letter-spacing: 0.14em;
}
.material-drop.important {
  border-color: #c397595e;
  background: linear-gradient(90deg, #9a653325, transparent);
}
.material-drop.important img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 11px #dd9e55);
}
.material-drop.shard {
  border-color: #9a68c768;
}
.material-drop.crystal {
  border-color: #776bcf70;
  background: linear-gradient(90deg, #4f4b9d2e, transparent);
}
.rift-guardian .combatant-art::after {
  content: "";
  position: absolute;
  inset: -12%;
  background: url("./assets/rifts/guardian-aura.webp") center/contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 0 22px #a666d0);
}
@keyframes cache-awaken {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rift-open-pulse {
  from {
    opacity: 0.8;
    transform: scale(0.78);
  }
  to {
    opacity: 0.06;
    transform: none;
  }
}
.rift-cache-reveal > small {
  color: #c59ae9;
  font: 800 9px "DM Mono";
  letter-spacing: 0.2em;
}
@media (max-width: 700px) {
  .rift-screen {
    min-height: calc(100dvh - 120px);
    padding: 7px 7px 78px;
  }
  .rift-hero {
    min-height: 180px;
    display: block;
    padding: 16px;
    background-position: 60% center;
  }
  .rift-hero h1 {
    font-size: 42px;
  }
  .rift-hero > span {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    text-align: left;
  }
  .rift-select-stage {
    grid-template-columns: 1fr;
  }
  .rift-shard-grid {
    max-height: 230px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px;
  }
  .rift-shard {
    grid-template-columns: 32px 1fr;
    padding: 7px;
  }
  .rift-shard > i {
    font-size: 25px;
  }
  .rift-shard em {
    display: none;
  }
  .rift-inspect,
  .rift-run,
  .rift-cache-reveal {
    padding: 14px;
  }
  .rift-inspect header {
    display: grid;
    grid-template-columns: 76px 1fr;
  }
  .rift-inspect-art {
    width: 76px;
    height: 76px;
  }
  .rift-inspect header > b {
    grid-column: 1/-1;
  }
  .rift-mod-columns {
    grid-template-columns: 1fr;
  }
  .rift-mod-columns span {
    padding: 5px 0;
  }
  .phase16-materials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rift-run-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .rift-run header {
    display: block;
  }
  .rift-run progress {
    width: 100%;
    margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rift-screen * {
    animation: none !important;
    transition: none !important;
  }
}

/* Login · cinematic return to Veydris */
.auth-login-visual {
  display: none;
}
.auth-layer.login-mode {
  background:
    radial-gradient(circle at 18% 18%, rgba(153, 92, 38, 0.18), transparent 34%),
    radial-gradient(circle at 82% 0, rgba(57, 48, 94, 0.2), transparent 30%),
    linear-gradient(145deg, #090a0e, #10121a 55%, #07080b);
}
.auth-card.login {
  position: relative;
  width: min(1080px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  min-height: 640px;
  overflow: hidden;
  padding: 48px 42px 32px min(677px, calc(59vw + 21px));
  border: 1px solid rgba(199, 153, 76, 0.42);
  border-radius: 4px 20px 4px 20px;
  background:
    linear-gradient(145deg, rgba(25, 25, 31, 0.98), rgba(7, 9, 14, 0.99)),
    #090b10;
  box-shadow:
    0 35px 100px #000d,
    0 0 0 1px #ffffff08 inset;
}
.auth-card.login::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 22px;
  width: 54px;
  height: 54px;
  border-top: 1px solid rgba(218, 172, 91, 0.42);
  border-right: 1px solid rgba(218, 172, 91, 0.42);
  pointer-events: none;
}
.auth-card.login .auth-login-visual {
  position: absolute;
  inset: 0 41% 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 5, 8, 0.12), transparent 35%, rgba(4, 5, 8, 0.92) 92%),
    linear-gradient(90deg, transparent 62%, #090b10 100%),
    url("./assets/region-iron-basilica.webp") 66% center / cover no-repeat;
  border-right: 1px solid rgba(200, 155, 80, 0.22);
}
.auth-card.login .auth-login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, #0008, transparent 42%),
    repeating-linear-gradient(0deg, #ffffff04 0 1px, transparent 1px 5px);
  pointer-events: none;
}
.auth-login-wordmark,
.auth-login-legend {
  position: relative;
  z-index: 1;
}
.auth-login-wordmark {
  display: grid;
  width: max-content;
  padding-left: 13px;
  border-left: 2px solid #d8a44e;
}
.auth-login-wordmark span {
  color: #fff6e4;
  font: 700 27px/1 "Playfair Display";
  letter-spacing: 0.14em;
}
.auth-login-wordmark small {
  margin-top: 5px;
  color: #d2aa64;
  font: 700 8px "DM Mono";
  letter-spacing: 0.28em;
}
.auth-login-legend {
  max-width: 410px;
}
.auth-login-legend h2 {
  max-width: 390px;
  margin: 10px 0;
  color: #fff6e6;
  font: 700 clamp(35px, 4.1vw, 57px) / 0.98 "Playfair Display";
  text-wrap: balance;
}
.auth-login-legend > p {
  max-width: 370px;
  margin: 0;
  color: #c4bdb2;
  font-size: 11px;
  line-height: 1.65;
}
.auth-login-legend > div {
  display: flex;
  gap: 22px;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 169, 91, 0.28);
}
.auth-login-legend > div > span {
  display: grid;
}
.auth-login-legend b {
  color: #f6d89f;
  font: 700 16px "DM Mono";
}
.auth-login-legend small {
  margin-top: 3px;
  color: #8e877c;
  font: 700 7px "DM Mono";
  letter-spacing: 0.12em;
}
.auth-card.login > .brand-mark {
  margin: 34px 0 8px;
  color: #e6b65e;
  font-size: 27px;
}
.auth-card.login > h1 {
  margin: 4px 0 7px;
  color: #fff7e8;
  font-size: clamp(34px, 4vw, 44px);
}
.auth-card.login > p {
  margin: 0 0 22px;
  color: #99958e;
}
.auth-card.login label {
  margin: 12px 0;
  color: #ddd4c5;
  font: 700 9px "DM Mono";
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.auth-card.login input {
  min-height: 50px;
  padding: 13px 15px;
  border-color: #37332d;
  border-radius: 3px;
  color: #fff5e4;
  background: rgba(4, 6, 10, 0.82);
  box-shadow: inset 0 1px 10px #0005;
}
.auth-card.login input:focus {
  border-color: #d7a64f;
  outline: 1px solid rgba(215, 166, 79, 0.48);
}
.auth-card.login > .button.primary {
  min-height: 50px;
  margin-top: 4px;
  border: 1px solid #ffda8a;
  border-radius: 2px;
  color: #171006;
  background: linear-gradient(180deg, #f2c66c, #b97a28);
  box-shadow:
    inset 0 0 0 1px #734818,
    0 9px 26px rgba(205, 138, 44, 0.2);
  font: 800 11px "DM Mono";
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.auth-card.login > .button.primary:hover,
.auth-card.login > .button.primary:focus-visible {
  filter: brightness(1.1);
}
.auth-card.login .auth-switch {
  color: #d6ad65;
}
.auth-card.login > #emailResetRequest {
  margin-top: 8px;
  color: #716d67;
  font-size: 9px;
}

@media (max-width: 900px) {
  .auth-card.login {
    width: min(620px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    min-height: 0;
    padding: 0 30px 28px;
  }
  .auth-card.login .auth-login-visual {
    position: relative;
    inset: auto;
    width: calc(100% + 60px);
    height: 300px;
    margin: 0 -30px 0;
    padding: 24px 28px;
    background:
      linear-gradient(180deg, rgba(4, 5, 8, 0.12), transparent 25%, #0b0c11 100%),
      url("./assets/region-iron-basilica.webp") 65% 37% / cover no-repeat;
    border-right: 0;
    border-bottom: 1px solid rgba(200, 155, 80, 0.22);
  }
  .auth-login-legend h2 {
    max-width: 310px;
    font-size: 37px;
  }
  .auth-login-legend > p,
  .auth-login-legend > div {
    display: none;
  }
  .auth-card.login > .brand-mark {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .auth-card.login {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    padding: 0 18px 22px;
    border-radius: 3px 13px 3px 13px;
  }
  .auth-card.login .auth-login-visual {
    width: calc(100% + 36px);
    height: 220px;
    margin-right: -18px;
    margin-left: -18px;
    padding: 18px;
  }
  .auth-login-wordmark span {
    font-size: 21px;
  }
  .auth-login-legend h2 {
    max-width: 270px;
    margin-bottom: 0;
    font-size: 30px;
  }
  .auth-card.login > .brand-mark {
    margin-top: 18px;
  }
  .auth-card.login > h1 {
    font-size: 31px;
  }
  .auth-card.login > p {
    margin-bottom: 15px;
  }
}

/* Character creation · full-figure class carousel */
.auth-card.signup {
  width: min(1180px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  padding: 24px;
  border-color: rgba(195, 153, 80, 0.36);
  background:
    linear-gradient(145deg, rgba(23, 24, 32, 0.98), rgba(8, 10, 16, 0.99)),
    #090b10;
}
.auth-card.signup > .brand-mark,
.auth-card.signup > .eyebrow,
.auth-card.signup > h1,
.auth-card.signup > p,
.auth-card.signup > .auth-class,
.auth-card.signup > .auth-error,
.auth-card.signup > .button,
.auth-card.signup > .auth-switch {
  grid-column: 1 / -1;
}
.auth-card.signup > .brand-mark {
  margin: 0 0 4px;
  font-size: 22px;
}
.auth-card.signup > h1 {
  margin: 2px 0 4px;
  font-size: clamp(28px, 4vw, 43px);
}
.auth-card.signup > p {
  max-width: 780px;
  margin: 0 0 10px;
}
.auth-card.signup .auth-class {
  display: block;
  min-width: 0;
  margin: 8px 0 12px;
}
.auth-card.signup .auth-hero-name,
.auth-card.signup .auth-invite,
.auth-card.signup .auth-email,
.auth-card.signup .auth-password {
  margin: 8px 0;
}
.auth-card.signup .auth-hero-name,
.auth-card.signup .auth-email {
  grid-column: 1;
}
.auth-card.signup .auth-invite,
.auth-card.signup .auth-password {
  grid-column: 2;
}
.auth-card.signup > .auth-error {
  margin: 2px 0 !important;
}

.auth-class-showcase {
  position: relative;
  min-height: clamp(470px, 58vh, 620px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--class-accent) 42%, #373027);
  border-radius: 16px 16px 5px 5px;
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--class-accent) 22%, transparent), transparent 35%),
    linear-gradient(90deg, rgba(5, 7, 12, 0.96), rgba(12, 13, 19, 0.2) 35% 65%, rgba(5, 7, 12, 0.96)),
    linear-gradient(180deg, #171a24, #07080c 88%);
  box-shadow: inset 0 0 80px #0009;
}
.auth-class-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 49.8%, color-mix(in srgb, var(--class-accent) 40%, transparent) 50%, transparent 50.2%),
    repeating-linear-gradient(0deg, #ffffff05 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(transparent, #000 24%, #000 80%, transparent);
}
.auth-class-art {
  position: absolute;
  inset: 1.5% 28% 0;
  z-index: -1;
  background: var(--class-art) center bottom / contain no-repeat;
  filter: saturate(0.96) contrast(1.06) drop-shadow(0 18px 30px #000c);
  animation: auth-hero-arrive 360ms ease-out both;
}
.auth-class-art::after {
  content: "";
  position: absolute;
  inset: auto 8% 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(5, 6, 9, 0.82));
  pointer-events: none;
}
.auth-class-identity,
.auth-class-build,
.auth-class-skills {
  position: absolute;
  z-index: 2;
  padding: 15px 16px;
  border: 1px solid rgba(212, 184, 132, 0.2);
  background: linear-gradient(145deg, rgba(7, 9, 14, 0.88), rgba(15, 17, 24, 0.68));
  box-shadow: 0 18px 45px #0007;
  backdrop-filter: blur(10px);
}
.auth-class-identity {
  top: 24px;
  left: 24px;
  width: min(31%, 330px);
  border-left: 2px solid var(--class-accent);
}
.auth-class-identity h2 {
  margin: 5px 0 1px;
  color: #fff8e8;
  font: 700 clamp(27px, 3.4vw, 45px) / 0.98 "Playfair Display";
}
.auth-class-identity strong {
  color: color-mix(in srgb, var(--class-accent) 64%, #f7dba4);
  font: 700 10px "DM Mono";
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.auth-class-identity p {
  margin: 9px 0;
  color: #c5c0b7;
  font-size: 11px;
  line-height: 1.55;
}
.auth-class-identity mark {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid color-mix(in srgb, var(--class-accent) 32%, transparent);
  color: #efe3ce;
  background: color-mix(in srgb, var(--class-accent) 10%, #07090e);
  font: 700 9px "DM Mono";
}
.auth-class-build {
  bottom: 24px;
  left: 24px;
  width: min(35%, 370px);
}
.auth-attribute-heading,
.auth-class-skills > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.auth-attribute-heading small,
.auth-class-skills > header small {
  max-width: 210px;
  color: #8f8a81;
  font-size: 8px;
  line-height: 1.4;
  text-align: right;
}
.auth-attributes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.auth-attributes article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 7px;
  padding: 8px;
  border: 1px solid #ffffff12;
  background: #ffffff06;
}
.auth-attributes article.primary {
  border-color: color-mix(in srgb, var(--class-accent) 62%, #624b2b);
  background: color-mix(in srgb, var(--class-accent) 13%, #0a0b10);
  box-shadow: inset 0 0 20px color-mix(in srgb, var(--class-accent) 9%, transparent);
}
.auth-attributes article > span {
  align-self: center;
  grid-row: 1 / 3;
  color: var(--class-accent);
  font: 800 9px "DM Mono";
}
.auth-attributes article b {
  color: #fff5df;
  font: 800 18px "DM Mono";
}
.auth-attributes article small {
  overflow: hidden;
  color: #8f8980;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-attribute-effects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 12px;
}
.auth-attribute-effects > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid #ffffff0d;
}
.auth-attribute-effects small {
  color: #aaa49a;
  font-size: 8px;
}
.auth-attribute-effects b {
  color: #d9c18f;
  font: 800 9px "DM Mono";
}
.auth-class-skills {
  top: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(34%, 390px);
  flex-direction: column;
}
.auth-class-skills > div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.auth-class-skills article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #ffffff10;
  background: linear-gradient(90deg, color-mix(in srgb, var(--class-accent) 11%, #0b0c11), #0a0b10b5);
}
.auth-class-skills article > i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--class-accent) 38%, #3c352a);
  color: #f6db9e;
  background: #090a0e;
  font-style: normal;
  font-size: 18px;
}
.auth-class-skills article > span {
  display: grid;
  min-width: 0;
}
.auth-class-skills article small {
  overflow: hidden;
  color: #8e826f;
  font: 700 7px "DM Mono";
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-class-skills article b {
  color: #f0e3cf;
  font-size: 11px;
}
.auth-class-skills article em {
  display: -webkit-box;
  overflow: hidden;
  color: #99938b;
  font-size: 8px;
  font-style: normal;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.auth-class-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  min-height: 64px !important;
  padding: 0 !important;
  border: 1px solid color-mix(in srgb, var(--class-accent) 50%, #59472d) !important;
  border-radius: 3px !important;
  color: #f7e4bb !important;
  background: rgba(6, 8, 12, 0.86) !important;
  box-shadow: 0 10px 26px #0008;
  font: 300 39px/1 "Manrope" !important;
  transform: translateY(-50%);
  cursor: pointer;
}
.auth-class-arrow:hover,
.auth-class-arrow:focus-visible {
  color: #fff !important;
  border-color: var(--class-accent) !important;
  outline: 2px solid color-mix(in srgb, var(--class-accent) 45%, transparent);
}
.auth-class-arrow.previous {
  left: calc(36% + 4px);
}
.auth-class-arrow.next {
  right: calc(35% + 4px);
}
.auth-class-selected {
  position: absolute;
  right: 39%;
  bottom: 13px;
  left: 39%;
  z-index: 3;
  display: grid;
  padding: 7px;
  border-top: 1px solid color-mix(in srgb, var(--class-accent) 52%, transparent);
  background: linear-gradient(90deg, transparent, #080a10d9 18% 82%, transparent);
  text-align: center;
}
.auth-class-selected span {
  color: #8e877b;
  font: 700 7px "DM Mono";
  letter-spacing: 0.18em;
}
.auth-class-selected b {
  color: #f8e6c1;
  font-size: 10px;
}
.auth-class-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 3px;
  margin-top: 4px;
}
.auth-class-track button {
  min-width: 0;
  min-height: 64px !important;
  display: grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  gap: 0 6px;
  padding: 6px !important;
  border: 1px solid #2c2a27 !important;
  border-radius: 3px !important;
  color: #ada69b !important;
  background: #090a0e !important;
  text-align: left;
  cursor: pointer;
}
.auth-class-track button i {
  grid-row: 1 / 3;
  width: 38px;
  height: 50px;
  border: 1px solid #ffffff0d;
  background: linear-gradient(0deg, #090a0e 0 12%, transparent 55%), var(--dot-art) center 20% / cover no-repeat;
  filter: saturate(0.55);
}
.auth-class-track button span {
  display: block;
  align-self: end;
  margin: 0;
  color: #726a60;
  font: 700 7px "DM Mono";
}
.auth-class-track button b {
  align-self: start;
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-class-track button.active {
  border-color: var(--dot-accent) !important;
  color: #fff2d8 !important;
  background: color-mix(in srgb, var(--dot-accent) 10%, #090a0e) !important;
  box-shadow: inset 0 -2px var(--dot-accent);
}
.auth-class-track button.active i {
  filter: none;
}
@keyframes auth-hero-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  .auth-layer {
    grid-template-columns: minmax(0, 1fr);
  }
  .auth-card.signup {
    justify-self: stretch;
    width: auto;
    max-width: 100%;
    min-width: 0;
    display: block;
    padding: 14px;
  }
  .auth-card.signup > *,
  .auth-card.signup label,
  .auth-card.signup input,
  .auth-card.signup .auth-class,
  .auth-class-showcase,
  .auth-class-track {
    max-width: 100%;
    min-width: 0;
  }
  .auth-class-showcase {
    min-height: 0;
    padding: 410px 12px 12px;
  }
  .auth-class-art {
    inset: 0 12% auto;
    height: 430px;
  }
  .auth-class-identity,
  .auth-class-build,
  .auth-class-skills {
    position: relative;
    inset: auto;
    width: auto;
    margin-top: 8px;
  }
  .auth-class-identity {
    border-left: 2px solid var(--class-accent);
  }
  .auth-class-skills > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-class-arrow {
    top: 210px;
  }
  .auth-class-arrow.previous {
    left: 12px;
  }
  .auth-class-arrow.next {
    right: 12px;
  }
  .auth-class-selected {
    top: 376px;
    right: 28%;
    bottom: auto;
    left: 28%;
  }
  .auth-class-track {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
    scroll-snap-type: x proximity;
  }
  .auth-class-track button {
    min-width: 132px;
    scroll-snap-align: center;
  }
}

@media (max-width: 560px) {
  .auth-layer {
    padding: 6px;
  }
  .auth-card.signup {
    width: auto;
    max-width: 100%;
    padding: 10px;
    border-radius: 10px;
  }
  .auth-card.signup > h1 {
    font-size: 28px;
  }
  .auth-class-showcase {
    padding-top: 350px;
  }
  .auth-class-art {
    inset: 0 2% auto;
    height: 370px;
  }
  .auth-class-arrow {
    top: 180px;
    width: 38px;
  }
  .auth-class-selected {
    top: 316px;
    right: 18%;
    left: 18%;
  }
  .auth-class-identity h2 {
    font-size: 31px;
  }
  .auth-attributes,
  .auth-attribute-effects,
  .auth-class-skills > div {
    grid-template-columns: 1fr;
  }
  .auth-attributes article {
    grid-template-columns: 42px 42px 1fr;
    align-items: center;
  }
  .auth-attributes article > span {
    grid-row: auto;
  }
  .auth-attributes article small {
    white-space: normal;
  }
  .auth-attribute-heading,
  .auth-class-skills > header {
    align-items: start;
    flex-direction: column;
  }
  .auth-attribute-heading small,
  .auth-class-skills > header small {
    max-width: none;
    text-align: left;
  }
}

.character-core-attributes {
  margin: 8px 0;
  padding: 9px;
  border: 1px solid rgba(198, 157, 83, 0.2);
  background: linear-gradient(90deg, rgba(198, 157, 83, 0.07), transparent);
}
.character-core-attributes header,
.character-core-attributes > div {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.character-core-attributes header small,
.character-core-attributes header b {
  color: #958b7b;
  font: 700 7px "DM Mono";
}
.character-core-attributes header b {
  color: #d9b66e;
}
.character-core-attributes > div {
  margin: 7px 0;
}
.character-core-attributes > div span {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 5px 7px;
  border: 1px solid #ffffff0d;
  color: #aaa197;
  background: #ffffff04;
}
.character-core-attributes > div span.primary {
  border-color: rgba(218, 173, 91, 0.46);
  color: #f0c97d;
}
.character-core-attributes > div small {
  font: 700 7px "DM Mono";
}
.character-core-attributes > div b {
  color: #f2e5ce;
  font: 800 11px "DM Mono";
}
.character-core-attributes p {
  margin: 0;
  color: #8f887d;
  font-size: 7px;
  text-align: center;
}
