[data-android-download-slot] {
  max-width: 100%;
}

.android-download-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  width: min(100%, 850px);
  box-sizing: border-box;
  margin: 16px auto 0;
  padding: 15px clamp(15px, 2.2vw, 22px);
  overflow: hidden;
  border: 1px solid rgba(205, 157, 70, .56);
  border-radius: 4px;
  background:
    radial-gradient(circle at 12% 45%, rgba(35, 145, 188, .15), transparent 28%),
    linear-gradient(145deg, rgba(7, 19, 29, .96), rgba(2, 8, 15, .97));
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, .28),
    inset 0 0 0 4px rgba(218, 171, 79, .07),
    0 12px 30px rgba(0, 0, 0, .32);
  color: #f4e7c8;
  text-align: left;
}

.android-download-card::before,
.android-download-card::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  height: 9px;
  pointer-events: none;
  background:
    radial-gradient(circle, #dfb965 0 2px, transparent 3px) center / 9px 9px no-repeat,
    linear-gradient(90deg, transparent, rgba(226, 183, 91, .57), transparent) center / 100% 1px no-repeat;
}
.android-download-card::before { top: -5px; }
.android-download-card::after { bottom: -5px; }

.android-download-crest {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(217, 174, 87, .56);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 172, 212, .2), rgba(4, 10, 17, .86) 68%);
  box-shadow: inset 0 0 0 3px rgba(2, 8, 15, .9), 0 0 16px rgba(53, 178, 221, .15);
}
.android-download-crest img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  border-radius: 50%;
}
.android-download-copy-block { min-width: 0; }
.android-download-kicker {
  display: block;
  color: #c9a65c;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .14em;
  line-height: 1.3;
}
.android-download-title {
  display: block;
  margin-top: 3px;
  color: #f5e7c6;
  font: 700 clamp(.96rem, 1.7vw, 1.12rem)/1.3 Cinzel, Georgia, serif;
  text-shadow: 0 1px 3px #000;
}
.android-download-copy {
  margin: 5px 0 0;
  color: #d7e1df;
  font-size: .81rem;
  line-height: 1.43;
}
.seo-content .android-download-copy { margin: 5px 0 0; line-height: 1.43; }
.android-download-note,
.android-download-details {
  display: block;
  color: #aebfbe;
  font-size: .69rem;
  line-height: 1.35;
}
.android-download-note { margin-top: 5px; }
.android-download-action-block {
  display: grid;
  justify-items: center;
  gap: 6px;
}
.android-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 15px;
  box-sizing: border-box;
  border: 1px solid #eac77a;
  border-radius: 4px;
  background: linear-gradient(180deg, #e2bd73, #a77536);
  box-shadow: inset 0 1px rgba(255, 247, 214, .46), 0 3px 0 #5d3d1d;
  color: #17120a;
  font: 900 .79rem/1.2 Inter, system-ui, sans-serif;
  white-space: nowrap;
  text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.android-download-link:hover { filter: brightness(1.1); transform: translateY(-1px); }
.android-download-link:focus-visible { outline: 3px solid #6acbe8; outline-offset: 3px; }
.android-download-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.android-download-details { text-align: center; }

/* The loading invitation belongs to the existing mana plaque and stays quiet. */
.android-download-loader,
.android-download-onboarding {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  margin-top: 10px;
  padding: 9px 12px;
  background: linear-gradient(130deg, rgba(9, 26, 36, .92), rgba(3, 10, 18, .93));
}
.android-download-loader .android-download-crest,
.android-download-onboarding .android-download-crest { width: 38px; height: 38px; }
.android-download-loader .android-download-crest img,
.android-download-onboarding .android-download-crest img { width: 33px; height: 33px; }
.android-download-loader .android-download-copy,
.android-download-loader .android-download-note,
.android-download-onboarding .android-download-copy,
.android-download-onboarding .android-download-note { display: none; }
.android-download-loader .android-download-title,
.android-download-onboarding .android-download-title { font-size: .86rem; }
.android-download-loader .android-download-link,
.android-download-onboarding .android-download-link { min-height: 35px; padding: 7px 10px; font-size: .73rem; }

body.in-game [data-android-download-slot] { display: none !important; }

@media (max-width: 650px) {
  .android-download-card {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px 12px;
    padding: 12px;
  }
  .android-download-crest { width: 46px; height: 46px; }
  .android-download-crest img { width: 40px; height: 40px; }
  .android-download-action-block { grid-column: 1 / -1; justify-items: stretch; }
  .android-download-details { text-align: left; }
  .android-download-loader,
  .android-download-onboarding { grid-template-columns: 34px minmax(0, 1fr); gap: 8px; }
  .android-download-loader .android-download-crest,
  .android-download-onboarding .android-download-crest { width: 34px; height: 34px; }
  .android-download-loader .android-download-crest img,
  .android-download-onboarding .android-download-crest img { width: 29px; height: 29px; }
}
