/* ==================================================================
   Yevzu — commerce adaptation layer
   Built on top of the original landing-page theme.
   Sections: shell · hero · categories · product cards · trust ·
             offer dialog · download modal · toast · responsive
=================================================================== */

:root {
  --bd-gold: #ffd33d;
  --bd-gold-soft: #ffe58a;
  --bd-gold-deep: #e69a0a;
  --bd-rose: #ff2f65;
  --bd-rose-soft: #ff708f;
  --bd-ink: #fff8f2;
  --bd-muted: #bbabb5;
  --bd-paper: #0f0b10;
  --bd-surface: #1a1219;
  --bd-line: rgba(255, 255, 255, 0.1);
  --bd-ivory: #f7f1e8;
  --bd-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  background: #070409;
}

html.bd-lock,
body.ms-page.bd-lock,
body.ms-page.entry-popup-open,
body.ms-page.modal-open {
  overflow: hidden;
}

body.ms-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 47, 101, 0.18), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(255, 211, 61, 0.11), transparent 25%),
    radial-gradient(circle at 50% 92%, rgba(119, 24, 57, 0.2), transparent 34%),
    linear-gradient(155deg, #070409 0%, #140d15 48%, #070409 100%);
  font-family: "Instrument Sans", "Noto Sans Devanagari", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--bd-ink);
}

body.ms-page .page {
  width: 100%;
  max-width: 460px;
  width: min(100%, 460px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bd-paper);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 30px 100px rgba(0, 0, 0, 0.55);
}

body.ms-page .hero {
  min-height: 520px;
  padding: 16px 18px 18px;
  padding-top: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  overflow: hidden;
}

body.ms-page .hero-bg {
  background: #0b070c url("../picture/banner-lqip.webp") center top / cover no-repeat;
}

body.ms-page .hero-bg-media {
  object-position: center top;
}

body.ms-page .hero-picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  pointer-events: none;
}

body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-active {
  animation: bd-hero-kenburns 24s ease-in-out infinite alternate !important;
}

@keyframes bd-hero-kenburns {
  from {
    transform: scale(1.015) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.075) translate3d(-0.8%, -0.6%, 0);
  }
}

body.ms-page .hero-bg-gradient {
  background:
    linear-gradient(180deg, rgba(8, 6, 10, 0.42) 0%, rgba(8, 6, 10, 0.18) 30%, rgba(15, 11, 16, 0.55) 67%, #0f0b10 100%);
}

body.ms-page .hero-bg.is-carousel::after {
  display: none;
}

body.ms-page .hero::after {
  opacity: 0.55;
}

body.ms-page .topbar {
  min-height: 58px;
  margin-bottom: 76px;
  border-radius: 15px;
  padding: 9px 10px;
  border-color: rgba(255, 218, 133, 0.17);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(16, 12, 17, 0.76);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

body.ms-page .brand {
  gap: 9px;
}

body.ms-page .mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow:
    0 0 0 1px rgba(255, 224, 145, 0.3),
    0 5px 16px rgba(0, 0, 0, 0.34);
}

body.ms-page .mark-media {
  border-radius: 10px;
  object-fit: cover;
  background: #f6dfb6;
}

body.ms-page .brand-name {
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.ms-page .brand-subtitle {
  margin-top: 3px;
  max-width: 190px;
  color: rgba(255, 244, 236, 0.6);
  font-size: 9.3px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

body.ms-page .bonus-jackpot {
  min-width: 84px;
  min-height: 29px;
  padding: 6px 9px;
  gap: 4px;
  border-color: rgba(255, 238, 170, 0.9);
  font-size: 10.5px;
  letter-spacing: 0.025em;
  box-shadow:
    0 0 16px rgba(255, 196, 40, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.ms-page .jackpot-coin {
  width: 11px;
  height: 11px;
}

body.ms-page .showcase {
  margin-top: -2px;
}

body.ms-page .poster-stage {
  min-height: 302px;
  align-items: flex-end;
}

body.ms-page .poster-stage::before {
  background: linear-gradient(
    180deg,
    rgba(8, 6, 10, 0.5) 0%,
    rgba(8, 6, 10, 0.68) 34%,
    rgba(8, 6, 10, 0.93) 73%,
    #0f0b10 100%
  );
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%);
}

body.ms-page .drama-copy {
  padding-top: 8px;
}

body.ms-page .tag {
  padding: 6px 10px;
  border: 1px solid rgba(255, 211, 61, 0.3);
  background: linear-gradient(100deg, rgba(255, 211, 61, 0.13), rgba(255, 47, 101, 0.08));
  color: #ffe27a;
  font-family: "Noto Sans Devanagari", "Instrument Sans", sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(255, 196, 35, 0.12);
}

body.ms-page .drama-copy h1,
body.ms-page .hero-title-shimmer {
  max-width: 398px;
  margin: 12px auto 8px;
  font-size: clamp(30px, 8.7vw, 37px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

body.ms-page #hero-title:focus,
body.ms-page #hero-title:focus-visible {
  outline: none;
}

body.ms-page .drama-copy p {
  max-width: 345px;
  color: rgba(255, 250, 246, 0.88);
  font-size: 13.2px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.002em;
  text-wrap: balance;
}

body.ms-page .hero-reward-note {
  display: block;
  width: fit-content;
  max-width: 348px;
  margin: 12px auto 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 211, 61, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(100deg, rgba(18, 10, 12, 0.76), rgba(82, 43, 14, 0.5));
  color: rgba(255, 250, 243, 0.92);
  font-size: 10.6px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.055);
  text-wrap: balance;
}

body.ms-page .hero-reward-note span {
  margin-right: 2px;
  color: #ffe16a;
  font-size: 11.8px;
  font-weight: 900;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 0 16px rgba(255, 196, 35, 0.5);
}

body.ms-page .hero-cta {
  width: min(100%, 338px);
  min-height: 54px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, #e81752 0%, #ff466f 48%, #ff7d54 100%);
  font-size: 14.5px;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  box-shadow:
    0 18px 36px rgba(232, 23, 82, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

body.ms-page .security-badge {
  display: flex;
  max-width: 330px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 11px auto 0;
  color: rgba(255, 240, 225, 0.56);
  font-size: 9.4px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

body.ms-page .security-badge .badge-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 211, 61, 0.45);
  border-radius: 50%;
  color: #ffe27a;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

/* ---------------- deals ---------------- */

body.ms-page .deals-section {
  padding: 21px 18px 27px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 211, 61, 0.04), transparent 24%),
    #0f0b10;
}

body.ms-page .deals-head {
  align-items: flex-end;
  margin-bottom: 9px;
}

body.ms-page .section-eyebrow {
  margin: 0 0 4px;
  color: rgba(255, 211, 61, 0.7);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.ms-page .section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

body.ms-page .deals-head > span {
  padding-bottom: 2px;
  color: #ffda5c;
  font-size: 10.5px;
  font-weight: 850;
  white-space: nowrap;
}

body.ms-page .deal-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 211, 61, 0.11);
  border-radius: 8px;
  background: rgba(255, 211, 61, 0.035);
  color: rgba(255, 247, 240, 0.55);
  font-size: 9.2px;
  font-weight: 550;
  line-height: 1.45;
}

body.ms-page .deal-note-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--bd-gold);
  box-shadow: 0 0 8px rgba(255, 211, 61, 0.65);
}

body.ms-page .dramas {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

body.ms-page .deal-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s var(--bd-ease),
    transform 0.5s var(--bd-ease);
  outline: none;
}

body.ms-page .deal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--enter, 0) * 45ms);
}

