/* Ain Muslimah | Emerald Atelier V3
   Miniature phone catalogue, readable branch actions, richer moving pen-and-ink art. */

/* Important fix: the Gong Badak button inherited a PALE background from
   homepage-polish.css while inheriting a LIGHT foreground from dark-editorial.css. */
html.ams-curated :is(#promo,#services) .ams-wa-choices .ams-branch-wa {
  background:#174a39!important;
  border:1px solid #c4a86f!important;
  color:#fff1d7!important;
  -webkit-text-fill-color:#fff1d7!important;
  text-shadow:none!important;
  opacity:1!important;
}
html.ams-curated :is(#promo,#services) .ams-wa-choices .ams-branch-wa:last-child {
  background:linear-gradient(120deg,#c9a160,#efcd8e)!important;
  border-color:#f7dcaa!important;
  color:#092a20!important;
  -webkit-text-fill-color:#092a20!important;
  font-weight:900!important;
  text-shadow:none!important;
}
html.ams-curated :is(#promo,#services) .ams-wa-choices .ams-branch-wa:last-child:hover {
  background:linear-gradient(120deg,#e8c37c,#f5dfab)!important;
  color:#092a20!important;
  -webkit-text-fill-color:#092a20!important;
}
html.ams-curated :is(#promo,#services) .ams-wa-choices .ams-branch-wa:focus-visible {
  outline:2px solid #fff0bb!important;
  outline-offset:3px;
}

/* A denser, animated engraved botanical textile behind the existing art. */
html.ams-curated .ams-lux-scene::before,
html.ams-curated .ams-lux-scene::after {
  content:"";
  position:absolute;
  inset:-20%;
  pointer-events:none;
}
html.ams-curated .ams-lux-scene::before {
  opacity:.29;
  background:
    repeating-radial-gradient(ellipse at 38% 45%,transparent 0,transparent 87px,#d9bd7b30 89px,transparent 91px),
    repeating-radial-gradient(ellipse at 68% 68%,transparent 0,transparent 127px,#a7d2af2d 129px,transparent 131px);
  mask-image:linear-gradient(120deg,transparent,black 14%,black 86%,transparent);
  animation:amsEtchedOrbit 58s ease-in-out infinite alternate;
}
html.ams-curated .ams-lux-scene::after {
  opacity:.35;
  background:
    radial-gradient(circle,#f2d792cf 0 1.5px,transparent 2.5px),
    radial-gradient(circle,#bde0baab 0 1px,transparent 2px),
    repeating-linear-gradient(47deg,transparent 0 170px,#f6d99b23 171px,transparent 173px);
  background-size:160px 174px,223px 205px,100% 100%;
  background-position:17px 23px,113px 89px,center;
  animation:amsStardustWander 32s ease-in-out infinite alternate;
}
html.ams-curated .ams-lux-scene:not(.ams-lux-visible)::before,
html.ams-curated .ams-lux-scene:not(.ams-lux-visible)::after {
  animation-play-state:paused!important;
}
@keyframes amsEtchedOrbit {
  from {transform:translate3d(-18px,9px,0) rotate(-4deg) scale(.98)}
  to {transform:translate3d(19px,-16px,0) rotate(5deg) scale(1.04)}
}
@keyframes amsStardustWander {
  from {transform:translate3d(-18px,19px,0);opacity:.19}
  to {transform:translate3d(30px,-20px,0);opacity:.43}
}

/* One more flourish fills the middle ground between corner illustrations. */
.ams-lux-scene .ams-cinema-ink-c {
  top:28%;left:26%;
  width:clamp(300px,42vw,610px);
  opacity:.22;
  --ams-ink-angle:7deg;
  animation-duration:34s;
  animation-delay:-19s;
}
.ams-lux-scene .ams-cinema-glyph {
  position:absolute;
  top:var(--ams-glyph-y);
  left:var(--ams-glyph-x);
  font:normal var(--ams-glyph-size,29px)/1 Georgia,serif;
  color:#f0d69c;
  text-shadow:0 0 19px #e6c4777d;
  opacity:.3;
  pointer-events:none;
  animation:amsGildedGlyph var(--ams-glyph-time,13s) ease-in-out infinite alternate;
  animation-delay:var(--ams-glyph-delay,-3s);
}
@keyframes amsGildedGlyph {
  0% {transform:translate3d(-9px,13px,0) rotate(-14deg) scale(.7);opacity:.14}
  50% {opacity:.55}
  100% {transform:translate3d(18px,-28px,0) rotate(23deg) scale(1.2);opacity:.2}
}
.ams-lux-scene:not(.ams-lux-visible) .ams-cinema-glyph {animation-play-state:paused!important}

/* Extra lively trim: price tags and chapter dividers glow, gently. */
html.ams-curated #promo .promo-prices span {
  position:relative;
  border-right:1px solid #c5a56934;
  box-shadow:inset 0 0 14px #d2b7790c;
}
html.ams-curated #services .service-card:hover .service-image img {
  filter:saturate(1.13) brightness(1.05);
}
html.ams-curated .ams-scroll-progress {
  height:4px;
  background:linear-gradient(90deg,#ba9258,#f5dcaa,#53ae84,#f5dcaa)!important;
  box-shadow:0 2px 14px #d5ac6a9c;
}

/* Super compact mobile catalogue, with all prices and branch CTAs accessible. */
@media(max-width:600px) {
  html.ams-curated :is(#promo,#services) {
    padding:36px 10px 43px!important;
  }
  html.ams-curated :is(#promo,#services) .section-heading {margin-bottom:12px!important}
  html.ams-curated #promo .promo-live-grid,
  html.ams-curated #services .service-grid {
    max-width:500px!important;
    gap:8px!important;
    margin-top:12px!important;
  }
  html.ams-curated #promo .promo-live-card,
  html.ams-curated #services .service-card {
    border-radius:12px!important;
    box-shadow:0 9px 24px #0005,0 0 0 1px #d4ac6852!important;
  }
  html.ams-curated #promo .promo-art {padding:4px!important}
  html.ams-curated #promo .promo-art img {
    height:100px!important;
    max-height:100px!important;
  }
  html.ams-curated #promo .promo-feature .promo-art img {
    height:138px!important;
    max-height:138px!important;
  }
  html.ams-curated #promo .promo-ribbon {
    font-size:7px!important;
    top:4px!important;left:4px!important;
    padding:4px 5px!important;
  }
  html.ams-curated #promo .promo-art::after {
    padding:4px 6px;
    font-size:8px;
    bottom:3px;
  }
  html.ams-curated #promo .promo-copy,
  html.ams-curated #promo .promo-feature .promo-copy {
    padding:8px 9px 10px!important;
  }
  html.ams-curated #promo .promo-eyebrow {font-size:8px!important}
  html.ams-curated #promo .promo-copy h3 {
    font-size:clamp(15px,4vw,18px)!important;
    line-height:1.13!important;
    margin:4px 0 5px!important;
  }
  html.ams-curated #promo .promo-copy>p:not(.promo-deadline):not(.promo-note) {
    display:none!important;
  }
  html.ams-curated #promo .promo-note {
    display:-webkit-box!important;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:9px!important;
    line-height:1.35!important;
    margin:2px 0!important;
  }
  html.ams-curated #promo .promo-prices {gap:3px!important;margin:3px 0 5px!important}
  html.ams-curated #promo .promo-prices span {padding:4px 5px!important;border-radius:6px!important}
  html.ams-curated #promo .promo-prices b {
    font-size:11px!important;
    line-height:1.2!important;
  }
  html.ams-curated #promo .promo-feature .promo-prices small {display:none!important}
  html.ams-curated #promo .promo-highlight {padding:6px!important;gap:4px!important}
  html.ams-curated #promo .promo-highlight b {font-size:18px!important}
  html.ams-curated #promo .promo-deadline {font-size:9px!important;margin:4px 0!important}
  html.ams-curated #promo .ams-wa-choices {gap:4px!important;margin-top:6px!important}
  html.ams-curated #promo .ams-branch-wa {
    min-height:36px!important;
    border-radius:8px!important;
    font-size:11px!important;
    padding:7px 5px!important;
    line-height:1.24!important;
  }
  html.ams-curated #promo .promo-book {
    border-radius:8px!important;
    padding:7px 5px!important;
    font-size:10px!important;
  }
  html.ams-curated #services .service-image {
    height:107px!important;
  }
  html.ams-curated #services .service-content {padding:8px 9px 9px!important}
  html.ams-curated #services .service-category {
    font-size:8px!important;
    letter-spacing:0!important;
    padding:3px 6px!important;
  }
  html.ams-curated #services .service-content h3 {
    font-size:clamp(15px,3.7vw,17px)!important;
    line-height:1.13!important;
    margin:5px 0 3px!important;
  }
  html.ams-curated #services .service-content p {
    display:none!important; /* Full details remain in the poster & details dialog. */
  }
  html.ams-curated #services .service-content strong {
    margin:4px 0 6px!important;
    font-size:14px!important;
  }
  html.ams-curated #services .service-actions {gap:4px!important}
  html.ams-curated #services .service-actions :is(a,button) {
    font-size:11px!important;
    border-radius:7px!important;
    line-height:1.2!important;
    padding:7px 5px!important;
    min-height:33px!important;
  }
  html.ams-curated #services .ams-wa-choices {gap:4px!important;margin-top:5px!important}
  html.ams-curated #services .ams-branch-wa {
    min-height:35px!important;
    font-size:11px!important;
    border-radius:7px!important;
    padding:7px 4px!important;
  }
  html.ams-curated #services .ams-manicure-badge {font-size:8px!important}
  .ams-lux-scene .ams-cinema-ink-c {left:16%;top:38%;width:76vw;opacity:.16}
  html.ams-curated .ams-lux-scene::before {opacity:.23}
  html.ams-curated .ams-lux-scene::after {opacity:.25}
  .ams-lux-scene .ams-cinema-firefly {display:none!important}
  .ams-lux-scene :is(.ams-cinema-firefly-0,.ams-cinema-firefly-1,.ams-cinema-firefly-2) {display:block!important}
  .ams-lux-scene .ams-cinema-glyph {opacity:.22}
}

/* Preserve legibility on very narrow phones despite the tiny cards. */
@media(max-width:355px) {
  html.ams-curated #promo .promo-art img,
  html.ams-curated #promo .promo-feature .promo-art img {height:122px!important;max-height:122px!important}
  html.ams-curated #services .service-image {min-height:120px!important;height:100%!important}
  html.ams-curated #services .service-content p {display:none!important}
}

@media(prefers-reduced-motion:reduce) {
  html.ams-curated .ams-lux-scene::before,
  html.ams-curated .ams-lux-scene::after,
  .ams-lux-scene .ams-cinema-glyph {animation:none!important}
}
