.promo-generator {
  overflow: hidden;
}
.builder {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: stretch;
  margin-top: 36px;
}
.builder > aside {
  align-self: stretch;
}
@media (max-width: 940px) {
  .builder {
    grid-template-columns: 1fr;
  }
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 4px;
}
.panel-head.mt {
  margin-top: 40px;
}
.step-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: #1a1410;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 8px 18px -6px rgba(232, 184, 75, 0.5);
}
.panel-head h2 {
  font-size: 22px;
  margin: 0;
  font-weight: 800;
}
.panel-head .sub {
  margin-left: auto;
  font-size: 13px;
  color: var(--txt-dim);
}
.howto {
  font-size: 13.5px;
  color: var(--txt-dim);
  margin: 8px 0 16px 52px;
}
.howto b {
  color: var(--gold-2);
}
@media (max-width: 520px) {
  .howto {
    margin-left: 0;
  }
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search {
  flex: 1;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 13px;
  max-width: 340px;
}
.search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--txt);
  font: inherit;
  font-size: 14.5px;
  padding: 11px 0;
}
.search svg {
  opacity: 0.5;
  flex: none;
}
.filter {
  display: flex;
  gap: 6px;
  align-items: center;
}
.chip {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: capitalize;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--txt-dim);
  transition: 0.15s;
  user-select: none;
}
.chip:hover {
  color: var(--txt);
  border-color: var(--line-2);
}
.chip.on {
  background: var(--panel-2);
  color: var(--txt);
  border-color: var(--line-2);
}

.grid {
  display: grid;
  gap: 13px;
}
.grid.champion {
  grid-template-columns: repeat(auto-fill, minmax(134px, 1fr));
}
.grid.mech {
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 14px;
}

/* champion card */
.cch {
  --cch-border-radius: 14px;
  position: relative;
  border-radius: var(--cch-border-radius, 14px);
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
  z-index: 1;
}
.cch:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow);
  z-index: 5;
}
.cch.rare:hover {
  border-color: var(--rare);
}
.cch.epic:hover {
  border-color: var(--epic);
}
.cch.legendary:hover {
  border-color: var(--legendary);
}
.cch .imgwrap {
  position: relative;
  aspect-ratio: 170/200;
  background: var(--bg-2);
  border-radius: var(--cch-border-radius, 14px);
}
.cch .imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--cch-border-radius, 14px);
}
.cch .imgwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, var(--cardscrim));
}

.cch .cch-badges {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  display: inline-flex;
  gap: 0.25rem;
}

.cch .crown,
.cch .new {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  padding: 3px 7px;
  border-radius: 6px;
}

