:root {
  --bg-main: #0a0d14;
  --panel-bg: rgba(0, 0, 0, 0.54);
  --panel-bg-2: rgba(7, 9, 14, 0.92);
  --line: rgba(255, 255, 255, 0.28);
  --text: rgba(229, 236, 246, 0.95);
  --text-dim: rgba(184, 194, 211, 0.86);
  --yellow: #ffe812;
  --yellow-soft: rgba(255, 232, 18, 0.4);
  --blue: #5faeea;
  --radius: 8px;
  --shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { font-size: 130%; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--blue) 20%, transparent), transparent 36%),
    linear-gradient(160deg, var(--bg-main) 0%, color-mix(in srgb, var(--bg-main) 88%, black) 100%);
  background-attachment: fixed;
  padding: 16px 10px 36px;
}

.background-orb { display: none; }

.app-shell {
  width: min(832px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 13px;
}

.header {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 90px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.header-copy h1 {
  margin: 2px 0 0;
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.26rem);
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.header-actions { display: flex; gap: 8px; }

#whats-new-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  color: var(--blue);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#whats-new-btn:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: color-mix(in srgb, var(--blue) 70%, white);
}

.control-deck {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 10px;
}

.dropdowns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  width: 100%;
}

.dropdowns details {
  position: relative;
  min-width: 0;
}

.dropdowns summary {
  list-style: none;
  border: 1px solid rgba(230, 230, 230, 0.4);
  border-radius: 0;
  border-left-width: 2px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: 'Oxanium', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.dropdowns summary::after {
  content: attr(data-count);
  font-size: 0.62rem;
  color: #111;
  background: linear-gradient(135deg, var(--yellow), color-mix(in srgb, var(--yellow) 55%, var(--blue)));
  border-radius: 999px;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.dropdowns details[open] summary {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.18);
}

.dropdowns details > div {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  width: 270px;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--panel-bg-2);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dropdowns details:nth-child(3) > div,
.dropdowns details:nth-child(4) > div {
  left: auto;
  right: 0;
}

.dropdowns details.weapon-settings > div {
  width: min(580px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropdowns details.loadout-settings > div {
  width: min(360px, calc(100vw - 20px));
}

.dropdowns details.randomizer-settings > div {
  width: min(400px, calc(100vw - 20px));
}

.warbond-grid {
  display: grid !important;
  width: min(410px, calc(100vw - 20px)) !important;
  max-height: 82vh;
  grid-template-columns: repeat(5, 58px) !important;
  justify-content: center;
  gap: 8px;
}

.warbond-grid .settings-option {
  display: flex;
  width: 58px;
}

.settings-option { min-width: 0; }
.settings-option input[type='checkbox'] { display: none; }

.settings-option label {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  background-color: rgba(196, 196, 196, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.settings-option label::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  z-index: -1;
  clip-path: polygon(0% 0%, 20% 0%, 20% 10%, 40% 10%, 40% 0%, 60% 0%, 60% 10%,
      80% 10%, 80% 0%, 100% 0%, 100% 20%, 90% 20%, 90% 40%,
      100% 40%, 100% 60%, 90% 60%, 90% 80%, 100% 80%, 100% 100%,
      80% 100%, 80% 90%, 60% 90%, 60% 100%, 40% 100%, 40% 90%,
      20% 90%, 20% 100%, 0% 100%, 0% 80%, 10% 80%, 10% 60%,
      0% 60%, 0% 40%, 10% 40%, 10% 20%, 0% 20%);
}

.settings-option input[type='checkbox']:checked + label {
  color: #fff;
  background-color: var(--yellow-soft);
  box-shadow:
    0 0 2px rgba(118, 110, 45, 0.3),
    0 0 4px rgba(240, 237, 140, 0.5),
    0 0 8px rgba(240, 237, 140, 0.75),
    0 0 14px rgba(240, 237, 140, 0.95);
  text-shadow:
    0 0 10px rgba(255, 204, 0, 0.5),
    0 0 20px rgba(255, 204, 0, 0.75);
}

.settings-option input[type='checkbox']:checked + label::before {
  border-color: var(--yellow);
}

.settings-option label:hover {
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.warbond-grid .settings-option label {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-width: 0;
  height: 44px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1;
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--wb-c1), transparent 70%),
      color-mix(in srgb, var(--wb-c2), transparent 70%)
    );
  box-shadow: none;
  filter: saturate(0.9) brightness(0.95);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.warbond-grid .settings-option input[type='checkbox']:checked + label::before {
  border-color: rgba(245, 245, 245, 0.9);
}

.warbond-grid .settings-option input[type='checkbox']:checked + label {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--wb-c1), transparent 15%),
      color-mix(in srgb, var(--wb-c2), transparent 15%)
    );
  filter: saturate(1.35) brightness(1.1);
  box-shadow:
    0 0 6px var(--wb-c1),
    0 0 14px var(--wb-c1),
    0 0 22px var(--wb-c2);
}

