:root {
  --ink: #070a12;
  --theme-primary-rgb: 122, 182, 232;
  --theme-secondary-rgb: 242, 199, 124;
  --theme-panel-top-rgb: 26, 40, 71;
  --theme-panel-mid-rgb: 18, 25, 43;
  --theme-panel-low-rgb: 13, 17, 23;
  --theme-panel-bottom-rgb: 10, 12, 18;
  --equipment-art-filter: brightness(1.3) saturate(1.25) contrast(1.1)
    drop-shadow(0 0 0 rgb(255, 225, 141))
    drop-shadow(0 0 0.55px rgba(255, 225, 141, 0.85));
  --weapon-art-scale: 1.35;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #090c14;
  color: #eef3ff;
  font-family: "Rajdhani", sans-serif;
}

html {
  scrollbar-gutter: stable both-edges;
}

.scene-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #182742 0%, #090c14 55%),
    radial-gradient(circle at 80% 20%, #52301f 0%, transparent 45%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.scene-bg::after {
  content: "";
  position: absolute;
  inset: 0;
}

.app {
  position: relative;
  z-index: 1;
  gap: 0;
  align-content: start;
  justify-items: center;
}

#randomizeBtn {
  position: relative;
  overflow: hidden;
  animation: randomize-border-breathe 2.8s ease-in-out infinite,
    high-priority-yellow-glow 2.1s ease-in-out infinite;
}

#randomizeBtn:hover {
  border-color: rgba(255, 239, 166, 1);
}

#randomizeBtn.is-spinning,
#randomizeBtn:disabled {
  opacity: 1;
  color: #f4f8ff;
  cursor: not-allowed;
  animation: none;
  border-color: rgba(255, 225, 116, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 251, 227, 0.24),
    0 0 0 1px rgba(255, 225, 116, 0.45),
    0 0 12px rgba(255, 219, 92, 0.32);
}

#randomizeBtn::after {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -60%;
  width: 48%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 233, 140, 0) 0%,
    rgba(255, 233, 140, 0.22) 30%,
    rgba(255, 246, 190, 0.62) 50%,
    rgba(255, 233, 140, 0.22) 70%,
    rgba(255, 233, 140, 0) 100%
  );
  animation: yellow-sweep 2.4s ease-in-out infinite;
}

#randomizeBtn.is-spinning::after,
#randomizeBtn:disabled::after {
  animation-play-state: paused;
  opacity: 0.35;
}

.battlefield {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.initial-randomize-slot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}

.initial-randomize-slot[hidden] {
  display: none !important;
}

.battlefield.party-mode {
  width: min(1960px, 99vw);
  height: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  overflow: hidden;
}

.battlefield.draft-mode.party-mode {
  width: min(1600px, 99vw);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.battlefield.party-mode .initial-randomize-slot {
  top: 78%;
}

.battlefield.party-mode .panel {
  min-width: 0;
  min-height: 450px;
  height: auto;
  gap: 10px;
  padding: 16px 12px 14px;
}

.battlefield.party-mode .panel-title {
  font-size: 1rem;
}

.battlefield.party-mode .top-symbol-placeholder {
  width: min(180px, 90%);
}

.battlefield.party-mode .weapon-placeholder {
  width: min(100%, 320px);
  min-height: 82px;
}

.battlefield.party-mode .weapon-render {
  max-height: 64px;
}

.battlefield.party-mode .stratagem-row {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) calc((100% - 26px) / 5);
  justify-items: stretch;
  gap: 8px;
  align-items: start;
}

.battlefield.party-mode .stratagem-grid {
  width: 100%;
  gap: 6px;
}

.battlefield.party-mode .booster-panel {
  width: 100%;
  min-height: 0;
}

.party-pod-label {
  position: absolute;
  top: 8px;
  left: 7px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 4;
  color: #ffe39c;
  font: 700 1.16rem/1 "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(var(--theme-secondary-rgb), 0.35);
  pointer-events: none;
}

.party-pod-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.65);
  border-radius: 6px;
  background: rgba(8, 12, 20, 0.84);
  color: #ffe7a8;
  font: 700 1.05rem/1 "Orbitron", sans-serif;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 10px rgba(var(--theme-secondary-rgb), 0.22);
  transition: border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.party-pod-toggle:hover {
  border-color: rgba(var(--theme-secondary-rgb), 0.95);
  color: #fff3cd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 14px rgba(var(--theme-secondary-rgb), 0.34);
}

.battlefield.party-mode .panel.party-pod-disabled {
  opacity: 1;
}

.battlefield.party-mode .panel.party-pod-disabled > *:not(.party-pod-toggle) {
  opacity: 0.55;
  filter: saturate(0.72) brightness(0.82);
}

.battlefield.party-mode .panel.party-pod-disabled .party-pod-toggle {
  opacity: 1;
  border-color: rgba(118, 203, 255, 0.8);
  color: #b7ecff;
  box-shadow: inset 0 0 0 1px rgba(198, 237, 255, 0.2),
    0 0 14px rgba(78, 196, 255, 0.42);
}

.draft-pick-prompt {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff5cb;
  font: 700 1.18rem/1 "Orbitron", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(255, 240, 171, 0.72),
    0 0 18px rgba(255, 213, 102, 0.52),
    0 0 30px rgba(255, 188, 70, 0.3);
  animation: draftPickPulse 1750ms ease-in-out infinite;
  pointer-events: none;
}

.battlefield.party-mode .panel.draft-pickable {
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(var(--theme-secondary-rgb), 0.22),
    0 0 18px rgba(var(--theme-secondary-rgb), 0.2);
}

.battlefield.party-mode .panel.draft-pickable:hover {
  transform: translateY(-2px) scale(1.012);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 3px rgba(var(--theme-secondary-rgb), 0.68),
    0 0 34px rgba(var(--theme-secondary-rgb), 0.72),
    0 0 58px rgba(var(--theme-secondary-rgb), 0.42),
    0 0 92px rgba(var(--theme-secondary-rgb), 0.2);
  filter: saturate(1.16) brightness(1.12);
}

.battlefield.party-mode.draft-spin-active .panel {
  pointer-events: none;
}

.battlefield.party-mode .panel.special-orbital {
  position: relative;
  --special-sweep-color-a: rgba(255, 82, 82, 0.98);
  --special-sweep-color-b: rgba(255, 176, 176, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 112, 112, 0.34),
    0 0 0 1px rgba(255, 76, 76, 0.3),
    0 0 14px rgba(255, 46, 46, 0.2);
}

.battlefield.party-mode .panel.special-orbital.draft-pickable {
  box-shadow: inset 0 0 0 1px rgba(255, 132, 132, 0.5),
    0 0 0 1px rgba(255, 98, 98, 0.56),
    0 0 22px rgba(248, 70, 70, 0.4);
}

.battlefield.party-mode .panel.special-orbital.draft-pickable:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 186, 186, 0.66),
    0 0 0 3px rgba(255, 108, 108, 0.82),
    0 0 34px rgba(255, 92, 92, 0.78),
    0 0 58px rgba(242, 64, 64, 0.54),
    0 0 92px rgba(220, 40, 40, 0.28);
  filter: saturate(1.18) brightness(1.14);
}

