/* Local preview only: ?heroGlass=sculpted. No geometry or global component changes. */
#editor[data-hero-glass="sculpted"] .hp-button {
  --glass-rim:.38;
  background:linear-gradient(115deg,rgba(4,10,16,.82),rgba(29,42,54,.68) 58%,rgba(56,67,76,.52)),#0a121bcc;
  border-color:rgba(158,176,191,.35);
  box-shadow:inset 0 1px 1px rgba(245,249,255,.24),inset 2px 0 3px rgba(0,0,0,.55),inset -2px -2px 3px rgba(210,226,238,.13),inset 0 -5px 8px rgba(0,0,0,.28),0 2px 4px rgba(0,0,0,.24);
}
#editor[data-hero-glass="sculpted"] .hp-button-secondary {
  --glass-rim:.24;
  background:linear-gradient(115deg,rgba(3,8,13,.88),rgba(22,33,43,.76) 58%,rgba(39,50,60,.6)),#081019cc;
  border-color:rgba(142,161,178,.28);
}
/* Fixed sculpted rim: brighter opposite lips with dark shoulders between them. */
@supports ((mask-composite:exclude) or (-webkit-mask-composite:xor)) {
  #editor[data-hero-glass="sculpted"] .hp-button::after {
    content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;pointer-events:none;
    background:conic-gradient(from 0deg,rgba(247,251,255,.75),rgba(204,221,233,.1) 65deg,rgba(0,0,0,.85) 95deg,rgba(230,240,248,.35) 145deg,rgba(249,252,255,.85) 180deg,rgba(196,215,231,.08) 240deg,rgba(0,0,0,.95) 275deg,rgba(236,246,255,.55) 330deg,rgba(247,251,255,.75));
    -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;mask-composite:exclude;opacity:var(--glass-rim);
  }
  /* Reuse the existing event-driven reflection; a narrow ring suggests local refraction. */
  #editor[data-hero-glass="sculpted"] .hp-button::before {
    inset:0;padding:2px;
    background:radial-gradient(36px circle at var(--cta-pointer-x,50%) var(--cta-pointer-y,50%),rgba(255,255,255,.95),rgba(214,232,246,.45) 38%,transparent 78%);
  }
}
@media(hover:hover) and (pointer:fine) {
  #editor[data-hero-glass="sculpted"] .hp-button:hover {background-color:#1b2934;border-color:rgba(158,176,191,.35);}
  #editor[data-hero-glass="sculpted"] .hp-button-secondary:hover {background-color:#14202a;border-color:rgba(142,161,178,.28);}
}
#editor[data-hero-glass="sculpted"] .hp-button:active {background-color:#070e16;}
@media(prefers-reduced-motion:reduce) {
  #editor[data-hero-glass="sculpted"] .hp-button::before {display:none;}
}

/* Pencil hover does not depend on the primary touch pointer. */
#editor[data-hero-glass="sculpted"] .hp-button[data-plm-pen-hover] {background-color:#1b2934;border-color:rgba(158,176,191,.35);}
#editor[data-hero-glass="sculpted"] .hp-button-secondary[data-plm-pen-hover] {background-color:#14202a;border-color:rgba(142,161,178,.28);}