.warbond-grid .settings-option label:hover {
  filter: saturate(1.3) brightness(1.25);
}

.warbond-grid .settings-option label[data-fullname]::after {
  content: none;
}

.warbond-grid .settings-option label[data-fullname]:hover::after {
  opacity: 0;
}

.warbond-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.08s ease;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(6, 8, 12, 0.98);
  border: 1px solid rgba(255, 232, 18, 0.95);
  border-radius: 6px;
  padding: 8px 10px;
  box-shadow:
    0 0 10px rgba(255, 232, 18, 0.45),
    0 8px 22px rgba(0, 0, 0, 0.6);
}

.warbond-tooltip.visible {
  opacity: 1;
}


.weapon-settings-panel { display: flex; flex-direction: column; gap: 8px; }
.weapon-settings-top {
  display: flex;
  gap: 8px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 6px;
  background: var(--panel-bg-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.weapon-settings-panel .weapon-options-grid,
.weapon-settings-panel .weapon-group,
.weapon-settings-panel .weapon-list,
.weapon-settings-panel .weapon-option,
.weapon-settings-panel .weapon-option label {
  user-select: none;
}

#weapon-search {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--text);
  padding: 8px;
}

.section-toggle,
#weapon-toggle-all {
  min-width: 54px;
  padding: 6px 10px;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(195, 205, 222, 0.9);
  border-color: rgba(255, 255, 255, 0.28);
  background-color: rgba(18, 22, 31, 0.65);
  box-shadow: none;
}

.section-toggle:hover,
#weapon-toggle-all:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(30, 36, 50, 0.8);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.section-toggle.all-checked,
#weapon-toggle-all.all-checked {
  color: #111;
  border-color: var(--yellow);
  background-color: var(--yellow);
  box-shadow:
    0 0 8px rgba(255, 232, 18, 0.6),
    0 0 18px rgba(255, 232, 18, 0.45);
}

.weapon-options-grid { max-height: none; overflow: visible; display: grid; gap: 8px; }

.weapon-group {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px;
}

.weapon-group-title {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-family: 'Oxanium', sans-serif;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.weapon-list { display: grid; gap: 6px; }
.weapon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px;
}

.weapon-option input[type='checkbox'] { display: block; width: 16px; height: 16px; accent-color: var(--yellow); }
.weapon-option label { font-size: 0.76rem; text-transform: none; color: var(--text); background: transparent; box-shadow: none; padding: 0; }
.weapon-option label::before { content: none; }
.weapon-option-unavailable { opacity: 0.38; }
.weapon-option-unavailable label { cursor: not-allowed; }

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

.actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bottom-actions {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

button {
  background-image: repeating-linear-gradient(45deg, rgba(204, 176, 0, 0.24), rgba(204, 176, 0, 0.24) 2px, transparent 4px, transparent 6px);
  background-color: rgba(16, 16, 16, 0.45);
  border: 2px solid var(--yellow);
  color: var(--yellow);
  padding: 9px 12px;
  text-transform: uppercase;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  box-shadow: 0 0 3px rgba(255, 232, 18, 0.8);
  user-select: none;
}

button:hover {
  background-image: none;
  background-color: var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
  color: #101010;
  border-color: var(--yellow);
}

#generate-loadout {
  padding: 12px 18px;
  font-size: 0.78rem;
}

.results-grid {
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
}

.panel {
  grid-column: span 4;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  padding: 10px;
  min-height: 118px;
}

.panel h2 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-family: 'Oxanium', sans-serif;
  text-transform: uppercase;
  font-size: 0.76rem;
  text-align: center;
}

.panel-stratagem {
  grid-column: 1 / -1;
  min-height: 170px;
  border-color: rgba(255, 232, 18, 0.45);
}

.panel-primary {
  grid-column: 1 / -1;
}