body.ms-page .deal-card.is-visible:hover {
  transform: translateY(-4px);
}

body.ms-page .deal-card:active {
  transform: translateY(-1px) scale(0.992);
}

body.ms-page .deal-card:focus-visible .product-cover {
  box-shadow:
    0 0 0 2px #ffd33d,
    0 16px 34px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(255, 211, 61, 0.28);
}

body.ms-page .product-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 234, 191, 0.2);
  border-radius: 16px;
  background-color: var(--bd-ivory);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.33),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transform-style: preserve-3d;
  transition:
    box-shadow 0.3s ease,
    transform 0.35s var(--bd-ease);
}

body.ms-page .product-cover picture {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
}

body.ms-page .product-cover.is-tilting {
  transition:
    box-shadow 0.3s ease,
    transform 0.1s ease-out;
}

body.ms-page .product-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 118, 0.16),
    inset 0 -28px 40px rgba(74, 38, 20, 0.06);
  pointer-events: none;
}

body.ms-page .product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: none;
  transform: none;
  animation: none;
  transition: transform 0.7s var(--bd-ease);
  will-change: auto;
}

body.ms-page .cover-vignette {
  background: linear-gradient(180deg, rgba(15, 8, 12, 0.04) 0%, transparent 22%, transparent 67%, rgba(20, 8, 13, 0.24) 100%);
  z-index: 1;
}

body.ms-page .deal-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 4;
  padding: 4px 5px;
  border: 1px solid rgba(255, 250, 210, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 52%),
    linear-gradient(135deg, #ffe47a, #ffc62f 65%, #e89a00);
  color: #371800;
  font-size: 8.2px;
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1;
  box-shadow:
    0 4px 12px rgba(49, 25, 0, 0.22),
    0 0 14px rgba(255, 201, 38, 0.28);
  animation: bd-badge-pop 3.2s ease-in-out infinite;
}

@keyframes bd-badge-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
}

body.ms-page .product-view {
  position: absolute;
  right: 7px;
  bottom: 7px;
  z-index: 4;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(19, 10, 16, 0.58);
  backdrop-filter: blur(8px);
  color: #fff6e4;
  font-size: 7px;
  font-weight: 850;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}

body.ms-page .product-meta {
  padding: 7px 1px 0;
}

