.aetl-wrap {
  width: 100%;
  margin: 0 auto;
  padding: 10px 0 40px;
  color: #f5f5f5;
}

.aetl-header {
  margin: 0 auto 28px;
  text-align: center;
}

.aetl-eyebrow {
  margin: 0 0 8px;
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.aetl-title {
  margin: 0;
  color: #fff;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.22);
}

.aetl-subtitle {
  margin: 12px auto 0;
  color: #c7c7c7;
  font-size: 16px;
}

.aetl-tiers {
  display: grid;
  gap: 34px;
}

.aetl-tier-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(255, 215, 0, 0.13), rgba(255, 215, 0, 0.03) 45%, rgba(0, 0, 0, 0.14)),
    rgba(7, 10, 18, 0.78);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.25);
}

.aetl-tier-heading__main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.aetl-tier-heading__title {
  margin: 0;
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: clamp(24px, 2.4vw, 38px);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.aetl-tier-heading__count {
  min-width: 42px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: 999px;
  color: #ffd700;
  font-weight: 900;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
}

.aetl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 28px 22px;
  align-items: start;
}

.aetl-card {
  position: relative;
  min-width: 0;
}

.aetl-card__link {
  display: grid;
  gap: 9px;
  color: inherit;
  text-decoration: none !important;
  outline: none;
}

.aetl-card__media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  isolation: isolate;
}

.aetl-card__portrait {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.28));
  transform: scale(1);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.aetl-card__link:hover .aetl-card__portrait,
.aetl-card__link:focus-visible .aetl-card__portrait {
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.82)) drop-shadow(0 0 28px rgba(255, 215, 0, 0.48));
  transform: scale(1.035);
}

.aetl-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-weight: 900;
  font-size: 28px;
}

.aetl-badge {
  position: absolute;
  z-index: 4;
  display: block;
  object-fit: contain;
  max-width: none;
  max-height: none;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.72));
}

.aetl-badge--rarity {
  top: 4px;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  z-index: 5;
}

.aetl-badge--faction {
  left: 4px;
  width: 45px;
  height: 45px;
}

.aetl-badge--faction-1 {
  top: 18px;
}

.aetl-badge--faction-2 {
  top: 66px;
}

.aetl-badge--damage {
  right: 5px;
  top: 18px;
  width: 38px;
  height: 38px;
}

.aetl-badge--class {
  right: 8px;
  bottom: 14px;
  width: 42px;
  height: 42px;
}

.aetl-card__body {
  display: grid;
  gap: 5px;
  text-align: center;
}

.aetl-card__title {
  color: #fff;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.88);
}

.aetl-card__rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  justify-self: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
}

.aetl-card__rating-number {
  color: #ffd700;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.aetl-stars {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.18);
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
  text-shadow: none;
}

.aetl-tier-heading__stars .aetl-stars {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: 2px;
}

.aetl-card__rating-stars .aetl-stars {
  font-size: 15px;
  letter-spacing: 0;
}

.aetl-stars__base,
.aetl-stars__fill {
  display: block;
}

.aetl-stars__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--aetl-rating-percent, 0%);
  overflow: hidden;
  color: #ffd700;
  text-shadow: 0 0 9px rgba(255, 215, 0, 0.48);
}

.aetl-empty {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7c7c7;
  text-align: center;
}

.aetl-empty--tier {
  margin-top: -6px;
}