.cch .crown {
  background: var(--gold-deep);
}
.cch .new {
  background: #e23b4e;
}
.cch .nm {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.cch .rb {
  height: auto;
  width: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  text-transform: capitalize;
  color: #fff;
}
.rb.rare {
  background: var(--rare);
}
.rb.epic {
  background: var(--epic);
}
.rb.legendary {
  background: var(--legendary);
}
.cch .rw {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 9px;
}
.cch .rw span {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--txt-dim);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 5px 2px 3px;
}
.cch .rw span img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
.cch .lvl {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) scale(0.4);
  opacity: 0;
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #10242e;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.6);
  transition: 0.18s;
}
.cch.picked .lvl {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.cch.picked {
  box-shadow: 0 0 0 2px var(--pc, var(--gold)),
    0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.cch.picked .imgwrap::after {
  background: linear-gradient(180deg, var(--cardscrim25), var(--cardscrim));
}
.cch .clear {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 5;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(8, 24, 32, 0.78);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}
.cch.picked .clear {
  display: flex;
}
.cch.picked .nw {
  display: none;
}
.grid.lvl-1 .cch[data-legendary="legendary"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.grid.has .cch:not(.picked) {
  opacity: 0.62;
}
.grid.has .cch:not(.picked):hover {
  opacity: 1;
}
#cursor-tip {
  position: absolute;
  display: none;
  pointer-events: none;
  color: #fff;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 1000;
  max-width: 150px;
  text-align: center;
  opacity: 0.9;
  border: 1px solid var(--gold);
  background: #305467;
}

/* mech card */
.mch {
  position: relative;
  border-radius: 14px;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
  z-index: 1;
}
.mch:hover {
  transform: translateY(-3px);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow);
  z-index: 5;
}
.mch .imgwrap {
  position: relative;
  /* aspect-ratio: 1/1; */
  background: var(--bg-2);
  aspect-ratio: 3/4;
  border-radius: 14px;
  overflow: hidden;
}
.mch .imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.mch .imgwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(22, 10, 46, 0.55));
}
.mch .cyantab {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 46px;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.mch .mch-badges {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  gap: 0.25rem;
}
.mch .newrib,
.mch .crown {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.5px;
  padding: 3px 18px;
  border-radius: 0 0 7px 7px;
}
.mch .newrib {
  background: #e23b4e;
  color: #fff;
  box-shadow: 0 0 12px rgba(232, 79, 79, 0.5);
}
.mch .crown {
  background: var(--lime);
  color: #1c2400;
  box-shadow: 0 0 12px rgba(214, 232, 79, 0.5);
}
.mch .namebar {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: #fff;
  padding: 7px 12px;
  background: linear-gradient(180deg, #3f8ae6, var(--blue));
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mch.sel .namebar {
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  color: #3a1a00;
}
.mch .body {
  padding: 10px;
}
.mch .loadout {
  display: grid;
  grid-template-columns: 70px repeat(var(--mini-cols), 1fr);
  grid-auto-rows: 55px; /* высота одной строки мини-иконки */
  gap: 6px;
  align-items: stretch;
}
.mch .loadout.solo {
  grid-template-columns: 1fr;
}
.mch .wtile {
  background: var(--tile);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 8px 6px;
  gap: 4px;

  grid-column: 1;
  grid-row: 1 / span var(--rows);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mch .wtile img {
  width: 100%;
  /* height: 55px; */
  height: 100%;
  object-fit: contain;
}
.mch .wtile .wn {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-align: center;
}
.mch .wtile .wq {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  border-radius: 5px;
  padding: 1px 9px;
}
/* .mch .minis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  grid-template-rows: repeat(auto-fill, minmax(45px, 1fr));
  gap: 6px;
  align-content: start;
} */
.mch .mini {
  position: relative;
  background: var(--tile);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.mch .mini img {
  width: 24px;
  height: 24px;
  /* width: 100%;
  height: 100%; */
  object-fit: contain;
}
.mch .mini .q {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.mch .mini.pilot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mch .mini.pilot .pn {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 7.5px;
  font-weight: 800;
  color: #fff;
  padding-bottom: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.65));
}
.mch .codepill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--gold-2);
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(245, 194, 78, 0.4);
  border-radius: 6px;
  padding: 3px 8px;
  margin-top: 9px;
}
.mch .pickbadge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 800;
  color: #3a1a00;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  padding: 4px 9px;
  border-radius: 99px;
  opacity: 0;
  transform: scale(0.5);
  transition: 0.16s;
}
.mch.sel .pickbadge {
  opacity: 1;
  transform: scale(1);
}
.mch.sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), 0 18px 40px -18px rgba(241, 193, 78, 0.55);
}
.mch.sel .imgwrap::after {
  background: linear-gradient(
    180deg,
    rgba(22, 10, 46, 0.25),
    rgba(22, 10, 46, 0.92)
  );
}
.grid.has .mch:not(.sel) {
  opacity: 0.6;
}
.grid.has .mch:not(.sel):hover {
  opacity: 1;
}

