/* ==================================================================
   Yevzu — legacy / low-feature Android fallback
   Applies only when the head feature detector adds .legacy, .no-grid,
   .no-aspect or .no-backdrop. Modern Android/desktop is unaffected.
=================================================================== */

html.legacy body.ms-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #08060a;
  background-image:
    radial-gradient(circle at 18% 0%, rgba(255, 47, 101, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 211, 61, 0.12), transparent 24%),
    linear-gradient(160deg, #08060a 0%, #151017 52%, #08060a 100%);
  color: #fff7f8;
  font-family: "Instrument Sans", "Noto Sans Devanagari", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

html.legacy body.ms-page *,
html.legacy body.ms-page *:before,
html.legacy body.ms-page *:after {
  box-sizing: border-box;
}

html.legacy body.ms-page .page {
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #0f0b10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

html.legacy body.ms-page .page-ambient,
html.legacy body.ms-page .hero-bg-grain,
html.legacy body.ms-page .hero-bg-scanline,
html.legacy body.ms-page .hero-sparkles,
html.legacy body.ms-page .mark-orbit,
html.legacy body.ms-page .mark-glow {
  display: none !important;
}

html.legacy body.ms-page .hero {
  position: relative;
  min-height: 520px;
  padding: 16px 18px 18px;
  overflow: hidden;
  background: #0b070c;
}

html.legacy body.ms-page .hero-bg,
html.legacy body.ms-page .hero-bg.is-carousel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #0b070c;
}

html.legacy body.ms-page .hero-picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

html.legacy body.ms-page .hero-bg-media {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  max-width: none;
  object-fit: cover;
}

html.legacy body.ms-page .hero-bg-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(8, 6, 10, 0.45) 0%, rgba(8, 6, 10, 0.3) 38%, #0f0b10 100%);
}

html.legacy body.ms-page .topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  margin-bottom: 70px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 218, 133, 0.17);
  border-radius: 14px;
  background: #151016;
  color: #fff7f8;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

html.legacy body.ms-page .brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

html.legacy body.ms-page .mark {
  width: 40px;
  height: 40px;
  margin-right: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: #f6dfb6;
}

html.legacy body.ms-page .mark-media {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

html.legacy body.ms-page .brand-name {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

html.legacy body.ms-page .brand-subtitle {
  margin: 2px 0 0;
  max-width: 158px;
  color: rgba(255, 244, 236, 0.65);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
}

html.legacy body.ms-page .bonus-jackpot {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 29px;
  margin-left: 6px;
  padding: 6px 9px;
  border: 1px solid #ffe89a;
  border-radius: 999px;
  background: #ffd33d;
  background: linear-gradient(135deg, #fff1a8 0%, #ffd33d 40%, #e39b00 100%);
  color: #4a2500;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(255, 196, 40, 0.45);
}

html.legacy body.ms-page .jackpot-coin,
html.legacy body.ms-page .jackpot-rays,
html.legacy body.ms-page .jackpot-spark {
  display: none;
}

html.legacy body.ms-page .showcase {
  position: relative;
  z-index: 2;
}

html.legacy body.ms-page .poster-stage {
  position: relative;
  min-height: 300px;
  padding-top: 20px;
}

html.legacy body.ms-page .poster-stage:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 6, 10, 0.55) 26%, #0f0b10 100%);
}

html.legacy body.ms-page .drama-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

html.legacy body.ms-page .tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 211, 61, 0.3);
  border-radius: 999px;
  background: rgba(45, 24, 9, 0.72);
  color: #ffe27a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.legacy body.ms-page .drama-copy h1,
html.legacy body.ms-page .hero-title-shimmer {
  max-width: 360px;
  margin: 12px auto 8px;
  color: #fff !important;
  background: none !important;
  font-family: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 32px;
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.9);
  -webkit-text-fill-color: #fff;
}

html.legacy body.ms-page .drama-copy p {
  max-width: 330px;
  margin: 0 auto;
  color: rgba(255, 250, 246, 0.9);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.45;
}

