:root {
  --cqh-br-bg: #111318;
  --cqh-br-card: #1d222b;
  --cqh-br-card2: #252c36;
  --cqh-br-line: #3b4656;
  --cqh-br-text: #f4f6fb;
  --cqh-br-muted: #aab3c0;
  --cqh-br-yellow: #f8c232;
  --cqh-br-orange: #ff8b2d;
  --cqh-br-red: #e84a36;
  --cqh-br-green: #73d849;
  --cqh-br-blue: #249ee9;
  --cqh-br-shadow: rgba(0,0,0,.45);
}

.cqh-br-app,
.cqh-br-app * {
  box-sizing: border-box;
}

.cqh-br-app {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px;
  color: var(--cqh-br-text);
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', system-ui, sans-serif;
  letter-spacing: .2px;
  background: radial-gradient(circle at top, #252c36 0, var(--cqh-br-bg) 55%, #07080b 100%);
  border: 3px solid #08090c;
  border-radius: 22px;
  box-shadow: 0 18px 50px var(--cqh-br-shadow);
  overflow: hidden;
  position: relative;
}

.cqh-br-app p,
.cqh-br-app small,
.cqh-br-app span,
.cqh-br-app button,
.cqh-br-app input {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.cqh-br-loading,
.cqh-br-error,
.cqh-br-login-required {
  padding: 24px;
  background: #1d222b;
  border-radius: 14px;
  border: 2px solid var(--cqh-br-line);
  color: #fff;
}

.cqh-br-error {
  border-color: var(--cqh-br-red);
}

.cqh-br-app.is-busy:after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
  pointer-events: none;
}

.cqh-br-topbar {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(115px, .55fr)) auto;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 14px;
}

.cqh-br-brand,
.cqh-br-res,
.cqh-br-mini-btn {
  min-height: 62px;
  padding: 10px 14px;
  border: 3px solid #08090c;
  background: linear-gradient(#242b34, #141820);
  border-radius: 12px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #050609;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cqh-br-brand strong {
  display: block;
  color: var(--cqh-br-yellow);
  font-size: 28px;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-brand small {
  color: var(--cqh-br-muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
}

.cqh-br-skull {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f7c63b;
  color: #161616;
  border: 3px solid #060606;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35);
}

.cqh-br-res {
  justify-content: center;
  flex-direction: column;
  gap: 0;
  text-align: center;
}

.cqh-br-res img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cqh-br-res span {
  color: var(--cqh-br-muted);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
}

.cqh-br-res strong {
  color: #fff;
  font-size: 23px;
  line-height: 1.05;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-mini-btn {
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.cqh-br-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
}

.cqh-br-sidebar {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cqh-br-nav-btn {
  border: 3px solid #07080b;
  background: linear-gradient(#333a44, #1a1f27);
  color: var(--cqh-br-text);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 16px;
  font-weight: 1000;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.09), 0 5px 0 #050609;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cqh-br-nav-btn span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #10141b;
  border-radius: 8px;
  border: 2px solid #000;
}

.cqh-br-nav-btn.is-active {
  background: linear-gradient(#ffd440, #d49500);
  color: #16120a;
}

.cqh-br-main {
  min-width: 0;
}

.cqh-br-grid-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, .8fr);
  gap: 14px;
}

.cqh-br-card {
  background: linear-gradient(#27313c, #171b23);
  border: 3px solid #08090c;
  border-radius: 16px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 8px 0 #050609;
  padding: 16px;
  overflow: hidden;
}

.cqh-br-full {
  margin-bottom: 14px;
}

.cqh-br-card h2,
.cqh-br-card h3,
.cqh-br-section-title {
  margin: 0 0 12px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-card h2 {
  font-size: 24px;
  color: var(--cqh-br-yellow);
}

.cqh-br-card h3 {
  font-size: 19px;
  color: #fff;
}

.cqh-br-card p {
  color: var(--cqh-br-muted);
  margin: 0 0 12px;
  font-weight: 650;
}

.cqh-br-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cqh-br-card-title h2 {
  margin: 0;
}

.cqh-br-card-title span {
  background: #0d1117;
  border: 2px solid var(--cqh-br-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  font-weight: 900;
}

.cqh-br-bunker-hero {
  display: grid;
  place-items: center;
  min-height: 230px;
  background: radial-gradient(circle at center, rgba(115,216,73,.18), rgba(0,0,0,0) 65%);
  margin: -4px 0 10px;
}

.cqh-br-bunker-hero img {
  max-width: min(430px, 100%);
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 8px rgba(0,0,0,.45));
}

.cqh-br-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cqh-br-stats-grid > div {
  background: #11161d;
  border: 2px solid #303a48;
  border-radius: 12px;
  padding: 10px;
}

.cqh-br-stats-grid small {
  display: block;
  color: var(--cqh-br-muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 11px;
}

.cqh-br-stats-grid strong {
  color: #fff;
  font-size: 21px;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-build-queue {
  margin-top: 12px;
  padding: 12px;
  background: #11161d;
  border: 2px solid #394655;
  border-radius: 12px;
}

.cqh-br-build-queue > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cqh-br-build-queue strong {
  color: var(--cqh-br-yellow);
  text-transform: uppercase;
}

.cqh-br-build-queue span {
  color: #fff;
  font-weight: 800;
}

.cqh-br-progress {
  height: 12px;
  background: #08090c;
  border: 2px solid #000;
  border-radius: 99px;
  overflow: hidden;
}

.cqh-br-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cqh-br-green), var(--cqh-br-yellow));
  border-radius: 99px;
}

.cqh-br-countdown {
  display: inline-block;
  color: var(--cqh-br-red);
  font-size: 18px;
  text-shadow: 1px 1px 0 #000;
}

.cqh-br-alert-card {
  border-color: #2b0502;
  background: linear-gradient(#502015, #1c1111);
}

.cqh-br-alert-card.is-safe {
  border-color: #07320f;
  background: linear-gradient(#1e3b20, #121b16);
}

.cqh-br-incoming-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(0,0,0,.25);
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}

.cqh-br-incoming-item img {
  width: 86px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 5px 3px rgba(0,0,0,.45));
}

.cqh-br-incoming-item strong {
  display: block;
  font-size: 18px;
  color: #fff;
}

.cqh-br-incoming-item span,
.cqh-br-incoming-item small {
  display: block;
  color: var(--cqh-br-muted);
  font-weight: 800;
}

.cqh-br-incoming-item.is-outgoing {
  background: #131a22;
}

.cqh-br-note {
  background: rgba(0,0,0,.22);
  border-left: 4px solid var(--cqh-br-yellow);
  padding: 10px;
  border-radius: 8px;
}

.cqh-br-empty-small {
  padding: 12px;
  border: 2px dashed #3c4654;
  border-radius: 12px;
  color: var(--cqh-br-muted);
  font-weight: 800;
}

.cqh-br-upgrade-mini {
  display: grid;
  gap: 10px;
}

.cqh-br-mini-upgrade {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #11161d;
  border: 2px solid #303a48;
  border-radius: 12px;
  padding: 8px;
}

.cqh-br-mini-upgrade img {
  width: 56px;
  height: 48px;
  object-fit: contain;
}

.cqh-br-mini-upgrade strong,
.cqh-br-mini-upgrade small {
  display: block;
}

.cqh-br-mini-upgrade small {
  color: var(--cqh-br-muted);
  font-weight: 800;
}

.cqh-br-report {
  padding: 10px 12px;
  border-radius: 12px;
  border: 2px solid #303a48;
  background: #11161d;
  margin-bottom: 10px;
}

.cqh-br-report.is-win {
  border-color: #3c8e2d;
}

.cqh-br-report.is-loss {
  border-color: #b64234;
}

.cqh-br-report strong,
.cqh-br-report span,
.cqh-br-report small {
  display: block;
}

.cqh-br-report strong {
  color: var(--cqh-br-yellow);
  text-transform: uppercase;
}

.cqh-br-report span {
  color: #fff;
  font-weight: 800;
}

.cqh-br-report small {
  color: var(--cqh-br-muted);
}

.cqh-br-choice-grid,
.cqh-br-upgrade-grid,
.cqh-br-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cqh-br-choice,
.cqh-br-upgrade-card,
.cqh-br-shop-pack {
  background: linear-gradient(#2c3540, #151a22);
  border: 3px solid #090b0e;
  border-radius: 16px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 6px 0 #050609;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}

.cqh-br-choice:hover,
.cqh-br-target:hover {
  transform: translateY(-2px);
}

.cqh-br-choice.is-selected,
.cqh-br-target.is-selected {
  border-color: var(--cqh-br-yellow);
  box-shadow: 0 0 0 3px rgba(248,194,50,.25), inset 0 2px 0 rgba(255,255,255,.12), 0 6px 0 #050609;
}

.cqh-br-choice img,
.cqh-br-upgrade-card img,
.cqh-br-shop-pack img {
  height: 120px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 3px rgba(0,0,0,.35));
}

.cqh-br-choice-stats {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.cqh-br-choice-stats span {
  background: #0d1117;
  border: 2px solid #303a48;
  border-radius: 9px;
  padding: 6px;
  font-weight: 900;
}

.cqh-br-section-title {
  margin: 22px 0 10px;
  color: var(--cqh-br-yellow);
}

.cqh-br-target-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cqh-br-target {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 3px solid #090b0e;
  background: linear-gradient(#27313b, #121820);
  cursor: pointer;
}

.cqh-br-target strong,
.cqh-br-target small,
.cqh-br-target span {
  display: block;
}

.cqh-br-target strong {
  color: #fff;
  font-size: 18px;
}

.cqh-br-target small,
.cqh-br-target span {
  color: var(--cqh-br-muted);
  font-weight: 850;
}

.cqh-br-level-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 10px 0;
}

.cqh-br-level-dots i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #0d1117;
  border: 2px solid #000;
}

.cqh-br-level-dots i.is-on {
  background: var(--cqh-br-green);
}

.cqh-br-btn,
.cqh-br-btn-small {
  border: 3px solid #050609;
  background: linear-gradient(#63cd3b, #2f7c22);
  color: #fff;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 #000;
  font-weight: 1000;
  border-radius: 10px;
  padding: 12px 15px;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), 0 4px 0 #050609;
}

.cqh-br-btn-small {
  padding: 8px 10px;
  font-size: 12px;
  border-width: 2px;
}

.cqh-br-btn-red {
  background: linear-gradient(#ff6247, #a8281d);
}

.cqh-br-btn:disabled,
.cqh-br-btn-small:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.cqh-br-table {
  display: grid;
  gap: 6px;
}

.cqh-br-table-head,
.cqh-br-table-row {
  display: grid;
  grid-template-columns: 2fr .5fr 1fr .8fr .8fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
}

.cqh-br-table-head {
  background: #0d1117;
  color: var(--cqh-br-yellow);
  text-transform: uppercase;
  font-weight: 1000;
}

.cqh-br-table-row {
  background: #151b23;
  color: #fff;
  font-weight: 800;
}

.cqh-br-note-item {
  background: #151b23;
  border: 2px solid #303a48;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
}

.cqh-br-note-item.is-unread {
  border-color: var(--cqh-br-yellow);
  background: #211d13;
}

.cqh-br-note-item strong,
.cqh-br-note-item span {
  display: block;
}

.cqh-br-note-item strong {
  color: var(--cqh-br-yellow);
  text-transform: uppercase;
}

.cqh-br-note-item span {
  color: #fff;
  font-weight: 750;
}

.cqh-br-toast {
  position: fixed;
  z-index: 999999;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: #11161d;
  color: #fff;
  border: 3px solid var(--cqh-br-yellow);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: 0 12px 35px rgba(0,0,0,.4);
  transition: .18s ease;
}

.cqh-br-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .cqh-br-topbar {
    grid-template-columns: repeat(2, 1fr);
  }
  .cqh-br-brand {
    grid-column: 1 / -1;
  }
  .cqh-br-shell {
    grid-template-columns: 1fr;
  }
  .cqh-br-sidebar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .cqh-br-grid-main,
  .cqh-br-choice-grid,
  .cqh-br-upgrade-grid,
  .cqh-br-shop-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .cqh-br-home-brand {
    gap: 12px;
  }
  .cqh-br-home-logo {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 15px;
    font-size: 28px;
  }
  .cqh-br-home-summary {
    gap: 10px;
  }
  .cqh-br-home-stat {
    min-height: 124px;
    border-radius: 22px;
    padding: 14px 12px;
  }
  .cqh-br-home-stat.is-wide {
    min-height: 96px;
  }
  .cqh-br-home-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 28px;
  }
  .cqh-br-home-stat-icon img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 540px) {
  .cqh-br-app {
    padding: 9px;
    border-radius: 14px;
  }
  .cqh-br-topbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .cqh-br-brand strong {
    font-size: 22px;
  }
  .cqh-br-res strong {
    font-size: 18px;
  }
  .cqh-br-sidebar {
    grid-template-columns: repeat(2, 1fr);
  }
  .cqh-br-nav-btn {
    padding: 10px;
    font-size: 13px;
  }
  .cqh-br-nav-btn span {
    width: 26px;
    height: 26px;
  }
  .cqh-br-card {
    padding: 12px;
  }
  .cqh-br-incoming-item,
  .cqh-br-mini-upgrade,
  .cqh-br-target {
    grid-template-columns: 1fr;
  }
  .cqh-br-table-head,
  .cqh-br-table-row {
    grid-template-columns: 1.5fr .5fr 1fr;
  }
  .cqh-br-table-head span:nth-child(4),
  .cqh-br-table-head span:nth-child(5),
  .cqh-br-table-row span:nth-child(4),
  .cqh-br-table-row span:nth-child(5) {
    display: none;
  }
}

.cqh-br-choice.is-scout {
  border-color: #2fb7ff;
  background: linear-gradient(#173246, #131c28);
}

.cqh-br-report.is-scout {
  border-left: 6px solid #2fb7ff;
  background: rgba(47, 183, 255, .11);
}

.cqh-br-incoming-item.is-scout {
  border-color: #2fb7ff;
}

/* Army update */
.cqh-br-army-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.cqh-br-army-card small {
  display: block;
  margin: 4px 0;
}
.cqh-br-army-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cqh-br-qty {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  opacity: .95;
}
.cqh-br-qty input {
  width: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.28);
  color: #fff;
  padding: 6px 8px;
}
.cqh-br-choice.is-disabled {
  opacity: .55;
}

/* Compact dashboard / 0.7 UI polish */
.cqh-br-home-overview {
  padding: 20px;
}

.cqh-br-home-overview-head {
  margin-bottom: 14px;
}

.cqh-br-home-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cqh-br-home-logo {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(#ffd451, #c99b18);
  border: 3px solid #06080b;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 5px 0 #000;
  color: #261500;
  font-size: 34px;
  line-height: 1;
}

.cqh-br-home-brand strong {
  display: block;
  color: var(--cqh-br-yellow);
  font-size: clamp(28px, 5vw, 54px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 3px 3px 0 #000;
}

.cqh-br-home-brand small {
  display: block;
  margin-top: 8px;
  color: var(--cqh-br-muted);
  font-size: clamp(16px, 2.6vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
}

.cqh-br-home-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cqh-br-home-stat {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px 16px;
  border-radius: 28px;
  border: 4px solid #07090d;
  background: linear-gradient(90deg, rgba(9,16,28,.96), rgba(39,51,69,.96));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 7px 0 #050608;
}

.cqh-br-home-stat.is-wide {
  grid-column: 1 / -1;
  min-height: 118px;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  gap: 14px;
}

.cqh-br-home-stat-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #070b12;
  border: 3px solid #06080b;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.06), 0 4px 0 #000;
  font-size: 34px;
  color: var(--cqh-br-yellow);
}

.cqh-br-home-stat-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cqh-br-home-stat small {
  color: var(--cqh-br-muted);
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
}

.cqh-br-home-stat strong {
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 1000;
  text-shadow: 3px 3px 0 #000;
}

.cqh-br-home-dashboard {
  display: grid;
  gap: 14px;
}

.cqh-br-home-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.cqh-br-slider-section .cqh-br-card-title span {
  max-width: 420px;
}

.cqh-br-slider-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.cqh-br-card-slider,
.cqh-br-horizontal-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 14px;
  scrollbar-width: thin;
}

.cqh-br-card-slider::-webkit-scrollbar,
.cqh-br-horizontal-strip::-webkit-scrollbar {
  height: 7px;
}

.cqh-br-card-slider::-webkit-scrollbar-thumb,
.cqh-br-horizontal-strip::-webkit-scrollbar-thumb {
  background: #3f4b5c;
  border-radius: 99px;
}

.cqh-br-slide-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  position: relative;
  cursor: default;
}

.cqh-br-defense-compact {
  flex-basis: 190px;
  padding: 12px;
}

.cqh-br-defense-compact img {
  height: 82px;
}

.cqh-br-defense-compact h3,
.cqh-br-army-card h3 {
  margin-bottom: 4px;
}

.cqh-br-defense-compact p,
.cqh-br-army-card p,
.cqh-br-upgrade-card p {
  display: none;
}

.cqh-br-army-card img {
  height: 118px;
}

.cqh-br-compact-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin: 8px 0;
}

.cqh-br-compact-stats span {
  background: #0d1117;
  border: 1px solid #303a48;
  border-radius: 8px;
  padding: 5px;
  color: var(--cqh-br-muted);
  font-size: 11px;
  font-weight: 850;
}

.cqh-br-slide-arrow {
  width: 38px;
  height: 76px;
  border: 3px solid #07080b;
  border-radius: 14px;
  background: linear-gradient(#333a44, #171c24);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 5px 0 #050609;
}

.cqh-br-info-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #9aa6b6;
  background: linear-gradient(#2c3540, #0f141c);
  color: #fff;
  font-weight: 1000;
  font-family: Georgia, serif !important;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 0 #000;
}

.cqh-br-mini-tile {
  position: relative;
  flex: 0 0 190px;
  grid-template-columns: 50px 1fr;
  grid-template-rows: auto auto;
}

.cqh-br-mini-tile .cqh-br-btn-small {
  grid-column: 1 / -1;
}

.cqh-br-quick-strip .cqh-br-card-title {
  margin-bottom: 4px;
}

.cqh-br-info-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.6);
  padding: 20px;
}

.cqh-br-info-overlay[hidden] {
  display: none !important;
}

.cqh-br-info-box {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(#2b3440, #151a22);
  border: 3px solid #59687b;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.65), inset 0 2px 0 rgba(255,255,255,.08);
  padding: 22px;
}

.cqh-br-info-box h3 {
  margin: 0 40px 12px 0;
  color: var(--cqh-br-yellow);
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-info-box p {
  margin: 0;
  color: #fff;
  line-height: 1.45;
  font-weight: 700;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cqh-br-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid #000;
  background: linear-gradient(#ff6247, #a8281d);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-weight: 1000;
}

.cqh-br-report.is-compact {
  margin-bottom: 0;
  min-height: 100%;
}

.cqh-br-report-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.cqh-br-report-head img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cqh-br-starter .cqh-br-note-item:last-child {
  margin-bottom: 0;
}

@media (min-width: 981px) {
  .cqh-br-home-dashboard > .cqh-br-bunker-card {
    display: grid;
    grid-template-columns: minmax(290px, .9fr) minmax(320px, 1fr);
    column-gap: 18px;
    align-items: center;
  }
  .cqh-br-home-dashboard > .cqh-br-bunker-card .cqh-br-card-title,
  .cqh-br-home-dashboard > .cqh-br-bunker-card .cqh-br-build-queue {
    grid-column: 1 / -1;
  }
  .cqh-br-home-dashboard > .cqh-br-bunker-card .cqh-br-bunker-hero {
    min-height: 190px;
  }
}

@media (max-width: 980px) {
  .cqh-br-home-two {
    grid-template-columns: 1fr;
  }
  .cqh-br-slider-wrap {
    grid-template-columns: 1fr;
  }
  .cqh-br-slide-arrow {
    display: none;
  }
  .cqh-br-sidebar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    background: linear-gradient(rgba(17,19,24,.2), #07080b 35%);
    padding: 8px 0 2px;
    margin-bottom: 14px;
  }
  .cqh-br-shell {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 540px) {
  .cqh-br-card-slider,
  .cqh-br-horizontal-strip {
    gap: 10px;
  }
  .cqh-br-slide-card {
    flex-basis: 72vw;
  }
  .cqh-br-defense-compact,
  .cqh-br-mini-tile {
    flex-basis: 46vw;
  }
  .cqh-br-compact-stats {
    grid-template-columns: 1fr;
  }
  .cqh-br-army-actions {
    flex-direction: column;
  }
}


/* 0.7.1 mobile polish: fixed bottom nav, smaller info buttons, tighter dashboard */
.cqh-br-info-btn,
.cqh-br-app .cqh-br-info-btn,
.cqh-br-upgrade-card .cqh-br-info-btn,
.cqh-br-mini-tile .cqh-br-info-btn {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1.5px solid #b6c0cc !important;
  background: linear-gradient(#252d37, #0b0f15) !important;
  color: #ffffff !important;
  font-family: Georgia, serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 18px !important;
  text-align: center !important;
  text-transform: none !important;
  display: grid !important;
  place-items: center !important;
  box-shadow: 0 1px 0 #000 !important;
  z-index: 6 !important;
  cursor: pointer !important;
}

.cqh-br-info-btn:hover,
.cqh-br-info-btn:focus {
  border-color: var(--cqh-br-yellow) !important;
  color: var(--cqh-br-yellow) !important;
}

.cqh-br-army-card,
.cqh-br-defense-compact,
.cqh-br-mini-tile {
  position: relative !important;
}

.cqh-br-army-card .cqh-br-compact-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cqh-br-army-card .cqh-br-compact-stats span {
  padding: 4px 3px;
  font-size: 10px;
  line-height: 1.15;
}

.cqh-br-army-actions .cqh-br-btn-small {
  flex: 1 1 100%;
}

.cqh-br-quick-strip {
  padding-top: 12px;
  padding-bottom: 12px;
}

.cqh-br-quick-strip .cqh-br-card-title h2 {
  font-size: 20px;
}

.cqh-br-mini-tile {
  padding: 8px 9px;
  min-height: 108px;
}

.cqh-br-mini-tile img {
  width: 46px;
  height: 42px;
}

.cqh-br-mini-tile strong {
  font-size: 14px;
  line-height: 1.1;
}

.cqh-br-mini-tile small {
  font-size: 11px;
}

.cqh-br-mini-tile .cqh-br-btn-small {
  padding: 7px 8px;
}

.cqh-br-latest-battle .cqh-br-card-title,
.cqh-br-alert-card .cqh-br-card-title {
  margin-bottom: 8px;
}

.cqh-br-report.is-compact {
  padding: 9px 10px;
}

.cqh-br-report.is-compact .cqh-br-report-head img {
  width: 38px;
  height: 38px;
}

.cqh-br-report.is-compact span {
  font-size: 14px;
  line-height: 1.35;
}

.cqh-br-report.is-compact small {
  font-size: 12px;
}

@media (max-width: 980px) {
  .cqh-br-app {
    padding-bottom: 96px !important;
  }

  .cqh-br-shell {
    display: block !important;
  }

  .cqh-br-sidebar {
    position: fixed !important;
    left: max(8px, env(safe-area-inset-left)) !important;
    right: max(8px, env(safe-area-inset-right)) !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    z-index: 999990 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: auto !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 7px !important;
    background: linear-gradient(#111821, #05070b) !important;
    border: 2px solid #243141 !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 35px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.08) !important;
  }

  .cqh-br-nav-btn {
    min-width: 0 !important;
    padding: 8px 4px !important;
    border-width: 2px !important;
    border-radius: 11px !important;
    font-size: 10px !important;
    line-height: 1.05 !important;
    text-align: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 3px 0 #050609 !important;
  }

  .cqh-br-nav-btn span {
    width: 27px !important;
    height: 27px !important;
    font-size: 15px !important;
    margin: 0 auto !important;
  }

  .cqh-br-main {
    width: 100% !important;
  }

  .cqh-br-topbar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .cqh-br-brand {
    grid-column: 1 / -1 !important;
    min-height: 56px !important;
  }

  .cqh-br-res,
  .cqh-br-mini-btn {
    min-height: 58px !important;
    padding: 8px 6px !important;
  }

  .cqh-br-res span {
    font-size: 10px !important;
  }

  .cqh-br-res strong {
    font-size: 18px !important;
  }

  .cqh-br-card {
    padding: 12px !important;
    margin-bottom: 10px !important;
    border-radius: 14px !important;
  }

  .cqh-br-card h2 {
    font-size: 23px !important;
  }

  .cqh-br-card-title {
    margin-bottom: 8px !important;
  }

  .cqh-br-card-title span {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }

  .cqh-br-slider-wrap {
    display: block !important;
  }

  .cqh-br-card-slider,
  .cqh-br-horizontal-strip {
    gap: 10px !important;
    padding: 5px 2px 10px !important;
    scrollbar-width: none !important;
  }

  .cqh-br-card-slider::-webkit-scrollbar,
  .cqh-br-horizontal-strip::-webkit-scrollbar {
    display: none !important;
  }

  .cqh-br-slide-card {
    flex: 0 0 58vw !important;
    max-width: 240px !important;
    padding: 10px !important;
  }

  .cqh-br-army-card img {
    height: 92px !important;
  }

  .cqh-br-army-card h3,
  .cqh-br-defense-compact h3 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }

  .cqh-br-level-dots {
    margin: 6px 0 !important;
  }

  .cqh-br-level-dots i {
    width: 13px !important;
    height: 13px !important;
  }

  .cqh-br-army-card small,
  .cqh-br-defense-compact small {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }

  .cqh-br-army-actions {
    gap: 6px !important;
    margin-top: 7px !important;
  }

  .cqh-br-army-actions .cqh-br-btn-small:nth-child(2) {
    display: none !important;
  }

  .cqh-br-defense-compact {
    flex: 0 0 45vw !important;
    max-width: 190px !important;
    min-height: 210px !important;
    padding: 9px !important;
  }

  .cqh-br-defense-compact img {
    height: 78px !important;
  }

  .cqh-br-defense-compact .cqh-br-btn-small {
    width: 100% !important;
    padding: 7px 5px !important;
    font-size: 10px !important;
  }

  .cqh-br-mini-tile {
    flex: 0 0 42vw !important;
    max-width: 176px !important;
  }

  .cqh-br-home-two {
    gap: 10px !important;
  }

  .cqh-br-alert-card,
  .cqh-br-latest-battle {
    padding: 12px !important;
  }

  .cqh-br-alert-card h2,
  .cqh-br-latest-battle h2 {
    font-size: 22px !important;
  }

  .cqh-br-alert-card p {
    margin-bottom: 8px !important;
    font-size: 14px !important;
  }

  .cqh-br-alert-card .cqh-br-btn-red {
    padding: 10px 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 540px) {
  .cqh-br-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cqh-br-slide-card {
    flex-basis: 74vw !important;
    max-width: 310px !important;
  }

  .cqh-br-army-card {
    min-height: 0 !important;
  }

  .cqh-br-defense-compact,
  .cqh-br-mini-tile {
    flex-basis: 47vw !important;
  }

  .cqh-br-compact-stats {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
  }

  .cqh-br-compact-stats span {
    flex: 1 1 auto !important;
    min-width: 72px !important;
  }

  .cqh-br-info-btn,
  .cqh-br-app .cqh-br-info-btn,
  .cqh-br-upgrade-card .cqh-br-info-btn,
  .cqh-br-mini-tile .cqh-br-info-btn {
    top: 7px !important;
    right: 7px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    font-size: 12px !important;
    line-height: 17px !important;
  }
}

/* 0.7.2 small polish pass */
.cqh-br-topbar {
  align-items: stretch;
}

.cqh-br-brand {
  position: relative;
  overflow: hidden;
}

.cqh-br-brand .cqh-br-info-btn,
.cqh-br-topbar .cqh-br-info-btn {
  display: none !important;
}

.cqh-br-res,
.cqh-br-mini-btn {
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
}

.cqh-br-res-ico {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(#111720, #070b10);
  border: 2px solid #05070a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.cqh-br-res-ico img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.cqh-br-res-ico b {
  display: block;
  font-size: 19px;
  line-height: 1;
}

.cqh-br-res-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

.cqh-br-res span,
.cqh-br-mini-btn .cqh-br-res-copy span {
  color: var(--cqh-br-muted);
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
}

.cqh-br-res strong,
.cqh-br-mini-btn .cqh-br-res-copy strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.04;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-res-xp .cqh-br-res-ico,
.cqh-br-res-risk .cqh-br-res-ico {
  color: var(--cqh-br-yellow);
}

.cqh-br-mini-btn {
  cursor: pointer;
}

.cqh-br-mini-btn .cqh-br-res-ico {
  color: var(--cqh-br-yellow);
}

.cqh-br-mini-btn .cqh-br-res-copy strong {
  color: var(--cqh-br-yellow);
}

.cqh-br-info-box {
  padding: 22px 64px 22px 22px;
}

.cqh-br-info-box h3 {
  margin: 0 0 12px;
}

.cqh-br-info-close {
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 #000;
}

/* keep info dots small and tucked into the card corner */
.cqh-br-slide-card > .cqh-br-info-btn,
.cqh-br-mini-tile > .cqh-br-info-btn,
.cqh-br-upgrade-card > .cqh-br-info-btn {
  top: 8px !important;
  right: 8px !important;
}

@media (max-width: 980px) {
  .cqh-br-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .cqh-br-brand {
    grid-column: 1 / -1 !important;
  }

  .cqh-br-res,
  .cqh-br-mini-btn {
    min-height: 62px !important;
    padding: 9px 10px !important;
  }

  .cqh-br-res strong,
  .cqh-br-mini-btn .cqh-br-res-copy strong {
    font-size: 19px !important;
  }

  .cqh-br-res-ico {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .cqh-br-res-ico img {
    width: 22px;
    height: 22px;
  }

  .cqh-br-res-ico b {
    font-size: 17px;
  }

  .cqh-br-info-box {
    padding: 18px 54px 18px 18px;
  }

  .cqh-br-info-close {
    right: 12px;
    width: 22px;
    height: 22px;
    font-size: 16px;
  }
}


/* 0.7.6 top icon graphics polish */
.cqh-br-skull img,
.cqh-br-home-logo img,
.cqh-br-res-ico img,
.cqh-br-home-stat-icon img,
.cqh-br-nav-btn span img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cqh-br-skull img {
  width: 72%;
  height: 72%;
}

.cqh-br-home-logo img {
  width: 78%;
  height: 78%;
}

.cqh-br-home-stat-icon img {
  width: 72%;
  height: 72%;
}

.cqh-br-res-ico img {
  width: 76%;
  height: 76%;
}

.cqh-br-nav-btn span img {
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

.cqh-br-home-stat-icon b,
.cqh-br-res-ico b {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--cqh-br-yellow);
  letter-spacing: .02em;
}



/* 0.7.7 four-zone status button */
.cqh-br-quad-menu {
  position: relative;
  width: min(260px, 62vw);
  aspect-ratio: 1 / 1;
  margin: 10px auto 18px;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.48));
}

.cqh-br-quad-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.cqh-br-quad-zone {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(255, 210, 60, 0);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  z-index: 3;
}

.cqh-br-quad-zone span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.cqh-br-quad-zone:hover,
.cqh-br-quad-zone:focus-visible {
  background: rgba(255, 207, 50, .10);
  outline: none;
}

.cqh-br-quad-zone:active {
  background: rgba(255, 207, 50, .24);
}

.cqh-br-quad-risk {
  clip-path: polygon(18% 0, 82% 0, 64% 40%, 54% 46%, 46% 46%, 36% 40%);
}

.cqh-br-quad-safe,
.cqh-br-quad-defense {
  clip-path: polygon(0 18%, 40% 36%, 46% 46%, 46% 54%, 40% 64%, 0 82%);
}

.cqh-br-quad-bc {
  clip-path: polygon(100% 18%, 60% 36%, 54% 46%, 54% 54%, 60% 64%, 100% 82%);
}

.cqh-br-quad-mail,
.cqh-br-quad-vault {
  clip-path: polygon(18% 100%, 82% 100%, 64% 60%, 54% 54%, 46% 54%, 36% 60%);
}

.cqh-br-home-summary-simple .cqh-br-home-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.cqh-br-home-summary-simple .cqh-br-home-stat-icon img {
  width: 31px;
  height: 31px;
}

.cqh-br-home-summary-simple .cqh-br-home-stat-icon b {
  color: var(--cqh-br-yellow);
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 700px) {
  .cqh-br-quad-menu {
    width: min(230px, 58vw);
    margin-top: 8px;
    margin-bottom: 14px;
  }

  .cqh-br-home-summary-simple .cqh-br-home-stat {
    min-height: 104px;
  }

  .cqh-br-home-summary-simple .cqh-br-home-stat.is-wide {
    min-height: 82px;
  }
}


/* 0.7.8: one four-zone dashboard button only */
.cqh-br-home-overview .cqh-br-home-summary,
.cqh-br-home-overview .cqh-br-home-summary-simple {
  display: none !important;
}

.cqh-br-home-overview {
  min-height: calc(100vh - 145px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.cqh-br-home-overview-head {
  flex: 0 0 auto;
  margin-bottom: 18px !important;
}

.cqh-br-quad-menu {
  width: min(430px, 82vw) !important;
  margin: clamp(18px, 6vh, 56px) auto 20px !important;
  background: transparent !important;
}

.cqh-br-quad-img {
  background: transparent !important;
  border: 0 !important;
}

.cqh-br-quad-zone {
  -webkit-tap-highlight-color: rgba(255, 204, 55, .25);
}

.cqh-br-quad-risk:hover,
.cqh-br-quad-risk:focus-visible { background: rgba(255, 60, 35, .12); }
.cqh-br-quad-safe:hover,
.cqh-br-quad-safe:focus-visible,
.cqh-br-quad-defense:hover,
.cqh-br-quad-defense:focus-visible { background: rgba(100, 180, 255, .12); }
.cqh-br-quad-bc:hover,
.cqh-br-quad-bc:focus-visible { background: rgba(255, 210, 60, .14); }
.cqh-br-quad-mail:hover,
.cqh-br-quad-mail:focus-visible,
.cqh-br-quad-vault:hover,
.cqh-br-quad-vault:focus-visible { background: rgba(255, 210, 60, .14); }

@media (max-width: 700px) {
  .cqh-br-home-overview {
    min-height: calc(100vh - 122px);
    padding-bottom: 110px !important;
  }
  .cqh-br-quad-menu {
    width: min(380px, 86vw) !important;
    margin-top: clamp(28px, 8vh, 72px) !important;
  }
}

@media (max-width: 420px) {
  .cqh-br-quad-menu {
    width: min(340px, 86vw) !important;
  }
}


/* 0.7.9 safe-vault emblem update */
.cqh-br-quad-img {
  mix-blend-mode: normal;
  background-color: transparent !important;
}
.cqh-br-quad-menu {
  overflow: visible;
}

/* 0.8.0 home overview layout refresh */
.cqh-br-home-overview {
  min-height: 0 !important;
  padding: 20px !important;
}

.cqh-br-home-bunker-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px 0 28px;
}

.cqh-br-home-bunker {
  width: min(420px, 78vw);
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.35));
}

.cqh-br-home-overview .cqh-br-quad-menu {
  width: min(290px, 62vw) !important;
  margin: 0 auto 24px !important;
}

.cqh-br-quad-zone.is-active {
  background: rgba(255, 205, 50, .12);
}

.cqh-br-overview-panel {
  border-radius: 28px;
  border: 4px solid rgba(148, 179, 229, .18);
  background: linear-gradient(90deg, rgba(8,16,28,.96), rgba(39,51,69,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 22px rgba(0,0,0,.24);
  padding: 18px;
}

.cqh-br-overview-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.cqh-br-overview-panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cqh-br-overview-panel-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(5, 9, 16, .72);
  border: 3px solid rgba(7, 10, 14, .92);
  box-shadow: 0 5px 0 rgba(0,0,0,.7);
}

.cqh-br-overview-panel-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.cqh-br-overview-panel-title strong {
  display: block;
  color: var(--cqh-br-yellow);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.cqh-br-overview-panel-title small {
  display: block;
  margin-top: 4px;
  color: #d3d9e6;
  font-size: 15px;
  font-weight: 700;
}

.cqh-br-overview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(3, 8, 18, .9);
  border: 3px solid rgba(116, 136, 168, .24);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.cqh-br-overview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cqh-br-overview-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(95, 118, 154, .18);
  background: rgba(3, 9, 18, .56);
}

.cqh-br-overview-stat.is-active {
  border-color: rgba(255, 212, 81, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 212, 81, .22), 0 0 0 1px rgba(255,212,81,.1);
}

.cqh-br-overview-stat-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(5, 10, 18, .9);
  border: 2px solid rgba(8, 12, 18, .95);
}

.cqh-br-overview-stat-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.cqh-br-overview-stat small {
  display: block;
  margin-bottom: 3px;
  color: #aeb7c7;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cqh-br-overview-stat strong {
  display: block;
  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,.88);
}

.cqh-br-overview-panel.is-risk .cqh-br-overview-badge {
  border-color: rgba(239, 93, 71, .35);
}

@media (max-width: 700px) {
  .cqh-br-home-overview {
    padding-bottom: 20px !important;
  }
  .cqh-br-home-bunker {
    width: min(360px, 78vw);
  }
  .cqh-br-home-overview .cqh-br-quad-menu {
    width: min(248px, 64vw) !important;
    margin-bottom: 18px !important;
  }
  .cqh-br-overview-panel-head {
    flex-direction: column;
    align-items: stretch;
  }
  .cqh-br-overview-badge {
    align-self: flex-end;
  }
  .cqh-br-overview-stats {
    grid-template-columns: 1fr;
  }
}

/* 0.8.2 repair, damage and revenge UI */
.cqh-br-active-build {
  padding: 14px 16px;
}

.cqh-br-damage-line {
  width: 100%;
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
  color: #dce5f4;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.cqh-br-damage-line i {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.12);
}

.cqh-br-damage-line b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2b84b, #d94b3f);
}

.cqh-br-upgrade-card.is-damaged {
  border-color: rgba(230, 92, 74, .55);
  box-shadow: 0 0 0 1px rgba(230,92,74,.15), 0 10px 24px rgba(0,0,0,.28);
}

.cqh-br-btn-repair:not(:disabled) {
  background: linear-gradient(#ffd451, #c58f16);
  color: #1b1202;
}

.cqh-br-revenge-banner {
  border-radius: 18px;
  border: 3px solid rgba(220, 72, 52, .55);
  background: linear-gradient(90deg, rgba(70, 14, 10, .95), rgba(22, 8, 8, .95));
  color: #fff;
  padding: 14px 16px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
}

.cqh-br-revenge-banner strong {
  color: var(--cqh-br-yellow);
}

.cqh-br-target.is-revenge {
  border-color: rgba(255, 210, 60, .75);
  background: linear-gradient(90deg, rgba(92, 42, 10, .55), rgba(22, 27, 36, .92));
}

.cqh-br-revenge-btn {
  align-self: flex-start;
  margin-top: 10px;
}

/* 0.8.5 Back to Creator Quest Hub button */
.cqh-br-back-cqh-btn {
  text-decoration: none !important;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  margin-top: 4px;
  min-height: 70px;
  justify-content: flex-start;
  background: linear-gradient(#171f2a, #070a10) !important;
  border-color: rgba(248,194,50,.72) !important;
  color: #fff !important;
}

.cqh-br-back-cqh-btn:hover,
.cqh-br-back-cqh-btn:focus-visible {
  border-color: var(--cqh-br-yellow) !important;
  box-shadow: 0 0 0 3px rgba(248,194,50,.20), inset 0 2px 0 rgba(255,255,255,.10), 0 5px 0 #050609 !important;
  outline: none;
}

.cqh-br-back-cqh-btn span {
  color: var(--cqh-br-yellow);
  font-size: 20px;
  font-weight: 1000;
}

.cqh-br-back-cqh-btn em {
  font-style: normal;
  text-transform: uppercase;
  font-weight: 1000;
}

@media (max-width: 980px) {
  .cqh-br-sidebar {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .cqh-br-back-cqh-btn {
    margin-top: 0 !important;
    min-height: 0 !important;
    padding: 8px 4px !important;
  }

  .cqh-br-back-cqh-btn em {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
  }

  .cqh-br-back-cqh-btn span {
    font-size: 18px !important;
  }
}

@media (max-width: 420px) {
  .cqh-br-sidebar {
    gap: 4px !important;
    padding: 6px !important;
  }

  .cqh-br-nav-btn {
    font-size: 9px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
}


.cqh-br-target.is-shielded {
  opacity: 0.78;
}

.cqh-br-target.is-shielded strong::after {
  content: ' 🛡';
}

/* 0.9.0 Daily Radio Tasks + Radio Supply Line */
.cqh-br-radio-head,
.cqh-br-supply-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  position: relative;
}

.cqh-br-radio-head::after,
.cqh-br-supply-head::after {
  content: '';
  position: absolute;
  right: 22px;
  top: 12px;
  width: 210px;
  height: 210px;
  opacity: .08;
  background: radial-gradient(circle, rgba(74,198,255,.8) 0 2px, transparent 3px 100%), repeating-radial-gradient(circle, rgba(74,198,255,.8) 0 1px, transparent 2px 28px);
  pointer-events: none;
}

.cqh-br-radio-head > img,
.cqh-br-supply-head > img {
  width: 170px;
  height: 135px;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.55));
}

.cqh-br-radio-head h2,
.cqh-br-supply-head h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .95;
  color: var(--cqh-br-yellow);
  text-shadow: 0 4px 0 #06070b, 0 0 18px rgba(248,194,50,.16);
}

.cqh-br-radio-head p,
.cqh-br-supply-head p {
  margin: 0 0 8px;
  color: #dbe6f4;
  font-weight: 900;
  font-size: 18px;
}

.cqh-br-radio-head small,
.cqh-br-supply-head small {
  color: #9eadbe;
  font-weight: 900;
}

.cqh-br-daily-panel,
.cqh-br-supply-panel,
.cqh-br-inventory-panel {
  margin-top: 14px;
}

.cqh-br-daily-list {
  display: grid;
  gap: 10px;
}

.cqh-br-daily-task-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 126px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  min-height: 150px;
  border: 3px solid #06080d;
  border-radius: 18px;
  background: linear-gradient(180deg, #253240, #121923);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #050609;
  padding: 14px;
}

.cqh-br-daily-task-card.is-complete {
  border-color: #44c833;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 0 0 2px rgba(68,200,51,.16), 0 5px 0 #050609;
}

.cqh-br-daily-task-card.is-claimed {
  opacity: .82;
}

.cqh-br-task-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(#2b3541,#080b10);
  border: 2px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 23px;
  font-weight: 1000;
  box-shadow: 0 4px 0 #050609;
}

.cqh-br-task-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.55));
}

.cqh-br-task-main h3 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 28px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #050609;
}

.cqh-br-task-main p {
  margin: 0 0 10px;
  color: #b9c5d4;
  font-size: 16px;
  font-weight: 800;
}

.cqh-br-task-progress {
  position: relative;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #050609;
  background: #080d14;
  overflow: hidden;
  max-width: 320px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.55);
}

.cqh-br-task-progress i,
.cqh-br-signal-meter i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(#6dea4c, #219016);
}

.cqh-br-task-progress b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 2px 0 #050609;
}