/* summary */
.summary {
  position: sticky;
  top: 74px;
}
.sum {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.sum h3 {
  margin: 0;
  font-size: 17px;
  padding: 18px 20px 4px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.sum h3 .g {
  color: var(--gold);
}
.prog {
  height: 6px;
  background: var(--bg);
  border-radius: 99px;
  margin: 10px 20px 4px;
  overflow: hidden;
}
.prog i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  transition: width 0.35s;
}
.ptext {
  font-size: 12px;
  color: var(--txt-dim);
  padding: 0 20px 6px;
}
.slots {
  padding: 6px 12px;
}
.sl {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 10px;
}
.sl + .sl {
  border-top: 1px solid var(--line);
}
.sl .av {
  width: 44px;
  height: 52px;
  border-radius: 8px;
  flex: none;
  background: var(--bg-2) center/cover;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--txt-dim);
}
.sl .av.empty {
  border-style: dashed;
}
.sl .lbl {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 800;
}
.sl .val {
  font-weight: 700;
  font-size: 14px;
}
.sl .val.muted {
  color: var(--txt-dim);
  font-weight: 500;
  font-style: italic;
}
.sl .x {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--txt-dim);
  cursor: pointer;
  font-size: 16px;
  display: none;
}
.sl.filled .x {
  display: block;
}
.confirm {
  padding: 8px 20px 4px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
}
.confirm .warn {
  font-size: 11.5px;
  color: var(--txt-dim);
  background: rgba(255, 138, 92, 0.08);
  border: 1px solid rgba(255, 138, 92, 0.25);
  border-radius: 9px;
  padding: 8px 10px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.confirm .warn b {
  color: #ffb38f;
}
.cb {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--txt-dim);
  padding: 7px 0;
  cursor: pointer;
  line-height: 1.4;
}
.cb input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  background: var(--bg);
  cursor: pointer;
  margin: 0;
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.cb input:checked {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: transparent;
}
.cb input:checked::after {
  content: "✓";
  color: #2a2008;
  font-size: 13px;
  font-weight: 900;
}
.cb b {
  color: var(--gold-2);
}
.cta-wrap {
  padding: 12px 20px 20px;
}
.cta {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  padding: 15px;
  border-radius: 12px;
  color: #2a2008;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 14px 30px -10px rgba(241, 193, 78, 0.5);
  transition: 0.16s;
}
.cta:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}
.cta:not(:disabled):hover {
  transform: translateY(-2px);
}
.linkout {
  margin-top: 12px;
  display: none;
}
.linkout.show {
  display: block;
  animation: f 0.35s;
}
@keyframes f {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
  }
}
.golink {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  padding: 14px;
  border-radius: 12px;
  color: #06281c;
  background: linear-gradient(180deg, #6ee7b0, var(--ok));
  box-shadow: 0 14px 30px -10px rgba(79, 214, 160, 0.5);
  transition: 0.16s;
}
.golink:hover {
  transform: translateY(-2px);
  color: #06281c;
}
.codecopy {
  margin-top: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
}
.cc-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--txt);
  margin-bottom: 7px;
}
.cc-lbl span {
  font-weight: 500;
  color: var(--txt-dim);
}
.cc-row {
  display: flex;
  gap: 8px;
}
.cc-val {
  flex: 1;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-2);
  background: var(--panel);
  border: 1px dashed rgba(241, 193, 78, 0.45);
  border-radius: 9px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-btn {
  flex: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  padding: 0 14px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a2008;
  transition: 0.15s;
}
.cc-btn:hover {
  transform: translateY(-1px);
}
.cc-btn.done {
  background: var(--ok);
  color: #06281c;
}

section.sec {
  margin-top: 4rem;
}
.sec-h {
  text-align: center;
  margin-bottom: 8px;
}
.sec-h h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  margin: 0;
}
.sec-h p {
  color: var(--txt-dim);
  margin: 6px 0 0;
}
.ctabs {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
}
.ctab {
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  background: none;
  color: var(--txt-dim);
  padding: 9px 18px;
  border-radius: 9px;
}
.ctab.on {
  background: var(--panel-2);
  color: var(--txt);
}