body.ms-page .product-brand {
  overflow: hidden;
  margin: 0 0 2px;
  color: rgba(255, 211, 61, 0.7);
  font-size: 7.6px;
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body.ms-page .product-name {
  display: -webkit-box;
  min-height: 26px;
  overflow: hidden;
  color: rgba(255, 251, 247, 0.96);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -0.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.ms-page .product-card-cta {
  display: flex;
  width: 100%;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(135deg, #d91449, #ff4b71 58%, #ff7655);
  color: #fff;
  font-size: 8.3px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow:
    0 5px 12px rgba(222, 21, 75, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

body.ms-page .deal-card:hover .product-card-cta {
  filter: brightness(1.08);
}

body.ms-page .deal-card:hover .product-view {
  opacity: 1;
  transform: translateY(0);
}

body.ms-page .deal-card:hover .product-image {
  transform: scale(1.045);
}

body.ms-page .empty-state {
  margin: 24px 0 8px;
  padding: 24px 16px;
  border: 1px dashed rgba(255, 211, 61, 0.22);
  border-radius: 14px;
  color: var(--bd-muted);
  font-size: 12px;
  text-align: center;
}

/* ---------------- why shop with us ---------------- */

body.ms-page .trust-section {
  padding: 24px 18px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 47, 101, 0.05), transparent 25%),
    #110c14;
}

body.ms-page .trust-section .section-head {
  margin-bottom: 15px;
}

body.ms-page .trust-label {
  padding: 5px 8px;
  border: 1px solid rgba(255, 211, 61, 0.22);
  border-radius: 999px;
  background: rgba(255, 211, 61, 0.06);
  color: #ffe27a;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

body.ms-page .guide-steps {
  gap: 10px;
}

body.ms-page .guide-step {
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 211, 61, 0.12);
  border-radius: 15px;
  background:
    linear-gradient(120deg, rgba(255, 211, 61, 0.035), rgba(255, 47, 101, 0.025)),
    rgba(255, 255, 255, 0.014);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body.ms-page .guide-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 211, 61, 0.18);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(255, 211, 61, 0.11), rgba(255, 47, 101, 0.08));
  color: #ffd95b;
  box-shadow: 0 0 18px rgba(255, 196, 35, 0.08);
}

body.ms-page .guide-content b {
  margin-bottom: 3px;
  color: #fffaf5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

body.ms-page .guide-content p {
  color: rgba(255, 245, 238, 0.55);
  font-size: 10.5px;
  line-height: 1.5;
}

/* ---------------- final CTA ---------------- */

body.ms-page .final {
  padding: 31px 20px 33px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 211, 61, 0.15), transparent 31%),
    radial-gradient(circle at 8% 100%, rgba(255, 47, 101, 0.19), transparent 40%),
    linear-gradient(145deg, #160e16 0%, #2c1320 56%, #551a31 100%);
}

body.ms-page .final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 48px,
    rgba(255, 255, 255, 0.025) 48px 49px
  );
  opacity: 0.55;
  pointer-events: none;
}

body.ms-page .final > * {
  position: relative;
  z-index: 1;
}

body.ms-page .final-kicker {
  margin: 0 0 7px;
  color: #ffe27a;
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

body.ms-page .final h2 {
  margin: 0 0 10px;
  color: #fffaf5;
  font-size: 29px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.045em;
}

body.ms-page .final p {
  max-width: 335px;
  margin: 0 auto 18px;
  color: rgba(255, 247, 240, 0.66);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.55;
}

body.ms-page .final .cta {
  position: relative;
  min-height: 53px;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 203, 0.78);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 48%),
    linear-gradient(135deg, #ffe47a 0%, #ffc62f 58%, #f0a312 100%);
  color: #331700;
  font-size: 13.5px;
  font-weight: 950;
  letter-spacing: 0.07em;
  box-shadow:
    0 14px 30px rgba(255, 176, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body.ms-page .final .cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.55) 50%, transparent 75%);
  transform: translateX(-130%);
  animation: bd-final-shine 4.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bd-final-shine {
  0%,
  58% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

/* ---------------- footer ---------------- */

body.ms-page .page-footer {
  padding: 18px 19px 78px;
  background: #070509;
  color: rgba(255, 245, 238, 0.42);
  font-size: 9.4px;
  line-height: 1.55;
  text-align: left;
}

body.ms-page .page-footer p {
  margin: 0 0 8px;
}

body.ms-page .page-footer p:last-child {
  margin-bottom: 0;
}

body.ms-page .footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 226, 122, 0.78);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.ms-page .footer-brand img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(255, 224, 145, 0.25);
}

body.ms-page .footer-brand span {
  padding: 0 4px;
  opacity: 0.5;
}

body.ms-page .footer-fine {
  color: rgba(255, 245, 238, 0.32);
  font-size: 8.5px;
}

body.ms-page .footer-fine a {
  color: rgba(255, 226, 122, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==================================================================
   OFFER DIALOG
=================================================================== */

body.ms-page .entry-popup-overlay {
  padding: 12px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 207, 80, 0.16), transparent 32%),
    radial-gradient(circle at 50% 63%, rgba(255, 47, 101, 0.2), transparent 43%),
    rgba(7, 4, 8, 0.86);
  backdrop-filter: blur(16px) saturate(1.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.16);
}

