
.api-locker {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(rgba(10,12,28,.84), rgba(10,12,28,.92)),
    url("https://link.brawlstars.com/images/game/bg-mode-gem-grab.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 45px rgba(0,0,0,.45);
}

.api-locker-logo img {
  width: 155px;
  display: block;
  margin: 0 auto 10px;
}

.api-locker-title {
  color: #fff;
  text-align: center;
  font-family: 'Lilita One', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 14px;
}

.api-locker-checker {
  height: 44px;
  border-radius: 9px;
  background: linear-gradient(90deg, #71b5dd, #2725c8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Lilita One', system-ui, sans-serif;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 14px;
}

.api-locker-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: apiSpin .8s linear infinite;
}

@keyframes apiSpin {
  to { transform: rotate(360deg); }
}

.api-locker-loading,
.api-locker-error {
  text-align: center;
  color: #fff;
  font-family: 'Lilita One', system-ui, sans-serif;
  text-shadow: 2px 2px 0 #000;
}

.api-offer-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #222339;
  border-radius: 9px;
  padding: 12px 34px 12px 12px;
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}

.api-offer-badge {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 58px;
  height: 25px;
  border-radius: 0 9px 0 9px;
  background: linear-gradient(45deg, #00c3ff, #ffff1c);
  color: #fff;
  font-family: 'Lilita One', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 1px 1px 0 #000;
}

.api-offer-card:nth-child(n+3) .api-offer-badge {
  background: linear-gradient(45deg, #ff4c00, #ff0);
}

.api-offer-left {
  width: 60px;
  flex: 0 0 60px;
}

.api-offer-left img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

.api-offer-stars {
  font-size: 10px;
  color: #ffd43b;
  margin-top: 3px;
  letter-spacing: -1px;
}

.api-offer-stars span {
  color: #777;
}

.api-offer-middle {
  flex: 1;
  min-width: 0;
}

.api-offer-name {
  color: rgb(169,169,202);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.15;
}

.api-offer-desc {
  color: rgb(169,169,202);
  font-size: .75rem;
  font-style: italic;
  line-height: 1.25;
  margin-top: 4px;
}

.api-offer-arrow {
  position: absolute;
  right: 13px;
  bottom: 18px;
  color: rgb(169,169,202);
  font-size: 24px;
}

#lockerBox {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 35px 14px;
  background: rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}

#lockerBox:empty {
  display: none !important;
}

.api-locker {
  width: 100% !important;
  max-width: 340px !important;
  margin: 0 auto !important;
  transform: none;
}

















#lockerPage {
  width: min(94vw, 380px);
  margin: 18px auto 30px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(14,16,35,.84), rgba(14,16,35,.92)),
    url("https://link.brawlstars.com/images/game/bg-mode-gem-grab.jpg");
  background-size: cover;
  background-position: center;
  min-height: 620px;
  position: relative;
  z-index: 50;
}

.api-locker-video {
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin: 12px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,.45);
}

.api-locker-video iframe {
  width: 100%;
  height: 185px;
  border: 0;
  display: block;
}