.battlefield.party-mode .panel.special-sentry {
  position: relative;
  --special-sweep-color-a: rgba(102, 234, 112, 0.98);
  --special-sweep-color-b: rgba(186, 247, 190, 0.96);
  box-shadow: inset 0 0 0 1px rgba(118, 230, 124, 0.34),
    0 0 0 1px rgba(84, 214, 95, 0.3),
    0 0 14px rgba(52, 192, 66, 0.2);
}

.battlefield.party-mode .panel.special-sentry.draft-pickable {
  box-shadow: inset 0 0 0 1px rgba(138, 236, 142, 0.5),
    0 0 0 1px rgba(98, 220, 108, 0.56),
    0 0 22px rgba(68, 206, 84, 0.4);
}

.battlefield.party-mode .panel.special-sentry.draft-pickable:hover {
  box-shadow: inset 0 0 0 1px rgba(188, 246, 190, 0.66),
    0 0 0 3px rgba(112, 226, 124, 0.82),
    0 0 34px rgba(96, 218, 112, 0.78),
    0 0 58px rgba(64, 194, 82, 0.54),
    0 0 92px rgba(42, 164, 62, 0.28);
  filter: saturate(1.18) brightness(1.14);
}

.battlefield.party-mode .panel.special-support {
  position: relative;
  --special-sweep-color-a: rgba(108, 218, 255, 0.98);
  --special-sweep-color-b: rgba(194, 240, 255, 0.96);
  box-shadow: inset 0 0 0 1px rgba(142, 226, 255, 0.42),
    0 0 0 1px rgba(92, 202, 255, 0.44),
    0 0 18px rgba(56, 170, 238, 0.34);
}

.battlefield.party-mode .panel.special-support.draft-pickable {
  box-shadow: inset 0 0 0 1px rgba(164, 232, 255, 0.5),
    0 0 0 1px rgba(110, 208, 255, 0.56),
    0 0 22px rgba(72, 178, 242, 0.4);
}

.battlefield.party-mode .panel.special-support.draft-pickable:hover {
  box-shadow: inset 0 0 0 1px rgba(196, 240, 255, 0.66),
    0 0 0 3px rgba(126, 214, 255, 0.82),
    0 0 34px rgba(100, 206, 255, 0.78),
    0 0 58px rgba(64, 176, 242, 0.54),
    0 0 92px rgba(40, 140, 220, 0.28);
  filter: saturate(1.18) brightness(1.14);
}

.battlefield.party-mode .panel .special-card-marker {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 26px;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  pointer-events: none;
  z-index: 8;
}

.battlefield.party-mode .panel .special-card-marker::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 19px;
  background: rgba(14, 19, 29, 0.97);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.battlefield.party-mode .panel .special-border-sweep-overlay {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  z-index: 8;
}

.battlefield.party-mode .panel .special-border-sweep-overlay::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 2px;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--special-sweep-color-a, rgba(255, 231, 142, 0.98)) 30%, transparent),
    var(--special-sweep-color-a, rgba(255, 231, 142, 0.98)) 58%,
    var(--special-sweep-color-b, rgba(255, 245, 204, 0.96))
  );
  box-shadow: 0 0 8px var(--special-sweep-color-a, rgba(255, 231, 142, 0.55)),
    0 0 16px color-mix(in srgb, var(--special-sweep-color-a, rgba(255, 231, 142, 0.55)) 66%, transparent);
  opacity: 0;
}

.battlefield.party-mode .panel.special-border-sweep .special-border-sweep-overlay {
  opacity: 1;
}

.battlefield.party-mode .panel.special-border-sweep .special-border-sweep-overlay::before {
  opacity: 1;
  animation: specialBorderTracer 420ms linear infinite;
}

.battlefield.party-mode .panel.special-spin-pop {
  animation: specialCardSpinPop 1150ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.battlefield.party-mode .panel.special-spin-pop .special-card-marker {
  animation-duration: 520ms !important;
  filter: brightness(1.28) saturate(1.22);
}

.battlefield.party-mode .panel.draft-picked {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 3px rgba(255, 240, 181, 0.9),
    0 0 0 6px rgba(255, 226, 138, 0.4),
    0 0 30px rgba(255, 223, 120, 0.52),
    0 0 44px rgba(255, 206, 96, 0.25);
  filter: saturate(1.06) brightness(1.03);
}

.battlefield.party-mode .panel.draft-reveal-focus {
  animation: draftRevealFocus 520ms ease;
}

.battlefield.party-mode .panel.draft-reveal-other {
  animation: draftRevealOther 620ms ease;
}

.battlefield.party-mode .panel.draft-unmask-fade {
  animation: draftUnmaskFade 1280ms ease;
}

.battlefield.party-mode .panel.draft-faded {
  opacity: 0.86;
  filter: saturate(0.78) brightness(0.88) contrast(0.94);
}

.panel .top-symbol-placeholder,
.panel .weapon-placeholder,
.panel .stratagem-row {
  position: relative;
}

.panel.is-obscured-armor .top-symbol-placeholder::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 clamp(2rem, 6vw, 4rem)/1 "Orbitron", sans-serif;
  color: rgba(255, 236, 170, 0.94);
  background: rgba(6, 9, 14, 0.88);
  text-shadow: 0 0 14px rgba(255, 219, 92, 0.5),
    0 0 28px rgba(var(--theme-primary-rgb), 0.25);
  z-index: 5;
  pointer-events: none;
}

.panel.is-obscured-weapon .weapon-placeholder::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 clamp(2rem, 6vw, 4rem)/1 "Orbitron", sans-serif;
  color: rgba(255, 236, 170, 0.94);
  background: rgba(6, 9, 14, 0.88);
  text-shadow: 0 0 14px rgba(255, 219, 92, 0.5),
    0 0 28px rgba(var(--theme-primary-rgb), 0.25);
  z-index: 5;
  pointer-events: none;
}

.panel.is-obscured-weapon .weapon-placeholder > * {
  visibility: hidden;
}

.panel.is-obscured-armor .top-symbol-placeholder .helmet-render {
  visibility: hidden;
}

.panel .stratagem-row .draft-obscured-item {
  position: relative;
}

.panel .stratagem-row .draft-obscured-item::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 700 clamp(1.4rem, 4vw, 2.6rem)/1 "Orbitron", sans-serif;
  color: rgba(255, 236, 170, 0.94);
  background: rgba(6, 9, 14, 0.9);
  text-shadow: 0 0 10px rgba(255, 219, 92, 0.5),
    0 0 20px rgba(var(--theme-primary-rgb), 0.25);
  z-index: 5;
  pointer-events: none;
}

.panel .stratagem-row .draft-obscured-item > * {
  visibility: hidden;
}

@keyframes draftRevealFocus {
  0% {
    filter: saturate(0.88) brightness(0.9);
    transform: scale(0.992);
  }

  45% {
    filter: saturate(1.28) brightness(1.14);
    transform: scale(1.01);
  }

  100% {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }

}

@keyframes specialCardSpinPop {
  0% {
    transform: scale(0.986);
    filter: saturate(0.96) brightness(0.94);
  }

  30% {
    transform: scale(1.018);
    filter: saturate(1.2) brightness(1.18);
  }

  100% {
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }

}