body.ms-page .entry-popup-card {
  width: calc(100% - 24px);
  max-width: 360px;
  width: min(100%, 360px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 16px 20px 15px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 28px;
  border: 1px solid rgba(255, 233, 168, 0.22);
  background:
    radial-gradient(circle at 50% 27%, rgba(255, 196, 35, 0.16), transparent 33%),
    radial-gradient(circle at 8% 5%, rgba(255, 47, 101, 0.16), transparent 28%),
    linear-gradient(155deg, rgba(54, 22, 40, 0.98), rgba(19, 13, 21, 0.99));
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 47, 101, 0.2) inset,
    0 0 62px rgba(255, 47, 101, 0.14),
    0 0 28px rgba(255, 211, 61, 0.09);
  scrollbar-width: none;
}

body.ms-page .entry-popup-card::-webkit-scrollbar {
  display: none;
}

body.ms-page .entry-popup-card::before {
  background: linear-gradient(
    135deg,
    rgba(255, 231, 145, 0.75),
    rgba(255, 47, 101, 0.45) 45%,
    rgba(255, 211, 61, 0.55) 75%,
    rgba(255, 122, 151, 0.45)
  );
  animation: bd-border-glow 5s linear infinite;
}

@keyframes bd-border-glow {
  0% {
    filter: hue-rotate(0deg) saturate(1);
  }
  50% {
    filter: hue-rotate(24deg) saturate(1.25);
  }
  100% {
    filter: hue-rotate(0deg) saturate(1);
  }
}

body.ms-page .entry-popup-close {
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(10, 6, 10, 0.5);
  color: rgba(255, 248, 240, 0.76);
  font-size: 24px;
}

body.ms-page .entry-popup-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 6px;
}

body.ms-page .entry-popup-logo img {
  border-radius: 12px;
  object-fit: cover;
  opacity: 1;
  filter: drop-shadow(0 6px 16px rgba(255, 47, 101, 0.3));
  box-shadow:
    0 0 0 1px rgba(255, 224, 145, 0.35),
    0 8px 22px rgba(0, 0, 0, 0.26);
  animation: ms-logo-breathe 4.8s ease-in-out infinite;
}

body.ms-page .entry-popup-kicker {
  margin: 0 0 3px;
  color: #ffe27a;
  font-size: 9.2px;
  font-weight: 900;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 196, 35, 0.3);
}

body.ms-page .entry-popup-badge-ring.is-reward {
  position: relative;
  width: 174px;
  height: 174px;
  margin: 2px auto 0;
  border: 1px solid rgba(255, 225, 130, 0.52);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 207, 72, 0.18) 0%, rgba(255, 47, 101, 0.08) 48%, transparent 71%);
  box-shadow:
    0 0 0 7px rgba(255, 211, 61, 0.035),
    0 0 42px rgba(255, 196, 35, 0.18),
    inset 0 0 38px rgba(255, 196, 35, 0.07);
  animation: bd-medallion-pulse 2.8s ease-in-out infinite;
}

body.ms-page .entry-popup-badge-ring.is-reward::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px dashed rgba(255, 223, 126, 0.4);
  border-radius: 50%;
  animation: bd-orbit 12s linear infinite;
}

body.ms-page .entry-popup-badge-ring.is-reward::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 211, 61, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes bd-medallion-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 7px rgba(255, 211, 61, 0.035),
      0 0 36px rgba(255, 196, 35, 0.14),
      inset 0 0 32px rgba(255, 196, 35, 0.05);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(255, 211, 61, 0.055),
      0 0 58px rgba(255, 196, 35, 0.28),
      inset 0 0 40px rgba(255, 196, 35, 0.11);
  }
}

@keyframes bd-orbit {
  to {
    transform: rotate(360deg);
  }
}

body.ms-page .promo-50 {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.ms-page .promo-50 strong {
  display: block;
  background: linear-gradient(
    180deg,
    #fffbd1 0%,
    #ffe88c 24%,
    #ffd33d 48%,
    #ffb31c 72%,
    #e98a00 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: "Instrument Sans", ui-sans-serif, sans-serif;
  font-size: 61px;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.9;
  filter:
    drop-shadow(0 2px 0 rgba(92, 42, 0, 0.45))
    drop-shadow(0 0 18px rgba(255, 197, 40, 0.55));
  -webkit-text-stroke: 0.5px rgba(255, 250, 207, 0.35);
}

body.ms-page .promo-50 span {
  display: block;
  margin-top: 3px;
  color: #ffe68b;
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-shadow: 0 0 14px rgba(255, 196, 35, 0.5);
}

body.ms-page .promo-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body.ms-page .promo-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff6c5;
  box-shadow:
    0 0 6px #fff3a9,
    0 0 12px rgba(255, 196, 35, 0.8);
  animation: bd-promo-particle 2.8s ease-in-out infinite;
}

body.ms-page .promo-particles span:nth-child(1) { left: 50%; top: -3%; animation-delay: 0s; }
body.ms-page .promo-particles span:nth-child(2) { left: 83%; top: 12%; animation-delay: 0.35s; }
body.ms-page .promo-particles span:nth-child(3) { left: 95%; top: 47%; animation-delay: 0.8s; }
body.ms-page .promo-particles span:nth-child(4) { left: 80%; top: 83%; animation-delay: 1.2s; }
body.ms-page .promo-particles span:nth-child(5) { left: 50%; top: 98%; animation-delay: 1.6s; }
body.ms-page .promo-particles span:nth-child(6) { left: 17%; top: 83%; animation-delay: 0.55s; }
body.ms-page .promo-particles span:nth-child(7) { left: 5%; top: 47%; animation-delay: 1.05s; }
body.ms-page .promo-particles span:nth-child(8) { left: 17%; top: 12%; animation-delay: 1.45s; }
body.ms-page .promo-particles span:nth-child(9) { left: 34%; top: 4%; animation-delay: 0.2s; }
body.ms-page .promo-particles span:nth-child(10) { left: 67%; top: 96%; animation-delay: 0.95s; }
body.ms-page .promo-particles span:nth-child(11) { left: 91%; top: 28%; animation-delay: 1.8s; }
body.ms-page .promo-particles span:nth-child(12) { left: 10%; top: 65%; animation-delay: 2.1s; }

@keyframes bd-promo-particle {
  0%,
  100% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0) scale(0.55);
  }
  45% {
    opacity: 1;
    transform: translate3d(1px, -5px, 0) scale(1.25);
  }
  70% {
    opacity: 0.45;
    transform: translate3d(3px, -8px, 0) scale(0.8);
  }
}