@media (max-width: 900px) {
  .aetl-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 24px 16px;
  }

  .aetl-card__media,
  .aetl-card__portrait,
  .aetl-card__placeholder {
    height: 190px;
    min-height: 190px;
  }

  .aetl-tier-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .aetl-tier-heading__main {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .aetl-tier-heading__title {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .aetl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aetl-card__media,
  .aetl-card__portrait,
  .aetl-card__placeholder {
    height: 170px;
    min-height: 170px;
  }

  .aetl-badge--rarity {
    width: 36px;
    height: 36px;
  }

  .aetl-badge--faction {
    width: 36px;
    height: 36px;
  }

  .aetl-badge--faction-2 {
    top: 56px;
  }

  .aetl-badge--damage {
    width: 32px;
    height: 32px;
  }

  .aetl-badge--class {
    width: 34px;
    height: 34px;
  }

  .aetl-card__title {
    font-size: 16px;
  }
}


/* v1.04 tier label, weighted average info modal, and mobile scroll updates */
.aetl-header {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0;
}

.aetl-header__copy {
  min-width: 0;
  width: 100%;
}

.aetl-info {
  position: absolute;
  top: 4px;
  right: 0;
  z-index: 100;
}

.aetl-info__button {
  list-style: none;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 215, 0, 0.7);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,255,255,0.25), transparent 28%),
    linear-gradient(135deg, rgba(255, 215, 0, 0.28), rgba(0, 0, 0, 0.38));
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 9px rgba(255, 215, 0, 0.62);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.aetl-info__button::-webkit-details-marker {
  display: none;
}

.aetl-info__button:hover,
.aetl-info__button:focus-visible {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 215, 0, 0.95);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.32);
  outline: none;
}

.aetl-info__vignette,
.aetl-info__panel {
  display: none;
}

.aetl-info[open] .aetl-info__vignette {
  position: fixed;
  inset: 0;
  display: block;
  z-index: 9998;
  background:
    radial-gradient(circle at center, rgba(255, 215, 0, 0.12), rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.9) 100%),
    rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(3px);
}

.aetl-info[open] .aetl-info__panel {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(92vw, 720px);
  display: block;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.aetl-info__panel-inner {
  max-height: min(78vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 215, 0, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(12, 14, 22, 0.98), rgba(0, 0, 0, 0.94)),
    rgba(0, 0, 0, 0.95);
  color: #e8e8e8;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.08) inset,
    0 24px 70px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(255, 215, 0, 0.16);
  text-align: left;
}

.aetl-info__panel h3 {
  margin: 0 0 14px;
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.aetl-info__panel p {
  margin: 0 0 13px;
  color: #d8d8d8;
  font-size: 17px;
  line-height: 1.55;
}

.aetl-info__panel strong {
  color: #ffd700;
  font-weight: 900;
}

.aetl-info__close {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 215, 0, 0.34);
  border-radius: 999px;
  color: #ffd700;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 215, 0, 0.08);
}

.aetl-info__panel-inner::-webkit-scrollbar {
  width: 9px;
}

.aetl-info__panel-inner::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.aetl-info__panel-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.45);
  border-radius: 999px;
}

.aetl-info__weights {
  margin: 18px 0 8px;
  padding: 14px;
  border: 1px solid rgba(255, 215, 0, 0.28);
  border-radius: 14px;
  background: rgba(255, 215, 0, 0.06);
}

.aetl-info__weights h4 {
  margin: 0 0 10px;
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.aetl-info__weight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: #e9e9e9;
  font-size: 14px;
  font-weight: 800;
}

.aetl-info__weight-row strong {
  flex: 0 0 auto;
  min-width: 42px;
  color: #ffd700;
  text-align: right;
}

.aetl-tier-heading__text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.aetl-tier-heading__range {
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.aetl-tier-letter {
  position: relative;
  min-width: clamp(82px, 8vw, 120px);
  display: inline-grid;
  place-items: center;
  padding: 7px 13px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.32));
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: clamp(31px, 4vw, 54px);
  font-weight: 1000;
  line-height: 0.9;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: skew(-5deg);
  isolation: isolate;
  overflow: hidden;
}

.aetl-tier-letter::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 35%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  transform: rotate(18deg);
  opacity: 0.55;
}

.aetl-tier-letter--sss {
  color: #ff3b33;
  border-color: rgba(255, 58, 51, 0.62);
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.82), 0 0 22px rgba(255, 55, 0, 0.55);
  box-shadow: 0 0 24px rgba(255, 44, 44, 0.18), inset 0 0 16px rgba(255, 44, 44, 0.12);
}