@keyframes specialBorderTracer {
  0% {
    top: 2px;
    left: 14px;
    width: 30px;
    height: 3px;
  }

  24.99% {
    top: 2px;
    left: calc(100% - 44px);
    width: 30px;
    height: 3px;
  }

  25% {
    top: 14px;
    left: calc(100% - 5px);
    width: 3px;
    height: 30px;
  }

  49.99% {
    top: calc(100% - 44px);
    left: calc(100% - 5px);
    width: 3px;
    height: 30px;
  }

  50% {
    top: calc(100% - 5px);
    left: calc(100% - 44px);
    width: 30px;
    height: 3px;
  }

  74.99% {
    top: calc(100% - 5px);
    left: 14px;
    width: 30px;
    height: 3px;
  }

  75% {
    top: calc(100% - 44px);
    left: 2px;
    width: 3px;
    height: 30px;
  }

  99.99% {
    top: 14px;
    left: 2px;
    width: 3px;
    height: 30px;
  }

  100% {
    top: 2px;
    left: 14px;
    width: 30px;
    height: 3px;
  }

}

@keyframes draftRevealOther {
  0% {
    filter: blur(1.2px) saturate(0.82) brightness(0.82);
    opacity: 0.78;
    transform: translateY(4px) scale(0.994);
  }

  60% {
    filter: blur(0.2px) saturate(1.1) brightness(1.08);
    opacity: 1;
    transform: translateY(0) scale(1.004);
  }

  100% {
    filter: blur(0) saturate(0.78) brightness(0.88) contrast(0.94);
    opacity: 0.86;
    transform: translateY(0) scale(1);
  }

}

@keyframes draftUnmaskFade {
  0% {
    opacity: 0.35;
    filter: blur(2.8px) saturate(0.62) brightness(0.66);
  }

  70% {
    opacity: 1;
    filter: blur(0.5px) saturate(1.06) brightness(1.05);
  }

  100% {
    opacity: 1;
    filter: blur(0) saturate(1) brightness(1);
  }

}

@keyframes draftPickPulse {
  0%,
  100% {
    opacity: 0.9;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 8px rgba(255, 240, 171, 0.65),
      0 0 18px rgba(255, 213, 102, 0.45),
      0 0 28px rgba(255, 188, 70, 0.26);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px) scale(1.035);
    text-shadow: 0 0 10px rgba(255, 246, 203, 0.86),
      0 0 24px rgba(255, 228, 142, 0.68),
      0 0 38px rgba(255, 198, 86, 0.4);
  }

}

.panel-reroll-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2px;
}

.battlefield:not(.party-mode) .panel-reroll-row {
  margin-top: 8px;
}

.panel-reroll-row[hidden] {
  display: none !important;
}

.panel {
  position: relative;
  flex-direction: column;
  align-items: center;
  height: 100%;
  isolation: isolate;
}

.pre-randomize-marker {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 3;
  font: 700 clamp(7rem, 24vw, 13rem) / 1 "Orbitron", sans-serif;
  color: rgba(var(--theme-secondary-rgb), 0.94);
  text-shadow: 0 0 18px rgba(var(--theme-secondary-rgb), 0.6),
    0 0 44px rgba(var(--theme-primary-rgb), 0.36);
  pointer-events: none;
}

.panel.pre-randomize-active .pre-randomize-marker {
  display: grid;
}

.panel.pre-randomize-active .top-symbol-placeholder,
.panel.pre-randomize-active .panel-title,
.panel.pre-randomize-active .weapon-placeholder,
.panel.pre-randomize-active .stratagem-row {
  visibility: hidden;
}

.panel-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.95;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.panel::before {
  inset: 0;
}

.panel::after {
  width: 160%;
  aspect-ratio: 1;
  left: -30%;
  bottom: -58%;
  border-radius: 50%;
  filter: blur(32px);
  opacity: 0.45;
}

.panel-title {
  margin: 0;
  font: 700 2rem/1.1 "Orbitron", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.top-symbol-placeholder {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(var(--theme-primary-rgb), 0.9);
  font: 700 0.95rem/1 "Orbitron", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  filter: drop-shadow(0 0 18px rgba(var(--theme-primary-rgb), 0.12));
  padding: 10px;
}

.armor-tier-badge {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  padding: 4px 9px 5px;
  border-radius: 999px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.55);
  background: rgba(8, 12, 20, 0.76);
  color: #ffefbd;
  font: 700 0.82rem/1 "Orbitron", sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.85),
    0 0 8px rgba(var(--theme-secondary-rgb), 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 10px rgba(var(--theme-secondary-rgb), 0.18);
  pointer-events: auto;
  cursor: pointer;
}

.armor-tier-badge:empty {
  display: none;
}

.armor-tier-badge.superstore {
  border-color: rgba(112, 233, 255, 0.75);
  color: #baf6ff;
  box-shadow: inset 0 0 0 1px rgba(189, 246, 255, 0.18),
    0 0 0 1px rgba(112, 233, 255, 0.45),
    0 0 14px rgba(96, 228, 255, 0.26),
    0 0 24px rgba(96, 228, 255, 0.16);
}

.armor-info-text {
  position: absolute;
  top: 40px;
  right: 10px;
  margin: 0;
  max-width: min(82%, 300px);
  padding: 8px 10px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.75);
  border-radius: 6px;
  background: rgba(7, 10, 16, 0.92);
  color: #fff0c8;
  font: 700 0.72rem/1.25 "Orbitron", sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: right;
  box-shadow: 0 0 12px rgba(var(--theme-secondary-rgb), 0.28);
  z-index: 3;
}

.armor-info-text.superstore {
  border-color: rgba(112, 233, 255, 0.75);
  color: #baf6ff;
  box-shadow: inset 0 0 0 1px rgba(189, 246, 255, 0.18),
    0 0 0 1px rgba(112, 233, 255, 0.45),
    0 0 14px rgba(96, 228, 255, 0.26),
    0 0 24px rgba(96, 228, 255, 0.16);
}

.helmet-render {
  width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.88) 18%,
    rgba(0, 0, 0, 0.62) 48%,
    rgba(0, 0, 0, 0.3) 74%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.88) 18%,
    rgba(0, 0, 0, 0.62) 48%,
    rgba(0, 0, 0, 0.3) 74%,
    rgba(0, 0, 0, 0) 100%
  );
}

.weapon-placeholder {
  display: grid;
  place-items: center;
  padding: 8px 10px;
  position: relative;
}

.weapon-render {
  width: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.weapon-info-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.9);
  background: rgba(8, 12, 20, 0.75);
  color: #fff4d1;
  font: 700 1rem/1 "Orbitron", sans-serif;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(var(--theme-secondary-rgb), 0.26);
  z-index: 2;
}

.weapon-info-btn:hover {
  background: rgba(var(--theme-secondary-rgb), 0.2);
  box-shadow: 0 0 16px rgba(var(--theme-secondary-rgb), 0.45);
}

.weapon-info-btn::before {
  content: "";
  position: absolute;
  inset: -10px;
}

.weapon-info-text {
  position: absolute;
  top: 48px;
  right: 9px;
  margin: 0;
  max-width: min(78%, 420px);
  padding: 10px 12px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.75);
  border-radius: 6px;
  background: rgba(7, 10, 16, 0.92);
  color: #fff0c8;
  font: 700 0.84rem/1.2 "Orbitron", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  box-shadow: 0 0 12px rgba(var(--theme-secondary-rgb), 0.28);
  z-index: 3;
}

.stratagem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stratagem-row {
  display: grid;
  align-items: start;
}