body.ms-page .entry-popup-body {
  gap: 0;
  margin: 5px 0 11px;
}

body.ms-page .entry-popup-title.is-geo {
  max-width: 306px;
  margin: 0 auto 4px;
  color: #fffaf5;
  font-family: "Noto Sans Devanagari", "Instrument Sans", sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

body.ms-page .entry-popup-reward-copy {
  max-width: 295px;
  margin: 0 auto;
  color: #ffdf74;
  font-size: 11.3px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.005em;
  text-wrap: balance;
  text-shadow: 0 0 16px rgba(255, 199, 39, 0.28);
}

body.ms-page .popup-legal {
  margin: 5px auto 0;
  color: rgba(255, 245, 238, 0.4);
  font-size: 8.3px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

body.ms-page .entry-popup-actions {
  gap: 0;
}

body.ms-page .entry-popup-cta {
  min-height: 48px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(135deg, #e81752 0%, #ff466f 52%, #ff7d54 100%);
  font-size: 12.5px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 16px 30px rgba(232, 23, 82, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

body.ms-page .entry-popup-apk-note {
  margin: 8px 0 0;
  color: rgba(255, 245, 238, 0.4);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-align: center;
}

/* ==================================================================
   PRODUCT DETAIL DIALOG
=================================================================== */

body.ms-page .product-modal-overlay {
  z-index: 1350;
  padding: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 47, 101, 0.15), transparent 36%),
    rgba(7, 4, 8, 0.87);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
}

body.ms-page .product-modal {
  position: relative;
  display: flex;
  width: calc(100% - 18px);
  max-width: 392px;
  width: min(100%, 392px);
  max-height: 92vh;
  max-height: min(92dvh, 760px);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 220, 133, 0.25);
  border-radius: 25px;
  background: #151016;
  text-align: left;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.65),
    0 0 50px rgba(255, 47, 101, 0.12);
  animation: bd-modal-in 0.36s var(--bd-ease) both;
}

@keyframes bd-modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.955);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.ms-page .product-modal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 8;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(12, 7, 11, 0.55);
  backdrop-filter: blur(8px);
  color: rgba(255, 250, 246, 0.75);
  font-size: 24px;
  line-height: 1;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

body.ms-page .product-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: scale(1.04);
}

body.ms-page .product-modal-media {
  position: relative;
  display: flex;
  height: 245px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 211, 61, 0.14);
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.7), transparent 45%),
    linear-gradient(155deg, #fbf7f0, #eee5d8);
}

body.ms-page .product-modal-media::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(187, 144, 78, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 26px rgba(187, 144, 78, 0.05),
    0 0 0 58px rgba(187, 144, 78, 0.025);
  pointer-events: none;
  z-index: 0;
}

body.ms-page .product-modal-media::after {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-image: var(--modal-lqip, none);
  background-position: center;
  background-size: cover;
  opacity: 0.22;
  filter: blur(10px) saturate(0.9);
  transform: scale(1.04);
  pointer-events: none;
}

body.ms-page .product-modal-media img {
  position: relative;
  z-index: 2;
  width: auto;
  max-width: 88%;
  height: 218px;
  object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(68, 39, 18, 0.2));
}

body.ms-page .product-modal-discount {
  position: absolute;
  right: 11px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 250, 210, 0.82);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe47a, #ffc62f 65%, #e89a00);
  color: #351700;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(58, 29, 0, 0.2);
}

body.ms-page .product-modal-content {
  overflow-y: auto;
  padding: 15px 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 211, 61, 0.28) transparent;
}