.aetl-tier-letter--ss {
  color: #ff7a18;
  border-color: rgba(255, 122, 24, 0.62);
  text-shadow: 0 0 6px rgba(255, 106, 0, 0.82), 0 0 20px rgba(255, 160, 0, 0.5);
  box-shadow: 0 0 22px rgba(255, 122, 24, 0.16), inset 0 0 16px rgba(255, 122, 24, 0.10);
}

.aetl-tier-letter--s {
  color: #ffd700;
  border-color: rgba(255, 215, 0, 0.68);
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.82), 0 0 20px rgba(255, 215, 0, 0.48);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.18), inset 0 0 16px rgba(255, 215, 0, 0.10);
}

.aetl-tier-letter--a {
  color: #a971ff;
  border-color: rgba(169, 113, 255, 0.62);
  text-shadow: 0 0 6px rgba(169, 113, 255, 0.82), 0 0 19px rgba(90, 110, 255, 0.48);
  box-shadow: 0 0 20px rgba(169, 113, 255, 0.14), inset 0 0 14px rgba(169, 113, 255, 0.10);
}

.aetl-tier-letter--b {
  color: #33d6ff;
  border-color: rgba(51, 214, 255, 0.58);
  text-shadow: 0 0 6px rgba(51, 214, 255, 0.72), 0 0 18px rgba(51, 214, 255, 0.38);
  box-shadow: 0 0 18px rgba(51, 214, 255, 0.12), inset 0 0 14px rgba(51, 214, 255, 0.08);
}

.aetl-tier-letter--c {
  color: #53ff8f;
  border-color: rgba(83, 255, 143, 0.52);
  text-shadow: 0 0 6px rgba(83, 255, 143, 0.68), 0 0 16px rgba(83, 255, 143, 0.32);
  box-shadow: 0 0 16px rgba(83, 255, 143, 0.10), inset 0 0 14px rgba(83, 255, 143, 0.08);
}

.aetl-tier-letter--d {
  color: #c8c8c8;
  border-color: rgba(200, 200, 200, 0.42);
  text-shadow: 0 0 6px rgba(200, 200, 200, 0.45);
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.06);
}

.aetl-tier--sss .aetl-tier-heading {
  border-color: rgba(255, 58, 51, 0.54);
  box-shadow: 0 0 26px rgba(255, 58, 51, 0.14);
}

.aetl-tier--ss .aetl-tier-heading {
  border-color: rgba(255, 122, 24, 0.50);
  box-shadow: 0 0 24px rgba(255, 122, 24, 0.12);
}

.aetl-tier--s .aetl-tier-heading {
  border-color: rgba(255, 215, 0, 0.54);
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}

.aetl-badge--rarity {
  top: auto;
  bottom: 8px;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translateX(-50%);
  z-index: 6;
}

@media (max-width: 900px) {
  .aetl-header {
    padding: 0 54px 0 0;
    text-align: left;
  }

  .aetl-info {
    top: 0;
  }

  .aetl-tier-heading__main {
    align-items: center;
    flex-direction: row;
  }
}

@media (max-width: 560px) {
  .aetl-header {
    padding-right: 46px;
  }

  .aetl-info__button {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .aetl-tier-letter {
    min-width: 68px;
    font-size: 30px;
  }

  .aetl-tier-heading__range {
    font-size: 12px;
  }

  .aetl-info__panel p {
    font-size: 15px;
  }

  .aetl-info[open] .aetl-info__panel {
    width: calc(100vw - 24px);
  }

  .aetl-info__panel-inner {
    max-height: calc(100dvh - 84px);
    padding: 20px 16px;
  }

  .aetl-info__weight-grid {
    grid-template-columns: 1fr;
  }

  .aetl-info__weight-row {
    font-size: 13px;
  }
}


.aetl-info[open] .aetl-info__button {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
}

/* v1.05 personalized weight customizer */
.aetl-header__actions {
  position: static;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.aetl-header__actions .aetl-info {
  position: static;
  top: auto;
  right: auto;
}

.aetl-customize__button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255, 215, 0, 0.62);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 215, 0, 0.22), rgba(0, 0, 0, 0.34)),
    rgba(7, 10, 18, 0.84);
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  text-shadow: 0 0 9px rgba(255, 215, 0, 0.42);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.14);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.aetl-customize__button:hover,
.aetl-customize__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.95);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.26);
  outline: none;
}