.cqh-br-task-rewards {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #fff;
  font-weight: 1000;
}

.cqh-br-task-rewards span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.cqh-br-task-rewards img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cqh-br-task-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.cqh-br-task-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #75e451;
  text-transform: uppercase;
  font-weight: 1000;
}

.cqh-br-task-status img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.cqh-br-daily-bonus {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 170px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 3px solid rgba(248,194,50,.58);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(116,77,9,.48), rgba(13,19,27,.95));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 5px 0 #050609;
}

.cqh-br-daily-bonus > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cqh-br-daily-bonus > div:first-child img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.cqh-br-daily-bonus strong {
  display: block;
  color: var(--cqh-br-yellow);
  font-size: 24px;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #050609;
}

.cqh-br-daily-bonus span {
  color: #d6dfeb;
  font-weight: 800;
}

.cqh-br-signal-meter {
  width: 260px;
  padding: 16px;
  border-radius: 16px;
  border: 3px solid #06080d;
  background: linear-gradient(180deg, #202a36, #0c1118);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 4px 0 #050609;
}

.cqh-br-signal-meter strong {
  display: block;
  color: var(--cqh-br-yellow);
  font-size: 30px;
  text-shadow: 0 3px 0 #050609;
}

.cqh-br-signal-meter span,
.cqh-br-signal-meter em {
  color: #b8c6d5;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.cqh-br-signal-meter i {
  display: block;
  height: 16px;
  border-radius: 99px;
  border: 2px solid #050609;
  background: #070b10;
  margin: 10px 0 7px;
  overflow: hidden;
}

.cqh-br-supply-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.cqh-br-supply-label {
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  text-align: center;
  border: 3px solid #050609;
  border-radius: 16px;
  background: linear-gradient(#142a33,#071016);
  padding: 10px;
  box-shadow: 0 4px 0 #050609;
}

.cqh-br-supply-row.is-premium .cqh-br-supply-label {
  background: linear-gradient(#382706,#0b0904);
  border-color: rgba(248,194,50,.55);
}

.cqh-br-supply-label img {
  width: 70px;
  height: 96px;
  object-fit: contain;
}

.cqh-br-supply-label strong {
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}

.cqh-br-supply-label span {
  color: var(--cqh-br-yellow);
  text-transform: uppercase;
  font-weight: 1000;
}

.cqh-br-supply-rewards {
  display: grid;
  grid-template-columns: repeat(10, minmax(96px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cqh-br-supply-cell {
  position: relative;
  min-height: 156px;
  padding: 30px 8px 8px;
  border: 2px solid rgba(118,142,165,.32);
  border-radius: 12px;
  background: linear-gradient(180deg, #202d38, #0d121a);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.cqh-br-supply-row.is-premium .cqh-br-supply-cell {
  background: linear-gradient(180deg, rgba(92,63,11,.75), rgba(16,12,7,.92));
  border-color: rgba(248,194,50,.35);
}

.cqh-br-supply-cell.is-unlocked {
  border-color: rgba(97,217,66,.7);
}

.cqh-br-supply-cell.is-claimed {
  opacity: .72;
}

.cqh-br-supply-level {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #111820;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 1000;
}

.cqh-br-supply-cell img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cqh-br-supply-cell strong {
  color: #fff;
  font-size: 13px;
  min-height: 32px;
}

.cqh-br-supply-cell em {
  color: #9fb0c3;
  font-style: normal;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
}

.cqh-br-supply-cell em img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.cqh-br-inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cqh-br-inventory-grid > div {
  border: 3px solid #06080d;
  border-radius: 16px;
  background: linear-gradient(180deg, #202a35, #0d131b);
  padding: 14px;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 4px 0 #050609;
}

.cqh-br-inventory-grid img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.cqh-br-inventory-grid strong {
  color: #fff;
  text-transform: uppercase;
}

.cqh-br-inventory-grid span {
  color: var(--cqh-br-yellow);
  font-size: 26px;
  font-weight: 1000;
}

.cqh-br-inventory-grid small {
  color: #b4c0ce;
  font-weight: 800;
}

.cqh-br-inventory-grid select {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #050609;
  background: #101721;
  color: #fff;
  padding: 8px;
}

@media (max-width: 1100px) {
  .cqh-br-radio-head,
  .cqh-br-supply-head,
  .cqh-br-daily-task-card,
  .cqh-br-daily-bonus,
  .cqh-br-supply-row,
  .cqh-br-inventory-grid {
    grid-template-columns: 1fr;
  }

  .cqh-br-radio-head > img,
  .cqh-br-supply-head > img {
    width: 140px;
    height: 110px;
  }

  .cqh-br-signal-meter {
    width: auto;
  }

  .cqh-br-task-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 980px) {
  .cqh-br-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Daily Radio / Supply Line refinements */
.cqh-br-supply-track {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.cqh-br-supply-labels,
.cqh-br-supply-grid {
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
}

.cqh-br-supply-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.cqh-br-supply-grid {
  min-width: 1040px;
}

.cqh-br-supply-label.is-premium {
  background: linear-gradient(#382706,#0b0904);
  border-color: rgba(248,194,50,.55);
}

.cqh-br-supply-rewards {
  overflow: visible;
  padding-bottom: 0;
  grid-template-columns: repeat(10, minmax(96px, 1fr));
}

.cqh-br-supply-rewards.is-premium .cqh-br-supply-cell {
  background: linear-gradient(180deg, rgba(92,63,11,.75), rgba(16,12,7,.92));
  border-color: rgba(248,194,50,.35);
}

.cqh-br-supply-cell {
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.cqh-br-supply-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(248,194,50,.7);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #050609, 0 0 14px rgba(248,194,50,.12);
}

.cqh-br-supply-hint {
  color: #f8c232;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: .72;
}

.cqh-br-inventory-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cqh-br-inventory-grid > div.is-highlighted {
  border-color: rgba(100, 231, 72, .95);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 4px 0 #050609, 0 0 28px rgba(100,231,72,.45);
  animation: cqh-br-radio-item-pulse .55s ease-in-out 0s 3 alternate;
}

@keyframes cqh-br-radio-item-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@media (max-width: 1100px) {
  .cqh-br-supply-track {
    grid-template-columns: 1fr;
  }

  .cqh-br-supply-labels {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    grid-template-rows: auto;
  }

  .cqh-br-inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cqh-br-inventory-grid,
  .cqh-br-supply-labels {
    grid-template-columns: 1fr;
  }
}


/* Mobile Supply Track: keep Open Signal and Encrypted Channel as compact left labels while both reward rows share one horizontal swipe. */
.cqh-br-reward-label-short {
  display: none;
}

@media (max-width: 760px) {
  .cqh-br-supply-panel {
    padding: 10px;
  }

  .cqh-br-supply-panel .cqh-br-card-title {
    align-items: center;
    gap: 8px;
  }

  .cqh-br-supply-panel .cqh-br-card-title h2 {
    font-size: 25px;
  }

  .cqh-br-supply-panel .cqh-br-card-title .cqh-br-btn-small {
    padding: 9px 12px;
    font-size: 11px;
  }

  .cqh-br-supply-track {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 6px;
    align-items: stretch;
    margin: 8px 0 4px;
  }

  .cqh-br-supply-labels {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
  }

  .cqh-br-supply-label {
    min-width: 0;
    padding: 6px 4px;
    gap: 4px;
    border-width: 2px;
    border-radius: 12px;
  }

  .cqh-br-supply-label img {
    width: 42px;
    height: 58px;
  }

  .cqh-br-supply-label strong {
    font-size: 10px;
    line-height: .95;
    letter-spacing: -.3px;
  }

  .cqh-br-supply-label span {
    font-size: 10px;
    line-height: 1;
  }

  .cqh-br-supply-label .cqh-br-btn-small {
    width: 100%;
    min-height: 0;
    padding: 5px 3px;
    border-radius: 8px;
    font-size: 8.5px;
    line-height: 1.05;
    white-space: normal;
  }

  .cqh-br-supply-scroll {
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .cqh-br-supply-grid {
    min-width: 680px;
    gap: 8px;
  }

  .cqh-br-supply-rewards {
    grid-template-columns: repeat(10, 62px);
    gap: 6px;
  }

  .cqh-br-supply-cell {
    min-height: 164px;
    padding: 28px 4px 8px;
    gap: 4px;
    border-radius: 10px;
  }

  .cqh-br-supply-level {
    top: 5px;
    left: 5px;
    width: 23px;
    height: 23px;
    border-radius: 6px;
    font-size: 13px;
  }

  .cqh-br-supply-cell img {
    width: 45px;
    height: 45px;
  }

  .cqh-br-supply-cell strong {
    min-height: 35px;
    display: grid;
    place-items: center;
    font-size: 12px;
    line-height: 1.05;
    letter-spacing: -.35px;
    word-break: normal;
    overflow-wrap: normal;
  }

  .cqh-br-reward-label-full {
    display: none;
  }

  .cqh-br-reward-label-short {
    display: inline;
  }

  .cqh-br-supply-hint {
    font-size: 8.5px;
    line-height: 1;
    letter-spacing: -.15px;
    opacity: .9;
  }

  .cqh-br-supply-cell em {
    font-size: 9px;
    line-height: 1;
  }

  .cqh-br-supply-cell.is-locked em {
    display: none;
  }

  .cqh-br-supply-cell .cqh-br-btn-small {
    padding: 6px 5px;
    font-size: 9px;
    border-radius: 8px;
    line-height: 1;
  }
}

@media (max-width: 380px) {
  .cqh-br-supply-track {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cqh-br-supply-label img {
    width: 38px;
    height: 52px;
  }

  .cqh-br-supply-grid {
    min-width: 640px;
  }

  .cqh-br-supply-rewards {
    grid-template-columns: repeat(10, 58px);
    gap: 5px;
  }

  .cqh-br-supply-cell {
    min-height: 158px;
  }

  .cqh-br-supply-cell img {
    width: 42px;
    height: 42px;
  }

  .cqh-br-supply-cell strong {
    font-size: 11px;
  }
}

/* 0.9.4 mobile compact layouts for Daily Tasks, Radio Items and Build Army */
@media (max-width: 760px) {
  .cqh-br-radio-head,
  .cqh-br-supply-head {
    grid-template-columns: 86px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    align-items: center !important;
    min-height: 132px !important;
    padding: 11px !important;
  }

  .cqh-br-radio-head::after,
  .cqh-br-supply-head::after {
    right: -18px !important;
    top: -18px !important;
    width: 154px !important;
    height: 154px !important;
    opacity: .06 !important;
  }

  .cqh-br-radio-head > img,
  .cqh-br-supply-head > img {
    width: 82px !important;
    height: 82px !important;
  }

  .cqh-br-radio-head h2,
  .cqh-br-supply-head h2 {
    font-size: clamp(24px, 7.2vw, 34px) !important;
    line-height: .9 !important;
    margin-bottom: 4px !important;
  }

  .cqh-br-radio-head p,
  .cqh-br-supply-head p {
    font-size: 13px !important;
    line-height: 1.22 !important;
    margin-bottom: 6px !important;
  }

  .cqh-br-radio-head small,
  .cqh-br-supply-head small {
    font-size: 12px !important;
  }

  .cqh-br-radio-head .cqh-br-btn-small,
  .cqh-br-supply-head .cqh-br-btn-small {
    position: relative !important;
    z-index: 2 !important;
    padding: 8px 9px !important;
    min-width: 76px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    border-radius: 10px !important;
    white-space: normal !important;
  }

  .cqh-br-supply-head .cqh-br-signal-meter {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    padding: 10px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
  }

  .cqh-br-supply-head .cqh-br-signal-meter strong {
    font-size: 22px !important;
  }

  .cqh-br-daily-panel {
    padding: 10px !important;
  }

  .cqh-br-daily-panel .cqh-br-card-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .cqh-br-daily-panel .cqh-br-card-title h2 {
    font-size: 22px !important;
  }

  .cqh-br-daily-panel .cqh-br-card-title span {
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 7px 9px !important;
    white-space: nowrap !important;
  }

  .cqh-br-daily-list {
    gap: 8px !important;
  }

  .cqh-br-daily-task-card {
    grid-template-columns: 34px 68px minmax(0, 1fr) 82px !important;
    gap: 7px !important;
    min-height: 116px !important;
    padding: 8px !important;
    border-width: 2px !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #050609 !important;
  }

  .cqh-br-task-num {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    font-size: 17px !important;
    box-shadow: 0 2px 0 #050609 !important;
  }

  .cqh-br-task-img {
    width: 64px !important;
    height: 64px !important;
    filter: drop-shadow(0 7px 8px rgba(0,0,0,.5)) !important;
  }

  .cqh-br-task-main h3 {
    font-size: 18px !important;
    line-height: 1 !important;
    margin-bottom: 4px !important;
    letter-spacing: .01em !important;
  }

  .cqh-br-task-main p {
    font-size: 12px !important;
    line-height: 1.15 !important;
    margin-bottom: 6px !important;
  }

  .cqh-br-task-progress {
    height: 24px !important;
    max-width: none !important;
    border-radius: 7px !important;
  }

  .cqh-br-task-progress b {
    font-size: 12px !important;
  }

  .cqh-br-task-rewards {
    gap: 9px !important;
    margin-top: 6px !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  .cqh-br-task-rewards span {
    gap: 4px !important;
  }

  .cqh-br-task-rewards img {
    width: 20px !important;
    height: 20px !important;
  }

  .cqh-br-task-actions {
    gap: 5px !important;
    align-self: stretch !important;
    align-content: center !important;
  }

  .cqh-br-task-actions .cqh-br-btn,
  .cqh-br-task-actions .cqh-br-btn-small {
    width: 100% !important;
    min-height: 42px !important;
    padding: 7px 5px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    border-radius: 9px !important;
  }

  .cqh-br-task-status {
    font-size: 10px !important;
    line-height: 1 !important;
  }

  .cqh-br-task-status img {
    width: 22px !important;
    height: 22px !important;
  }

  .cqh-br-daily-bonus {
    grid-template-columns: 46px minmax(0, 1fr) 88px !important;
    gap: 8px !important;
    padding: 9px !important;
    border-width: 2px !important;
    border-radius: 14px !important;
  }

  .cqh-br-daily-bonus > div:first-child {
    display: contents !important;
  }

  .cqh-br-daily-bonus > div:first-child img {
    width: 44px !important;
    height: 44px !important;
  }

  .cqh-br-daily-bonus strong {
    font-size: 15px !important;
    line-height: 1 !important;
  }

  .cqh-br-daily-bonus span {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    margin-top: 3px !important;
  }

  .cqh-br-daily-bonus > div:nth-child(2) {
    display: none !important;
  }

  .cqh-br-daily-bonus .cqh-br-btn,
  .cqh-br-daily-bonus b {
    min-height: 42px !important;
    padding: 7px 5px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    border-radius: 9px !important;
    align-self: center !important;
  }

  .cqh-br-inventory-panel {
    padding: 10px !important;
  }

  .cqh-br-inventory-panel .cqh-br-card-title {
    align-items: center !important;
    gap: 8px !important;
  }

  .cqh-br-inventory-panel .cqh-br-card-title h2,
  .cqh-br-slider-section .cqh-br-card-title h2 {
    font-size: 22px !important;
  }

  .cqh-br-inventory-panel .cqh-br-card-title span,
  .cqh-br-slider-section .cqh-br-card-title span {
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 6px 8px !important;
  }

  .cqh-br-inventory-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2px 2px 12px !important;
    scrollbar-width: thin !important;
  }

  .cqh-br-inventory-grid > div {
    flex: 0 0 140px !important;
    min-width: 140px !important;
    scroll-snap-align: start !important;
    padding: 10px 8px !important;
    gap: 5px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
    min-height: 188px !important;
  }

  .cqh-br-inventory-grid img {
    width: 54px !important;
    height: 54px !important;
  }

  .cqh-br-inventory-grid strong {
    font-size: 12px !important;
    line-height: 1.05 !important;
    color: var(--cqh-br-yellow) !important;
  }

  .cqh-br-inventory-grid span {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    min-width: 36px !important;
    height: 24px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    background: #101821 !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    font-size: 14px !important;
    box-shadow: 0 2px 0 #050609 !important;
  }

  .cqh-br-inventory-grid small {
    font-size: 11px !important;
    line-height: 1.18 !important;
  }

  .cqh-br-inventory-grid select {
    padding: 6px !important;
    font-size: 11px !important;
  }

  .cqh-br-inventory-grid .cqh-br-btn-small {
    padding: 7px 8px !important;
    font-size: 10px !important;
  }

  .cqh-br-slider-section {
    padding: 10px !important;
  }

  .cqh-br-card-slider[data-slider="army"] {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding: 3px 2px 12px !important;
    scrollbar-width: thin !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-card {
    flex: 0 0 146px !important;
    max-width: 146px !important;
    min-height: 210px !important;
    padding: 9px 8px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
    scroll-snap-align: start !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-card img {
    height: 64px !important;
    margin-top: 6px !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-card h3 {
    font-size: 15px !important;
    line-height: 1 !important;
    margin: 4px 0 !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-level-dots {
    margin: 4px 0 !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-level-dots i {
    width: 9px !important;
    height: 9px !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-compact-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4px !important;
    margin: 5px 0 !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-compact-stats span {
    min-width: 0 !important;
    padding: 4px 2px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-compact-stats span:nth-child(3),
  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-card > small {
    display: none !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-actions {
    margin-top: 6px !important;
    gap: 5px !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-actions .cqh-br-btn-small {
    min-height: 36px !important;
    padding: 7px 5px !important;
    font-size: 9px !important;
    line-height: 1.05 !important;
    border-radius: 8px !important;
  }
}

@media (max-width: 380px) {
  .cqh-br-radio-head,
  .cqh-br-supply-head {
    grid-template-columns: 72px minmax(0, 1fr) 70px !important;
    gap: 7px !important;
    min-height: 118px !important;
  }

  .cqh-br-radio-head > img,
  .cqh-br-supply-head > img {
    width: 70px !important;
    height: 70px !important;
  }

  .cqh-br-radio-head h2,
  .cqh-br-supply-head h2 {
    font-size: 23px !important;
  }

  .cqh-br-radio-head p,
  .cqh-br-supply-head p {
    font-size: 12px !important;
  }

  .cqh-br-daily-task-card {
    grid-template-columns: 30px 58px minmax(0, 1fr) 72px !important;
    gap: 6px !important;
    padding: 7px !important;
  }

  .cqh-br-task-img {
    width: 56px !important;
    height: 56px !important;
  }

  .cqh-br-task-main h3 {
    font-size: 16px !important;
  }

  .cqh-br-task-main p {
    font-size: 11px !important;
  }

  .cqh-br-task-rewards {
    font-size: 11px !important;
    gap: 6px !important;
  }

  .cqh-br-task-rewards img {
    width: 18px !important;
    height: 18px !important;
  }

  .cqh-br-task-actions .cqh-br-btn,
  .cqh-br-task-actions .cqh-br-btn-small {
    font-size: 9px !important;
  }

  .cqh-br-inventory-grid > div {
    flex-basis: 132px !important;
    min-width: 132px !important;
  }

  .cqh-br-card-slider[data-slider="army"] .cqh-br-army-card {
    flex-basis: 136px !important;
    max-width: 136px !important;
  }
}

/* 0.9.5 Launch Attack layout polish for desktop and mobile */
.cqh-br-attack-panel {
  overflow: hidden;
}

.cqh-br-attack-title {
  align-items: start;
}

.cqh-br-attack-title h2 {
  margin-bottom: 3px;
}

.cqh-br-attack-title small {
  display: block;
  color: #b7c4d4;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.cqh-br-attack-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 455px);
  gap: 14px;
  align-items: start;
}

.cqh-br-attack-left {
  min-width: 0;
}

.cqh-br-attack-choice-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.cqh-br-attack-card {
  position: relative;
  min-height: 0;
  padding: 12px 12px 10px !important;
  border-radius: 17px;
  display: grid;
  align-content: start;
  gap: 7px;
}

.cqh-br-attack-card.is-selected {
  border-color: #61df42 !important;
  box-shadow: 0 0 0 2px rgba(97,223,66,.22), inset 0 2px 0 rgba(255,255,255,.12), 0 5px 0 #050609 !important;
}

.cqh-br-attack-selected-mark {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: none;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(#96ea69, #2f8b23);
  border: 2px solid rgba(0,0,0,.65);
  color: #fff;
  font-size: 19px;
  font-weight: 1000;
  text-shadow: 0 2px 0 #000;
  z-index: 2;
}

.cqh-br-attack-card.is-selected .cqh-br-attack-selected-mark {
  display: grid;
}

.cqh-br-attack-card img {
  height: 112px !important;
  margin: 0 auto -2px;
}

.cqh-br-attack-card h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1;
  text-shadow: 0 3px 0 #050609;
}

.cqh-br-attack-card p {
  display: block !important;
  min-height: 48px;
  margin: 0;
  color: #c0cad8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cqh-br-attack-stat-list {
  display: grid;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.cqh-br-attack-stat-list span {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 31px;
  color: #b8c5d5;
  font-weight: 900;
}

.cqh-br-attack-stat-list b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(248,194,50,.42);
  color: var(--cqh-br-yellow);
  font-size: 11px;
  line-height: 1;
}

.cqh-br-attack-stat-list strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.05;
}

.cqh-br-attack-qty-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  color: #c5d0df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.cqh-br-qty-stepper {
  display: grid;
  grid-template-columns: 34px 46px 34px;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 9px;
  overflow: hidden;
  background: #0b1017;
}

.cqh-br-qty-stepper button,
.cqh-br-qty-stepper input {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: center;
  font-weight: 1000;
}

.cqh-br-qty-stepper button {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  background: rgba(255,255,255,.05);
}

.cqh-br-qty-stepper button:last-child {
  color: #9df06b;
  background: rgba(97,223,66,.12);
}

.cqh-br-qty-stepper button:disabled,
.cqh-br-qty-stepper input:disabled {
  opacity: .45;
}

.cqh-br-qty-stepper input::-webkit-outer-spin-button,
.cqh-br-qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cqh-br-ready-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(97,223,66,.38);
  background: rgba(82,181,49,.15);
  color: #b9f09c;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
}

.cqh-br-attack-card > small {
  display: block;
  min-height: 34px;
  color: #d7e1ee;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
}

.cqh-br-attack-hint {
  margin-top: 11px;
  padding: 10px 12px;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(8,12,18,.55);
  color: #c7d2df;
  font-size: 13px;
  font-weight: 800;
}

.cqh-br-attack-hint span {
  color: var(--cqh-br-yellow);
  margin-right: 6px;
}

.cqh-br-attack-side {
  display: grid;
  gap: 10px;
  border: 3px solid #06080d;
  border-radius: 18px;
  background: linear-gradient(180deg, #202b36, #0d131b);
  padding: 12px;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #050609;
}

.cqh-br-attack-side-head h3 {
  margin: 0;
  color: var(--cqh-br-yellow);
  font-size: 22px;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #050609;
}

.cqh-br-attack-side-head small {
  color: #c4cfdd;
  font-weight: 800;
}

.cqh-br-attack-target-list {
  gap: 8px !important;
  margin-bottom: 0 !important;
  max-height: 356px;
  overflow-y: auto;
  padding-right: 2px;
}

.cqh-br-attack-target-list .cqh-br-target {
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto) 18px;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-width: 2px;
  border-radius: 12px;
}

.cqh-br-attack-target-list .cqh-br-target strong {
  font-size: 16px;
  line-height: 1.05;
}

.cqh-br-attack-target-list .cqh-br-target span,
.cqh-br-attack-target-list .cqh-br-target small {
  font-size: 12px;
  line-height: 1.2;
}

.cqh-br-target-arrow {
  color: #d7e1ee;
  font-size: 28px;
  line-height: 1;
  opacity: .8;
}

.cqh-br-launch-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(5,8,12,.42);
}

.cqh-br-launch-summary div {
  min-width: 0;
}

.cqh-br-launch-summary small,
.cqh-br-launch-summary strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cqh-br-launch-summary small {
  color: #9daabc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.cqh-br-launch-summary strong {
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
}

.cqh-br-launch-btn {
  width: 100%;
  min-height: 62px;
  font-size: 24px;
  letter-spacing: .02em;
}

@media (max-width: 1100px) {
  .cqh-br-attack-layout {
    grid-template-columns: 1fr;
  }
  .cqh-br-attack-target-list {
    max-height: none;
  }
}

@media (max-width: 760px) {
  .cqh-br-attack-panel {
    padding: 10px !important;
  }

  .cqh-br-attack-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .cqh-br-attack-title h2 {
    font-size: 26px !important;
    line-height: .95 !important;
  }

  .cqh-br-attack-title small {
    display: none !important;
  }

  .cqh-br-attack-title > span {
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }

  .cqh-br-attack-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .cqh-br-attack-choice-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 8px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 3px 2px 12px !important;
    scrollbar-width: thin !important;
  }

  .cqh-br-attack-card {
    flex: 0 0 174px !important;
    max-width: 174px !important;
    min-height: 332px !important;
    padding: 9px 8px !important;
    border-width: 2px !important;
    border-radius: 14px !important;
    gap: 5px !important;
    scroll-snap-align: start !important;
  }

  .cqh-br-attack-selected-mark {
    width: 27px !important;
    height: 27px !important;
    font-size: 15px !important;
    right: 7px !important;
    top: 7px !important;
  }

  .cqh-br-attack-card img {
    height: 78px !important;
  }

  .cqh-br-attack-card h3 {
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .cqh-br-attack-card p {
    min-height: 48px !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  .cqh-br-attack-stat-list {
    gap: 4px !important;
    padding-top: 5px !important;
  }

  .cqh-br-attack-stat-list span {
    grid-template-columns: 25px minmax(0, 1fr) !important;
    min-height: 25px !important;
    gap: 5px !important;
  }

  .cqh-br-attack-stat-list b {
    width: 23px !important;
    height: 23px !important;
    font-size: 9px !important;
    border-width: 1px !important;
  }

  .cqh-br-attack-stat-list strong {
    font-size: 11px !important;
  }

  .cqh-br-attack-qty-row {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    justify-items: center !important;
    font-size: 10px !important;
  }

  .cqh-br-qty-stepper {
    grid-template-columns: 30px 38px 30px !important;
    border-radius: 8px !important;
  }

  .cqh-br-qty-stepper button,
  .cqh-br-qty-stepper input {
    min-height: 30px !important;
  }

  .cqh-br-ready-pill {
    min-height: 25px !important;
    padding: 4px 8px !important;
    font-size: 10px !important;
  }

  .cqh-br-attack-card > small {
    min-height: 28px !important;
    font-size: 9px !important;
  }

  .cqh-br-attack-hint {
    display: none !important;
  }

  .cqh-br-attack-side {
    padding: 9px !important;
    border-width: 2px !important;
    border-radius: 14px !important;
    gap: 8px !important;
  }

  .cqh-br-attack-side-head h3 {
    font-size: 23px !important;
  }

  .cqh-br-attack-side-head small {
    display: none !important;
  }

  .cqh-br-attack-target-list {
    gap: 7px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .cqh-br-attack-target-list .cqh-br-target {
    grid-template-columns: minmax(0, 1fr) minmax(112px, auto) 15px !important;
    padding: 9px 10px !important;
    border-width: 2px !important;
    border-radius: 12px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target strong {
    font-size: 16px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target small,
  .cqh-br-attack-target-list .cqh-br-target span {
    font-size: 11px !important;
  }

  .cqh-br-target-arrow {
    font-size: 22px !important;
  }

  .cqh-br-launch-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    padding: 8px !important;
    gap: 5px !important;
  }

  .cqh-br-launch-summary small {
    font-size: 9px !important;
  }

  .cqh-br-launch-summary strong {
    font-size: 12px !important;
  }

  .cqh-br-launch-btn {
    min-height: 58px !important;
    font-size: 20px !important;
    border-radius: 11px !important;
  }
}

@media (max-width: 380px) {
  .cqh-br-attack-card {
    flex-basis: 158px !important;
    max-width: 158px !important;
  }
  .cqh-br-attack-card img {
    height: 70px !important;
  }
  .cqh-br-attack-card h3 {
    font-size: 16px !important;
  }
  .cqh-br-attack-target-list .cqh-br-target {
    grid-template-columns: 1fr 15px !important;
  }
  .cqh-br-attack-target-list .cqh-br-target > div:nth-child(2) {
    display: none !important;
  }
}

/* 0.9.6 Launch Attack redesign */
.cqh-br-attack-panel-v2 {
  overflow: visible;
}

.cqh-br-attack-layout-v2 {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 16px;
  align-items: start;
}

.cqh-br-attack-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.cqh-br-attack-stage {
  border: 2px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 14px;
  background: rgba(8,12,18,.38);
}

.cqh-br-attack-stage-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.cqh-br-attack-stage-head h3 {
  margin: 0;
  color: var(--cqh-br-yellow);
  font-size: 20px;
  text-transform: uppercase;
  text-shadow: 0 3px 0 #050609;
}

.cqh-br-attack-stage-head small {
  color: #c2cfdd;
  font-weight: 800;
}

.cqh-br-attack-card-v2 {
  text-align: left;
  border: 3px solid #06080d;
  background: linear-gradient(180deg, rgba(33,44,57,.96), rgba(14,19,28,.96));
  cursor: pointer;
}

.cqh-br-attack-card-v2:disabled {
  cursor: not-allowed;
}

.cqh-br-attack-card-v2 h3,
.cqh-br-attack-card-v2 p,
.cqh-br-attack-card-v2 .cqh-br-attack-stat-list span,
.cqh-br-attack-card-v2 .cqh-br-attack-stat-list strong {
  text-align: left;
}

.cqh-br-attack-card-v2 img {
  height: 136px !important;
}

.cqh-br-attack-card-v2 p {
  min-height: 0;
}

.cqh-br-attack-stat-list-v2 {
  gap: 8px;
}

.cqh-br-attack-config-card {
  border: 3px solid #06080d;
  border-radius: 18px;
  background: linear-gradient(180deg, #202b36, #0d131b);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08), 0 5px 0 #050609;
  padding: 14px;
}

.cqh-br-attack-config-card.is-empty {
  padding: 18px;
}

.cqh-br-attack-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cqh-br-attack-config-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cqh-br-attack-config-title img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: 0 0 78px;
}

.cqh-br-attack-config-title small {
  display: block;
  color: #97a7bb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cqh-br-attack-config-title h3 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: .95;
}

.cqh-br-attack-config-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.cqh-br-attack-config-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(97,223,66,.34);
  background: rgba(97,223,66,.12);
  color: #bbeea0;
  font-size: 12px;
  font-weight: 1000;
}

.cqh-br-attack-config-meta strong {
  color: #fff;
  font-size: 15px;
}

.cqh-br-attack-config-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) repeat(2, minmax(120px, .75fr)) minmax(220px, 1fr) repeat(2, minmax(140px, .8fr));
  gap: 12px;
  align-items: stretch;
}

.cqh-br-attack-config-grid.is-scout {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(120px, .8fr));
}

.cqh-br-attack-config-note,
.cqh-br-attack-config-stat,
.cqh-br-attack-config-stepper-wrap {
  border: 2px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(5,8,12,.4);
  padding: 12px;
}

.cqh-br-attack-config-note {
  display: grid;
  align-content: center;
  gap: 4px;
}

.cqh-br-attack-config-note strong,
.cqh-br-attack-config-note span {
  display: block;
}

.cqh-br-attack-config-note strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.cqh-br-attack-config-note span {
  color: #c6d2e0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.cqh-br-attack-config-note.is-empty {
  min-height: 120px;
}

.cqh-br-attack-config-stat {
  display: grid;
  align-content: center;
  gap: 6px;
}

.cqh-br-attack-config-stat small,
.cqh-br-attack-config-stepper-wrap small {
  color: #9daabc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cqh-br-attack-config-stat strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.cqh-br-attack-config-stepper-wrap {
  display: grid;
  gap: 10px;
  align-content: center;
}

.cqh-br-qty-stepper-lg {
  grid-template-columns: 48px 70px 48px;
  border-radius: 12px;
}

.cqh-br-qty-stepper-lg button,
.cqh-br-qty-stepper-lg input {
  min-height: 46px;
  font-size: 24px;
}

.cqh-br-qty-stepper-lg input {
  font-size: 21px;
}

.cqh-br-attack-side-v2 {
  gap: 12px;
}

.cqh-br-launch-summary-v2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cqh-br-mobile-launch-bar {
  display: none;
}

@media (max-width: 1100px) {
  .cqh-br-attack-layout-v2 {
    grid-template-columns: 1fr;
  }
  .cqh-br-attack-config-grid,
  .cqh-br-attack-config-grid.is-scout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cqh-br-attack-panel-v2 {
    padding: 10px !important;
  }

  .cqh-br-attack-layout-v2,
  .cqh-br-attack-main {
    gap: 10px !important;
  }

  .cqh-br-attack-stage {
    padding: 10px;
    border-radius: 14px;
  }

  .cqh-br-attack-stage-head {
    margin-bottom: 8px;
  }

  .cqh-br-attack-stage-head h3,
  .cqh-br-attack-side-v2 .cqh-br-attack-stage-head h3 {
    font-size: 17px !important;
    line-height: 1;
  }

  .cqh-br-attack-stage-head small,
  .cqh-br-attack-side-v2 .cqh-br-attack-stage-head small {
    display: none;
  }

  .cqh-br-attack-choice-grid {
    padding-bottom: 4px !important;
  }

  .cqh-br-attack-card-v2 {
    flex: 0 0 222px !important;
    max-width: 222px !important;
    min-height: 0 !important;
    padding: 12px !important;
    gap: 6px !important;
  }

  .cqh-br-attack-card-v2 img {
    height: 104px !important;
  }

  .cqh-br-attack-card-v2 h3 {
    font-size: 25px !important;
  }

  .cqh-br-attack-card-v2 p {
    min-height: 0 !important;
    font-size: 12px !important;
  }

  .cqh-br-attack-stat-list-v2 {
    gap: 6px !important;
  }

  .cqh-br-attack-stat-list-v2 strong {
    font-size: 13px !important;
  }

  .cqh-br-attack-config-card {
    padding: 10px;
    border-radius: 14px;
  }

  .cqh-br-attack-config-head {
    align-items: start;
    margin-bottom: 10px;
  }

  .cqh-br-attack-config-title {
    gap: 10px;
  }

  .cqh-br-attack-config-title img {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }

  .cqh-br-attack-config-title h3 {
    font-size: 24px;
  }

  .cqh-br-attack-config-meta {
    display: none;
  }

  .cqh-br-attack-config-grid,
  .cqh-br-attack-config-grid.is-scout {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cqh-br-attack-config-note,
  .cqh-br-attack-config-stat,
  .cqh-br-attack-config-stepper-wrap {
    padding: 10px;
    border-radius: 12px;
  }

  .cqh-br-attack-config-note strong {
    font-size: 16px;
  }

  .cqh-br-attack-config-note span {
    font-size: 12px;
  }

  .cqh-br-attack-config-stat {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
  }

  .cqh-br-attack-config-stat strong {
    font-size: 20px;
  }

  .cqh-br-attack-config-stepper-wrap {
    gap: 8px;
  }

  .cqh-br-qty-stepper-lg {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }

  .cqh-br-qty-stepper-lg button,
  .cqh-br-qty-stepper-lg input {
    min-height: 42px;
  }

  .cqh-br-attack-side-v2 {
    padding: 10px !important;
    border-radius: 14px !important;
    gap: 8px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target {
    grid-template-columns: minmax(0, 1fr) 106px 14px !important;
    padding: 10px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target strong {
    font-size: 15px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target small,
  .cqh-br-attack-target-list .cqh-br-target span {
    font-size: 11px !important;
  }

  .cqh-br-launch-summary-v2 {
    display: none !important;
  }

  .cqh-br-launch-btn {
    display: none !important;
  }

  .cqh-br-mobile-launch-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin-top: 2px;
    padding: 10px;
    border: 2px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(12,18,26,.97), rgba(7,11,16,.97));
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
  }

  .cqh-br-mobile-launch-bar > div {
    min-width: 0;
  }

  .cqh-br-mobile-launch-bar small,
  .cqh-br-mobile-launch-bar strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cqh-br-mobile-launch-bar small {
    color: #8fa0b5;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .cqh-br-mobile-launch-bar strong {
    color: #fff;
    font-size: 14px;
    font-weight: 1000;
  }

  .cqh-br-mobile-launch-btn {
    grid-column: 1 / -1;
    min-height: 50px !important;
    font-size: 20px !important;
  }
}

@media (max-width: 390px) {
  .cqh-br-attack-card-v2 {
    flex-basis: 198px !important;
    max-width: 198px !important;
  }

  .cqh-br-attack-card-v2 img {
    height: 92px !important;
  }
}


/* 0.9.7 Supply Track readability + non-stretched badges */
.cqh-br-supply-panel .cqh-br-supply-label,
.cqh-br-supply-panel .cqh-br-supply-cell,
.cqh-br-supply-panel .cqh-br-supply-cell *,
.cqh-br-supply-panel .cqh-br-supply-label * {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.cqh-br-supply-panel .cqh-br-supply-label img {
  width: auto !important;
  height: 82px !important;
  max-width: 66px !important;
  object-fit: contain !important;
  object-position: center !important;
  align-self: end;
}

.cqh-br-supply-panel .cqh-br-supply-label strong {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.08 !important;
  letter-spacing: -.15px !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.75) !important;
  max-width: 100%;
}

.cqh-br-supply-panel .cqh-br-supply-label span {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.75) !important;
}

.cqh-br-supply-panel .cqh-br-supply-cell strong,
.cqh-br-supply-panel .cqh-br-supply-cell strong span {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  letter-spacing: -.1px !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.72) !important;
}

.cqh-br-supply-panel .cqh-br-supply-cell em,
.cqh-br-supply-panel .cqh-br-supply-hint {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: .01em !important;
  text-shadow: none !important;
}

.cqh-br-supply-panel .cqh-br-supply-hint {
  font-size: 9.5px !important;
  color: #f6c947 !important;
  opacity: .88 !important;
}

.cqh-br-supply-panel .cqh-br-supply-cell em {
  font-size: 10.5px !important;
  color: #aebccd !important;
}

.cqh-br-supply-panel .cqh-br-supply-level {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 900 !important;
}

@media (max-width: 760px) {
  .cqh-br-supply-panel .cqh-br-supply-label img {
    width: auto !important;
    height: 48px !important;
    max-width: 42px !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-label strong {
    font-size: 9px !important;
    line-height: 1.03 !important;
    letter-spacing: -.2px !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-label span {
    font-size: 9.5px !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-label .cqh-br-btn-small {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-cell strong,
  .cqh-br-supply-panel .cqh-br-supply-cell strong span {
    font-size: 10.5px !important;
    font-weight: 850 !important;
    line-height: 1.06 !important;
    letter-spacing: -.15px !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-hint {
    font-size: 7.8px !important;
    font-weight: 750 !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-cell em {
    font-size: 8px !important;
    font-weight: 750 !important;
  }
}

@media (max-width: 380px) {
  .cqh-br-supply-panel .cqh-br-supply-label img {
    height: 44px !important;
    max-width: 38px !important;
  }

  .cqh-br-supply-panel .cqh-br-supply-cell strong,
  .cqh-br-supply-panel .cqh-br-supply-cell strong span {
    font-size: 10px !important;
  }
}


/* 0.9.8 polish: readable target text, scroll targets, PC home hero row, mobile attack info mode */

/* Home: keep bunker and the multi/quad button side by side on PC */
.cqh-br-home-hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 7vw, 96px);
  margin: 10px auto 26px;
  width: 100%;
}

.cqh-br-home-hero-row .cqh-br-home-bunker-wrap {
  margin: 0 !important;
  flex: 0 1 520px;
}

.cqh-br-home-hero-row .cqh-br-home-bunker {
  width: min(520px, 44vw) !important;
}

.cqh-br-home-hero-row .cqh-br-quad-menu {
  flex: 0 0 min(300px, 28vw);
  width: min(300px, 28vw) !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .cqh-br-home-hero-row {
    display: grid;
    gap: 18px;
    margin: 8px auto 24px;
  }
  .cqh-br-home-hero-row .cqh-br-home-bunker {
    width: min(420px, 78vw) !important;
  }
  .cqh-br-home-hero-row .cqh-br-quad-menu {
    width: min(290px, 62vw) !important;
    flex-basis: auto;
  }
}

/* Launch Attack: less heavy text and target list scrolling */
.cqh-br-attack-side-v2 .cqh-br-attack-stage-head h3,
.cqh-br-attack-target-list .cqh-br-target strong,
.cqh-br-launch-summary-v2 small,
.cqh-br-launch-summary-v2 strong,
.cqh-br-mobile-launch-bar small,
.cqh-br-mobile-launch-bar strong {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.65) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.cqh-br-attack-side-v2 .cqh-br-attack-stage-head h3 {
  font-weight: 900 !important;
  font-size: 20px !important;
  line-height: 1.05 !important;
}

.cqh-br-attack-target-list {
  max-height: 384px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding-right: 4px !important;
  scrollbar-width: thin;
}

.cqh-br-attack-target-list .cqh-br-target {
  border: 2px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #202b36, #111821);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  color: inherit;
  text-align: left;
}

.cqh-br-attack-target-list .cqh-br-target strong {
  font-weight: 850 !important;
  font-size: 15px !important;
  text-transform: none !important;
}

.cqh-br-attack-target-list .cqh-br-target small,
.cqh-br-attack-target-list .cqh-br-target span {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.cqh-br-attack-target-list .cqh-br-target.is-selected {
  border-color: rgba(118, 224, 76, .95);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 0 0 2px rgba(118,224,76,.17);
}

.cqh-br-launch-summary-v2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.cqh-br-launch-summary-v2 small {
  font-size: 10px !important;
  font-weight: 800 !important;
  color: #9eacbe !important;
}

.cqh-br-launch-summary-v2 strong {
  font-size: 14px !important;
  font-weight: 850 !important;
}

/* Launch Attack cards now use an info button instead of long mobile text */
.cqh-br-attack-card-v2 {
  position: relative;
}

.cqh-br-attack-card-v2 .cqh-br-info-btn {
  top: 8px;
  right: 8px;
  z-index: 5;
}

.cqh-br-attack-card-v2 .cqh-br-attack-selected-mark {
  right: 42px;
}

.cqh-br-attack-card-v2.is-selected .cqh-br-info-btn {
  border-color: rgba(74,198,255,.65);
}

/* Make defense card text a little easier to read too */
.cqh-br-upgrade-card h3,
.cqh-br-defense-compact h3,
.cqh-br-upgrade-card small,
.cqh-br-defense-compact small,
.cqh-br-upgrade-card button,
.cqh-br-defense-compact button {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.cqh-br-upgrade-card small,
.cqh-br-defense-compact small {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-weight: 750 !important;
}

@media (max-width: 760px) {
  .cqh-br-attack-target-list {
    max-height: 292px !important;
    overflow-y: auto !important;
    padding-right: 3px !important;
  }

  .cqh-br-attack-side-v2 .cqh-br-attack-stage-head {
    align-items: center;
  }

  .cqh-br-attack-side-v2 .cqh-br-attack-stage-head h3 {
    font-size: 17px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target {
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto) 14px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target strong {
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  .cqh-br-attack-target-list .cqh-br-target small,
  .cqh-br-attack-target-list .cqh-br-target span {
    font-size: 10px !important;
    line-height: 1.15 !important;
  }

  .cqh-br-attack-card-v2 {
    flex: 0 0 176px !important;
    max-width: 176px !important;
    min-height: 206px !important;
    padding: 10px 9px 9px !important;
  }

  .cqh-br-attack-card-v2 img {
    height: 86px !important;
  }

  .cqh-br-attack-card-v2 h3 {
    font-size: 20px !important;
    line-height: .95 !important;
  }

  .cqh-br-attack-card-v2 p {
    display: none !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-power-stat {
    display: none !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 {
    padding-top: 4px !important;
    border-top: 1px solid rgba(255,255,255,.1);
  }

  .cqh-br-attack-card-v2 .cqh-br-info-btn {
    width: 25px !important;
    height: 25px !important;
    font-size: 13px !important;
    top: 7px !important;
    right: 7px !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-selected-mark {
    width: 25px !important;
    height: 25px !important;
    right: 36px !important;
    top: 7px !important;
  }

  .cqh-br-attack-config-note.is-empty {
    min-height: auto !important;
    overflow: hidden;
  }

  .cqh-br-attack-config-note.is-empty strong,
  .cqh-br-attack-config-note.is-empty span {
    white-space: normal;
  }

  .cqh-br-mobile-launch-bar {
    margin-bottom: 8px;
  }

  .cqh-br-main {
    padding-bottom: 132px;
  }
}

@media (max-width: 380px) {
  .cqh-br-attack-card-v2 {
    flex-basis: 160px !important;
    max-width: 160px !important;
  }

  .cqh-br-attack-card-v2 img {
    height: 78px !important;
  }

  .cqh-br-attack-target-list {
    max-height: 270px !important;
  }
}

/* 0.9.9 Launch Attack slider + smaller attack images, mobile home side-by-side */
.cqh-br-attack-stage-choices {
  min-width: 0;
  overflow: hidden;
}

.cqh-br-attack-type-slider-wrap {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) 42px !important;
  align-items: stretch !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.cqh-br-attack-type-slider-wrap .cqh-br-slide-arrow {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 42px !important;
  min-width: 42px !important;
  height: auto !important;
  min-height: 188px !important;
  margin: 0 !important;
  align-self: stretch !important;
}

.cqh-br-attack-choice-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 3px 2px 10px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  scrollbar-width: thin;
}

.cqh-br-attack-card-v2 {
  flex: 0 0 188px !important;
  max-width: 188px !important;
  min-height: 238px !important;
  padding: 10px !important;
  gap: 5px !important;
  scroll-snap-align: start !important;
}

.cqh-br-attack-card-v2 img {
  height: 82px !important;
  max-width: 145px !important;
}

.cqh-br-attack-card-v2 h3 {
  font-size: 22px !important;
  line-height: .96 !important;
}

.cqh-br-attack-card-v2 p {
  font-size: 12px !important;
  line-height: 1.14 !important;
  min-height: 28px !important;
}

.cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 {
  gap: 5px !important;
}

.cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 span {
  grid-template-columns: 28px minmax(0, 1fr) !important;
  min-height: 25px !important;
  gap: 6px !important;
}

.cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 b {
  width: 24px !important;
  height: 24px !important;
  font-size: 9px !important;
}

.cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 strong {
  font-size: 12px !important;
  line-height: 1.05 !important;
}

.cqh-br-attack-card-v2 .cqh-br-info-btn {
  width: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
}

.cqh-br-attack-card-v2 .cqh-br-attack-selected-mark {
  width: 30px !important;
  height: 30px !important;
  right: 38px !important;
  font-size: 16px !important;
}

/* PC and tablet home: bunker + multi button together, with bunker slightly smaller on small screens. */
@media (max-width: 760px) {
  .cqh-br-home-hero-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 8px auto 18px !important;
  }

  .cqh-br-home-hero-row .cqh-br-home-bunker-wrap {
    flex: 0 1 43% !important;
    min-width: 0 !important;
  }

  .cqh-br-home-hero-row .cqh-br-home-bunker {
    width: min(160px, 42vw) !important;
    max-height: 150px !important;
    object-fit: contain !important;
  }

  .cqh-br-home-hero-row .cqh-br-quad-menu {
    flex: 0 0 min(178px, 48vw) !important;
    width: min(178px, 48vw) !important;
    margin: 0 !important;
  }

  .cqh-br-attack-type-slider-wrap {
    grid-template-columns: 26px minmax(0, 1fr) 26px !important;
    gap: 5px !important;
  }

  .cqh-br-attack-type-slider-wrap .cqh-br-slide-arrow {
    width: 26px !important;
    min-width: 26px !important;
    min-height: 164px !important;
    border-radius: 10px !important;
    font-size: 27px !important;
  }

  .cqh-br-attack-choice-grid {
    gap: 7px !important;
    padding-bottom: 8px !important;
  }

  .cqh-br-attack-card-v2 {
    flex: 0 0 142px !important;
    max-width: 142px !important;
    min-height: 176px !important;
    padding: 8px !important;
  }

  .cqh-br-attack-card-v2 img {
    height: 62px !important;
    max-width: 112px !important;
  }

  .cqh-br-attack-card-v2 h3 {
    font-size: 16px !important;
    line-height: .95 !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 span {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    min-height: 22px !important;
    gap: 4px !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 b {
    width: 20px !important;
    height: 20px !important;
    font-size: 8px !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-stat-list-v2 strong {
    font-size: 10px !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-info-btn,
  .cqh-br-attack-card-v2 .cqh-br-attack-selected-mark {
    width: 22px !important;
    height: 22px !important;
    top: 6px !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-info-btn {
    right: 6px !important;
  }

  .cqh-br-attack-card-v2 .cqh-br-attack-selected-mark {
    right: 31px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 380px) {
  .cqh-br-home-hero-row .cqh-br-home-bunker {
    width: min(138px, 40vw) !important;
    max-height: 132px !important;
  }

  .cqh-br-home-hero-row .cqh-br-quad-menu {
    flex-basis: min(164px, 47vw) !important;
    width: min(164px, 47vw) !important;
  }

  .cqh-br-attack-card-v2 {
    flex-basis: 132px !important;
    max-width: 132px !important;
  }

  .cqh-br-attack-card-v2 img {
    height: 56px !important;
    max-width: 100px !important;
  }
}


/* 0.9.10 Launch Attack compact attack cards + safer slider containment */
.cqh-br-attack-layout-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(290px, .76fr) !important;
}

.cqh-br-attack-stage-choices,
.cqh-br-attack-type-slider-wrap,
.cqh-br-attack-choice-grid {
  min-width: 0 !important;
  max-width: 100% !important;
}

.cqh-br-attack-type-slider-wrap {
  overflow: hidden !important;
  align-items: stretch !important;
}

.cqh-br-attack-choice-grid {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 2px 2px 8px !important;
  scroll-padding-left: 0 !important;
}

.cqh-br-attack-card-compact {
  flex: 0 0 156px !important;
  max-width: 156px !important;
  min-height: 182px !important;
  padding: 10px 10px 12px !important;
  gap: 8px !important;
  justify-content: flex-start !important;
}

.cqh-br-attack-card-compact img {
  height: 92px !important;
  max-width: 132px !important;
  margin-top: 8px !important;
}

.cqh-br-attack-card-compact h3 {
  margin-top: auto !important;
  font-size: 18px !important;
  line-height: .95 !important;
  text-align: center !important;
}

.cqh-br-attack-card-compact p,
.cqh-br-attack-card-compact .cqh-br-attack-stat-list-v2,
.cqh-br-attack-card-compact .cqh-br-attack-power-stat {
  display: none !important;
}

.cqh-br-attack-card-compact .cqh-br-info-btn {
  width: 24px !important;
  height: 24px !important;
  top: 8px !important;
  right: 8px !important;
}

.cqh-br-attack-card-compact .cqh-br-attack-selected-mark {
  width: 29px !important;
  height: 29px !important;
  top: 8px !important;
  right: 37px !important;
  font-size: 15px !important;
}

.cqh-br-attack-stage-choices .cqh-br-attack-stage-head {
  margin-bottom: 14px !important;
}

@media (max-width: 1100px) {
  .cqh-br-attack-layout-v2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .cqh-br-attack-stage-choices .cqh-br-attack-stage-head {
    margin-bottom: 10px !important;
  }

  .cqh-br-attack-type-slider-wrap {
    grid-template-columns: 24px minmax(0, 1fr) 24px !important;
    gap: 4px !important;
  }

  .cqh-br-attack-type-slider-wrap .cqh-br-slide-arrow {
    min-height: 144px !important;
    width: 24px !important;
    min-width: 24px !important;
    font-size: 24px !important;
  }

  .cqh-br-attack-card-compact {
    flex-basis: 124px !important;
    max-width: 124px !important;
    min-height: 144px !important;
    padding: 7px 7px 9px !important;
    gap: 6px !important;
  }

  .cqh-br-attack-card-compact img {
    height: 68px !important;
    max-width: 100px !important;
    margin-top: 6px !important;
  }

  .cqh-br-attack-card-compact h3 {
    font-size: 14px !important;
    line-height: .93 !important;
  }

  .cqh-br-attack-card-compact .cqh-br-info-btn {
    width: 22px !important;
    height: 22px !important;
    top: 6px !important;
    right: 6px !important;
    font-size: 12px !important;
  }

  .cqh-br-attack-card-compact .cqh-br-attack-selected-mark {
    width: 24px !important;
    height: 24px !important;
    top: 6px !important;
    right: 31px !important;
    font-size: 12px !important;
  }

  .cqh-br-home-hero-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
  }

  .cqh-br-home-hero-row .cqh-br-home-bunker-wrap {
    flex: 0 1 36% !important;
    min-width: 0 !important;
  }

  .cqh-br-home-hero-row .cqh-br-home-bunker {
    width: min(132px, 34vw) !important;
    max-height: 122px !important;
    object-fit: contain !important;
  }

  .cqh-br-home-hero-row .cqh-br-quad-menu {
    flex: 0 0 min(188px, 52vw) !important;
    width: min(188px, 52vw) !important;
  }
}

@media (max-width: 390px) {
  .cqh-br-attack-card-compact {
    flex-basis: 116px !important;
    max-width: 116px !important;
    min-height: 138px !important;
  }

  .cqh-br-attack-card-compact img {
    height: 62px !important;
    max-width: 92px !important;
  }

  .cqh-br-home-hero-row .cqh-br-home-bunker {
    width: min(118px, 32vw) !important;
    max-height: 112px !important;
  }

  .cqh-br-home-hero-row .cqh-br-quad-menu {
    flex-basis: min(176px, 50vw) !important;
    width: min(176px, 50vw) !important;
  }
}


/* 0.9.11 Repair Details slider + robust Launch Attack selector containment */
.cqh-br-repair-details-slider-section .cqh-br-card-title span {
  white-space: nowrap;
}

.cqh-br-repair-details-slider {
  min-height: 300px;
}

/* Keep the attack selector entirely inside its own frame on PC and mobile. */
.cqh-br-attack-panel-v2,
.cqh-br-attack-layout-v2,
.cqh-br-attack-main,
.cqh-br-attack-stage,
.cqh-br-attack-stage-choices {
  min-width: 0 !important;
  max-width: 100% !important;
}

.cqh-br-attack-layout-v2 {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px) !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.cqh-br-attack-main,
.cqh-br-attack-stage-choices {
  overflow: hidden !important;
}

.cqh-br-attack-choice-window {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  border-radius: 14px;
}

.cqh-br-attack-choice-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  scroll-padding-left: 0 !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2px 2px 8px !important;
  margin: 0 !important;
  scrollbar-width: thin;
}

.cqh-br-attack-card-compact {
  flex: 0 0 124px !important;
  max-width: 124px !important;
  min-width: 124px !important;
  min-height: 154px !important;
  padding: 8px 8px 10px !important;
  scroll-snap-align: start !important;
}

.cqh-br-attack-card-compact img {
  height: 72px !important;
  max-width: 104px !important;
  margin: 8px auto 2px !important;
}

.cqh-br-attack-card-compact h3 {
  font-size: 15px !important;
  line-height: .95 !important;
  text-align: center !important;
  margin: auto 0 0 !important;
}

.cqh-br-attack-card-compact .cqh-br-info-btn {
  width: 22px !important;
  height: 22px !important;
  top: 6px !important;
  right: 6px !important;
  font-size: 12px !important;
}

.cqh-br-attack-card-compact .cqh-br-attack-selected-mark {
  width: 24px !important;
  height: 24px !important;
  top: 6px !important;
  right: 31px !important;
  font-size: 12px !important;
}

.cqh-br-attack-card-compact p,
.cqh-br-attack-card-compact .cqh-br-attack-stat-list-v2,
.cqh-br-attack-card-compact .cqh-br-attack-power-stat {
  display: none !important;
}

.cqh-br-attack-side-v2 {
  min-width: 0 !important;
  max-width: 100% !important;
}

@media (min-width: 1180px) {
  .cqh-br-attack-card-compact {
    flex-basis: 132px !important;
    max-width: 132px !important;
    min-width: 132px !important;
  }
}

@media (max-width: 1100px) {
  .cqh-br-attack-layout-v2 {
    grid-template-columns: 1fr !important;
    overflow: visible !important;
  }
}

@media (max-width: 760px) {
  .cqh-br-attack-stage-choices {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }

  .cqh-br-attack-choice-window {
    overflow: hidden !important;
  }

  .cqh-br-attack-choice-grid {
    gap: 7px !important;
    padding: 2px 1px 8px !important;
  }

  .cqh-br-attack-card-compact {
    flex: 0 0 112px !important;
    max-width: 112px !important;
    min-width: 112px !important;
    min-height: 132px !important;
    padding: 7px 6px 9px !important;
  }

  .cqh-br-attack-card-compact img {
    height: 58px !important;
    max-width: 88px !important;
    margin-top: 6px !important;
  }

  .cqh-br-attack-card-compact h3 {
    font-size: 12px !important;
    line-height: .94 !important;
  }

  .cqh-br-repair-details-slider {
    min-height: 0;
  }
}

@media (max-width: 390px) {
  .cqh-br-attack-card-compact {
    flex-basis: 104px !important;
    max-width: 104px !important;
    min-width: 104px !important;
  }

  .cqh-br-attack-card-compact img {
    height: 54px !important;
    max-width: 82px !important;
  }
}


/* 0.9.12 Configure Selected Attack readability + compact unit selector */
.cqh-br-attack-config-card,
.cqh-br-attack-config-card * {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.cqh-br-attack-config-title h3,
.cqh-br-attack-config-note strong,
.cqh-br-attack-config-note span,
.cqh-br-attack-config-stat small,
.cqh-br-attack-config-stat strong,
.cqh-br-attack-config-stepper-wrap small,
.cqh-br-attack-config-meta span,
.cqh-br-attack-config-meta strong,
.cqh-br-qty-stepper-lg button,
.cqh-br-qty-stepper-lg input {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.6) !important;
}

.cqh-br-attack-config-title h3 {
  font-size: 26px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.cqh-br-attack-config-title small {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.cqh-br-attack-config-note strong {
  font-size: 15px !important;
  font-weight: 780 !important;
  line-height: 1.18 !important;
}

.cqh-br-attack-config-note span {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.cqh-br-attack-config-stat small,
.cqh-br-attack-config-stepper-wrap small {
  font-size: 9.5px !important;
  font-weight: 800 !important;
  color: #a9b6c7 !important;
}

.cqh-br-attack-config-stat strong {
  font-size: 22px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
}

.cqh-br-attack-config-meta span {
  min-height: 30px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.cqh-br-attack-config-meta strong {
  font-size: 13px !important;
  font-weight: 850 !important;
}

.cqh-br-attack-config-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.cqh-br-attack-config-grid > .cqh-br-attack-config-note {
  flex: 1 1 220px !important;
  min-width: 190px !important;
}

.cqh-br-attack-config-grid > .cqh-br-attack-config-stat {
  flex: 1 1 104px !important;
  min-width: 96px !important;
  max-width: 150px !important;
}

.cqh-br-attack-config-grid > .cqh-br-attack-config-stepper-wrap {
  flex: 1 1 150px !important;
  min-width: 138px !important;
  max-width: 190px !important;
}

.cqh-br-qty-stepper-lg {
  grid-template-columns: 34px minmax(42px, 1fr) 34px !important;
  border-radius: 10px !important;
}

.cqh-br-qty-stepper-lg button,
.cqh-br-qty-stepper-lg input {
  min-height: 36px !important;
  font-size: 18px !important;
  font-weight: 850 !important;
}

.cqh-br-qty-stepper-lg input {
  font-size: 16px !important;
}

@media (max-width: 760px) {
  .cqh-br-attack-config-card {
    padding: 9px !important;
  }

  .cqh-br-attack-config-title img {
    width: 54px !important;
    height: 54px !important;
    flex-basis: 54px !important;
  }

  .cqh-br-attack-config-title h3 {
    font-size: 19px !important;
  }

  .cqh-br-attack-config-note strong {
    font-size: 13px !important;
  }

  .cqh-br-attack-config-note span {
    font-size: 11px !important;
  }

  .cqh-br-attack-config-grid {
    gap: 7px !important;
  }

  .cqh-br-attack-config-grid > .cqh-br-attack-config-note {
    flex: 1 1 100% !important;
    min-width: 100% !important;
  }

  .cqh-br-attack-config-grid > .cqh-br-attack-config-stat {
    flex: 1 1 calc(50% - 8px) !important;
    min-width: 0 !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
  }

  .cqh-br-attack-config-grid > .cqh-br-attack-config-stepper-wrap {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: none !important;
  }

  .cqh-br-qty-stepper-lg {
    grid-template-columns: 38px 1fr 38px !important;
  }

  .cqh-br-qty-stepper-lg button,
  .cqh-br-qty-stepper-lg input {
    min-height: 38px !important;
    font-size: 18px !important;
  }
}

/* 0.9.12 XP Exchange as slide/carousel on PC and mobile */
.cqh-br-xp-exchange-panel .cqh-br-note {
  margin-bottom: 12px;
}

.cqh-br-shop-slider {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 4px 2px 12px !important;
  min-width: 0 !important;
  scrollbar-width: thin;
}

.cqh-br-shop-pack-slide {
  flex: 0 0 205px !important;
  max-width: 205px !important;
  min-height: 230px !important;
  scroll-snap-align: start !important;
  cursor: default !important;
}

.cqh-br-shop-pack-slide img {
  height: 86px !important;
}

.cqh-br-shop-pack-slide h3 {
  font-size: 24px !important;
  line-height: 1 !important;
  margin: 4px 0 0 !important;
}

.cqh-br-shop-pack-slide p {
  margin: 0 !important;
  color: #c0cbd9;
  font-weight: 850;
}

.cqh-br-shop-pack-slide .cqh-br-btn {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 760px) {
  .cqh-br-xp-exchange-wrap {
    grid-template-columns: 26px minmax(0, 1fr) 26px !important;
    gap: 5px !important;
  }

  .cqh-br-xp-exchange-wrap .cqh-br-slide-arrow {
    width: 26px !important;
    min-width: 26px !important;
    min-height: 188px !important;
    font-size: 26px !important;
    border-radius: 10px !important;
  }

  .cqh-br-shop-slider {
    gap: 8px !important;
    padding-bottom: 8px !important;
  }

  .cqh-br-shop-pack-slide {
    flex-basis: 142px !important;
    max-width: 142px !important;
    min-height: 188px !important;
    padding: 10px !important;
  }

  .cqh-br-shop-pack-slide img {
    height: 58px !important;
  }

  .cqh-br-shop-pack-slide h3 {
    font-size: 18px !important;
  }

  .cqh-br-shop-pack-slide p {
    font-size: 11px !important;
  }

  .cqh-br-shop-pack-slide .cqh-br-btn {
    min-height: 40px !important;
    padding: 8px !important;
    font-size: 12px !important;
  }
}


/* 0.9.13 Defense cleanup + improved Send Units stepper */
.cqh-br-repair-details-slider-section {
  display: none !important;
}

.cqh-br-qty-stepper-lg {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  grid-template-columns: 38px minmax(44px, 1fr) 38px !important;
  border: 2px solid rgba(255,255,255,.14) !important;
  background: #080d14 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.cqh-br-qty-stepper-lg button,
.cqh-br-qty-stepper-lg input {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 38px !important;
  line-height: 1 !important;
  text-align: center !important;
}

.cqh-br-qty-stepper-lg button {
  font-size: 22px !important;
  font-weight: 950 !important;
  color: #e9f1fb !important;
  background: linear-gradient(180deg, #202b36, #0d141d) !important;
  border-radius: 0 !important;
  text-shadow: 0 2px 0 rgba(0,0,0,.75) !important;
}

.cqh-br-qty-stepper-lg button:first-child {
  border-right: 1px solid rgba(255,255,255,.10) !important;
}

.cqh-br-qty-stepper-lg button:last-child {
  color: #dbffd1 !important;
  background: linear-gradient(180deg, #326f2b, #173d18) !important;
  border-left: 1px solid rgba(154,255,114,.24) !important;
  box-shadow: inset 0 0 12px rgba(100,231,72,.15);
}

.cqh-br-qty-stepper-lg input {
  color: #fff !important;
  background: #0b1119 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.cqh-br-attack-config-stepper-wrap {
  overflow: hidden !important;
}

.cqh-br-attack-config-grid > .cqh-br-attack-config-stepper-wrap {
  flex-basis: 176px !important;
  min-width: 166px !important;
  max-width: 210px !important;
}

@media (max-width: 760px) {
  .cqh-br-attack-config-grid > .cqh-br-attack-config-stepper-wrap {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: none !important;
  }

  .cqh-br-qty-stepper-lg {
    grid-template-columns: 44px minmax(58px, 1fr) 44px !important;
    border-radius: 11px !important;
  }

  .cqh-br-qty-stepper-lg button,
  .cqh-br-qty-stepper-lg input {
    min-height: 42px !important;
  }

  .cqh-br-qty-stepper-lg button {
    font-size: 22px !important;
  }

  .cqh-br-qty-stepper-lg input {
    font-size: 18px !important;
  }
}


/* 0.9.15 Mail blink when Daily Login BC creates a mail notification */
.cqh-br-nav-btn.is-mail-blink,
.cqh-br-mini-btn.is-mail-blink {
  position: relative;
  animation: cqh-br-mail-blink-pulse .75s ease-in-out infinite !important;
  border-color: rgba(248,194,50,.95) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.13),
    0 5px 0 #050609,
    0 0 18px rgba(248,194,50,.55) !important;
}

.cqh-br-nav-btn.is-mail-blink::after,
.cqh-br-mini-btn.is-mail-blink::after {
  content: '';
  position: absolute;
  right: 7px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #ff3535;
  border: 2px solid #fff3c2;
  box-shadow: 0 0 12px rgba(255,70,45,.75);
  animation: cqh-br-mail-dot-blink .75s ease-in-out infinite;
}

.cqh-br-nav-btn.is-mail-blink span,
.cqh-br-mini-btn.is-mail-blink .cqh-br-res-ico {
  background: rgba(248,194,50,.22) !important;
  border-color: rgba(248,194,50,.85) !important;
}

@keyframes cqh-br-mail-blink-pulse {
  0%, 100% {
    transform: translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-1px);
    filter: brightness(1.28);
  }
}

@keyframes cqh-br-mail-dot-blink {
  0%, 100% {
    transform: scale(.86);
    opacity: .75;
  }
  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@media (max-width: 760px) {
  .cqh-br-nav-btn.is-mail-blink::after,
  .cqh-br-mini-btn.is-mail-blink::after {
    right: 4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-width: 1px;
  }
}

/* 0.9.16 Mobile top status display: compact XP / BC / Safe / Risk / Mail strip */
@media (max-width: 980px) {
  .cqh-br-topbar {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 8px !important;
    margin-bottom: 12px !important;
    border: 3px solid #08090c !important;
    border-radius: 18px !important;
    background: linear-gradient(180deg, #1d2732 0%, #0d131b 100%) !important;
    box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 7px 0 #050609 !important;
    overflow: hidden !important;
  }

  .cqh-br-topbar .cqh-br-brand {
    grid-column: 1 / -1 !important;
    min-height: 68px !important;
    margin: 0 0 8px !important;
    padding: 11px 12px !important;
    border: 2px solid rgba(126,151,174,.28) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, #1f2934 0%, #111820 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 rgba(0,0,0,.52) !important;
    gap: 11px !important;
  }

  .cqh-br-topbar .cqh-br-brand strong {
    font-size: clamp(28px, 9vw, 46px) !important;
    letter-spacing: -.9px !important;
    line-height: .92 !important;
    white-space: nowrap !important;
  }

  .cqh-br-topbar .cqh-br-brand small {
    font-size: clamp(10px, 3vw, 15px) !important;
    letter-spacing: .6px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .cqh-br-topbar .cqh-br-skull {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    border-radius: 12px !important;
  }

  .cqh-br-topbar .cqh-br-skull img {
    width: 39px !important;
    height: 39px !important;
  }

  .cqh-br-topbar .cqh-br-res,
  .cqh-br-topbar .cqh-br-mini-btn {
    min-height: 86px !important;
    padding: 7px 2px 8px !important;
    border: 0 !important;
    border-left: 1px solid rgba(126,151,174,.22) !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, rgba(31,41,52,.92), rgba(10,15,22,.94)) !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    text-align: center !important;
    min-width: 0 !important;
  }

  .cqh-br-topbar .cqh-br-res-xp {
    border-left: 0 !important;
    border-bottom-left-radius: 12px !important;
  }

  .cqh-br-topbar .cqh-br-mail-top-btn,
  .cqh-br-topbar .cqh-br-mini-btn:last-child {
    border-bottom-right-radius: 12px !important;
    cursor: pointer !important;
  }

  .cqh-br-topbar .cqh-br-res-ico {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    background: radial-gradient(circle at 40% 25%, #2b3542, #090d13 70%) !important;
    border: 2px solid rgba(248,194,50,.26) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 10px rgba(248,194,50,.10) !important;
  }

  .cqh-br-topbar .cqh-br-res-ico img,
  .cqh-br-topbar .cqh-br-mini-btn img,
  .cqh-br-topbar .cqh-br-res img {
    width: 27px !important;
    height: 27px !important;
    object-fit: contain !important;
  }

  .cqh-br-topbar .cqh-br-res-xp .cqh-br-res-ico b {
    color: var(--cqh-br-yellow) !important;
    font-size: 18px !important;
    line-height: 1 !important;
    text-shadow: 1px 2px 0 #000 !important;
  }

  .cqh-br-topbar .cqh-br-res-copy {
    display: grid !important;
    place-items: center !important;
    gap: 1px !important;
    min-width: 0 !important;
  }

  .cqh-br-topbar .cqh-br-res span,
  .cqh-br-topbar .cqh-br-mini-btn span:not(.cqh-br-res-ico) {
    color: #aeb9c8 !important;
    font-size: clamp(9px, 2.5vw, 11px) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    letter-spacing: -.15px !important;
    text-transform: uppercase !important;
  }

  .cqh-br-topbar .cqh-br-res strong,
  .cqh-br-topbar .cqh-br-mini-btn strong {
    color: #fff !important;
    font-size: clamp(17px, 5.6vw, 25px) !important;
    font-weight: 1000 !important;
    line-height: .98 !important;
    letter-spacing: -.55px !important;
    text-shadow: 2px 2px 0 #000 !important;
    white-space: nowrap !important;
  }

  .cqh-br-topbar .cqh-br-mail-top-btn strong {
    color: var(--cqh-br-yellow) !important;
  }
}

@media (max-width: 430px) {
  .cqh-br-topbar {
    padding: 6px !important;
    border-radius: 16px !important;
  }

  .cqh-br-topbar .cqh-br-brand {
    min-height: 61px !important;
    padding: 9px 10px !important;
    gap: 9px !important;
  }

  .cqh-br-topbar .cqh-br-brand strong {
    font-size: clamp(25px, 8.2vw, 36px) !important;
    letter-spacing: -1.1px !important;
  }

  .cqh-br-topbar .cqh-br-brand small {
    font-size: clamp(9px, 2.6vw, 12px) !important;
  }

  .cqh-br-topbar .cqh-br-skull {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }

  .cqh-br-topbar .cqh-br-skull img {
    width: 34px !important;
    height: 34px !important;
  }

  .cqh-br-topbar .cqh-br-res,
  .cqh-br-topbar .cqh-br-mini-btn {
    min-height: 78px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .cqh-br-topbar .cqh-br-res-ico {
    width: 31px !important;
    height: 31px !important;
    min-width: 31px !important;
  }

  .cqh-br-topbar .cqh-br-res-ico img,
  .cqh-br-topbar .cqh-br-mini-btn img,
  .cqh-br-topbar .cqh-br-res img {
    width: 24px !important;
    height: 24px !important;
  }
}

/* 0.9.17 Daily Login Bonus coin fly animation */
.cqh-br-daily-bonus-overlay {
  position: fixed;
  inset: 0;
  z-index: 999980;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 5, 10, .62);
  backdrop-filter: blur(3px);
  animation: cqh-br-bonus-overlay-in .18s ease-out both;
}

.cqh-br-daily-bonus-overlay.is-claiming {
  pointer-events: none;
  animation: cqh-br-bonus-overlay-out .34s ease-in both;
}

.cqh-br-daily-bonus-card {
  position: relative;
  width: min(560px, 92vw);
  min-height: 480px;
  overflow: hidden;
  border: 3px solid #07080b;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 34%, rgba(248,194,50,.22), transparent 38%),
    linear-gradient(180deg, #25303b, #11171f 64%, #090d13);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.11),
    0 16px 0 rgba(0,0,0,.55),
    0 0 38px rgba(248,194,50,.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 34px 26px 28px;
  isolation: isolate;
}

.cqh-br-daily-bonus-shine {
  position: absolute;
  inset: -30%;
  z-index: -1;
  background:
    conic-gradient(from 0deg, transparent 0 12%, rgba(248,194,50,.17) 13% 17%, transparent 18% 32%, rgba(255,255,255,.13) 33% 36%, transparent 37% 100%);
  animation: cqh-br-bonus-rays 7s linear infinite;
  opacity: .85;
}

.cqh-br-daily-bonus-card h2 {
  margin: 0;
  color: var(--cqh-br-yellow);
  font-size: clamp(32px, 7vw, 56px);
  line-height: .93;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 #000, 0 0 22px rgba(248,194,50,.32);
}

.cqh-br-daily-bonus-card p,
.cqh-br-daily-bonus-card small {
  margin: 0;
  color: #d9e2ef;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  text-shadow: 0 2px 0 rgba(0,0,0,.8);
}

.cqh-br-daily-bonus-card p {
  font-size: clamp(18px, 4vw, 27px);
}

.cqh-br-daily-bonus-card small {
  color: #b9c7d7;
  font-size: 15px;
}

.cqh-br-daily-bonus-coin-source {
  position: relative;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: 4px 0 0;
  border-radius: 999px;
  filter: drop-shadow(0 0 24px rgba(248,194,50,.45));
  animation: cqh-br-bonus-coin-float 1.9s ease-in-out infinite;
}

.cqh-br-daily-bonus-coin-source::before,
.cqh-br-daily-bonus-coin-source::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  border: 2px solid rgba(248,194,50,.32);
  animation: cqh-br-bonus-ring 1.8s ease-out infinite;
}

.cqh-br-daily-bonus-coin-source::after {
  inset: -28px;
  animation-delay: .35s;
}

.cqh-br-daily-bonus-coin-source img {
  width: 138px;
  height: 138px;
  object-fit: contain;
}

.cqh-br-daily-bonus-amount {
  display: block;
  color: #fff;
  font-size: clamp(42px, 9vw, 66px);
  line-height: .92;
  font-weight: 1000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-shadow: 4px 4px 0 #000, 0 0 20px rgba(248,194,50,.25);
}

.cqh-br-daily-bonus-claim {
  width: min(330px, 76vw);
  min-height: 64px;
  font-size: 28px !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.22), 0 6px 0 #061506, 0 0 26px rgba(85,226,65,.22) !important;
}

.cqh-br-fx-layer {
  position: fixed;
  inset: 0;
  z-index: 999990;
  pointer-events: none;
  overflow: visible;
}

.cqh-br-flying-coin {
  position: fixed;
  height: auto;
  aspect-ratio: 1;
  will-change: transform, opacity, filter;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(248,194,50,.55));
}

.cqh-br-flying-coin::before {
  content: '';
  position: absolute;
  right: 44%;
  top: 50%;
  width: 120px;
  height: 16px;
  transform: translateY(-50%) rotate(-18deg);
  transform-origin: right center;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(248,194,50,.10), rgba(255,241,165,.72));
  filter: blur(5px);
  opacity: .9;
}

.cqh-br-flying-coin img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
}

.cqh-br-coin-burst {
  position: fixed;
  width: 142px;
  height: 142px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.98) 0 5%, rgba(255,231,124,.92) 7% 13%, rgba(248,194,50,.32) 26%, transparent 61%),
    repeating-conic-gradient(from 0deg, rgba(248,194,50,.78) 0 4deg, transparent 4deg 18deg);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px rgba(248,194,50,.7));
  animation: cqh-br-coin-burst .8s ease-out both;
}

.cqh-br-fx-xp-token,
.cqh-br-fx-xp-stream,
.cqh-br-fx-convert-arrow,
.cqh-br-fx-bc-core,
.cqh-br-fx-exchange-burst,
.cqh-br-fx-float-label {
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.cqh-br-fx-xp-token {
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 0 18px rgba(59,178,255,.55));
  z-index: 3;
}

.cqh-br-fx-xp-stream {
  width: min(44vw, 280px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(255,215,87,.42));
  z-index: 2;
}

.cqh-br-fx-convert-arrow {
  width: min(19vw, 120px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 14px rgba(255,212,78,.55));
  z-index: 4;
}

.cqh-br-fx-bc-core {
  width: min(28vw, 170px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 0 22px rgba(255,213,89,.82));
  z-index: 2;
}

.cqh-br-fx-exchange-burst {
  width: min(30vw, 180px);
  height: auto;
  z-index: 5;
  filter: drop-shadow(0 0 18px rgba(255,196,55,.68));
}

.cqh-br-fx-xp-token img,
.cqh-br-fx-xp-stream img,
.cqh-br-fx-convert-arrow img,
.cqh-br-fx-bc-core img,
.cqh-br-fx-exchange-burst img {
  display: block;
  width: 100%;
  height: auto;
}

.cqh-br-fx-float-label {
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
  text-align: center;
  white-space: nowrap;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 28px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.16);
  z-index: 6;
}

.cqh-br-fx-float-label.is-xp {
  color: #c4efff;
  background: linear-gradient(180deg, rgba(18,48,74,.96), rgba(7,20,32,.92));
  border: 1px solid rgba(82,201,255,.58);
  text-shadow: 0 0 10px rgba(108,214,255,.32);
}

.cqh-br-fx-float-label.is-bc {
  color: #fff7c8;
  background: linear-gradient(180deg, rgba(83,58,12,.96), rgba(37,23,4,.92));
  border: 1px solid rgba(255,210,77,.66);
  text-shadow: 0 0 10px rgba(255,216,109,.34);
}

.cqh-br-xp-counter.is-xp-impact,
.cqh-br-res-xp.is-xp-impact {
  animation: cqh-br-xp-impact .72s ease-out both !important;
  box-shadow: 0 0 24px rgba(77,205,255,.46), inset 0 2px 0 rgba(255,255,255,.16) !important;
}

.cqh-br-xp-counter.is-xp-impact .cqh-br-res-ico,
.cqh-br-res-xp.is-xp-impact .cqh-br-res-ico {
  filter: brightness(1.25) drop-shadow(0 0 10px rgba(81,197,255,.52));
}

.cqh-br-bc-counter.is-bc-impact,
.cqh-br-res-bc.is-bc-impact,
.cqh-br-quad-bc.is-bc-impact,
[data-overview-key="bc"].is-bc-impact {
  animation: cqh-br-bc-impact .72s ease-out both !important;
  box-shadow: 0 0 24px rgba(248,194,50,.62), inset 0 2px 0 rgba(255,255,255,.16) !important;
}

.cqh-br-bc-counter.is-bc-impact .cqh-br-res-ico,
.cqh-br-res-bc.is-bc-impact .cqh-br-res-ico,
.cqh-br-quad-bc.is-bc-impact,
[data-overview-key="bc"].is-bc-impact {
  filter: brightness(1.35) drop-shadow(0 0 12px rgba(248,194,50,.72));
}

@keyframes cqh-br-bonus-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes cqh-br-bonus-overlay-out {
  to { opacity: 0; transform: scale(.985); }
}

@keyframes cqh-br-bonus-rays {
  to { transform: rotate(360deg); }
}

@keyframes cqh-br-bonus-coin-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.035); }
}

@keyframes cqh-br-bonus-ring {
  0% { transform: scale(.72); opacity: .8; }
  100% { transform: scale(1.16); opacity: 0; }
}

@keyframes cqh-br-coin-burst {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.28) rotate(0); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.28) rotate(22deg); }
}

@keyframes cqh-br-bc-impact {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.08); filter: brightness(1.45); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes cqh-br-xp-impact {
  0% { transform: scale(1); filter: brightness(1); }
  30% { transform: scale(1.06); filter: brightness(1.28); }
  100% { transform: scale(1); filter: brightness(1); }
}

@media (max-width: 760px) {
  .cqh-br-daily-bonus-overlay {
    align-items: center;
    padding: 12px;
  }

  .cqh-br-daily-bonus-card {
    width: min(390px, 94vw);
    min-height: 420px;
    border-radius: 18px;
    padding: 24px 16px 20px;
  }

  .cqh-br-daily-bonus-coin-source {
    width: 120px;
    height: 120px;
  }

  .cqh-br-daily-bonus-coin-source img {
    width: 112px;
    height: 112px;
  }

  .cqh-br-daily-bonus-claim {
    min-height: 56px;
    font-size: 22px !important;
  }

  .cqh-br-flying-coin::before {
    width: 84px;
    height: 12px;
  }

  .cqh-br-coin-burst {
    width: 112px;
    height: 112px;
  }

  .cqh-br-fx-xp-token {
    width: 70px;
    height: 70px;
  }

  .cqh-br-fx-xp-stream {
    width: min(54vw, 210px);
  }

  .cqh-br-fx-convert-arrow {
    width: min(24vw, 94px);
  }

  .cqh-br-fx-bc-core,
  .cqh-br-fx-exchange-burst {
    width: min(38vw, 136px);
  }

  .cqh-br-fx-float-label {
    min-width: 76px;
    font-size: 13px;
    padding: 6px 10px;
  }
}

/* 0.9.18 Combat feedback for Launch Attack */
.cqh-br-attack-panel-v2 {
  position: relative !important;
  overflow: hidden !important;
}

.cqh-br-attack-panel-v2.is-combat-fx {
  box-shadow: inset 0 2px 0 rgba(255,255,255,.09), 0 8px 0 #050609, 0 0 24px rgba(248,194,50,.12) !important;
}

.cqh-br-attack-card-compact.is-selected {
  border-color: rgba(120,255,78,.95) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.12),
    0 0 0 2px rgba(120,255,78,.18),
    0 0 20px rgba(73,255,53,.34),
    0 6px 0 #050609 !important;
}

.cqh-br-attack-card-compact.is-pick-pulse {
  animation: cqh-br-combat-card-pick .42s ease both;
}

.cqh-br-attack-selected-label {
  position: absolute;
  left: 8px;
  top: 7px;
  display: none;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  color: #dfffce;
  background: linear-gradient(180deg, rgba(71,183,48,.95), rgba(23,86,22,.95));
  border: 1px solid rgba(169,255,128,.65);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 0 12px rgba(75,255,55,.28);
}

.cqh-br-attack-card-compact.is-selected .cqh-br-attack-selected-label {
  display: inline-flex;
}

.cqh-br-attack-target-list .cqh-br-target {
  position: relative;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
}

.cqh-br-attack-target-list .cqh-br-target.is-selected {
  border-color: rgba(255,82,48,.98) !important;
  background: linear-gradient(180deg, #232d38, #121821) !important;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.1),
    0 0 0 2px rgba(255,82,48,.18),
    0 0 18px rgba(255,82,48,.42) !important;
}

.cqh-br-attack-target-list .cqh-br-target.is-pick-pulse {
  animation: cqh-br-combat-target-lock .42s ease both;
}

.cqh-br-target-lock-badge {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #d7ffd1;
  background: linear-gradient(180deg, rgba(36,118,34,.95), rgba(14,54,18,.95));
  border: 1px solid rgba(165,255,128,.72);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(85,255,60,.28);
}

.cqh-br-target.is-selected .cqh-br-target-lock-badge {
  opacity: 1;
}

.cqh-br-combat-fx-layer {
  position: absolute;
  inset: 62px 16px 56px 16px;
  z-index: 16;
  pointer-events: none;
  overflow: hidden;
  border-radius: 16px;
}

.cqh-br-combat-tracer {
  position: absolute;
  left: 28%;
  top: 38%;
  width: 43%;
  height: 12px;
  border-radius: 999px;
  transform: rotate(-7deg) scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(109,255,60,0), rgba(109,255,60,.38), rgba(185,255,76,.98), rgba(255,255,180,.96));
  filter: drop-shadow(0 0 10px rgba(108,255,56,.75));
  box-shadow: 0 0 18px rgba(108,255,56,.72), 0 0 36px rgba(255,181,49,.32);
  animation: cqh-br-combat-tracer-flight 1.05s cubic-bezier(.15,.82,.18,1) both;
}

.cqh-br-combat-tracer::after {
  content: '➤';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  color: #adff62;
  font-size: 28px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(93,255,45,.95), 0 0 28px rgba(255,137,34,.65);
}

.cqh-br-combat-tracer-two {
  top: 48%;
  left: 30%;
  width: 39%;
  height: 7px;
  opacity: .72;
  animation-delay: .13s;
  transform: rotate(5deg) scaleX(0);
  background: linear-gradient(90deg, rgba(255,160,38,0), rgba(255,160,38,.48), rgba(255,214,75,.95));
  filter: drop-shadow(0 0 10px rgba(255,145,38,.78));
}

.cqh-br-combat-hit {
  position: absolute;
  right: 19%;
  top: 34%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,220,1) 0 6%, rgba(142,255,77,.95) 7% 14%, rgba(255,149,43,.72) 15% 32%, rgba(255,66,35,.25) 33% 55%, rgba(255,66,35,0) 56%);
  opacity: 0;
  filter: blur(.1px) drop-shadow(0 0 20px rgba(255,89,42,.7));
  animation: cqh-br-combat-impact 1.1s .55s ease-out both;
}

.cqh-br-combat-spark {
  position: absolute;
  right: 22%;
  top: 42%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff3a6;
  opacity: 0;
  box-shadow: 0 0 10px #fff, 0 0 20px #ffb52b;
  animation: cqh-br-combat-spark .9s .72s ease-out both;
}

.cqh-br-combat-spark.s2 {
  right: 25%;
  top: 35%;
  animation-delay: .82s;
}

.cqh-br-attack-sent-panel {
  margin: 10px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto;
  gap: 10px;
  align-items: center;
  border: 2px solid rgba(121,255,84,.55);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,56,36,.96), rgba(12,19,20,.96));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 0 18px rgba(75,255,52,.2);
  animation: cqh-br-combat-panel-pop .34s ease both;
}

.cqh-br-attack-sent-panel.is-launching {
  border-color: rgba(255,184,45,.6);
  background: linear-gradient(180deg, rgba(63,48,24,.96), rgba(18,17,16,.96));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.1), 0 0 18px rgba(255,166,33,.22);
}

.cqh-br-attack-sent-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #eaffde;
  background: linear-gradient(180deg, #58c943, #176b22);
  border: 2px solid rgba(196,255,167,.65);
  font-size: 24px;
  font-weight: 1000;
  box-shadow: 0 0 18px rgba(75,255,52,.33);
}

.cqh-br-attack-sent-panel.is-launching .cqh-br-attack-sent-icon {
  color: #fff6bd;
  background: linear-gradient(180deg, #f4b637, #805114);
  border-color: rgba(255,221,111,.7);
  animation: cqh-br-combat-icon-spin .8s linear infinite;
}

.cqh-br-attack-sent-panel strong,
.cqh-br-attack-sent-panel span,
.cqh-br-attack-sent-panel dt,
.cqh-br-attack-sent-panel dd {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.7);
}

.cqh-br-attack-sent-panel strong {
  display: block;
  color: #8cff68;
  font-size: 19px;
  font-weight: 950;
  text-transform: uppercase;
}

.cqh-br-attack-sent-panel span {
  display: block;
  color: #d8e4f2;
  font-size: 12px;
  font-weight: 750;
}

.cqh-br-attack-sent-panel dl {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 8px;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.12);
}

.cqh-br-attack-sent-panel dt {
  color: #91a1b4;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.cqh-br-attack-sent-panel dd {
  margin: 0;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.cqh-br-launch-btn,
.cqh-br-mobile-launch-btn {
  position: relative;
  overflow: hidden;
}

.cqh-br-launch-btn::after,
.cqh-br-mobile-launch-btn::after {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(115deg, rgba(255,255,255,0) 20%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 80%);
  transform: translateX(-110%) rotate(6deg);
  opacity: 0;
  pointer-events: none;
}

.cqh-br-launch-btn.is-launching,
.cqh-br-mobile-launch-btn.is-launching {
  animation: cqh-br-combat-launch-ignite .7s ease-in-out infinite !important;
}

.cqh-br-launch-btn.is-launching::after,
.cqh-br-mobile-launch-btn.is-launching::after {
  opacity: 1;
  animation: cqh-br-combat-button-shine .9s ease-in-out infinite;
}

.cqh-br-attack-status-strip {
  position: relative;
  z-index: 4;
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 13px;
  border: 2px solid rgba(110,255,78,.36);
  background: linear-gradient(180deg, rgba(23,39,30,.98), rgba(11,16,20,.98));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 0 16px rgba(75,255,52,.16);
  animation: cqh-br-combat-panel-pop .32s ease both;
}

.cqh-br-attack-status-strip b,
.cqh-br-attack-status-strip span,
.cqh-br-attack-status-strip em {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.68);
}

.cqh-br-attack-status-strip b {
  color: #8cff68;
  font-weight: 950;
  text-transform: uppercase;
}

.cqh-br-attack-status-strip span {
  color: #dce7f3;
  font-size: 12px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cqh-br-attack-status-strip em {
  color: #ffd24d;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

@keyframes cqh-br-combat-card-pick {
  0% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.035); filter: brightness(1.24); }
  100% { transform: scale(1); filter: brightness(1); }
}

@keyframes cqh-br-combat-target-lock {
  0% { transform: translateX(0); filter: brightness(1); }
  35% { transform: translateX(-3px); filter: brightness(1.35); }
  70% { transform: translateX(2px); }
  100% { transform: translateX(0); filter: brightness(1); }
}

@keyframes cqh-br-combat-tracer-flight {
  0% { opacity: 0; transform: rotate(-7deg) scaleX(0); }
  12% { opacity: 1; }
  70% { opacity: 1; transform: rotate(-7deg) scaleX(1); }
  100% { opacity: 0; transform: rotate(-7deg) scaleX(1.08) translateX(12px); }
}

@keyframes cqh-br-combat-impact {
  0% { opacity: 0; transform: scale(.2); }
  30% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.85); }
}

@keyframes cqh-br-combat-spark {
  0% { opacity: 0; transform: translate(0,0) scale(.2); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-34px,-26px) scale(1.4); }
}

@keyframes cqh-br-combat-panel-pop {
  0% { opacity: 0; transform: translateY(8px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cqh-br-combat-launch-ignite {
  0%, 100% { filter: brightness(1); box-shadow: inset 0 2px 0 rgba(255,255,255,.18), 0 6px 0 #4d0b07, 0 0 18px rgba(255,72,34,.36); }
  50% { filter: brightness(1.25); box-shadow: inset 0 2px 0 rgba(255,255,255,.22), 0 6px 0 #4d0b07, 0 0 30px rgba(255,132,35,.72); }
}

@keyframes cqh-br-combat-button-shine {
  0% { transform: translateX(-110%) rotate(6deg); }
  100% { transform: translateX(110%) rotate(6deg); }
}

@keyframes cqh-br-combat-icon-spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  .cqh-br-combat-fx-layer {
    inset: 52px 8px 92px 8px;
  }

  .cqh-br-combat-tracer {
    left: 18%;
    top: 44%;
    width: 62%;
    height: 9px;
    transform: rotate(12deg) scaleX(0);
  }

  .cqh-br-combat-tracer-two {
    top: 52%;
    left: 16%;
    width: 58%;
    transform: rotate(19deg) scaleX(0);
  }

  .cqh-br-combat-tracer::after {
    font-size: 22px;
    right: -15px;
  }

  .cqh-br-combat-hit {
    right: 9%;
    top: 47%;
    width: 58px;
    height: 58px;
  }

  .cqh-br-target-lock-badge {
    position: static;
    transform: none;
    opacity: 1;
    display: none;
    height: 20px;
    margin-top: 4px;
    width: fit-content;
  }

  .cqh-br-target.is-selected .cqh-br-target-lock-badge {
    display: grid;
  }

  .cqh-br-attack-sent-panel {
    grid-template-columns: 34px minmax(0,1fr);
    padding: 9px;
  }

  .cqh-br-attack-sent-icon {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .cqh-br-attack-sent-panel strong {
    font-size: 14px;
  }

  .cqh-br-attack-sent-panel span {
    font-size: 11px;
  }

  .cqh-br-attack-sent-panel dl {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, auto);
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 7px 0 0;
  }

  .cqh-br-attack-status-strip {
    grid-template-columns: 1fr auto;
    gap: 4px 8px;
    padding: 8px 9px;
  }

  .cqh-br-attack-status-strip span {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 11px;
  }

  .cqh-br-attack-status-strip em {
    font-size: 11px;
  }
}

/* 0.9.19 Full graphical combat FX assets */
.cqh-br-attack-selected-fx-img,
.cqh-br-target-locked-fx-img,
.cqh-br-combat-main-img,
.cqh-br-combat-tracer-img,
.cqh-br-combat-impact-img,
.cqh-br-attack-sent-bg,
.cqh-br-attack-sent-check,
.cqh-br-status-strip-bg,
.cqh-br-launch-glow-img {
  pointer-events: none;
  user-select: none;
}

.cqh-br-attack-card-compact .cqh-br-attack-selected-fx-img {
  position: absolute;
  inset: -18px -24px auto -24px;
  width: calc(100% + 48px) !important;
  height: 64px !important;
  object-fit: contain !important;
  opacity: 0;
  transform: translateY(-8px) scale(.94);
  filter: drop-shadow(0 0 12px rgba(94,255,60,.55));
  z-index: 3;
  transition: opacity .18s ease, transform .18s ease;
  mix-blend-mode: screen;
}

.cqh-br-attack-card-compact.is-selected .cqh-br-attack-selected-fx-img {
  opacity: .82;
  transform: translateY(0) scale(1);
  animation: cqh-br-fx-selected-glow 1.3s ease-in-out infinite;
}

.cqh-br-attack-card-compact.is-selected .cqh-br-attack-selected-label {
  z-index: 5;
}

.cqh-br-target-locked-fx-img {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 168px;
  max-width: 44%;
  height: auto;
  opacity: 0;
  transform: translateY(-50%) scale(.88);
  filter: drop-shadow(0 0 14px rgba(120,255,60,.5));
  transition: opacity .18s ease, transform .18s ease;
  mix-blend-mode: screen;
  z-index: 2;
}

.cqh-br-target.is-selected .cqh-br-target-locked-fx-img {
  opacity: .68;
  transform: translateY(-50%) scale(1);
  animation: cqh-br-fx-target-lock .9s ease-in-out infinite;
}

.cqh-br-target.is-selected .cqh-br-target-lock-badge,
.cqh-br-target.is-selected .cqh-br-target-arrow {
  z-index: 5;
}

.cqh-br-combat-fx-layer img {
  position: absolute;
  display: block;
  max-width: none;
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(118,255,60,.42));
  mix-blend-mode: screen;
}

.cqh-br-combat-tracer-img {
  left: 20%;
  top: 20%;
  width: 50%;
  transform: rotate(-4deg) translateX(-26px) scale(.86);
  animation: cqh-br-fx-tracer-img 1.12s cubic-bezier(.15,.82,.18,1) both;
}

.cqh-br-combat-main-img {
  left: 22%;
  top: 23%;
  width: 48%;
  transform: rotate(-3deg) translateX(-36px) scale(.88);
  animation: cqh-br-fx-main-img 1.14s cubic-bezier(.15,.82,.18,1) both;
}

.cqh-br-combat-impact-img {
  right: 10%;
  top: 24%;
  width: 155px;
  height: auto;
  transform: scale(.25);
  transform-origin: center;
  filter: drop-shadow(0 0 18px rgba(255,143,42,.75));
  animation: cqh-br-fx-impact-img .92s .62s ease-out both;
}

.cqh-br-combat-fx-layer.is-scout .cqh-br-combat-main-img {
  left: 27%;
  top: 12%;
  width: 250px;
  transform: translateX(-40px) scale(.66);
  animation: cqh-br-fx-scout-radar 1.25s ease-out both;
}

.cqh-br-combat-fx-layer.is-scout .cqh-br-combat-tracer-img {
  width: 42%;
  left: 34%;
  top: 30%;
  opacity: .75;
}

.cqh-br-combat-fx-layer.is-scout .cqh-br-combat-impact-img {
  width: 150px;
  right: 13%;
  top: 24%;
  filter: drop-shadow(0 0 18px rgba(126,255,58,.75));
}

.cqh-br-combat-fx-layer.is-cannon .cqh-br-combat-main-img {
  left: 16%;
  top: 27%;
  width: 54%;
  transform: translateX(-40px) rotate(-2deg) scale(.82);
  filter: drop-shadow(0 0 24px rgba(255,137,35,.75));
}

.cqh-br-combat-fx-layer.is-plane .cqh-br-combat-main-img,
.cqh-br-combat-fx-layer.is-drone .cqh-br-combat-main-img {
  left: 24%;
  top: 18%;
  width: 52%;
  filter: drop-shadow(0 0 24px rgba(115,255,55,.65));
}

.cqh-br-attack-sent-panel {
  overflow: hidden;
}

.cqh-br-attack-sent-bg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: cover;
  opacity: .26;
  mix-blend-mode: screen;
  filter: saturate(1.2) brightness(1.1);
}

.cqh-br-attack-sent-check {
  position: relative;
  z-index: 3;
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: none;
  filter: drop-shadow(0 0 12px rgba(99,255,65,.65));
}

.cqh-br-attack-sent-panel.is-sent .cqh-br-attack-sent-check {
  display: block;
  animation: cqh-br-fx-success-pop .42s ease both;
}

.cqh-br-attack-sent-panel.is-sent .cqh-br-attack-sent-icon {
  display: none;
}

.cqh-br-attack-sent-panel > div,
.cqh-br-attack-sent-panel > dl,
.cqh-br-attack-sent-panel > .cqh-br-attack-sent-icon {
  position: relative;
  z-index: 3;
}

.cqh-br-launch-btn > span,
.cqh-br-mobile-launch-btn > span {
  position: relative;
  z-index: 3;
}

.cqh-br-launch-glow-img {
  position: absolute;
  inset: -24px -40px;
  width: calc(100% + 80px);
  height: calc(100% + 48px);
  object-fit: fill;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.25) brightness(1.12) drop-shadow(0 0 16px rgba(255,128,32,.65));
}

.cqh-br-launch-btn.is-launching .cqh-br-launch-glow-img,
.cqh-br-mobile-launch-btn.is-launching .cqh-br-launch-glow-img {
  opacity: .82;
  animation: cqh-br-fx-launch-frame 1s ease-in-out infinite;
}

.cqh-br-attack-status-strip {
  overflow: hidden;
}

.cqh-br-status-strip-bg {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  object-fit: fill;
  opacity: .26;
  mix-blend-mode: screen;
  z-index: 0;
}

.cqh-br-attack-status-strip > b,
.cqh-br-attack-status-strip > span,
.cqh-br-attack-status-strip > em {
  position: relative;
  z-index: 2;
}

@keyframes cqh-br-fx-selected-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(94,255,60,.45)); }
  50% { filter: drop-shadow(0 0 19px rgba(94,255,60,.86)); }
}

@keyframes cqh-br-fx-target-lock {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(120,255,60,.4)); }
  50% { filter: drop-shadow(0 0 22px rgba(255,70,40,.68)); }
}

@keyframes cqh-br-fx-tracer-img {
  0% { opacity: 0; transform: rotate(-7deg) translateX(-90px) scale(.72); }
  14% { opacity: .92; }
  72% { opacity: .92; transform: rotate(-4deg) translateX(80px) scale(1.04); }
  100% { opacity: 0; transform: rotate(-2deg) translateX(130px) scale(1.1); }
}

@keyframes cqh-br-fx-main-img {
  0% { opacity: 0; transform: translateX(-110px) scale(.75) rotate(-8deg); }
  18% { opacity: .9; }
  72% { opacity: .9; transform: translateX(86px) scale(1.03) rotate(0deg); }
  100% { opacity: 0; transform: translateX(142px) scale(.95) rotate(3deg); }
}

@keyframes cqh-br-fx-scout-radar {
  0% { opacity: 0; transform: translateX(-40px) scale(.35); }
  18% { opacity: .72; }
  70% { opacity: .68; transform: translateX(40px) scale(.95); }
  100% { opacity: 0; transform: translateX(65px) scale(1.18); }
}

@keyframes cqh-br-fx-impact-img {
  0% { opacity: 0; transform: scale(.15) rotate(0deg); }
  30% { opacity: .95; transform: scale(.95) rotate(8deg); }
  100% { opacity: 0; transform: scale(1.65) rotate(15deg); }
}

@keyframes cqh-br-fx-success-pop {
  0% { opacity: 0; transform: scale(.35) rotate(-12deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes cqh-br-fx-launch-frame {
  0%, 100% { filter: saturate(1.25) brightness(1.06) drop-shadow(0 0 14px rgba(255,128,32,.55)); transform: scale(1); }
  50% { filter: saturate(1.45) brightness(1.28) drop-shadow(0 0 28px rgba(255,179,45,.9)); transform: scale(1.02); }
}

@media (max-width: 760px) {
  .cqh-br-attack-card-compact .cqh-br-attack-selected-fx-img {
    height: 46px !important;
    inset: -13px -16px auto -16px;
    width: calc(100% + 32px) !important;
  }

  .cqh-br-target-locked-fx-img {
    right: 16px;
    top: 10px;
    transform: none;
    width: 132px;
    max-width: 52%;
  }

  .cqh-br-target.is-selected .cqh-br-target-locked-fx-img {
    transform: none;
    opacity: .54;
  }

  .cqh-br-combat-tracer-img,
  .cqh-br-combat-main-img {
    left: 12%;
    top: 35%;
    width: 76%;
  }

  .cqh-br-combat-fx-layer.is-scout .cqh-br-combat-main-img {
    left: 16%;
    top: 31%;
    width: 180px;
  }

  .cqh-br-combat-fx-layer.is-cannon .cqh-br-combat-main-img,
  .cqh-br-combat-fx-layer.is-plane .cqh-br-combat-main-img,
  .cqh-br-combat-fx-layer.is-drone .cqh-br-combat-main-img {
    left: 10%;
    top: 33%;
    width: 80%;
  }

  .cqh-br-combat-impact-img {
    right: 6%;
    top: 43%;
    width: 105px;
  }

  .cqh-br-attack-sent-check {
    width: 34px;
    height: 34px;
  }
}

/* 0.9.26 Mobile raid card + target lock polish and user-supplied transparent XP exchange defaults */
@media (max-width: 760px) {
  .cqh-br-attack-card-compact {
    overflow: hidden !important;
  }

  .cqh-br-attack-card-compact .cqh-br-attack-selected-mark {
    display: none !important;
  }

  .cqh-br-attack-card-compact .cqh-br-attack-selected-label {
    left: 10px !important;
    top: 10px !important;
    height: 28px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    letter-spacing: .03em !important;
    z-index: 8 !important;
    box-shadow: 0 0 10px rgba(75,255,55,.24) !important;
  }

  .cqh-br-attack-card-compact .cqh-br-attack-selected-fx-img {
    inset: -8px auto auto 50% !important;
    width: 132px !important;
    max-width: 72% !important;
    height: 44px !important;
    transform: translateX(-50%) translateY(-2px) scale(.95) !important;
    z-index: 4 !important;
  }

  .cqh-br-attack-card-compact.is-selected .cqh-br-attack-selected-fx-img {
    opacity: .58 !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }

  .cqh-br-attack-target-list .cqh-br-target {
    position: relative !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    align-items: start !important;
    gap: 4px 10px !important;
    padding: 12px 104px 12px 12px !important;
    min-height: 94px !important;
    overflow: hidden !important;
  }

  .cqh-br-attack-target-list .cqh-br-target > div,
  .cqh-br-target-arrow,
  .cqh-br-target-lock-badge {
    position: relative;
    z-index: 6;
  }

  .cqh-br-attack-target-list .cqh-br-target > div:nth-child(1) {
    grid-column: 1 / 2;
    min-width: 0;
  }

  .cqh-br-attack-target-list .cqh-br-target > div:nth-child(2) {
    grid-column: 1 / 2;
    min-width: 0;
    margin-top: 3px;
  }

  .cqh-br-target-lock-badge {
    position: absolute !important;
    right: 10px !important;
    top: 10px !important;
    width: auto !important;
    min-width: 72px !important;
    max-width: 84px !important;
    height: 22px !important;
    padding: 0 10px !important;
    margin-top: 0 !important;
    display: grid !important;
    place-items: center !important;
    opacity: 0 !important;
    transform: none !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .cqh-br-target.is-selected .cqh-br-target-lock-badge {
    opacity: 1 !important;
  }

  .cqh-br-target-locked-fx-img {
    right: 8px !important;
    top: auto !important;
    bottom: 6px !important;
    width: 72px !important;
    max-width: none !important;
    opacity: 0 !important;
    transform: none !important;
    z-index: 3 !important;
  }

  .cqh-br-target.is-selected .cqh-br-target-locked-fx-img {
    opacity: .42 !important;
  }

  .cqh-br-target-arrow {
    position: absolute !important;
    right: 10px !important;
    bottom: 10px !important;
    top: auto !important;
    transform: none !important;
    font-size: 18px !important;
    line-height: 1 !important;
    opacity: .9 !important;
  }
}

@media (max-width: 380px) {
  .cqh-br-attack-card-compact .cqh-br-attack-selected-label {
    left: 8px !important;
    top: 8px !important;
    height: 24px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  .cqh-br-attack-card-compact .cqh-br-attack-selected-fx-img {
    width: 116px !important;
    max-width: 70% !important;
    height: 38px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target {
    grid-template-columns: minmax(0,1fr) !important;
    padding: 10px 86px 32px 10px !important;
    min-height: 98px !important;
  }

  .cqh-br-attack-target-list .cqh-br-target > div:nth-child(2) {
    display: block !important;
    grid-column: 1 / -1 !important;
    margin-top: 4px !important;
  }

  .cqh-br-target-lock-badge {
    right: 8px !important;
    top: 8px !important;
    min-width: 62px !important;
    max-width: 76px !important;
    height: 20px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }

  .cqh-br-target-locked-fx-img {
    width: 58px !important;
    right: 8px !important;
    bottom: 6px !important;
  }

  .cqh-br-target-arrow {
    right: 10px !important;
    bottom: 8px !important;
    font-size: 16px !important;
  }
}

/* 0.9.27 Raid Victory Screen */
.cqh-br-victory-overlay{position:fixed;inset:0;z-index:999995;background:rgba(2,6,10,.88);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}.cqh-br-victory-screen{position:relative;width:min(1280px,96vw);max-height:96vh;overflow:auto;border:2px solid #2e4051;border-radius:18px;padding:18px;background:radial-gradient(circle at 42% 0,rgba(255,190,48,.15),transparent 30%),linear-gradient(180deg,#1c2936,#0d131a 78%);box-shadow:0 26px 80px rgba(0,0,0,.64),inset 0 2px 0 rgba(255,255,255,.08);color:#fff}.cqh-br-victory-celebration{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:16px}.cqh-br-victory-portal{position:absolute;left:31%;top:46%;width:min(38vw,460px);height:auto;transform:translate(-50%,-50%);opacity:.18;mix-blend-mode:screen;filter:drop-shadow(0 0 28px rgba(255,189,42,.52))}.cqh-br-victory-coin-swirl{position:absolute;left:28%;top:47%;width:min(46vw,560px);height:auto;transform:translate(-50%,-50%);opacity:.34;filter:drop-shadow(0 0 20px rgba(255,187,38,.5))}.cqh-br-victory-hero{position:relative;z-index:2;text-align:center;padding:0 12px 8px}.cqh-br-victory-title-img{display:block;width:min(72%,820px);height:auto;margin:0 auto;filter:drop-shadow(0 0 22px rgba(255,187,44,.42))}.cqh-br-victory-hero>strong{display:block;margin-top:-4px;font-size:clamp(16px,1.5vw,24px);letter-spacing:.02em}.cqh-br-victory-layout{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1.06fr) minmax(360px,.94fr);gap:16px}.cqh-br-victory-loot-card,.cqh-br-victory-report-card{border:1px solid #34495d;border-radius:14px;padding:15px;background:linear-gradient(180deg,rgba(17,27,38,.94),rgba(8,13,19,.94));box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}.cqh-br-victory-loot-card h3,.cqh-br-victory-report-card h3{margin:0 0 12px;color:#ffc744;text-transform:uppercase;font-size:clamp(18px,1.8vw,28px)}.cqh-br-victory-rewards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cqh-br-victory-rewards>div{display:grid;gap:5px;align-content:center;min-height:124px;padding:12px;text-align:center;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:linear-gradient(180deg,#26333f,#131a22)}.cqh-br-victory-rewards span{font-size:12px;font-weight:900;color:#c7d0db;text-transform:uppercase}.cqh-br-victory-rewards strong{font-size:clamp(23px,2.2vw,36px);line-height:1;color:#ffd34a;text-shadow:0 0 14px rgba(255,192,35,.22)}.cqh-br-victory-rewards small{font-size:10px;color:#909eae}.cqh-br-victory-bonus{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:10px 14px;border:1px solid rgba(255,194,42,.4);border-radius:10px;background:linear-gradient(90deg,rgba(84,57,10,.68),rgba(22,27,32,.9))}.cqh-br-victory-bonus b{text-transform:uppercase;color:#ffcc43}.cqh-br-victory-bonus strong{font-size:24px;color:#83ff42}.cqh-br-victory-streak{position:relative;min-height:170px;margin-top:12px}.cqh-br-victory-streak>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.cqh-br-victory-streak-copy{position:absolute;left:2.5%;top:19%;width:17%;display:grid;text-align:center;z-index:3}.cqh-br-victory-streak-copy small{font-weight:900;color:#ffc83d;text-transform:uppercase}.cqh-br-victory-streak-copy strong{font-size:38px;line-height:1;color:#ffd149}.cqh-br-victory-streak-copy span{font-size:10px;color:#ffd149;text-transform:uppercase}.cqh-br-victory-streak-marks{position:absolute;left:34%;right:7%;bottom:18%;display:flex;justify-content:space-between;z-index:3}.cqh-br-victory-streak-marks b{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;color:#9e7a22;background:#161a1e;border:1px solid #6f5620}.cqh-br-victory-streak-marks b.is-hit{color:#171a13;background:#ffcb40;box-shadow:0 0 14px rgba(255,196,44,.46)}.cqh-br-victory-streak>em{position:absolute;left:34%;right:7%;bottom:2%;text-align:center;color:#c4cdd7;font-size:11px;z-index:3}.cqh-br-victory-player-panel{position:relative;min-height:120px;margin-bottom:10px}.cqh-br-victory-player-panel>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}.cqh-br-victory-player-panel>div{position:absolute;left:40%;right:6%;top:50%;transform:translateY(-50%);display:grid;gap:3px;z-index:3}.cqh-br-victory-player-panel strong{font-size:clamp(18px,1.6vw,25px);color:#9dff3d;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cqh-br-victory-player-panel span{font-size:13px;color:#b3ff65}.cqh-br-victory-attack-used{display:flex;align-items:center;gap:12px;padding:10px 12px;margin-bottom:10px;border:1px solid rgba(255,255,255,.1);border-radius:11px;background:rgba(5,8,12,.45)}.cqh-br-victory-attack-used img{width:72px;height:62px;object-fit:contain}.cqh-br-victory-attack-used div{display:grid;gap:2px}.cqh-br-victory-attack-used small{color:#9ca9b9;text-transform:uppercase;font-weight:800}.cqh-br-victory-attack-used strong{font-size:20px}.cqh-br-victory-attack-used span{color:#ffd04a;font-weight:800}.cqh-br-victory-defeated-panel{display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid rgba(255,75,48,.22);border-radius:11px;background:linear-gradient(90deg,rgba(65,13,10,.35),rgba(9,13,18,.8))}.cqh-br-victory-defeated-panel img{width:94px;height:82px;object-fit:contain}.cqh-br-victory-defeated-panel div{display:grid;gap:2px}.cqh-br-victory-defeated-panel strong{font-size:20px;color:#ff604b}.cqh-br-victory-defeated-panel span{font-size:12px;color:#d2d9e2}.cqh-br-victory-defeated-panel b{font-size:12px;color:#ff503b;text-transform:uppercase}.cqh-br-victory-result{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:10px;padding:13px 14px;border:1px solid rgba(255,255,255,.1);border-radius:10px;background:#090e14}.cqh-br-victory-result span{color:#ff624d;font-weight:900}.cqh-br-victory-result strong{font-size:24px}.cqh-br-victory-actions{position:relative;z-index:2;display:grid;grid-template-columns:minmax(140px,.35fr) minmax(260px,.65fr);gap:12px;margin-top:15px}.cqh-br-victory-secondary{min-height:58px;border:2px solid #485a69;border-radius:12px;background:linear-gradient(180deg,#293746,#141c25);color:#fff;font-weight:900;font-size:16px;cursor:pointer}.cqh-br-victory-next{position:relative;min-height:62px;border:0;background:transparent;cursor:pointer;overflow:hidden;border-radius:13px}.cqh-br-victory-next img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.cqh-br-victory-next span{position:relative;z-index:3;color:#fff;font-size:24px;font-weight:1000;text-transform:uppercase;text-shadow:0 2px 2px rgba(0,0,0,.7)}

@media(max-width:900px){.cqh-br-victory-overlay{align-items:flex-start;padding:8px}.cqh-br-victory-screen{width:min(100%,640px);max-height:none;padding:10px;border-radius:15px}.cqh-br-victory-layout{grid-template-columns:1fr;gap:10px}.cqh-br-victory-title-img{width:98%}.cqh-br-victory-hero>strong{font-size:15px}.cqh-br-victory-loot-card,.cqh-br-victory-report-card{padding:10px}.cqh-br-victory-rewards{gap:6px}.cqh-br-victory-rewards>div{min-height:92px;padding:8px}.cqh-br-victory-rewards strong{font-size:22px}.cqh-br-victory-rewards small{font-size:9px}.cqh-br-victory-streak{min-height:132px}.cqh-br-victory-streak-copy{left:2%;top:20%;width:18%}.cqh-br-victory-streak-copy small{font-size:8px}.cqh-br-victory-streak-copy strong{font-size:28px}.cqh-br-victory-streak-copy span{font-size:7px}.cqh-br-victory-streak-marks{left:34%;right:7%;bottom:18%}.cqh-br-victory-streak-marks b{width:22px;height:22px;font-size:10px}.cqh-br-victory-player-panel{min-height:96px}.cqh-br-victory-player-panel>div{left:40%;right:5%}.cqh-br-victory-player-panel strong{font-size:18px}.cqh-br-victory-player-panel span{font-size:11px}.cqh-br-victory-defeated-panel img{width:72px;height:64px}.cqh-br-victory-actions{grid-template-columns:1fr}.cqh-br-victory-next span{font-size:20px}.cqh-br-victory-portal{left:50%;top:28%;width:76vw}.cqh-br-victory-coin-swirl{left:50%;top:33%;width:92vw;opacity:.22}}

@media(max-width:420px){.cqh-br-victory-screen{padding:8px}.cqh-br-victory-loot-card h3,.cqh-br-victory-report-card h3{font-size:18px}.cqh-br-victory-rewards>div{min-height:82px;padding:6px}.cqh-br-victory-rewards span{font-size:10px}.cqh-br-victory-rewards strong{font-size:19px}.cqh-br-victory-bonus{padding:8px 10px}.cqh-br-victory-bonus strong{font-size:20px}.cqh-br-victory-streak{min-height:116px}.cqh-br-victory-streak>em{font-size:9px}.cqh-br-victory-player-panel{min-height:84px}.cqh-br-victory-player-panel strong{font-size:16px}.cqh-br-victory-player-panel span{font-size:10px}.cqh-br-victory-attack-used img{width:58px;height:50px}.cqh-br-victory-attack-used strong{font-size:17px}.cqh-br-victory-result span{font-size:12px}.cqh-br-victory-result strong{font-size:20px}}


/* 0.9.28 Mobile auto-hide bottom nav + launch-first target flow + combined combat FX */
@media (max-width: 760px) {
  .cqh-br-app .cqh-br-sidebar {
    opacity: 0 !important;
    transform: translateY(calc(100% + 34px)) !important;
    pointer-events: none !important;
    transition: opacity .34s ease, transform .34s cubic-bezier(.2,.8,.2,1) !important;
    will-change: opacity, transform;
  }

  .cqh-br-app.is-mobile-nav-visible .cqh-br-sidebar {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
  }

  .cqh-br-attack-side-v2 > .cqh-br-attack-stage-head {
    order: 0;
  }

  .cqh-br-mobile-launch-bar {
    order: 1 !important;
    position: sticky !important;
    top: 8px !important;
    bottom: auto !important;
    z-index: 18 !important;
    margin: 0 0 8px !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 0 1px rgba(255,194,50,.12) !important;
  }

  .cqh-br-attack-target-list {
    order: 2;
  }

  .cqh-br-launch-summary-v2 { order: 3; }
  .cqh-br-attack-sent-panel { order: 4; }
  .cqh-br-launch-btn { order: 5; }

  .cqh-br-combat-fx-layer {
    display: none !important;
  }

  .cqh-br-attack-panel-v2.is-combat-fx > .cqh-br-attack-status-strip,
  .cqh-br-attack-panel-v2.is-combat-fx .cqh-br-attack-side-v2 > .cqh-br-attack-sent-panel {
    display: none !important;
  }

  .cqh-br-mobile-combat-stage {
    position: fixed;
    left: 10px;
    right: 10px;
    top: max(84px, env(safe-area-inset-top));
    z-index: 999994;
    pointer-events: none;
    animation: cqh-br-mobile-fx-stage-in .28s ease-out both;
  }

  .cqh-br-mobile-combat-card {
    width: min(100%, 520px);
    margin: 0 auto;
    overflow: hidden;
    border: 2px solid rgba(255,195,54,.55);
    border-radius: 16px;
    background:
      radial-gradient(circle at 50% 35%, rgba(87,255,70,.11), transparent 42%),
      linear-gradient(180deg, rgba(19,29,39,.985), rgba(6,10,15,.985));
    box-shadow: 0 22px 60px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.1), 0 0 24px rgba(255,173,43,.12);
  }

  .cqh-br-mobile-combat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 11px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    background: rgba(6,10,15,.64);
  }

  .cqh-br-mobile-combat-head strong {
    color: #9cff58;
    font-size: 14px;
    font-weight: 1000;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .cqh-br-mobile-combat-head span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #d8e2ec;
    font-size: 11px;
    font-weight: 800;
  }

  .cqh-br-mobile-combat-arena {
    position: relative;
    height: 178px;
    overflow: hidden;
    background:
      linear-gradient(90deg, rgba(34,65,87,.24), transparent 44%, rgba(102,28,15,.18)),
      radial-gradient(circle at 78% 55%, rgba(255,88,34,.12), transparent 28%);
  }

  .cqh-br-mobile-combat-arena img {
    position: absolute;
    display: block;
    max-width: none;
    pointer-events: none;
  }

  .cqh-br-mobile-combat-unit {
    left: 8%;
    top: 50%;
    width: 92px;
    height: 86px;
    object-fit: contain;
    transform: translateY(-50%);
    z-index: 5;
    filter: drop-shadow(0 0 12px rgba(103,255,66,.35));
    animation: cqh-br-mobile-fx-unit .9s ease-out both;
  }

  .cqh-br-mobile-combat-main {
    left: 21%;
    top: 27%;
    width: 62%;
    height: auto;
    z-index: 3;
    opacity: 0;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 18px rgba(103,255,66,.45));
    animation: cqh-br-mobile-fx-main 1.12s .08s cubic-bezier(.15,.82,.18,1) both;
  }

  .cqh-br-mobile-combat-tracer {
    left: 25%;
    top: 42%;
    width: 58%;
    height: auto;
    z-index: 4;
    opacity: 0;
    mix-blend-mode: screen;
    animation: cqh-br-mobile-fx-tracer 1.02s .12s ease-out both;
  }

  .cqh-br-mobile-combat-impact {
    right: 8%;
    top: 48%;
    width: 92px;
    height: 92px;
    object-fit: contain;
    transform: translateY(-50%) scale(.25);
    z-index: 7;
    opacity: 0;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 16px rgba(255,125,36,.65));
    animation: cqh-br-mobile-fx-impact .86s .56s ease-out both;
  }

  .cqh-br-mobile-combat-lock {
    right: 8px;
    top: 8px;
    width: 56px;
    height: 56px;
    object-fit: contain;
    z-index: 8;
    opacity: .58;
    filter: drop-shadow(0 0 10px rgba(255,73,45,.35));
    animation: cqh-br-mobile-fx-lock .9s ease-in-out infinite;
  }

  .cqh-br-mobile-combat-stage.is-scout .cqh-br-mobile-combat-main {
    left: 34%;
    top: 12%;
    width: 124px;
    animation: cqh-br-mobile-fx-radar 1.18s ease-out both;
  }

  .cqh-br-mobile-combat-stage.is-scout .cqh-br-mobile-combat-impact {
    width: 102px;
    height: 102px;
    filter: drop-shadow(0 0 18px rgba(111,255,63,.58));
  }

  .cqh-br-mobile-combat-stage.is-sent .cqh-br-mobile-combat-card {
    border-color: rgba(117,255,75,.7);
    box-shadow: 0 22px 60px rgba(0,0,0,.72), 0 0 26px rgba(86,255,59,.22), inset 0 1px 0 rgba(255,255,255,.1);
  }

  .cqh-br-mobile-combat-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(90deg, rgba(24,70,29,.72), rgba(8,15,20,.95));
  }

  .cqh-br-mobile-combat-status b {
    color: #9eff62;
    font-size: 11px;
    font-weight: 1000;
    white-space: nowrap;
  }

  .cqh-br-mobile-combat-status span {
    color: #d7e1eb;
    font-size: 10px;
    font-weight: 800;
    text-align: right;
  }
}

@media (min-width: 761px) {
  .cqh-br-mobile-combat-stage {
    display: none !important;
  }
}

@keyframes cqh-br-mobile-fx-stage-in {
  from { opacity: 0; transform: translateY(-16px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cqh-br-mobile-fx-unit {
  0% { opacity: 0; transform: translateY(-50%) translateX(-34px) scale(.82); }
  35% { opacity: 1; }
  100% { opacity: 1; transform: translateY(-50%) translateX(0) scale(1); }
}

@keyframes cqh-br-mobile-fx-main {
  0% { opacity: 0; transform: translateX(-70px) rotate(-8deg) scale(.72); }
  18% { opacity: .92; }
  72% { opacity: .92; transform: translateX(58px) rotate(1deg) scale(1.03); }
  100% { opacity: 0; transform: translateX(96px) rotate(3deg) scale(.9); }
}

@keyframes cqh-br-mobile-fx-tracer {
  0% { opacity: 0; transform: translateX(-54px) scale(.72); }
  20% { opacity: .95; }
  75% { opacity: .95; transform: translateX(42px) scale(1.05); }
  100% { opacity: 0; transform: translateX(78px) scale(1.1); }
}

@keyframes cqh-br-mobile-fx-impact {
  0% { opacity: 0; transform: translateY(-50%) scale(.18) rotate(0deg); }
  32% { opacity: 1; transform: translateY(-50%) scale(1) rotate(7deg); }
  100% { opacity: 0; transform: translateY(-50%) scale(1.62) rotate(15deg); }
}

@keyframes cqh-br-mobile-fx-lock {
  0%,100% { opacity: .46; transform: scale(.94); }
  50% { opacity: .82; transform: scale(1.06); }
}

@keyframes cqh-br-mobile-fx-radar {
  0% { opacity: 0; transform: scale(.35); }
  20% { opacity: .72; }
  72% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.28); }
}


/* 0.9.30 Victory mobile presentation fix */
.cqh-br-victory-player-panel {
  min-height: 150px;
  overflow: visible;
}

.cqh-br-victory-player-panel > img {
  object-fit: contain;
  object-position: center center;
}

.cqh-br-victory-player-panel > div {
  left: 42%;
  right: 5%;
}

.cqh-br-victory-next {
  min-height: 68px;
}

.cqh-br-victory-next img {
  object-fit: fill;
}

@media (max-width: 900px) {
  .cqh-br-victory-player-panel {
    min-height: 132px !important;
    margin: 2px 0 14px !important;
  }

  .cqh-br-victory-player-panel > div {
    left: 42% !important;
    right: 4% !important;
    gap: 4px !important;
  }

  .cqh-br-victory-player-panel strong {
    font-size: 22px !important;
    line-height: 1.05 !important;
  }

  .cqh-br-victory-player-panel span {
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .cqh-br-victory-next {
    min-height: 72px !important;
  }
}

@media (max-width: 420px) {
  .cqh-br-victory-player-panel {
    min-height: 122px !important;
  }

  .cqh-br-victory-player-panel > div {
    left: 41% !important;
    right: 3% !important;
  }

  .cqh-br-victory-player-panel strong {
    font-size: 20px !important;
  }

  .cqh-br-victory-player-panel span {
    font-size: 12px !important;
  }

  .cqh-br-victory-next {
    min-height: 68px !important;
  }
}

/* 0.9.31 Scout Report + live construction hammer animation */
.cqh-br-report[data-open-scout-report],
.cqh-br-report[data-open-victory-report] {
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cqh-br-report[data-open-scout-report]:hover,
.cqh-br-report[data-open-victory-report]:hover,
.cqh-br-report[data-open-scout-report]:focus-visible,
.cqh-br-report[data-open-victory-report]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(155,255,61,.58);
  box-shadow: 0 10px 24px rgba(0,0,0,.26), 0 0 18px rgba(120,255,46,.12);
  outline: none;
}

/* Active construction queue */
.cqh-br-build-queue-animated {
  position: relative;
  min-height: 148px;
  display: grid;
  grid-template-columns: 150px minmax(0,1fr) auto;
  grid-template-areas:
    "visual copy timer"
    "visual progress progress";
  align-items: center;
  gap: 10px 16px;
  overflow: hidden;
  padding: 10px 14px 10px 8px;
  border: 1px solid rgba(112,255,67,.22);
  border-radius: 15px;
  background: radial-gradient(circle at 17% 50%,rgba(92,255,44,.12),transparent 28%),linear-gradient(180deg,rgba(16,28,34,.92),rgba(8,14,19,.96));
}
.cqh-br-build-animation {
  grid-area: visual;
  position: relative;
  width: 142px;
  height: 126px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.cqh-br-build-frame-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .72;
  z-index: 1;
}
.cqh-br-build-target-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,.45));
}
.cqh-br-build-hammer-img {
  position: absolute;
  width: 72px;
  height: 106px;
  right: -1px;
  top: -6px;
  object-fit: contain;
  transform-origin: 58% 82%;
  z-index: 5;
  animation: cqh-br-hammer-strike 1.08s cubic-bezier(.36,.05,.2,1) infinite;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,.48));
}
.cqh-br-build-impact {
  position: absolute;
  left: 51%;
  top: 55%;
  width: 28px;
  height: 28px;
  z-index: 6;
  border-radius: 50%;
  background: radial-gradient(circle,#fff 0 9%,#d9ff65 12% 25%,rgba(91,255,42,.68) 27% 43%,transparent 68%);
  opacity: 0;
  animation: cqh-br-build-impact 1.08s ease-out infinite;
}
.cqh-br-build-sparks {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 56px;
  height: 56px;
  z-index: 4;
  opacity: 0;
  background: repeating-conic-gradient(from 10deg,rgba(213,255,86,.95) 0 2deg,transparent 2deg 22deg);
  -webkit-mask: radial-gradient(circle,transparent 0 34%,#000 38% 68%,transparent 72%);
  mask: radial-gradient(circle,transparent 0 34%,#000 38% 68%,transparent 72%);
  animation: cqh-br-build-sparks 1.08s ease-out infinite;
}
.cqh-br-build-copy { grid-area: copy; min-width: 0; display: grid; gap: 4px; }
.cqh-br-build-copy strong { color: #b9ff62; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; }
.cqh-br-build-copy span { color: #fff; font-weight: 800; font-size: 18px; }
.cqh-br-build-queue-animated > .cqh-br-countdown { grid-area: timer; color: #ffd34d; white-space: nowrap; }
.cqh-br-build-progress { grid-area: progress; position: relative; overflow: hidden; }
.cqh-br-build-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 28%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  transform: skewX(-22deg);
  animation: cqh-br-build-sheen 1.9s linear infinite;
}
@keyframes cqh-br-hammer-strike {
  0%,16% { transform: rotate(-28deg) translate(2px,-3px); }
  52% { transform: rotate(13deg) translate(-4px,5px); }
  59% { transform: rotate(7deg) translate(-2px,2px); }
  72%,100% { transform: rotate(-28deg) translate(2px,-3px); }
}
@keyframes cqh-br-build-impact {
  0%,48% { opacity:0; transform:translate(-50%,-50%) scale(.3); }
  54% { opacity:1; transform:translate(-50%,-50%) scale(1.15); }
  72%,100% { opacity:0; transform:translate(-50%,-50%) scale(1.7); }
}
@keyframes cqh-br-build-sparks {
  0%,49% { opacity:0; transform:translate(-50%,-50%) scale(.5) rotate(0); }
  55% { opacity:.95; transform:translate(-50%,-50%) scale(1) rotate(12deg); }
  78%,100% { opacity:0; transform:translate(-50%,-50%) scale(1.55) rotate(28deg); }
}
@keyframes cqh-br-build-sheen { to { left: 120%; } }

/* Build completion feedback */
.cqh-br-build-complete-overlay {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2,8,12,.74);
  backdrop-filter: blur(5px);
}
.cqh-br-build-complete-card {
  width: min(680px,92vw);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(114,255,64,.46);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 15%,rgba(114,255,64,.2),transparent 40%),linear-gradient(180deg,#17242b,#091117);
  box-shadow: 0 24px 70px rgba(0,0,0,.58),0 0 32px rgba(114,255,64,.18);
  animation: cqh-br-build-complete-pop .62s cubic-bezier(.2,.85,.2,1) both;
}
.cqh-br-build-complete-card img { width: min(620px,100%); height: auto; filter: drop-shadow(0 0 18px rgba(102,255,56,.35)); }
.cqh-br-build-complete-card strong { color:#fff; font-size:20px; text-align:center; }
.cqh-br-build-complete-card button { min-width:180px; padding:11px 18px; border:1px solid #72ff3f; border-radius:10px; background:linear-gradient(#4ac62e,#1b7318); color:#fff; font-weight:900; cursor:pointer; }
@keyframes cqh-br-build-complete-pop { from { opacity:0; transform:scale(.82) translateY(24px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* Animated Scout Report */
.cqh-br-scout-report-overlay {
  position: fixed;
  inset: 0;
  z-index: 10030;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto;
  background: rgba(1,7,11,.82);
  backdrop-filter: blur(6px);
}
.cqh-br-scout-report-screen {
  position: relative;
  width: min(1120px,96vw);
  min-height: 610px;
  padding: 96px 68px 62px;
  isolation: isolate;
  color: #fff;
}
.cqh-br-scout-report-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: -2;
  pointer-events: none;
}
.cqh-br-scout-report-close {
  position: absolute;
  right: 48px;
  top: 42px;
  z-index: 12;
  width: 44px;
  height: 44px;
  border: 2px solid #8fff43;
  border-radius: 9px;
  background: linear-gradient(#4fb52e,#1a6717);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(108,255,52,.28);
}
.cqh-br-scout-report-hero {
  position: absolute;
  left: 50%;
  top: 28px;
  transform: translateX(-50%);
  z-index: 4;
  width: min(650px,64%);
  text-align: center;
}
.cqh-br-scout-report-hero img { display:block; width:100%; height:auto; filter:drop-shadow(0 0 14px rgba(255,197,48,.24)); }
.cqh-br-scout-report-hero strong { display:block; margin-top:-14px; color:#9bff40; font-size:18px; text-shadow:0 0 10px rgba(117,255,49,.48); }
.cqh-br-scout-report-body { display:grid; grid-template-columns:.92fr 1.08fr; gap:28px; align-items:center; min-height:440px; }
.cqh-br-scout-scan-zone { position:relative; min-height:390px; display:grid; place-items:center; overflow:hidden; }
.cqh-br-scout-target-scene {
  position:absolute;
  inset: 13% 8% 14%;
  overflow:hidden;
  border-radius: 48% 48% 45% 45% / 50% 50% 46% 46%;
  background: radial-gradient(circle at 50% 35%,#31434c,#0d171c 68%);
}
.cqh-br-scout-target-image { width:100%; height:100%; object-fit:contain; opacity:.82; filter:sepia(.14) saturate(.85) brightness(.78); }
.cqh-br-scout-target-scene span { position:absolute; left:50%; bottom:8px; transform:translateX(-50%); color:#baff64; font-weight:900; text-shadow:0 2px 8px #000; white-space:nowrap; }
.cqh-br-scout-binocular { position:absolute; inset:7% 2% 8%; width:96%; height:85%; object-fit:fill; z-index:4; pointer-events:none; }
.cqh-br-scout-scan-glow { position:absolute; inset:6% 0; width:100%; height:88%; object-fit:fill; z-index:3; opacity:.22; mix-blend-mode:screen; pointer-events:none; }
.cqh-br-scout-scan-line { position:absolute; left:4%; top:47%; width:92%; height:auto; z-index:5; mix-blend-mode:screen; pointer-events:none; filter:drop-shadow(0 0 8px rgba(133,255,52,.7)); }
.cqh-br-scout-scan-progress { position:absolute; left:50%; bottom:2%; transform:translateX(-50%); z-index:7; display:grid; justify-items:center; gap:5px; }
.cqh-br-scout-scan-progress small { color:#9dff42; font-weight:900; text-transform:uppercase; }
.cqh-br-scout-scan-progress > div { display:flex; gap:2px; }
.cqh-br-scout-scan-progress img { width:18px; height:20px; object-fit:contain; opacity:.2; animation:cqh-br-scout-progress 1.8s ease-in-out infinite; animation-delay:calc(var(--i) * .12s); }
@keyframes cqh-br-scout-progress { 0%,22% { opacity:.16; filter:brightness(.65); } 45%,72% { opacity:1; filter:brightness(1.55) drop-shadow(0 0 4px rgba(120,255,45,.7)); } 100% { opacity:.26; } }
.cqh-br-scout-intel-zone { min-width:0; display:grid; gap:18px; }
.cqh-br-scout-target-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding-bottom:10px; border-bottom:1px solid rgba(149,255,55,.22); }
.cqh-br-scout-target-head h3 { margin:0; color:#fff; font-size:30px; }
.cqh-br-scout-target-head span { color:#a8b7c1; font-weight:700; }
.cqh-br-scout-signal { display:flex; align-items:center; gap:6px; flex:0 0 auto; }
.cqh-br-scout-signal img:first-child { width:48px; height:48px; object-fit:contain; }
.cqh-br-scout-signal img:last-child { width:92px; height:48px; object-fit:contain; }
.cqh-br-scout-intel-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.cqh-br-scout-intel-card { position:relative; min-height:250px; display:grid; place-items:center; align-content:center; gap:12px; text-align:center; overflow:hidden; }
.cqh-br-scout-card-frame { position:absolute; inset:0; width:100%; height:100%; object-fit:fill; z-index:0; }
.cqh-br-scout-card-glow { position:absolute; inset:-6%; width:112%; height:112%; object-fit:fill; z-index:1; opacity:.34; mix-blend-mode:screen; }
.cqh-br-scout-card-icon { position:relative; z-index:3; width:88px; height:88px; object-fit:contain; filter:drop-shadow(0 8px 10px rgba(0,0,0,.38)); }
.cqh-br-scout-intel-card > div { position:relative; z-index:3; display:grid; gap:5px; padding:0 8px; }
.cqh-br-scout-intel-card small { color:#d5e1e7; font-weight:900; text-transform:uppercase; }
.cqh-br-scout-intel-card strong { color:#fff; font-size:20px; overflow-wrap:anywhere; }
.cqh-br-scout-intel-card.is-hidden { opacity:.64; }
.cqh-br-scout-intel-card.is-hidden .cqh-br-scout-card-icon { filter:grayscale(.8) brightness(.64); }
.cqh-br-scout-intel-card.is-revealing .cqh-br-scout-card-icon,
.cqh-br-scout-intel-card.is-revealing > div { opacity:.08; filter:blur(5px); }
.cqh-br-scout-intel-card.is-revealed { animation:cqh-br-scout-card-reveal .72s cubic-bezier(.2,.85,.2,1) both; }
@keyframes cqh-br-scout-card-reveal { 0% { transform:scale(.86); filter:brightness(1); } 48% { transform:scale(1.06); filter:brightness(1.75); } 100% { transform:scale(1); filter:brightness(1); } }
.cqh-br-scout-reveal-flash { position:absolute; left:70%; top:56%; width:300px; height:300px; transform:translate(-50%,-50%); object-fit:contain; z-index:10; opacity:0; pointer-events:none; mix-blend-mode:screen; }

@media (max-width: 760px) {
  .cqh-br-build-queue-animated {
    min-height: 128px;
    grid-template-columns: 112px minmax(0,1fr);
    grid-template-areas:
      "visual copy"
      "visual timer"
      "progress progress";
    gap: 5px 10px;
    padding: 8px;
  }
  .cqh-br-build-animation { width:108px; height:104px; }
  .cqh-br-build-target-img { width:58px; height:58px; }
  .cqh-br-build-hammer-img { width:58px; height:86px; right:-1px; top:-3px; }
  .cqh-br-build-copy strong { font-size:11px; }
  .cqh-br-build-copy span { font-size:15px; }
  .cqh-br-build-queue-animated > .cqh-br-countdown { font-size:14px; }

  .cqh-br-scout-report-overlay { align-items:start; padding:8px; }
  .cqh-br-scout-report-screen { width:min(720px,100%); min-height:0; padding:76px 22px 34px; margin:8px 0; }
  .cqh-br-scout-report-frame { object-fit:fill; }
  .cqh-br-scout-report-close { right:18px; top:20px; width:38px; height:38px; font-size:25px; }
  .cqh-br-scout-report-hero { top:19px; width:72%; }
  .cqh-br-scout-report-hero strong { margin-top:-8px; font-size:13px; }
  .cqh-br-scout-report-body { grid-template-columns:1fr; gap:12px; }
  .cqh-br-scout-scan-zone { min-height:270px; }
  .cqh-br-scout-binocular { inset:5% 4% 7%; width:92%; height:86%; }
  .cqh-br-scout-target-scene { inset:12% 10% 15%; }
  .cqh-br-scout-target-head h3 { font-size:22px; }
  .cqh-br-scout-signal img:first-child { width:38px; height:38px; }
  .cqh-br-scout-signal img:last-child { width:74px; height:38px; }
  .cqh-br-scout-intel-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .cqh-br-scout-intel-card { min-height:174px; gap:6px; }
  .cqh-br-scout-card-icon { width:56px; height:56px; }
  .cqh-br-scout-intel-card small { font-size:9px; }
  .cqh-br-scout-intel-card strong { font-size:13px; }
  .cqh-br-scout-reveal-flash { left:50%; top:72%; width:220px; height:220px; }
  .cqh-br-build-complete-card { padding:18px 12px; }
  .cqh-br-build-complete-card strong { font-size:16px; }
}

@media (max-width: 390px) {
  .cqh-br-scout-report-screen { padding-left:14px; padding-right:14px; }
  .cqh-br-scout-scan-zone { min-height:238px; }
  .cqh-br-scout-intel-grid { grid-template-columns:1fr 1fr 1fr; }
  .cqh-br-scout-intel-card { min-height:150px; }
  .cqh-br-scout-card-icon { width:48px; height:48px; }
}

@media (prefers-reduced-motion: reduce) {
  .cqh-br-build-hammer-img,
  .cqh-br-build-impact,
  .cqh-br-build-sparks,
  .cqh-br-build-progress::after,
  .cqh-br-scout-scan-progress img { animation: none !important; }
}

/* ======================================================================
   0.9.0 — Unexpected Attack isolated event mini-game
   ====================================================================== */
.cqh-br-event-alert {
  grid-column: 1 / -1;
  border: 2px solid rgba(231, 69, 43, .55) !important;
  background:
    radial-gradient(circle at 88% 20%, rgba(219, 57, 34, .18), transparent 34%),
    linear-gradient(145deg, #202934 0%, #12171e 100%) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 10px 28px rgba(0,0,0,.28);
}
.cqh-br-event-alert.is-countdown { border-color: rgba(245, 180, 42, .58) !important; }
.cqh-br-event-alert.is-active { border-color: rgba(54, 184, 255, .62) !important; }
.cqh-br-event-alert.is-cooldown { border-color: rgba(73, 177, 125, .45) !important; }
.cqh-br-event-alert-head { display:flex; align-items:center; gap:14px; }
.cqh-br-event-alert-head > img { width:58px; height:58px; object-fit:contain; flex:0 0 58px; }
.cqh-br-event-alert-head > div { display:flex; flex-direction:column; gap:3px; min-width:0; }
.cqh-br-event-alert-head strong { color:#fff; font-size:20px; text-transform:uppercase; letter-spacing:.02em; }
.cqh-br-event-alert-head span { color:#c4cbd5; }
.cqh-br-event-alert p { color:#bcc5d1; margin:12px 0; line-height:1.5; }
.cqh-br-event-alert-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.cqh-br-event-alert-actions > span { color:#f0c04a; font-weight:800; }

.cqh-br-event-shield-card {
  display:grid !important;
  grid-template-columns:minmax(210px, 310px) 1fr;
  gap:22px;
  align-items:center;
  background:radial-gradient(circle at 16% 50%, rgba(39,166,255,.18), transparent 33%), #18202a !important;
  border-color:rgba(48,175,255,.45) !important;
}
.cqh-br-event-shield-art { min-height:210px; display:flex; align-items:center; justify-content:center; }
.cqh-br-event-shield-art img { width:min(100%, 290px); max-height:260px; object-fit:contain; filter:drop-shadow(0 0 18px rgba(39,180,255,.36)); }
.cqh-br-event-shield-copy p { color:#bcc6d3; line-height:1.45; }
.cqh-br-event-shield-stats { display:flex; gap:10px; flex-wrap:wrap; margin:12px 0; }
.cqh-br-event-shield-stats span { padding:8px 11px; border:1px solid #3b495b; border-radius:10px; background:#11161d; color:#aeb8c6; }
.cqh-br-event-shield-stats b { color:#fff; }
.cqh-br-event-shield-copy > small { display:block; color:#8f9bab; margin-top:8px; }

.cqh-br-event-prompt {
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(2,4,8,.84);
  backdrop-filter:blur(6px);
}
.cqh-br-event-prompt-box {
  width:min(610px, 100%);
  position:relative;
  text-align:center;
  padding:28px 24px 24px;
  border:2px solid #b83727;
  border-radius:20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(222,55,34,.25), transparent 42%),
    linear-gradient(160deg,#202731,#0d1117 76%);
  box-shadow:0 30px 80px rgba(0,0,0,.7), inset 0 0 0 2px rgba(255,188,52,.08);
}
.cqh-br-event-prompt-close { position:absolute; top:10px; right:12px; width:38px; height:38px; border:1px solid #495566; border-radius:10px; background:#10151c; color:#fff; font-size:25px; cursor:pointer; }
.cqh-br-event-prompt-icon { width:92px; height:92px; object-fit:contain; filter:drop-shadow(0 0 18px rgba(255,64,37,.36)); }
.cqh-br-event-prompt-box > small { display:block; margin-top:5px; color:#ffb82f; font-weight:900; letter-spacing:.18em; }
.cqh-br-event-prompt-box h2 { margin:8px 0 10px; color:#fff; font-size:clamp(24px,4vw,38px); line-height:1.02; }
.cqh-br-event-prompt-box p { color:#c7d0db; font-size:16px; line-height:1.5; }
.cqh-br-event-prompt-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:18px; }
.cqh-br-btn-muted { background:#252e39 !important; color:#d4dae2 !important; }

.cqh-br-event-game-card { max-width:660px; margin:0 auto; padding:12px !important; overflow:hidden; background:#0b0f14 !important; border-color:#3d4a59 !important; }
.cqh-br-event-game-title { position:relative; display:flex; align-items:center; justify-content:center; min-height:52px; padding:8px 82px 12px; text-align:center; }
.cqh-br-event-game-title small { color:#f0b932; font-weight:900; letter-spacing:.12em; text-shadow:0 2px 10px rgba(0,0,0,.65); }
.cqh-br-event-game-title h2 { margin:0; color:#f6bd35; font-size:clamp(22px,2.4vw,32px); line-height:1.05; text-align:center; text-shadow:0 2px 12px rgba(0,0,0,.65); }
.cqh-br-event-game-title span { color:#b3beca; font-size:13px; text-shadow:0 1px 8px rgba(0,0,0,.6); }
.cqh-br-event-title-controls { position:absolute; right:6px; top:50%; transform:translateY(-50%); display:flex; align-items:center; gap:12px; padding:0; }
.cqh-br-event-music-toggle, .cqh-br-event-fx-toggle { border:0; background:none; padding:0; color:#f1f4f8; font-weight:900; cursor:pointer; text-shadow:0 2px 10px rgba(0,0,0,.72), 0 0 10px rgba(77,198,255,.22); transition:opacity .18s ease, transform .18s ease, color .18s ease; }
.cqh-br-event-music-toggle { font-size:32px; line-height:1; }
.cqh-br-event-fx-toggle { font-size:14px; letter-spacing:.12em; text-transform:uppercase; }
.cqh-br-event-music-toggle:hover, .cqh-br-event-fx-toggle:hover { opacity:.9; transform:translateY(-1px); }
.cqh-br-event-music-toggle.is-muted, .cqh-br-event-fx-toggle.is-muted { color:#78818e; opacity:.8; text-shadow:0 2px 8px rgba(0,0,0,.65); }
.cqh-br-event-hud { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:0 auto 6px; width:min(100%,560px); }
.cqh-br-event-hud > div { min-width:0; text-align:center; padding:5px 5px 6px; border:2px solid #344150; border-radius:10px; background:linear-gradient(180deg,#252d37,#12171e); box-shadow:inset 0 0 0 2px #090c10; }
.cqh-br-event-hud small { display:block; color:#e9b83d; font-weight:900; text-transform:uppercase; font-size:9px; line-height:1.05; letter-spacing:.065em; text-shadow:0 2px 8px rgba(0,0,0,.72); }
.cqh-br-event-hud strong { display:block; margin-top:1px; color:#fff; font-size:clamp(14px,1.5vw,21px); line-height:1.05; white-space:nowrap; text-shadow:0 2px 10px rgba(0,0,0,.72); }
.cqh-br-event-shield-meter { height:10px; border:2px solid #27323f; border-radius:999px; background:#080b0f; overflow:hidden; margin:0 3px 8px; }
.cqh-br-event-shield-meter i { display:block; height:100%; background:linear-gradient(90deg,#167de5,#3fd8ff); box-shadow:0 0 14px rgba(44,190,255,.8); transition:width .2s linear; }
.cqh-br-event-canvas-wrap { position:relative; width:min(100%, 560px); margin:0 auto; border:3px solid #26313d; border-radius:15px; overflow:hidden; background:#06090d; box-shadow:0 18px 42px rgba(0,0,0,.5), inset 0 0 0 2px #07090c; }
.cqh-br-event-canvas { display:block; width:100%; height:auto; aspect-ratio:3/4; touch-action:none; }
.cqh-br-event-bottom-status { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:10px auto 0; width:min(100%,560px); align-items:start; }
.cqh-br-event-bottom-item { min-width:0; text-align:center; }
.cqh-br-event-bottom-card { position:relative; width:100%; aspect-ratio:2.15/1; min-height:0; padding:0 8px; display:flex; align-items:center; justify-content:center; background-image:var(--panel); background-repeat:no-repeat; background-position:center; background-size:100% 100%; overflow:hidden; }
.cqh-br-event-bottom-card strong { color:#f5f7fb; font-size:clamp(12px,1.7vw,20px); line-height:1; font-variant-numeric:tabular-nums; white-space:nowrap; text-shadow:0 2px 9px rgba(0,0,0,.9), 0 0 7px rgba(255,185,53,.10); }
.cqh-br-event-bottom-item > small { display:block; margin-top:5px; color:#d7a93b; font-size:8px; line-height:1.15; font-weight:900; letter-spacing:.05em; text-transform:uppercase; text-shadow:0 2px 7px rgba(0,0,0,.82); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cqh-br-event-bottom-item > small span { color:#cfd6df; font-weight:800; letter-spacing:.02em; text-transform:none; }
.cqh-br-event-bottom-item > small [data-event-extra-shield-info] { color:#f3f5f8; font-weight:900; letter-spacing:.02em; text-transform:none; }
.cqh-br-event-bottom-card-shield strong { transform:translateX(13%); }
.cqh-br-event-bottom-card-time strong { transform:translateY(1px); }
.cqh-br-event-bottom-card-reward strong { transform:translateX(-16%); color:#f5f7fb; }
.cqh-br-event-isolation-note { margin:10px auto 0; width:min(100%,720px); padding:9px 12px; border-left:3px solid #2aabef; background:#141b23; color:#8f9baa; font-size:12px; line-height:1.35; }

.cqh-br-event-upgrade-overlay { position:fixed; inset:0; z-index:2147483000; display:flex; align-items:center; justify-content:center; padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px)); overflow:auto; background:rgba(3,5,9,.82); backdrop-filter:blur(7px); }
.cqh-br-event-upgrade-overlay[hidden] { display:none; }
.cqh-br-event-game-card { position:relative; }
.cqh-br-event-game-card-framed {
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  padding:34px 26px 22px !important;
  overflow:visible;
  isolation:isolate;
}
.cqh-br-event-game-card-framed::before {
  content:"";
  position:absolute;
  inset:0;
  background-image:var(--event-frame);
  background-repeat:no-repeat;
  background-position:center;
  background-size:100% 100%;
  pointer-events:none;
  z-index:0;
}
.cqh-br-event-game-card-framed > * { position:relative; z-index:1; }
.cqh-br-event-upgrade-box { width:min(780px,100%); max-height:calc(100dvh - 40px); overflow:auto; padding:22px; border:2px solid #a97921; border-radius:18px; background:linear-gradient(150deg,#222b36,#0d1218); box-shadow:0 25px 70px rgba(0,0,0,.7); text-align:center; }
.cqh-br-event-upgrade-box > small { color:#f3b82f; font-weight:900; letter-spacing:.12em; }
.cqh-br-event-upgrade-box h3 { color:#fff; font-size:28px; margin:5px 0 18px; }
.cqh-br-event-upgrade-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.cqh-br-event-upgrade-choice { min-width:0; padding:12px 10px 14px; border:2px solid #3d4b5c; border-radius:14px; background:linear-gradient(#293340,#121820); color:#fff; cursor:pointer; transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
.cqh-br-event-upgrade-choice:hover { transform:translateY(-3px); border-color:#e0ac33; box-shadow:0 8px 24px rgba(0,0,0,.35),0 0 18px rgba(49,176,255,.16); }
.cqh-br-event-upgrade-choice img { width:100%; height:126px; object-fit:contain; filter:drop-shadow(0 5px 12px rgba(0,0,0,.45)); }
.cqh-br-event-upgrade-choice strong { display:block; color:#f2bd3e; font-size:17px; margin-top:4px; }
.cqh-br-event-upgrade-choice span { display:block; color:#b7c1cd; margin-top:4px; font-size:13px; }
.cqh-br-event-upgrade-choice em { display:inline-block; margin-top:8px; padding:3px 8px; border-radius:999px; font-style:normal; font-size:11px; font-weight:900; letter-spacing:.12em; color:#f7ecff; background:linear-gradient(90deg,#7a33ff,#d15cff); box-shadow:0 0 16px rgba(150,80,255,.35); }
.cqh-br-event-upgrade-choice.is-epic { border-color:#9b5cff; background:linear-gradient(180deg,#34204a,#151922); box-shadow:0 8px 28px rgba(0,0,0,.45),0 0 22px rgba(141,77,255,.24); }
.cqh-br-event-upgrade-choice.is-epic:hover { border-color:#d49aff; box-shadow:0 10px 28px rgba(0,0,0,.45),0 0 28px rgba(141,77,255,.42); }
.cqh-br-event-upgrade-box.has-epic-choice > small { color:#dc9eff; }

@media (max-width: 700px) {
  .cqh-br-app.is-event-frame-active { overflow:visible; }
  .cqh-br-event-alert-head > img { width:48px; height:48px; flex-basis:48px; }
  .cqh-br-event-alert-head strong { font-size:16px; }
  .cqh-br-event-shield-card { grid-template-columns:1fr; gap:8px; }
  .cqh-br-event-shield-art { min-height:145px; }
  .cqh-br-event-shield-art img { max-height:180px; }
  .cqh-br-event-game-card { max-width:none; padding:8px !important; }
  .cqh-br-event-game-card-framed { box-sizing:border-box; width:100vw; max-width:100vw; margin-left:50%; margin-right:0; transform:translateX(-50%); padding:24px 10px 18px !important; }
  .cqh-br-event-game-title { min-height:46px; padding:5px 72px 9px; }
  .cqh-br-event-game-title h2 { font-size:21px; color:#f6bd35; text-shadow:0 2px 12px rgba(0,0,0,.65); }
  .cqh-br-event-game-title small { color:#f0b932; }
  .cqh-br-event-game-title span { font-size:11px; color:#b3beca; }
  .cqh-br-event-hud small { color:#e9b83d; }
  .cqh-br-event-hud strong { color:#ffffff; }
  .cqh-br-event-bottom-card strong { color:#ffffff; text-shadow:0 2px 9px rgba(0,0,0,.9), 0 0 7px rgba(255,185,53,.10); }
  .cqh-br-event-bottom-item > small { color:#d7a93b; }
  .cqh-br-event-bottom-item > small span,
  .cqh-br-event-bottom-item > small [data-event-extra-shield-info] { color:#f3f5f8; }
  .cqh-br-event-upgrade-box > small, .cqh-br-event-upgrade-choice strong { color:#f2bd3e; }
  .cqh-br-event-upgrade-box h3, .cqh-br-event-upgrade-choice span { color:#ffffff; }
  .cqh-br-event-title-controls { right:2px; gap:8px; padding:0; }
  .cqh-br-event-music-toggle { font-size:28px; }
  .cqh-br-event-fx-toggle { font-size:12px; }
  .cqh-br-event-bottom-status { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; width:100%; }
  .cqh-br-event-bottom-card { aspect-ratio:2.1/1; padding:0 4px; }
  .cqh-br-event-bottom-card strong { font-size:clamp(10px,3vw,15px); }
  .cqh-br-event-bottom-item > small { margin-top:4px; font-size:7px; letter-spacing:.02em; }
  .cqh-br-event-bottom-card-shield strong { transform:translateX(12%); }
  .cqh-br-event-bottom-card-reward strong { transform:translateX(-14%); }
  .cqh-br-event-hud { gap:4px; width:100%; }
  .cqh-br-event-hud > div { padding:4px 2px 5px; border-radius:8px; }
  .cqh-br-event-hud small { font-size:7px; letter-spacing:.035em; }
  .cqh-br-event-hud strong { font-size:14px; }
  .cqh-br-event-canvas-wrap { border-radius:10px; }
  .cqh-br-event-upgrade-overlay { padding:12px 8px calc(12px + env(safe-area-inset-bottom,0px)); align-items:center; justify-content:center; }
  .cqh-br-event-upgrade-box { max-height:calc(100dvh - 24px); padding:14px 9px; }
  .cqh-br-event-upgrade-box h3 { font-size:21px; margin-bottom:12px; }
  .cqh-br-event-upgrade-grid { gap:6px; }
  .cqh-br-event-upgrade-choice { padding:7px 4px 9px; border-radius:10px; }
  .cqh-br-event-upgrade-choice img { height:82px; }
  .cqh-br-event-upgrade-choice strong { font-size:12px; line-height:1.1; }
  .cqh-br-event-upgrade-choice span { font-size:10px; line-height:1.15; }
  .cqh-br-event-upgrade-choice em { margin-top:6px; padding:2px 6px; font-size:9px; }
  .cqh-br-event-prompt { padding:10px; }
  .cqh-br-event-prompt-box { padding:22px 13px 16px; }
  .cqh-br-event-prompt-icon { width:72px; height:72px; }
  .cqh-br-event-prompt-box p { font-size:14px; }
}

@media (max-width: 420px) {
  .cqh-br-event-alert-actions .cqh-br-btn { width:100%; }
  .cqh-br-event-hud strong { font-size:13px; }
  .cqh-br-event-upgrade-choice img { height:68px; }
  .cqh-br-event-upgrade-choice strong { font-size:11px; }
}


/* v0.9.48 / CQH 1.6.83 — safe guest training mode */
.cqh-br-guest-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px auto 14px;max-width:1480px;padding:12px 16px;border:1px solid rgba(255,210,82,.45);border-radius:14px;background:linear-gradient(90deg,rgba(255,187,43,.15),rgba(24,34,58,.96));box-shadow:0 10px 28px rgba(0,0,0,.25);color:#eef3ff}.cqh-br-guest-banner div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.cqh-br-guest-banner strong{color:#ffd96b;text-transform:uppercase;letter-spacing:.08em}.cqh-br-guest-banner span{font-size:13px;line-height:1.35;opacity:.92}.cqh-br-guest-sidebar .cqh-br-guest-login-nav,.cqh-br-guest-save-top{border-color:rgba(255,211,91,.55)!important}.cqh-br-app.is-guest-mode .cqh-br-starter{border-color:rgba(255,211,91,.32)}
@media(max-width:760px){.cqh-br-guest-banner{margin:6px 8px 10px;padding:10px 11px;align-items:flex-start}.cqh-br-guest-banner div{display:block}.cqh-br-guest-banner strong{display:block;margin-bottom:3px}.cqh-br-guest-banner .cqh-br-btn-small{white-space:nowrap}}