.panel-primary .attachments {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.panel-primary .attachments .card {
  margin-top: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#primary-weapon-name {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Oxanium', sans-serif;
  font-size: clamp(1.05rem, 0.98rem + 0.45vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-color: rgba(255, 232, 18, 0.42);
  background: linear-gradient(
    135deg,
    rgba(255, 232, 18, 0.12),
    rgba(95, 174, 234, 0.08)
  );
  box-shadow: 0 0 14px rgba(255, 232, 18, 0.2);
}

.card {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #f0f0f0;
  padding: 8px;
  margin-top: 6px;
  font-size: 0.8rem;
}

.card.superstore {
  color: #6ee6ff;
  border-color: rgba(110, 230, 255, 0.45);
}

.card.limited {
  color: #ffe18a;
  border-color: rgba(255, 200, 60, 0.62);
  box-shadow:
    0 0 8px rgba(255, 200, 60, 0.32),
    0 0 18px rgba(255, 170, 30, 0.2);
}

.attachments { display: grid; gap: 6px; margin-top: 6px; }

#primary-weapon-attachments {
  min-height: 52px;
  align-content: start;
}

.stratagem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 72px;
  gap: 6px;
}

.panel-stratagem .stratagem-card {
  --strat-color: rgba(90, 90, 90, 1);
  margin-top: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  justify-content: start;
  text-align: left;
  font-weight: 600;
  overflow: hidden;
  line-height: 1.15;
  padding: 8px 10px;
  border-color: color-mix(in srgb, var(--strat-color), #ffffff 28%);
  background:
    linear-gradient(160deg,
      color-mix(in srgb, var(--strat-color), transparent 72%) 0%,
      rgba(10, 14, 20, 0.92) 56%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 14px color-mix(in srgb, var(--strat-color), transparent 72%);
  position: relative;
}

.panel-stratagem .stratagem-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--strat-color);
  box-shadow: 0 0 8px var(--strat-color);
}

.stratagem-name {
  position: relative;
  z-index: 2;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(245, 248, 255, 0.98);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stratagem-offensive { --strat-color: rgb(186, 47, 35); }
.stratagem-defensive { --strat-color: rgb(50, 96, 33); }
.stratagem-backpack { --strat-color: rgb(44, 172, 209); }
.stratagem-support { --strat-color: rgb(34, 136, 166); }
.stratagem-default { --strat-color: rgb(50, 50, 50); }
.stratagem-vehicle { --strat-color: rgb(139, 95, 209); }

.panel-stratagem .stratagem-card.superstore .stratagem-name {
  color: #90efff;
}

.panel-stratagem .stratagem-card.stratagem-sentry .stratagem-name::before {
  content: '';
  position: absolute;
  right: 4px;
  top: -32px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #e9eef8, #8ea0bc);
  box-shadow:
    0 0 8px rgba(180, 207, 255, 0.55),
    0 0 16px rgba(101, 157, 255, 0.25);
  pointer-events: none;
  z-index: 1;
  animation: sentryDrop 5s ease-in-out infinite;
}

.panel-stratagem .stratagem-card.stratagem-sentry .stratagem-name::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background:
    linear-gradient(150deg, rgba(255, 238, 157, 0.95), rgba(255, 209, 120, 0)) 92% 66% / 8% 2px no-repeat,
    linear-gradient(180deg, rgba(255, 238, 157, 0.92), rgba(255, 209, 120, 0)) 92% 74% / 8% 2px no-repeat,
    linear-gradient(208deg, rgba(255, 238, 157, 0.95), rgba(255, 209, 120, 0)) 92% 82% / 8% 2px no-repeat,
    radial-gradient(circle, rgba(255, 245, 182, 0.95) 0 1.4px, transparent 1.8px) 92% 74% / 100% 100% no-repeat;
  filter:
    drop-shadow(0 0 4px rgba(255, 220, 120, 0.85))
    drop-shadow(0 0 10px rgba(255, 176, 84, 0.35));
  animation: sentrySpray 5s steps(1, end) infinite;
}

.panel-stratagem .stratagem-card.stratagem-orbital {
  overflow: hidden;
}

.panel-stratagem .stratagem-card.stratagem-orbital::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 246, 170, 0.7), rgba(255, 246, 170, 0) 72%) 12% -110% / 2px 44% no-repeat,
    linear-gradient(180deg, rgba(255, 220, 120, 0.55), rgba(255, 220, 120, 0) 72%) 34% -120% / 2px 40% no-repeat,
    linear-gradient(180deg, rgba(255, 246, 170, 0.65), rgba(255, 246, 170, 0) 72%) 57% -112% / 2px 42% no-repeat,
    linear-gradient(180deg, rgba(255, 220, 120, 0.5), rgba(255, 220, 120, 0) 72%) 79% -118% / 2px 38% no-repeat;
  animation: orbitalRain 5s linear infinite;
  opacity: 0.95;
}

