
.api-locker {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 18px 14px 16px;
  background:
    linear-gradient(rgba(10,12,28,.42), rgba(10,12,28,.78)),
    url("https://images.store.supercell.com/I8-_0Jzf52MeLinA--Bs-qA_TL3QfYE4RnZlR9w_I0I/rs:fit:600:1000/q:90/aHR0cHM6Ly9zdG9yZS5zdXBlcmNlbGwuY29tL2Fzc2V0cy9jYW1wYWlnbnMvYnJhd2xzdGFycy80OTMxOTM5MS1lZTk5LTQwNmQtOTQ0Zi0yN2YwMWJmMWUxZTEucG5n.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 20px 45px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.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: 0;
}

.api-locker-title-name {
  color: #ffd54a;
  text-transform: uppercase;
}

.api-locker-title-copy {
  color: #fff;
}

.api-locker-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.api-locker-player-strip {
  width: 100%;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 84px;
  align-items: center;
  gap: 12px;
}

.api-locker-player-side {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.api-locker-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,.12);
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

.api-locker-avatar-placeholder {
  background: rgba(255,255,255,.12);
}

.api-locker-reward {
  width: 84px;
  height: 84px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.3));
}

.api-locker-reward-placeholder {
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.api-locker-checker {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.api-locker-checker-gif {
  display: block;
  max-width: 120px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.api-locker-checker-card {
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: linear-gradient(180deg, #fbfbfb 0%, #ededed 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    0 10px 24px rgba(0,0,0,.16);
  padding: 12px 14px 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.api-locker-checker-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.api-locker-checker-left {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.api-locker-checker-loader {
  width: 28px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
}

.api-locker-checker-loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1ca86b;
  box-shadow: 0 0 0 1px rgba(17, 119, 74, 0.08);
  animation: apiVerifyDots 1.15s infinite ease-in-out;
}

.api-locker-checker-loader span:nth-child(2) {
  animation-delay: .14s;
}

.api-locker-checker-loader span:nth-child(3) {
  animation-delay: .28s;
}

.api-locker-checker-text {
  color: #222;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.api-locker-checker-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid #d7d7d7;
  flex: 0 0 auto;
}

.api-locker-checker-brand-icon {
  width: 28px;
  height: 22px;
  display: block;
}

.api-locker-checker-brand-icon path:first-child {
  fill: #1ca86b;
}

.api-locker-checker-brand-icon path:last-child {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.api-locker-checker-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.api-locker-checker-brand-title {
  color: #4a4a4a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.api-locker-checker-brand-subtitle {
  color: #7e7e7e;
  font-size: 10px;
  margin-top: 4px;
}

.api-locker-checker-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
  color: #7a7a7a;
  font-size: 11px;
  line-height: 1;
}

.api-locker-checker-links a {
  color: inherit;
  text-decoration: none;
}

.api-locker-checker-links a:hover {
  text-decoration: underline;
}

@keyframes apiVerifyDots {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: .45;
  }

  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

.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: 72px;
  height: 28px;
  padding: 0 8px;
  border-radius: 0 9px 0 9px;
  background: rgba(58, 60, 68, 0.95);
  color: #fff;
  font-family: 'Lilita One', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-shadow: 1px 1px 0 #000;
}

.api-offer-badge-value {
  line-height: 1;
}

.api-offer-badge-icon {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.api-offer-card:nth-child(n+3) .api-offer-badge {
  background: rgba(58, 60, 68, 0.95);
}

.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: 1;
}

.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;
}

@media (max-width: 380px) {
  .api-locker {
    padding: 16px 12px 14px;
    border-radius: 20px;
  }

  .api-locker-checker-card {
    padding: 11px 12px 10px;
  }

  .api-locker-checker-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .api-locker-checker-text {
    font-size: 16px;
  }

  .api-locker-checker-brand {
    padding-left: 0;
    border-left: 0;
    margin-left: 40px;
  }

  .api-locker-checker-links {
    justify-content: flex-start;
    margin-left: 40px;
  }

  .api-offer-badge {
    min-width: 68px;
    height: 26px;
    padding: 0 7px;
    gap: 3px;
  }

  .api-offer-badge-icon {
    width: 13px;
    height: 13px;
  }

  .api-locker-avatar {
    width: 72px;
    height: 72px;
  }

  .api-locker-reward {
    width: 72px;
    height: 72px;
  }

  .api-locker-player-strip {
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    gap: 10px;
  }

  .api-locker-title {
    font-size: 1rem;
    line-height: 1.45;
  }
}