html.legacy body.ms-page .hero-reward-note {
  display: block;
  width: auto;
  max-width: 330px;
  margin: 11px auto 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 211, 61, 0.32);
  border-radius: 10px;
  background: rgba(27, 14, 15, 0.82);
  color: #fff7ee;
  font-size: 10.5px;
  font-weight: 650;
  line-height: 1.42;
}

html.legacy body.ms-page .hero-reward-note span {
  color: #ffe16a;
  font-size: 11.5px;
  font-weight: 900;
}

html.legacy body.ms-page .hero-cta {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 338px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: #e81752;
  background: linear-gradient(135deg, #e81752 0%, #ff466f 52%, #ff7d54 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(232, 23, 82, 0.34);
}

html.legacy body.ms-page .hero-cta-shimmer,
html.legacy body.ms-page .entry-popup-cta-shimmer {
  display: none;
}

html.legacy body.ms-page .security-badge {
  display: block;
  max-width: 330px;
  margin: 10px auto 0;
  color: rgba(255, 240, 225, 0.6);
  font-size: 9px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

html.legacy body.ms-page .security-badge .badge-icon {
  display: none;
}

html.legacy body.ms-page .deals-section,
html.legacy body.ms-page .trust-section,
html.legacy body.ms-page .section {
  position: relative;
  z-index: 1;
  padding: 21px 18px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f0b10;
}

html.legacy body.ms-page .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 9px;
}

html.legacy body.ms-page .section-eyebrow {
  margin: 0 0 4px;
  color: #ffd33d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.legacy body.ms-page .section-head h2 {
  margin: 0;
  color: #fff7f8;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

html.legacy body.ms-page .deals-max {
  color: #ffda5c;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

html.legacy body.ms-page .deal-note {
  display: block;
  margin: 0 0 13px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 211, 61, 0.13);
  border-radius: 8px;
  background: rgba(255, 211, 61, 0.035);
  color: rgba(255, 247, 240, 0.58);
  font-size: 9px;
  line-height: 1.45;
}

html.legacy body.ms-page .deal-note-dot {
  display: none;
}

/* Float fallback because Android 5 WebView predates CSS Grid. */
html.legacy body.ms-page .dramas,
html.no-grid body.ms-page .dramas {
  display: block;
  margin: 0 -4px;
  zoom: 1;
}

html.legacy body.ms-page .dramas:after,
html.no-grid body.ms-page .dramas:after {
  content: "";
  display: block;
  clear: both;
}

html.legacy body.ms-page .deal-card,
html.no-grid body.ms-page .deal-card {
  float: left;
  width: 33.3333%;
  min-width: 0;
  margin: 0 0 10px;
  padding: 0 4px;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  box-sizing: border-box;
}

html.legacy body.ms-page .product-cover {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 133.3333%;
  overflow: hidden;
  border: 1px solid rgba(255, 234, 191, 0.2);
  border-radius: 15px;
  background-color: #f7f1e8;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

html.legacy body.ms-page .product-cover picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

html.legacy body.ms-page .product-image {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

html.legacy body.ms-page .cover-vignette {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(20, 8, 13, 0.25) 100%);
}

html.legacy body.ms-page .deal-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  padding: 4px 5px;
  border: 1px solid #fff6c8;
  border-radius: 999px;
  background: #ffd33d;
  background: linear-gradient(135deg, #ffe47a, #ffc62f 65%, #e89a00);
  color: #371800;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

html.legacy body.ms-page .product-view {
  display: none;
}

html.legacy body.ms-page .product-meta {
  padding: 7px 1px 0;
}

html.legacy body.ms-page .product-brand {
  display: block;
  overflow: hidden;
  margin: 0 0 2px;
  color: #ffd33d;
  font-size: 7px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

html.legacy body.ms-page .product-name {
  display: block;
  min-height: 26px;
  overflow: hidden;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
}

html.legacy body.ms-page .product-card-cta {
  display: flex;
  width: 100%;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 4px;
  border-radius: 8px;
  background: #d91449;
  background: linear-gradient(135deg, #d91449, #ff4b71 58%, #ff7655);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

html.legacy body.ms-page .guide-steps {
  display: block;
}

html.legacy body.ms-page .guide-step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 211, 61, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
}

html.legacy body.ms-page .guide-icon {
  display: flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  border: 1px solid rgba(255, 211, 61, 0.2);
  border-radius: 10px;
  background: rgba(255, 211, 61, 0.1);
  color: #ffd95b;
}

html.legacy body.ms-page .guide-content {
  min-width: 0;
}

html.legacy body.ms-page .guide-content b {
  display: block;
  margin-bottom: 3px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

html.legacy body.ms-page .guide-content p {
  margin: 0;
  color: rgba(255, 245, 238, 0.58);
  font-size: 10.5px;
  line-height: 1.5;
}

html.legacy body.ms-page .trust-label {
  color: #ffe27a;
  font-size: 9px;
  font-weight: 800;
}

html.legacy body.ms-page .apk-safety-note {
  margin: 10px 0 0;
  padding: 8px 9px;
  border-left: 2px solid #ffd33d;
  background: rgba(255, 211, 61, 0.04);
  color: rgba(255, 247, 240, 0.5);
  font-size: 9px;
  line-height: 1.45;
}

html.legacy body.ms-page .final {
  position: relative;
  padding: 30px 20px 32px;
  background: #2a1320;
  background: linear-gradient(145deg, #160e16 0%, #2c1320 56%, #551a31 100%);
  color: #fff;
  text-align: center;
}

html.legacy body.ms-page .final-kicker {
  margin: 0 0 7px;
  color: #ffe27a;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

html.legacy body.ms-page .final h2 {
  margin: 0 0 10px;
  color: #fffaf5;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

html.legacy body.ms-page .final p {
  max-width: 335px;
  margin: 0 auto 17px;
  color: rgba(255, 247, 240, 0.68);
  font-size: 12px;
  line-height: 1.55;
}

html.legacy body.ms-page .final .cta {
  display: flex;
  width: 100%;
  max-width: 400px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid #fff3b4;
  border-radius: 15px;
  background: #ffd33d;
  background: linear-gradient(135deg, #ffe47a 0%, #ffc62f 58%, #f0a312 100%);
  color: #331700;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

html.legacy body.ms-page .page-footer {
  padding: 18px 19px 78px;
  background: #070509;
  color: rgba(255, 245, 238, 0.46);
  font-size: 9px;
  line-height: 1.55;
}

html.legacy body.ms-page .footer-brand {
  display: flex;
  align-items: center;
  margin: 0 0 8px;
  color: #ffe27a;
  font-size: 10px;
  font-weight: 800;
}

html.legacy body.ms-page .footer-brand img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border-radius: 5px;
}

html.legacy body.ms-page .page-footer p {
  margin: 0 0 8px;
}

/* ---------- offer dialog ---------- */

html.legacy body.ms-page .entry-popup-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
  background: rgba(7, 4, 8, 0.9);
  opacity: 0;
  visibility: hidden;
}

html.legacy body.ms-page .entry-popup-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

html.legacy body.ms-page .entry-popup-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 92vh;
  margin: auto;
  padding: 16px 18px 14px;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid #ffd77a;
  border-radius: 24px;
  background: #1d111b;
  background: linear-gradient(155deg, #351727, #130d15);
  color: #fff7f8;
  text-align: center;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65);
}

html.legacy body.ms-page .entry-popup-card:before,
html.legacy body.ms-page .entry-popup-aurora,
html.legacy body.ms-page .entry-popup-shine,
html.legacy body.ms-page .promo-particles {
  display: none !important;
}

html.legacy body.ms-page .entry-popup-close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(20, 10, 16, 0.9);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

html.legacy body.ms-page .entry-popup-logo {
  width: 54px;
  height: 54px;
  margin: 0 auto 5px;
}

html.legacy body.ms-page .entry-popup-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 11px;
}

html.legacy body.ms-page .entry-popup-logo-orbit {
  display: none;
}

html.legacy body.ms-page .entry-popup-kicker {
  margin: 0 0 2px;
  color: #ffe27a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

html.legacy body.ms-page .entry-popup-badge-ring.is-reward {
  position: relative;
  display: flex;
  width: 154px;
  height: 154px;
  align-items: center;
  justify-content: center;
  margin: 2px auto 0;
  border: 1px solid rgba(255, 225, 130, 0.6);
  border-radius: 50%;
  background: rgba(255, 196, 35, 0.1);
  box-shadow: 0 0 28px rgba(255, 196, 35, 0.2);
}

html.legacy body.ms-page .entry-popup-badge-ring.is-reward:before,
html.legacy body.ms-page .entry-popup-badge-ring.is-reward:after {
  display: none;
}

html.legacy body.ms-page .promo-50 {
  position: relative;
  display: block;
  padding-top: 30px;
}

html.legacy body.ms-page .promo-50 strong {
  display: block;
  color: #ffd33d !important;
  background: none !important;
  font-family: "Instrument Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 54px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.07em;
  -webkit-text-fill-color: #ffd33d;
  text-shadow: 0 0 18px rgba(255, 197, 40, 0.5);
}

html.legacy body.ms-page .promo-50 span {
  display: block;
  margin-top: 3px;
  color: #ffe68b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.35em;
}

html.legacy body.ms-page .entry-popup-body {
  margin: 5px 0 10px;
}

html.legacy body.ms-page .entry-popup-title.is-geo {
  max-width: 300px;
  margin: 0 auto 4px;
  color: #fff;
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

html.legacy body.ms-page .entry-popup-reward-copy {
  max-width: 290px;
  margin: 0 auto;
  color: #ffdf74;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

html.legacy body.ms-page .popup-legal,
html.legacy body.ms-page .entry-popup-apk-note {
  margin: 5px auto 0;
  color: rgba(255, 245, 238, 0.45);
  font-size: 8px;
  line-height: 1.4;
}

html.legacy body.ms-page .entry-popup-actions {
  display: block;
}

html.legacy body.ms-page .entry-popup-cta {
  display: flex;
  width: 100%;
  min-height: 47px;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #e81752;
  background: linear-gradient(135deg, #e81752 0%, #ff466f 52%, #ff7d54 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(232, 23, 82, 0.32);
}

/* ---------- download dialog ---------- */

html.legacy body.ms-page .product-modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(7, 4, 8, 0.9);
}

html.legacy body.ms-page .product-modal-overlay.active {
  display: flex;
}

html.legacy body.ms-page .product-modal {
  position: relative;
  display: block;
  width: 100%;
  max-width: 392px;
  max-height: 92vh;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 220, 133, 0.35);
  border-radius: 22px;
  background: #151016;
  color: #fff;
}

html.legacy body.ms-page .product-modal-close {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 7, 11, 0.72);
  color: #fff;
  font-size: 24px;
}

html.legacy body.ms-page .product-modal-media {
  position: relative;
  display: flex;
  height: 220px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f7f1e8;
}

html.legacy body.ms-page .product-modal-media:before,
html.legacy body.ms-page .product-modal-media:after {
  display: none;
}

html.legacy body.ms-page .product-modal-media img {
  display: block;
  width: auto;
  max-width: 88%;
  height: 205px;
  object-fit: contain;
}

html.legacy body.ms-page .product-modal-discount {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 5px 7px;
  border-radius: 999px;
  background: #ffd33d;
  color: #351700;
  font-size: 9px;
  font-weight: 900;
}

html.legacy body.ms-page .product-modal-content {
  padding: 13px 16px 15px;
}

html.legacy body.ms-page .product-modal-brand {
  margin: 0 0 4px;
  color: #ffd33d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html.legacy body.ms-page .product-modal-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

html.legacy body.ms-page .product-modal-model {
  margin: 0 0 9px;
  color: rgba(255, 245, 238, 0.5);
  font-size: 10px;
}

html.legacy body.ms-page .spec-list {
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

html.legacy body.ms-page .spec-list li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 11px;
  color: rgba(255, 247, 240, 0.75);
  font-size: 10px;
  line-height: 1.4;
}

html.legacy body.ms-page .spec-list li:before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd33d;
}

html.legacy body.ms-page .download-unlock {
  margin: 0 0 10px;
  padding: 9px;
  border: 1px solid rgba(255, 211, 61, 0.2);
  border-radius: 10px;
  background: rgba(255, 211, 61, 0.04);
}

html.legacy body.ms-page .download-unlock strong {
  display: block;
  margin-bottom: 3px;
  color: #ffe27a;
  font-size: 11px;
}

html.legacy body.ms-page .download-unlock p {
  margin: 0;
  color: rgba(255, 247, 240, 0.6);
  font-size: 9.5px;
  line-height: 1.4;
}

html.legacy body.ms-page .modal-download {
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff3b4;
  border-radius: 11px;
  background: #ffd33d;
  background: linear-gradient(135deg, #ffe47a, #ffc62f 62%, #f0a312);
  color: #321600;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- floating CTA and toast ---------- */

html.legacy body.ms-page .apk-fab {
  position: fixed;
  right: 14px;
  bottom: 16px;
  left: auto;
  z-index: 900;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid #fff3b4;
  border-radius: 999px;
  background: #ffd33d;
  background: linear-gradient(135deg, #ffe47a, #ffc62f 62%, #f0a312);
  color: #321600;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
}

html.legacy body.ms-page .apk-fab.is-visible {
  opacity: 1;
  visibility: visible;
}

html.legacy body.ms-page .apk-fab svg {
  width: 17px;
  height: 17px;
  margin-right: 6px;
}

html.legacy body.ms-page .toast {
  position: fixed;
  right: 16px;
  bottom: 70px;
  left: 16px;
  z-index: 1200;
  width: auto;
  max-width: 360px;
  margin: 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255, 224, 129, 0.35);
  border-radius: 10px;
  background: #171017;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}

html.legacy body.ms-page .toast.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ---------- aspect-ratio fallback when CSS variables still work ---------- */

html.no-aspect body.ms-page .product-cover {
  position: relative;
  height: 0;
  padding-top: 133.3333%;
}

html.no-aspect body.ms-page .product-cover picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

html.no-aspect body.ms-page .product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---------- backdrop-filter fallback ---------- */

html.no-backdrop body.ms-page .entry-popup-overlay,
html.no-backdrop body.ms-page .product-modal-overlay {
  background: rgba(7, 4, 8, 0.94);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.no-backdrop body.ms-page .topbar {
  background: #151016;
}

html.no-backdrop body.ms-page .apk-fab,
html.no-backdrop body.ms-page .cart-fab {
  background-color: #171017;
}

/* ---------- very small screens ---------- */

@media (max-width: 359px) {
  html.legacy body.ms-page .deal-card,
  html.no-grid body.ms-page .deal-card {
    width: 50%;
  }

  html.legacy body.ms-page .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  html.legacy body.ms-page .topbar {
    margin-bottom: 62px;
    padding: 7px;
  }

  html.legacy body.ms-page .mark,
  html.legacy body.ms-page .mark-media {
    width: 36px;
    height: 36px;
  }

  html.legacy body.ms-page .brand-name {
    font-size: 15px;
  }

  html.legacy body.ms-page .brand-subtitle {
    max-width: 116px;
    font-size: 7.5px;
  }

  html.legacy body.ms-page .bonus-jackpot {
    min-width: 0;
    padding: 5px 6px;
    font-size: 8.5px;
  }

  html.legacy body.ms-page .drama-copy h1,
  html.legacy body.ms-page .hero-title-shimmer {
    font-size: 27px;
  }

  html.legacy body.ms-page .drama-copy p {
    font-size: 12px;
  }

  html.legacy body.ms-page .hero-cta {
    min-height: 50px;
    font-size: 12.5px;
  }

  html.legacy body.ms-page .deals-section,
  html.legacy body.ms-page .trust-section,
  html.legacy body.ms-page .section {
    padding-left: 13px;
    padding-right: 13px;
  }

  html.legacy body.ms-page .product-name {
    font-size: 10px;
  }

  html.legacy body.ms-page .product-card-cta {
    font-size: 7.5px;
  }

  html.legacy body.ms-page .entry-popup-overlay {
    padding: 8px;
  }

  html.legacy body.ms-page .entry-popup-card {
    max-width: 306px;
    padding: 13px 13px 11px;
    border-radius: 22px;
  }

  html.legacy body.ms-page .entry-popup-logo {
    width: 46px;
    height: 46px;
  }

  html.legacy body.ms-page .entry-popup-badge-ring.is-reward {
    width: 136px;
    height: 136px;
  }

  html.legacy body.ms-page .promo-50 {
    padding-top: 26px;
  }

  html.legacy body.ms-page .promo-50 strong {
    font-size: 47px;
  }

  html.legacy body.ms-page .entry-popup-title.is-geo {
    font-size: 14px;
  }

  html.legacy body.ms-page .entry-popup-reward-copy {
    font-size: 10px;
  }

  html.legacy body.ms-page .entry-popup-cta {
    min-height: 44px;
    font-size: 11px;
  }

  html.legacy body.ms-page .product-modal {
    max-width: 100%;
  }

  html.legacy body.ms-page .product-modal-media {
    height: 190px;
  }

  html.legacy body.ms-page .product-modal-media img {
    height: 176px;
  }
}

@media (max-height: 620px) {
  html.legacy body.ms-page .entry-popup-card {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  html.legacy body.ms-page .entry-popup-logo {
    width: 38px;
    height: 38px;
    margin-bottom: 2px;
  }

  html.legacy body.ms-page .entry-popup-badge-ring.is-reward {
    width: 126px;
    height: 126px;
  }

  html.legacy body.ms-page .promo-50 {
    padding-top: 23px;
  }

  html.legacy body.ms-page .promo-50 strong {
    font-size: 44px;
  }

  html.legacy body.ms-page .entry-popup-title.is-geo {
    font-size: 13px;
  }
}

@media (max-height: 430px) {
  html.legacy body.ms-page .entry-popup-card {
    padding: 9px 11px;
    border-radius: 20px;
  }

  html.legacy body.ms-page .entry-popup-close {
    top: 4px;
    right: 4px;
  }

  html.legacy body.ms-page .entry-popup-logo,
  html.legacy body.ms-page .entry-popup-kicker,
  html.legacy body.ms-page .popup-legal,
  html.legacy body.ms-page .entry-popup-apk-note {
    display: none !important;
  }

  html.legacy body.ms-page .entry-popup-badge-ring.is-reward {
    width: 100px;
    height: 100px;
    margin: 0 auto;
  }

  html.legacy body.ms-page .promo-50 {
    padding-top: 16px;
  }

  html.legacy body.ms-page .promo-50 strong {
    font-size: 36px;
  }

  html.legacy body.ms-page .promo-50 span {
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  html.legacy body.ms-page .entry-popup-body {
    margin: 2px 0 5px;
  }

  html.legacy body.ms-page .entry-popup-title.is-geo {
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  html.legacy body.ms-page .entry-popup-reward-copy {
    font-size: 9px;
    line-height: 1.3;
  }

  html.legacy body.ms-page .entry-popup-cta {
    min-height: 44px;
    font-size: 10.5px;
  }
}
