﻿:root {
  --bg-top: #0b1020;
  --bg-bottom: #1f1141;
  --card: rgba(15, 16, 40, 0.82);
  --card-border: rgba(150, 172, 255, 0.32);
  --accent: #34e0a1;
  --accent-strong: #20f0aa;
  --text-main: #eef2ff;
  --text-soft: #a9b4de;
  --shadow: 0 22px 48px rgba(3, 6, 22, 0.48);
  --scroll-track: rgba(18, 26, 60, 0.55);
  --scroll-thumb: rgba(68, 232, 192, 0.78);
  --scroll-thumb-hover: rgba(93, 245, 212, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  color: var(--text-main);
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(90% 110% at 10% 12%, rgba(42, 201, 232, 0.2), transparent 62%),
    radial-gradient(80% 90% at 88% 85%, rgba(76, 54, 206, 0.38), transparent 58%),
    linear-gradient(175deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scroll-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--scroll-thumb), #4a8bff);
  border-radius: 999px;
  border: 2px solid rgba(10, 15, 36, 0.8);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--scroll-thumb-hover), #67a2ff);
}

.category-tabs::-webkit-scrollbar {
  height: 8px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 640px);
  gap: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 1200px;
  margin: 0 auto;
}

.layout.panel-mode {
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0.65rem;
  max-width: 100%;
}

.layout.panel-mode .preview-card,
.layout.panel-mode .controls-card {
  border-radius: 14px;
}

.layout.panel-mode .preview-card {
  padding: 0.75rem;
}

.layout.panel-mode .avatar-stage {
  max-width: 210px;
}

.layout.panel-mode .hint {
  font-size: 0.88rem;
}

.layout.panel-mode .controls-card {
  padding: 0.8rem;
}

.layout.panel-mode h1 {
  font-size: 1.22rem;
}

.layout.panel-mode .subtitle {
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.layout.panel-mode .control-grid {
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.layout.panel-mode label {
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.layout.panel-mode select {
  min-height: 42px;
  font-size: 0.98rem;
}

.layout.panel-mode .actions {
  margin-top: 0.8rem;
  gap: 0.5rem;
}

.layout.panel-mode button {
  flex: 1 1 140px;
  min-height: 42px;
}

.preview-card,
.controls-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.preview-card {
  padding: 1rem 1rem 1.25rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-soft);
}

.avatar-stage {
  position: relative;
  width: 100%;
  max-width: 324px;
  margin: 0 auto;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(157, 190, 255, 0.44);
  background:
    linear-gradient(140deg, rgba(35, 77, 132, 0.34), rgba(10, 14, 30, 0.2)),
    repeating-linear-gradient(
      45deg,
      rgba(180, 202, 255, 0.07) 0 10px,
      rgba(180, 202, 255, 0.01) 10px 20px
    );
}

.preview-randomize {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 72px;
  height: 72px;
  min-height: 72px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: #d8e7ff;
  box-shadow: none;
  z-index: 50;
  padding: 0;
  display: grid;
  place-items: center;
}

.preview-randomize img {
  width: 60px;
  height: 60px;
  display: block;
  filter: drop-shadow(0 0 5px rgba(100, 255, 226, 0.35));
}

.avatar-rig {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 240px;
  height: 260px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 68%;
  animation: avatar-idle 3.4s ease-in-out infinite;
}

.avatar-stack {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}

@keyframes avatar-idle {
  0% {
    transform: translate(-50%, -50%) rotate(-0.7deg);
  }
  25% {
    transform: translate(-50%, calc(-50% - 1px)) rotate(0deg);
  }
  50% {
    transform: translate(-50%, calc(-50% - 3px)) rotate(0.8deg);
  }
  75% {
    transform: translate(-50%, calc(-50% - 1px)) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(-0.7deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-rig {
    animation: none;
  }
}

.avatar-layer {
  position: absolute;
  image-rendering: pixelated;
}

.hint {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.controls-card {
  padding: clamp(1rem, 2.5vw, 1.6rem);
}

h1 {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-family: "Space Grotesk", "Chakra Petch", sans-serif;
}

.subtitle {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.7rem 0.95rem;
  align-items: center;
}

label {
  color: var(--text-soft);
  font-weight: 600;
}

select {
  width: 100%;
  border: 1px solid rgba(150, 180, 255, 0.4);
  border-radius: 10px;
  background: rgba(11, 15, 40, 0.75);
  color: var(--text-main);
  padding: 0.55rem 0.7rem;
  font-family: inherit;
  font-size: 1rem;
}

select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.58rem 1rem;
  font-family: "Space Grotesk", "Chakra Petch", sans-serif;
  font-weight: 700;
  cursor: pointer;
}

#randomizeBtn {
  background: transparent;
  color: inherit;
}

#copyBtn {
  background: #1f2b62;
  color: var(--text-main);
}

button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.status {
  display: block;
  margin-top: 0.85rem;
  min-height: 1.4rem;
  color: var(--accent-strong);
}

.status[data-error="1"] {
  color: #ff8f9b;
}

.single-editor {
  grid-template-columns: minmax(280px, 520px);
  justify-content: center;
  max-width: 620px;
}

.editor-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  padding: clamp(0.85rem, 2.4vw, 1.2rem);
  display: grid;
  gap: 0.65rem;
}

.page-switch {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.page-chip {
  border: 1px solid rgba(150, 180, 255, 0.38);
  border-radius: 999px;
  background: rgba(12, 18, 45, 0.58);
  color: var(--text-soft);
  font-family: "Space Grotesk", "Chakra Petch", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
}

.page-chip.active {
  color: #0b153d;
  background: linear-gradient(125deg, #56b4ff, #71ffd3);
  border-color: rgba(101, 255, 214, 0.9);
}

.fullbody-stage {
  max-width: 336px;
}

.fullbody-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.equipment-editor .avatar-rig,
.equipment-editor .avatar-stack {
  display: none;
}

.equipment-editor .category-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.loadout-stage {
  max-width: 336px;
}

.loadout-live-body {
  width: 100%;
  max-width: 318px;
  height: 496px;
  min-height: 496px;
  overflow: hidden;
  margin: 0 auto;
}

.loadout-live-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  --weapon-slot-bottom: 230px;
  --loadout-side-slot-size: 46px;
  --loadout-side-slot-gap: 6px;
  --loadout-side-slot-step: 52px;
  --loadout-side-slot-step-2: 104px;
  --loadout-side-slot-step-3: 156px;
  --loadout-side-slot-step-4: 208px;
  --loadout-character-top: 134px;
  --loadout-weapon-slot-top: 226px;
  --loadout-nav-clearance: 68px;
  --loadout-summary-top: 272px;
  --loadout-summary-height: max(
    156px,
    calc(100% - var(--loadout-nav-clearance) - var(--loadout-summary-top))
  );
  --summary-gap: 18px;
  padding: 0;
  margin: 0;
  display: block;
}

.loadout-live-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.loadout-live-root {
  width: 100%;
  max-width: 318px;
  padding: 0;
  gap: 0;
}

.layout.panel-mode.single-editor.loadout-live-root .editor-card {
  border-radius: 0;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.loadout-live-root .avatar-stage.loadout-stage {
  width: 100%;
  height: 100%;
  max-width: none;
}

.loadout-live-root .loadout-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  border: 1px solid rgba(104, 219, 255, 0.34);
  border-radius: 18px;
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 48% 2%, rgba(96, 227, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 29, 55, 0.98), rgba(24, 16, 61, 0.98) 62%, rgba(7, 14, 34, 0.98));
}

.loadout-live-root .fullbody-canvas {
  width: min(274px, calc(100% - 44px));
  height: auto;
  aspect-ratio: 1 / 1;
  inset: auto;
  left: 50%;
  top: var(--loadout-character-top);
  transform: translate(-50%, -50%);
}

.equipped-column {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 46px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 35;
  pointer-events: none;
}

.equipped-left {
  left: 5px;
}

.equipped-right {
  right: 5px;
}

.equipped-bottom {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 35;
  pointer-events: none;
}

.equipped-bottom .equipped-slot {
  pointer-events: auto;
}

.loadout-summary {
  position: absolute;
  left: 6px;
  right: 6px;
  top: auto;
  bottom: var(--loadout-nav-clearance);
  z-index: 20;
  border-radius: 12px;
  border: 1px solid rgba(124, 165, 248, 0.44);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.92), rgba(10, 18, 50, 0.95));
  box-shadow: 0 10px 20px rgba(2, 7, 22, 0.35);
  padding: 0.42rem 0.5rem 0.46rem;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.3rem;
  height: var(--loadout-summary-height);
  max-height: var(--loadout-summary-height);
  overflow: hidden;
}

.loadout-summary-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
}

.loadout-level-cluster {
  position: relative;
  display: inline-block;
  width: max-content;
  min-width: 0;
  line-height: 1;
}

.loadout-level {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  color: #f1f6ff;
}

.loadout-potion-btn {
  position: absolute;
  left: 62px;
  bottom: calc(var(--loadout-nav-clearance) + var(--loadout-summary-height) + 8px);
  z-index: 42;
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
}

.loadout-potion-btn[hidden],
.loadout-potion-popover[hidden] {
  display: none !important;
}

.loadout-potion-btn img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 0 5px rgba(91, 242, 207, 0.48));
}

.loadout-potion-btn:hover,
.loadout-potion-btn:focus-visible,
.loadout-potion-btn:active {
  transform: none;
}

.loadout-potion-popover {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(var(--loadout-nav-clearance) + var(--loadout-summary-height) + 8px);
  z-index: 86;
  max-height: 138px;
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 9px;
  border: 1px solid rgba(91, 242, 207, 0.58);
  background:
    linear-gradient(180deg, rgba(12, 22, 57, 0.98), rgba(7, 13, 36, 0.98));
  box-shadow: 0 16px 28px rgba(2, 7, 22, 0.5), 0 0 18px rgba(52, 232, 224, 0.18);
}

.loadout-potion-popover-head {
  margin: 0 0 0.36rem;
  color: #f3fbff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.loadout-potion-list {
  display: grid;
  gap: 0.32rem;
}

.loadout-potion-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 0.42rem;
  min-width: 0;
}

.loadout-potion-row-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  border: 1px solid rgba(124, 165, 248, 0.52);
  background: rgba(6, 13, 39, 0.88);
}

.loadout-potion-row-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.loadout-potion-row-body {
  min-width: 0;
  display: grid;
  gap: 0.04rem;
}

.loadout-potion-row-body strong,
.loadout-potion-row-body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loadout-potion-row-body strong {
  color: #f3fbff;
  font-size: 0.66rem;
}

.loadout-potion-row-body small {
  color: rgba(181, 241, 239, 0.92);
  font-size: 0.56rem;
}

.loadout-exp-text {
  margin: 0;
  font-size: 0.62rem;
  color: rgba(181, 201, 245, 0.95);
}

.loadout-exp-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(32, 49, 100, 0.84);
}

.loadout-exp-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #52b3ff, #5bf2cf);
}

.loadout-stat-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.16rem 0.34rem;
}

.loadout-stat-scroll {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.1rem;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.loadout-stat-row {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  border-radius: 7px;
  background: rgba(27, 42, 92, 0.62);
  padding: 0.13rem 0.28rem;
}

.loadout-stat-row dt {
  margin: 0;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(173, 198, 245, 0.95);
}

.loadout-stat-row dd {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  color: #f2f7ff;
}

.loadout-bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 26;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 62px;
  padding: 0 12px 2px;
  border: 1px solid rgba(68, 83, 139, 0.9);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(9, 13, 39, 0.99), rgba(6, 9, 29, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(80, 102, 174, 0.34),
    inset 0 -1px 0 rgba(20, 27, 70, 0.86),
    0 -7px 16px rgba(0, 0, 0, 0.22);
  overflow: visible;
  overscroll-behavior-x: none;
  scroll-snap-type: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: default;
  touch-action: manipulation;
  user-select: none;
}

.loadout-bottom-nav::-webkit-scrollbar {
  display: none;
}

.loadout-bottom-nav::before,
.loadout-bottom-nav::after {
  content: "";
  position: sticky;
  z-index: 2;
  top: 0;
  bottom: 0;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  align-self: stretch;
  color: rgba(80, 245, 255, 0.98);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-shadow:
    0 0 7px rgba(37, 234, 255, 0.78),
    0 0 15px rgba(37, 234, 255, 0.42),
    0 2px 0 rgba(0, 0, 0, 0.62);
  transition: opacity 140ms ease;
}

.loadout-bottom-nav::before {
  left: -12px;
  margin-left: -12px;
  content: "<";
  background:
    radial-gradient(circle at 15% 50%, rgba(37, 234, 255, 0.18), transparent 58%),
    linear-gradient(90deg, rgba(4, 8, 26, 0.99), rgba(4, 8, 26, 0.78) 58%, rgba(4, 8, 26, 0));
}

.loadout-bottom-nav::after {
  right: -12px;
  margin-right: -12px;
  content: ">";
  background:
    radial-gradient(circle at 85% 50%, rgba(37, 234, 255, 0.18), transparent 58%),
    linear-gradient(270deg, rgba(4, 8, 26, 0.99), rgba(4, 8, 26, 0.78) 58%, rgba(4, 8, 26, 0));
}

.loadout-bottom-nav[data-overflow-left="1"]::before,
.loadout-bottom-nav[data-overflow-right="1"]::after {
  opacity: 1;
}

.loadout-bottom-nav.dragging {
  cursor: grabbing;
}

.loadout-nav-menu-wrap {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  align-self: stretch;
}

.loadout-nav-btn {
  position: relative;
  box-sizing: border-box;
  flex: 1 1 0;
  display: grid;
  grid-template-rows: 30px auto;
  place-items: center;
  align-content: center;
  row-gap: 3px;
  min-height: 59px;
  height: 59px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(151, 151, 174, 0.96);
  font-size: 0.57rem;
  font-weight: 600;
  padding: 6px 0 5px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
  scroll-snap-align: center;
  -webkit-user-drag: none;
}

.loadout-nav-menu-wrap > .loadout-nav-btn {
  width: 100%;
  height: 100%;
}

button.loadout-nav-btn {
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.loadout-nav-btn::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.loadout-nav-btn::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.loadout-nav-icon {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
  opacity: 0.9;
  filter:
    grayscale(1)
    brightness(0.62)
    sepia(0.12)
    hue-rotate(188deg)
    saturate(0.72)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.62));
  pointer-events: none;
  -webkit-user-drag: none;
}

.loadout-nav-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: currentColor;
  font-size: 0.57rem;
  font-weight: 600;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loadout-nav-menu-toggle .loadout-nav-label::after {
  content: "^";
  display: inline-block;
  margin-left: 0.16rem;
  font-size: 0.52rem;
  transform: translateY(-0.02rem);
}

.loadout-nav-btn.active {
  color: #25eaff;
  background: transparent;
  box-shadow: none;
}

.loadout-nav-btn.active .loadout-nav-icon {
  opacity: 1;
  filter:
    brightness(1.18)
    saturate(1.65)
    drop-shadow(0 0 5px rgba(37, 234, 255, 0.68))
    drop-shadow(0 0 12px rgba(37, 234, 255, 0.42));
}

.loadout-nav-btn.active::before {
  background: rgba(37, 234, 255, 0.96);
  box-shadow: 0 0 7px rgba(37, 234, 255, 0.62);
}

.loadout-nav-btn.active::after {
  background: rgba(37, 234, 255, 0.96);
  box-shadow: 0 0 9px rgba(37, 234, 255, 0.72);
}

.loadout-nav-btn:hover {
  transform: none;
  color: rgba(212, 221, 245, 0.96);
}

.loadout-nav-flyout {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.36rem);
  z-index: 48;
  display: none;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  width: min(10.4rem, calc(100vw - 1rem));
  padding: 0.32rem;
  border: 2px solid rgba(68, 83, 139, 0.94);
  border-radius: 0.48rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(80, 245, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(13, 19, 49, 0.98), rgba(6, 9, 29, 0.99));
  box-shadow:
    0 0.24rem 0 rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(224, 255, 248, 0.1);
  transform: translateX(-50%);
}

.loadout-nav-menu-wrap:first-child .loadout-nav-flyout {
  left: 0;
  transform: none;
}

.loadout-nav-menu-wrap[data-nav-group="shop"] .loadout-nav-flyout {
  left: auto;
  right: 0;
  transform: none;
}

.loadout-nav-menu-wrap[data-open="1"] .loadout-nav-flyout {
  display: grid;
}

.loadout-nav-flyout-item {
  display: grid;
  grid-template-columns: 1.72rem minmax(0, 1fr);
  align-items: center;
  gap: 0.34rem;
  min-height: 2.24rem;
  border: 1px solid rgba(80, 102, 174, 0.56);
  border-radius: 0.36rem;
  background: rgba(8, 13, 39, 0.82);
  color: rgba(212, 221, 245, 0.96);
  padding: 0.24rem 0.34rem;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.52);
}

.loadout-nav-flyout-item .loadout-nav-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.loadout-nav-flyout-item .loadout-nav-label {
  font-size: 0.64rem;
  font-weight: 800;
  text-align: left;
}

.loadout-nav-flyout-item.active,
.loadout-nav-flyout-item[aria-current="page"] {
  border-color: rgba(37, 234, 255, 0.9);
  color: #25eaff;
  box-shadow:
    0 0 0.45rem rgba(37, 234, 255, 0.32),
    inset 0 0 0 1px rgba(224, 255, 248, 0.14);
}

.equipped-slot {
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--slot-rarity-color, rgba(149, 182, 255, 0.44));
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--slot-rarity-color, #ffd2b8) 34%, transparent), transparent 58%),
    rgba(8, 13, 22, 0.9);
  display: grid;
  place-items: center;
  padding: 3px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow:
    0 0 10px color-mix(in srgb, var(--slot-rarity-color, rgba(149, 182, 255, 0.44)) 18%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--slot-rarity-color, rgba(149, 182, 255, 0.44)) 34%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--slot-rarity-color, rgba(149, 182, 255, 0.44)) 18%, transparent);
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.equipped-slot:hover {
  transform: translateY(-1px);
}

.equipped-slot.has-item {
  border-color: color-mix(in srgb, var(--slot-rarity-color, #79ebff) 88%, #ffffff);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--slot-rarity-color, #ffd2b8) 52%, transparent), transparent 60%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--slot-rarity-color, #ffd2b8) 24%, transparent), transparent 70%),
    rgba(8, 13, 22, 0.92);
  box-shadow:
    0 0 0 1px rgba(7, 12, 32, 0.92),
    0 0 14px color-mix(in srgb, var(--slot-rarity-color, #79ebff) 42%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--slot-rarity-color, #79ebff) 50%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--slot-rarity-color, #79ebff) 30%, transparent);
}

.equipped-slot.active {
  border-color: var(--slot-rarity-color, rgba(106, 242, 200, 0.95));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--slot-rarity-color, rgba(106, 242, 200, 0.95)) 36%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--slot-rarity-color, rgba(106, 242, 200, 0.95)) 26%, transparent);
}

.equipped-slot.is-empty {
  cursor: default;
  opacity: 0.5;
  border-style: dashed;
}

.equipped-slot.is-empty:hover {
  transform: none;
  border-color: var(--slot-rarity-color, rgba(149, 182, 255, 0.44));
}

.equipped-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.equipped-slot-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  color: rgba(215, 232, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(28, 40, 79, 0.7);
}

.item-inspect-modal {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(5, 8, 19, 0.76);
  display: grid;
  place-items: center;
  padding: 0.65rem;
}

.item-inspect-modal[hidden] {
  display: none !important;
}

.loadout-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 27, 0.82);
  backdrop-filter: blur(2px);
}

.loadout-loading-overlay[hidden] {
  display: none !important;
}

.loadout-loading-content {
  min-width: 170px;
  padding: 0.7rem 0.85rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(129, 177, 255, 0.45);
  background:
    radial-gradient(circle at 50% 0%, rgba(89, 214, 188, 0.2), transparent 58%),
    rgba(9, 15, 40, 0.94);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.loadout-loading-spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(113, 158, 240, 0.34);
  border-top-color: #7cf3d5;
  border-right-color: #5bb8ff;
  animation: loadout-spinner-spin 0.9s linear infinite;
}

.loadout-loading-text {
  margin: 0;
  color: rgba(220, 236, 255, 0.96);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.loadout-retry-btn {
  min-height: 34px;
  min-width: 92px;
  border-radius: 8px;
  border: 1px solid rgba(124, 243, 213, 0.7);
  background: rgba(33, 119, 150, 0.72);
  color: #f6fcff;
  font: 700 0.78rem "Chakra Petch", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.loadout-retry-btn:hover,
.loadout-retry-btn:focus-visible {
  border-color: rgba(124, 243, 213, 0.95);
  background: rgba(44, 149, 177, 0.85);
}

@keyframes loadout-spinner-spin {
  to {
    transform: rotate(360deg);
  }
}

.item-inspect-card {
  position: relative;
  width: min(94%, 268px);
  border-radius: 4px;
  border: 1px solid rgba(91, 100, 137, 0.92);
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.96), rgba(4, 5, 10, 0.98)),
    rgba(4, 5, 10, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 0.62rem 0.68rem 0.68rem;
}

.craft-reveal.is-dialog .craft-reveal-item {
  width: min(94%, 268px);
}

.craft-reveal.is-dialog .crafted-item-inspect-card {
  width: 100%;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  animation: craftRevealCard 0.28s ease-out forwards;
}

.crafted-item-inspect-icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 0 0.42rem;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid var(--slot-rarity-color, #7fabff);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--slot-rarity-color, #7fabff) 26%, transparent), transparent 68%),
    rgba(20, 27, 52, 0.92);
  box-shadow: 0 0 14px color-mix(in srgb, var(--slot-rarity-color, #7fabff) 38%, transparent);
}

.crafted-item-inspect-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  image-rendering: pixelated;
}

.identity-required-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 6, 16, 0.9);
  display: grid;
  place-items: center;
  padding: 0.85rem;
  backdrop-filter: blur(2px);
}