.slot {
  border: 1px solid rgba(var(--theme-primary-rgb), 0.38);
  padding: 6px;
  border-radius: 4px;
  background: rgba(8, 11, 18, 0.24);
}

.slot img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.slot-reel {
  padding: 0;
}

.slot-reel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.slot-reel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: transform;
}

.booster-panel {
  width: 100%;
  min-height: 0;
}

.booster-slot {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.55);
  padding: 6px;
  border-radius: 6px;
  background: linear-gradient(
    180deg,
    rgba(var(--theme-panel-top-rgb), 0.4) 0%,
    rgba(var(--theme-panel-mid-rgb), 0.5) 100%
  );
  box-shadow: 0 0 14px rgba(var(--theme-secondary-rgb), 0.16);
}

.booster-slot img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--theme-secondary-rgb), 0.28));
}

.booster-reel {
  padding: 0;
}

.booster-reel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.booster-reel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(var(--theme-secondary-rgb), 0.28));
  will-change: transform;
}

.slot.locked-in,
.booster-slot.locked-in {
  animation: lockPulse 640ms ease;
}

.slot.locked-in {
  border-color: rgba(var(--theme-secondary-rgb), 0.85);
  box-shadow: 0 0 0 1px rgba(var(--theme-secondary-rgb), 0.48),
    0 0 18px rgba(var(--theme-secondary-rgb), 0.34),
    inset 0 0 18px rgba(var(--theme-secondary-rgb), 0.14);
}

.booster-slot.locked-in {
  border-color: rgba(var(--theme-secondary-rgb), 0.9);
  box-shadow: 0 0 0 1px rgba(var(--theme-secondary-rgb), 0.56),
    0 0 22px rgba(var(--theme-secondary-rgb), 0.42),
    inset 0 0 20px rgba(var(--theme-secondary-rgb), 0.16);
}

.panel-single {
  color: #e8f2ff;
}

.panel-single .panel-art {
  background: linear-gradient(
      180deg,
      rgba(var(--theme-panel-top-rgb), 0.74) 0%,
      rgba(var(--theme-panel-mid-rgb), 0.64) 40%,
      rgba(var(--theme-panel-low-rgb), 0.84) 70%,
      rgba(var(--theme-panel-bottom-rgb), 0.92) 100%
    ),
    radial-gradient(circle at 50% 58%, rgba(var(--theme-secondary-rgb), 0.26), transparent 22%),
    radial-gradient(circle at 8% 10%, rgba(var(--theme-primary-rgb), 0.2), transparent 38%);
}

.panel-single::after {
  background: radial-gradient(circle, rgba(var(--theme-primary-rgb), 0.42), transparent 58%);
}

.panel-single .panel-title {
  text-shadow: 0 0 20px rgba(var(--theme-primary-rgb), 0.22);
}

.panel-refresh {
  animation: flash 320ms ease;
}

.artwork-credit {
  width: min(760px, 100%);
  margin: 8px 0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.72),
    0 0 10px rgba(var(--theme-secondary-rgb), 0.18);
}

.artwork-credit a {
  color: rgba(255, 241, 122, 0.98);
  text-decoration: none;
  font-weight: 600;
}

.artwork-credit a:hover {
  text-decoration: underline;
}

@keyframes flash {
  0% {
    opacity: 0.65;
    transform: scale(0.994);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }

}

@keyframes randomize-border-breathe {
  0% {
    border-color: rgba(255, 225, 116, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 251, 227, 0.24),
      0 0 0 1px rgba(255, 225, 116, 0.45),
      0 0 10px rgba(255, 219, 92, 0.35);
  }

  50% {
    border-color: rgba(255, 239, 166, 1);
    box-shadow: inset 0 0 0 1px rgba(255, 253, 236, 0.36),
      0 0 0 1px rgba(255, 239, 166, 0.58),
      0 0 14px rgba(255, 236, 145, 0.58),
      0 0 24px rgba(255, 216, 100, 0.28);
  }

  100% {
    border-color: rgba(255, 225, 116, 0.88);
    box-shadow: inset 0 0 0 1px rgba(255, 251, 227, 0.24),
      0 0 0 1px rgba(255, 225, 116, 0.45),
      0 0 10px rgba(255, 219, 92, 0.35);
  }

}

@keyframes yellow-sweep {
  0% {
    transform: translateX(0);
    opacity: 0.12;
  }

  50% {
    transform: translateX(320%);
    opacity: 0.24;
  }

  100% {
    transform: translateX(640%);
    opacity: 0.12;
  }

}

@keyframes high-priority-yellow-glow {
  0% {
    box-shadow: inset 0 0 0 1px rgba(255, 250, 220, 0.22),
      0 0 10px rgba(255, 217, 90, 0.38),
      0 0 24px rgba(255, 202, 73, 0.18);
    filter: saturate(1.1) brightness(1.02);
  }

  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 253, 236, 0.38),
      0 0 18px rgba(255, 236, 145, 0.75),
      0 0 38px rgba(255, 216, 100, 0.38);
    filter: saturate(1.35) brightness(1.16);
  }

  100% {
    box-shadow: inset 0 0 0 1px rgba(255, 250, 220, 0.22),
      0 0 10px rgba(255, 217, 90, 0.38),
      0 0 24px rgba(255, 202, 73, 0.18);
    filter: saturate(1.1) brightness(1.02);
  }

}

@keyframes lockPulse {
  0% {
    transform: scale(0.98);
    filter: brightness(0.92);
  }

  45% {
    transform: scale(1.03);
    filter: brightness(1.18);
  }

  100% {
    transform: scale(1);
    filter: brightness(1);
  }

}

@media (max-width: 1050px) {
  .app {
    gap: 2px;
  }

  .battlefield {
    width: 760px;
    height: 940px;
  }

  .panel-title {
    font-size: 1.5rem;
  }

}

@media (max-width: 900px) {
  .battlefield.party-mode {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84vw, 460px);
    gap: 10px;
    padding: 10px 12px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .battlefield.draft-mode.party-mode {
    width: 100vw;
    max-width: 100vw;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(84vw, 460px);
    gap: 10px;
    padding: 10px 12px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .battlefield.party-mode .panel {
    min-height: 520px;
    scroll-snap-align: start;
  }

  .battlefield.party-mode .stratagem-row {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) calc((100% - 26px) / 5);
    gap: 8px;
    justify-items: stretch;
    align-items: start;
  }

  .battlefield.party-mode .stratagem-grid {
    width: 100%;
    gap: 6px;
  }

  .battlefield.party-mode .booster-panel {
    width: 100%;
    min-height: 0;
  }

}

@media (max-width: 760px) {
  .app {
    gap: 2px;
  }

  .top-symbol-placeholder {
    width: min(224px, 92%);
  }

  .panel-title {
    letter-spacing: 0.04em;
  }

  .weapon-placeholder {
    width: min(100%, 560px);
    padding: 6px 8px;
  }

  .stratagem-row {
    width: 100%;
    justify-items: stretch;
    align-items: start;
  }

  .stratagem-grid {
    width: 100%;
  }

  .booster-panel {
    width: 100%;
    min-height: 0;
  }

  .weapon-info-btn {
    width: 29px;
    height: 29px;
    top: 6px;
    right: 6px;
    font-size: 0.85rem;
  }

  .weapon-info-text {
    top: 40px;
    right: 6px;
    max-width: min(90%, 360px);
    font-size: 0.62rem;
  }

}

