/* Each highlight is a second impression of the *same* alpha artwork. The
   changing masks only REMOVE ink; they cannot draw onto the bare binding. */
.sb-sale-fx-binding{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.sb-sale-fx-binding-sheen,.sb-sale-fx-binding-flare{position:absolute;display:block;pointer-events:none;background:url('../design/v4/pattern/lacquer.webp') 0 0 / 512px 512px repeat;opacity:0}
.sb-sale-fx-binding-sheen{inset:0;mask-image:linear-gradient(113deg,transparent calc(var(--sb-sale-sheen-x) - 27%),#000 var(--sb-sale-sheen-x),transparent calc(var(--sb-sale-sheen-x) + 27%));filter:sepia(.18) saturate(.86)}
.sb-sale-fx-binding-flare{mask-image:radial-gradient(closest-side,#000,rgba(0,0,0,.67) 42%,transparent)}
.sb-sale-fx-foil{position:absolute;inset:calc(-1 * var(--edge));border:var(--edge) solid transparent;border-image:url('../design/v3/art/lace.png') 256 / var(--edge) / 0 round;pointer-events:none;z-index:1;opacity:0;filter:brightness(1.65) saturate(.75)}
.sb-sale-fx-foil-sheen{mask-image:linear-gradient(112deg,transparent calc(var(--sb-sale-foil-x,0%) - 12%),#000 var(--sb-sale-foil-x,0%),transparent calc(var(--sb-sale-foil-x,0%) + 12%))}
#sb-sale-scene>.sb-sale-fx-picture-glass{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none;opacity:0;background:linear-gradient(115deg,transparent calc(var(--sb-sale-glass-x,0%) - 14%),#fff0d6 var(--sb-sale-glass-x,0%),transparent calc(var(--sb-sale-glass-x,0%) + 14%))}
#sb-sale-scene>.sb-sale-fx-reveal-ray{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none}
#sb-sale-debug{max-width:100%;max-height:40dvh;overflow:auto;z-index:12}
#sb-sale-debug details button{font:13px/1.4 Georgia,serif;padding:5px 9px}
.sb-sale-last-enamel{pointer-events:none;position:absolute;inset:0;margin:auto;max-width:100%;height:99%;opacity:.19;filter:sepia(.6);z-index:-1}
/* Torus-made alpha plate and its wrapped high-pass linework. The radial
   aperture stays outside both masks: even the halo only lights motif ink. */
.sb-sale-fx-binding{z-index:0;contain:strict}
#sb-sale-table{position:relative;z-index:1}
.sb-sale-fx-binding-sheen,.sb-sale-fx-binding-flare{background:none;filter:none}
.sb-sale-fx-binding-sheen{mask:none;background:linear-gradient(114deg,#efb892 8%,#fae3b4 30%,#d89393 46%,#fbd37e 64%,#dec68b 81%);background-size:235% 100%;background-position:var(--sb-sale-sheen-x) 50%;mask:url('../design/v4/pattern/lacquer.webp') 0 0/512px 512px repeat}
.sb-sale-fx-binding-flare::before,.sb-sale-fx-binding-flare::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#db974b,#fff1bd 45%,#e1ab53);mask:url('../design/v4/pattern/high-pass.png') var(--sb-sale-ink-x) var(--sb-sale-ink-y)/512px 512px repeat luminance}
.sb-sale-fx-binding-flare::before{mask-image:url('../design/v4/pattern/lacquer.webp');mask-mode:alpha;opacity:.64}
#sb-sale-year #sb-sale-frame{--edge:clamp(3px,min(2.3cqw,1.1cqh),13px);background-color:#411b21;background-image:linear-gradient(135deg,#57212aaf,#301526de);border-color:transparent}
#sb-sale-frame .sb-sale-fx-corner{position:absolute;width:calc(var(--edge)*2.1);height:calc(var(--edge)*2.1);pointer-events:none;z-index:2;background:url('../assets/ornament/gold-corner.webp') center/contain no-repeat;left:calc(var(--edge)*-.97);top:calc(var(--edge)*-.97)}
#sb-sale-frame .sb-sale-fx-corner:nth-last-child(3){right:calc(var(--edge)*-.97);left:auto;transform:scaleX(-1)}
#sb-sale-frame .sb-sale-fx-corner:nth-last-child(2){top:auto;bottom:calc(var(--edge)*-.97);transform:scaleY(-1)}
#sb-sale-frame .sb-sale-fx-corner:last-child{right:calc(var(--edge)*-.97);left:auto;top:auto;bottom:calc(var(--edge)*-.97);transform:scale(-1)}
#sb-sale-year #sb-sale-frame:before{top:calc(-1.15*var(--edge));width:calc(2.8*var(--edge));height:calc(1.65*var(--edge))}
#sb-sale-year #sb-sale-mat:before,#sb-sale-year #sb-sale-frame:before{transform:translateX(-50%) rotate(var(--sb-sale-crest-angle,0deg));opacity:var(--sb-sale-crest-opacity,1)}
.sb-sale-fx-foil{filter:brightness(2.5) saturate(.75)}
.sb-sale-fx-foil-intro{display:none;filter:none;opacity:1}
#sb-sale-gallery #sb-sale-mat.sb-sale-fx-tracing,#sb-sale-frame.sb-sale-fx-tracing{border-image-source:none}
.sb-sale-fx-tracing>.sb-sale-fx-foil-intro{display:block}
.sb-sale-fx-tracing>.sb-sale-fx-foil:not(.sb-sale-fx-foil-intro){visibility:hidden}
#sb-sale-yr,.sb-sale-actions button,#sb-sale-toolbar button{position:relative}
.sb-sale-fx-rim{position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;padding:1.5px;background:linear-gradient(118deg,transparent calc(var(--sb-sale-foil-x,20%) - 20%),#ffe7a2 var(--sb-sale-foil-x,20%),transparent calc(var(--sb-sale-foil-x,20%) + 18%));mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;opacity:.78}
.sb-sale-fx-rule{padding:1px 0;border-radius:0}
/* Freeze the expensive filtered artwork into its own compositing layer;
   only the opacity of the short-lived gold impression needs to change. */
.sb-sale-fx-binding-flare{will-change:opacity}
.sb-sale-fx-binding-sheen{background-position:8% 50%;will-change:opacity}
.sb-sale-fx-rose{background-position:92% 50%}