.aetl-weight-status {
  margin: -8px auto 24px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 215, 0, 0.32);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.07);
  color: #ffd700;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.aetl-weight-modal[hidden] {
  display: none !important;
}

.aetl-weight-modal {
  position: fixed;
  inset: 0;
  z-index: 10010;
}

.aetl-weight-modal__vignette {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(255, 215, 0, 0.13), rgba(0, 0, 0, 0.70) 42%, rgba(0, 0, 0, 0.92) 100%),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.aetl-weight-modal__panel {
  position: fixed;
  inset: 50% auto auto 50%;
  width: min(94vw, 820px);
  max-height: min(84vh, 820px);
  transform: translate(-50%, -50%);
}

.aetl-weight-modal__inner {
  max-height: min(84vh, 820px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 215, 0, 0.58);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(12, 14, 22, 0.985), rgba(0, 0, 0, 0.95)),
    rgba(0, 0, 0, 0.96);
  color: #e8e8e8;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.08) inset,
    0 24px 70px rgba(0, 0, 0, 0.74),
    0 0 44px rgba(255, 215, 0, 0.16);
  text-align: left;
}

.aetl-weight-modal__eyebrow {
  margin: 0 0 8px;
  color: #ffd700;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aetl-weight-modal__inner h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.24);
}

.aetl-weight-modal__inner p {
  margin: 0 0 18px;
  color: #d8d8d8;
  font-size: 16px;
  line-height: 1.55;
}

.aetl-weight-modal__inner strong {
  color: #ffd700;
}

.aetl-weight-modal__x {
  position: absolute;
  top: -15px;
  right: -15px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 215, 0, 0.68);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.88);
  color: #ffd700;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.22);
}

.aetl-weight-controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.aetl-weight-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.aetl-weight-row__label {
  display: grid;
  gap: 3px;
}

.aetl-weight-row__label strong {
  color: #fff;
  font-family: Iceberg, Orbitron, Verdana, sans-serif;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.aetl-weight-row__label span {
  color: #ffd700;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.86;
}

.aetl-weight-options {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.aetl-weight-option {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.34);
  color: #d8d8d8;
  font-size: 16px;
  font-weight: 1000;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.aetl-weight-option:hover,
.aetl-weight-option:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 215, 0, 0.58);
  color: #ffd700;
  outline: none;
}

.aetl-weight-option.is-selected {
  border-color: rgba(255, 215, 0, 0.85);
  background: rgba(255, 215, 0, 0.17);
  color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.20), inset 0 0 12px rgba(255, 215, 0, 0.07);
}

.aetl-weight-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.aetl-weight-reset,
.aetl-weight-done {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.aetl-weight-reset {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
}

.aetl-weight-done {
  border: 1px solid rgba(255, 215, 0, 0.72);
  background: rgba(255, 215, 0, 0.18);
  color: #ffd700;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.16);
}

.aetl-modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .aetl-header__actions {
    justify-content: center;
  }

  .aetl-header {
    text-align: center;
  }

  .aetl-weight-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .aetl-weight-options {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .aetl-header__actions {
    flex-direction: column-reverse;
    align-items: center;
  }

  .aetl-customize__button {
    min-height: 38px;
    font-size: 14px;
  }

  .aetl-weight-modal__panel {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 38px);
  }

  .aetl-weight-modal__inner {
    max-height: calc(100dvh - 38px);
    padding: 20px 14px;
  }

  .aetl-weight-modal__x {
    top: 8px;
    right: 8px;
  }

  .aetl-weight-row__label strong {
    font-size: 18px;
  }

  .aetl-weight-option {
    width: 36px;
    height: 36px;
  }

  .aetl-weight-modal__actions {
    flex-direction: column;
  }

  .aetl-weight-reset,
  .aetl-weight-done {
    width: 100%;
  }
}