.panel-stratagem .stratagem-card.stratagem-guarddog {
  overflow: hidden;
}

.panel-stratagem .stratagem-card.stratagem-guarddog::after {
  content: '✦';
  position: absolute;
  left: 14%;
  top: 58%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #c6f3ff;
  border: 1px solid rgba(121, 220, 255, 0.7);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(237, 251, 255, 0.95), rgba(137, 223, 255, 0.88) 55%, rgba(76, 174, 214, 0.76) 100%);
  box-shadow:
    0 0 10px rgba(121, 220, 255, 0.65),
    0 0 20px rgba(84, 183, 221, 0.35);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  animation: guardDogRoam 8s ease-in-out infinite;
}

@keyframes guardDogRoam {
  0% {
    left: 18%;
    top: 62%;
    transform: translate(-50%, -50%) scale(0.95);
  }
  12% {
    left: 34%;
    top: 46%;
    transform: translate(-50%, -50%) scale(1);
  }
  24% {
    left: 52%;
    top: 58%;
    transform: translate(-50%, -50%) scale(0.96);
  }
  36% {
    left: 68%;
    top: 38%;
    transform: translate(-50%, -50%) scale(1.02);
  }
  48% {
    left: 82%;
    top: 54%;
    transform: translate(-50%, -50%) scale(0.97);
  }
  60% {
    left: 64%;
    top: 70%;
    transform: translate(-50%, -50%) scale(1);
  }
  72% {
    left: 42%;
    top: 52%;
    transform: translate(-50%, -50%) scale(0.96);
  }
  84% {
    left: 26%;
    top: 36%;
    transform: translate(-50%, -50%) scale(1.01);
  }
  100% {
    left: 18%;
    top: 62%;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

.panel-stratagem .stratagem-card.stratagem-orbital::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 36%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 239, 153, 0.16),
    rgba(255, 239, 153, 0)
  );
  animation: orbitalFlash 5s ease-out infinite;
}

@keyframes orbitalRain {
  0% {
    background-position:
      12% -110%,
      34% -120%,
      57% -112%,
      79% -118%;
    opacity: 0.95;
  }
  60% {
    background-position:
      12% 170%,
      34% 176%,
      57% 172%,
      79% 180%;
    opacity: 0;
  }
  100% {
    background-position:
      12% 170%,
      34% 176%,
      57% 172%,
      79% 180%;
    opacity: 0;
  }
}