@media (max-width: 480px) {

  .panel {
    padding: 13px 8px 11px;
    gap: 8px;
  }

  .top-symbol-placeholder {
    width: min(192px, 96%);
  }

  .weapon-placeholder {
    min-height: 86px;
    padding: 6px;
  }

  .weapon-render {
    max-height: 74px;
  }

  .stratagem-grid {
    gap: 5px;
  }

  .stratagem-row {
    grid-template-columns: minmax(0, 1fr) calc((100% - 23px) / 5);
  }

  .slot {
    padding: 3px;
  }

  .booster-slot {
    padding: 3px;
  }

  .booster-panel {
    width: 100%;
    min-height: 0;
  }

}

:root {
  --dossier-ink: #090b0e;
  --dossier-panel: #12161b;
  --dossier-panel-raised: #181d23;
  --dossier-line: rgba(216, 225, 235, 0.13);
  --dossier-muted: #89929c;
  --dossier-amber: #f2dc65;
  --dossier-cyan: #72d8ff;
}

body {
  background: #080a0c;
  color: #edf0f2;
}

.scene-bg {
  filter: saturate(0.52) contrast(1.14) brightness(0.32);
}

.scene-bg::after {
  background: radial-gradient(circle at 82% 2%, rgba(242, 220, 101, 0.12), transparent 34%),
    radial-gradient(circle at 7% 94%, rgba(111, 216, 255, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(5, 7, 9, 0.4), rgba(5, 7, 9, 0.88));
  mix-blend-mode: normal;
}

.battlefield {
  width: min(100%, 900px);
  height: 690px;
  min-height: 690px;
  margin-top: 16px;
  border: 1px solid rgba(216, 225, 235, 0.12);
  border-radius: 17px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(26, 30, 35, 0.88), rgba(9, 12, 15, 0.96)),
    var(--dossier-panel);
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.48);
}

.battlefield::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.92%, rgba(255, 255, 255, 0.035) 50%, transparent 50.08%),
    linear-gradient(180deg, transparent 66%, rgba(255, 255, 255, 0.03) 66.12%, transparent 66.25%);
  opacity: 0.7;
}

.panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(180px, 0.78fr);
  grid-template-areas: "kicker kicker"
    "weapon helmet"
    "weapon title"
    "stratagems stratagems"
    "motto motto"
    "reroll reroll";
  align-content: center;
  gap: 12px 15px;
  padding: 26px;
}

.panel::before {
  background: linear-gradient(120deg, transparent 0 30%, rgba(255, 255, 255, 0.024) 30.1% 30.3%, transparent 30.4% 100%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(255, 255, 255, 0.02) 47px 48px);
}

.panel-art {
  background: radial-gradient(circle at 22% 45%, rgba(111, 216, 255, 0.07), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(242, 220, 101, 0.09), transparent 26%),
    linear-gradient(150deg, rgba(25, 30, 36, 0.94), rgba(8, 11, 14, 0.96)) !important;
}

.top-symbol-placeholder {
  grid-area: helmet;
  width: 100%;
  max-width: none;
  align-self: stretch;
  min-height: 235px;
  border: 1px solid rgba(216, 225, 235, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(35, 41, 49, 0.8), rgba(14, 18, 23, 0.92));
}

.top-symbol-placeholder::before,
.weapon-placeholder::before {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  color: #77818c;
  font: 800 0.54rem/1 "Orbitron", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.top-symbol-placeholder::before {
  content: "Armor profile";
}

.helmet-render {
  padding: 25px 12px 10px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.52));
}

.panel-title {
  grid-area: title;
  align-self: start;
  min-height: 0;
  max-height: none;
  padding: 3px 0 0;
  color: #f2f4f6;
  font-size: clamp(1rem, 2.2vw, 1.38rem);
  letter-spacing: -0.015em;
  text-align: left;
}

.weapon-placeholder {
  grid-area: weapon;
  align-self: stretch;
  width: 100%;
  min-height: 300px;
  border: 1px solid rgba(216, 225, 235, 0.12);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(31, 37, 44, 0.9), rgba(10, 13, 17, 0.94));
}

.weapon-placeholder::before {
  content: "Primary weapon";
}

.weapon-render {
  max-height: 250px;
  padding: 22px 18px 4px;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.58));
}

.armor-tier-badge,
.weapon-info-btn {
  border-color: rgba(242, 220, 101, 0.52);
  background: rgba(10, 12, 14, 0.87);
  box-shadow: none;
}

.stratagem-row {
  grid-area: stratagems;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 12px;
}

.stratagem-grid {
  width: 100%;
  gap: 8px;
}

.slot,
.booster-slot {
  border-color: rgba(216, 225, 235, 0.14);
  border-radius: 8px;
  background: rgba(8, 11, 14, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
}

.booster-slot {
  border-color: rgba(242, 220, 101, 0.38);
}

.panel-reroll-row {
  grid-area: reroll;
}

.initial-randomize-slot {
  top: auto;
  bottom: 24px;
  width: min(100% - 48px, 460px);
  gap: 10px;
}

#randomizeBtn {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255, 239, 154, 0.72);
  border-radius: 10px;
  background: linear-gradient(135deg, #f6df68, #d0ad38);
  color: #19170f;
  font-size: clamp(0.82rem, 2vw, 1rem);
  box-shadow: 0 12px 30px rgba(242, 220, 101, 0.16);
}

#randomizeBtn:hover {
  background: #ffe878;
  color: #11100a;
}

.battlefield:not(.party-mode) .panel.pre-randomize-active .pre-randomize-marker {
  transform: none;
  color: rgba(242, 220, 101, 0.22);
  text-shadow: none;
}

.artwork-credit,
.socialfooter {
  width: min(100%, 900px);
}

.artwork-credit {
  color: #717b86;
  font: 600 0.64rem/1.4 "Rajdhani", sans-serif;
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {

  .battlefield {
    width: 100%;
    height: auto;
    min-height: 650px;
    margin-top: 12px;
    border-radius: 14px;
  }

  .panel {
    grid-template-columns: minmax(0, 1fr) 106px;
    grid-template-areas: "kicker kicker"
      "weapon helmet"
      "title title"
      "stratagems stratagems"
      "motto motto"
      "reroll reroll";
    align-content: start;
    gap: 10px;
    padding: 16px;
  }

  .top-symbol-placeholder {
    min-height: 170px;
  }

  .top-symbol-placeholder::before,
  .weapon-placeholder::before {
    top: 8px;
    left: 9px;
    font-size: 0.46rem;
  }

  .helmet-render {
    padding: 20px 5px 6px;
  }

  .weapon-placeholder {
    min-height: 170px;
  }

  .weapon-render {
    max-height: 150px;
    padding: 20px 8px 2px;
  }

  .panel-title {
    font-size: 0.92rem;
  }

  .stratagem-row {
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 7px;
  }

  .stratagem-grid {
    gap: 5px;
  }

  .slot,
  .booster-slot {
    padding: 4px;
  }

  .initial-randomize-slot {
    bottom: 16px;
    width: calc(100% - 32px);
  }

  #randomizeBtn {
    min-height: 56px;
  }

}

@media (max-width: 370px) {
  .panel {
    grid-template-columns: minmax(0, 1fr) 88px;
    padding: 13px;
  }

  .top-symbol-placeholder,
  .weapon-placeholder {
    min-height: 150px;
  }

  .battlefield {
    min-height: 620px;
  }

}