footer {
  margin: 56px 0 40px;
  text-align: center;
  color: var(--txt-dim);
  font-size: 13px;
  padding: 0 20px;
}
.fgames ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
}
.fgames a {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt-dim);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  display: block;
}
.fgames a:hover {
  color: var(--txt);
  border-color: var(--line-2);
}
.tagline {
  font-size: 13px;
  color: var(--txt-dim);
  margin-bottom: 6px;
}
.tagline .hl {
  color: var(--gold-2);
  font-weight: 700;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--txt);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 99px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  z-index: 90;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.okk {
  background: var(--ok);
  color: #06281c;
  border-color: transparent;
}
.mbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: var(--bar);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, 0.6);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.mbar .mavs {
  display: flex;
  gap: 5px;
  flex: none;
}
.mbar .mavs .a {
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg-2) center/cover;
  border: 1.5px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--txt-dim);
  font-size: 11px;
  font-weight: 800;
}
.mbar .mavs .a.empty {
  border-style: dashed;
  opacity: 0.5;
}
.mbar .mp {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.25;
  overflow: hidden;
}
.mbar .mp .t {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbar .mp .t b {
  color: var(--gold-2);
}
.mbar .mp .s {
  font-size: 11.5px;
  color: var(--txt-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mbar.ready .mp .s {
  color: var(--ok);
  font-weight: 700;
}
.mbar .mgo {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  font-size: 13px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a2008;
  white-space: nowrap;
}
@media (max-width: 940px) {
  .mbar.show {
    display: flex;
  }
}
@media (max-width: 620px) {
  .grid.champion {
    grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
    gap: 10px;
  }
  .grid.mech {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 10px;
  }
}

/* ===== HUB (homepage) ===== */
body.hub {
  --bg: #0e1822;
  --bg-2: #14222f;
  --panel: #13212e;
  --panel-2: #1a2c3b;
  --tile: #1a2c3b;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --txt: #eef3f7;
  --txt-dim: #9bb0bf;
  --gold: #e8c25a;
  --gold-2: #f4dd92;
  --gold-deep: #b8923a;
  --ok: #4fd6a0;
  --bar: rgba(10, 18, 26, 0.85);
  --scrim1: rgba(12, 22, 32, 0.4);
  --scrim2: rgba(12, 22, 32, 0.85);
  --cardscrim: rgba(8, 16, 24, 0.92);
  --font-display: "Playfair Display", serif;
  --font-body: "Mulish", system-ui, sans-serif;
}
body.hub #bgfx {
  background: radial-gradient(
      1000px 540px at 82% -10%,
      rgba(90, 182, 255, 0.1),
      transparent 60%
    ),
    radial-gradient(
      900px 480px at -5% 4%,
      rgba(232, 194, 90, 0.1),
      transparent 55%
    );
}

/* SEO prose block (homepage, under the cards) */
.seo {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: var(--txt-dim);
  padding: 0 20px;
}
.seo h2 {
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 800;
  color: var(--txt);
  margin: 0 0 14px;
  text-align: left;
}
.seo h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--gold-2);
  margin: 26px 0 8px;
}
.seo p {
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.seo a,
a {
  color: var(--gold-2);
  text-underline-offset: 3px;
}
.seo a:hover,
a:hover {
  color: var(--gold);
}
.seo strong {
  color: var(--txt);
}
/* TOOLTIPS */
.tooltip-block {
  position: relative;
  display: inline-block;
}

.tooltip-block::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: var(--bar, var(--bg));
  border: 1px solid var(--gold);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.1s ease;
  transition-delay: 0s;
}

.tooltip-block:hover::after {
  opacity: 1;
  transition-delay: 0.1s;
}

/* IMPORTANT INFO */
.info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.info .c {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.info .c .n {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.info .c h4 {
  margin: 10px 0 4px;
  font-size: 14.5px;
}
.info .c p {
  margin: 0;
  font-size: 13px;
  color: var(--txt-dim);
}

/* PROMOCODES */
.codebar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 13px;
}
.codes.single {
  grid-template-columns: repeat(1, minmax(330px, 400px));
  justify-content: center;
}
.code {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.code:hover {
  border-color: var(--line-2);
}
.code .top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.code .v {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: 0.5px;
  color: var(--gold-2);
  background: var(--bg);
  border: 1px dashed rgba(241, 193, 78, 0.4);
  border-radius: 9px;
  padding: 8px 12px;
  flex: 1;
}
.code .cp {
  flex: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 37px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #2a2008;
}
.code .cp.done {
  background: var(--ok);
}
.bdg {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
}
.bdg.new {
  background: #e23b4e;
  color: #fff;
}
.bdg.soon {
  background: rgba(255, 150, 90, 0.18);
  color: #ffc69a;
}
.code .rwd {
  font-size: 13.5px;
  color: var(--txt-dim);
}
.code .rwd .hi {
  font-weight: 800;
  color: var(--txt);
}
.ti {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 5px;
  margin-right: 5px;
}
.ti.rare {
  background: rgba(90, 182, 255, 0.16);
  color: #bfe2ff;
}
.ti.epic {
  background: rgba(185, 139, 255, 0.16);
  color: #e4d2ff;
}
.ti.legendary {
  background: rgba(241, 193, 78, 0.16);
  color: #ffe6a8;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--txt-dim);
  /* padding: 36px; */
}
.exp {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}
.exp summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--txt-dim);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp summary::-webkit-details-marker {
  display: none;
}
.exp summary .ar {
  margin-left: auto;
  transition: 0.2s;
}
.exp[open] summary .ar {
  transform: rotate(180deg);
}
.exp .b {
  padding: 0 18px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.exp .b span {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--txt-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  text-decoration: line-through;
  opacity: 0.65;
}

/* ── Callout boxes ── */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--callout-border);
  background: var(--callout-bg);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--txt-dim);
}
.callout strong {
  color: var(--txt);
}
.callout .ico {
  font-size: 22px;
  line-height: 1;
  flex: none;
  margin-top: 1px;
}
.callout .callout-text > p {
  margin-bottom: 0;
}
.callout.warn {
  border-color: var(--warn-border);
  background: var(--warn-bg);
}
.callout.tip {
  border-color: var(--tip-border);
  background: var(--tip-bg);
}
.callout.gold {
  border-color: rgba(232, 194, 90, 0.3);
  background: rgba(232, 194, 90, 0.06);
}