@keyframes orbitalFlash {
  0% { opacity: 0.35; }
  30% { opacity: 0.85; }
  60% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes sentryDrop {
  0% {
    transform: translateY(-6px) rotate(0deg);
    top: -32px;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  32% {
    top: 18px;
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    top: 18px;
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
}

@keyframes sentrySpray {
  0%, 32% {
    opacity: 0;
  }
  34%, 34.8% {
    opacity: 1;
    background-position:
      92% 64%,
      92% 74%,
      92% 82%,
      92% 74%;
    background-size:
      8% 2px,
      0 0,
      0 0,
      100% 100%;
  }
  35.3%, 36.1% {
    opacity: 1;
    background-position:
      92% 66%,
      88% 75%,
      92% 82%,
      88% 75%;
    background-size:
      0 0,
      8% 2px,
      0 0,
      100% 100%;
  }
  36.6%, 37.4% {
    opacity: 1;
    background-position:
      92% 66%,
      92% 74%,
      84% 86%,
      84% 86%;
    background-size:
      0 0,
      0 0,
      8% 2px,
      100% 100%;
  }
  38.0%, 38.8% {
    opacity: 1;
    background-position:
      78% 58%,
      92% 74%,
      92% 82%,
      78% 58%;
    background-size:
      8% 2px,
      0 0,
      0 0,
      100% 100%;
  }
  39.3%, 40.1% {
    opacity: 1;
    background-position:
      92% 66%,
      72% 74%,
      92% 82%,
      72% 74%;
    background-size:
      0 0,
      8% 2px,
      0 0,
      100% 100%;
  }
  40.6%, 41.4% {
    opacity: 0.92;
    background-position:
      92% 66%,
      92% 74%,
      66% 88%,
      66% 88%;
    background-size:
      0 0,
      0 0,
      8% 2px,
      100% 100%;
  }
  42.2%, 100% {
    opacity: 0;
  }
}

.panel-stratagem .stratagem-card.stratagem-eagle {
  overflow: hidden;
}

.panel-stratagem .stratagem-card.stratagem-eagle::after {
  content: '✈';
  position: absolute;
  left: -20px;
  top: 50%;
  z-index: 2;
  font-size: 15px;
  color: #ffe9a3;
  text-shadow:
    0 0 8px rgba(255, 224, 122, 0.85),
    0 0 14px rgba(255, 190, 86, 0.45);
  transform: translateY(-50%) rotate(-24deg);
  animation: eagleFly 5s cubic-bezier(0.2, 0.66, 0.2, 1) infinite;
}

.panel-stratagem .stratagem-card.stratagem-eagle .stratagem-name::after {
  content: none;
}

@keyframes eagleFly {
  0% {
    left: -20px;
    top: 56%;
    opacity: 0;
    transform: translateY(-50%) rotate(-24deg) scale(0.9);
  }
  12% {
    opacity: 1;
  }
  58% {
    opacity: 1;
  }
  60% {
    left: 104%;
    top: -12%;
    opacity: 0;
    transform: translateY(-50%) rotate(-24deg) scale(1.02);
  }
  100% {
    left: 104%;
    top: -12%;
    opacity: 0;
    transform: translateY(-50%) rotate(-24deg) scale(1.02);
  }
}

.booster-subsection {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.booster-subsection h3 {
  margin: 0 0 6px;
  color: var(--yellow);
  font-family: 'Oxanium', sans-serif;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-align: center;
}

#booster-container {
  display: flex;
  justify-content: center;
}

#booster-container .card {
  width: auto;
  min-width: min(250px, 100%);
  max-width: min(320px, 100%);
  margin-top: 0;
  text-align: center;
  font-family: 'Oxanium', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(245, 248, 255, 0.95);
  border-color: rgba(255, 232, 18, 0.38);
  background:
    linear-gradient(
      160deg,
      rgba(255, 232, 18, 0.12),
      rgba(255, 232, 18, 0.03)
    ),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 18, 0.08),
    0 0 8px rgba(255, 232, 18, 0.14);
}

.panel-flash { animation: panelFlash 0.42s ease; }
@keyframes panelFlash {
  0% { box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
  30% { box-shadow: 0 0 0 1px rgba(255, 232, 18, 0.6), 0 0 22px rgba(255, 232, 18, 0.22); }
  100% { box-shadow: none; }
}

@media (max-width: 760px) {
  .app-shell { width: min(832px, calc(100% - 8px)); }

  .dropdowns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .dropdowns details > div {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: auto;
    transform: none;
    width: min(94vw, 620px);
    max-height: min(68svh, 520px);
    overflow: auto;
    z-index: 240;
  }

  .dropdowns details:nth-child(even) > div {
    left: auto;
    right: 0;
  }

  .panel { grid-column: span 6; }
  .panel-primary { grid-column: 1 / -1; }
  .stratagem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .warbond-grid {
    grid-template-columns: repeat(4, minmax(52px, 1fr)) !important;
    width: min(94vw, 620px) !important;
  }

  .warbond-grid .settings-option {
    width: 100%;
  }

  .panel-primary .attachments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  body { padding: 13px 8px 26px; }

  .header { min-height: 78px; }
  .header-copy h1 { font-size: 0.95rem; }

  .dropdowns {
    grid-template-columns: 1fr;
  }

  .dropdowns details > div,
  .dropdowns details:nth-child(even) > div {
    left: 0;
    right: 0;
    width: auto;
    max-height: min(70svh, 520px);
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .actions button:first-child { grid-column: span 2; }

  .panel,
  .panel-stratagem { grid-column: 1 / -1; }
  .panel-primary { grid-column: 1 / -1; }

  .stratagem-grid { grid-template-columns: 1fr; }

  .warbond-grid {
    width: min(95vw, 520px) !important;
    grid-template-columns: repeat(4, minmax(52px, 1fr)) !important;
  }

  .panel-primary .attachments {
    grid-template-columns: 1fr;
  }
}


.whats-new-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.whats-new-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.whats-new-close {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
}

.whats-new-callout {
  position: absolute;
  transform: translate(-100%, -50%);
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  max-width: 260px;
}

.whats-new-callout .arrow {
  color: #ff2a2a;
  font-size: 34px;
  text-shadow: 0 0 14px rgba(255, 42, 42, 0.9);
  line-height: 1;
}

.whats-new-callout .text {
  color: #fff;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 42, 42, 0.85);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(255, 42, 42, 0.35);
}