.app {
  display: block;
}

.app .deploy-control {
  z-index: 1;
  display: grid;
  align-self: end;
  place-items: end;
}

.app .hero-roll-status {
  position: absolute;
  z-index: 1;
  display: none;
  gap: 4px;
  color: var(--dossier-amber);
  text-align: right;
  text-transform: uppercase;
}

.app .hero-roll-status span {
  font: 900 9px/1 Inter, sans-serif;
  letter-spacing: 0.1em;
}

.app .hero-roll-status small {
  color: #838a94;
  font: 700 8px/1 Inter, sans-serif;
  letter-spacing: 0.05em;
}

.app .initial-randomize-slot {
  position: static;
  display: grid;
  transform: none;
}

.app .initial-randomize-slot[hidden] {
  display: none;
}

.app .results-area.battlefield {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.app .loadout-placeholder {
  display: none;
  min-height: 240px;
  place-content: center;
  gap: 6px;
  border: 1px solid rgba(242, 220, 101, 0.18);
  border-radius: 24px 8px;
  background: linear-gradient(145deg, rgba(24, 27, 30, 0.72), rgba(9, 11, 14, 0.84));
  color: rgba(242, 220, 101, 0.17);
  text-align: center;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.38);
}

.app .loadout-placeholder span {
  color: rgba(242, 220, 101, 0.22);
  font: 800 9px/1 Inter, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.app .loadout-placeholder strong {
  font: 950 clamp(150px, 42vw, 240px)/0.8 Inter, sans-serif;
}

.app .solo-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.app .solo-results-head span {
  font: 800 9px/1 Inter, sans-serif;
}

.app .solo-results-head strong {
  font: 900 14px/1 Inter, sans-serif;
}

.app .panel {
  align-items: stretch;
}

.app .panel-art,
.app .panel::before,
.app .panel::after,
.app .pre-randomize-marker {
  display: none;
}

.app .helmet-render {
  padding: 0;
}

.app .panel-title {
  max-height: none;
}

.app .panel-reroll-row {
  justify-content: flex-start;
}

.app .artwork-credit {
  width: 100%;
  text-shadow: none;
}

@media (max-width: 520px) {

  .app .hero-roll-status {
    right: 12px;
    bottom: 15px;
  }

  .app .results-area.battlefield {
    margin-top: 16px;
  }

  .app .panel {
    gap: 7px;
  }

}

.app .results-area.battlefield {
  margin-top: 26px;
}

.app .top-symbol-placeholder,
.app .panel-title {
  min-height: 150px;
}

.app .panel-title {
  font-size: clamp(18px, 3.4vw, 26px);
}

.draft-app .results-area.battlefield,
.draft-app .results-area.battlefield.party-mode {
  display: grid;
  width: 100%;
  min-height: 620px;
  height: auto;
  margin-top: 26px;
  padding: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  background: rgba(14, 17, 21, 0.7);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.draft-app .battlefield::before {
  display: none;
}

.draft-app .battlefield.party-mode .panel {
  min-height: 570px;
  padding: 18px 14px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.draft-app .battlefield.party-mode .top-symbol-placeholder {
  width: 100%;
  min-height: 130px;
}

.draft-app .battlefield.party-mode .weapon-placeholder {
  width: 100%;
  min-height: 120px;
}

.draft-app .battlefield.party-mode .weapon-render {
  max-height: 98px;
}

.draft-app .battlefield.party-mode .panel-title {
  font-size: 1.08rem;
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) {
  width: min(100%, 780px);
  margin-left: auto;
  margin-right: auto;
}

.app .results-area.battlefield.party-mode {
  height: auto;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.app .battlefield.party-mode::before {
  display: none;
}

.app .battlefield.party-mode .panel {
  min-height: 570px;
  padding: 18px 14px;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.app .battlefield.party-mode .top-symbol-placeholder {
  width: 100%;
  min-height: 130px;
}

.app .battlefield.party-mode .weapon-placeholder {
  width: 100%;
  min-height: 120px;
}

.app .battlefield.party-mode .weapon-render {
  max-height: 98px;
}

.app .battlefield.party-mode .panel-title {
  font-size: 1.08rem;
}

.draft-app .draft-pick-prompt {
  grid-column: 1 / -1;
  padding: 8px 0 2px;
  color: var(--dossier-amber);
  font-size: 0.82rem;
  text-align: center;
  text-shadow: none;
}

@media (max-width: 900px) {
  .app .results-area.battlefield.party-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .draft-app .results-area.battlefield,
  .draft-app .results-area.battlefield.party-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

}

@media (max-width: 520px) {

  .app .weapon-placeholder {
    min-height: 148px;
  }

  .app .weapon-render {
    max-height: 114px;
  }

  .app .top-symbol-placeholder,
  .app .panel-title {
    min-height: 126px;
  }

  .app .panel-title {
    padding: 39px 12px 12px;
    font-size: 18px;
  }

  .app .stratagem-row {
    grid-template-columns: minmax(0, 1fr) 64px;
    padding: 11px;
  }

  .draft-app .results-area.battlefield,
  .draft-app .results-area.battlefield.party-mode {
    grid-template-columns: 1fr;
    padding: 11px;
    gap: 11px;
    border-radius: 18px;
  }

  .draft-app .battlefield.party-mode .panel {
    min-height: 500px;
  }

  .app .results-area.battlefield.party-mode {
    min-height: 0;
    padding: 11px;
    gap: 11px;
    border-radius: 18px;
  }

  .app .battlefield.party-mode .panel {
    min-height: 500px;
  }

}

.app .armor-card .top-symbol-placeholder::before {
  top: 12px;
  left: 11px;
  font-size: 8px;
}

@media (max-width: 520px) {

  .app .armor-card .top-symbol-placeholder {
    padding: 20px 3px 5px;
  }

}

:root {
  --dash-bg: #080b0e;
  --dash-surface: #11161b;
  --dash-surface-strong: #151b21;
  --dash-line: rgba(207, 218, 226, 0.15);
  --dash-muted: #84909b;
  --dash-text: #f1f3f5;
  --dash-yellow: #f4dc55;
  --dash-cyan: #63d5f2;
}

.app .initial-randomize-slot {
  width: var(--site-action-width);
  gap: 0;
}

.app .hero-roll-status {
  right: 18px;
  bottom: 18px;
}

.app .results-area.battlefield,
.app .results-area.battlefield:not(.party-mode) {
  display: block;
  width: 100% !important;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app .results-area.battlefield::before {
  display: none;
}

.app .solo-results-head {
  margin: 0 0 9px;
}

.app .solo-results-head span {
  color: #fff;
  font-size: 15px;
  letter-spacing: -0.03em;
  text-transform: none;
}

.app .solo-results-head strong {
  color: var(--dash-yellow);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app .panel {
  display: grid;
  gap: 9px;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  isolation: isolate;
}

.app .panel-art,
.app .panel::before,
.app .panel::after {
  display: none;
}

.app .panel.pre-randomize-active .pre-randomize-marker {
  display: grid;
  transform: none;
  color: rgba(244, 220, 85, 0.24);
  text-shadow: none;
}

.app .panel.pre-randomize-active .armor-card {
  visibility: hidden;
}

.app .weapon-placeholder,
.app .top-symbol-placeholder,
.app .panel-title,
.app .stratagem-row {
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: rgba(15, 20, 25, 0.94);
  box-shadow: none;
}

.app .weapon-placeholder {
  grid-area: weapon;
  min-height: 118px;
  padding: 25px 16px 9px;
}

.app .weapon-placeholder.superstore {
  border-color: rgba(112, 233, 255, 0.75);
  background: linear-gradient(135deg, rgba(32, 113, 134, 0.18), transparent 54%),
    rgba(15, 20, 25, 0.94);
  box-shadow: inset 0 0 0 1px rgba(167, 245, 255, 0.12),
    0 0 0 1px rgba(85, 220, 250, 0.27),
    0 0 19px rgba(48, 205, 241, 0.3),
    0 0 34px rgba(48, 205, 241, 0.1);
}

.app .weapon-placeholder.superstore::before {
  color: #9ceeff;
}

.app .weapon-placeholder.superstore .weapon-render {
  filter: var(--equipment-art-filter) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 10px rgba(104, 231, 255, 0.48));
}

.app .armor-card.item-crossover,
.app .weapon-placeholder.item-crossover {
  border-color: rgba(246, 197, 74, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 213, 109, 0.15),
    0 0 0 1px rgba(211, 60, 40, 0.72),
    0 0 17px rgba(220, 66, 38, 0.25),
    0 0 25px rgba(246, 197, 74, 0.12);
}

.app .armor-card.item-limited,
.app .weapon-placeholder.item-limited {
  border-color: rgba(246, 207, 93, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 229, 145, 0.12),
    0 0 0 1px rgba(246, 207, 93, 0.42),
    0 0 17px rgba(246, 207, 93, 0.16);
}

.app .armor-card.item-superstore,
.app .weapon-placeholder.item-superstore {
  border-color: rgba(112, 233, 255, 0.75);
  background: linear-gradient(135deg, rgba(32, 113, 134, 0.18), transparent 52%),
    rgba(15, 20, 25, 0.94);
  box-shadow: inset 0 0 0 1px rgba(167, 245, 255, 0.12),
    0 0 0 1px rgba(85, 220, 250, 0.27),
    0 0 19px rgba(48, 205, 241, 0.3),
    0 0 34px rgba(48, 205, 241, 0.1);
}

.app.draft-app .panel.is-obscured-armor .armor-card,
.app.draft-app .panel.is-obscured-weapon .weapon-placeholder {
  border-color: var(--dash-line);
  background: rgba(15, 20, 25, 0.94);
  box-shadow: none;
}

.app .armor-card::before,
.app .weapon-placeholder::before,
.app .top-symbol-placeholder::before {
  position: absolute;
  top: 11px;
  left: 13px;
  z-index: 1;
  color: #89939c;
  font: 800 9px/1 Inter, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app .weapon-placeholder::before {
  content: attr(data-weapon-label);
  right: 48px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.app .top-symbol-placeholder::before {
  content: "Armor";
}

.app .weapon-render {
  /* Enlarge the previous padded artwork area, keeping long rifles in the card. */
  width: min(100%, calc((100% - 40px) * var(--weapon-art-scale)));
  max-height: calc((82px - 3px) * var(--weapon-art-scale));
  padding: 0;
  filter: var(--equipment-art-filter) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.42));
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .weapon-placeholder {
  min-height: calc((94px - 3px) * var(--weapon-art-scale) + 36px);
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .weapon-render {
  max-height: calc((94px - 3px) * var(--weapon-art-scale));
}

.app .top-symbol-placeholder {
  grid-area: helmet;
  min-height: 102px;
  padding: 15px 8px 3px;
}

.app .helmet-render {
  filter: var(--equipment-art-filter) drop-shadow(0 7px 10px rgba(0, 0, 0, 0.42));
}

.app .panel-title {
  grid-area: title;
  display: grid;
  min-height: 102px;
  padding: 33px 13px 12px;
  place-items: center start;
  color: #f5f5f2;
  font: 900 clamp(16px, 3.8vw, 23px)/0.96 Inter, sans-serif;
  letter-spacing: -0.06em;
  text-align: left;
}

.app .panel-title::before {
  content: "Helldiver";
  position: absolute;
  align-self: start;
  color: #89939c;
  font: 800 9px/1 Inter, sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app .armor-tier-badge,
.app .weapon-info-btn {
  border-color: rgba(244, 220, 85, 0.35);
  background: #1a2026;
  color: var(--dash-yellow);
}

.app .stratagem-row {
  grid-area: strats;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 8px;
  padding: 10px;
}

.app .stratagem-grid {
  gap: 6px;
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .stratagem-row {
  grid-template-columns: minmax(0, 1fr) calc((100% - 26px) / 5);
}

.app .slot,
.app .booster-slot {
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: #1a2026;
}

.app .booster-slot {
  border-color: rgba(244, 220, 85, 0.28);
}

.app .panel-reroll-row {
  grid-area: reroll;
  display: flex;
  margin: 0;
}

.app .results-area.battlefield.party-mode {
  --weapon-art-scale: 1.55;
  display: grid;
  width: 100% !important;
  min-height: 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: transparent;
}

.app .results-area.battlefield.party-mode > .solo-results-head {
  display: none;
}

.app .results-area.battlefield.party-mode .panel {
  min-height: 390px;
  padding: 10px;
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: rgba(12, 16, 20, 0.88);
}

.app .results-area.battlefield.party-mode > article.panel:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.app .results-area.battlefield.party-mode > article.panel:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
}

.app .results-area.battlefield.party-mode > article.panel:nth-of-type(3) {
  grid-column: 1;
  grid-row: 2;
}

.app .results-area.battlefield.party-mode > article.panel:nth-of-type(4) {
  grid-column: 2;
  grid-row: 2;
}

.app .results-area.battlefield.party-mode .weapon-placeholder {
  min-height: calc((60px - 3px) * var(--weapon-art-scale) + 36px);
}

.app .results-area.battlefield.party-mode .weapon-render {
  max-height: calc((60px - 3px) * var(--weapon-art-scale));
}

.app .results-area.battlefield.party-mode .top-symbol-placeholder,
.app .results-area.battlefield.party-mode .panel-title {
  min-height: 88px;
}

.app .results-area.battlefield.party-mode .panel-title {
  padding: 30px 10px 9px;
  font-size: 16px;
}

.app .results-area.battlefield.party-mode .stratagem-row {
  grid-template-columns: minmax(0, 1fr) 52px;
  padding: 8px;
}

.app .results-area.battlefield.party-mode > .panel-reroll-row {
  grid-area: auto !important;
  grid-column: 1 / -1;
  grid-row: auto;
  justify-content: center;
}

.app .party-pod-label {
  top: 10px;
  left: -19px;
  color: var(--dash-yellow);
  font-size: 0.82rem;
}

.app .results-area.battlefield.party-mode > article.panel:nth-of-type(even) .party-pod-label {
  right: -19px;
  left: auto;
}

.app .party-pod-toggle {
  border-color: rgba(244, 220, 85, 0.35);
  background: #171d23;
  color: var(--dash-yellow);
}

.app .results-area.battlefield.party-mode .panel.party-pod-disabled {
  align-self: start;
  min-height: 50px;
  height: 50px;
  padding: 8px 10px;
  overflow: visible;
  background: rgba(10, 14, 18, 0.76);
  box-shadow: inset 0 0 0 1px rgba(126, 194, 226, 0.13);
}

.app .results-area.battlefield.party-mode .panel.party-pod-disabled > :not(.party-pod-toggle):not(.party-pod-status) {
  display: none;
}

.party-pod-status {
  display: none;
}

.app .results-area.battlefield.party-mode .panel.party-pod-disabled .party-pod-status {
  display: block;
  align-self: center;
  padding-right: 36px;
  color: #82b8cf;
  opacity: 1;
  filter: none;
  font: 800 9px/1.4 Inter, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app .draft-pick-prompt {
  grid-column: 1 / -1;
  padding: 2px 0;
  color: var(--dash-yellow);
  font-size: 0.75rem;
  text-align: center;
  text-shadow: none;
}

.app.draft-app .battlefield.party-mode .panel.draft-picked {
  border-color: rgba(255, 235, 116, 0.98);
  box-shadow: inset 0 0 0 1px rgba(255, 252, 211, 0.58),
    0 0 0 2px rgba(255, 224, 92, 0.94),
    0 0 26px rgba(255, 216, 80, 0.64),
    0 0 56px rgba(255, 195, 65, 0.36);
  filter: saturate(1.24) brightness(1.14);
  transform: translateY(-3px) scale(1.018);
}

.app.draft-app .battlefield.party-mode .panel.draft-reveal-focus {
  animation-duration: 260ms;
}

.app.draft-app .battlefield.party-mode .panel.draft-reveal-other {
  animation-duration: 300ms;
}

.app.draft-app .battlefield.party-mode .panel.draft-unmask-fade {
  animation-duration: 380ms;
}

.app.draft-app .battlefield.party-mode .panel.draft-faded {
  opacity: 0.56;
  filter: saturate(0.52) brightness(0.7) contrast(0.9);
}

.app .artwork-credit,
.app .socialfooter {
  width: 100%;
}

.app .artwork-credit {
  margin: 18px 0 0;
  color: #7f8a93;
  font: 600 10px/1.3 Inter, sans-serif;
}

@media (max-width: 767px) {
  .app .results-area.battlefield.party-mode .panel:not(.party-pod-disabled) {
    padding-top: 38px;
  }

  .app .results-area.battlefield.party-mode > article.panel .party-pod-label,
  .app .results-area.battlefield.party-mode > article.panel:nth-of-type(even) .party-pod-label {
    top: 12px;
    right: auto;
    left: 12px;
    writing-mode: horizontal-tb;
    transform: none;
    font: 800 10px/1.3 Inter, sans-serif;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 520px) {
  .app .initial-randomize-slot {
    width: var(--site-action-width);
  }

  .app .results-area.battlefield.party-mode {
    grid-template-columns: 1fr;
  }

  .app .results-area.battlefield.party-mode > article.panel:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .app .results-area.battlefield.party-mode > article.panel:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .app .results-area.battlefield.party-mode > article.panel:nth-of-type(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .app .results-area.battlefield.party-mode > article.panel:nth-of-type(4) {
    grid-column: 1;
    grid-row: 4;
  }

}

.app .panel {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "armor"
    "weapon"
    "strats";
}

.app .armor-card {
  grid-area: armor;
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  grid-template-columns: minmax(94px, 0.8fr) minmax(0, 1fr);
  border: 1px solid var(--dash-line);
  border-radius: 18px;
  background: rgba(15, 20, 25, 0.94);
  overflow: hidden;
}

.app .armor-card::before {
  content: "Armor";
}

.app .armor-card .top-symbol-placeholder,
.app .armor-card .panel-title {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.app .armor-card .top-symbol-placeholder {
  grid-area: auto;
  width: 100%;
  aspect-ratio: auto;
  padding: 20px 4px 5px;
  border-right: 0;
}

.app .armor-card .top-symbol-placeholder::before {
  display: none;
}

.app .armor-card .helmet-render {
  min-width: 0;
  padding: 0;
}

.app .armor-card .panel-title {
  grid-area: auto;
  position: relative;
  padding: 33px 10px 28px;
  place-items: center start;
  font-size: clamp(14px, 2.8vw, 20px);
  overflow-wrap: anywhere;
  overflow: visible;
}

.app .armor-card .panel-title::before {
  content: none;
}

.app .armor-card .armor-tier-badge {
  top: auto;
  right: 7px;
  bottom: 6px;
  padding: 3px 6px;
  font-size: 0.62rem;
}

.app .armor-card .armor-info-text {
  top: auto;
  right: 6px;
  bottom: 33px;
  max-width: 190px;
  font-size: 0.66rem;
}

.app .weapon-info-text {
  font-size: 0.66rem;
}

.app .armor-card:has(.armor-tier-badge.superstore) {
  border-color: rgba(112, 233, 255, 0.75);
  background: linear-gradient(135deg, rgba(32, 113, 134, 0.18), transparent 52%),
    rgba(15, 20, 25, 0.94);
  box-shadow: inset 0 0 0 1px rgba(167, 245, 255, 0.12),
    0 0 0 1px rgba(85, 220, 250, 0.27),
    0 0 19px rgba(48, 205, 241, 0.3),
    0 0 34px rgba(48, 205, 241, 0.1);
}

.app .armor-card:has(.armor-tier-badge.superstore) .helmet-render {
  filter: var(--equipment-art-filter) drop-shadow(0 7px 10px rgba(0, 0, 0, 0.42)) drop-shadow(0 0 10px rgba(104, 231, 255, 0.48));
}

.app .armor-card:has(.armor-tier-badge.superstore)::before {
  color: #9ceeff;
}

@media (max-width: 520px) {
  .app .panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .app .armor-card {
    min-height: 102px;
    grid-template-columns: minmax(58px, 0.76fr) minmax(0, 1fr);
  }

  .app .armor-card .top-symbol-placeholder {
    padding-top: 18px;
  }

  .app .armor-card .top-symbol-placeholder::before {
    top: 8px;
    left: 7px;
    font-size: 6px;
  }

  .app .armor-card .panel-title {
    padding: 29px 8px 28px;
    font-size: clamp(13px, 4.1vw, 17px);
  }

}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .panel {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "armor weapon"
    "strats strats";
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .armor-card {
  min-height: 132px;
  grid-template-columns: minmax(64px, 0.72fr) minmax(0, 1fr);
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .armor-card .top-symbol-placeholder {
  border-right: 0;
}

.app:not(.draft-app) .results-area.battlefield:not(.party-mode) .armor-card .top-symbol-placeholder::before {
  display: none;
}

@media (max-width: 520px) {
  .app:not(.draft-app) .results-area.battlefield:not(.party-mode) .panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "armor" "weapon" "strats";
  }

  .app:not(.draft-app) .results-area.battlefield:not(.party-mode) .armor-card {
    min-height: 118px;
    grid-template-columns: minmax(54px, 0.68fr) minmax(0, 1fr);
  }

}

/* The existing Draft labels provide keyboard access to card selection. */
.draft-app .party-pod-label[role="button"] {
  pointer-events: auto;
}
.draft-app .draft-pickable .party-pod-label {
  cursor: pointer;
}
.draft-app .panel:has(.party-pod-label:focus-visible) {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.artwork-credit a { text-decoration: underline; text-underline-offset: 2px; }