.identity-required-overlay[hidden] {
  display: none !important;
}

.identity-required-card {
  width: min(95%, 300px);
  border-radius: 14px;
  border: 1px solid rgba(117, 170, 255, 0.52);
  background:
    radial-gradient(circle at 50% 0%, rgba(61, 209, 174, 0.2), transparent 55%),
    rgba(7, 12, 33, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  padding: 0.9rem 0.85rem;
  text-align: center;
}

.identity-required-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  color: #f2f7ff;
}

.identity-required-text {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(180, 210, 245, 0.95);
}

.identity-required-action {
  margin-top: 0.75rem;
  width: 100%;
  min-height: 38px;
}

.item-inspect-close {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  border-radius: 4px;
  border-color: rgba(91, 100, 137, 0.92);
  background: rgba(33, 45, 92, 0.96);
  color: #eff4ff;
  padding: 0;
  font-weight: 700;
}

.item-inspect-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  margin: 0.16rem 0 0;
  color: rgba(255, 244, 232, 0.9);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.item-inspect-title {
  margin: 0;
  padding-right: 1.6rem;
  color: var(--slot-rarity-color, #ffd2b8);
  font-size: 0.94rem;
  line-height: 1.16;
}

.item-inspect-subtitle {
  margin: 0.16rem 0 0;
  color: #ffd900;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.item-inspect-subtitle.is-level-locked {
  color: #ff6b6b;
}

.item-inspect-rarity {
  margin: 0.16rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--slot-rarity-color, #ffd2b8);
}

.item-inspect-rarity-separator {
  color: rgba(173, 198, 245, 0.84);
}

.item-inspect-rarity .is-level-locked {
  color: #ff6b6b;
}

.item-inspect-rarity[data-rarity="common"] {
  color: #f1f1f1;
}

.item-inspect-rarity[data-rarity="uncommon"] {
  color: #a8ff2f;
}

.item-inspect-rarity[data-rarity="rare"] {
  color: #45c2ff;
}

.item-inspect-rarity[data-rarity="epic"] {
  color: #c56bff;
}

.item-inspect-rarity[data-rarity="legendary"] {
  color: #ffb21f;
}

.item-inspect-rarity[data-rarity="ancient"] {
  color: #14ffe6;
}

.item-inspect-rarity[data-rarity="mythic"] {
  color: #ff5d93;
}

.item-inspect-rarity[data-rarity="premium"] {
  color: #f6e27a;
}

.item-inspect-primary {
  margin: 0.32rem 0 0;
  color: #fff8ef;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.18;
}

.item-inspect-primary[hidden] {
  display: none !important;
}

.item-inspect-stats {
  list-style: none;
  margin: 0.28rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.12rem;
}

.item-inspect-stat {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #1eff00;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.24;
}

.item-inspect-stat span:first-child {
  color: inherit;
}

.item-inspect-stat strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.item-inspect-set {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.08rem;
  color: rgba(255, 244, 232, 0.9);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.22;
}

.item-inspect-set[hidden],
.inventory-inspect-set[hidden] {
  display: none !important;
}

.item-inspect-set strong,
.inventory-inspect-set strong {
  color: #fff200;
  font-size: 0.74rem;
}

.item-inspect-set span,
.inventory-inspect-set span {
  color: rgba(255, 244, 232, 0.9);
}

.item-inspect-set span.is-missing,
.item-inspect-set span.is-inactive,
.inventory-inspect-set span.is-missing,
.inventory-inspect-set span.is-inactive {
  color: rgba(170, 176, 190, 0.72);
}

.item-inspect-set span.is-active,
.inventory-inspect-set span.is-active {
  color: #1eff00;
}

.category-shell {
  display: grid;
  gap: 0.55rem;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.category-tabs .category-tile {
  width: 100%;
  height: 50px;
  min-height: 50px;
  background: #21285a;
  border: 1px solid rgba(150, 180, 255, 0.34);
  border-radius: 11px;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-tabs .category-tile .category-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
  transform: scale(1.55);
  transform-origin: center center;
}

.category-tabs .category-tile.active {
  background: linear-gradient(125deg, #3fa0ff, #5cf2cb);
  border-color: rgba(101, 255, 214, 0.85);
}

.slider-shell {
  border: 1px solid rgba(150, 180, 255, 0.28);
  border-radius: 12px;
  background: rgba(8, 11, 30, 0.46);
  padding: 0.5rem 0.58rem;
  display: grid;
  gap: 0.3rem;
}

.active-category-label {
  margin: 0;
  font-weight: 700;
  color: var(--text-main);
}

.option-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 0.38rem;
  align-items: center;
}

.active-option-label {
  margin: 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.84rem;
  min-height: 1rem;
}

.active-option-label.muted {
  opacity: 0.8;
}

.nav-arrow {
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: #1f2b62;
  background-image: none;
  color: transparent;
  padding: 0;
  font-size: 0;
  line-height: 1;
  text-shadow: none;
}

.nav-arrow::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
}

#prevOptionBtn::before,
#prevColorBtn::before {
  border-top: 0.38rem solid transparent;
  border-bottom: 0.38rem solid transparent;
  border-right: 0.56rem solid var(--nav-arrow-glyph, var(--text-main));
}

#nextOptionBtn::before,
#nextColorBtn::before {
  border-top: 0.38rem solid transparent;
  border-bottom: 0.38rem solid transparent;
  border-left: 0.56rem solid var(--nav-arrow-glyph, var(--text-main));
}

.nav-arrow:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.35);
}

.nav-arrow:disabled:hover {
  transform: none;
  filter: grayscale(0.35);
}

.single-editor .actions {
  margin-top: 0;
}

.single-editor .actions button {
  min-height: 40px;
  flex: 1 1 45%;
}

.single-editor .actions a {
  min-height: 40px;
  flex: 1 1 45%;
}

.layout.panel-mode.single-editor {
  grid-template-columns: 1fr;
  max-width: 100%;
}

.layout.panel-mode.single-editor .editor-card {
  border-radius: 14px;
  padding: 0.75rem;
  gap: 0.65rem;
}

.layout.panel-mode.single-editor .avatar-stage {
  max-width: 198px;
}

.layout.panel-mode.single-editor .preview-randomize {
  top: 1px;
  right: 1px;
  width: 60px;
  height: 60px;
  min-height: 60px;
  border-radius: 9px;
}

.layout.panel-mode.single-editor .preview-randomize img {
  width: 48px;
  height: 48px;
}

.layout.panel-mode.single-editor .category-tabs button {
  min-height: 44px;
  height: 44px;
  border-radius: 10px;
}

.layout.panel-mode.single-editor .category-tabs .category-tile .category-icon {
  width: 30px;
  height: 30px;
  transform: scale(1.45);
}

.layout.panel-mode.single-editor.equipment-loadout-page .equipped-column {
  top: 8px;
  bottom: 8px;
  width: 38px;
  gap: 5px;
}

.layout.panel-mode.single-editor.equipment-loadout-page .equipped-left {
  left: 4px;
}

.layout.panel-mode.single-editor.equipment-loadout-page .equipped-right {
  right: 4px;
}

.layout.panel-mode.single-editor.equipment-loadout-page .equipped-slot {
  width: 40px;
  height: 40px;
  min-height: 40px;
  border-radius: 9px;
  padding: 1px;
}

.layout.panel-mode.single-editor.equipment-loadout-page .item-inspect-card {
  width: min(96%, 272px);
  max-height: min(90%, 430px);
  overflow-y: auto;
  padding: 0.62rem 0.68rem 0.7rem;
}

.layout.panel-mode.single-editor.equipment-loadout-page .item-inspect-title {
  font-size: 0.94rem;
}

.layout.panel-mode.single-editor.equipment-loadout-page .item-inspect-stat {
  font-size: 0.74rem;
}

.loadout-live-root .equipped-column {
  top: 12px;
  bottom: 66px;
  width: calc(var(--loadout-side-slot-size) + var(--loadout-side-slot-gap) + var(--loadout-side-slot-size));
  display: block;
  gap: 0;
}

.loadout-live-root .equipped-left {
  left: 6px;
}

.loadout-live-root .equipped-right {
  right: 6px;
}

.loadout-live-root .equipped-column .equipped-slot {
  position: absolute;
}

.loadout-live-root .equipped-left .equipped-slot:nth-child(1) {
  left: 0;
  top: 0;
}

.loadout-live-root .equipped-left .equipped-slot:nth-child(2) {
  left: var(--loadout-side-slot-step);
  top: 0;
}

.loadout-live-root .equipped-left .equipped-slot:nth-child(3) {
  left: 0;
  top: var(--loadout-side-slot-step);
}

.loadout-live-root .equipped-left .equipped-slot:nth-child(4) {
  left: 0;
  top: var(--loadout-side-slot-step-2);
}

.loadout-live-root .equipped-left .equipped-slot:nth-child(5) {
  left: 0;
  top: var(--loadout-side-slot-step-3);
}

.loadout-live-root .equipped-left .equipped-slot:nth-child(6) {
  left: 0;
  top: var(--loadout-side-slot-step-4);
}

.loadout-live-root .equipped-right .equipped-slot:nth-child(1) {
  right: var(--loadout-side-slot-step);
  top: 0;
}

.loadout-live-root .equipped-right .equipped-slot:nth-child(2) {
  right: 0;
  top: 0;
}

.loadout-live-root .equipped-right .equipped-slot:nth-child(3) {
  right: 0;
  top: var(--loadout-side-slot-step);
}

.loadout-live-root .equipped-right .equipped-slot:nth-child(4) {
  right: 0;
  top: var(--loadout-side-slot-step-2);
}

.loadout-live-root .equipped-right .equipped-slot:nth-child(5) {
  right: 0;
  top: var(--loadout-side-slot-step-3);
}

.loadout-live-root .equipped-right .equipped-slot:nth-child(6) {
  right: 0;
  top: var(--loadout-side-slot-step-4);
}

.loadout-live-root .equipped-slot {
  width: var(--loadout-side-slot-size);
  height: var(--loadout-side-slot-size);
  min-height: var(--loadout-side-slot-size);
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 1px;
}

.loadout-live-root .equipped-slot img {
  width: 112%;
  height: 112%;
  max-width: none;
  max-height: none;
}

.loadout-live-root .equipped-slot.is-empty {
  opacity: 0.78;
}

.loadout-live-root .equipped-slot img.equipped-slot-placeholder {
  width: 86%;
  height: 86%;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
  opacity: 0.78;
  filter: drop-shadow(0 0 4px rgba(210, 222, 245, 0.18));
  image-rendering: auto;
}

.loadout-live-root .equipped-bottom {
  top: var(--loadout-weapon-slot-top);
  bottom: auto;
  gap: 10px;
}

.loadout-live-root .item-inspect-card {
  width: min(94%, 272px);
  max-height: min(90%, 430px);
  overflow-y: auto;
}

.fight-live-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  padding: 0;
  margin: 0;
  display: block;
}

.fight-live-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.fight-live-root {
  width: 100%;
  max-width: 318px;
  padding: 0;
  gap: 0;
}

.layout.panel-mode.single-editor.fight-live-root .editor-card {
  border-radius: 0;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.fight-live-root .avatar-stage.fight-stage {
  width: 100%;
  height: 100%;
  max-width: none;
}

.fight-live-root .fight-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 18px;
  aspect-ratio: auto;
}

.fight-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 64px;
  z-index: 16;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0.22rem;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 4px 4px 2px;
}

.fight-content.shop-content {
  grid-template-rows: auto minmax(0, 1fr);
}

.fight-live-root .shop-content .fight-header {
  display: none;
}

.fight-live-root .shop-content {
  gap: 0.32rem;
}

.shop-tabs {
  align-items: center;
  padding-top: 2px;
}

.shop-tabs .fight-tab-btn {
  align-items: center;
  text-align: center;
  line-height: 1;
}

.shop-tabs .fight-tab-btn:hover,
.shop-tabs .fight-tab-btn:focus-visible {
  transform: none;
}

.fight-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem;
}

.fight-view-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(121, 161, 246, 0.5);
  background: rgba(9, 17, 48, 0.85);
  color: rgba(196, 218, 255, 0.95);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0.26rem;
}

.fight-view-tab-btn.active {
  border-color: rgba(97, 245, 204, 0.75);
  background:
    linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #f6fcff;
}

.fight-header {
  border-radius: 10px;
  border: 1px solid rgba(124, 165, 248, 0.42);
  background: rgba(9, 16, 45, 0.9);
  padding: 0.28rem 0.44rem;
  display: grid;
  gap: 0.16rem;
}

.fight-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.67rem;
}

.fight-status {
  margin: 0;
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.57rem;
  line-height: 1.35;
}

.fight-status[data-error="1"] {
  color: #ff9aa6;
}

.fight-active-encounter {
  min-height: 0;
  display: grid;
  gap: 0.25rem;
}

