/* CU Heroes 1.7.32: theme-proof baseline (see basecss notes) */
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(h1,h2,h3,h4,h5,h6):not(#cu){font-weight:revert;line-height:revert;margin-block-start:revert;margin-block-end:revert;font-size:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(p):not(#cu){margin-block-start:revert;margin-block-end:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(a):not(#cu){background-color:revert;text-decoration:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(small,sub,sup):not(#cu){font-size:revert;line-height:revert;position:revert;vertical-align:revert;bottom:revert;top:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(b,strong):not(#cu){font-weight:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(code,kbd,samp,pre):not(#cu){font-family:revert;font-size:revert;white-space:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(abbr[title]):not(#cu){border-block-end:revert;text-decoration:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(hr):not(#cu){box-sizing:revert;height:revert;overflow:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(figcaption):not(#cu){color:revert;font-size:revert;font-style:revert;font-weight:revert;line-height:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(label):not(#cu){display:revert;line-height:revert;vertical-align:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(button,input,optgroup,select,textarea):not(#cu){font-family:revert;font-size:revert;line-height:revert;margin:revert;overflow:revert;text-transform:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(input,select,textarea):not(#cu){border:revert;border-radius:revert;padding:revert;transition:revert;width:revert;display:revert;appearance:revert;outline-offset:revert;box-sizing:revert;resize:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(button,[type=button],[type=reset],[type=submit]):not(#cu){-webkit-appearance:revert;appearance:revert;width:revert;background-color:revert;border:revert;border-radius:revert;color:revert;display:revert;font-size:revert;font-weight:revert;padding:revert;text-align:revert;transition:revert;user-select:revert;-webkit-user-select:revert;white-space:revert;cursor:revert;text-decoration:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(fieldset):not(#cu){padding:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(legend):not(#cu){box-sizing:revert;color:revert;display:revert;max-width:revert;padding:revert;white-space:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(progress):not(#cu){vertical-align:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(table):not(#cu){background-color:revert;border-collapse:revert;border-spacing:revert;font-size:revert;margin-block-end:revert;width:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(td,th):not(#cu){border:revert;line-height:revert;padding:revert;vertical-align:revert;background-color:revert;font-size:revert;font-weight:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(dd,dl,dt,li,ol,ul):not(#cu){background:revert;border:revert;font-size:revert;margin-block-end:revert;margin-block-start:revert;outline:revert;vertical-align:revert}
:where(.cocupgrade-heroes,.cocupgrade-heroes *,.cocupgrade-heroes__table-section,.cocupgrade-heroes__table-section *,.cocupgrade-heroes-data-updated,.cocupgrade-heroes-data-updated *,.cu-townhall,.cu-townhall *,.ct-shell,.ct-shell *):where(a,button,input,select,textarea,summary,[tabindex]):not(#cu){outline:revert;outline-offset:revert;box-shadow:revert}
/* 1.3.9 – fonts: Russo One (bundled) for display, site Rubik for UI, site Inter for text */
@font-face {
  font-family: "Russo One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Russo One"), local("RussoOne-Regular"), url("fonts/russo-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
.cocupgrade-heroes:not(#cu), .cocupgrade-heroes-data-updated:not(#cu), .cocupgrade-heroes--data:not(#cu), .cocupgrade-heroes--facts:not(#cu) {
  --cu-font-display: "Russo One", var(--e-global-typography-primary-font-family, "Rubik"), system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --cu-font-ui: var(--e-global-typography-primary-font-family, "Rubik"), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cu-font-text: var(--e-global-typography-text-font-family, "Inter"), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.cocupgrade-heroes:not(#cu) {
  --coc-aqua: #59d1cf;
  --coc-violet: #a196f3;
  --coc-ink: #071829;
  --coc-deep-aqua: #123f63;
  --coc-deep-violet: #3d3279;
  --coc-card: #10263d;
  --coc-line: rgba(167, 230, 255, .32);
  --coc-text: #f5fbff;
  --coc-muted: #c9d8ed;
  --cu-accent: #59d1cf;
  --cu-accent-2: #a196f3;
  --cu-bg-tint: rgba(89, 209, 207, .18);
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 30px);
  overflow: hidden;
  border: 1px solid var(--coc-line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 6%, var(--cu-bg-tint), transparent 34%),
    radial-gradient(circle at 2% 100%, rgba(89, 209, 207, .2), transparent 32%),
    var(--coc-ink);
  color: var(--coc-text);
  font-family: var(--cu-font-text);
}

.cocupgrade-heroes *:not(#cu),
.cocupgrade-heroes *:not(#cu)::before,
.cocupgrade-heroes *:not(#cu)::after { box-sizing: border-box; }

.cocupgrade-heroes button:not(#cu),
.cocupgrade-heroes input:not(#cu),
.cocupgrade-heroes select:not(#cu) { font: inherit; }

.cocupgrade-heroes button:not(#cu) { cursor: pointer; }

.cocupgrade-heroes button:focus-visible:not(#cu),
.cocupgrade-heroes input:focus-visible:not(#cu),
.cocupgrade-heroes select:focus-visible:not(#cu),
.cocupgrade-heroes__table-wrap:focus-visible:not(#cu) {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.cocupgrade-heroes__header:not(#cu) { max-width: none; margin: 0 0 20px; }
.cocupgrade-heroes__heading-row:not(#cu) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cocupgrade-heroes__heading-row h2:not(#cu) { min-width: 0; }
@media (min-width: 1101px) {
  .cocupgrade-heroes__header:not(#cu) { margin-right: calc(300px + clamp(12px, 2vw, 24px)); }
}
.cocupgrade-heroes__eyebrow:not(#cu) {
  margin: 0 0 5px;
  color: var(--coc-aqua);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cocupgrade-heroes h2:not(#cu),
.cocupgrade-heroes h3:not(#cu),
.cocupgrade-heroes p:not(#cu) { color: inherit; }
.cocupgrade-heroes h2:not(#cu) {
  margin: 0;
  font-family: var(--cu-font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  font-weight: 400;
  line-height: 1.08;
}
.cocupgrade-heroes__header > p:last-child:not(#cu) { margin: 8px 0 0; color: var(--coc-muted); line-height: 1.55; }

.cocupgrade-heroes__body:not(#cu) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "main tabs";
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}
.cocupgrade-heroes__main:not(#cu) { grid-area: main; min-width: 0; }
.cocupgrade-heroes__sidebar:not(#cu) {
  grid-area: tabs;
  position: sticky;
  top: 18px;
  width: 300px;
  display: grid;
  gap: 12px;
}
.cocupgrade-heroes__tabs:not(#cu) {
  width: 300px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--coc-line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(20, 67, 98, .92), rgba(61, 50, 121, .92));
}
.cocupgrade-heroes__sidebar-space:not(#cu) { width: 300px; height: 300px; }
.cocupgrade-heroes__tabs > p:not(#cu) { margin: 1px 3px 8px; color: #e3efff; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cocupgrade-heroes__tabs [role="tablist"]:not(#cu) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.cocupgrade-heroes__tabs button:not(#cu) {
  display: flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid rgba(218, 245, 255, .24);
  border-radius: 11px;
  background: rgba(3, 18, 34, .46);
  color: var(--coc-text);
  font-family: var(--cu-font-display);
  font-size: .68rem;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
}
.cocupgrade-heroes__tabs button:hover:not(#cu) { border-color: rgba(255, 255, 255, .72); }
.cocupgrade-heroes__tabs button[aria-selected="true"]:not(#cu) { border-color: #fff; background: linear-gradient(100deg, var(--coc-aqua), var(--coc-violet)); color: #071829; box-shadow: 0 7px 16px rgba(0, 0, 0, .24); }

.cocupgrade-heroes__form:not(#cu),
.cocupgrade-heroes__results:not(#cu),
.cocupgrade-heroes__table-section:not(#cu) {
  border: 1px solid var(--coc-line);
  border-radius: 18px;
  background: rgba(14, 37, 60, .78);
}
.cocupgrade-heroes__form:not(#cu) { padding: clamp(12px, 1.8vw, 18px); }
.cocupgrade-heroes__live-status:not(#cu) { display: inline-flex; min-height: 24px; align-items: center; gap: 5px; padding: 4px 9px; border: 1px solid rgba(89, 209, 207, .64); border-radius: 999px; background: rgba(3, 32, 49, .8); color: #a9ffdf; font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.cocupgrade-heroes__live-status i:not(#cu) { width: 7px; height: 7px; border-radius: 50%; background: #63f2ad; box-shadow: 0 0 0 3px rgba(99, 242, 173, .16); }
@keyframes cocupgrade-live-pulse {
  0%, 100% { opacity: .48; box-shadow: 0 0 0 3px rgba(99, 242, 173, .12), 0 0 4px rgba(99, 242, 173, .35); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(99, 242, 173, .22), 0 0 12px rgba(99, 242, 173, .95); }
}
.cocupgrade-heroes__live-status i:not(#cu) { animation: cocupgrade-live-pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .cocupgrade-heroes__live-status i:not(#cu) { animation: none; opacity: 1; } }
.cocupgrade-heroes__fields:not(#cu) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.cocupgrade-heroes__town-hall-field:not(#cu) { grid-column: 1 / -1; }
.cocupgrade-heroes__level-control:not(#cu) { position: relative; min-width: 0; }
.cocupgrade-heroes label:not(#cu),
.cocupgrade-heroes__boost-control:not(#cu),
.cocupgrade-heroes__hammer-wrap:not(#cu) { display: grid; gap: 6px; color: #eaf6ff; font-size: .86rem; font-weight: 700; }
.cocupgrade-heroes select:not(#cu),
.cocupgrade-heroes input:not(#cu) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(212, 242, 255, .48);
  border-radius: 10px;
  background: #071d31;
  color: var(--coc-text);
}
.cocupgrade-heroes__town-hall-picker-wrap:not(#cu) { display: none; min-width: 0; }
.cocupgrade-heroes__town-hall-picker[hidden]:not(#cu) { display: none; }
.cocupgrade-heroes--enhanced .cocupgrade-heroes__town-hall-picker-wrap:not(#cu) { display: block; }
.cocupgrade-heroes--enhanced .cocupgrade-heroes__town-hall-select:not(#cu),
.cocupgrade-heroes--enhanced .cocupgrade-heroes__time-reduction-select:not(#cu) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cocupgrade-heroes__town-hall-picker:not(#cu) {
  display: flex;
  gap: 4px;
  min-height: 58px;
  padding: 5px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid rgba(212, 242, 255, .42);
  border-radius: 12px;
  background: #071d31;
}
.cocupgrade-heroes__town-hall-button:not(#cu) {
  display: grid;
  position: relative;
  flex: 0 0 48px;
  min-width: 48px;
  min-height: 48px;
  place-items: center;
  padding: 1px;
  border: 2px solid transparent;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: var(--coc-text);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}
.cocupgrade-heroes__town-hall-button:hover:not(#cu) { background: rgba(89, 209, 207, .14); }
.cocupgrade-heroes__town-hall-button[aria-checked="true"]:not(#cu) {
  border-color: #fff;
  background: linear-gradient(145deg, rgba(89, 209, 207, .48), rgba(161, 150, 243, .44));
  box-shadow: 0 0 0 2px rgba(89, 209, 207, .65), 0 6px 12px rgba(0, 0, 0, .25);
}
.cocupgrade-heroes__town-hall-button img:not(#cu) { display: block; width: 44px; height: 44px; object-fit: contain; }
.cocupgrade-heroes__town-hall-badge:not(#cu) {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  min-width: 17px;
  padding: 1px 4px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(6, 26, 45, .85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.cocupgrade-heroes__town-hall-button[aria-checked="true"] .cocupgrade-heroes__town-hall-badge:not(#cu) {
  background: linear-gradient(135deg, #1bd79c, #3489ef);
  color: #061a2d;
}
.cocupgrade-heroes__cap-stats:not(#cu) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.cocupgrade-heroes__cap-stats[hidden]:not(#cu) { display: none !important; }
.cocupgrade-heroes__cap-stats > div:not(#cu) { min-width: 0; padding: 9px 10px; border: 1px solid rgba(128, 227, 239, .36); border-radius: 10px; background: linear-gradient(105deg, rgba(22, 70, 111, .54), rgba(74, 62, 143, .48)); }
.cocupgrade-heroes__cap-stats span:not(#cu) { display: block; color: #d6f5ff; font-size: .72rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.cocupgrade-heroes__cap-stats strong:not(#cu) { display: block; margin-top: 4px; overflow-wrap: anywhere; color: #fff; font-size: .92rem; line-height: 1.18; }
.cocupgrade-heroes__cap-note:not(#cu) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cocupgrade-heroes__boosts:not(#cu) { display: grid; grid-template-columns: minmax(162px, 1.25fr) minmax(140px, .82fr) minmax(120px, .72fr); gap: 8px; align-items: end; margin: 0; padding: 0 0 0 14px; border: 0; border-left: 1px solid rgba(217, 244, 255, .28); }
.cocupgrade-heroes__boosts:not(#cu) { position: relative; grid-template-columns: minmax(0, 1.16fr) minmax(0, .94fr) minmax(0, .75fr); padding: 10px 12px; border: 1px solid rgba(138, 232, 241, .72); border-radius: 15px; background: rgba(4, 41, 64, .78); }
.cocupgrade-heroes__boosts legend:not(#cu) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu),
.cocupgrade-heroes__boosts > label:not(#cu),
.cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu) { min-width: 0; }
.cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu),
.cocupgrade-heroes__boosts > label:not(#cu) { padding-right: 8px; border-right: 1px solid rgba(138, 232, 241, .58); }
.cocupgrade-heroes__boosts .cocupgrade-heroes__stepper:not(#cu) { border-color: #a8eff0; background: #f9ffff; }
.cocupgrade-heroes__boosts .cocupgrade-heroes__stepper input:not(#cu) { background: #f9ffff; color: #102b40; font-weight: 900; }
.cocupgrade-heroes__boosts .cocupgrade-heroes__stepper button:not(#cu) { background: #a7f5e5; color: #063542; }
.cocupgrade-heroes__potion-stepper input:not(#cu) { letter-spacing: .02em; }
.cocupgrade-heroes__segments:not(#cu) { display: flex; flex-wrap: wrap; gap: 5px; }
.cocupgrade-heroes__boosts .cocupgrade-heroes__segments:not(#cu) { flex-wrap: nowrap; gap: 4px; }
.cocupgrade-heroes__boosts [data-time-reduction-buttons]:not(#cu) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cocupgrade-heroes__boosts [data-hammer-jam-options]:not(#cu) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cocupgrade-heroes__segments button:not(#cu) { min-width: 44px; min-height: 44px; padding: 7px 10px; border: 1px solid rgba(212, 242, 255, .48); border-radius: 9px; background: #071d31; color: var(--coc-text); font-size: .82rem; font-weight: 900; }
.cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu) { width: 100%; min-width: 0; min-height: 40px; padding: 6px 7px; font-size: .75rem; }
.cocupgrade-heroes__segments button:hover:not(#cu) { border-color: rgba(255, 255, 255, .82); }
.cocupgrade-heroes__segments button[aria-pressed="true"]:not(#cu) { border-color: #fff; background: linear-gradient(100deg, var(--coc-aqua), var(--coc-violet)); color: #071829; }
/* Active boost controls: readable against the COCUpgrade aqua-to-blue treatment. */
.cocupgrade-heroes__boosts .cocupgrade-heroes__segments button[aria-pressed="true"]:not(#cu) {
  border-color: #fff;
  background: #f9ffff !important;
  color: #061a2d !important;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(6, 26, 45, .14), 0 0 0 2px rgba(168, 239, 240, .32);
}
.cocupgrade-heroes__stepper:not(#cu) { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; overflow: hidden; border: 1px solid rgba(212, 242, 255, .48); border-radius: 10px; background: #071d31; }
.cocupgrade-heroes__level-stepper:not(#cu) { grid-template-columns: 44px minmax(0, 1fr) 38px 44px; border-color: #a8eff0; background: #f9ffff; }
.cocupgrade-heroes__level-stepper input:not(#cu) { background: #f9ffff; color: #102b40; font-weight: 900; }
.cocupgrade-heroes__level-stepper button:not(#cu) { background: #e6fbf9; color: #0e5260; }
.cocupgrade-heroes__level-stepper button[data-current-step="1"]:not(#cu),
.cocupgrade-heroes__level-stepper button[data-target-step="1"]:not(#cu) { background: #a7f5e5; color: #063542; }
.cocupgrade-heroes__level-stepper button[data-current-step="-1"]:not(#cu),
.cocupgrade-heroes__level-stepper button[data-target-step="-1"]:not(#cu) { background: #e6fbf9 !important; color: #0e5260 !important; }
.cocupgrade-heroes__level-stepper button:not(:disabled):hover:not(#cu) { background: #a7f5e5; color: #063542; }
.cocupgrade-heroes__stepper input:not(#cu) { min-height: 44px; border: 0; border-radius: 0; text-align: center; }
.cocupgrade-heroes__stepper button:not(#cu) { min-height: 44px; border: 0; background: rgba(255, 255, 255, .12); color: var(--coc-text); font-weight: 900; }
.cocupgrade-heroes__stepper button:not(:disabled):hover:not(#cu) { background: rgba(89, 209, 207, .24); }
.cocupgrade-heroes__level-info:not(#cu) { min-width: 38px; border-left: 1px solid #c5e7ec !important; background: #a7f5e5 !important; color: #063542 !important; font-style: italic; font-family: Georgia, serif !important; font-size: 1rem !important; }
.cocupgrade-heroes__level-info[aria-expanded="true"]:not(#cu) { background: #8ee7dc !important; color: #052d39 !important; }
.cocupgrade-heroes__level-menu:not(#cu) { position: absolute; z-index: 5; top: calc(100% + 5px); right: 0; left: 0; max-height: 174px; overflow-y: auto; padding: 4px; border: 1px solid rgba(89, 209, 207, .68); border-radius: 9px; background: #9af0df; box-shadow: 0 10px 22px rgba(0, 0, 0, .34); }
.cocupgrade-heroes__level-menu[hidden]:not(#cu) { display: none; }
.cocupgrade-heroes__level-option:not(#cu) { display: block; width: 100%; min-height: 35px; padding: 6px 9px; border: 0; border-radius: 6px; background: transparent; color: #063647; font-size: .88rem; font-weight: 900; text-align: left; }
.cocupgrade-heroes__level-option:hover:not(#cu),
.cocupgrade-heroes__level-option:focus-visible:not(#cu),
.cocupgrade-heroes__level-option[aria-selected="true"]:not(#cu) { background: rgba(255, 255, 255, .58); color: #05283c; }
.cocupgrade-heroes__hammer-wrap[hidden]:not(#cu) { display: none !important; }

.cocupgrade-heroes__results:not(#cu) { container-type: inline-size; margin-top: 6px; padding: clamp(12px, 1.8vw, 18px); background: linear-gradient(135deg, var(--coc-deep-aqua), var(--coc-deep-violet)); }
.cocupgrade-heroes__result-top:not(#cu) { display: grid; grid-template-columns: minmax(220px, .93fr) minmax(0, 1.47fr); gap: 12px; align-items: start; }
.cocupgrade-heroes__result-summary:not(#cu) { min-width: 0; }
.cocupgrade-heroes__result-kicker:not(#cu) { margin: 0 0 5px; color: #9ff4eb; font-family: var(--cu-font-ui); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cocupgrade-heroes__results .cocupgrade-heroes__path:not(#cu) { font-family: var(--cu-font-display); font-weight: 400 !important; letter-spacing: .01em; font-size: clamp(.9rem, 1.12vw, 1rem); font-weight: 700; line-height: 1.22; }
.cocupgrade-heroes__path:not(#cu) { margin: 0; font-size: 1rem; font-weight: 700; }
.cocupgrade-heroes__result-note:not(#cu) { min-height: 1.3em; margin: 5px 0 0; color: #e3edff; font-size: .9rem; }
.cocupgrade-heroes__metrics:not(#cu) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 9px; }
.cocupgrade-heroes__metrics > div:not(#cu) { display: grid; min-width: 0; min-height: 80px; align-content: center; padding: 9px; border: 1px solid rgba(233, 250, 255, .28); border-radius: 12px; background: rgba(4, 18, 39, .28); }
.cocupgrade-heroes__metrics span:not(#cu) { display: block; color: #d6f5ff; font-size: .72rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.cocupgrade-heroes__metrics strong:not(#cu) { display: -webkit-box; max-height: 2.16em; margin-top: 5px; overflow: hidden; overflow-wrap: anywhere; color: #fff; font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 900; line-height: 1.08; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cocupgrade-heroes__metrics strong[data-cost-total]:not(#cu) { display: block; overflow-wrap: normal; white-space: nowrap; letter-spacing: -.035em; font-size: clamp(1.05rem, 1.9vw, 1.55rem); }
.cocupgrade-heroes__metrics > div:last-child strong:not(#cu) { font-size: clamp(.88rem, 1.25vw, 1rem); line-height: 1.18; }
.cocupgrade-heroes__source-note:not(#cu) { min-height: 1.2em; margin: 12px 0 0; color: #dce7fb; font-size: .78rem; line-height: 1.45; }
.cocupgrade-heroes__potion-note:not(#cu) { margin: 12px 0 0; color: #dce7fb; font-size: .78rem; line-height: 1.45; }
.cocupgrade-heroes__potion-note[hidden]:not(#cu) { display: none; }

.cocupgrade-heroes__table-section:not(#cu) { margin-top: 14px; padding: clamp(14px, 2.2vw, 22px); }
.cocupgrade-heroes__table-heading:not(#cu) { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.cocupgrade-heroes__table-heading h3:not(#cu) { margin: 0; font-size: 1.08rem; }
.cocupgrade-heroes__table-heading p:not(#cu) { margin: 0; color: var(--coc-muted); font-size: .82rem; text-align: right; }
.cocupgrade-heroes__table-wrap:not(#cu) { max-width: 100%; overflow-x: auto; border: 1px solid rgba(176, 228, 250, .31); border-radius: 11px; }
.cocupgrade-heroes table:not(#cu) { width: 100%; min-width: 610px; border-collapse: collapse; color: var(--coc-text); font-size: .88rem; }
.cocupgrade-heroes th:not(#cu),
.cocupgrade-heroes td:not(#cu) { padding: 10px 12px; border-bottom: 1px solid rgba(210, 242, 255, .17); text-align: left; white-space: nowrap; }
.cocupgrade-heroes thead:not(#cu) { position: sticky; top: 0; z-index: 1; background: linear-gradient(105deg, #061a2d 0%, #183d86 45%, #3a2fb8 100%); }
.cocupgrade-heroes thead tr:not(#cu) { background: transparent; }
.cocupgrade-heroes th:not(#cu) { background: transparent; color: #fff; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.cocupgrade-heroes tbody tr:nth-child(even):not(#cu) { background: rgba(125, 110, 223, .09); }
.cocupgrade-heroes tbody tr[data-in-plan="true"]:not(#cu) { background: rgba(89, 209, 207, .19); }
.cocupgrade-heroes tbody tr:last-child td:not(#cu) { border-bottom: 0; }
.cocupgrade-heroes__loading:not(#cu) { margin: 12px 2px 0; color: var(--coc-muted); font-size: .83rem; }
.cocupgrade-heroes__loading[hidden]:not(#cu) { display: none; }

.cocupgrade-heroes--compact:not(#cu) { padding: clamp(10px, 1.25vw, 16px); }
.cocupgrade-heroes--compact .cocupgrade-heroes__header:not(#cu) { margin-bottom: 10px; }
.cocupgrade-heroes--compact h2:not(#cu) { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.cocupgrade-heroes--compact .cocupgrade-heroes__body:not(#cu) { gap: 10px; }
.cocupgrade-heroes--compact .cocupgrade-heroes__form:not(#cu) { padding: clamp(10px, 1.25vw, 14px); }
.cocupgrade-heroes--compact .cocupgrade-heroes__results:not(#cu) { padding: clamp(10px, 1.25vw, 14px); }
.cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 68px; padding: 8px; }
.cocupgrade-heroes--compact .cocupgrade-heroes__potion-note:not(#cu) { margin-top: 8px; }

@media (max-width: 1200px) {
  .cocupgrade-heroes__metrics:not(#cu) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
}

@media (max-width: 1100px) {
  .cocupgrade-heroes:not(#cu) { border-radius: 18px; }
  .cocupgrade-heroes__body:not(#cu) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "main"; }
  .cocupgrade-heroes__sidebar:not(#cu) { position: static; width: auto; display: block; }
  .cocupgrade-heroes__tabs:not(#cu) { width: auto; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .cocupgrade-heroes__sidebar-space:not(#cu) { display: none; }
  .cocupgrade-heroes__tabs > p:not(#cu) { margin-left: 0; }
  .cocupgrade-heroes__tabs [role="tablist"]:not(#cu) { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: thin; }
  .cocupgrade-heroes__tabs button:not(#cu) { flex: 0 0 auto; min-height: 44px; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__tabs > p:not(#cu) { display: none; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:not(#cu) { padding-bottom: 2px; }
}

@media (max-width: 700px) {
  .cocupgrade-heroes__fields:not(#cu) { grid-template-columns: 1fr 1fr; }
  .cocupgrade-heroes__town-hall-field:not(#cu) { grid-column: 1 / -1; }
  .cocupgrade-heroes__town-hall-picker:not(#cu) { display: flex; overflow-x: auto; overscroll-behavior-inline: contain; }
  .cocupgrade-heroes__boosts:not(#cu) { grid-template-columns: 1fr 1fr; }
  .cocupgrade-heroes__metrics:not(#cu) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .cocupgrade-heroes__result-top:not(#cu) { grid-template-columns: 1fr; gap: 10px; }
  .cocupgrade-heroes__boosts:not(#cu) { padding: 10px; border: 1px solid rgba(138, 232, 241, .72); }
}

@media (max-width: 480px) {
  .cocupgrade-heroes:not(#cu) { padding: 9px; border-radius: 14px; }
  .cocupgrade-heroes__header:not(#cu) { margin-bottom: 14px; }
  .cocupgrade-heroes__heading-row:not(#cu) { align-items: flex-start; flex-wrap: wrap; }
  .cocupgrade-heroes__live-status:not(#cu) { margin-left: 0; }
  .cocupgrade-heroes__form:not(#cu),
  .cocupgrade-heroes__results:not(#cu),
  .cocupgrade-heroes__table-section:not(#cu) { border-radius: 14px; }
  .cocupgrade-heroes__fields:not(#cu),
  .cocupgrade-heroes__boosts:not(#cu) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cocupgrade-heroes__town-hall-field:not(#cu),
  .cocupgrade-heroes__hammer-wrap:not(#cu) { grid-column: auto; }
  .cocupgrade-heroes__town-hall-field:not(#cu),
  .cocupgrade-heroes__boost-control:not(#cu) { grid-column: 1 / -1; }
  .cocupgrade-heroes__cap-stats:not(#cu) { gap: 5px; }
  .cocupgrade-heroes__cap-stats > div:not(#cu) { padding: 8px 6px; }
  .cocupgrade-heroes__cap-stats span:not(#cu) { font-size: .62rem; }
  .cocupgrade-heroes__cap-stats strong:not(#cu) { font-size: .78rem; }
  .cocupgrade-heroes__town-hall-picker:not(#cu) { display: flex; min-height: 58px; overflow-x: auto; overscroll-behavior-inline: contain; }
  .cocupgrade-heroes__level-stepper:not(#cu) { grid-template-columns: 38px minmax(0, 1fr) 32px 38px; }
  .cocupgrade-heroes__stepper button:not(#cu),
  .cocupgrade-heroes__stepper input:not(#cu) { min-height: 42px; }
  .cocupgrade-heroes__level-info:not(#cu) { min-width: 32px; }
  .cocupgrade-heroes__table-heading:not(#cu) { display: block; }
  .cocupgrade-heroes__table-heading p:not(#cu) { margin-top: 4px; text-align: left; }
  .cocupgrade-heroes__metrics > div:not(#cu) { padding: 9px; }
  .cocupgrade-heroes__metrics strong:not(#cu) { font-size: .95rem; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__header:not(#cu) { margin-bottom: 8px; }
  .cocupgrade-heroes--compact h2:not(#cu) { font-size: 1.22rem; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__form:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__results:not(#cu) { padding: 9px; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics:not(#cu) { gap: 6px; margin-top: 7px; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 58px; padding: 7px; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics span:not(#cu) { font-size: .62rem; }
}

.cocupgrade-heroes--data:not(#cu),
.cocupgrade-heroes--facts:not(#cu) {
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.cocupgrade-heroes caption:not(#cu) {
  padding: 0 0 10px;
  color: var(--coc-muted);
  font-weight: 700;
  text-align: left;
}

.cocupgrade-heroes--facts .cocupgrade-heroes__results:not(#cu) { margin: 0; }
.cocupgrade-heroes--facts dl:not(#cu) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0; }
.cocupgrade-heroes--facts dl > div:not(#cu) { min-width: 0; padding: 10px; border: 1px solid rgba(233, 250, 255, .28); border-radius: 11px; background: rgba(4, 18, 39, .28); }
.cocupgrade-heroes--facts dt:not(#cu) { color: #d6f5ff; font-size: .72rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.cocupgrade-heroes--facts dd:not(#cu) { margin: 5px 0 0; color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.cocupgrade-heroes-data-updated:not(#cu) { color: #4c5b70; font-size: .88rem; }

@media (max-width: 640px) {
  .cocupgrade-heroes--facts dl:not(#cu) { grid-template-columns: 1fr 1fr; }
}

/* The result panel responds to the calculator column, not merely to browser width. */
@container (max-width: 680px) {
  .cocupgrade-heroes__result-top:not(#cu) { grid-template-columns: 1fr; gap: 9px; }
  .cocupgrade-heroes__boosts:not(#cu) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu) {
    grid-column: 1 / -1;
    padding: 0 0 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(138, 232, 241, .58);
  }
}

@container (max-width: 390px) {
  .cocupgrade-heroes__boosts:not(#cu) { gap: 7px; padding: 8px; }
  .cocupgrade-heroes__boosts > label:not(#cu) { padding-right: 5px; }
  .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu) { min-width: 38px; padding: 6px 5px; }
}

/* 1.3.8 – no flash on first paint */
.cocupgrade-heroes:not(.cocupgrade-heroes--enhanced) .cocupgrade-heroes__segments:not(#cu) { display: none; }
.cocupgrade-heroes__town-hall-picker:not(#cu) { scrollbar-width: none; -ms-overflow-style: none; }
.cocupgrade-heroes__town-hall-picker:not(#cu)::-webkit-scrollbar { display: none; }
.cocupgrade-heroes__potion-stepper input[data-builder-potions]:not(#cu) { min-width: 3ch; text-align: center; }

/* 1.3.9 – font roles */
.cocupgrade-heroes button:not(#cu),
.cocupgrade-heroes input:not(#cu),
.cocupgrade-heroes select:not(#cu),
.cocupgrade-heroes label:not(#cu),
.cocupgrade-heroes legend:not(#cu),
.cocupgrade-heroes__tabs p:not(#cu),
.cocupgrade-heroes__tabs button:not(#cu),
.cocupgrade-heroes__segments button:not(#cu),
.cocupgrade-heroes__town-hall-badge:not(#cu),
.cocupgrade-heroes__metrics span:not(#cu),
.cocupgrade-heroes__cap-stats:not(#cu),
.cocupgrade-heroes__boost-control > span:not(#cu),
.cocupgrade-heroes__level-menu:not(#cu) { font-family: var(--cu-font-ui); }
.cocupgrade-heroes__level-info:not(#cu) { font-family: Georgia, serif !important; }
.cocupgrade-heroes__metrics strong:not(#cu) { font-family: var(--cu-font-display); font-weight: 400; letter-spacing: .01em; }
.cocupgrade-heroes__metrics strong[data-cost-total]:not(#cu) { letter-spacing: 0; font-size: clamp(.95rem, 1.6vw, 1.38rem); }
.cocupgrade-heroes__metrics > div:last-child strong:not(#cu) { font-family: var(--cu-font-ui); font-weight: 700; }
.cocupgrade-heroes__metrics strong:not(#cu),
.cocupgrade-heroes input:not(#cu),
.cocupgrade-heroes table td:not(#cu),
.cocupgrade-heroes__cap-stats strong:not(#cu),
.cocupgrade-heroes--facts dd:not(#cu) { font-variant-numeric: tabular-nums; }
.cocupgrade-heroes__cap-note:not(#cu),
.cocupgrade-heroes__potion-note:not(#cu),
.cocupgrade-heroes__source-note:not(#cu),
.cocupgrade-heroes__header > p:not(#cu),
.cocupgrade-heroes table:not(#cu),
.cocupgrade-heroes-data-updated:not(#cu) { font-family: var(--cu-font-text); }
.cocupgrade-heroes table th:not(#cu), .cocupgrade-heroes table caption:not(#cu) { font-family: var(--cu-font-ui); }

/* 1.3.9 – mobile: level values always readable, adjustments never cut off */
.cocupgrade-heroes input[type="number"]:not(#cu) { -moz-appearance: textfield; appearance: textfield; }
.cocupgrade-heroes input[type="number"]:not(#cu)::-webkit-inner-spin-button,
.cocupgrade-heroes input[type="number"]:not(#cu)::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cocupgrade-heroes__level-stepper input:not(#cu) { min-width: 3.2ch; padding-left: 2px; padding-right: 2px; text-align: center; }
.cocupgrade-heroes__metrics > div:last-child strong:not(#cu) { display: block; max-height: none; -webkit-line-clamp: unset; overflow: visible; }
@media (max-width: 480px) {
  .cocupgrade-heroes__level-stepper button:not(#cu) { min-width: 34px; padding-left: 4px; padding-right: 4px; }
  .cocupgrade-heroes__level-info:not(#cu) { min-width: 30px !important; }
}

/* 1.3.11 – Boost savings card: fixed two-line summary */
.cocupgrade-heroes__metrics > div:last-child strong:not(#cu) { display: block; }
.cocupgrade-heroes__metrics .cocupgrade-heroes__saving-main:not(#cu) { display: block; text-transform: none; letter-spacing: .01em; font-family: var(--cu-font-display); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.1; color: #7dffcf; white-space: nowrap; }
.cocupgrade-heroes__metrics .cocupgrade-heroes__saving-sub:not(#cu) { display: block; text-transform: none; letter-spacing: 0; margin-top: 3px; font-family: var(--cu-font-ui); font-size: .74rem; font-weight: 700; line-height: 1.2; color: #c9f7e8; white-space: nowrap; }

/* 1.3.11 – reserve the final compact-calculator height (measured at each width) so nothing below can jump */
.cocupgrade-heroes--compact:not(#cu) { min-height: 570px; }
@media (max-width: 1100px) { .cocupgrade-heroes--compact:not(#cu) { min-height: 650px; } }
@media (max-width: 480px)  { .cocupgrade-heroes--compact:not(#cu) { min-height: 778px; } }

/* keep the potion note's space reserved so turning potions on/off never moves anything */
.cocupgrade-heroes__potion-note[hidden]:not(#cu) { display: block !important; visibility: hidden; }
.cocupgrade-heroes__potion-note:not(#cu) { min-height: 1.4em; }
@media (max-width: 1100px) { .cocupgrade-heroes__potion-note:not(#cu) { min-height: 2.8em; } }

/* 1.3.11 – game-style font back on the main controls */
.cocupgrade-heroes__tabs [role="tablist"] button:not(#cu),
.cocupgrade-heroes__segments button:not(#cu),
.cocupgrade-heroes__stepper input:not(#cu),
.cocupgrade-heroes__town-hall-badge:not(#cu) { font-family: var(--cu-font-display); font-weight: 400; letter-spacing: .01em; }
.cocupgrade-heroes__tabs [role="tablist"] button:not(#cu) { font-size: .86rem; }
/* savings card always reserves two lines */
.cocupgrade-heroes__metrics strong[data-adjustments]:not(#cu) { min-height: 2.3em; }

/* 1.3.12 – Town Hall row arrows (shown only when there is more to scroll on that side) */
.cocupgrade-heroes__town-hall-picker-wrap:not(#cu) { position: relative; }
.cocupgrade-heroes__th-arrow:not(#cu) { position: absolute; top: 50%; z-index: 3; display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; padding: 0 0 3px; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: linear-gradient(135deg, #1BD79C, #3489EF); color: #061A2D; font-family: var(--cu-font-ui); font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer; transform: translateY(-50%); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.cocupgrade-heroes__th-arrow--prev:not(#cu) { left: 4px; }
.cocupgrade-heroes__th-arrow--next:not(#cu) { right: 4px; }
.cocupgrade-heroes__th-arrow[hidden]:not(#cu) { display: none; }
.cocupgrade-heroes__th-arrow:hover:not(#cu) { filter: brightness(1.08); }
.cocupgrade-heroes__th-arrow:focus-visible:not(#cu) { outline: 3px solid #fff; outline-offset: 2px; }
.cocupgrade-heroes__town-hall-picker-wrap:not(#cu)::before, .cocupgrade-heroes__town-hall-picker-wrap:not(#cu)::after { content: ""; position: absolute; top: 1px; bottom: 1px; z-index: 2; width: 46px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.cocupgrade-heroes__town-hall-picker-wrap:not(#cu)::before { left: 1px; border-radius: 10px 0 0 10px; background: linear-gradient(90deg, #0b1d33 30%, rgba(11,29,51,0)); }
.cocupgrade-heroes__town-hall-picker-wrap:not(#cu)::after { right: 1px; border-radius: 0 10px 10px 0; background: linear-gradient(270deg, #0b1d33 30%, rgba(11,29,51,0)); }
.cocupgrade-heroes__town-hall-picker-wrap:has(.cocupgrade-heroes__th-arrow--prev:not([hidden])):not(#cu)::before,
.cocupgrade-heroes__town-hall-picker-wrap:has(.cocupgrade-heroes__th-arrow--next:not([hidden])):not(#cu)::after { opacity: 1; }
.cocupgrade-heroes__town-hall-picker:not(#cu) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .cocupgrade-heroes__town-hall-picker:not(#cu) { scroll-behavior: auto; } }

/* 1.3.13 – all four result cards identical: labels on one line, values on one line, no size change when boosts change */
.cocupgrade-heroes__metrics > div:not(#cu) { align-content: start; grid-template-rows: auto 1fr; }
.cocupgrade-heroes__metrics strong[data-adjustments]:not(#cu) { height: 2.4em; min-height: 0; max-height: none; overflow: hidden; }
.cocupgrade-heroes__metrics strong[data-adjustments]:not(:has(span)):not(#cu) { font-family: var(--cu-font-display); font-weight: 400; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.1; color: #c9d6e8; }
.cocupgrade-heroes__metrics strong[data-adjustments]:not(#cu) { height: 2.6rem; }
.cocupgrade-heroes__metrics > div:not(#cu) { min-height: 84px; }
.cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 84px; }
@media (max-width: 480px) { .cocupgrade-heroes__metrics > div:not(#cu), .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 76px; } }

/* 1.3.14 – sidebar box spacing */
.cocupgrade-heroes__sidebar-space:not(#cu) { margin-top: 12px; }
.cocupgrade-heroes__sidebar-space--filled:not(#cu) { display: flex; align-items: center; justify-content: center; overflow: hidden; }

/* 1.3.14 – readability: no fake bold, clearer small labels */
.cocupgrade-heroes:not(#cu) { font-synthesis: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.cocupgrade-heroes .cocupgrade-heroes__result-kicker:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__tabs > p:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__metrics span:not([class^="cocupgrade-heroes__saving"]):not(#cu) {
  font-family: var(--cu-font-ui); font-weight: 700; font-size: .76rem; letter-spacing: .09em; line-height: 1.25; color: #dff7ff;
}
.cocupgrade-heroes .cocupgrade-heroes__result-kicker:not(#cu) { color: #a9fbe6; }
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button[aria-pressed="true"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__segments button:not(#cu) { font-family: var(--cu-font-display); font-weight: 400; font-size: .86rem; letter-spacing: .03em; }
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button:not(#cu) { font-weight: 400; letter-spacing: .02em; }
.cocupgrade-heroes .cocupgrade-heroes__boost-control > span:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts label > span:first-child:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__hammer-wrap > span:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__fields label > span:first-child:not(#cu) { font-weight: 700; }
@media (max-width: 480px) {
  .cocupgrade-heroes .cocupgrade-heroes__result-kicker:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__metrics span:not([class^="cocupgrade-heroes__saving"]):not(#cu) { font-size: .7rem; }
}

/* 1.3.14 – selected hero uses the site title gradient */
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu) {
  border-color: rgba(255, 255, 255, .9);
  background-color: #102947;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .20) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(105deg, #061a2d 0%, #183d86 29%, #4934ff 58%, #3489ef 77%, #1bd79c 100%);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  box-shadow: 0 0 0 2px rgba(27, 215, 156, .35), 0 6px 16px -6px rgba(73, 52, 255, .7);
}

/* 1.3.15 – centre alignment */
/* result cards: label and value centred both ways */
.cocupgrade-heroes .cocupgrade-heroes__metrics > div:not(#cu) { align-content: center; justify-items: center; text-align: center; grid-template-rows: none; }
.cocupgrade-heroes .cocupgrade-heroes__metrics strong:not(#cu) { margin-left: auto; margin-right: auto; }
.cocupgrade-heroes .cocupgrade-heroes__metrics strong[data-adjustments]:not(#cu) { height: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* boosts: each group's title and controls centred in its column */
.cocupgrade-heroes .cocupgrade-heroes__boost-control:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__hammer-wrap:not(#cu) { text-align: center; justify-items: center; align-content: start; }
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments:not(#cu) { justify-content: center; }
.cocupgrade-heroes .cocupgrade-heroes__boosts > label > span:first-child:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boost-control > span:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__hammer-wrap > span:not(#cu) { display: block; width: 100%; text-align: center; }
/* result summary sits in the middle of its row */
.cocupgrade-heroes .cocupgrade-heroes__result-top:not(#cu) { align-items: center; }
/* hero selector heading */
.cocupgrade-heroes .cocupgrade-heroes__tabs > p:not(#cu) { text-align: center; }
/* Town Hall / Hero Hall stat tiles */
.cocupgrade-heroes .cocupgrade-heroes__cap-stats > div:not(#cu) { text-align: center; }
/* steppers: values centred */
.cocupgrade-heroes .cocupgrade-heroes__stepper input:not(#cu) { text-align: center; }
/* boost group titles on one baseline */
.cocupgrade-heroes .cocupgrade-heroes__boosts > *:not(#cu) { align-self: start; }
.cocupgrade-heroes .cocupgrade-heroes__boosts > label > span:first-child:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boost-control > span:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__hammer-wrap > span:not(#cu) { margin: 0 0 7px; padding: 0; line-height: 1.2; }
/* the sidebar box never shows on tablet / mobile, even when filled */
@media (max-width: 1100px) { .cocupgrade-heroes .cocupgrade-heroes__sidebar-space:not(#cu), .cocupgrade-heroes .cocupgrade-heroes__sidebar-space--filled:not(#cu) { display: none !important; } }
/* readable saving on small screens */
@media (max-width: 480px) {
  .cocupgrade-heroes .cocupgrade-heroes__metrics .cocupgrade-heroes__saving-main:not(#cu) { font-size: 1rem; }
  .cocupgrade-heroes .cocupgrade-heroes__metrics .cocupgrade-heroes__saving-sub:not(#cu) { font-size: .7rem; }
}
/* labels and main values on the same line in all four cards; extra savings line hangs below */
.cocupgrade-heroes .cocupgrade-heroes__metrics > div:not(#cu) { align-content: start; padding-top: 14px; }
@media (max-width: 480px) { .cocupgrade-heroes .cocupgrade-heroes__metrics > div:not(#cu) { padding-top: 12px; } }

/* 1.3.16 – compact phone layout, aligned with the three-part CWB boost panel. */
/* The selector label intentionally contrasts with the coloured active hero pill. */
.cocupgrade-heroes .cocupgrade-heroes__tabs > p:not(#cu) {
  display: flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: #f9ffff;
  color: #061a2d;
  font-family: var(--cu-font-ui);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

/* Gold Pass, Builder Potion and Hammer Jam remain side-by-side within one card. */
@container (max-width: 680px) {
  .cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.06fr) minmax(0, .84fr);
    gap: 0;
    padding: 9px 8px;
  }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu) {
    grid-column: auto;
    min-width: 0;
    padding: 0 7px;
    border: 0;
    border-right: 1px solid rgba(138, 232, 241, .58);
  }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu) { padding-left: 0; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu) {
    padding-right: 0;
    border-right: 0;
  }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > label > span:first-child:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boost-control > span:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__hammer-wrap > span:not(#cu) {
    min-height: 17px;
    margin-bottom: 5px;
    font-size: .67rem;
    line-height: 1.1;
    white-space: nowrap;
  }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments:not(#cu) { gap: 4px; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper button:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper input:not(#cu) { min-height: 40px; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu) {
    padding: 5px 3px;
    font-size: .73rem;
  }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper:not(#cu) {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper input:not(#cu) {
    min-width: 2ch;
    padding-right: 1px;
    padding-left: 1px;
    font-size: .82rem;
  }
}

@media (max-width: 480px) {
  /* Markup is final at first paint, so a reserved 778px compact height is unnecessary. */
  .cocupgrade-heroes--compact:not(#cu) { min-height: 0; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__header:not(#cu) { margin-bottom: 7px; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:not(#cu) { gap: 5px; padding-bottom: 3px; }
  .cocupgrade-heroes--compact .cocupgrade-heroes__tabs button:not(#cu) { min-height: 38px; padding: 6px 10px; font-size: .78rem; }
}

@media (max-width: 360px) {
  .cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) { padding: 8px 6px; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu) { padding-right: 5px; padding-left: 5px; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu) { padding-left: 0; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu) { padding-right: 0; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > label > span:first-child:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__boost-control > span:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__hammer-wrap > span:not(#cu) { font-size: .6rem; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu) { font-size: .67rem; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper:not(#cu) { grid-template-columns: 30px minmax(0, 1fr) 30px; }
}

/* 1.3.17 – sticky hero sidebar clears the site's sticky header (desktop only; the sidebar is static below 1100px) */
.cocupgrade-heroes__sidebar:not(#cu) { top: var(--cu-sticky-offset, 130px); }
.admin-bar .cocupgrade-heroes__sidebar:not(#cu) { top: calc(var(--cu-sticky-offset, 130px) + 32px); }

/* 1.3.17 – Builder Potion value never clipped ("0x" … "20x") */
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper.cocupgrade-heroes__potion-stepper:not(#cu) { grid-template-columns: 36px minmax(3.6ch, 1fr) 36px; }
.cocupgrade-heroes .cocupgrade-heroes__potion-stepper input[data-builder-potions]:not(#cu) { min-width: 3.6ch; width: 100%; padding-left: 0; padding-right: 0; text-align: center; overflow: visible; text-overflow: clip; letter-spacing: 0; }
@media (max-width: 480px) {
  .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper.cocupgrade-heroes__potion-stepper:not(#cu) { grid-template-columns: 28px minmax(3.4ch, 1fr) 28px; }
}
/* overflow:hidden on the root disabled position:sticky; clip keeps the rounded corners without breaking sticky */
@supports (overflow: clip) { .cocupgrade-heroes:not(#cu) { overflow: clip; } }

/* 1.4.0 – per-hero accents and calculator actions. */
.cocupgrade-heroes--hero-barbarian-king:not(#cu) { --cu-accent: #F59E0B; --cu-accent-2: #EF4444; --cu-bg-tint: rgba(245, 158, 11, .18); }
.cocupgrade-heroes--hero-archer-queen:not(#cu) { --cu-accent: #C026D3; --cu-accent-2: #7C3AED; --cu-bg-tint: rgba(192, 38, 211, .18); }
.cocupgrade-heroes--hero-grand-warden:not(#cu) { --cu-accent: #CA8A04; --cu-accent-2: #059669; --cu-bg-tint: rgba(202, 138, 4, .18); }
.cocupgrade-heroes--hero-royal-champion:not(#cu) { --cu-accent: #3489EF; --cu-accent-2: #22D3EE; --cu-bg-tint: rgba(52, 137, 239, .18); }
.cocupgrade-heroes--hero-minion-prince:not(#cu) { --cu-accent: #8B5CF6; --cu-accent-2: #EC4899; --cu-bg-tint: rgba(139, 92, 246, .18); }
.cocupgrade-heroes--hero-dragon-duke:not(#cu) { --cu-accent: #F97316; --cu-accent-2: #DC2626; --cu-bg-tint: rgba(249, 115, 22, .18); }

.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__segments button[aria-pressed="true"]:not(#cu) {
  border-color: #fff;
  background: linear-gradient(100deg, var(--cu-accent), var(--cu-accent-2));
  color: #071829;
  text-shadow: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cu-accent) 36%, transparent), 0 6px 16px -6px rgba(0, 0, 0, .55);
}
.cocupgrade-heroes .cocupgrade-heroes__result-kicker:not(#cu) { color: var(--cu-accent); }
.cocupgrade-heroes__town-hall-button[aria-checked="true"]:not(#cu) {
  background: linear-gradient(145deg, color-mix(in srgb, var(--cu-accent) 52%, transparent), color-mix(in srgb, var(--cu-accent-2) 46%, transparent));
  box-shadow: 0 0 0 2px var(--cu-accent), 0 6px 12px rgba(0, 0, 0, .25);
}
.cocupgrade-heroes__town-hall-button[aria-checked="true"] .cocupgrade-heroes__town-hall-badge:not(#cu) { background: linear-gradient(135deg, var(--cu-accent), var(--cu-accent-2)); color: #071829; }

.cocupgrade-heroes__actions:not(#cu) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-height: 78px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(167, 230, 255, .28);
  border-radius: 14px;
  background: rgba(4, 18, 39, .24);
}
.cocupgrade-heroes__actions button:not(#cu) {
  min-width: 0;
  min-height: 40px;
  padding: 7px 9px;
  border: 1px solid rgba(212, 242, 255, .48);
  border-radius: 999px;
  background: rgba(7, 29, 49, .88);
  color: var(--coc-text);
  font-family: var(--cu-font-display);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.1;
}
.cocupgrade-heroes__actions button:hover:not(#cu) { border-color: var(--cu-accent); background: rgba(255, 255, 255, .08); }
.cocupgrade-heroes__actions-meta:not(#cu) { grid-column: 1 / -1; display: flex; min-height: 14px; align-items: center; justify-content: space-between; gap: 8px; color: var(--coc-muted); font-family: var(--cu-font-ui); font-size: .67rem; font-weight: 700; line-height: 1.1; }
.cocupgrade-heroes__actions-meta [data-action-status]:not(#cu) { color: var(--cu-accent); }

.cocupgrade-heroes__quick-facts:not(#cu) { width: 300px; padding: 14px; border: 1px solid var(--coc-line); border-radius: 17px; background: rgba(14, 37, 60, .9); }
.cocupgrade-heroes__quick-facts h3:not(#cu) { margin: 0 0 10px; color: var(--coc-text); font-family: var(--cu-font-display); font-size: .94rem; font-weight: 400; line-height: 1.25; }
.cocupgrade-heroes__quick-facts dl:not(#cu) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.cocupgrade-heroes__quick-facts dl > div:not(#cu) { min-width: 0; padding: 8px; border: 1px solid rgba(233, 250, 255, .22); border-radius: 9px; background: rgba(4, 18, 39, .24); }
.cocupgrade-heroes__quick-facts dt:not(#cu) { color: var(--coc-muted); font-family: var(--cu-font-ui); font-size: .62rem; font-weight: 800; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
.cocupgrade-heroes__quick-facts dd:not(#cu) { margin: 4px 0 0; color: #fff; font-family: var(--cu-font-ui); font-size: .76rem; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
  .cocupgrade-heroes__body--quick-facts:not(#cu) { grid-template-areas: "main"; }
  .cocupgrade-heroes__sidebar--quick-facts:not(#cu) { display: none; }
}
@media (max-width: 600px) {
  .cocupgrade-heroes__actions:not(#cu) { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 128px; }
  .cocupgrade-heroes__actions button:not(#cu) { min-height: 44px; font-size: .72rem; }
}

/* 1.4.1 – compact calculator polish. */
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu) { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.cocupgrade-heroes .cocupgrade-heroes__result-kicker:not(#cu) {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: linear-gradient(100deg, var(--cu-accent), var(--cu-accent-2));
  color: #fff;
  font-size: .66rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.cocupgrade-heroes__quick-facts:not(#cu) { padding: 12px; }
.cocupgrade-heroes__quick-facts h3:not(#cu) {
  display: table;
  min-height: 30px;
  margin: 0 auto 9px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  background: #f9ffff;
  color: #061a2d;
  font-family: var(--cu-font-ui);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.cocupgrade-heroes__quick-facts dl:not(#cu) { grid-template-columns: 1fr; gap: 6px; }
.cocupgrade-heroes__quick-facts dl > div:not(#cu) {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  border-color: rgba(233, 250, 255, .28);
  background: rgba(4, 18, 39, .28);
  text-align: center;
}
.cocupgrade-heroes__quick-facts dt:not(#cu) { flex: 0 0 auto; color: #dff7ff; font-size: .62rem; white-space: nowrap; }
.cocupgrade-heroes__quick-facts dd:not(#cu) { margin: 0; color: #fff; font-family: var(--cu-font-display); font-size: .79rem; font-weight: 400; line-height: 1; white-space: nowrap; }

@media (min-width: 1200px) {
  .cocupgrade-heroes:not(#cu) { padding: 16px; }
  .cocupgrade-heroes__header:not(#cu) { margin-bottom: 12px; }
  .cocupgrade-heroes h2:not(#cu) { font-size: 30px; }
  .cocupgrade-heroes__body:not(#cu) { gap: 16px; }
  .cocupgrade-heroes__form:not(#cu) { padding: 12px; }
  .cocupgrade-heroes__fields:not(#cu) { gap: 8px 10px; }
  .cocupgrade-heroes__town-hall-picker:not(#cu) { min-height: 52px; padding: 4px; }
  .cocupgrade-heroes__town-hall-button:not(#cu) { flex-basis: 44px; min-width: 44px; min-height: 44px; }
  .cocupgrade-heroes__town-hall-button img:not(#cu) { width: 40px; height: 40px; }
  .cocupgrade-heroes__stepper input:not(#cu),
  .cocupgrade-heroes__stepper button:not(#cu) { min-height: 48px; }
  .cocupgrade-heroes__results:not(#cu) { margin-top: 6px; padding: 12px; }
  .cocupgrade-heroes__result-top:not(#cu) { gap: 9px; }
  .cocupgrade-heroes__metrics:not(#cu) { gap: 7px; margin-top: 8px; }
  .cocupgrade-heroes__metrics > div:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 88px; padding: 8px; }
  .cocupgrade-heroes__actions:not(#cu) { display: flex; min-height: 56px; align-items: center; gap: 6px; margin-top: 8px; padding: 7px; }
  .cocupgrade-heroes__actions button:not(#cu) { flex: 1 1 0; min-height: 40px; padding: 6px 8px; }
  .cocupgrade-heroes__actions-meta:not(#cu) { display: flex; flex: 0 0 auto; min-height: 40px; gap: 6px; white-space: nowrap; }
}

@media (max-width: 1100px) {
  .cocupgrade-heroes__body:not(#cu),
  .cocupgrade-heroes__body--quick-facts:not(#cu) { grid-template-areas: "main" "tabs"; gap: 12px; }
  .cocupgrade-heroes__sidebar--quick-facts:not(#cu) { display: block; }
  .cocupgrade-heroes__quick-facts:not(#cu) { width: auto; }
}

@media (min-width: 960px) and (max-width: 1100px) and (orientation: landscape) {
  .cocupgrade-heroes__body:not(#cu),
  .cocupgrade-heroes__body--quick-facts:not(#cu) { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main tabs"; gap: 16px; }
  .cocupgrade-heroes__sidebar:not(#cu) { display: grid; width: 300px; }
  .cocupgrade-heroes__tabs:not(#cu),
  .cocupgrade-heroes__quick-facts:not(#cu) { width: 300px; }
}

@media (min-width: 360px) and (max-width: 600px) {
  .cocupgrade-heroes:not(#cu) { padding: 8px; }
  .cocupgrade-heroes__header:not(#cu) { margin-bottom: 8px; }
  .cocupgrade-heroes h2:not(#cu),
  .cocupgrade-heroes--compact h2:not(#cu) { font-size: 22px; }
  .cocupgrade-heroes__form:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__form:not(#cu) { padding: 8px; }
  .cocupgrade-heroes__fields:not(#cu) { gap: 7px 8px; }
  .cocupgrade-heroes__town-hall-picker:not(#cu) { min-height: 48px; padding: 3px; }
  .cocupgrade-heroes__town-hall-button:not(#cu) { flex-basis: 44px; min-width: 44px; min-height: 44px; }
  .cocupgrade-heroes__town-hall-button img:not(#cu) { width: 40px; height: 40px; }
  .cocupgrade-heroes__stepper input:not(#cu),
  .cocupgrade-heroes__stepper button:not(#cu) { min-height: 44px; }
  .cocupgrade-heroes__results:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__results:not(#cu) { margin-top: 6px; padding: 8px; }
  .cocupgrade-heroes__result-top:not(#cu) { gap: 7px; }
  .cocupgrade-heroes__boosts:not(#cu) { padding: 7px 5px; }
  .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu),
  .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper button:not(#cu),
  .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper input:not(#cu) { min-height: 44px; }
  .cocupgrade-heroes__metrics:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics:not(#cu) { gap: 6px; margin-top: 7px; }
  .cocupgrade-heroes__metrics > div:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 64px; padding: 7px; }
}

/* 1.4.2 – fit-to-viewport + font cleanup (final overrides). */
/* Russo One only for the calculator title and the four big result values. */
.cocupgrade-heroes .cocupgrade-heroes__actions button:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__segments button:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__results .cocupgrade-heroes__path:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__town-hall-badge:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__quick-facts dd:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__metrics .cocupgrade-heroes__saving-main:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__metrics > div:last-child strong:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__metrics strong[data-adjustments]:not(:has(span)):not(#cu) { font-family: var(--cu-font-ui); font-weight: 700; letter-spacing: .01em; }
.cocupgrade-heroes .cocupgrade-heroes__segments button:not(#cu) { font-weight: 800; }
.cocupgrade-heroes .cocupgrade-heroes__metrics strong:not(#cu) { font-family: var(--cu-font-display); font-weight: 400; }

/* Columns size to their own content; the card is as tall as the taller column, no stretching. */
.cocupgrade-heroes__body:not(#cu) { align-items: start; }
.cocupgrade-heroes__main:not(#cu), .cocupgrade-heroes__sidebar:not(#cu) { align-self: start; }
.cocupgrade-heroes--compact:not(#cu) { min-height: 0; }
.cocupgrade-heroes .cocupgrade-heroes__potion-note[hidden]:not(#cu) { display: none !important; } /* shown only after the user adds potions; input-driven shifts don't count toward CLS */
.cocupgrade-heroes .cocupgrade-heroes__results .cocupgrade-heroes__path:not(#cu) { font-weight: 700 !important; }

/* Quick facts = 6 compact tiles, 2 x 3, styled like the result cards. */
.cocupgrade-heroes__quick-facts:not(#cu) { width: 300px; padding: 10px; }
.cocupgrade-heroes__quick-facts h3:not(#cu) { margin: 0 auto 8px; }
.cocupgrade-heroes__quick-facts dl:not(#cu) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cocupgrade-heroes__quick-facts dl > div:not(#cu) {
  display: grid; min-height: 52px; align-content: center; justify-items: center; gap: 3px; padding: 6px 4px;
  border: 1px solid rgba(233, 250, 255, .28); border-radius: 12px; background: rgba(4, 18, 39, .28); text-align: center;
}
.cocupgrade-heroes__quick-facts dt:not(#cu) { font-size: .58rem; letter-spacing: .08em; color: #dff7ff; }
.cocupgrade-heroes__quick-facts dd:not(#cu) { margin: 0; font-size: .92rem; line-height: 1.1; color: #fff; white-space: nowrap; }
.cocupgrade-heroes__sidebar--quick-facts:not(#cu) { display: grid; gap: 10px; align-content: start; }

@media (min-width: 1200px) {
  .cocupgrade-heroes:not(#cu) { padding: 14px 16px; }
  .cocupgrade-heroes__header:not(#cu) { margin-bottom: 8px; }
  .cocupgrade-heroes h2:not(#cu) { font-size: 28px; line-height: 1.1; }
  .cocupgrade-heroes__form:not(#cu) { padding: 10px 12px; }
  .cocupgrade-heroes__fields:not(#cu) { gap: 6px 10px; }
  .cocupgrade-heroes__results:not(#cu) { padding: 10px 12px; }
  .cocupgrade-heroes__metrics > div:not(#cu),
  .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 76px; padding: 6px; }
  .cocupgrade-heroes__actions:not(#cu) { min-height: 0; margin-top: 8px; padding: 6px; }
  .cocupgrade-heroes__actions button:not(#cu) { min-height: 38px; }
}
@media (max-width: 600px) {
  .cocupgrade-heroes__header:not(#cu) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .cocupgrade-heroes h2:not(#cu), .cocupgrade-heroes--compact h2:not(#cu) { font-size: clamp(17px, 5vw, 20px); line-height: 1.15; white-space: nowrap; margin: 0; }
  .cocupgrade-heroes__live-status:not(#cu) { display: none; }
  .cocupgrade-heroes__metrics > div:not(#cu), .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 58px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .cocupgrade-heroes__sidebar--quick-facts:not(#cu) { width: auto; }
  .cocupgrade-heroes__sidebar--quick-facts .cocupgrade-heroes__quick-facts:not(#cu) { width: auto; }
  .cocupgrade-heroes__quick-facts dl:not(#cu) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cocupgrade-heroes__metrics:not(#cu), .cocupgrade-heroes--compact .cocupgrade-heroes__metrics:not(#cu) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cocupgrade-heroes__metrics > div:not(#cu), .cocupgrade-heroes--compact .cocupgrade-heroes__metrics > div:not(#cu) { min-height: 70px; }
}
@media (min-width: 960px) and (max-width: 1100px) and (orientation: landscape) {
  .cocupgrade-heroes__sidebar--quick-facts:not(#cu), .cocupgrade-heroes__sidebar--quick-facts .cocupgrade-heroes__quick-facts:not(#cu) { width: 300px; }
  .cocupgrade-heroes__quick-facts dl:not(#cu) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 1.4.3 – Reset / Max / Copy / Share tucked behind "Advanced". */
.cocupgrade-heroes__more:not(#cu) { margin-top: 8px; }
.cocupgrade-heroes__more > summary:not(#cu) {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 14px; cursor: pointer; list-style: none;
  border: 1px solid rgba(212, 242, 255, .48); border-radius: 999px; background: rgba(7, 29, 49, .88);
  color: var(--coc-text); font-family: var(--cu-font-ui); font-size: .74rem; font-weight: 700; letter-spacing: .04em;
}
.cocupgrade-heroes__more > summary:not(#cu)::-webkit-details-marker { display: none; }
.cocupgrade-heroes__more > summary:not(#cu)::after { content: "▾"; font-size: .8em; transition: transform .15s; }
.cocupgrade-heroes__more[open] > summary:not(#cu)::after { transform: rotate(180deg); }
.cocupgrade-heroes__more > summary:hover:not(#cu) { border-color: var(--cu-accent); }
.cocupgrade-heroes__more > summary:focus-visible:not(#cu) { outline: 2px solid var(--cu-accent); outline-offset: 2px; }
.cocupgrade-heroes__more .cocupgrade-heroes__actions:not(#cu) { margin-top: 8px; }
@media (max-width: 600px) { .cocupgrade-heroes__more > summary:not(#cu) { min-height: 44px; } }

/* 1.4.4 – sidebar (hero buttons / quick facts / 300x300 box) is static: it scrolls with the page, never sticks. */
.cocupgrade-heroes .cocupgrade-heroes__sidebar:not(#cu) { position: static !important; top: auto !important; }

/* 1.4.5 – crisper quick-facts labels: same weight as the result-card labels, larger size. */
.cocupgrade-heroes .cocupgrade-heroes__quick-facts dt:not(#cu) { font-family: var(--cu-font-ui); font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.2; -webkit-font-smoothing: antialiased; }
.cocupgrade-heroes .cocupgrade-heroes__quick-facts dd:not(#cu) { font-size: 16px; font-weight: 700; }

/* 1.4.6 – on the live site the Elementor "primary" global font resolves to a display face, so small labels use the text font (Inter). */
.cocupgrade-heroes .cocupgrade-heroes__quick-facts dt:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__quick-facts h3:not(#cu) { font-family: var(--cu-font-text); font-weight: 700; }
.cocupgrade-heroes .cocupgrade-heroes__quick-facts dt:not(#cu) { font-size: 11px; letter-spacing: .07em; }

/* 1.4.7 – selected Town Hall badge: white number on the hero gradient (matches the selected hero pill). */
.cocupgrade-heroes .cocupgrade-heroes__town-hall-button[aria-checked="true"] .cocupgrade-heroes__town-hall-badge:not(#cu) { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); border-color: #fff; }

/* 1.4.8 – key quick facts (total cost, total time, priciest level) styled like the Boost Savings value. */
.cocupgrade-heroes .cocupgrade-heroes__quick-facts dd.cocupgrade-heroes__qf-key:not(#cu) { display: grid; justify-items: center; gap: 2px; white-space: nowrap; }
.cocupgrade-heroes .cocupgrade-heroes__qf-main:not(#cu) { font-family: var(--cu-font-ui); font-size: 20px; font-weight: 700; line-height: 1.05; color: #7dffcf; letter-spacing: .01em; }
.cocupgrade-heroes .cocupgrade-heroes__qf-sub:not(#cu) { font-family: var(--cu-font-text); font-size: 11px; font-weight: 700; line-height: 1.2; color: #c9f7e8; letter-spacing: 0; text-transform: none; }

/* 1.4.11 – "Upgrade estimate" + path line joined into one card. */
.cocupgrade-heroes .cocupgrade-heroes__result-summary:not(#cu) { align-self: center; overflow: hidden; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; background: rgba(4, 18, 39, .38); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .6); }
.cocupgrade-heroes .cocupgrade-heroes__result-summary .cocupgrade-heroes__result-kicker:not(#cu) { display: flex; justify-content: flex-start; width: 100%; min-height: 0; margin: 0; padding: 6px 12px; border: 0; border-radius: 0; box-sizing: border-box; }
.cocupgrade-heroes .cocupgrade-heroes__result-summary .cocupgrade-heroes__path:not(#cu) { margin: 0; padding: 9px 12px 10px; }
.cocupgrade-heroes .cocupgrade-heroes__result-summary .cocupgrade-heroes__result-note:not([hidden]):not(#cu) { margin: 0; padding: 0 12px 10px; }

/* 1.4.12 – estimate card body: white with navy text (matches the white CHOOSE HERO pill). */
.cocupgrade-heroes .cocupgrade-heroes__result-summary:not(#cu) { background: #f9ffff; border-color: rgba(255, 255, 255, .9); }
.cocupgrade-heroes .cocupgrade-heroes__result-summary .cocupgrade-heroes__path:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__result-summary .cocupgrade-heroes__result-note:not(#cu) { color: #061a2d; }

/* 1.4.13 – hero pages, desktop: quick facts column starts level with the calculator title and the tiles are tighter,
   so the reserved 300x300 space no longer leaves an empty band under the Advanced button. */
@media (min-width: 1101px) {
  .cocupgrade-heroes__body--quick-facts:not(#cu) { position: relative; }
  .cocupgrade-heroes__sidebar--quick-facts:not(#cu) { margin-top: calc(-1 * var(--cu-qf-lift, 41px)); }
  .cocupgrade-heroes__quick-facts:not(#cu) { padding: 8px; }
  .cocupgrade-heroes__quick-facts h3:not(#cu) { margin-bottom: 6px; }
  .cocupgrade-heroes__quick-facts dl:not(#cu) { gap: 5px; }
  .cocupgrade-heroes__quick-facts dl > div:not(#cu) { min-height: 46px; padding: 5px 4px; }
  .cocupgrade-heroes__sidebar--quick-facts:not(#cu) { gap: 8px; }
  .cocupgrade-heroes__sidebar--quick-facts .cocupgrade-heroes__sidebar-space:not(#cu) { margin-top: 0; }
}

/* 1.4.15 – phones/tablets: sidebar (hero buttons, quick facts) spans the full calculator width. */
@media (max-width: 1100px) {
  .cocupgrade-heroes .cocupgrade-heroes__sidebar:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__sidebar--quick-facts:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__tabs:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__quick-facts:not(#cu) { width: 100% !important; max-width: none; box-sizing: border-box; }
}
@media (min-width: 960px) and (max-width: 1100px) and (orientation: landscape) {
  .cocupgrade-heroes .cocupgrade-heroes__sidebar:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__sidebar--quick-facts:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__tabs:not(#cu),
  .cocupgrade-heroes .cocupgrade-heroes__quick-facts:not(#cu) { width: 300px !important; }
}

/* 1.6.10 – readable controls: Russo One stays only on the title and the big result values. */
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__segments button:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button[aria-pressed="true"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__stepper input:not(#cu) {
  font-family: var(--cu-font-ui) !important; font-weight: 700 !important; letter-spacing: 0 !important;
}
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button:not(#cu) { font-size: .9rem; }


/* v1.6.27 — match the visible gap/height of AQ's two boost separators. */
.cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) { column-gap:12px; }
.cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu) {
  position:relative; border-right:0; padding-right:0; padding-left:0;
}
.cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu)::after,
.cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu)::after {
  content:""; position:absolute; right:-6.5px; top:50%; transform:translateY(-50%);
  width:1px; height:56px; background:rgba(138,232,241,.68); pointer-events:none;
}
/* Hero i opens the level chooser; + is a light mint increment button. */
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > .cocupgrade-heroes__level-info:not(#cu) {
  background:#227faa !important; color:#fff !important; border-left-color:#166588 !important;
}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > .cocupgrade-heroes__level-info:not(:disabled):hover:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > .cocupgrade-heroes__level-info[aria-expanded="true"]:not(#cu) {
  background:#135b82 !important; color:#fff !important;
}
@container (max-width:680px) {
  .cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) { column-gap:9px; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu)::after,
  .cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu)::after { right:-5px; height:51px; }
}
@container (max-width:390px) {
  .cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) { column-gap:7px; }
  .cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu)::after,
  .cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu)::after { right:-4px; height:49px; }
}


/* v1.6.28: Homepage and hero pages only. Keep both stepper directions
   the same mint colour. The level picker uses a distinct aqua, not blue;
   option labels stay centred at all widths. No Town Hall overrides. */
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-current-step="-1"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-target-step="-1"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-current-step="1"]:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-target-step="1"]:not(#cu) {
  background: #a7f5e5 !important;
  color: #063542 !important;
}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-current-step]:not(:disabled):hover:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-target-step]:not(:disabled):hover:not(#cu) {
  background: #83e8dc !important;
  color: #063542 !important;
}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-current-step]:disabled:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button[data-target-step]:disabled:not(#cu) {
  opacity: 1;
  cursor: not-allowed;
}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > .cocupgrade-heroes__level-info:not(#cu) {
  display: grid;
  place-items: center;
  padding: 0;
  background: #45d5c3 !important;
  color: #063542 !important;
  border-left-color: #2abcae !important;
}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > .cocupgrade-heroes__level-info:not(:disabled):hover:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > .cocupgrade-heroes__level-info[aria-expanded="true"]:not(#cu) {
  background: #28bba9 !important;
  color: #032932 !important;
}
.cocupgrade-heroes .cocupgrade-heroes__level-menu .cocupgrade-heroes__level-option:not(#cu) {
  text-align: center;
}

/* 1.6.36 – boost dividers: one line between each group, exactly the same distance from the controls on both sides.
   Each group's controls fill their column; the divider is the left border of groups 2 and 3, padded by the same gap. */
.cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) { --cu-bgap: 10px; column-gap: var(--cu-bgap) !important; }
.cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu)::after,
.cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu)::after,
.cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu)::after { display: none !important; content: none !important; }
.cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__boost-control:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts > label:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__boosts > .cocupgrade-heroes__hammer-wrap:not(#cu) { box-sizing: border-box; min-width: 0; padding-left: 0 !important; padding-right: 0 !important; border-left: 0 !important; border-right: 0 !important; }
.cocupgrade-heroes .cocupgrade-heroes__boosts > :is(.cocupgrade-heroes__boost-control, label, .cocupgrade-heroes__hammer-wrap) ~ :is(.cocupgrade-heroes__boost-control, label, .cocupgrade-heroes__hammer-wrap):not(#cu) { padding-left: var(--cu-bgap) !important; border-left: 1px solid rgba(138,232,241,.68) !important; }
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments:not(#cu) { width: 100% !important; display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu) { width: 100% !important; min-width: 0 !important; }
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper:not(#cu) { width: 100% !important; }
@media (max-width: 600px) { .cocupgrade-heroes .cocupgrade-heroes__boosts:not(#cu) { --cu-bgap: 7px; } }
.cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper > input:not(#cu) { min-width: 0 !important; width: 100% !important; }
.cu-townhall--redesign .cu-townhall__boosts .cu-townhall__stepper > input:not(#cu) { min-width: 0 !important; width: 100% !important; }
@media (max-width: 390px) { .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper:not(#cu) { grid-template-columns: 24px minmax(0, 1fr) 24px !important; } .cocupgrade-heroes .cocupgrade-heroes__boosts .cocupgrade-heroes__stepper > button:not(#cu) { min-width: 0 !important; width: 24px !important; padding: 0 !important; } }

/* 1.7.13 – Barbarian King: royal gold → bronze → crimson theme (BK only). */
.cocupgrade-heroes.cocupgrade-heroes--hero-barbarian-king:not(#cu),
.cocupgrade-heroes--hero-barbarian-king:not(#cu) { --cu-accent: #D99A2B; --cu-accent-2: #9E1F2F; --cu-bg-tint: rgba(217, 154, 43, .14); }
.cocupgrade-heroes--hero-barbarian-king .cocupgrade-heroes__result-kicker:not(#cu),
.cocupgrade-heroes--hero-barbarian-king .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu) {
  background: linear-gradient(100deg, #D99A2B 0%, #B4532A 52%, #9E1F2F 100%);
  text-shadow: 0 1px 2px rgba(40, 10, 0, .55);
}
.cocupgrade-heroes--hero-barbarian-king .cocupgrade-heroes__town-hall-button[aria-checked="true"] .cocupgrade-heroes__town-hall-badge:not(#cu) {
  background: linear-gradient(135deg, #F2C063, #D99A2B); color: #2A1203;
}
.cocupgrade-heroes--hero-barbarian-king .cocupgrade-heroes__result-kicker:not(#cu) { color: #fff; }

/* 1.7.14 – no alt text spill when an image is slow or missing. */
.cocupgrade-heroes img:not(#cu), .cu-townhall img:not(#cu) { color: transparent; font-size: 0; overflow: hidden; }
.cocupgrade-heroes img.cu-img-failed:not(#cu), .cu-townhall img.cu-img-failed:not(#cu) { visibility: hidden; }

/* 1.7.16 – Grand Warden: antique gold → jade → deep emerald theme (GW only). */
.cocupgrade-heroes.cocupgrade-heroes--hero-grand-warden:not(#cu),
.cocupgrade-heroes--hero-grand-warden:not(#cu) { --cu-accent: #CFA43A; --cu-accent-2: #0E6B5C; --cu-bg-tint: rgba(207, 164, 58, .13); }
.cocupgrade-heroes--hero-grand-warden .cocupgrade-heroes__result-kicker:not(#cu),
.cocupgrade-heroes--hero-grand-warden .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu) {
  background: linear-gradient(100deg, #CFA43A 0%, #3C8F6E 52%, #0E6B5C 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(0, 30, 20, .55);
}
.cocupgrade-heroes--hero-grand-warden .cocupgrade-heroes__town-hall-button[aria-checked="true"] .cocupgrade-heroes__town-hall-badge:not(#cu) {
  background: linear-gradient(135deg, #F0D17A, #CFA43A); color: #1F1604;
}

/* 1.7.17 – Grand Warden: gold → lavender → royal purple, matching his robe and crown. */
.cocupgrade-heroes.cocupgrade-heroes--hero-grand-warden:not(#cu),
.cocupgrade-heroes--hero-grand-warden:not(#cu) { --cu-accent: #D4A93F; --cu-accent-2: #5B3FA0; --cu-bg-tint: rgba(155, 123, 208, .12); }
.cocupgrade-heroes--hero-grand-warden .cocupgrade-heroes__result-kicker:not(#cu),
.cocupgrade-heroes--hero-grand-warden .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu) {
  background: linear-gradient(100deg, #D4A93F 0%, #9B7BD0 52%, #5B3FA0 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(30, 14, 60, .6);
}

/* 1.7.18 – Royal Champion: sapphire → teal → champion gold (RC only). */
.cocupgrade-heroes.cocupgrade-heroes--hero-royal-champion:not(#cu),
.cocupgrade-heroes--hero-royal-champion:not(#cu) { --cu-accent: #2F7DE1; --cu-accent-2: #C9A13B; --cu-bg-tint: rgba(47, 125, 225, .13); }
.cocupgrade-heroes--hero-royal-champion .cocupgrade-heroes__result-kicker:not(#cu),
.cocupgrade-heroes--hero-royal-champion .cocupgrade-heroes__tabs [role="tablist"] button[aria-selected="true"]:not(#cu) {
  background: linear-gradient(100deg, #1F4FB8 0%, #1497A8 52%, #C9A13B 100%);
  color: #fff; text-shadow: 0 1px 2px rgba(5, 20, 50, .6);
}
.cocupgrade-heroes--hero-royal-champion .cocupgrade-heroes__town-hall-button[aria-checked="true"] .cocupgrade-heroes__town-hall-badge:not(#cu) {
  background: linear-gradient(135deg, #8FD3F4, #2F7DE1); color: #061A2D;
}

/* 1.7.21 – hero picker: image tiles with short names instead of long text buttons. */
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:not(#cu){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;overflow:visible!important;padding:0!important}
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:0!important;height:auto;padding:7px 4px 6px!important;border-radius:12px;white-space:nowrap;font-size:.78rem!important;line-height:1.1}
.cu-htab__pic:not(#cu){position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.12);overflow:hidden;flex:0 0 auto}
.cu-htab__pic>span:not(#cu){font-size:.8rem;font-weight:800;color:rgba(255,255,255,.8)}
.cu-htab__pic img:not(#cu){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab[aria-selected="true"] .cu-htab__pic:not(#cu){background:rgba(255,255,255,.9);box-shadow:0 0 0 2px #fff}
.cu-htab__name:not(#cu){display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1100px){
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:not(#cu){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:5px!important}
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){padding:6px 2px 5px!important;font-size:.7rem!important}
.cu-htab__pic:not(#cu){width:40px;height:40px}
}
@media (max-width:520px){.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:not(#cu){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){flex-direction:column!important;justify-content:center!important;gap:4px;padding:6px 4px 5px!important;font-size:.8rem!important}.cu-htab__pic:not(#cu){width:40px;height:40px}}
/* 1.7.22 – phones: hero picker above the calculator, tighter spacing so Advanced shows in the first screen. */
@media (max-width:767px){
.cocupgrade-heroes--compact.cocupgrade-heroes--tabs .cocupgrade-heroes__body:not(#cu){display:flex!important;flex-direction:column;gap:8px!important}
.cocupgrade-heroes--compact.cocupgrade-heroes--tabs .cocupgrade-heroes__sidebar:not(#cu){order:-1;width:auto!important;margin:0!important;padding:0!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs:not(#cu){padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs>p:not(#cu){display:none!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:not(#cu){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){flex-direction:column!important;gap:2px;padding:4px 1px 3px!important;border-radius:10px;font-size:.62rem!important}
.cocupgrade-heroes--compact .cu-htab__pic:not(#cu){width:32px;height:32px}
.cocupgrade-heroes--compact .cocupgrade-heroes__metrics:not(#cu){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__metrics>div:not(#cu){padding:7px 3px!important;min-height:0!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__metrics>div>span:not(#cu){font-size:.54rem!important;line-height:1.15!important;letter-spacing:.02em!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__metrics>div>strong:not(#cu){font-size:.92rem!important;line-height:1.2!important;margin-top:3px!important;overflow-wrap:anywhere}
}
@media (max-width:767px){
.cocupgrade-heroes--compact .cocupgrade-heroes__result-kicker:not(#cu){padding-top:3px!important;padding-bottom:3px!important;min-height:0!important;font-size:.62rem!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__path:not(#cu){padding-top:6px!important;padding-bottom:6px!important;font-size:.95rem!important;min-height:0!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__result-top:not(#cu){gap:6px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__boosts:not(#cu){padding-top:6px!important;padding-bottom:6px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__boosts .cocupgrade-heroes__segments button:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__potion-stepper:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__potion-stepper button:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__potion-stepper input:not(#cu){min-height:34px!important;height:34px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__results:not(#cu){padding-top:8px!important;padding-bottom:8px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__results>*+*:not(#cu){margin-top:6px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__form:not(#cu){padding-top:7px!important;padding-bottom:7px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__fields:not(#cu){row-gap:6px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__level-stepper:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__level-stepper button:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__level-stepper input:not(#cu){min-height:40px!important;height:40px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__main>*+*:not(#cu){margin-top:7px!important}
}
@media (max-width:767px){
.cocupgrade-heroes--compact .cocupgrade-heroes__town-hall-field:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__level-control:not(#cu){row-gap:3px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__town-hall-field>span:not(#cu),.cocupgrade-heroes--compact .cocupgrade-heroes__level-control>label:not(#cu){margin-bottom:3px!important;font-size:.82rem!important;line-height:1.2!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__header:not(#cu){margin-bottom:4px!important}
}
@media (max-width:380px){.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){font-size:.56rem!important;letter-spacing:-.01em}}
@media (max-width:350px){.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){font-size:.5rem!important}}
@media (max-width:767px){.cocupgrade-heroes--compact .cocupgrade-heroes__metrics>div:not(#cu){min-width:0;overflow:hidden}.cocupgrade-heroes--compact .cocupgrade-heroes__saving-main:not(#cu){font-size:.74rem!important;white-space:normal!important;line-height:1.15!important}.cocupgrade-heroes--compact .cocupgrade-heroes__saving-sub:not(#cu){font-size:.56rem!important;white-space:normal!important}}

/* 1.7.25 – hero tiles keep one size whichever hero is selected (no shrink on Champion/Duke). */
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu),
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab[aria-selected="true"]:not(#cu){min-width:0!important;width:100%!important;margin:0!important;border-width:1px!important;transform:none!important;overflow:hidden;box-sizing:border-box}
.cocupgrade-heroes .cu-htab__pic:not(#cu),.cocupgrade-heroes button.cu-htab[aria-selected="true"] .cu-htab__pic:not(#cu){flex:0 0 auto!important}
.cocupgrade-heroes .cu-htab__name:not(#cu){width:100%;text-align:center;letter-spacing:-.01em}
@media (max-width:767px){.cocupgrade-heroes--compact .cu-htab__pic:not(#cu),.cocupgrade-heroes--compact button.cu-htab[aria-selected="true"] .cu-htab__pic:not(#cu){width:32px!important;height:32px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not(#cu){height:56px!important}}
@media (max-width:380px){.cocupgrade-heroes--compact .cu-htab__name:not(#cu){font-size:.54rem}}
/* 1.7.26 – calculator keeps full width for every hero (fewer Town Hall icons no longer shrink it). */
@media (max-width:1100px){
.cocupgrade-heroes .cocupgrade-heroes__body:not(#cu){align-items:stretch!important}
.cocupgrade-heroes .cocupgrade-heroes__main:not(#cu),.cocupgrade-heroes .cocupgrade-heroes__sidebar:not(#cu){width:100%!important;max-width:100%!important;min-width:0!important;align-self:stretch!important;box-sizing:border-box}
.cocupgrade-heroes .cocupgrade-heroes__form:not(#cu),.cocupgrade-heroes .cocupgrade-heroes__fields:not(#cu),.cocupgrade-heroes .cocupgrade-heroes__results:not(#cu){width:100%;box-sizing:border-box}
}

/* 1.7.30: 5-second limit note under the level controls. */
.cu-limit-note:not(#cu){display:flex;justify-content:center;margin:8px 0 2px}
.cu-limit-note[hidden]:not(#cu){display:none!important}
.cu-limit-note__pill:not(#cu){display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:7px 14px 7px 7px;border-radius:999px;background:linear-gradient(105deg,#FFE9A8 0%,#FFCF6E 100%);color:#3D2600;font:700 13.5px/1.35 var(--e-global-typography-text-font-family,"Inter"),system-ui,sans-serif;text-align:left;box-shadow:0 8px 20px -10px rgba(255,190,70,.9),inset 0 1px 0 rgba(255,255,255,.6)}
.cu-limit-note__pill b:not(#cu){flex:0 0 22px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#3D2600;color:#FFD47A;font-size:13px;font-weight:900}
.cu-limit-note.is-in .cu-limit-note__pill:not(#cu){animation:cuLimitIn .22s ease-out}
@keyframes cuLimitIn{from{opacity:0;transform:translateY(-4px) scale(.97)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.cu-limit-note.is-in .cu-limit-note__pill:not(#cu){animation:none}}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button.is-limit:not(#cu){cursor:not-allowed}
.cocupgrade-heroes .cocupgrade-heroes__level-stepper > button.is-limit:hover:not(#cu){background:inherit}

/* 1.7.31: phone fixes – titles wrap, the resource card gets the extra width so big totals (220,000,000) stay readable. */
@media(max-width:767px){.cocupgrade-heroes h2:not(#cu),.cocupgrade-heroes--compact h2:not(#cu){white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}
@media(max-width:600px){
.cocupgrade-heroes .cocupgrade-heroes__metrics:not(#cu){grid-template-columns:minmax(0,.82fr) minmax(0,1.5fr) minmax(0,1fr) minmax(0,1.08fr)!important}
.cocupgrade-heroes .cocupgrade-heroes__metrics>div:first-child span:not(#cu){font-size:.56rem!important;letter-spacing:.02em!important}
.cocupgrade-heroes .cocupgrade-heroes__metrics .cocupgrade-heroes__saving-sub:not(#cu){font-size:.62rem!important;overflow-wrap:normal!important;word-break:normal!important}
.cocupgrade-heroes .cocupgrade-heroes__metrics>div:not(#cu){padding-left:6px!important;padding-right:6px!important}
.cocupgrade-heroes .cocupgrade-heroes__metrics strong[data-cost-total]:not(#cu){font-size:clamp(.82rem,4.1vw,1.05rem)!important;letter-spacing:-.01em!important;white-space:nowrap!important;overflow:visible!important}
}

/* 1.7.36: phones – title centred with the Live updates badge shown under it (same on every calculator). */
@media(max-width:767px){
.cocupgrade-heroes__header:not(#cu){display:block!important}
.cocupgrade-heroes__heading-row:not(#cu){width:100%;flex-direction:column!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:center!important;gap:6px!important;text-align:center}
.cocupgrade-heroes__heading-row h2:not(#cu){width:100%;text-align:center!important}
.cocupgrade-heroes__live-status:not(#cu){display:inline-flex!important;margin:0!important}
}

/* 1.7.37: Builder Base heroes (Battle Machine, Battle Copter) – accents, 8-hero picker and the no-boost note. */
.cocupgrade-heroes--hero-battle-machine:not(#cu) { --cu-accent: #FF7AC6; --cu-accent-2: #E0449A; --cu-bg-tint: rgba(224, 68, 154, .18); }
.cocupgrade-heroes--hero-battle-copter:not(#cu) { --cu-accent: #FFB347; --cu-accent-2: #E0449A; --cu-bg-tint: rgba(255, 179, 71, .18); }
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)):not(#cu){grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media (min-width:768px) and (max-width:959px){.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)):not(#cu){grid-template-columns:repeat(8,minmax(0,1fr))!important}}
.cocupgrade-heroes__bb-note:not(#cu){margin:8px 0 0;padding:8px 12px;border:1px dashed rgba(255,122,198,.55);border-radius:12px;background:rgba(224,68,154,.1);color:#ffd6ec;font-size:.8rem;font-weight:700;line-height:1.35;text-align:center}
.cocupgrade-heroes__bb-note[hidden]:not(#cu),.cocupgrade-heroes__boosts[hidden]:not(#cu){display:none!important}
@media (min-width:960px){.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) button.cu-htab:not(#cu){padding:6px 2px 5px!important;font-size:.7rem!important;letter-spacing:-.01em}}
/* 1.7.39: phones – all 8 heroes on one line in the homepage picker. */
@media (max-width:767px){
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)):not(#cu){grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:3px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) button.cu-htab:not(#cu){height:52px!important;padding:4px 0 3px!important;border-radius:9px;gap:2px;font-size:.5rem!important;letter-spacing:-.02em}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) .cu-htab__pic:not(#cu){width:28px!important;height:28px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) .cu-htab__pic>span:not(#cu){font-size:.6rem}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) .cu-htab__name:not(#cu){font-size:.47rem!important;letter-spacing:-.03em;text-overflow:clip}
}
@media (max-width:767px) and (min-width:480px){
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) button.cu-htab:not(#cu){height:58px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) .cu-htab__pic:not(#cu){width:34px!important;height:34px!important}
.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) .cu-htab__name:not(#cu){font-size:.6rem!important}
}
@media (max-width:389px){.cocupgrade-heroes--compact .cocupgrade-heroes__tabs [role="tablist"]:has(> button.cu-htab:nth-child(7)) .cu-htab__name:not(#cu){font-size:.42rem!important;letter-spacing:-.04em}}

/* 1.7.40: Builder Base skin for Battle Machine and Battle Copter – same family as the Builder Hall and Builder Base troop calculators, each with its own glow. */
.cocupgrade-heroes.cocupgrade-heroes--builder:not(#cu){--bb-g1:rgba(255,79,163,.34);--bb-g2:rgba(168,58,237,.30);--bb-base:linear-gradient(150deg,#170a28 0%,#3a0f3f 45%,#5a1450 80%,#6b1a4a 100%);background-color:#1a0b2e!important;background-image:radial-gradient(70% 110% at 100% 0%,var(--bb-g1) 0%,transparent 55%),radial-gradient(60% 90% at 0% 100%,var(--bb-g2) 0%,transparent 60%),var(--bb-base)!important;border-color:rgba(255,143,207,.38)!important;box-shadow:0 18px 40px -28px rgba(20,6,30,.95)!important}
.cocupgrade-heroes.cocupgrade-heroes--builder.cocupgrade-heroes--hero-battle-copter:not(#cu){--bb-g1:rgba(255,159,90,.32);--bb-g2:rgba(255,79,163,.26);--bb-base:linear-gradient(150deg,#160a26 0%,#33103d 45%,#55164a 80%,#6a2140 100%)}
.cocupgrade-heroes--builder .cocupgrade-heroes__form:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__results:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__quick-facts:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__tabs:not(#cu){background:rgba(255,255,255,.06)!important;background-image:none!important;border-color:rgba(255,143,207,.3)!important;box-shadow:none!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__town-hall-picker:not(#cu){background:rgba(255,255,255,.05)!important;border-color:rgba(255,143,207,.3)!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__town-hall-field>span:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__level-control label>span:first-child:not(#cu){color:#FFB3DA!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper:not(#cu){border-color:rgba(255,255,255,.55)!important;background:#fff!important;box-shadow:0 8px 20px -12px rgba(0,0,0,.7)}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper input:not(#cu){background:#fff!important;color:#2a0f3d!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper button[data-current-step]:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper button[data-target-step]:not(#cu){background:linear-gradient(180deg,#ff7ac6,#e0449a)!important;color:#fff!important;font-weight:900!important;text-shadow:0 2px 3px rgba(60,10,50,.55)}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper button[data-current-step]:not(:disabled):hover:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper button[data-target-step]:not(:disabled):hover:not(#cu){background:linear-gradient(180deg,#ff94d3,#ec55a8)!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper button.is-limit:not(#cu){background:linear-gradient(180deg,#b85a93,#8f3a72)!important;color:rgba(255,255,255,.75)!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-info:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__level-info[aria-expanded="true"]:not(#cu){background:#3b0f3f!important;color:#fff!important;border-left-color:#3b0f3f!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-menu:not(#cu){background:#ff8fcf!important;border-color:rgba(255,255,255,.7)!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-option:not(#cu){color:#2a0f3d!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__level-option[aria-selected="true"]:not(#cu){background:#fff!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__metrics>div:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__quick-facts dl>div:not(#cu){background:rgba(255,255,255,.07)!important;border-color:rgba(255,143,207,.28)!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__metrics>div>span:not(#cu),.cocupgrade-heroes--builder .cocupgrade-heroes__quick-facts dt:not(#cu){color:#FFB3DA!important}
.cocupgrade-heroes--builder .cocupgrade-heroes__more>summary:not(#cu){border-color:rgba(255,143,207,.45)!important}
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper>.cocupgrade-heroes__level-info:not(#cu),.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper>.cocupgrade-heroes__level-info:not(:disabled):hover:not(#cu),.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__level-stepper>.cocupgrade-heroes__level-info[aria-expanded="true"]:not(#cu){background:#3b0f3f!important;color:#fff!important;border-left-color:#3b0f3f!important}
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__qf-main:not(#cu){color:#fff!important}
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__more>summary:not(#cu){background:rgba(255,255,255,.08)!important;color:#fff!important}
/* 1.7.41: Live updates badge in Builder Base colours. */
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__live-status:not(#cu){border-color:rgba(255,143,207,.7)!important;background:rgba(42,15,61,.85)!important;color:#FFD6EC!important}
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__live-status i:not(#cu){background:#FF7AC6!important;box-shadow:0 0 0 3px rgba(255,122,198,.2)!important;animation-name:cu-bb-live-pulse!important}
@keyframes cu-bb-live-pulse{0%,100%{opacity:.5;box-shadow:0 0 0 3px rgba(255,122,198,.14),0 0 4px rgba(255,122,198,.4)}50%{opacity:1;box-shadow:0 0 0 4px rgba(255,122,198,.24),0 0 12px rgba(255,122,198,.95)}}
/* 1.7.42: Builder Base hero pages – two-hero picker (Machine, Copter). */
.cocupgrade-heroes .cocupgrade-heroes__tabs [role="tablist"]:not(:has(> button.cu-htab:nth-child(3))):not(#cu){grid-template-columns:repeat(2,minmax(0,1fr))!important}
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not([aria-selected="true"]):not(#cu){background:rgba(42,15,61,.55)!important;border-color:rgba(255,143,207,.3)!important;color:#fff!important}
.cocupgrade-heroes.cocupgrade-heroes--builder .cocupgrade-heroes__tabs [role="tablist"] button.cu-htab:not([aria-selected="true"]):hover:not(#cu){border-color:rgba(255,143,207,.7)!important}
/* 1.7.44: homepage picker – Builder Base heroes use a neutral black/white accent (pink stays on their own pages). */
.cocupgrade-heroes.cocupgrade-heroes--hero-battle-machine:not(.cocupgrade-heroes--builder):not(#cu),.cocupgrade-heroes.cocupgrade-heroes--hero-battle-copter:not(.cocupgrade-heroes--builder):not(#cu){--cu-accent:#1F2937;--cu-accent-2:#6B7280;--cu-bg-tint:rgba(148,163,184,.16)}
.cocupgrade-heroes:not(.cocupgrade-heroes--builder) .cocupgrade-heroes__bb-note:not(#cu){border-color:rgba(226,232,240,.45);background:rgba(255,255,255,.06);color:#E2E8F0}