/* RELATED ARTICLES */
.glist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  gap: 14px;
  margin-top: 22px;
}
.glist a {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding-right: 1rem;
  text-decoration: none;
  color: var(--txt);
  transition: 0.16s;
  overflow: hidden;
}
.glist a:hover {
  border-color: var(--gold-deep);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.glist .ic {
  flex: none;
  height: 100%;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
}
.glist .ic img {
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.glist .tx {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.glist .tx h4 {
  margin: 0 0 3px;
  font-size: 14.5px;
}
.glist .tx p {
  margin: 0;
  font-size: 12.5px;
  color: var(--txt-dim);
}
.glist .arr {
  margin-left: auto;
  color: var(--txt-dim);
  flex: none;
}
@media (max-width: 500px) {
  .glist a {
    flex-direction: column;
    padding: 0;
  }
  .glist .ic {
    width: 100%;
    height: auto;
  }
  .glist a > svg {
    display: none;
  }
  .glist .ic img {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 4;
    object-fit: cover;
  }
  .glist .tx {
    padding: 0 1rem 1rem 1rem;
  }
}

/* BONUS PACKS */
/* Pack grid */
.mtd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.mtd-grid.single {
  grid-template-columns: repeat(1, minmax(290px, 400px));
  justify-content: center;
}

/* Individual pack card */
.mtd-pack {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.mtd-pack:hover {
  transform: translateY(-4px);
  border-color: var(--gold-deep);
  box-shadow: var(--shadow);
}
.mtd-pack.best {
  border-color: rgba(212, 168, 50, 0.45);
  box-shadow: 0 0 0 1px rgba(212, 168, 50, 0.22),
    0 22px 50px -18px rgba(0, 0, 0, 0.7);
}

/* Best badge crown */
.mtd-crown {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  font-size: 18px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

/* Pack hero image */
.mtd-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;
  background: var(--bg-2);
  overflow: hidden;
}
.mtd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  transition: transform 0.35s;
}
.mtd-pack:hover .mtd-img img {
  transform: scale(1.04);
}
.mtd-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--panel) 100%);
}

/* Steel bar across top of best pack */
.mtd-pack.best .mtd-img::before {
  content: var(--mtd-label, "BEST PACK");
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 2px;
  text-align: center;
  color: #1a1f14;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  padding: 3px 20px;
  border-radius: 0 0 8px 8px;
}

/* Card body */
.mtd-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

/* Pack name */
.mtd-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: var(--txt);
}
.mtd-pack.best .mtd-name {
  color: var(--gold-2);
}

/* Reward list */
.mtd-rw {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.mtd-rw li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  color: var(--txt-dim);
  line-height: 1.35;
}
.mtd-icon {
  flex: none;
  font-size: 13px;
  width: 18px;
  text-align: center;
}
.mtd-or {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--txt-dim);
  opacity: 0.55;
  margin-left: 3px;
}

.mtd-note {
  font-size: 12px;
  color: var(--txt-dim);
  background: rgba(94, 196, 107, 0.07);
  border: 1px solid rgba(94, 196, 107, 0.22);
  border-radius: 10px;
  padding: 9px 12px;
  line-height: 1.5;
}
.mtd-note b {
  color: var(--gold-2);
}

/* CTA button */
.mtd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 13px 16px;
  border-radius: 11px;
  margin-top: 4px;
  color: #0f1a08;
  background: var(
    --mtd-cta-button-bg,
    linear-gradient(180deg, var(--gold-2), var(--gold))
  );
  box-shadow: 0 10px 24px -8px var(--mtd-cta-button-shadow, rgba(212, 168, 50, 0.45));
  transition: transform 0.16s, box-shadow 0.16s;
}
.mtd-cta:hover {
  color: #0a200a;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px var(--mtd-cta-button-shadow-hover, rgba(212, 168, 50, 0.55));
}
.mtd-pack.best .mtd-cta {
  background: linear-gradient(180deg, #a6e87c, var(--ok));
  color: #0a200a;
  box-shadow: 0 10px 24px -8px rgba(123, 198, 126, 0.45);
}
.mtd-pack.best .mtd-cta:hover {
  box-shadow: 0 14px 30px -8px rgba(123, 198, 126, 0.55);
}

/* Responsive tweaks */
@media (max-width: 620px) {
  .mtd-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 400px) {
  .mtd-name {
    font-size: 17px;
  }
}