.fight-leaderboard {
  grid-row: 3 / -1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.leaderboard-stage {
  padding: 0;
  border: 1px solid rgba(104, 219, 255, 0.34);
  background:
    radial-gradient(circle at 48% 2%, rgba(96, 227, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 29, 55, 0.98), rgba(24, 16, 61, 0.98) 62%, rgba(7, 14, 34, 0.98));
}

.leaderboard-content {
  position: absolute;
  inset: 10px 10px 66px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.leaderboard-header {
  display: grid;
  gap: 0.12rem;
}

.leaderboard-title {
  margin: 0;
  color: #42f2ff;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 0 9px rgba(37, 234, 255, 0.62),
    0 2px 0 rgba(0, 0, 0, 0.72);
}

.leaderboard-status {
  margin: 0;
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.58rem;
  line-height: 1.35;
  text-align: center;
}

.leaderboard-status[data-error="1"] {
  color: #ff9aa6;
}

.leaderboard-page-root {
  grid-row: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.leaderboard-page-card {
  padding: 0.36rem;
  gap: 0.28rem;
}

.fight-leaderboard-card {
  border-radius: 10px;
  border: 1px solid rgba(122, 162, 246, 0.34);
  background: rgba(10, 16, 44, 0.84);
  padding: 0.24rem;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.fight-leaderboard-title {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(191, 215, 255, 0.95);
}

.fight-leaderboard-list {
  display: grid;
  gap: 0.16rem;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 0.72rem 0;
}

.fight-leaderboard-row {
  border-radius: 8px;
  border: 1px solid rgba(140, 176, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(10, 18, 50, 0.92));
  padding: 0.26rem 0.3rem;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem;
}

.fight-leaderboard-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(121, 161, 246, 0.5);
  background: rgba(9, 17, 48, 0.82);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.fight-leaderboard-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fight-leaderboard-avatar-fallback {
  color: #9ee8ff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.fight-leaderboard-main {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.fight-leaderboard-main strong {
  color: #f8fbff;
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-leaderboard-meta {
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-leaderboard-class {
  font-weight: 800;
}

.fight-leaderboard-rank-value {
  color: #f7dc8e;
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
}

.fight-leaderboard-empty {
  margin: 0;
  color: rgba(184, 206, 245, 0.95);
  font-size: 0.66rem;
  line-height: 1.35;
}

.fight-leaderboard-scope-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem;
}

.fight-leaderboard-scope-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1px solid rgba(121, 161, 246, 0.5);
  background: rgba(9, 17, 48, 0.85);
  color: rgba(196, 218, 255, 0.95);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0.22rem;
}

.fight-leaderboard-scope-btn.active {
  border-color: rgba(97, 245, 204, 0.75);
  background: linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #f6fcff;
}

.fight-endless-difficulty-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.12rem;
}

.fight-endless-difficulty-tab {
  min-height: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid rgba(121, 161, 246, 0.42);
  background: rgba(9, 17, 48, 0.82);
  color: rgba(220, 234, 255, 0.96);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0 0.16rem;
}

.fight-endless-difficulty-tab.active {
  border-color: rgba(97, 245, 204, 0.86);
  background: linear-gradient(130deg, rgba(64, 210, 240, 0.97), rgba(83, 236, 198, 0.97));
  color: #07143a;
}

.fight-endless-global-list {
  display: grid;
  gap: 0.1rem;
  align-content: start;
  grid-auto-rows: min-content;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 0.72rem 0;
}

.fight-endless-global-row {
  display: grid;
  grid-template-columns: 30px 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.3rem;
  border-radius: 8px;
  border: 1px solid rgba(140, 176, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(10, 18, 50, 0.92));
  padding: 0.26rem 0.3rem;
}

.fight-endless-global-rank {
  color: rgba(124, 240, 255, 0.96);
  font-size: 0.6rem;
  font-weight: 800;
}

.fight-endless-global-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(121, 161, 246, 0.45);
  background: rgba(9, 17, 48, 0.82);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.fight-endless-global-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fight-endless-global-avatar-fallback {
  color: #9ee8ff;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.fight-endless-global-row strong {
  color: #f8fbff;
  font-size: 0.7rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-endless-global-row span:last-child {
  color: #f7dc8e;
  font-size: 0.64rem;
  font-weight: 700;
  white-space: nowrap;
}

.cw-encounter-banner {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 260;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(70, 161, 255, 0.78);
  background:
    radial-gradient(circle at 16% 50%, rgba(63, 210, 255, 0.22), transparent 38%),
    linear-gradient(145deg, rgba(13, 38, 88, 0.98), rgba(7, 14, 43, 0.98) 62%, rgba(13, 11, 45, 0.98));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cw-encounter-banner-icon {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(83, 111, 190, 0.86);
  background: rgba(6, 10, 30, 0.9);
  overflow: hidden;
  box-shadow: 0 0 18px rgba(60, 202, 255, 0.2);
}

.cw-encounter-banner-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.cw-encounter-banner-copy {
  min-width: 0;
}

.cw-encounter-banner-title {
  margin: 0;
  color: #f8fcff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.64),
    0 0 10px rgba(52, 223, 255, 0.26);
}

.cw-encounter-banner-meta {
  margin: 4px 0 0;
  color: rgba(221, 229, 249, 0.9);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.18;
}

.cw-encounter-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cw-encounter-banner-join,
.cw-encounter-banner-close {
  border: 1px solid rgba(106, 239, 255, 0.62);
  border-radius: 8px;
  cursor: pointer;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 800;
}

.cw-encounter-banner-join {
  min-width: 84px;
  height: 38px;
  padding: 0 14px;
  color: #f7fcff;
  background:
    linear-gradient(180deg, #28cff1, #0d83ba);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 5px 12px rgba(0, 0, 0, 0.26);
}

.cw-encounter-banner-join:disabled {
  cursor: default;
  opacity: 0.72;
}

.cw-encounter-banner-close {
  width: 38px;
  height: 38px;
  color: #f1f7ff;
  background: rgba(11, 18, 48, 0.82);
}

@media (max-width: 520px) {
  .cw-encounter-banner {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px;
  }

  .cw-encounter-banner-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .cw-encounter-banner-icon {
    width: 46px;
    height: 46px;
  }

  .cw-encounter-banner-join {
    flex: 1 1 auto;
  }
}

.fight-encounter-card {
  border-radius: 10px;
  border: 1px solid rgba(97, 245, 204, 0.34);
  background:
    linear-gradient(180deg, rgba(16, 30, 72, 0.92), rgba(8, 15, 44, 0.94));
  padding: 0.3rem 0.34rem;
  display: grid;
  gap: 0.24rem;
}

.fight-encounter-queue-card {
  display: block;
  gap: 0.22rem;
  padding: 0.26rem 0.34rem;
  border: 1px solid rgba(108, 176, 255, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(19, 34, 75, 0.9), rgba(8, 15, 44, 0.92));
}

.fight-queue-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  padding: 0.22rem 0.34rem;
  border-radius: 8px;
  background: rgba(37, 62, 126, 0.5);
}

.fight-queue-stat span {
  color: rgba(184, 206, 245, 0.95);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fight-queue-stat strong {
  color: #f7fbff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.fight-encounter-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.35rem;
}

.fight-encounter-head-actions {
  display: flex;
  align-items: center;
  gap: 0.18rem;
}

.fight-encounter-kicker,
.fight-encounter-name,
.fight-encounter-meta,
.fight-encounter-log-line {
  margin: 0;
}

.fight-encounter-kicker {
  color: rgba(146, 245, 212, 0.92);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fight-encounter-name {
  font-size: 0.8rem;
  font-weight: 700;
}

.fight-encounter-status {
  padding: 0.16rem 0.34rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 171, 255, 0.45);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fight-encounter-status.is-lobby {
  color: #7af5cd;
  border-color: rgba(122, 245, 205, 0.52);
}

.fight-encounter-status.is-running {
  color: #8fe8ff;
  border-color: rgba(108, 221, 255, 0.52);
}

.fight-encounter-status.is-complete {
  color: #ffd58f;
  border-color: rgba(255, 213, 143, 0.42);
}

.fight-encounter-hide-btn {
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(124, 165, 248, 0.4);
  background: rgba(12, 22, 57, 0.85);
  color: rgba(212, 225, 255, 0.95);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.14rem 0.3rem;
}

.fight-encounter-bars {
  display: grid;
  gap: 0.12rem;
}

.fight-encounter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border-radius: 7px;
  background: rgba(23, 39, 89, 0.72);
  padding: 0.2rem 0.3rem;
  font-size: 0.58rem;
}

.fight-encounter-bar.enemy {
  background: rgba(83, 27, 42, 0.56);
}

.fight-encounter-bar span {
  color: rgba(184, 206, 245, 0.95);
}

.fight-encounter-bar strong {
  color: #f7fbff;
  font-size: 0.62rem;
}

.fight-encounter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.36rem;
  color: rgba(173, 198, 245, 0.92);
  font-size: 0.58rem;
  padding: 0.16rem 0.3rem;
  border-radius: 7px;
  background: rgba(37, 62, 126, 0.38);
}

.fight-encounter-meta span {
  color: rgba(184, 206, 245, 0.95);
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fight-encounter-meta strong {
  color: #f7fbff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.fight-encounter-participants,
.fight-encounter-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.12rem;
}

.fight-encounter-chip,
.fight-encounter-reward {
  border-radius: 999px;
  border: 1px solid rgba(124, 165, 248, 0.34);
  background: rgba(13, 22, 58, 0.86);
  padding: 0.1rem 0.26rem;
  color: rgba(230, 238, 255, 0.95);
  font-size: 0.46rem;
  line-height: 1.25;
}

.fight-join-btn {
  min-height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(97, 245, 204, 0.65);
  background: linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #f6fcff;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fight-join-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.fight-encounter-log {
  display: grid;
  gap: 0.08rem;
  max-height: 84px;
  overflow-y: auto;
}

.fight-encounter-log-line {
  color: rgba(184, 206, 245, 0.95);
  font-size: 0.49rem;
  line-height: 1.28;
}

.fight-groups {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.2rem;
  min-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  align-content: stretch;
}

.fight-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.12rem;
}

.fight-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  height: 22px;
  border-radius: 8px;
  border: 1px solid rgba(121, 161, 246, 0.5);
  background: rgba(9, 17, 48, 0.85);
  color: rgba(196, 218, 255, 0.95);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0.26rem;
}

.fight-tab-btn.active {
  border-color: rgba(97, 245, 204, 0.75);
  background:
    linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #f6fcff;
}

.fight-group {
  border-radius: 10px;
  border: 1px solid rgba(122, 162, 246, 0.34);
  background: rgba(10, 16, 44, 0.84);
  padding: 0.24rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.18rem;
  min-height: 0;
}

.fight-group-title {
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(191, 215, 255, 0.95);
}

.fight-entry-list {
  display: grid;
  gap: 0.18rem;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.fight-entry {
  border-radius: 8px;
  border: 1px solid rgba(140, 176, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(10, 18, 50, 0.92));
  padding: 0.28rem 0.3rem 0.3rem;
  display: grid;
  gap: 0.18rem;
  align-content: start;
  align-self: start;
  min-height: 0;
}

.fight-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem;
}

.shop-entry-head {
  display: grid;
  grid-template-rows: minmax(72px, auto) auto;
  align-items: start;
  justify-items: center;
  gap: 0.22rem;
}

.shop-entry-identity {
  display: grid;
  justify-items: center;
  gap: 0.18rem;
  min-width: 0;
  width: 100%;
}

.shop-entry-icon-wrap {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 8px;
  border: 1px solid rgba(140, 176, 255, 0.36);
  background: rgba(5, 12, 34, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(232, 242, 255, 0.96);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
}

.shop-entry[data-rarity] .shop-entry-icon-wrap {
  border-color: rgba(140, 176, 255, 0.36);
  box-shadow: none;
}

.shop-entry-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
}

.shop-entry-title-wrap {
  display: grid;
  gap: 0.1rem;
  justify-items: center;
  min-width: 0;
  width: 100%;
}

.shop-entry-title-wrap .fight-entry-name,
.shop-entry-owned {
  overflow-wrap: anywhere;
}

.shop-entry {
  cursor: pointer;
  min-height: 136px;
  justify-content: stretch;
  padding: 0.38rem 0.28rem;
  background:
    radial-gradient(circle at 50% 16%, rgba(67, 219, 255, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(10, 18, 50, 0.94));
}

.shop-entry.active {
  border-color: var(--shop-rarity-color, rgba(97, 245, 204, 0.78));
  box-shadow:
    0 0 12px color-mix(in srgb, var(--shop-rarity-color, #21d7e5) 34%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--shop-rarity-color, #e3ffff) 18%, transparent);
}

.shop-activate-btn {
  min-width: 74px;
  flex: 0 0 auto;
}

.shop-entry-price-chip {
  min-width: 78px;
  min-height: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(97, 245, 204, 0.65);
  background:
    linear-gradient(130deg, rgba(42, 206, 239, 0.95), rgba(51, 180, 157, 0.95));
  color: #041234;
  padding: 0 0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.shop-entry-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
  overflow: visible;
  padding: 0;
}

.shop-content .fight-group {
  flex: 0 0 auto;
  min-height: max-content;
  padding: 0.28rem;
  overflow: visible;
}

.shop-empty {
  margin: 0;
  border-radius: 8px;
  border: 1px solid rgba(140, 176, 255, 0.24);
  background: rgba(10, 18, 50, 0.72);
  color: rgba(180, 202, 245, 0.9);
  font-size: 0.62rem;
  line-height: 1.3;
  padding: 0.36rem;
}

.shop-info-box {
  position: fixed;
  left: 0.44rem;
  right: 0.44rem;
  bottom: calc(62px + 0.48rem);
  z-index: 42;
  min-height: 170px;
  max-height: min(54vh, 240px);
  border-radius: 10px;
  border: 1px solid rgba(124, 165, 248, 0.44);
  background:
    radial-gradient(circle at 16% 18%, color-mix(in srgb, var(--shop-rarity-color, #4be9ff) 18%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(17, 29, 70, 0.92), rgba(10, 18, 50, 0.95));
  padding: 0.86rem 0.52rem 0.54rem;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.54rem;
  align-items: start;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  box-shadow:
    0 -18px 30px rgba(0, 0, 0, 0.42),
    0 0 24px color-mix(in srgb, var(--shop-rarity-color, #4be9ff) 18%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 5rem));
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.shop-info-box.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.shop-info-close {
  position: absolute;
  left: 50%;
  top: 0.28rem;
  width: 42px;
  height: 6px;
  min-height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(84, 238, 255, 0.95), rgba(100, 246, 207, 0.95));
  box-shadow: 0 0 10px rgba(80, 245, 255, 0.55);
  transform: translateX(-50%);
  cursor: pointer;
}

.shop-info-close:hover,
.shop-info-close:focus-visible {
  transform: translateX(-50%) translateY(-2px);
}

.shop-info-icon-wrap {
  width: 74px;
  height: 74px;
  border-radius: 8px;
  border: 1px solid rgba(149, 182, 255, 0.44);
  background: rgba(11, 17, 43, 0.86);
  display: grid;
  place-items: center;
  color: rgba(232, 242, 255, 0.96);
  font-size: 0.8rem;
  font-weight: 800;
  overflow: hidden;
}

.shop-info-box[data-rarity] .shop-info-icon-wrap {
  border-color: rgba(149, 182, 255, 0.44);
  box-shadow: none;
}

.shop-info-icon {
  width: 66px;
  height: 66px;
  object-fit: contain;
  image-rendering: pixelated;
}

.shop-info-body {
  min-width: 0;
  display: grid;
  gap: 0.14rem;
}

.shop-info-name {
  margin: 0;
  color: rgba(248, 252, 255, 0.98);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.15;
}

.shop-rarity-text {
  color: var(--shop-rarity-color, #ffd2b8);
}

.shop-info-meta {
  margin: 0.12rem 0 0;
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.22rem;
  align-items: center;
}

.shop-info-meta .shop-rarity-text {
  font-weight: 800;
}

.shop-info-meta-separator {
  color: rgba(120, 141, 191, 0.9);
}

.shop-info-description {
  margin: 0.08rem 0 0;
  color: rgba(232, 242, 255, 0.96);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.28;
  white-space: normal;
}

.shop-info-stats {
  margin: 0.12rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.13rem 0.35rem;
}

.shop-info-stat {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.18rem;
}

.shop-info-stat dt,
.shop-info-stat dd {
  margin: 0;
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1.2;
}

.shop-info-stat dt {
  overflow: hidden;
  color: rgba(180, 202, 245, 0.92);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-info-stat dd {
  flex: 0 0 auto;
  color: rgba(104, 247, 196, 0.98);
  font-size: 0.58rem;
}

.shop-info-actions {
  margin-top: 0.18rem;
}

.shop-info-purchase-btn {
  width: 100%;
  min-height: 34px;
  justify-content: center;
  font-size: 0.66rem;
}

.fight-entry-name {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.12;
}

.fight-entry-bits {
  margin: 0;
  color: #f7dc8e;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.fight-entry-difficulty-row {
  display: flex;
  align-items: center;
  gap: 0.26rem;
  min-width: 0;
}

.fight-entry-difficulty-label {
  color: rgba(160, 243, 212, 0.95);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fight-entry-difficulty-choices {
  display: flex;
  align-items: center;
  gap: 0.14rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.fight-entry-difficulty-choices::-webkit-scrollbar {
  display: none;
}

.fight-difficulty-chip {
  height: 21px;
  min-height: 21px;
  border-radius: 999px;
  border: 1px solid rgba(121, 161, 246, 0.5);
  background: rgba(9, 17, 48, 0.82);
  color: rgba(220, 234, 255, 0.96);
  font-size: 0.48rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 0.32rem;
  white-space: nowrap;
}

.fight-difficulty-chip.active {
  border-color: rgba(97, 245, 204, 0.86);
  background: linear-gradient(130deg, rgba(64, 210, 240, 0.97), rgba(83, 236, 198, 0.97));
  color: #07143a;
}

.fight-difficulty-chip:hover {
  transform: translateY(-1px);
}

.fight-entry-description {
  margin: 0;
  color: rgba(180, 202, 245, 0.95);
  font-size: 0.64rem;
  line-height: 1.25;
}

.fight-entry-uber-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.12rem 0.24rem;
  margin: 0;
}

.fight-entry-uber-detail {
  margin: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem;
  color: rgba(190, 212, 255, 0.96);
  font-size: 0.56rem;
  line-height: 1.2;
}

.fight-entry-uber-detail span {
  color: rgba(150, 246, 210, 0.92);
}

.fight-entry-uber-detail strong {
  color: rgba(248, 252, 255, 0.98);
  font-size: 0.58rem;
  font-weight: 700;
}

.fight-entry-endless-record {
  margin: 0;
  color: rgba(151, 244, 214, 0.96);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
}

.fight-activate-btn {
  min-height: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(97, 245, 204, 0.65);
  background: linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #061b2d;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0.42rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.fight-activate-btn:disabled {
  opacity: 1;
  border-color: rgba(128, 166, 248, 0.42);
  background: rgba(16, 27, 69, 0.8);
  color: rgba(190, 212, 255, 0.92);
  text-shadow: none;
  cursor: not-allowed;
}

.fight-activate-btn:disabled:hover {
  transform: none;
}

.fight-live-root {
  --fight-cyan: #69efff;
  --fight-mint: #67f0c2;
  --fight-gold: #ffe07a;
  --fight-rose: #ff6f9f;
  --fight-panel: rgba(10, 18, 50, 0.88);
  --fight-panel-strong: rgba(16, 31, 75, 0.94);
}

.fight-live-root .fight-stage {
  border: 1px solid rgba(104, 219, 255, 0.34);
  background:
    radial-gradient(circle at 48% 2%, rgba(96, 227, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 29, 55, 0.98), rgba(24, 16, 61, 0.98) 62%, rgba(7, 14, 34, 0.98));
}

.fight-content {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 0.24rem;
  padding: 6px 6px 3px;
}

.fight-header {
  grid-template-columns: minmax(0, 1fr);
  border-color: rgba(105, 239, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(25, 46, 96, 0.9), rgba(9, 17, 48, 0.92));
  box-shadow: inset 0 1px 0 rgba(224, 251, 255, 0.08);
}

.fight-title {
  color: #f8fcff;
  font-size: 0.72rem;
}

.fight-status {
  min-height: 1.3em;
}

.fight-view-tabs {
  padding: 2px;
  border: 1px solid rgba(121, 161, 246, 0.28);
  border-radius: 10px;
  background: rgba(8, 15, 43, 0.72);
}

.fight-view-tab-btn {
  border-radius: 7px;
  border-color: transparent;
  background: transparent;
}

.fight-view-tab-btn.active {
  border-color: rgba(105, 239, 255, 0.72);
  background:
    linear-gradient(150deg, rgba(73, 214, 240, 0.96), rgba(36, 91, 216, 0.96));
  color: #f7fdff;
}

.fight-active-encounter {
  gap: 0.18rem;
}

.fight-encounter-queue-card {
  padding: 0;
  border: 0;
  background: transparent;
}

.fight-queue-stat {
  min-height: 23px;
  border: 1px solid rgba(121, 235, 255, 0.24);
  background: rgba(8, 16, 43, 0.78);
}

.fight-encounter-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 224, 122, 0.38);
  background:
    radial-gradient(circle at 12% 5%, rgba(255, 224, 122, 0.2), transparent 34%),
    linear-gradient(155deg, rgba(26, 42, 86, 0.96), rgba(9, 17, 47, 0.98));
}

.fight-active-orb {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  color: var(--fight-gold);
  border-radius: 9px;
  border: 1px solid rgba(255, 224, 122, 0.42);
  background: rgba(8, 15, 40, 0.76);
  box-shadow: 0 0 12px rgba(255, 224, 122, 0.2);
}

.fight-active-orb svg {
  width: 20px;
  height: 20px;
}

.fight-groups {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.22rem;
}

.fight-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: unset;
  gap: 0.16rem;
}

.fight-tab-btn {
  min-height: 36px;
  height: 36px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 0.2rem;
  align-items: center;
  justify-content: start;
  border-radius: 10px;
  border-color: rgba(121, 161, 246, 0.34);
  background:
    linear-gradient(180deg, rgba(18, 31, 72, 0.9), rgba(8, 15, 43, 0.92));
  padding: 0 0.22rem;
}

.fight-tab-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: rgba(150, 232, 255, 0.94);
  border-radius: 7px;
  background: rgba(5, 12, 34, 0.62);
}

.fight-tab-icon svg {
  width: 17px;
  height: 17px;
}

.fight-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.45rem;
}

.fight-tab-btn.active {
  border-color: rgba(105, 239, 255, 0.78);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 224, 122, 0.24), transparent 48%),
    linear-gradient(150deg, rgba(43, 92, 203, 0.98), rgba(21, 156, 190, 0.96));
}

.fight-tab-btn.active .fight-tab-icon {
  color: #081a2f;
  background: var(--fight-gold);
}

.fight-board {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.22rem;
  overflow: hidden;
}

.fight-selected-card {
  position: relative;
  min-height: 168px;
  border-radius: 14px;
  border: 1px solid rgba(105, 239, 255, 0.44);
  background:
    radial-gradient(circle at 23% 18%, rgba(105, 239, 255, 0.22), transparent 36%),
    linear-gradient(155deg, rgba(24, 39, 88, 0.98), rgba(9, 17, 48, 0.98) 58%, rgba(20, 13, 49, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(238, 254, 255, 0.1),
    0 10px 22px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.36rem;
  padding: 0.44rem;
}

.fight-selected-card[data-kind="boss"],
.fight-selected-card[data-kind="uber"] {
  border-color: rgba(255, 224, 122, 0.5);
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 224, 122, 0.22), transparent 36%),
    linear-gradient(155deg, rgba(42, 37, 82, 0.98), rgba(10, 17, 47, 0.98) 58%, rgba(44, 15, 45, 0.96));
}

.fight-selected-hero {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
}

.fight-selected-icon {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(105, 239, 255, 0.52);
  color: var(--fight-cyan);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(13, 26, 65, 0.96), rgba(5, 10, 28, 0.98));
  box-shadow:
    0 0 18px rgba(105, 239, 255, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fight-selected-card[data-kind="boss"] .fight-selected-icon,
.fight-selected-card[data-kind="uber"] .fight-selected-icon {
  color: var(--fight-gold);
  border-color: rgba(255, 224, 122, 0.54);
  box-shadow: 0 0 18px rgba(255, 224, 122, 0.24);
}

.fight-selected-icon svg {
  width: 42px;
  height: 42px;
}

.fight-selected-glow {
  position: absolute;
  inset: 24px 6px 18px;
  border-radius: 999px;
  background: rgba(105, 239, 255, 0.15);
  filter: blur(8px);
}

.fight-selected-main {
  min-width: 0;
  display: grid;
  gap: 0.28rem;
  align-content: start;
}

.fight-selected-head {
  min-width: 0;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.35rem;
}

.fight-selected-title-wrap {
  min-width: 0;
}

.fight-selected-card .fight-entry-name {
  font-size: 0.82rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.fight-cost-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(121, 161, 246, 0.42);
  padding: 0.16rem 0.36rem;
  background: rgba(8, 15, 40, 0.82);
  font-size: 0.52rem;
  line-height: 1;
  text-transform: uppercase;
}

.fight-cost-chip[data-tone="free"] {
  color: #061b2d;
  border-color: rgba(103, 240, 194, 0.82);
  background: linear-gradient(135deg, #76ffcf, #37c7ff);
}

.fight-cost-chip[data-tone="bits"] {
  color: #d8a7ff;
  border-color: rgba(156, 94, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(65, 33, 124, 0.92), rgba(37, 21, 81, 0.95));
}

.fight-cost-chip[data-tone="key"] {
  color: #ffd7f0;
  border-color: rgba(255, 111, 159, 0.7);
  background: rgba(84, 22, 56, 0.72);
}

.fight-cost-chip[data-tone="offline"] {
  color: rgba(210, 222, 245, 0.86);
  border-color: rgba(140, 162, 210, 0.36);
  background: rgba(21, 28, 56, 0.76);
}

.fight-selected-card .fight-entry-difficulty-row {
  align-items: start;
  flex-direction: column;
  gap: 0.16rem;
}

.fight-selected-card .fight-entry-difficulty-choices {
  width: 100%;
  flex-wrap: wrap;
  overflow: visible;
}

.fight-difficulty-chip {
  border-radius: 8px;
  border-color: rgba(121, 161, 246, 0.42);
  background:
    linear-gradient(180deg, rgba(18, 31, 72, 0.92), rgba(8, 15, 43, 0.95));
  box-shadow: inset 0 1px 0 rgba(238, 254, 255, 0.06);
}

.fight-difficulty-chip[data-tone="normal"].active {
  border-color: rgba(103, 240, 194, 0.88);
  background: linear-gradient(135deg, #78ffd0, #37c6ff);
}

.fight-difficulty-chip[data-tone="hard"].active {
  border-color: rgba(255, 224, 122, 0.92);
  background: linear-gradient(135deg, #ffe589, #ff9d55);
}

.fight-difficulty-chip[data-tone="legendary"].active {
  border-color: rgba(255, 191, 75, 0.96);
  background: linear-gradient(135deg, #fff2a8, #ffb21f);
}

.fight-difficulty-chip[data-tone="mythic"].active {
  border-color: rgba(255, 111, 159, 0.94);
  background: linear-gradient(135deg, #ff9ec0, #9a6bff);
}

.fight-selected-card .fight-entry-description {
  max-height: 2.6em;
  overflow: hidden;
  color: rgba(210, 229, 255, 0.94);
  font-size: 0.58rem;
}

.fight-selected-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
  gap: 0.3rem;
  align-items: center;
}

.fight-selected-meta {
  min-width: 0;
  color: rgba(156, 238, 255, 0.9);
  font-size: 0.52rem;
  font-weight: 800;
  line-height: 1.18;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-selected-action {
  min-width: 86px;
}

.fight-board .fight-entry-list {
  gap: 0.14rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.fight-entry-row {
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border-color: rgba(121, 161, 246, 0.24);
  background: rgba(9, 17, 48, 0.72);
}

.fight-entry-row.active {
  border-color: rgba(105, 239, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(105, 239, 255, 0.12);
}

.fight-entry-select {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 0.34rem;
  align-items: center;
  border: 0;
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(9, 17, 48, 0.94));
  color: inherit;
  text-align: left;
  padding: 0.34rem;
}

.fight-entry-row.active .fight-entry-select {
  background:
    radial-gradient(circle at 14% 0%, rgba(105, 239, 255, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(22, 42, 93, 0.96), rgba(9, 17, 48, 0.98));
}

.fight-row-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--fight-cyan);
  border-radius: 10px;
  border: 1px solid rgba(105, 239, 255, 0.3);
  background: rgba(5, 12, 34, 0.72);
}

.fight-entry-row[data-kind="boss"] .fight-row-icon,
.fight-entry-row[data-kind="uber"] .fight-row-icon {
  color: var(--fight-gold);
  border-color: rgba(255, 224, 122, 0.34);
}

.fight-row-icon svg {
  width: 24px;
  height: 24px;
}

.fight-row-main {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.fight-row-main .fight-entry-name {
  font-size: 0.66rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-row-meta {
  color: rgba(174, 202, 245, 0.92);
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fight-top-bar {
  position: absolute;
  left: 3px;
  right: 3px;
  top: 5px;
  z-index: 24;
  min-height: 82px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  grid-template-rows: 48px 34px;
  align-items: center;
  border: 2px solid rgba(96, 125, 171, 0.76);
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(180deg, rgba(6, 17, 42, 0.98), rgba(3, 11, 29, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(7, 10, 22, 0.72),
    inset 0 -1px 0 rgba(53, 77, 118, 0.75);
}

.fight-top-bar::before,
.fight-top-bar::after {
  content: "";
  position: absolute;
  top: 73px;
  height: 8px;
  border-top: 2px solid rgba(56, 87, 135, 0.78);
  border-bottom: 2px solid rgba(56, 87, 135, 0.78);
  box-shadow:
    -3px 2px 0 -1px rgba(56, 87, 135, 0.78),
    3px 2px 0 -1px rgba(56, 87, 135, 0.78);
}

.fight-top-bar::before {
  left: 22px;
  width: 110px;
}

.fight-top-bar::after {
  right: 22px;
  width: 110px;
}

.fight-brand-name {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  color: #f7fbff;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.82),
    0 0 10px rgba(255, 255, 255, 0.12);
}

.fight-menu-button {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  width: 36px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  position: relative;
  border: 2px solid rgba(96, 125, 171, 0.78);
  border-radius: 5px;
  background: rgba(6, 12, 28, 0.82);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.58);
  cursor: pointer;
}

.fight-menu-button:hover,
.fight-menu-button:focus-visible,
.fight-menu-button[aria-expanded="true"] {
  border-color: rgba(89, 243, 255, 0.92);
  box-shadow:
    0 0 12px rgba(45, 224, 255, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.fight-menu-mark {
  width: 22px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.fight-menu-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: rgba(246, 249, 255, 0.95);
  box-shadow:
    0 -8px 0 rgba(246, 249, 255, 0.95),
    0 8px 0 rgba(246, 249, 255, 0.95);
  transform: translateY(-50%);
}

.fight-top-title {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  margin: 0;
  color: #34dfff;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.74),
    0 0 12px rgba(52, 223, 255, 0.42);
}

.fight-menu-panel {
  position: absolute;
  top: 44px;
  right: 9px;
  z-index: 30;
  width: 172px;
  display: grid;
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(89, 243, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 17, 42, 0.98), rgba(3, 9, 26, 0.98));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.48),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.fight-menu-panel[hidden] {
  display: none !important;
}

.fight-menu-item {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  border: 1px solid rgba(70, 98, 163, 0.68);
  border-radius: 6px;
  background: rgba(10, 23, 57, 0.9);
  color: #f7fbff;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.fight-menu-item:hover,
.fight-menu-item:focus-visible,
.fight-menu-item.active {
  border-color: rgba(96, 248, 255, 0.82);
  background:
    linear-gradient(180deg, rgba(42, 194, 239, 0.92), rgba(21, 123, 204, 0.92));
  color: #ffffff;
}

.fight-live-root .fight-content {
  top: 10px;
  bottom: 66px;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 4px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.fight-live-root .fight-header {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  position: absolute;
  left: 14px;
  right: 14px;
  top: 61px;
  z-index: 19;
  pointer-events: none;
}

.fight-live-root .fight-title {
  color: #34dfff;
  font-size: 1.35rem;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.68),
    0 0 12px rgba(52, 223, 255, 0.42);
}

.fight-live-root .fight-status {
  display: none;
}

.fight-live-root .fight-view-tabs {
  min-height: 25px;
  padding: 0;
  border-radius: 8px;
  border-color: rgba(69, 89, 171, 0.8);
  background: rgba(6, 12, 39, 0.86);
  overflow: hidden;
}

.fight-live-root .fight-view-tab-btn {
  height: 25px;
  min-height: 25px;
  border: 0;
  border-radius: 0;
  color: #f7fbff;
  font-size: 0.46rem;
}

.fight-live-root .fight-view-tab-btn.active {
  color: #ffffff;
  background:
    linear-gradient(180deg, #6ff8ff, #25b9ea);
  box-shadow: inset 0 0 0 1px rgba(236, 255, 255, 0.28);
}

.fight-live-root .fight-active-encounter {
  flex: 0 0 auto;
  min-height: 0;
  margin-bottom: 0.28rem;
  position: relative;
  z-index: 2;
}

.fight-live-root .fight-encounter-card {
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 68px;
  gap: 0.34rem;
  align-items: center;
  padding: 0.38rem 0.46rem;
  border-radius: 8px;
  border-color: rgba(21, 201, 216, 0.58);
  background:
    linear-gradient(145deg, rgba(4, 36, 57, 1), rgba(8, 18, 50, 1));
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fight-active-target {
  width: 24px;
  height: 24px;
  position: relative;
  display: inline-block;
  border: 3px solid rgba(244, 250, 255, 0.96);
  border-radius: 999px;
}

.fight-active-target::before,
.fight-active-target::after {
  content: "";
  position: absolute;
  background: rgba(244, 250, 255, 0.96);
}

.fight-active-target::before {
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 3px;
  transform: translateX(-50%);
}

.fight-active-target::after {
  top: 50%;
  left: -5px;
  right: -5px;
  height: 3px;
  transform: translateY(-50%);
}

.fight-active-copy {
  min-width: 0;
  display: grid;
  gap: 0.02rem;
}

.fight-live-root .fight-encounter-kicker {
  color: #48f3cf;
  font-size: 0.48rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fight-live-root .fight-encounter-name {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
  color: #f8fcff;
  font-size: 0.64rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-live-root .fight-encounter-name span {
  color: #54f0d7;
  font-size: 0.58rem;
  font-weight: 800;
}

.fight-live-root .fight-encounter-meta {
  margin: 0;
  color: rgba(220, 229, 255, 0.94);
  font-size: 0.5rem;
  font-weight: 700;
}

.fight-live-root .fight-join-btn {
  min-height: 32px;
  height: 32px;
  border-radius: 6px;
  color: #f7fcff;
  font-size: 0.66rem;
  text-transform: none;
  background:
    linear-gradient(180deg, #23d6ee, #0b83b8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 5px 12px rgba(0, 0, 0, 0.26);
}

.fight-live-root .fight-encounter-hide-btn {
  display: none;
}

.fight-live-root .fight-groups {
  flex: 0 0 auto;
  min-height: 0;
  display: block;
  position: relative;
  z-index: 1;
}

.fight-live-root .fight-board {
  display: block;
  min-height: 0;
  overflow: visible;
}

.fight-live-root .fight-selected-card {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 0.5rem;
  padding: 0.66rem;
  margin-bottom: 0.42rem;
  border-radius: 8px;
  border-color: rgba(70, 161, 255, 0.7);
  background:
    radial-gradient(circle at 17% 38%, rgba(63, 210, 255, 0.24), transparent 30%),
    linear-gradient(145deg, rgba(13, 38, 88, 0.96), rgba(7, 14, 43, 0.98) 62%, rgba(13, 11, 45, 0.98));
}

.fight-live-root .fight-selected-top {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.64rem;
  align-items: start;
  min-width: 0;
}

.fight-live-root .fight-selected-hero {
  align-content: start;
  padding-top: 0;
}

.fight-live-root .fight-selected-icon {
  width: 118px;
  height: 118px;
  border-radius: 4px;
  border-color: rgba(83, 111, 190, 0.86);
  background: rgba(6, 10, 30, 0.9);
  overflow: hidden;
  box-shadow: 0 0 22px rgba(60, 202, 255, 0.22);
}

.fight-live-root .fight-selected-image,
.fight-live-root .fight-row-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.fight-live-root .fight-selected-glow {
  inset: 74px 4px 0;
  background: rgba(42, 191, 255, 0.2);
}

.fight-live-root .fight-selected-main {
  gap: 0.34rem;
}

.fight-live-root .fight-selected-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.35rem;
}

.fight-collapse-btn {
  width: 25px;
  height: 25px;
  min-height: 25px;
  flex: 0 0 25px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid rgba(121, 161, 246, 0.48);
  background: rgba(11, 18, 48, 0.82);
  color: rgba(231, 238, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.fight-type-badge {
  width: fit-content;
  margin: 0 0 0.38rem;
  padding: 0.16rem 0.36rem;
  border-radius: 4px;
  border: 1px solid rgba(73, 238, 217, 0.55);
  background: rgba(15, 97, 111, 0.62);
  color: #53ffe5;
  font-size: 0.56rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.fight-type-badge[data-kind="boss"] {
  border-color: rgba(255, 103, 132, 0.62);
  background: rgba(88, 20, 43, 0.66);
  color: #ff628c;
}

.fight-type-badge[data-kind="endless"] {
  border-color: rgba(179, 103, 255, 0.62);
  background: rgba(59, 30, 111, 0.66);
  color: #bf79ff;
}

.fight-type-badge[data-kind="uber"] {
  border-color: rgba(255, 222, 100, 0.62);
  background: rgba(111, 84, 20, 0.62);
  color: #ffe26a;
}

.fight-live-root .fight-selected-card .fight-entry-name {
  color: #ffffff;
  font-size: 1.08rem;
  line-height: 1;
}

.fight-live-root .fight-entry-description {
  color: rgba(231, 237, 255, 0.92);
  font-size: 0.66rem;
  line-height: 1.28;
}

.fight-live-root .fight-entry-difficulty-label {
  color: rgba(196, 205, 230, 0.8);
  font-size: 0.58rem;
}

.fight-live-root .fight-difficulty-chip {
  min-height: 30px;
  height: 30px;
  border-radius: 4px;
  border-width: 1px;
  font-size: 0.58rem;
  font-weight: 900;
  color: #f8fcff;
  text-transform: none;
  background: rgba(9, 20, 57, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 10px rgba(0, 0, 0, 0.2);
}

.fight-live-root .fight-selected-difficulty-row {
  min-width: 0;
}

.fight-live-root .fight-selected-difficulty-row .fight-entry-difficulty-choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  width: 100%;
}

.fight-uber-picker {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.fight-uber-select-label {
  color: rgba(196, 205, 230, 0.8);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.fight-uber-picker-toggle,
.fight-uber-option {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.36rem;
  align-items: center;
  border-radius: 6px;
  border: 1px solid rgba(105, 239, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(20, 42, 92, 0.98), rgba(8, 15, 43, 0.98));
  color: #f7fcff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-align: left;
  padding: 0.36rem 0.42rem;
  outline: none;
  text-transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 14px rgba(105, 239, 255, 0.12);
}

.fight-uber-picker-toggle {
  position: relative;
  padding-right: 1.25rem;
}

.fight-uber-picker-toggle::after {
  content: "";
  position: absolute;
  right: 0.42rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(238, 247, 255, 0.92);
  transform: translateY(-50%);
}

.fight-uber-picker.open .fight-uber-picker-toggle::after {
  border-top: 0;
  border-bottom: 5px solid rgba(238, 247, 255, 0.92);
}

.fight-uber-option-list {
  display: none;
  max-height: 154px;
  overflow-y: auto;
  gap: 0.16rem;
  padding: 0.22rem;
  border-radius: 7px;
  border: 1px solid rgba(105, 239, 255, 0.42);
  background: rgba(5, 12, 34, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fight-uber-picker.open .fight-uber-option-list {
  display: grid;
}

.fight-uber-option {
  min-height: 30px;
  border-color: rgba(82, 121, 205, 0.46);
  background: rgba(10, 20, 52, 0.92);
  box-shadow: none;
}

.fight-uber-option.active {
  border-color: rgba(105, 239, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(23, 104, 215, 0.98), rgba(16, 63, 148, 0.98));
  color: #ffffff;
}

.fight-uber-option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-uber-level-chip {
  min-height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.34rem;
  border: 1px solid rgba(255, 222, 100, 0.54);
  background: rgba(106, 80, 19, 0.58);
  color: #ffe26a;
  font-size: 0.46rem;
  font-weight: 900;
  white-space: nowrap;
}

.fight-uber-picker-toggle:focus-visible,
.fight-uber-option:focus-visible {
  border-color: rgba(105, 239, 255, 0.84);
  box-shadow:
    0 0 0 2px rgba(105, 239, 255, 0.22),
    0 0 14px rgba(105, 239, 255, 0.18);
}

.fight-live-root .fight-difficulty-chip.compact {
  min-height: 17px;
  height: 17px;
  min-width: 0;
  padding: 0 0.12rem;
  font-size: 0.38rem;
  pointer-events: none;
  cursor: default;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fight-live-root .fight-difficulty-chip[data-tone="normal"] {
  border-color: rgba(31, 229, 197, 0.78);
  background:
    linear-gradient(180deg, rgba(7, 79, 76, 0.95), rgba(4, 42, 50, 0.98));
  color: #69ffe8;
}

.fight-live-root .fight-difficulty-chip[data-tone="hard"] {
  border-color: rgba(202, 91, 37, 0.82);
  background:
    linear-gradient(180deg, rgba(86, 34, 17, 0.96), rgba(39, 18, 16, 0.98));
  color: #ff9450;
}

.fight-live-root .fight-difficulty-chip[data-tone="legendary"] {
  border-color: rgba(226, 181, 55, 0.78);
  background:
    linear-gradient(180deg, rgba(87, 67, 18, 0.96), rgba(39, 31, 13, 0.98));
  color: #ffd861;
}

.fight-live-root .fight-difficulty-chip[data-tone="mythic"] {
  border-color: rgba(146, 88, 230, 0.86);
  background:
    linear-gradient(180deg, rgba(52, 28, 94, 0.96), rgba(28, 17, 59, 0.98));
  color: #d49cff;
}

.fight-live-root .fight-difficulty-chip.active {
  border-width: 2px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 8px 12px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(5, 10, 26, 0.85),
    0 0 14px rgba(78, 234, 255, 0.24);
  transform: translateY(-1px);
}

.fight-live-root .fight-difficulty-chip[data-tone="normal"].active {
  border-color: #7bfff0;
  background:
    linear-gradient(180deg, rgba(17, 133, 123, 0.98), rgba(5, 64, 68, 0.98));
  color: #efffff;
}

.fight-live-root .fight-difficulty-chip[data-tone="hard"].active {
  border-color: #ffb070;
  background:
    linear-gradient(180deg, rgba(126, 54, 22, 0.98), rgba(58, 23, 15, 0.98));
  color: #fff4eb;
}

.fight-live-root .fight-difficulty-chip[data-tone="legendary"].active {
  border-color: #ffe36d;
  background:
    linear-gradient(180deg, rgba(127, 96, 20, 0.98), rgba(61, 45, 11, 0.98));
  color: #fff8cf;
}

.fight-live-root .fight-difficulty-chip[data-tone="mythic"].active {
  border-color: #d7a7ff;
  background:
    linear-gradient(180deg, rgba(85, 43, 147, 0.98), rgba(42, 22, 83, 0.98));
  color: #fff1ff;
}

.fight-live-root .fight-selected-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.fight-live-root .fight-selected-action {
  position: relative;
  min-height: 48px;
  height: 48px;
  width: 100%;
  border-radius: 5px;
  color: #f8fcff;
  font-size: 0.9rem;
  text-transform: none;
  background:
    linear-gradient(180deg, #28cff1, #0d83ba);
}

.fight-live-root .fight-selected-action::after {
  content: attr(data-status-label);
  position: absolute;
  top: 4px;
  right: 5px;
  max-width: 48%;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(9, 26, 53, 0.2);
  background: rgba(6, 19, 42, 0.72);
  color: #8ffff1;
  font-size: 0.46rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fight-live-root .fight-selected-action[data-status-label=""]::after {
  display: none;
}

.fight-live-root .fight-selected-cost {
  min-height: 40px;
  border-radius: 5px;
  font-size: 0.82rem;
}

.fight-live-root .fight-selected-meta {
  color: #53f0d8;
  font-size: 0.55rem;
}

.fight-live-root .fight-entry-list {
  display: grid;
  gap: 0.42rem;
  min-height: 0;
  overflow: visible;
  padding-right: 0;
}

.fight-live-root .fight-entry-row {
  border-radius: 8px;
  border-color: rgba(70, 103, 177, 0.7);
  background: rgba(8, 18, 47, 0.92);
}

.fight-live-root .fight-entry-select {
  min-height: 88px;
  grid-template-columns: 62px minmax(0, 1fr) 58px;
  gap: 0.42rem;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(13, 29, 68, 0.94), rgba(7, 14, 41, 0.98));
}

.fight-live-root .fight-row-icon {
  width: 58px;
  height: 58px;
  border-radius: 4px;
  overflow: hidden;
  border-color: rgba(74, 94, 160, 0.86);
  background: rgba(6, 10, 30, 0.9);
}

.fight-live-root .fight-row-main {
  gap: 0.2rem;
}

.fight-live-root .fight-row-main .fight-entry-name {
  font-size: 0.82rem;
  line-height: 1;
  text-transform: uppercase;
}

.fight-live-root .fight-entry-row[data-kind="boss"] .fight-entry-name {
  color: #ff628c;
}

.fight-live-root .fight-entry-row[data-kind="endless"] .fight-entry-name {
  color: #b56aff;
}

.fight-live-root .fight-entry-row[data-kind="uber"] .fight-entry-name {
  color: #ffe26a;
}

.fight-row-description {
  color: rgba(221, 229, 249, 0.86);
  font-size: 0.56rem;
  line-height: 1.18;
}

.fight-row-side {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.24rem;
  justify-items: end;
}

.fight-row-side .fight-cost-chip {
  min-height: 24px;
  max-width: 72px;
  padding: 0.16rem 0.38rem;
  font-size: 0.58rem;
}

.fight-live-root .fight-row-meta {
  color: rgba(221, 229, 249, 0.88);
  font-size: 0.62rem;
  line-height: 1.1;
  text-align: right;
  text-transform: none;
  white-space: nowrap;
}

.inventory-live-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  padding: 0;
  margin: 0;
  display: block;
}

.inventory-live-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.inventory-live-root {
  width: 100%;
  max-width: 318px;
  padding: 0;
  gap: 0;
}

.layout.panel-mode.single-editor.inventory-live-root .editor-card {
  border-radius: 0;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.inventory-live-root .avatar-stage.inventory-stage {
  width: 100%;
  height: 100%;
  max-width: none;
}

.inventory-live-root .inventory-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 18px;
  aspect-ratio: auto;
  background:
    radial-gradient(circle at 48% 2%, rgba(96, 227, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 29, 55, 0.98), rgba(24, 16, 61, 0.98) 62%, rgba(7, 14, 34, 0.98));
}

.inventory-content {
  position: absolute;
  --inventory-compare-inspect-space: 128px;
  --inventory-slot-size: 64px;
  --inventory-slot-gap: 6px;
  left: 6px;
  right: 6px;
  top: 8px;
  bottom: 64px;
  z-index: 16;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  align-content: stretch;
  gap: 0.18rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  padding-bottom: 2px;
}

.inventory-content.has-inspect {
  grid-template-rows: minmax(0, 1fr) auto auto var(--inventory-compare-inspect-space);
}

.inventory-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.12rem;
  min-width: 0;
  font-size: 0.48rem;
  color: rgba(173, 198, 245, 0.95);
}

.inventory-filter-row {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inventory-filter-btn {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(116, 151, 237, 0.45);
  border-radius: 5px;
  background: rgba(11, 18, 48, 0.78);
  color: rgba(194, 211, 248, 0.92);
  font: inherit;
  font-size: 0.46rem;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  padding: 0.08rem 0.22rem;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.inventory-filter-btn.active {
  border-color: rgba(64, 232, 222, 0.88);
  background:
    linear-gradient(180deg, rgba(24, 54, 102, 0.96) 0%, rgba(20, 132, 164, 0.96) 100%);
  color: #efffff;
  box-shadow:
    0 0 10px rgba(33, 215, 229, 0.24),
    inset 0 0 0 1px rgba(227, 255, 255, 0.13);
}

.layout.single-editor.inventory-live-root .inventory-filter-btn,
.layout.panel-mode.single-editor.inventory-live-root .inventory-filter-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 18px;
  height: 18px;
  border-radius: 4px;
  padding: 0 0.24rem;
  font-size: 0.48rem;
  line-height: 1;
}

.inventory-grid-scroller {
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(122, 162, 246, 0.34);
  background: rgba(10, 16, 44, 0.84);
  padding: 0.28rem;
}

.inventory-grid {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--inventory-slot-size));
  grid-auto-rows: var(--inventory-slot-size);
  align-content: start;
  justify-content: center;
  gap: var(--inventory-slot-gap);
}

.inventory-slot {
  box-sizing: border-box;
  width: var(--inventory-slot-size);
  height: var(--inventory-slot-size);
  min-width: var(--inventory-slot-size);
  min-height: var(--inventory-slot-size);
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 2px solid var(--inventory-rarity-color, rgba(149, 182, 255, 0.44));
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 52%, transparent), transparent 60%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 22%, transparent), transparent 70%),
    rgba(8, 13, 22, 0.9);
  display: grid;
  place-items: center;
  padding: 2px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 12px color-mix(in srgb, var(--inventory-rarity-color, rgba(149, 182, 255, 0.44)) 28%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--inventory-rarity-color, rgba(149, 182, 255, 0.44)) 44%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--inventory-rarity-color, rgba(149, 182, 255, 0.44)) 28%, transparent);
}

.inventory-slot[data-rarity="common"] {
  --inventory-rarity-color: #f1f1f1;
}

.inventory-slot[data-rarity="uncommon"] {
  --inventory-rarity-color: #a8ff2f;
}

.inventory-slot[data-rarity="rare"] {
  --inventory-rarity-color: #45c2ff;
}

.inventory-slot[data-rarity="epic"] {
  --inventory-rarity-color: #c56bff;
}

.inventory-slot[data-rarity="legendary"] {
  --inventory-rarity-color: #ffb21f;
}

.inventory-slot[data-rarity="ancient"] {
  --inventory-rarity-color: #14ffe6;
}

.inventory-slot[data-rarity="mythic"] {
  --inventory-rarity-color: #ff5d93;
}

.inventory-slot[data-rarity="premium"] {
  --inventory-rarity-color: #f6e27a;
}

.inventory-slot.has-item {
  border-color: color-mix(in srgb, var(--inventory-rarity-color, #79ebff) 88%, #ffffff);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 52%, transparent), transparent 60%),
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 24%, transparent), transparent 70%),
    rgba(8, 13, 22, 0.92);
  box-shadow:
    0 0 0 1px rgba(7, 12, 32, 0.92),
    0 0 14px color-mix(in srgb, var(--inventory-rarity-color, #79ebff) 42%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--inventory-rarity-color, #79ebff) 50%, transparent),
    inset 0 0 22px color-mix(in srgb, var(--inventory-rarity-color, #79ebff) 30%, transparent);
}

.inventory-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.inventory-slot-count {
  position: absolute;
  right: 3px;
  bottom: 3px;
  min-width: 1.08rem;
  height: 1.08rem;
  padding: 0 0.18rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(7, 12, 32, 0.88);
  color: #ffffff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.54rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.42);
  pointer-events: none;
}

.inventory-slot.is-empty {
  border-style: dashed;
  opacity: 0.34;
}

.inventory-slot.active {
  border-color: var(--inventory-rarity-color, rgba(106, 242, 200, 0.95));
  outline: 2px solid color-mix(in srgb, var(--inventory-rarity-color, #69efff) 72%, #ffffff);
  outline-offset: -5px;
  background:
    radial-gradient(circle at 50% 42%, rgba(105, 239, 255, 0.34), transparent 62%),
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--inventory-rarity-color, #ffd2b8) 42%, transparent), transparent 58%),
    rgba(8, 13, 22, 0.94);
  box-shadow:
    0 0 0 2px rgba(9, 17, 48, 0.92),
    0 0 18px color-mix(in srgb, var(--inventory-rarity-color, #69efff) 54%, transparent),
    inset 0 0 0 1px rgba(246, 252, 255, 0.34),
    inset 0 0 18px color-mix(in srgb, var(--inventory-rarity-color, rgba(106, 242, 200, 0.95)) 24%, transparent);
}

.inventory-slot.is-level-locked {
  border-color: var(--inventory-rarity-color, rgba(149, 182, 255, 0.44));
  opacity: 0.72;
  filter: saturate(0.86);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--inventory-rarity-color, rgba(149, 182, 255, 0.44)) 22%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--inventory-rarity-color, rgba(149, 182, 255, 0.44)) 34%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--inventory-rarity-color, rgba(149, 182, 255, 0.44)) 22%, transparent);
}

.inventory-pager {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 0.28rem;
}

.inventory-page-btn {
  min-height: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(122, 162, 246, 0.38);
  background: rgba(16, 27, 69, 0.9);
  color: rgba(222, 235, 255, 0.96);
  font-size: 0.5rem;
  text-transform: uppercase;
  padding: 0;
}

.inventory-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.inventory-page-btn:disabled:hover {
  transform: none;
}

.inventory-page-label {
  margin: 0;
  text-align: center;
  font-size: 0.6rem;
  color: rgba(178, 203, 245, 0.95);
}

.inventory-compare-bar {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.inventory-inspect-compare-row {
  position: absolute;
  top: 1px;
  left: 50%;
  z-index: 2;
  display: flex;
  justify-content: center;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.inventory-compare-btn {
  min-height: 24px;
  min-width: 86px;
  border-radius: 0 0 8px 8px;
  border: 1px solid rgba(104, 247, 196, 0.56);
  border-top-color: rgba(124, 165, 248, 0.34);
  background:
    linear-gradient(180deg, rgba(20, 34, 78, 0.98) 0%, rgba(34, 154, 198, 0.98) 46%, rgba(31, 155, 126, 0.98) 100%);
  color: #061128;
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 0.5rem;
  box-shadow:
    0 6px 14px rgba(3, 8, 25, 0.28),
    inset 0 0 0 1px rgba(224, 255, 248, 0.12);
  pointer-events: auto;
}

.inventory-inspect-compare-row .inventory-compare-btn {
  min-height: 22px;
  min-width: 82px;
}

.inventory-compare-btn[hidden] {
  display: none !important;
}

.inventory-compare-btn.active {
  border-color: rgba(255, 226, 128, 0.75);
  background:
    linear-gradient(180deg, rgba(38, 42, 75, 0.98) 0%, rgba(255, 191, 74, 0.98) 46%, rgba(221, 111, 35, 0.98) 100%);
}

.inventory-compare-panel {
  position: absolute;
  left: 0;
  right: 2px;
  top: calc(2rem + 0.36rem);
  bottom: calc(var(--inventory-compare-inspect-space) + 0.52rem);
  z-index: 28;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-radius: 10px;
  border: 1px solid rgba(124, 165, 248, 0.5);
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 231, 212, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(16, 27, 66, 0.98), rgba(8, 14, 40, 0.98));
  padding: 0.42rem;
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28), 0 12px 24px rgba(0, 0, 0, 0.32);
  transform-origin: bottom center;
  overflow: hidden;
  animation: inventoryCompareOverlayExpand 180ms ease-out;
}

.inventory-compare-panel[hidden] {
  display: none !important;
}

.inventory-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.inventory-compare-head p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-compare-head button {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid rgba(123, 168, 255, 0.36);
  background: rgba(25, 39, 88, 0.92);
  color: #eaf0ff;
  font-size: 0.65rem;
  font-weight: 900;
}

.inventory-compare-body {
  display: grid;
  align-content: start;
  gap: 0.4rem;
  max-width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
}

.inventory-compare-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem;
  max-width: 100%;
  min-width: 0;
}

.inventory-compare-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.24);
  background: rgba(13, 24, 60, 0.78);
  padding: 0.3rem;
}

.inventory-compare-item > :last-child {
  max-width: 100%;
  min-width: 0;
}

.inventory-compare-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid rgba(149, 182, 255, 0.36);
  background: rgba(6, 11, 32, 0.75);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.inventory-compare-item-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}

.inventory-compare-item-icon span {
  color: rgba(215, 232, 255, 0.72);
  font-size: 0.65rem;
  font-weight: 900;
}

.inventory-compare-item p,
.inventory-compare-item strong,
.inventory-compare-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-compare-item p {
  margin: 0;
  color: rgba(167, 194, 243, 0.9);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-compare-item strong {
  color: var(--inventory-rarity-color, #f3f8ff);
  font-size: 0.58rem;
  line-height: 1.15;
  text-shadow: 0 0 10px color-mix(in srgb, var(--inventory-rarity-color, #79ebff) 34%, transparent);
}

.inventory-compare-item span {
  color: rgba(176, 199, 239, 0.88);
  font-size: 0.5rem;
}

.inventory-compare-slot {
  color: rgba(196, 216, 249, 0.9);
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.inventory-compare-slot-chooser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.28rem;
}

.inventory-compare-slot-chooser button {
  min-width: 0;
  border: 1px solid rgba(93, 239, 255, 0.44);
  border-radius: 7px;
  background: rgba(8, 18, 48, 0.78);
  color: #d8f7ff;
  font: inherit;
  font-size: 0.54rem;
  font-weight: 900;
  line-height: 1;
  padding: 0.42rem 0.48rem;
  text-transform: uppercase;
}

.inventory-compare-slot-chooser button.active {
  background: linear-gradient(180deg, rgba(93, 239, 255, 0.28), rgba(40, 150, 190, 0.2));
  border-color: rgba(93, 239, 255, 0.9);
  color: #ffffff;
}

.inventory-compare-slot-chooser button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.inventory-compare-stats {
  display: grid;
  gap: 0.18rem;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.inventory-compare-stat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(38px, auto) minmax(34px, auto);
  gap: 0.28rem;
  align-items: center;
  min-width: 0;
  border-radius: 6px;
  background: rgba(22, 35, 82, 0.64);
  padding: 0.18rem 0.28rem;
  font-size: 0.54rem;
}

.inventory-compare-stat span {
  color: rgba(195, 211, 242, 0.94);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-compare-stat strong {
  color: #eef5ff;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-compare-stat em {
  min-width: 34px;
  text-align: right;
  font-style: normal;
  font-weight: 900;
}

.inventory-compare-stat.is-positive em {
  color: #55ff88;
}

.inventory-compare-stat.is-negative em {
  color: #ff6b6b;
}

.inventory-compare-stat.is-neutral em {
  color: rgba(191, 207, 239, 0.8);
}

.inventory-compare-empty {
  margin: 0;
  color: rgba(184, 201, 235, 0.86);
  font-size: 0.56rem;
}

@keyframes inventoryCompareOverlayExpand {
  from {
    opacity: 0;
    clip-path: inset(100% 0 0 0 round 10px);
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round 10px);
    transform: translateY(0);
  }
}

.inventory-inspect {
  position: relative;
  border-radius: 10px;
  border: 1px solid rgba(124, 165, 248, 0.44);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.92), rgba(10, 18, 50, 0.95));
  padding: 0.34rem 0.4rem;
  padding-top: 0.5rem;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.4rem;
  align-items: start;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.inventory-inspect[hidden] {
  display: none !important;
}

.inventory-inspect-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(149, 182, 255, 0.44);
  background: rgba(11, 17, 43, 0.86);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.inventory-inspect-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.inventory-inspect-name {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.15;
}

.inventory-inspect[data-rarity] .inventory-inspect-name,
.inventory-inspect-meta .is-rarity {
  color: var(--inventory-rarity-color, #ffd2b8);
}

.inventory-inspect-meta .is-rarity {
  font-weight: 800;
}

.inventory-inspect-meta {
  margin: 0.12rem 0 0;
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.56rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.inventory-inspect-meta-separator {
  color: rgba(120, 141, 191, 0.9);
}

.inventory-inspect-meta .is-level-locked {
  color: #ff6b6b;
  font-weight: 700;
}

.inventory-inspect-meta .is-weapon-kind-unusable,
.inventory-hover-inspect-meta .is-weapon-kind-unusable {
  color: #ff6b6b;
  font-weight: 800;
}

.inventory-inspect-stats {
  list-style: none;
  margin: 0.22rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.13rem 0.35rem;
}

.inventory-inspect.is-simple-item .inventory-inspect-stats {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  margin-top: 0.12rem;
}

.inventory-inspect.is-simple-item .inventory-inspect-actions {
  grid-column: 1 / -1;
}

.inventory-inspect-description {
  display: block;
  width: 100%;
  max-width: 100%;
  color: rgba(232, 242, 255, 0.96);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.28;
  white-space: normal;
}

.inventory-inspect-set {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
  display: grid;
  gap: 0.08rem;
  color: rgba(255, 244, 232, 0.9);
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.2;
}

.inventory-inspect-set strong {
  font-size: 0.6rem;
}

.inventory-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.inventory-inspect-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.24rem;
  margin-top: 0.45rem;
}

.inventory-inspect-actions .inventory-compare-btn,
.inventory-inspect-actions .inventory-action-btn {
  flex: 1 1 0;
  min-width: 0;
}

.inventory-inspect-actions .inventory-compare-btn {
  min-height: 28px;
  min-width: 0;
  border-radius: 8px;
  border-top-color: rgba(104, 247, 196, 0.56);
  font-size: 0.56rem;
}

.item-inspect-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.inventory-inspect-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: 0.54rem;
}

.inventory-inspect-stat span {
  color: rgba(187, 203, 240, 0.95);
}

.inventory-inspect-stat strong {
  color: #eaf2ff;
  font-size: 0.58rem;
}

.inventory-action-btn {
  min-height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(104, 247, 196, 0.42);
  background: linear-gradient(180deg, rgba(18, 58, 70, 0.96), rgba(11, 34, 48, 0.96));
  color: #e9fff9;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.05;
  padding: 0 0.28rem;
  white-space: normal;
  overflow-wrap: anywhere;
}

.inventory-action-btn.secondary {
  border-color: rgba(123, 168, 255, 0.34);
  background: rgba(26, 41, 91, 0.9);
  color: #eaf0ff;
}

.inventory-action-btn.danger {
  border-color: rgba(255, 133, 112, 0.44);
  background: linear-gradient(180deg, rgba(92, 28, 28, 0.96), rgba(58, 16, 16, 0.96));
  color: #ffe8e4;
}

.inventory-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.inventory-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(4, 6, 16, 0.86);
  display: grid;
  place-items: center;
  padding: 0.85rem;
  backdrop-filter: blur(2px);
}

.inventory-confirm-modal[hidden] {
  display: none !important;
}

.inventory-confirm-card {
  width: min(94%, 262px);
  border-radius: 12px;
  border: 1px solid rgba(255, 133, 112, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 133, 112, 0.14), transparent 56%),
    rgba(10, 16, 42, 0.95);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
  padding: 0.65rem;
}

.inventory-confirm-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.2;
}

.inventory-confirm-text {
  margin: 0.4rem 0 0;
  color: rgba(187, 203, 240, 0.95);
  font-size: 0.66rem;
  line-height: 1.35;
}

.inventory-confirm-reward {
  margin-top: 0.52rem;
  border-radius: 10px;
  border: 1px solid rgba(124, 165, 248, 0.34);
  background: linear-gradient(180deg, rgba(18, 31, 72, 0.92), rgba(10, 18, 50, 0.94));
  padding: 0.48rem;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.inventory-confirm-reward-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(135, 176, 255, 0.3);
  background: rgba(22, 35, 79, 0.84);
  display: grid;
  place-items: center;
}

.inventory-confirm-reward-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.inventory-confirm-reward-copy {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.inventory-confirm-reward-label,
.inventory-confirm-reward-text,
.inventory-confirm-reward-balance {
  margin: 0;
}

.inventory-confirm-reward-label {
  color: rgba(173, 198, 245, 0.9);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inventory-confirm-reward-text {
  color: #f5fbff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
}

.inventory-confirm-reward-balance {
  color: rgba(159, 238, 207, 0.94);
  font-size: 0.56rem;
}

.layout.panel-mode.single-editor.equipment-editor .category-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout.panel-mode.single-editor .nav-arrow {
  width: 36px;
  height: 36px;
  min-height: 36px;
}

.layout.panel-mode.single-editor.loadout-live-root button,
.layout.panel-mode.single-editor.inventory-live-root button,
.layout.panel-mode.single-editor.fight-live-root button,
.layout.panel-mode.single-editor.talents-live-root button {
  flex: 0 0 auto;
}

.layout.panel-mode.single-editor.inventory-live-root .inventory-inspect-actions .inventory-compare-btn,
.layout.panel-mode.single-editor.inventory-live-root .inventory-inspect-actions .inventory-action-btn {
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.1rem;
  font-size: 0.46rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.layout.panel-mode.single-editor.loadout-live-root .equipped-slot {
  min-height: 46px;
  height: 46px;
}

.layout.panel-mode.single-editor.inventory-live-root .inventory-slot {
  min-height: var(--inventory-slot-size);
}

.crafting-live-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  padding: 0;
  margin: 0;
  display: block;
}

.crafting-live-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.crafting-live-root {
  width: 100%;
  max-width: 318px;
  padding: 0;
  gap: 0;
}

.layout.panel-mode.single-editor.crafting-live-root .editor-card {
  border-radius: 0;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.crafting-live-root .avatar-stage.crafting-stage {
  width: 100%;
  height: 100%;
  max-width: none;
}

.crafting-live-root .crafting-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 18px;
  aspect-ratio: auto;
  border: 1px solid rgba(123, 176, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(86, 227, 210, 0.22),
    inset 0 0 0 4px rgba(27, 48, 106, 0.45);
  background:
    radial-gradient(circle at 48% 2%, rgba(96, 227, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 29, 55, 0.98), rgba(24, 16, 61, 0.98) 62%, rgba(7, 14, 34, 0.98));
}

.crafting-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 68px;
  z-index: 16;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0.18rem;
  padding: 6px 6px 2px;
  overflow-x: hidden;
}

.crafting-header {
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.42);
  background: rgba(9, 16, 45, 0.9);
  padding: 0.16rem 0.24rem;
  display: grid;
  gap: 0.08rem;
}

.crafting-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.67rem;
}

.crafting-status {
  margin: 0;
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.5rem;
  line-height: 1.2;
  min-height: 0.6rem;
  padding: 0 0.16rem;
}

.crafting-status[data-error="1"] {
  color: #ff9aa6;
}

.crafting-panel {
  min-height: 0;
  border-radius: 10px;
  border: 1px solid rgba(124, 165, 248, 0.44);
  background: linear-gradient(180deg, rgba(17, 29, 70, 0.92), rgba(10, 18, 50, 0.95));
  padding: 0.24rem;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 0.18rem;
  overflow-x: hidden;
}

.crafting-panel-head {
  display: grid;
  gap: 0.03rem;
}

.crafting-panel-title,
.crafting-panel-subtitle {
  margin: 0;
}

.crafting-panel-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #eff6ff;
}

.crafting-panel-subtitle {
  font-size: 0.48rem;
  color: rgba(173, 198, 245, 0.92);
}

.dust-summary-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.14rem;
  overflow-x: hidden;
  padding-bottom: 0.04rem;
  align-items: start;
}

.dust-summary-chip {
  appearance: none;
  font: inherit;
  cursor: pointer;
  width: 100%;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #7fabff) 52%, rgba(127, 171, 255, 0.34));
  background:
    radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--rarity-color, #56e3d2) 20%, transparent), transparent 52%),
    rgba(13, 22, 58, 0.94);
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 0.12rem;
  align-items: center;
  padding: 0.12rem 0.14rem;
  min-height: 34px;
  height: 34px;
  align-self: start;
}

.dust-summary-chip.active {
  border-color: rgba(121, 255, 180, 0.86);
  box-shadow: inset 0 0 0 1px rgba(106, 241, 191, 0.4);
}

.dust-summary-chip:disabled {
  cursor: not-allowed;
}

.dust-summary-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dust-summary-copy {
  min-width: 0;
  display: grid;
  gap: 0.02rem;
}

.dust-summary-copy span,
.dust-summary-copy strong {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dust-summary-copy span {
  color: rgba(193, 215, 248, 0.9);
  font-size: 0.42rem;
  text-transform: uppercase;
}

.dust-summary-copy strong {
  color: #f7fcff;
  font-size: 0.58rem;
  font-weight: 800;
}

.crafting-actions {
  display: grid;
  gap: 0.14rem;
}

.crafting-primary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
}

.crafting-action-group {
  border-radius: 8px;
  border: 1px solid rgba(117, 164, 249, 0.38);
  background: rgba(8, 16, 49, 0.8);
  padding: 0.12rem;
  display: grid;
  gap: 0.08rem;
}

.crafting-action-title {
  margin: 0;
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(231, 241, 255, 0.96);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crafting-rarity-chip-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.08rem;
}

.crafting-rarity-chip {
  min-height: 24px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #8cb8ff) 58%, rgba(114, 157, 244, 0.4));
  background: rgba(11, 22, 60, 0.9);
  color: rgba(236, 245, 255, 0.96);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.18rem;
  padding: 0 0.3rem;
  font: inherit;
  font-size: 0.48rem;
  font-weight: 700;
}

.crafting-rarity-chip.active {
  border-color: rgba(121, 255, 180, 0.86);
  box-shadow: inset 0 0 0 1px rgba(106, 241, 191, 0.4);
}

.crafting-rarity-chip span {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crafting-rarity-chip strong {
  color: color-mix(in srgb, var(--rarity-color, #ffffff) 92%, #ffffff);
  font-size: 0.5rem;
}

.dust-action.wide {
  width: 100%;
}

.dust-grid {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.28rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 0.18rem;
  align-content: start;
  min-width: 0;
}

.dust-card {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #7fabff) 60%, rgba(127, 171, 255, 0.36));
  background:
    radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--rarity-color, #56e3d2) 24%, transparent), transparent 46%),
    rgba(13, 22, 58, 0.94);
  padding: 0.22rem;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 54px;
  gap: 0.22rem;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
  min-width: 0;
}

.dust-card-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(135, 176, 255, 0.28);
  background: rgba(23, 37, 82, 0.86);
  display: grid;
  place-items: center;
}

.dust-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
  display: block;
}

.dust-card-copy {
  min-width: 0;
  display: grid;
  gap: 0.02rem;
  align-content: center;
}

.dust-card-name,
.dust-card-value,
.dust-card-recipe {
  margin: 0;
}

.dust-card-name {
  font-size: 0.58rem;
  line-height: 1.12;
  color: rgba(226, 237, 255, 0.95);
}

.dust-card-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #f6fcff;
}

.dust-card-recipe {
  overflow: hidden;
  color: rgba(200, 218, 255, 0.86);
  font-size: 0.52rem;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dust-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  width: 100%;
  justify-self: stretch;
  margin-right: 0;
  min-width: 0;
}

.dust-action {
  min-height: 42px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(116, 219, 255, 0.48);
  border-radius: 7px;
  background: linear-gradient(180deg, rgba(82, 235, 242, 0.95), rgba(37, 159, 226, 0.95));
  color: #f8fdff;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.04rem;
  padding: 0.2rem 0.28rem;
}

.dust-action-label {
  font-size: 0.48rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dust-action-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
}

.dust-action-copy strong {
  font-size: 0.72rem;
  font-weight: 800;
}

.dust-action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dust-action-arrow {
  font-size: 0.64rem;
  line-height: 1;
}

.dust-action:hover,
.dust-action:focus-visible,
.dust-action:active {
  transform: none;
}

.dust-action.upgrade {
  border-color: rgba(255, 190, 116, 0.56);
  background: linear-gradient(180deg, rgba(255, 186, 83, 0.96), rgba(206, 101, 40, 0.96));
}

.dust-action.craft {
  border-color: rgba(116, 219, 255, 0.48);
  background: linear-gradient(180deg, rgba(82, 235, 242, 0.95), rgba(37, 159, 226, 0.95));
}

.dust-action.danger {
  border-color: rgba(255, 116, 146, 0.58);
  background: linear-gradient(180deg, rgba(255, 124, 158, 0.95), rgba(214, 52, 104, 0.95));
}

.crafting-confirm-backdrop {
  position: absolute;
  inset: 0;
  z-index: 82;
  background: rgba(2, 8, 26, 0.68);
  display: grid;
  place-items: center;
  padding: 0.42rem;
}

.crafting-confirm-dialog {
  width: min(100%, 360px);
  border-radius: 10px;
  border: 1px solid rgba(119, 163, 249, 0.52);
  background: linear-gradient(180deg, rgba(14, 24, 61, 0.98), rgba(8, 16, 43, 0.98));
  padding: 0.5rem;
  display: grid;
  gap: 0.36rem;
}

.crafting-confirm-dialog h3,
.crafting-confirm-dialog p {
  margin: 0;
}

.crafting-confirm-dialog h3 {
  font-size: 0.78rem;
  color: #f2f7ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crafting-confirm-dialog p {
  font-size: 0.66rem;
  line-height: 1.25;
  color: rgba(193, 214, 248, 0.94);
}

.crafting-confirm-summary {
  border-radius: 9px;
  border: 1px solid rgba(105, 160, 245, 0.36);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 18%, transparent), transparent 64%),
    rgba(7, 14, 40, 0.78);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem;
  padding: 0.34rem;
}

.crafting-confirm-summary div {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.crafting-confirm-summary span {
  color: rgba(181, 207, 248, 0.9);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.crafting-confirm-summary strong {
  color: color-mix(in srgb, var(--active-rarity-color, #ff5d93) 82%, #ffffff);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crafting-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.16rem;
}

.crafting-confirm-actions .dust-action {
  min-height: 42px;
  font-size: 0.68rem;
}

.dust-action:disabled {
  cursor: not-allowed;
  opacity: 0.36;
  filter: grayscale(0.35);
}

.dust-card[data-rarity="common"] .dust-card-value {
  color: #f1f1f1;
}

.dust-card[data-rarity="uncommon"] .dust-card-value {
  color: #a8ff2f;
}

.dust-card[data-rarity="rare"] .dust-card-value {
  color: #45c2ff;
}

.dust-card[data-rarity="epic"] .dust-card-value {
  color: #c56bff;
}

.dust-card[data-rarity="legendary"] .dust-card-value {
  color: #ffb21f;
}

.dust-card[data-rarity="ancient"] .dust-card-value {
  color: #00f5d4;
}

.dust-card[data-rarity="mythic"] .dust-card-value {
  color: #ff5d93;
}

.craft-reveal {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 0.7rem;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--craft-rarity-color, #00f5d4) 24%, transparent), transparent 38%),
    rgba(4, 8, 25, 0.84);
}

.craft-reveal[hidden] {
  display: none;
}

.craft-reveal[data-rarity="common"] {
  --craft-rarity-color: #f1f1f1;
}

.craft-reveal[data-rarity="uncommon"] {
  --craft-rarity-color: #a8ff2f;
}

.craft-reveal[data-rarity="rare"] {
  --craft-rarity-color: #45c2ff;
}

.craft-reveal[data-rarity="epic"] {
  --craft-rarity-color: #c56bff;
}

.craft-reveal[data-rarity="legendary"] {
  --craft-rarity-color: #ffb21f;
}

.craft-reveal[data-rarity="ancient"] {
  --craft-rarity-color: #00f5d4;
}

.craft-reveal[data-rarity="mythic"] {
  --craft-rarity-color: #ff5d93;
}

.craft-reveal[data-rarity="premium"] {
  --craft-rarity-color: #f6e27a;
}

.craft-reveal-show {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.craft-reveal-ring {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 80px;
  height: 80px;
  border: 2px solid var(--craft-rarity-color, #00f5d4);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.25);
  animation: craftRing 1.18s ease-out infinite;
  box-shadow:
    0 0 18px var(--craft-rarity-color, #00f5d4),
    inset 0 0 18px var(--craft-rarity-color, #00f5d4);
}

.craft-reveal-ring.delay {
  animation-delay: 0.38s;
}

.craft-reveal-beam {
  position: absolute;
  left: 50%;
  top: 9%;
  width: 34px;
  height: 82%;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--craft-rarity-color, #00f5d4) 82%, white), transparent);
  opacity: 0.42;
  transform: translateX(-50%) rotate(9deg);
  filter: blur(4px);
  animation: craftBeam 0.72s ease-in-out infinite alternate;
}

.craft-spark {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--craft-rarity-color, #00f5d4);
  box-shadow: 0 0 10px var(--craft-rarity-color, #00f5d4);
  animation: craftSpark 0.86s ease-out infinite;
}

.craft-spark.s1 {
  --spark-x: -112px;
  --spark-y: -42px;
  animation-delay: 0.05s;
}

.craft-spark.s2 {
  --spark-x: 96px;
  --spark-y: -58px;
  animation-delay: 0.16s;
}

.craft-spark.s3 {
  --spark-x: -88px;
  --spark-y: 64px;
  animation-delay: 0.26s;
}

.craft-spark.s4 {
  --spark-x: 118px;
  --spark-y: 48px;
  animation-delay: 0.36s;
}

.craft-spark.s5 {
  --spark-x: 12px;
  --spark-y: -96px;
  animation-delay: 0.46s;
}

.craft-spark.s6 {
  --spark-x: -18px;
  --spark-y: 92px;
  animation-delay: 0.56s;
}

.craft-reveal-item {
  position: relative;
  z-index: 2;
  width: min(250px, 100%);
}

.craft-reveal-pending {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.craft-reveal-spinner {
  width: 62px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--craft-rarity-color, #00f5d4);
  border-radius: 999px;
  animation: craftSpin 0.68s linear infinite;
  box-shadow: 0 0 22px var(--craft-rarity-color, #00f5d4);
}

.craft-reveal-card {
  border: 1px solid var(--rarity-color, #00f5d4);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rarity-color, #00f5d4) 24%, transparent), transparent 44%),
    rgba(9, 14, 34, 0.96);
  box-shadow:
    0 0 28px color-mix(in srgb, var(--rarity-color, #00f5d4) 70%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 0.55rem;
  opacity: 0;
  transform: scale(0.74) translateY(16px);
  animation: craftRevealCard 0.38s cubic-bezier(0.18, 1.35, 0.32, 1) forwards;
}

.craft-reveal-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.35rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #00f5d4) 70%, white);
  border-radius: 14px;
  background: rgba(20, 32, 76, 0.92);
}

.craft-reveal-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}

.craft-reveal-copy {
  text-align: center;
}

.craft-reveal-copy h2,
.craft-reveal-rarity,
.craft-reveal-meta {
  margin: 0;
}

.craft-reveal-copy h2 {
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.12;
}

.craft-reveal-rarity {
  color: var(--rarity-color, #00f5d4);
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
}

.craft-reveal-meta {
  color: rgba(214, 229, 255, 0.9);
  font-size: 0.48rem;
  line-height: 1.18;
}

.craft-reveal-stats {
  display: grid;
  gap: 0.12rem;
  margin-top: 0.45rem;
}

.craft-reveal-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  border-radius: 5px;
  background: rgba(47, 78, 165, 0.6);
  color: #5dff5d;
  padding: 0.11rem 0.26rem;
  font-size: 0.52rem;
  font-weight: 700;
}

.craft-reveal-stat.primary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.craft-reveal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(180, 206, 255, 0.65);
  border-radius: 8px;
  background: rgba(59, 82, 170, 0.92);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.craft-reveal.is-revealed .craft-reveal-close {
  opacity: 1;
  pointer-events: auto;
}

@keyframes craftRing {
  0% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.22);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

@keyframes craftBeam {
  from {
    opacity: 0.22;
    transform: translateX(-50%) rotate(-8deg) scaleX(0.74);
  }
  to {
    opacity: 0.58;
    transform: translateX(-50%) rotate(10deg) scaleX(1.15);
  }
}

@keyframes craftSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1);
  }
}

@keyframes craftSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes craftRevealCard {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes randomForgeRing {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.28);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

@keyframes randomForgeSpark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--spark-x)), calc(-50% + var(--spark-y))) scale(1);
  }
}

@keyframes randomCraftBoxPulse {
  from {
    box-shadow:
      0 0 18px color-mix(in srgb, var(--active-rarity-color, #c56bff) 52%, transparent),
      inset 0 0 18px color-mix(in srgb, var(--active-rarity-color, #c56bff) 20%, transparent);
  }
  to {
    box-shadow:
      0 0 28px color-mix(in srgb, var(--active-rarity-color, #c56bff) 76%, transparent),
      inset 0 0 24px color-mix(in srgb, var(--active-rarity-color, #c56bff) 34%, transparent);
  }
}

@keyframes randomCraftResultPop {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes randomCraftResultPopRaised {
  from {
    opacity: 0;
    transform: scale(0.72) translateY(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(-12px);
  }
}

.layout.panel-mode.single-editor.fight-live-root .fight-content {
  left: 10px;
  right: 10px;
  top: 10px;
  bottom: 66px;
}

.talents-live-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  padding: 0;
  margin: 0;
  display: block;
}

.talents-live-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.talents-live-root {
  width: 100%;
  max-width: 318px;
  padding: 0;
  gap: 0;
}

.layout.panel-mode.single-editor.talents-live-root .editor-card {
  border-radius: 0;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.talents-live-root .avatar-stage.talents-stage {
  width: 100%;
  height: 100%;
  max-width: none;
}

.talents-live-root .talents-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 18px;
  aspect-ratio: auto;
  border: 1px solid rgba(123, 176, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(86, 227, 210, 0.22),
    inset 0 0 0 4px rgba(27, 48, 106, 0.45);
  background:
    radial-gradient(circle at 82% 86%, rgba(120, 63, 220, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(9, 21, 67, 0.96), rgba(10, 20, 72, 0.95));
}

.talents-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 64px;
  z-index: 16;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 0.18rem;
  overflow-y: hidden;
  overflow-x: hidden;
  padding: 4px 4px 2px;
}

.talents-content.class-selection-mode {
  grid-template-rows: minmax(0, 1fr);
  gap: 0.25rem;
  padding: 6px 6px 2px;
}

.talents-content.class-selection-mode .talents-points-card,
.talents-content.class-selection-mode .talent-tree-shell,
.talents-content.class-selection-mode .talent-inspect,
.talents-content.class-selection-mode .talents-locked-panel {
  display: none !important;
}

.talents-header {
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.42);
  background: rgba(9, 16, 45, 0.9);
  padding: 0.16rem 0.24rem;
  display: grid;
  gap: 0.08rem;
}

.talents-title {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.67rem;
}

.talents-status {
  margin: 0;
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.52rem;
  line-height: 1.2;
}

.talents-status[data-error="1"] {
  color: #ff9aa6;
}

.achievements-live-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  padding: 0;
  margin: 0;
  display: block;
}

.achievements-live-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.achievements-live-root {
  width: 100%;
  max-width: 318px;
  padding: 0;
  gap: 0;
}

.layout.panel-mode.single-editor.achievements-live-root .editor-card {
  border-radius: 0;
  padding: 7px;
  gap: 0;
}

.layout.panel-mode.single-editor.achievements-live-root .avatar-stage.achievements-stage {
  width: 100%;
  height: 100%;
  max-width: none;
}

.achievements-live-root .achievements-stage {
  width: 100%;
  height: 100%;
  max-width: none;
  border-radius: 18px;
  aspect-ratio: auto;
  border: 1px solid rgba(123, 176, 255, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(86, 227, 210, 0.22),
    inset 0 0 0 4px rgba(27, 48, 106, 0.45);
  background:
    radial-gradient(circle at 82% 86%, rgba(120, 63, 220, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(9, 21, 67, 0.96), rgba(10, 20, 72, 0.95));
}

.achievements-content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 66px;
  z-index: 16;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.16rem;
  padding: 4px 4px 2px;
}

.achievements-header,
.achievements-panel {
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.42);
  background: rgba(9, 16, 45, 0.9);
}

.achievements-header {
  display: grid;
  gap: 0.08rem;
  padding: 0.16rem 0.24rem;
}

.achievements-title,
.achievements-status,
.achievements-empty-title,
.achievements-empty-text {
  margin: 0;
}

.achievements-title {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.67rem;
}

.achievements-status,
.achievements-empty-text {
  color: rgba(173, 198, 245, 0.95);
  font-size: 0.52rem;
  line-height: 1.2;
}

.achievements-panel {
  display: grid;
  align-content: start;
  justify-items: stretch;
  gap: 0.38rem;
  min-height: 0;
  overflow-y: auto;
  padding: 0.46rem 0.46rem 0.72rem;
  text-align: left;
}

.achievements-empty-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid rgba(97, 245, 204, 0.45);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 214, 109, 0.28), transparent 48%),
    rgba(11, 19, 54, 0.9);
  color: #ffd66d;
  font-size: 1.35rem;
  box-shadow: inset 0 0 18px rgba(255, 214, 109, 0.08);
}

.achievements-empty-title {
  color: #f2f7ff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.achievements-list {
  display: grid;
  gap: 0.4rem;
  min-height: 0;
}

.achievement-card {
  display: grid;
  grid-template-columns: 2.95rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid rgba(128, 166, 248, 0.34);
  border-radius: 10px;
  background: rgba(6, 13, 37, 0.72);
}

.achievement-card.is-locked {
  opacity: 0.72;
}

.achievement-card.is-unlocked {
  border-color: rgba(97, 245, 204, 0.72);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 214, 109, 0.12), transparent 46%),
    rgba(8, 24, 50, 0.86);
}

.achievement-card-icon {
  display: grid;
  place-items: center;
  width: 2.95rem;
  height: 2.95rem;
  border: 1px solid rgba(128, 166, 248, 0.38);
  border-radius: 10px;
  background:
    linear-gradient(to right, rgba(121, 235, 255, 0.05) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(to bottom, rgba(121, 235, 255, 0.05) 1px, transparent 1px) 0 0 / 10px 10px,
    rgba(9, 16, 45, 0.9);
  color: #ffd66d;
  overflow: hidden;
}

.achievement-card-icon img {
  display: block;
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
}

.achievement-card-body {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.achievement-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
}

.achievement-card-name,
.achievement-card-description {
  margin: 0;
  min-width: 0;
}

.achievement-card-name {
  overflow: hidden;
  color: #f2f7ff;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-card-state {
  flex: 0 0 auto;
  color: rgba(157, 241, 220, 0.96);
  font-size: 0.54rem;
  font-weight: 800;
  text-transform: uppercase;
}

.achievement-card.is-locked .achievement-card-state {
  color: rgba(173, 198, 245, 0.82);
}

.achievement-card-description {
  color: rgba(173, 198, 245, 0.9);
  font-size: 0.62rem;
  line-height: 1.22;
}

.talents-content.class-selection-mode .talents-header {
  border-radius: 10px;
  border-color: rgba(114, 184, 255, 0.58);
  background:
    radial-gradient(circle at 50% -26%, rgba(131, 206, 255, 0.38), transparent 60%),
    linear-gradient(180deg, rgba(9, 29, 86, 0.95), rgba(7, 23, 70, 0.95));
  text-align: center;
  padding: 0.26rem 0.34rem 0.24rem;
  gap: 0.06rem;
}

.talents-content.class-selection-mode .talents-title {
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  color: #f2f8ff;
  text-shadow: 0 0 18px rgba(120, 205, 255, 0.42);
}

.talents-content.class-selection-mode .talents-status {
  font-size: 0.74rem;
  color: rgba(182, 219, 255, 0.96);
}

.talents-content.locked-mode {
  grid-template-rows: minmax(0, 1fr);
  gap: 0.2rem;
  padding: 6px 6px 2px;
}

.talents-content.locked-mode .talents-header {
  display: none !important;
}

.talents-content.locked-mode .talents-locked-panel {
  height: 100%;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 0.6rem;
}

.talents-content.locked-mode .talents-locked-title {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.talents-content.locked-mode .talents-locked-text {
  font-size: 0.58rem;
  max-width: 220px;
}

.talents-points-card {
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.42);
  background:
    linear-gradient(130deg, rgba(28, 76, 139, 0.88), rgba(26, 114, 118, 0.78)),
    rgba(9, 16, 45, 0.9);
  box-shadow: 0 8px 16px rgba(2, 7, 22, 0.25);
  padding: 0.16rem 0.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.08rem;
  align-items: center;
}

.talents-points-row {
  display: grid;
  justify-items: center;
  gap: 0.04rem;
}

.talents-points-label {
  margin: 0;
  color: rgba(216, 235, 255, 0.9);
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.talents-points-value {
  margin: 0;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
}

.talents-reset-btn {
  min-height: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(122, 162, 246, 0.46);
  background: rgba(16, 27, 69, 0.88);
  color: rgba(226, 238, 255, 0.98);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0.2rem;
}

.talents-class-card {
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.42);
  background: rgba(9, 16, 45, 0.9);
  padding: 0.14rem 0.18rem;
  display: grid;
  gap: 0.08rem;
}

.talents-content.class-selection-mode .talents-class-card {
  min-height: 0;
  height: 100%;
  border-radius: 14px;
  border-color: rgba(112, 183, 255, 0.66);
  background:
    radial-gradient(circle at 50% -18%, rgba(128, 206, 255, 0.22), transparent 54%),
    linear-gradient(180deg, rgba(12, 34, 96, 0.95), rgba(11, 29, 88, 0.95));
  box-shadow: 0 0 0 1px rgba(112, 183, 255, 0.26);
  padding: 0.14rem;
}

.talents-content.class-selection-mode .talents-class-head,
.talents-content.class-selection-mode .talents-class-help {
  display: none;
}

.talents-class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.12rem;
}

.talents-class-label,
.talents-class-value,
.talents-class-help {
  margin: 0;
}

.talents-class-label {
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(216, 235, 255, 0.9);
}

.talents-class-value {
  font-size: 0.5rem;
  font-weight: 700;
  color: #7af2c8;
}

.talents-class-points-row .talents-class-value {
  max-width: 100%;
  color: #78ffd8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talents-class-help {
  font-size: 0.42rem;
  color: rgba(173, 198, 245, 0.95);
}

.talents-class-choices {
  display: grid;
  gap: 0.08rem;
}

.talents-content.class-selection-mode .talents-class-choices {
  height: 100%;
}

.talents-class-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.talents-content.class-selection-mode .talents-class-carousel {
  height: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}

.talents-class-nav {
  min-height: 0;
  height: 100%;
  border-radius: 6px;
  border: 1px solid rgba(122, 162, 246, 0.46);
  background: rgba(16, 27, 69, 0.88);
  color: rgba(226, 238, 255, 0.98);
  padding: 0;
  font-size: 0.58rem;
  line-height: 1;
}

.talents-content.class-selection-mode .talents-class-nav {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(133, 197, 255, 0.72);
  background:
    radial-gradient(circle at 32% 28%, rgba(142, 219, 255, 0.95), rgba(41, 100, 175, 0.95));
  color: #ebf8ff;
  font-size: 0.62rem;
  text-shadow: 0 0 8px rgba(93, 235, 248, 0.5);
  justify-self: center;
  align-self: center;
  padding: 0;
}

.talents-class-nav:disabled {
  opacity: 0.45;
}

.talents-class-nav:disabled:hover {
  transform: none;
}

.talents-class-choice {
  border-radius: 7px;
  border: 1px solid rgba(149, 182, 255, 0.44);
  background: linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(10, 18, 50, 0.92));
  color: #eaf3ff;
  padding: 0.1rem;
  display: grid;
  align-content: start;
  gap: 0.04rem;
  text-align: left;
}

.talents-content.class-selection-mode .talents-class-choice {
  min-height: 0;
  height: 100%;
  border-radius: 13px;
  border: none;
  background:
    radial-gradient(circle at 50% -12%, rgba(131, 209, 255, 0.16), transparent 56%),
    linear-gradient(180deg, rgba(15, 41, 111, 0.93), rgba(9, 27, 78, 0.93));
  padding: 0.22rem 0.16rem 0.18rem;
  gap: 0.1rem;
  text-align: center;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
  box-shadow: 0 6px 18px rgba(8, 14, 45, 0.42);
}

.talents-class-image-wrap {
  width: 100%;
  height: 104px;
  border-radius: 6px;
  border: 1px solid rgba(122, 162, 246, 0.34);
  background: rgba(6, 10, 31, 0.9);
  padding: 0.05rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.talents-content.class-selection-mode .talents-class-image-wrap {
  height: 188px;
  border: none;
  background: transparent;
  padding: 0.1rem;
}

.talents-class-image {
  width: 96px;
  height: 96px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.talents-content.class-selection-mode .talents-class-image {
  width: 158px;
  height: 158px;
  animation: classFloat 2.7s ease-in-out infinite;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.36));
}

.talents-class-choice-index {
  margin: 0;
  font-size: 0.34rem;
  color: rgba(163, 188, 238, 0.92);
  text-align: center;
}

.talents-content.class-selection-mode .talents-class-choice-index {
  display: none;
}

.talents-class-choice-title,
.talents-class-choice-role,
.talents-class-choice-desc {
  margin: 0;
}

.talents-class-choice-title {
  font-size: 0.42rem;
  font-weight: 700;
}

.talents-content.class-selection-mode .talents-class-choice-title {
  font-size: 1.28rem;
  color: var(--class-color, #f2f7ff);
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(122, 199, 255, 0.42);
}

.talents-class-choice-role {
  font-size: 0.39rem;
  color: #f8dfa0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.talents-content.class-selection-mode .talents-class-choice-role {
  font-size: 0.82rem;
  color: #ffd97a;
  letter-spacing: 0.1em;
}

.talents-class-choice-desc {
  font-size: 0.34rem;
  color: rgba(173, 198, 245, 0.9);
  line-height: 1.1;
}

.talents-content.class-selection-mode .talents-class-choice-desc {
  font-size: 0.72rem;
  color: rgba(197, 220, 255, 0.96);
  line-height: 1.3;
  align-self: start;
}

.talents-class-choice-meta {
  display: grid;
  justify-items: center;
}

.talents-class-choice-pill {
  margin: 0;
  border-radius: 999px;
  border: 1px solid var(--class-color, rgba(121, 181, 255, 0.56));
  background: rgba(8, 20, 58, 0.95);
  color: #ebf6ff;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.1rem 0.44rem;
}

.talents-class-choice-weapons {
  display: grid;
  gap: 0.08rem;
  align-content: start;
}

.talents-class-choice-weapons-title {
  margin: 0;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(210, 231, 255, 0.96);
}

.talents-class-choice-weapons-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.12rem;
}

.talents-class-weapon-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 187, 255, 0.48);
  background: rgba(8, 24, 66, 0.86);
  box-shadow: inset 0 0 0 1px rgba(131, 201, 255, 0.14);
  padding: 0.08rem 0.2rem 0.08rem 0.14rem;
}

.talents-class-weapon-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(136, 207, 255, 0.45));
}

.talents-class-weapon-label {
  font-size: 0.6rem;
  line-height: 1.15;
  color: rgba(224, 241, 255, 0.97);
  white-space: nowrap;
}

.talents-class-choice-actions {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.12rem;
}

@keyframes classFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.talents-class-choice-select {
  min-height: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(97, 245, 204, 0.65);
  background: linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #f6fcff;
  font-size: 0.38rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0 0.2rem;
  text-align: center;
}

.talents-content.class-selection-mode .talents-class-choice-select {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 40px;
  height: 40px;
  border-radius: 10px;
  border-color: color-mix(in srgb, var(--class-color, #7ac7ff) 70%, #d8f4ff);
  background: linear-gradient(
    132deg,
    color-mix(in srgb, var(--class-color, #7ac7ff) 58%, #3e87ff),
    color-mix(in srgb, var(--class-color, #7ac7ff) 72%, #4ce5cf)
  );
  color: #f4fcff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0 0.45rem;
  box-shadow:
    0 0 0 1px rgba(221, 245, 255, 0.2),
    0 0 20px color-mix(in srgb, var(--class-color, #7ac7ff) 52%, transparent);
  animation: classSelectGlow 1.8s ease-in-out infinite;
}

.talents-content.class-selection-mode .talents-class-choice-actions .talents-class-nav {
  width: 40px;
  height: 40px;
  min-height: 40px;
  justify-self: center;
  align-self: center;
}

.talents-content.class-selection-mode .talents-class-choice-select::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 18%, rgba(240, 252, 255, 0.46) 50%, transparent 82%);
  transform: translateX(-120%);
  animation: classSelectSheen 2.6s ease-in-out infinite;
}

.talents-class-choice-select:disabled {
  opacity: 0.45;
  border-color: rgba(122, 162, 246, 0.42);
  background: rgba(16, 27, 69, 0.8);
}

@keyframes classSelectGlow {
  0%,
  100% {
    transform: translateY(0);
    box-shadow:
      0 0 0 1px rgba(221, 245, 255, 0.16),
      0 0 14px color-mix(in srgb, var(--class-color, #7ac7ff) 44%, transparent);
  }
  50% {
    transform: translateY(-1px);
    box-shadow:
      0 0 0 1px rgba(221, 245, 255, 0.28),
      0 0 24px color-mix(in srgb, var(--class-color, #7ac7ff) 64%, transparent);
  }
}

@keyframes classSelectSheen {
  0%,
  35% {
    transform: translateX(-120%);
  }
  65%,
  100% {
    transform: translateX(130%);
  }
}

.talents-class-choice-select:disabled:hover {
  transform: none;
}

.talents-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 0.3rem;
  background: rgba(2, 8, 24, 0.72);
  backdrop-filter: blur(3px);
}

.talents-confirm-modal[hidden] {
  display: none;
}

.talents-confirm-card {
  width: min(100%, 320px);
  border-radius: 14px;
  border: 1px solid rgba(128, 187, 255, 0.66);
  background:
    radial-gradient(circle at 50% -8%, rgba(129, 209, 255, 0.22), transparent 58%),
    linear-gradient(180deg, rgba(14, 39, 108, 0.96), rgba(10, 25, 75, 0.96));
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.52),
    inset 0 0 0 1px rgba(139, 205, 255, 0.18);
  padding: 0.26rem;
  display: grid;
  gap: 0.14rem;
  text-align: center;
}

.talents-confirm-title {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #f1f8ff;
}

.talents-confirm-text {
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.34;
  color: rgba(212, 232, 255, 0.96);
}

.talents-confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem;
}

.talents-confirm-btn {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(132, 193, 255, 0.6);
  color: #eff8ff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.2rem;
}

.talents-confirm-btn.secondary {
  background: rgba(12, 27, 77, 0.9);
}

.talents-confirm-btn.primary {
  border-color: var(--class-color, rgba(132, 193, 255, 0.7));
  background: linear-gradient(
    132deg,
    color-mix(in srgb, var(--class-color, #7ac7ff) 58%, #3e87ff),
    color-mix(in srgb, var(--class-color, #7ac7ff) 72%, #4ce5cf)
  );
  box-shadow: 0 0 18px color-mix(in srgb, var(--class-color, #7ac7ff) 52%, transparent);
}

.talent-tree-shell {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(122, 162, 246, 0.34);
  background: rgba(10, 16, 44, 0.84);
  min-height: 0;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.talent-tree-shell.is-panning {
  cursor: grabbing;
}

.talent-tree {
  position: relative;
  display: grid;
  width: max(100%, var(--talent-board-width, 366px));
  height: max(100%, var(--talent-board-height, 366px));
  grid-template-columns: repeat(var(--talent-columns, 4), minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 7px;
  border-radius: 7px;
  background:
    linear-gradient(rgba(120, 224, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 224, 255, 0.08) 1px, transparent 1px),
    rgba(10, 18, 28, 0.88);
  background-size: 42px 42px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.talent-node {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(72px, 76%);
  aspect-ratio: 1;
  min-height: 0;
}

.talent-node-btn {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  border: 1px solid rgba(149, 182, 255, 0.44);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.9), rgba(10, 18, 50, 0.92));
  padding: 0.12rem;
  display: grid;
  align-content: center;
  gap: 0.06rem;
  text-align: center;
  color: #eaf4ff;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.talent-tree-shell.is-panning .talent-node-btn {
  cursor: grabbing;
}

.talent-node.active .talent-node-btn {
  border-color: rgba(106, 242, 200, 0.9);
  box-shadow: 0 0 0 1px rgba(106, 242, 200, 0.35);
}

.talent-node.selected .talent-node-btn {
  border-color: rgba(123, 213, 255, 0.95);
}

.talent-node.locked .talent-node-btn {
  opacity: 0.58;
}

.talent-node-name {
  margin: 0;
  font-size: 0.72rem;
  color: #66f6ff;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 9px rgba(74, 229, 255, 0.36);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-node-rank {
  margin: 0;
  font-size: 0.62rem;
  color: #f8dfa0;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-node-req {
  margin: 0;
  font-size: 0.52rem;
  color: rgba(173, 198, 245, 0.9);
  line-height: 1.12;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.talent-node.locked .talent-node-name {
  color: rgba(186, 214, 255, 0.82);
  text-shadow: none;
}

.talent-drop-slot {
  position: relative;
  z-index: 0;
  aspect-ratio: 1;
  min-height: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.talent-link {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.talent-link::before {
  content: "";
  position: absolute;
  background: rgba(255, 104, 96, 0.84);
  box-shadow: 0 0 11px rgba(255, 104, 96, 0.38);
}

.talent-link.is-met::before {
  background: rgba(120, 224, 255, 0.86);
  box-shadow: 0 0 12px rgba(120, 224, 255, 0.42);
}

.talent-link.is-horizontal::before {
  top: 50%;
  left: calc((100% / (var(--link-span) * 2)) + (var(--talent-node-size, 65px) / 2));
  width: max(0px, calc((100% * (var(--link-span) - 1) / var(--link-span)) - var(--talent-node-size, 65px)));
  height: 3px;
  transform: translateY(-50%);
}

.talent-link.is-vertical::before {
  left: 50%;
  top: calc((100% / (var(--link-span) * 2)) + (var(--talent-node-size, 65px) / 2));
  width: 3px;
  height: max(0px, calc((100% * (var(--link-span) - 1) / var(--link-span)) - var(--talent-node-size, 65px)));
  transform: translateX(-50%);
}

.talent-link-rank {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  min-width: 24px;
  min-height: 18px;
  border: 1px solid rgba(255, 104, 96, 0.88);
  border-radius: 6px;
  background: rgba(8, 14, 24, 0.94);
  color: #ffd4cf;
  display: grid;
  place-items: center;
  font-size: 0.56rem;
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.talent-link.is-met .talent-link-rank {
  border-color: rgba(120, 224, 255, 0.9);
  color: #d9f8ff;
}

.talent-inspect {
  position: absolute;
  left: 0.34rem;
  right: 0.34rem;
  bottom: 0.34rem;
  z-index: 7;
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.44);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.92), rgba(10, 18, 50, 0.95));
  box-shadow: 0 12px 22px rgba(2, 7, 22, 0.38);
  padding: 0.22rem 0.28rem;
  display: grid;
  gap: 0.08rem;
  max-height: min(116px, calc(100% - 0.8rem));
  overflow-y: auto;
}

.talent-inspect-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
}

.talent-inspect-rank {
  margin: 0;
  font-size: 0.64rem;
  color: #f8dfa0;
}

.talent-inspect-desc {
  margin: 0;
  color: rgba(181, 201, 245, 0.95);
  font-size: 0.62rem;
  line-height: 1.28;
  white-space: pre-line;
}

.talents-locked-panel {
  border-radius: 8px;
  border: 1px solid rgba(124, 165, 248, 0.44);
  background:
    linear-gradient(180deg, rgba(17, 29, 70, 0.92), rgba(10, 18, 50, 0.95));
  padding: 0.22rem 0.24rem;
  display: grid;
  gap: 0.08rem;
}

.talents-locked-title,
.talents-locked-text {
  margin: 0;
}

.talents-locked-title {
  font-size: 0.5rem;
  font-weight: 700;
  color: #f3f8ff;
}

.talents-locked-text {
  font-size: 0.43rem;
  color: rgba(181, 201, 245, 0.95);
  line-height: 1.2;
}

.compact-color {
  border: 1px solid rgba(150, 180, 255, 0.28);
  border-radius: 12px;
  background: rgba(8, 11, 30, 0.46);
  padding: 0.42rem 0.52rem;
  display: grid;
  gap: 0.26rem;
}

.compact-color[hidden] {
  display: none !important;
}

.active-color-label {
  margin: 0;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.8rem;
}

.color-nav {
  grid-template-columns: 36px 1fr 36px;
}

.current-color-swatch {
  min-height: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid rgba(220, 232, 255, 0.36);
  background: #6a4b2d;
  width: 100%;
  padding: 0;
}

.current-color-swatch:hover {
  transform: none;
  filter: brightness(1.05);
}

@media (max-width: 940px) {
  .layout {
    grid-template-columns: 1fr;
    max-width: 620px;
  }
}

@media (max-width: 460px) {
  .layout {
    gap: 0.8rem;
    padding: 0;
  }

  .preview-card,
  .controls-card {
    border-radius: 14px;
  }

  .preview-card {
    padding: 0.75rem;
  }

  .avatar-stage {
    max-width: 206px;
  }

  .controls-card {
    padding: 0.85rem;
  }

  .control-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  label {
    margin-top: 0.3rem;
    font-size: 0.9rem;
  }

  select,
  button {
    min-height: 42px;
  }
}

.panel-entry-root {
  width: 100%;
  height: 100%;
  max-width: 318px;
  padding: 0;
  margin: 0 auto;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8, 14, 36, 0.28), rgba(8, 14, 36, 0.55)),
    url("../Assests/UI/bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.panel-entry-root .editor-card {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  background: transparent;
  padding: 7px;
  gap: 0.45rem;
}

.panel-entry-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 100%;
  height: 100%;
}

.panel-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 0.35rem;
}

.panel-logo-wrap[hidden] {
  display: none !important;
}

.panel-logo-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  animation: panel-logo-float 6.8s ease-in-out infinite;
  transform: translateY(0);
  will-change: transform;
}

@keyframes panel-logo-float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

.panel-status {
  margin: 0;
  min-height: 1.05rem;
  text-align: center;
  color: rgba(168, 223, 255, 0.96);
  font-size: 0.66rem;
}

.panel-status[data-error="1"] {
  color: #ff9aa6;
}

.panel-view {
  min-height: 0;
}

.panel-view[hidden] {
  display: none !important;
}

.panel-state-card {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.75rem 0.72rem;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.38rem;
  text-align: center;
}

#panelCreateState.panel-state-card {
  padding-top: clamp(1.4rem, 12vh, 5.4rem);
}

.panel-state-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.panel-state-subtitle {
  margin: 0;
  font-size: 0.67rem;
  color: rgba(181, 201, 245, 0.95);
  line-height: 1.35;
}

.panel-primary-btn {
  margin-top: 0.3rem;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(97, 245, 204, 0.92);
  background: linear-gradient(130deg, rgba(36, 127, 214, 0.95), rgba(42, 180, 155, 0.95));
  color: #f6fcff;
  font-size: 0.73rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.36rem 0.8rem;
}

/* Live extension pages: fill popout viewport and keep outer shell square. */
.loadout-live-body {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: none;
  font-size: clamp(16px, calc(12px + 1.1vw), 22px);
}

.loadout-live-body .layout.single-editor {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 100%;
  padding: 0;
  margin: 0;
}

.loadout-live-body .layout.single-editor.loadout-live-root,
.loadout-live-body .layout.single-editor.fight-live-root,
.loadout-live-body .layout.single-editor.inventory-live-root,
.loadout-live-body .layout.single-editor.crafting-live-root,
.loadout-live-body .layout.single-editor.talents-live-root,
.loadout-live-body .layout.single-editor.achievements-live-root,
.loadout-live-body .layout.single-editor.leaderboard-live-root,
.loadout-live-body .layout.single-editor.panel-entry-root,
.loadout-live-body .layout.panel-mode.single-editor.loadout-live-root,
.loadout-live-body .layout.panel-mode.single-editor.fight-live-root,
.loadout-live-body .layout.panel-mode.single-editor.inventory-live-root,
.loadout-live-body .layout.panel-mode.single-editor.crafting-live-root,
.loadout-live-body .layout.panel-mode.single-editor.talents-live-root,
.loadout-live-body .layout.panel-mode.single-editor.achievements-live-root,
.loadout-live-body .layout.panel-mode.single-editor.leaderboard-live-root {
  max-width: none;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

.loadout-live-body .layout.single-editor > .editor-card {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  background: transparent !important;
}

.loadout-live-body .avatar-stage.loadout-stage,
.loadout-live-body .avatar-stage.fight-stage,
.loadout-live-body .avatar-stage.inventory-stage,
.loadout-live-body .avatar-stage.crafting-stage,
.loadout-live-body .avatar-stage.talents-stage,
.loadout-live-body .avatar-stage.achievements-stage,
.loadout-live-body .avatar-stage.leaderboard-stage {
  width: 100%;
  max-width: none;
  height: 100%;
  overflow-x: hidden;
  border-radius: 0;
  border: 0 !important;
  box-shadow: none !important;
}

.crafting-tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.16rem;
  padding: 0.12rem;
  border-radius: 10px;
  border: 1px solid rgba(110, 156, 244, 0.42);
  background: rgba(7, 14, 42, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.crafting-tab {
  min-width: 0;
  min-height: 22px;
  border-radius: 7px;
  border: 1px solid rgba(118, 156, 238, 0.34);
  background: rgba(13, 24, 62, 0.78);
  color: rgba(191, 210, 247, 0.88);
  font: inherit;
  font-size: 0.45rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  padding: 0 0.12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crafting-tab.active {
  border-color: rgba(79, 234, 255, 0.92);
  background:
    radial-gradient(circle at 50% 0%, rgba(111, 245, 255, 0.32), transparent 62%),
    linear-gradient(180deg, rgba(24, 64, 111, 0.98), rgba(14, 30, 77, 0.98));
  color: #efffff;
  box-shadow:
    0 0 12px rgba(37, 229, 255, 0.28),
    inset 0 0 0 1px rgba(224, 255, 255, 0.14);
}

.crafting-tab-panel-wrap {
  grid-template-rows: auto minmax(0, 1fr);
}

.crafting-tab-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.22rem;
}

.crafting-tab-panel[hidden] {
  display: none !important;
}

.dust-upgrade-flow,
.disenchant-preview,
.random-craft-preview {
  min-height: 136px;
  border-radius: 12px;
  border: 1px solid rgba(105, 160, 245, 0.34);
  background:
    radial-gradient(circle at 50% 34%, rgba(71, 218, 255, 0.12), transparent 60%),
    rgba(7, 14, 40, 0.7);
}

.dust-upgrade-flow {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  gap: 0.16rem;
  align-items: center;
  padding: 0.28rem;
}

.dust-upgrade-node {
  min-width: 0;
  min-height: 108px;
  border-radius: 10px;
  border: 1px solid rgba(126, 170, 249, 0.36);
  background: rgba(12, 23, 59, 0.86);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.14rem;
}

.dust-node-label {
  color: rgba(183, 207, 246, 0.9);
  font-size: 0.44rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dust-node-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dust-upgrade-node strong {
  color: #ffffff;
  font-size: 0.72rem;
}

.dust-upgrade-bridge {
  display: grid;
  place-items: center;
  gap: 0.16rem;
  color: #78f6ff;
  font-weight: 800;
  font-size: 0.68rem;
}

.dust-upgrade-arrow {
  font-size: 1rem;
  line-height: 1;
}

.disenchant-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  align-items: center;
  gap: 0.28rem;
  padding: 0.32rem;
}

.disenchant-item-slot {
  min-height: 112px;
  border-radius: 12px;
  border: 1px solid rgba(255, 110, 150, 0.42);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 92, 154, 0.2), transparent 58%),
    rgba(12, 19, 50, 0.9);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
}

.disenchant-item-glow {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid rgba(255, 144, 174, 0.75);
  background:
    linear-gradient(135deg, transparent 42%, rgba(255, 144, 174, 0.72) 44%, transparent 56%),
    linear-gradient(45deg, transparent 42%, rgba(255, 144, 174, 0.72) 44%, transparent 56%),
    rgba(20, 26, 55, 0.94);
  box-shadow: 0 0 18px rgba(255, 93, 147, 0.35);
}

.disenchant-item-slot span:last-child,
.random-craft-copy span {
  color: rgba(232, 242, 255, 0.96);
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.disenchant-result-stack {
  display: grid;
  gap: 0.08rem;
}

.disenchant-result-stack span {
  color: rgba(183, 207, 246, 0.9);
  font-size: 0.44rem;
  font-weight: 800;
  text-transform: uppercase;
}

.disenchant-result-stack strong {
  color: #ffffff;
  font-size: 0.86rem;
}

.random-craft-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 0.32rem;
  padding: 0.34rem;
}

.random-craft-mystery {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  border: 2px solid rgba(81, 236, 255, 0.78);
  background:
    radial-gradient(circle at 50% 42%, rgba(81, 236, 255, 0.28), transparent 62%),
    rgba(9, 19, 55, 0.94);
  color: #a9fbff;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(57, 219, 255, 0.32);
}

.random-craft-copy {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}

.random-craft-copy strong {
  color: #ffffff;
  font-size: 0.8rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .dust-summary-row {
  display: none;
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-panel-wrap {
  grid-template-rows: minmax(0, 1fr);
  padding: 0.22rem;
}

.crafting-live-root[data-crafting-tab="random-craft"] .crafting-tab-panel.active {
  grid-template-rows: auto 132px auto auto 42px;
  gap: 0.18rem;
  overflow-y: auto;
  padding-right: 0.08rem;
}

.random-craft-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.24rem;
  align-items: center;
}

.random-craft-title-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.22rem;
  align-items: center;
}

.random-craft-title-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(197, 107, 255, 0.82);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #c56bff) 28%, transparent), transparent 62%),
    rgba(13, 19, 49, 0.94);
  color: color-mix(in srgb, var(--active-rarity-color, #c56bff) 84%, #ffffff);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(197, 107, 255, 0.32);
}

.random-craft-balance {
  min-height: 30px;
  min-width: 82px;
  border-radius: 8px;
  border: 1px solid rgba(97, 151, 244, 0.44);
  background: rgba(8, 16, 45, 0.92);
  display: inline-grid;
  grid-template-columns: 20px auto;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  padding: 0 0.32rem;
  color: #dffbff;
  font-size: 0.72rem;
}

.random-craft-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 0.3rem;
  overflow: hidden;
}

.random-craft-preview::before {
  content: "";
  position: absolute;
  inset: 8px 24px 18px;
  border-radius: 50%;
  border: 1px solid rgba(197, 107, 255, 0.42);
  background: radial-gradient(circle, rgba(197, 107, 255, 0.32), transparent 64%);
  transform: perspective(180px) rotateX(68deg);
}

.random-craft-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--active-rarity-color, #c56bff) 78%, #ffffff) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 42%, color-mix(in srgb, var(--active-rarity-color, #c56bff) 70%, #ffffff) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 18%, rgba(111, 245, 255, 0.6) 0 1px, transparent 2px);
  opacity: 0.72;
  pointer-events: none;
}

.random-craft-mystery {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--active-rarity-color, #c56bff) 88%, #ffffff);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #c56bff) 34%, transparent), transparent 60%),
    rgba(9, 14, 36, 0.96);
  color: color-mix(in srgb, var(--active-rarity-color, #c56bff) 84%, #ffffff);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active-rarity-color, #c56bff) 58%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--active-rarity-color, #c56bff) 22%, transparent);
}

.random-craft-mystery span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 2.4rem;
  line-height: 1;
}

.random-craft-forge-effects {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  pointer-events: none;
}

.random-craft-preview.is-forging .random-craft-forge-effects {
  display: block;
}

.random-craft-preview.is-forging .random-craft-mystery {
  animation: randomCraftBoxPulse 0.72s ease-in-out infinite alternate;
}

.random-forge-ring {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--active-rarity-color, #c56bff) 88%, #ffffff);
  box-shadow:
    0 0 20px color-mix(in srgb, var(--active-rarity-color, #c56bff) 62%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--active-rarity-color, #c56bff) 42%, transparent);
  transform: translate(-50%, -50%) scale(0.32);
  opacity: 0;
  animation: randomForgeRing 1.05s ease-out infinite;
}

.random-forge-ring.delay {
  animation-delay: 0.34s;
}

.random-forge-spark {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--active-rarity-color, #c56bff) 86%, #ffffff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--active-rarity-color, #c56bff) 72%, transparent);
  animation: randomForgeSpark 0.78s ease-out infinite;
}

.random-forge-spark.s1 {
  --spark-x: -72px;
  --spark-y: -34px;
}

.random-forge-spark.s2 {
  --spark-x: 76px;
  --spark-y: -40px;
  animation-delay: 0.14s;
}

.random-forge-spark.s3 {
  --spark-x: -64px;
  --spark-y: 42px;
  animation-delay: 0.25s;
}

.random-forge-spark.s4 {
  --spark-x: 70px;
  --spark-y: 38px;
  animation-delay: 0.36s;
}

.random-craft-result-slot {
  position: relative;
  z-index: 5;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 2px solid color-mix(in srgb, var(--rarity-color, var(--active-rarity-color, #c56bff)) 88%, #ffffff);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--rarity-color, var(--active-rarity-color, #c56bff)) 34%, transparent), transparent 62%),
    rgba(9, 14, 36, 0.96);
  color: #ffffff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.04rem;
  padding: 0.12rem;
  font: inherit;
  box-shadow:
    0 0 18px color-mix(in srgb, var(--rarity-color, var(--active-rarity-color, #c56bff)) 58%, transparent),
    inset 0 0 18px color-mix(in srgb, var(--rarity-color, var(--active-rarity-color, #c56bff)) 22%, transparent);
  cursor: pointer;
  animation: randomCraftResultPopRaised 0.34s cubic-bezier(0.18, 1.35, 0.32, 1) both;
}

.random-craft-result-slot[hidden] {
  display: none;
}

.random-craft-result-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
}

.random-craft-result-name {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.36rem;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.craft-reveal.is-dialog .craft-reveal-show {
  display: none;
}

.craft-reveal.is-dialog > .craft-reveal-close {
  display: none;
}

.random-craft-reward-label {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 10px;
  z-index: 2;
  min-height: 20px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--active-rarity-color, #c56bff) 58%, transparent);
  background: rgba(18, 18, 59, 0.92);
  color: color-mix(in srgb, var(--active-rarity-color, #c56bff) 84%, #ffffff);
  display: grid;
  place-items: center;
  font-size: 0.52rem;
  font-weight: 800;
  text-transform: uppercase;
}

.random-rarity-section {
  display: grid;
  gap: 0.12rem;
}

.random-section-label,
.random-outcomes-head span,
.random-craft-cost-row span {
  color: rgba(104, 206, 255, 0.96);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.random-section-label {
  text-align: center;
}

.random-rarity-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.08rem;
}

.random-rarity-card {
  min-width: 0;
  min-height: 66px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #7fabff) 76%, rgba(127, 171, 255, 0.28));
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--rarity-color, #7fabff) 22%, transparent), transparent 56%),
    rgba(8, 17, 48, 0.94);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.08rem;
  padding: 0.1rem 0.06rem;
  color: rgba(235, 244, 255, 0.96);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.random-rarity-card.active {
  box-shadow:
    0 0 14px color-mix(in srgb, var(--rarity-color, #7fabff) 42%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.random-rarity-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--rarity-color, #ffffff) 90%, #ffffff);
  font-size: 0.32rem;
  font-weight: 800;
  text-transform: uppercase;
}

.random-rarity-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  image-rendering: pixelated;
}

.random-rarity-cost {
  color: #ffffff;
  font-size: 0.5rem;
  font-weight: 800;
}

.random-craft-cost-row {
  border-radius: 9px;
  border: 1px solid rgba(104, 156, 242, 0.36);
  background: rgba(8, 16, 48, 0.82);
}

.random-craft-cost-row {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.28rem;
  padding: 0.24rem 0.34rem;
}

.random-craft-cost-row div {
  display: grid;
  gap: 0.04rem;
}

.random-craft-cost-row strong {
  color: rgba(234, 244, 255, 0.98);
  font-size: 0.58rem;
  text-transform: uppercase;
}

.random-craft-cost {
  color: color-mix(in srgb, var(--active-rarity-color, #c56bff) 84%, #ffffff) !important;
  font-size: 0.82rem !important;
}

.random-craft-main-btn {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  border-color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 88%, #ffffff);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 54%, #ffffff), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 88%, #ffffff), color-mix(in srgb, var(--active-rarity-color, #50f5ff) 74%, #061335));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active-rarity-color, #50f5ff) 48%, transparent),
    inset 0 0 0 1px rgba(231, 255, 255, 0.18);
  font-size: 0.7rem;
}

.random-craft-main-cost {
  min-height: 26px;
  border-radius: 7px;
  background: rgba(10, 24, 68, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0 0.34rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-summary-row {
  display: none;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-panel-wrap {
  grid-template-rows: minmax(0, 1fr);
  padding: 0.22rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .crafting-tab-panel.active {
  grid-template-rows: auto 132px auto 42px;
  gap: 0.18rem;
  overflow-y: auto;
  padding-right: 0.08rem;
}

.dust-upgrade-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.24rem;
  align-items: center;
}

.dust-upgrade-title-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.26rem;
  align-items: center;
}

.dust-upgrade-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--active-rarity-color, #50f5ff) 82%, #ffffff);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 28%, transparent), transparent 62%),
    rgba(13, 19, 49, 0.94);
  display: grid;
  place-items: center;
  box-shadow: 0 0 12px color-mix(in srgb, var(--active-rarity-color, #50f5ff) 32%, transparent);
}

.dust-upgrade-title-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dust-upgrade-head .crafting-panel-title {
  font-size: 0.78rem;
}

.dust-upgrade-head .crafting-panel-subtitle {
  font-size: 0.58rem;
  line-height: 1.2;
}

.dust-upgrade-balance {
  min-height: 32px;
  min-width: 76px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--active-rarity-color, #50f5ff) 48%, rgba(97, 151, 244, 0.42));
  background: rgba(8, 16, 45, 0.92);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  padding: 0 0.32rem;
}

.dust-upgrade-balance span {
  color: rgba(181, 219, 255, 0.92);
  font-size: 0.48rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dust-upgrade-balance strong {
  color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 82%, #ffffff);
  font-size: 0.76rem;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-flow {
  position: relative;
  min-height: 132px;
  grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr);
  border-color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 38%, rgba(105, 160, 245, 0.34));
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 16%, transparent), transparent 62%),
    rgba(7, 14, 40, 0.7);
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-flow::before {
  content: "";
  position: absolute;
  inset: 10px 34px 14px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--active-rarity-color, #50f5ff) 42%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 22%, transparent), transparent 64%);
  transform: perspective(180px) rotateX(68deg);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node,
.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-bridge {
  position: relative;
  z-index: 1;
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node {
  min-height: 102px;
  border-color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 54%, rgba(126, 170, 249, 0.36));
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 18%, transparent), transparent 62%),
    rgba(12, 23, 59, 0.88);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-node.result {
  border-color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 82%, #ffffff);
  box-shadow: 0 0 16px color-mix(in srgb, var(--active-rarity-color, #50f5ff) 28%, transparent);
}

.crafting-live-root[data-crafting-tab="dust-upgrade"] .dust-upgrade-bridge {
  color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 82%, #ffffff);
}

.dust-upgrade-rarity-section {
  display: grid;
  gap: 0.12rem;
}

.dust-upgrade-rarity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.14rem;
}

.dust-upgrade-rarity-card {
  min-width: 0;
  min-height: 64px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #7fabff) 76%, rgba(127, 171, 255, 0.28));
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rarity-color, #7fabff) 24%, transparent), transparent 58%),
    rgba(8, 17, 48, 0.94);
  color: rgba(235, 244, 255, 0.96);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.07rem;
  padding: 0.12rem 0.08rem;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dust-upgrade-rarity-card.active {
  box-shadow:
    0 0 14px color-mix(in srgb, var(--rarity-color, #7fabff) 42%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.dust-upgrade-rarity-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--rarity-color, #ffffff) 90%, #ffffff);
  font-size: 0.46rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dust-upgrade-rarity-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
}

.dust-upgrade-rarity-count {
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
}

.dust-upgrade-rarity-cost {
  color: rgba(196, 219, 255, 0.9);
  font-size: 0.48rem;
  font-weight: 800;
}

.dust-upgrade-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.18rem;
}

.dust-upgrade-action-row .dust-upgrade-main-btn {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.08rem;
  padding-inline: 0.16rem;
}

.dust-upgrade-main-btn {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  border-color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 88%, #ffffff);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 54%, #ffffff), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 88%, #ffffff), color-mix(in srgb, var(--active-rarity-color, #50f5ff) 74%, #061335));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active-rarity-color, #50f5ff) 48%, transparent),
    inset 0 0 0 1px rgba(231, 255, 255, 0.18);
  font-size: 0.7rem;
}

.dust-upgrade-single-btn {
  border-color: color-mix(in srgb, var(--active-rarity-color, #50f5ff) 64%, rgba(255, 255, 255, 0.72));
  background:
    radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 34%, #ffffff), transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--active-rarity-color, #50f5ff) 56%, #16366c), rgba(12, 29, 78, 0.96));
}

.dust-upgrade-main-cost {
  min-height: 26px;
  max-width: 100%;
  border-radius: 7px;
  background: rgba(10, 24, 68, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0 0.28rem;
  font-size: 0.58rem;
  overflow: hidden;
  white-space: nowrap;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .dust-summary-row {
  display: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-panel-wrap {
  grid-template-rows: minmax(0, 1fr);
  padding: 0.22rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .crafting-tab-panel.active {
  grid-template-rows: auto 132px auto 42px;
  gap: 0.18rem;
  overflow-y: auto;
  padding-right: 0.08rem;
}

.disenchant-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.24rem;
  align-items: center;
}

.disenchant-title-wrap {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.26rem;
  align-items: center;
}

.disenchant-title-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 93, 147, 0.82);
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 28%, transparent), transparent 62%),
    rgba(13, 19, 49, 0.94);
  color: color-mix(in srgb, var(--active-rarity-color, #ff5d93) 84%, #ffffff);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 0 12px color-mix(in srgb, var(--active-rarity-color, #ff5d93) 32%, transparent);
}

.disenchant-count-pill {
  min-height: 30px;
  min-width: 76px;
  border-radius: 8px;
  border: 1px solid rgba(255, 93, 147, 0.42);
  background: rgba(8, 16, 45, 0.92);
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  padding: 0 0.32rem;
}

.disenchant-count-pill span,
.disenchant-section-label {
  color: rgba(255, 170, 203, 0.96);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.disenchant-count-pill strong {
  color: #ffffff;
  font-size: 0.72rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  align-items: center;
  gap: 0.28rem;
  padding: 0.32rem;
  overflow: hidden;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview::before {
  content: "";
  position: absolute;
  inset: 9px 40px 16px 14px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--active-rarity-color, #ff5d93) 42%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 20%, transparent), transparent 64%);
  transform: perspective(180px) rotateX(68deg);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 26%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 72%, #ffffff) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 18%, rgba(255, 255, 255, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 46%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 62%, #ffffff) 0 1px, transparent 2px);
  opacity: 0.58;
  pointer-events: none;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-slot {
  position: relative;
  z-index: 1;
  min-height: 96px;
  border-color: color-mix(in srgb, var(--active-rarity-color, #ff5d93) 72%, rgba(255, 93, 147, 0.36));
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 22%, transparent), transparent 58%),
    rgba(10, 15, 42, 0.94);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-glow {
  width: 54px;
  height: 54px;
  border-color: color-mix(in srgb, var(--active-rarity-color, #ff5d93) 86%, #ffffff);
  background:
    linear-gradient(135deg, transparent 42%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 76%, #ffffff) 44%, transparent 56%),
    linear-gradient(45deg, transparent 42%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 76%, #ffffff) 44%, transparent 56%),
    rgba(17, 20, 48, 0.98);
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active-rarity-color, #ff5d93) 48%, transparent),
    inset 0 0 14px color-mix(in srgb, var(--active-rarity-color, #ff5d93) 16%, transparent);
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack {
  position: relative;
  z-index: 1;
  border-radius: 9px;
  border: 1px solid rgba(255, 118, 164, 0.26);
  background: rgba(7, 13, 39, 0.76);
  padding: 0.24rem;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-result-stack strong {
  color: color-mix(in srgb, var(--active-rarity-color, #ff5d93) 78%, #ffffff);
}

.disenchant-rarity-section {
  display: grid;
  gap: 0.12rem;
}

.disenchant-section-label {
  text-align: center;
}

.disenchant-rarity-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.08rem;
}

.disenchant-rarity-card {
  min-width: 0;
  min-height: 68px;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #ff5d93) 76%, rgba(127, 171, 255, 0.28));
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rarity-color, #ff5d93) 24%, transparent), transparent 58%),
    rgba(8, 17, 48, 0.94);
  color: rgba(235, 244, 255, 0.96);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.06rem;
  padding: 0.1rem 0.05rem;
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.disenchant-rarity-card.active {
  box-shadow:
    0 0 14px color-mix(in srgb, var(--rarity-color, #ff5d93) 42%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.disenchant-rarity-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--rarity-color, #ffffff) 90%, #ffffff);
  font-size: 0.31rem;
  font-weight: 800;
  text-transform: uppercase;
}

.disenchant-rarity-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--rarity-color, #ff5d93) 78%, #ffffff);
  background:
    linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--rarity-color, #ff5d93) 72%, #ffffff) 44%, transparent 58%),
    linear-gradient(45deg, transparent 40%, color-mix(in srgb, var(--rarity-color, #ff5d93) 72%, #ffffff) 44%, transparent 58%),
    rgba(15, 19, 48, 0.94);
}

.disenchant-rarity-count {
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
}

.disenchant-rarity-yield {
  color: rgba(196, 219, 255, 0.9);
  font-size: 0.36rem;
  font-weight: 800;
}

.disenchant-main-btn {
  min-height: 42px;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  border-color: color-mix(in srgb, var(--active-rarity-color, #ff5d93) 70%, #ff5d93);
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 38%, transparent), transparent 56%),
    linear-gradient(180deg, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 70%, #ff6b93), color-mix(in srgb, var(--active-rarity-color, #ff5d93) 42%, #8f1e4e));
  box-shadow:
    0 0 18px color-mix(in srgb, var(--active-rarity-color, #ff5d93) 34%, transparent),
    inset 0 0 0 1px rgba(255, 235, 245, 0.18);
  font-size: 0.7rem;
}

.disenchant-main-count {
  min-height: 26px;
  border-radius: 7px;
  background: rgba(10, 24, 68, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  padding: 0 0.34rem;
}

.disenchant-title-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  image-rendering: pixelated;
}

.disenchant-head .crafting-panel-title {
  font-size: 0.78rem;
}

.disenchant-head .crafting-panel-subtitle {
  font-size: 0.58rem;
  line-height: 1.2;
}

.crafting-live-root[data-crafting-tab="disenchanting"] .disenchant-item-glow {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--active-rarity-color, #ff5d93) 28%, transparent), transparent 60%),
    rgba(17, 20, 48, 0.98);
}

.disenchant-preview-dust-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.disenchant-rarity-icon {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
  image-rendering: pixelated;
}

.loadout-bottom-nav[data-button-scroll="1"] {
  left: 0;
  right: 0;
  padding-left: 4px;
  padding-right: 4px;
  border-left: 0;
  border-right: 0;
  scroll-snap-type: none;
}

.loadout-bottom-nav[data-button-scroll="1"]::before,
.loadout-bottom-nav[data-button-scroll="1"]::after {
  content: none;
  display: none;
}

.loadout-bottom-nav[data-button-scroll="1"] .loadout-nav-btn {
  flex: 1 1 0;
  min-width: 0;
}

.loadout-nav-scroll-btn {
  position: absolute;
  bottom: 0;
  z-index: 38;
  width: 42px;
  height: 62px;
  min-height: 62px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  border: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(80, 245, 255, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(9, 13, 39, 0.99), rgba(6, 9, 29, 0.99));
  color: #6ff6ff;
  font-family: "Space Grotesk", "Chakra Petch", sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    0 0 10px rgba(37, 234, 255, 0.24),
    inset 0 0 0 1px rgba(224, 255, 248, 0.1);
  touch-action: manipulation;
}

.loadout-nav-scroll-left {
  left: 0;
  box-shadow:
    10px 0 14px rgba(6, 9, 29, 0.98),
    0 0 10px rgba(37, 234, 255, 0.24);
}

.loadout-nav-scroll-right {
  right: 0;
  box-shadow:
    -10px 0 14px rgba(6, 9, 29, 0.98),
    0 0 10px rgba(37, 234, 255, 0.24);
}

.loadout-nav-scroll-btn:disabled {
  opacity: 0.34;
  filter: grayscale(1);
}

.loadout-nav-scroll-btn:hover {
  transform: none;
}