body.ms-page .product-modal-brand {
  margin: 0 0 4px;
  color: rgba(255, 211, 61, 0.74);
  font-size: 8.6px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.ms-page .product-modal-title {
  margin: 0 0 4px;
  color: #fffaf5;
  font-size: 18.5px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

body.ms-page .product-modal-model {
  margin: 0 0 11px;
  color: rgba(255, 245, 238, 0.48);
  font-size: 10.4px;
  font-weight: 550;
  line-height: 1.4;
}

body.ms-page .spec-list {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
}

body.ms-page .spec-list li {
  position: relative;
  padding-left: 12px;
  color: rgba(255, 247, 240, 0.72);
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.4;
}

body.ms-page .spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd33d;
  box-shadow: 0 0 6px rgba(255, 211, 61, 0.45);
}

body.ms-page .download-unlock {
  margin: 0 0 11px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 211, 61, 0.16);
  border-radius: 11px;
  background:
    linear-gradient(100deg, rgba(255, 211, 61, 0.06), rgba(255, 47, 101, 0.035));
}

body.ms-page .download-unlock strong {
  display: block;
  margin-bottom: 3px;
  color: #ffe27a;
  font-size: 11.5px;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

body.ms-page .download-unlock p {
  margin: 0;
  color: rgba(255, 247, 240, 0.57);
  font-size: 9.7px;
  font-weight: 550;
  line-height: 1.45;
}

body.ms-page .modal-download {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 245, 195, 0.78);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 50%),
    linear-gradient(135deg, #ffe47a, #ffc62f 62%, #f0a312);
  color: #321600;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow:
    0 10px 24px rgba(255, 176, 24, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    filter 0.2s ease,
    transform 0.2s ease;
}

body.ms-page .modal-download:hover {
  filter: brightness(1.06);
}

body.ms-page .modal-download:active {
  transform: scale(0.987);
}

body.ms-page .apk-safety-note {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-left: 2px solid rgba(255, 211, 61, 0.48);
  border-radius: 0 7px 7px 0;
  background: rgba(255, 211, 61, 0.035);
  color: rgba(255, 247, 240, 0.47);
  font-size: 9.2px;
  line-height: 1.45;
}

/* ---------------- persistent APK CTA ---------------- */

body.ms-page .apk-fab {
  position: fixed;
  right: max(14px, calc((100vw - 460px) / 2 + 14px));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 900;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(255, 247, 203, 0.8);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 50%),
    linear-gradient(135deg, #ffe47a, #ffc62f 62%, #f0a312);
  color: #321600;
  font-size: 9.5px;
  font-weight: 950;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(255, 196, 35, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.24s ease,
    transform 0.24s var(--bd-ease),
    visibility 0.24s ease;
}

body.ms-page .apk-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

body.ms-page .apk-fab:active {
  transform: scale(0.97);
}

body.ms-page.entry-popup-open .apk-fab,
body.ms-page.modal-open .apk-fab {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------------- toast ---------------- */

body.ms-page .toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 1800;
  width: max-content;
  max-width: min(calc(100vw - 32px), 360px);
  padding: 10px 14px;
  border: 1px solid rgba(255, 224, 129, 0.32);
  border-radius: 11px;
  background: rgba(20, 12, 19, 0.96);
  backdrop-filter: blur(12px);
  color: #fffaf5;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(255, 196, 35, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

body.ms-page .toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ==================================================================
   RESPONSIVE
=================================================================== */

@media (min-width: 760px) {
  body.ms-page {
    padding: 22px;
  }

  body.ms-page .page {
    width: min(100%, 460px);
    min-height: calc(100vh - 44px);
    min-height: calc(100dvh - 44px);
    border-radius: 30px;
    box-shadow:
      0 0 0 1px rgba(255, 223, 145, 0.11),
      0 36px 110px rgba(0, 0, 0, 0.68),
      0 0 80px rgba(255, 47, 101, 0.055);
  }

}

@media (max-width: 430px) {
  body.ms-page .hero {
    padding-inline: 16px;
  }

  body.ms-page .topbar {
    margin-bottom: 70px;
  }

  body.ms-page .brand-subtitle {
    max-width: 154px;
    font-size: 8.7px;
  }

  body.ms-page .deals-section,
  body.ms-page .trust-section {
    padding-inline: 14px;
  }

  body.ms-page .dramas {
    gap: 8px;
  }

  body.ms-page .product-name {
    min-height: 25px;
    font-size: 10.4px;
  }

  body.ms-page .product-card-cta {
    font-size: 7.9px;
    letter-spacing: 0.03em;
  }

  body.ms-page .product-view {
    display: none;
  }

  body.ms-page .product-modal-media {
    height: 232px;
  }

  body.ms-page .product-modal-media img {
    height: 205px;
  }
}

@media (max-width: 375px) {
  body.ms-page .hero {
    padding: 14px 14px 16px;
  }

  body.ms-page .topbar {
    margin-bottom: 67px;
    padding: 8px;
  }

  body.ms-page .mark {
    width: 38px;
    height: 38px;
  }

  body.ms-page .brand-name {
    font-size: 16px;
  }

  body.ms-page .brand-subtitle {
    max-width: 140px;
    font-size: 8.2px;
  }

  body.ms-page .bonus-jackpot {
    min-width: 78px;
    padding: 6px 7px;
    font-size: 9.6px;
  }

  body.ms-page .drama-copy h1,
  body.ms-page .hero-title-shimmer {
    font-size: clamp(28px, 8.6vw, 33px);
  }

  body.ms-page .hero-reward-note {
    font-size: 9.9px;
  }

  body.ms-page .hero-reward-note span {
    font-size: 10.9px;
  }

  body.ms-page .deals-section,
  body.ms-page .trust-section {
    padding-inline: 12px;
  }

  body.ms-page .dramas {
    gap: 7px;
  }

  body.ms-page .product-name {
    min-height: 24px;
    font-size: 10px;
  }

  body.ms-page .product-brand {
    font-size: 7.1px;
  }

  body.ms-page .product-card-cta {
    min-height: 25px;
    font-size: 7.5px;
  }

  body.ms-page .product-modal-title {
    font-size: 17px;
  }

  body.ms-page .spec-list li {
    font-size: 10px;
  }

  body.ms-page .entry-popup-card {
    padding-inline: 16px;
  }
}

@media (max-width: 360px) {
  body.ms-page .hero {
    min-height: 520px;
  }

  body.ms-page .topbar {
    gap: 6px;
  }

  body.ms-page .brand {
    gap: 7px;
  }

  body.ms-page .brand-name {
    font-size: 15px;
  }

  body.ms-page .brand-subtitle {
    max-width: 124px;
    font-size: 7.7px;
  }

  body.ms-page .bonus-jackpot {
    min-width: 72px;
    padding: 5px 6px;
    font-size: 9.1px;
  }

  body.ms-page .drama-copy p {
    font-size: 12.4px;
  }

  body.ms-page .hero-cta {
    min-height: 51px;
    font-size: 13.2px;
  }

  body.ms-page .security-badge {
    font-size: 8.7px;
  }

  body.ms-page .product-name {
    font-size: 9.8px;
  }

  body.ms-page .product-card-cta {
    font-size: 7.2px;
    letter-spacing: 0.02em;
  }

  body.ms-page .entry-popup-overlay {
    padding: 9px;
    padding-top: calc(9px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }

  body.ms-page .entry-popup-card {
    width: 100%;
    padding: 14px 14px 12px;
    border-radius: 24px;
  }

  body.ms-page .entry-popup-logo {
    width: 50px;
    height: 50px;
  }

  body.ms-page .entry-popup-badge-ring.is-reward {
    width: 154px;
    height: 154px;
  }

  body.ms-page .promo-50 strong {
    font-size: 54px;
  }

  body.ms-page .entry-popup-title.is-geo {
    font-size: 15px;
  }

  body.ms-page .entry-popup-reward-copy {
    font-size: 10.6px;
  }

  body.ms-page .entry-popup-cta {
    min-height: 45px;
    font-size: 11.8px;
  }

  body.ms-page .product-modal-overlay {
    padding: 9px;
    padding-top: calc(9px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px));
  }

  body.ms-page .product-modal-media {
    height: 210px;
  }

  body.ms-page .product-modal-media img {
    height: 186px;
  }

}

@media (max-height: 700px) {
  body.ms-page .entry-popup-card {
    padding-top: 12px;
    padding-bottom: 11px;
  }

  body.ms-page .entry-popup-logo {
    width: 46px;
    height: 46px;
    margin-bottom: 2px;
  }

  body.ms-page .entry-popup-badge-ring.is-reward {
    width: 148px;
    height: 148px;
  }

  body.ms-page .promo-50 strong {
    font-size: 52px;
  }

  body.ms-page .entry-popup-title.is-geo {
    font-size: 14.7px;
  }

  body.ms-page .entry-popup-body {
    margin: 3px 0 8px;
  }

  body.ms-page .entry-popup-cta {
    min-height: 44px;
  }

}

/* Original theme hides several decorative layers below 1024px. Restore
   the key gold/rose atmosphere while keeping the product photos crisp. */
@media (max-width: 1024px) {
  body.ms-page .hero-sparkles {
    display: block !important;
  }

  body.ms-page .page-orb-a,
  body.ms-page .page-orb-b {
    display: block !important;
  }

  body.ms-page .hero-bg-scanline {
    display: block !important;
    opacity: 0.1;
  }

  body.ms-page .hero-bg-grain {
    display: block !important;
    opacity: 0.08;
  }

  body.ms-page .mark-orbit,
  body.ms-page .mark-glow {
    display: block !important;
  }

  body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-active {
    animation: bd-hero-kenburns 24s ease-in-out infinite alternate !important;
  }

  body.ms-page .product-cover {
    animation: none !important;
    filter: none !important;
    transition:
      box-shadow 0.3s ease,
      transform 0.35s var(--bd-ease) !important;
  }

  body.ms-page .product-image {
    animation: none !important;
    filter: none !important;
  }
}

/* Short landscape screens: keep the offer, close control and CTA reachable
   without forcing the user to scroll past decorative layers. */
@media (max-height: 430px) {
  body.ms-page .entry-popup-card {
    padding: 10px 12px;
    border-radius: 20px;
  }

  body.ms-page .entry-popup-close {
    top: 4px;
    right: 4px;
  }

  body.ms-page .entry-popup-logo {
    display: none;
  }

  body.ms-page .entry-popup-kicker {
    margin: 0 0 1px;
    font-size: 8px;
  }

  body.ms-page .entry-popup-badge-ring.is-reward {
    width: 104px;
    height: 104px;
    margin: 0 auto;
  }

  body.ms-page .promo-50 {
    padding-top: 17px;
  }

  body.ms-page .promo-50 strong {
    font-size: 38px;
  }

  body.ms-page .promo-50 span {
    font-size: 8px;
    letter-spacing: 0.24em;
  }

  body.ms-page .entry-popup-body {
    margin: 2px 0 6px;
  }

  body.ms-page .entry-popup-title.is-geo {
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.25;
  }

  body.ms-page .entry-popup-reward-copy {
    font-size: 9px;
    line-height: 1.3;
  }

  body.ms-page .popup-legal,
  body.ms-page .entry-popup-apk-note {
    display: none;
  }

  body.ms-page .entry-popup-cta {
    min-height: 44px;
    font-size: 11px;
  }
}

/* 320–359px: two columns keep the product names and CTAs usable. */
@media (max-width: 359px) {
  body.ms-page .dramas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.ms-page .product-name {
    min-height: 28px;
    font-size: 11px;
  }

  body.ms-page .product-brand {
    font-size: 8px;
  }

  body.ms-page .deal-badge {
    font-size: 8.5px;
  }

  body.ms-page .product-card-cta {
    min-height: 28px;
    font-size: 8.2px;
    letter-spacing: 0.025em;
  }

  body.ms-page .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.ms-page .topbar {
    margin-bottom: 60px;
  }

  body.ms-page .deals-section,
  body.ms-page .trust-section {
    padding-left: 13px;
    padding-right: 13px;
  }
}

/* Touch feedback should be immediate and never depend on hover. */
body.ms-page .deal-card,
body.ms-page .hero-cta,
body.ms-page .entry-popup-cta,
body.ms-page .modal-download,
body.ms-page .apk-fab,
body.ms-page .entry-popup-close,
body.ms-page .product-modal-close,
body.ms-page .final .cta {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body.ms-page .product-name,
body.ms-page .product-modal-title,
body.ms-page .product-modal-model {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.ms-page .page-footer {
  padding-bottom: 78px;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

body.ms-page .apk-fab {
  bottom: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

body.ms-page .product-modal-content {
  -webkit-overflow-scrolling: touch;
}

/* Low-RAM / data-saver mode: keep the design, remove the expensive layers. */
html.low-power body.ms-page .page-orb,
html.low-power body.ms-page .hero-bg-grain,
html.low-power body.ms-page .hero-bg-scanline,
html.low-power body.ms-page .hero-sparkles,
html.low-power body.ms-page .mark-orbit,
html.low-power body.ms-page .mark-glow,
html.low-power body.ms-page .hero::after,
html.low-power body.ms-page .entry-popup-aurora,
html.low-power body.ms-page .entry-popup-shine,
html.low-power body.ms-page .promo-particles {
  display: none !important;
}

html.low-power body.ms-page .hero-bg.is-carousel .hero-slide.media-ready.is-active,
html.low-power body.ms-page .mark-live,
html.low-power body.ms-page .mark-media.media-ready,
html.low-power body.ms-page .hero-title-shimmer,
html.low-power body.ms-page .hero-cta,
html.low-power body.ms-page .cta,
html.low-power body.ms-page .entry-popup-cta,
html.low-power body.ms-page .entry-popup-badge-ring,
html.low-power body.ms-page .entry-popup-card::before,
html.low-power body.ms-page .product-cover,
html.low-power body.ms-page .product-image,
html.low-power body.ms-page .deal-card {
  animation: none !important;
}

html.low-power body.ms-page .entry-popup-overlay,
html.low-power body.ms-page .product-modal-overlay,
html.low-power body.ms-page .topbar {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.low-power body.ms-page .entry-popup-overlay,
html.low-power body.ms-page .product-modal-overlay {
  background: rgba(7, 4, 8, 0.96) !important;
}

html.low-power body.ms-page .topbar {
  background: #151016 !important;
}

html.low-power body.ms-page .product-cover,
html.low-power body.ms-page .product-image,
html.low-power body.ms-page .apk-fab,
html.low-power body.ms-page .deal-card {
  transition: none !important;
}

html.low-power body.ms-page .deal-card {
  opacity: 1 !important;
  transform: none !important;
}

html.low-power body.ms-page .hero-bg-media {
  filter: none !important;
}

html.low-power body.ms-page .entry-popup-overlay,
html.low-power body.ms-page .product-modal-overlay {
  backdrop-filter: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body.ms-page *,
  body.ms-page *::before,
  body.ms-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  body.ms-page .deal-card {
    opacity: 1 !important;
    transform: none !important;
  }

  body.ms-page .product-cover,
  body.ms-page .product-image {
    transform: none !important;
  }

  body.ms-page .entry-popup-card,
  body.ms-page .product-modal {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  body.ms-page .entry-popup-overlay.is-open .entry-popup-card {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  body.ms-page .product-view {
    display: none;
  }

  body.ms-page .toast {
    transition-duration: 0.001ms !important;
  }
}
