/* The illustration already has transparent edges. Keep the calendar surface continuous. */
html[data-app-theme="theme-mandarin-time"] #app .card.su-calendar {
  background-image: url("mandarin-calendar-branch.v2.webp"), url("mandarin-calendar-foot.v1.webp"), linear-gradient(155deg,#fffaff,#faf4ff 64%,#fbf4ff) !important;
  background-position: right 4px top, center bottom, center !important;
  background-size: min(57%,278px) auto, 100% auto, cover !important;
  background-repeat: no-repeat !important;
}
html[data-app-theme="theme-mandarin-time"] #app .su-calendar .su-month::after {content:none}
html[data-app-theme="theme-mandarin-time"] #app .su-calendar .su-month {margin-bottom:12px}
#bmodal > div:first-child {box-sizing:border-box;max-height:85dvh !important;overscroll-behavior:contain;padding-bottom:max(26px,env(safe-area-inset-bottom)) !important}
#mslots button.slot {font:inherit;cursor:pointer}

/* The wheel's scaled inner chip paints its own surface. Its larger hit area stays clear. */
html body dialog.bc-studio :is(.bc-section-picker,[data-beauty-view="shop"]) :is(.sd-wheel,.sd-category,.sd-wheel-track,.cst-tabs,[role="tablist"]),
html body dialog.bc-studio .cst-shop .cst-tabs {
  background:transparent !important;
  box-shadow:none !important;
}
.cst-frame-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(min-width:600px){.cst-frame-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.cst-frame-tile {min-width:0;display:grid;grid-template-rows:82px auto auto;align-content:start;justify-items:center;gap:5px;padding:8px 6px 12px;border-radius:15px;border:1px solid var(--vxp-edge,#dfd5e9);background:var(--vxp-surface,#fff);color:var(--vxp-ink,#412c53);font:inherit;cursor:pointer}
.cst-frame-tile strong {font-size:.86rem;line-height:1.25;overflow-wrap:anywhere}
.cst-frame-tile small {font-size:.78rem}
.cst-frame-tile:focus-visible {outline:2px solid var(--vxp-accent,#7941be);outline-offset:2px}
.cst-frame-tile .cst-frame-avatar {width:52px;height:52px;align-self:center;background:transparent !important}
.cst-frame-fitting .cst-frame-holder {height:132px}
.cst-frame-fitting .cst-frame-avatar {width:88px;height:88px}
.cst-card-product {display:grid;grid-template-columns:70px minmax(0,1fr);align-items:center;gap:12px}
.cst-card-product img {width:68px;height:auto;border-radius:7px;grid-row:span 2}
html body :is(#app,dialog) .opal-badge {
  display:inline-grid;position:relative;place-items:center;width:34px;height:32px;min-height:0;
  vertical-align:middle;margin-inline-start:3px;padding:0;border:0;border-radius:8px;
  background:transparent !important;box-shadow:none !important;cursor:pointer;
}
.opal-badge:focus-visible {outline:2px solid currentColor}
.opal-gem {display:block;width:23px;height:26px;border-radius:52%;background:url("/static/vip-cards/vip-imperial-opal-thumb.webp") center 6% / 145% auto no-repeat;transform:rotate(7deg)}
.opal-spark {position:absolute;right:4px;top:14px;font:9px/1 sans-serif;color:#cf8926;pointer-events:none;opacity:0;animation:opal-drift 3.8s linear infinite}
.opal-spark:nth-of-type(2) {animation-delay:-1.3s;top:8px;font-size:6px}
.opal-spark:nth-of-type(3) {animation-delay:-2.6s;top:19px;font-size:7px}
@keyframes opal-drift {0%,100%{opacity:0}22%{opacity:.8}85%{opacity:0;transform:translate(9px,-11px) scale(.6)}}
@media(prefers-reduced-motion:reduce){.opal-spark{animation:none}.opal-spark:first-of-type{opacity:.65}}
.opal-details .bm-body {display:grid;justify-items:center;text-align:center;gap:.65rem}
.opal-details .opal-art {width:min(120px,40vw);height:auto;border-radius:10px}
.opal-details p {margin:0;line-height:1.5}
.opal-controls {display:grid;gap:7px;margin-top:10px}
.opal-controls .cst-status:empty {display:none}
