/* Digital Epitaph — the Crest Studio workshop: the family's crest carved in oak, forged, gilded and lettered while the
   real artwork is being made. Shown full screen over the Tree. */
.ws{position:fixed;inset:0;z-index:2000;display:grid;place-items:center;overflow:hidden;color:#f3e6cc;font-family:Montserrat,Arial,sans-serif;
  background:radial-gradient(70% 60% at 50% 38%,#4a3220 0%,#24170d 55%,#0d0805 100%);opacity:0;transition:opacity .6s}
.ws.on{opacity:1}
.ws::before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(40% 30% at 50% 8%,rgba(255,206,140,.28),transparent 70%),repeating-linear-gradient(90deg,rgba(0,0,0,.12) 0 2px,transparent 2px 140px)}
.ws-glow{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.2s;background:radial-gradient(50% 40% at 50% 100%,rgba(255,110,30,.55),rgba(255,70,10,.18) 45%,transparent 75%)}
.ws.forge .ws-glow{opacity:1;animation:wsFlicker 1.1s ease-in-out infinite alternate}
@keyframes wsFlicker{from{filter:brightness(.85)}to{filter:brightness(1.15)}}
.ws-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.ws-bench{position:relative;display:grid;justify-items:center;gap:14px;width:min(92vw,620px)}
.ws-step{font:600 11px/1 Montserrat,Arial,sans-serif;letter-spacing:.28em;text-transform:uppercase;color:#e7b65a;min-height:1em}
.ws-cap{font:500 clamp(22px,3.4vw,32px)/1.2 "Cormorant Garamond",Georgia,serif;text-align:center;min-height:1.2em;text-shadow:0 2px 12px rgba(0,0,0,.6)}
/* the oak panel on the bench */
.ws-panel{position:relative;width:min(80vw,58vh,520px);aspect-ratio:1;border-radius:14px;overflow:hidden;
  background:
    repeating-linear-gradient(92deg,rgba(255,255,255,.035) 0 3px,transparent 3px 11px),
    repeating-linear-gradient(88deg,rgba(60,30,10,.18) 0 1px,transparent 1px 7px),
    radial-gradient(120% 30% at 30% 40%,rgba(120,70,30,.35),transparent 60%),
    radial-gradient(90% 25% at 70% 75%,rgba(90,50,20,.35),transparent 60%),
    linear-gradient(180deg,#b98a57,#9c6f41 45%,#a97b4a 70%,#8d6239);
  box-shadow:0 30px 60px -20px rgba(0,0,0,.8),inset 0 0 0 10px rgba(70,40,15,.35),inset 0 0 40px rgba(40,20,5,.6)}
.ws-panel::after{content:"";position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 2px 0 rgba(255,235,200,.25),inset 0 -6px 18px rgba(30,15,0,.45)}
.ws-layer{position:absolute;inset:7%;width:86%;height:86%;object-fit:contain;pointer-events:none;opacity:0;transition:opacity 1s}
.ws-chalk{filter:grayscale(1) contrast(3) brightness(1.6);mix-blend-mode:multiply}
.ws-carve{filter:url(#ws-carve);mix-blend-mode:multiply;-webkit-mask-size:100% 100%;mask-size:100% 100%}
.ws-hot{filter:grayscale(1) sepia(1) saturate(6) hue-rotate(-28deg) brightness(1.15) contrast(1.2);mix-blend-mode:screen}
.ws-gold{filter:url(#ws-carve) sepia(1) saturate(2.6) brightness(1.25) hue-rotate(-8deg);mix-blend-mode:hard-light}
.ws-sheen{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(115deg,transparent 35%,rgba(255,236,170,.75) 48%,rgba(255,255,255,.95) 50%,rgba(255,226,140,.6) 53%,transparent 66%);
  background-size:260% 100%;background-position:120% 0;mix-blend-mode:screen}
.ws-sheen.go{opacity:1;animation:wsSheen 1.6s ease-in-out}
@keyframes wsSheen{to{background-position:-60% 0}}
.ws-final{position:absolute;inset:4%;width:92%;height:92%;object-fit:contain;opacity:0;transform:scale(.96);transition:opacity 1.2s,transform 1.2s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 18px 22px rgba(0,0,0,.55))}
.ws-final.on{opacity:1;transform:none}
.ws-tool{position:absolute;left:0;top:0;width:58px;height:58px;pointer-events:none;opacity:0;transition:opacity .4s;filter:drop-shadow(0 6px 6px rgba(0,0,0,.55));z-index:3}
.ws-tool.on{opacity:1}
/* the ribbon, lettered by hand */
.ws-ribbon{position:relative;min-width:min(78vw,420px);padding:10px 46px 12px;text-align:center;color:#1d140c;opacity:0;transform:translateY(8px);transition:opacity .8s,transform .8s;
  background:linear-gradient(180deg,#f4e6c4,#e3cc9a);clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%,6% 50%);box-shadow:0 10px 20px -8px rgba(0,0,0,.6)}
.ws-ribbon.on{opacity:1;transform:none}
.ws-name{font:400 clamp(26px,4vw,38px)/1.05 "UnifrakturMaguntia","Cormorant Garamond",Georgia,serif;min-height:1.05em;white-space:nowrap}
.ws-motto{font:italic 500 15px/1.3 "Cormorant Garamond",Georgia,serif;margin-top:3px;min-height:1.3em;color:#4a3420}
.ws-meter{width:min(70vw,360px);height:3px;border-radius:3px;background:rgba(255,230,180,.15);overflow:hidden}
.ws-meter i{display:block;height:100%;width:0;background:linear-gradient(90deg,#c58b2c,#f6d27a);transition:width .8s}
.ws-acts{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;min-height:44px}
.ws-acts button,.ws-acts a{font:600 14px Montserrat,Arial,sans-serif;letter-spacing:.04em;padding:12px 20px;border-radius:8px;border:1px solid rgba(231,182,90,.6);background:rgba(20,12,6,.5);color:#f3e6cc;cursor:pointer;text-decoration:none}
.ws-acts .gold{background:linear-gradient(180deg,#f2cf77,#c99536);color:#1b1108;border-color:#f2cf77}
.ws-acts button:hover,.ws-acts a:hover{filter:brightness(1.1)}
.ws-note{font-size:12px;color:#c9b38e;text-align:center;max-width:52ch;margin:0;line-height:1.5}
.ws-err{color:#ffb4a0}
@media (prefers-reduced-motion:reduce){.ws.forge .ws-glow{animation:none}.ws-sheen.go{animation:none;opacity:0}}

/* the Studio's form, in the Tree's dialog */
.cs-form .full{grid-column:1/-1}
.cs-left{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#F3EBDA;border:1px solid #E2D2AE;font-size:14px}
.cs-drop{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center;padding:12px;border:1px dashed #cdbb94;border-radius:10px;background:#fffdf8}
.cs-drop img[hidden]{display:none}
.cs-drop input[type=file]{width:100%}
.cs-drop img{width:96px;height:96px;object-fit:contain;background:#f4efe4;border-radius:8px}
#dlgForm .cs-check,.cs-check{display:flex;gap:10px;align-items:flex-start;font-size:14px;margin-top:6px}
#dlgForm .cs-check input,.cs-check input{width:auto;margin-top:3px;flex:0 0 auto}
html[data-theme="night"] .cs-left{background:#2a2316;border-color:#4a3c22;color:#efe3c6}
html[data-theme="night"] .cs-drop{background:#1b1814;border-color:#4a3c22}

/* ---------------------------------------------------------------- the Maker's Shoppe scene (wall, bench, hands) */
.sh{position:relative;overflow:hidden;color:#f3e6cc;font-family:Montserrat,Arial,sans-serif;background:#120a05;isolation:isolate;--pw:min(44vh,70vw,430px)}
.sh-wall{position:absolute;inset:0 0 30% 0;background-size:cover;background-position:center;
  background-color:#3a2414;
  background-image:
    radial-gradient(60% 70% at 50% 30%,rgba(255,196,120,.18),transparent 70%),
    linear-gradient(180deg,transparent 0 9%,rgba(0,0,0,.35) 9% 10.2%,rgba(255,220,170,.06) 10.2% 11%,transparent 11% 88%,rgba(0,0,0,.4) 88% 100%),
    repeating-linear-gradient(90deg,rgba(0,0,0,.32) 0 3px,rgba(255,220,170,.05) 3px 5px,transparent 5px 16.6%),
    repeating-linear-gradient(90deg,rgba(255,255,255,.025) 0 2px,transparent 2px 9px),
    linear-gradient(180deg,#4a2e18,#3a2312 60%,#2b190c)}
.sh-wall::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(120% 90% at 50% 35%,transparent 45%,rgba(8,4,2,.75))}
.sh-hung{position:relative;z-index:1;height:100%;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:clamp(10px,2vw,26px);padding:clamp(56px,7vh,90px) 4% 3%;overflow:hidden}
.sh-frame{position:relative;width:clamp(78px,8.5vw,128px);aspect-ratio:1;padding:6px;border:0;border-radius:4px;cursor:pointer;
  background:linear-gradient(145deg,#f3d58a,#b8862f 35%,#7c5518 60%,#e2bd68);box-shadow:0 10px 18px rgba(0,0,0,.6),inset 0 0 0 2px rgba(60,35,5,.5)}
.sh-frame::before{content:"";position:absolute;left:50%;top:-14px;width:2px;height:14px;background:#2a1a0c;transform:translateX(-50%)}
.sh-frame img{width:100%;height:100%;object-fit:contain;background:radial-gradient(circle,#2b1d12,#140c06);border-radius:2px}
.sh-frame span{position:absolute;left:50%;bottom:-20px;transform:translateX(-50%);white-space:nowrap;font:600 10px/1 Montserrat,Arial,sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#e9cf98;text-shadow:0 1px 4px #000}
.sh-frame:hover{filter:brightness(1.12)}
.sh-lamp{position:absolute;inset:0;pointer-events:none;background:radial-gradient(28% 22% at 50% 70%,rgba(255,190,110,.22),transparent 70%)}
.sh-glow{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.2s;background:radial-gradient(50% 40% at 50% 100%,rgba(255,110,30,.55),rgba(255,70,10,.18) 45%,transparent 75%)}
.sh.forge .sh-glow{opacity:1;animation:wsFlicker 1.1s ease-in-out infinite alternate}
.sh-fx{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}
.sh-bench{position:absolute;left:-2%;right:-2%;bottom:0;height:34%;background-size:cover;background-position:center top;
  background-image:
    linear-gradient(180deg,rgba(255,220,170,.22) 0 2px,transparent 2px),
    linear-gradient(180deg,transparent 0 78%,rgba(0,0,0,.45) 78% 80%,#3b2210 80% 100%),
    repeating-linear-gradient(178deg,rgba(255,255,255,.03) 0 3px,transparent 3px 13px),
    radial-gradient(80% 60% at 50% 20%,rgba(255,200,130,.22),transparent 70%),
    linear-gradient(180deg,#8a5e36,#6e4726 70%,#4f3118);
  box-shadow:0 -20px 40px rgba(0,0,0,.55)}
.sh.art-bench .sh-bench{background-color:transparent}
.sh-work{position:absolute;left:0;right:0;margin-inline:auto;bottom:4%;display:grid;justify-items:center;gap:10px;width:min(94vw,680px)}
.sh .ws-panel{width:var(--pw)}
.sh .ws-cap{min-height:1.2em}
.sh-empty{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:12%;color:#3a2412;font:500 clamp(16px,2.2vw,21px)/1.35 "Cormorant Garamond",Georgia,serif;text-shadow:0 1px 0 rgba(255,236,200,.35)}
.sh-empty[hidden]{display:none}
/* the maker's hands */
.sh-hands{position:absolute;left:0;right:0;bottom:0;height:40%;z-index:2;pointer-events:none}
.sh-hand{position:absolute;bottom:-4%;width:clamp(170px,22vw,300px);transition:transform .8s cubic-bezier(.2,.8,.2,1),opacity .6s}
.sh-hand.l{left:calc(50% - var(--pw) / 2 - clamp(150px,19vw,270px))}
.sh-hand.r{right:calc(50% - var(--pw) / 2 - clamp(150px,19vw,270px))}
.sh-hand-svg{width:100%;height:auto;display:block;filter:drop-shadow(0 14px 14px rgba(0,0,0,.55))}
.sh.working .sh-hand.l{transform:translate(18%,30%);opacity:.0}
.sh.working .sh-hand.r{transform:translate(-6%,-10%) rotate(-6deg)}
.sh-mallet{position:absolute;right:calc(50% - var(--pw) / 2 - clamp(70px,8vw,120px));bottom:30%;width:clamp(70px,8vw,110px);opacity:0;transform-origin:85% 50%;transition:opacity .5s;filter:drop-shadow(0 8px 8px rgba(0,0,0,.6))}
.sh.working .sh-mallet{opacity:1}
.sh.strike .sh-mallet{transform:rotate(-24deg)}
.sh-mallet{transition:opacity .5s,transform .1s}
.sh-hands-img{position:absolute;left:50%;bottom:-2%;width:min(100%,calc(var(--pw) * 2.6));transform:translateX(-50%);transition:opacity .5s}
.sh-hands-img.carve{opacity:0}
.sh.art-hands.working .sh-hands-img.carve{opacity:1}
.sh.art-hands.working .sh-hands-img.rest{opacity:0}
.sh.art-hands .sh-hands-img+.sh-mallet{display:none}
.sh.strike .sh-hands-img.carve{transform:translateX(-50%) translateY(3px)}
.sh .ws-tool{z-index:5}
@media (max-width:700px){.sh{--pw:min(40vh,74vw,360px)}.sh-hand{width:clamp(120px,30vw,180px)}.sh-hand.l{left:calc(50% - var(--pw) / 2 - 110px)}.sh-hand.r{right:calc(50% - var(--pw) / 2 - 110px)}.sh-frame{width:64px}.sh-frame span{display:none}}

/* full screen over the Tree */
.ws-over{position:fixed;inset:0;z-index:2000;opacity:0;transition:opacity .6s}
.ws-over.on{opacity:1}
.ws-over .sh{position:absolute;inset:0}
.ws-close{position:absolute;top:14px;right:16px;z-index:6;width:42px;height:42px;border-radius:50%;border:1px solid rgba(231,182,90,.6);background:rgba(20,12,6,.6);color:#f3e6cc;font-size:22px;cursor:pointer}
.sh.busy .ws-close{display:none}

/* the painted shoppe (img/shop/scene.webp): the whole room is the painting; the panel sits on the empty middle of the table */
.sh.art-scene{background:var(--scene) center 62%/cover no-repeat,#120a05}
.sh.art-scene .sh-wall,.sh.art-scene .sh-bench{display:none}
.sh.art-scene .sh-lamp{background:radial-gradient(30% 24% at 50% 72%,rgba(255,190,110,.18),transparent 70%),linear-gradient(180deg,rgba(10,5,2,.35),transparent 30%,transparent 70%,rgba(10,5,2,.25))}
.sh.art-scene:not(.art-hands) .sh-hand{display:none}
.sh.art-scene .sh-work{bottom:5%}
.sh.art-scene .ws-step,.sh.art-scene .ws-cap{text-shadow:0 2px 10px #000,0 0 24px rgba(0,0,0,.8)}
.sh.art-scene .ws-cap{padding:4px 16px;border-radius:999px;background:rgba(18,10,4,.42);backdrop-filter:blur(2px)}
.sh.art-scene .ws-panel{box-shadow:0 26px 40px -14px rgba(0,0,0,.85),inset 0 0 0 10px rgba(70,40,15,.35),inset 0 0 40px rgba(40,20,5,.6);transform:perspective(1400px) rotateX(4deg);transform-origin:50% 100%}
.sh.art-scene:not(.art-hands) .sh-mallet{display:none}

/* order a crest carved in wood */
.wood-offer{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:start;margin:4px 0 10px}
.wood-pic{aspect-ratio:1;border-radius:10px;padding:10px;background:radial-gradient(circle at 50% 40%,#b98a57,#7a5230);box-shadow:inset 0 0 0 6px rgba(60,35,10,.35)}
.wood-pic img,.wood-pic svg{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 6px 8px rgba(0,0,0,.4))}
.wood-offer h3{margin:0 0 6px;font:600 24px "Cormorant Garamond",Georgia,serif}
.wood-offer p{margin:0 0 8px}
.wood-offer ul{margin:0;padding-left:18px}.wood-offer li{margin:3px 0}
@media (max-width:560px){.wood-offer{grid-template-columns:1fr}.wood-pic{max-width:200px}}
/* the shoppe owner's orders */
.orders{display:grid;gap:14px;max-height:62vh;overflow:auto}
.order{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;padding:12px;border:1px solid #E6E1D8;border-radius:10px}
.order img{width:120px;height:120px;object-fit:contain;background:#f4efe4;border-radius:8px}
.order h3{margin:0 0 6px;font:600 20px "Cormorant Garamond",Georgia,serif}.order h3 small{font:400 12px Montserrat,Arial,sans-serif;color:#7a6e60;margin-left:6px}
.order p{margin:0 0 6px;font-size:14px}
.order-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.order-acts select,.order-acts input{width:auto;min-width:0;padding:7px 10px}
html[data-theme="night"] .order{border-color:#33302b}

.rewards{margin:14px 0 0;padding:12px 14px;border:1px solid #E2D2AE;border-radius:10px;background:#FBF6EA}
.rewards h3{margin:0 0 8px;font:600 18px "Cormorant Garamond",Georgia,serif}.rewards p{margin:0 0 8px;font-size:14px}.rewards code{font-size:15px;letter-spacing:.06em;background:#fff;padding:2px 6px;border-radius:4px}
html[data-theme="night"] .rewards{background:#2a2316;border-color:#4a3c22}

/* the maker's hands (img/shop/hands-rest.webp): resting on the table edge in front of the panel, waiting; while he
   works the right hand strikes and the left steadies the piece */
.sh.art-hands .sh-hands{height:auto;top:auto;bottom:0}
.sh-guild{position:relative;width:max(104vw,calc(var(--pw) * 3.1));margin-left:50%!important;translate:-50% 0;aspect-ratio:1536/726;margin:0 auto -2%;transform:translateY(22%);transition:transform 1.2s cubic-bezier(.2,.8,.2,1)}
.sh-guild .gh{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 -6px 18px rgba(0,0,0,.45)) brightness(.95) sepia(.08);transition:transform .6s cubic-bezier(.2,.8,.2,1)}
.sh-guild .gh.l{clip-path:inset(0 50% 0 0)}
.sh-guild .gh.r{clip-path:inset(0 0 0 50%)}
.sh.art-hands .sh-work{bottom:max(5%,calc(var(--pw) * .32))}
.sh.art-hands.working .sh-guild{transform:translateY(14%)}
.sh.art-hands.working .gh.l{transform:translate(4%,-3%) rotate(2deg)}
.sh.art-hands.working .gh.r{transform:translate(-3%,-5%) rotate(-3deg)}
.sh.art-hands.strike .gh.r{transform:translate(-3%,-1%) rotate(-1deg);transition-duration:.08s}
.sh.art-hands.forge .gh{filter:drop-shadow(0 -6px 18px rgba(0,0,0,.45)) brightness(1.05) sepia(.2) saturate(1.2)}
.sh:not(.art-hands) .sh-guild{display:none}
@media (prefers-reduced-motion:reduce){.sh-guild,.sh-guild .gh{transition:none}}

/* both hands on the board: img/shop/hand-grip.webp (the left hand, mirrored for the right) sits behind the board, and
   img/shop/thumb.webp (the same hand's thumb, painted separately with its shadow) comes over the board's face.
   Both are 1536 × 1024 frames; the board's edge sits in the crook of the hand at 29% across. */
.ws-pw{position:relative;z-index:3;display:grid;place-items:center;--gw:calc(var(--pw) * 2.38)}
.ws-pw .ws-panel{position:relative;z-index:2}
.sh-grip{position:absolute;left:50%;top:50%;width:var(--gw);aspect-ratio:1536/1024;pointer-events:none;opacity:0;
  transform:translate(-50%,-47%) translateY(30%);transition:opacity .6s,transform .9s cubic-bezier(.2,.8,.2,1)}
.sh-grip.back{z-index:1}.sh-grip.front{z-index:3}
.sh-grip .gw{position:absolute;inset:0}
.sh-grip .gw.r{transform:scaleX(-1)}
.sh-grip .g{position:absolute;left:0;top:0;width:100%;height:100%;max-width:none}

.sh-grip.back .g{filter:drop-shadow(0 10px 18px rgba(0,0,0,.45)) brightness(.95) sepia(.08)}
.sh-grip.front .g{filter:brightness(.95) sepia(.08)}
.sh:not(.art-hold) .sh-grip{display:none}
.sh.art-hold.holding .sh-grip{opacity:1;transform:translate(-50%,-47%)}
.sh-guild{transition:transform 1.2s cubic-bezier(.2,.8,.2,1),opacity .5s}
.sh.art-hold.holding .sh-guild{opacity:0;transform:translateY(45%)}
.sh.art-scene.holding .ws-panel{transform:translateY(-3%)}
.sh .ws-panel{transition:transform .9s cubic-bezier(.2,.8,.2,1)}

/* the carving hand (img/shop/hand-chisel.webp): the right hand with the chisel, following the cut; the sleeve continues
   900 px right and down past the painted frame so it runs off the page */
.sh-chisel{position:absolute;left:0;top:0;width:calc(var(--pw) * 2.05);aspect-ratio:1536/1024;z-index:5;pointer-events:none;opacity:0;transition:opacity .4s,transform .07s linear}
.sh-chisel img{position:absolute;left:0;top:0;width:158.6%;height:187.9%;max-width:none;filter:drop-shadow(0 12px 16px rgba(0,0,0,.5)) brightness(.95) sepia(.08);transition:transform .08s}
.sh.art-chisel.carving .sh-chisel,.sh.art-brush.painting .sh-chisel{opacity:1}
.sh.art-chisel.carving .ws-tool{opacity:0!important}
.sh.art-chisel.carving .gh.r{opacity:0}
.sh.art-chisel.strike .sh-chisel img{transform:translate(.6%,1.2%)}
.sh:not(.art-chisel):not(.art-brush) .sh-chisel{display:none}

/* layers: resting hands (2) < the board and its grip (3) < the carving hand (5) < ribbon and buttons (6) < the caption (7) */
.sh-work .ws-step,.sh-work .ws-cap{position:relative;z-index:7}
.sh-work .ws-ribbon,.sh-work .ws-meter,.sh-work .ws-acts{position:relative;z-index:6}

/* the board is brought close to the maker, so his arms run off the edges of the page at their natural length */
/* the board close to the maker, as a carver works: big, low on the bench, barely tilted */
.sh.art-scene{--pw:min(76vh,86vw,820px)}
.sh.art-scene .sh-work{bottom:max(0%,calc(var(--pw) * .04))}
.sh.art-scene .ws-pw{--gw:calc(var(--pw) * 2.38)}
@media (max-width:700px){.sh.art-scene{--pw:min(64vh,94vw,560px)}}

.hall-top .sh.art-scene{--pw:min(46vh,74vw,500px)}
.sh-chisel.framed img{width:100%;height:100%}

/* the blank cut to the shape of the arms: no plank, no square edge; its shadow follows the outline */
.ws-panel.cut{border-radius:0;box-shadow:none;-webkit-mask-size:86% 86%;mask-size:86% 86%;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.sh.art-scene .ws-panel.cut{box-shadow:none}
.ws-panel.cut::after{display:none}
.ws-pw:has(.ws-panel.cut){filter:drop-shadow(0 18px 14px rgba(0,0,0,.6)) drop-shadow(0 2px 2px rgba(40,20,5,.7))}

/* ---- the crest on the bench right under the maker's eyes (the workshop overlay only; the Hall's banner scene keeps its own size) ----
   big, low, its near edge running off the bench; the caption rides over the top of the room, and the ribbon,
   progress and buttons sit over the lower part of the board instead of pushing it up the table */
.ws-over .sh.art-scene{--pw:min(84vh,92vw,980px)}
.ws-over .sh.art-scene .sh-work{bottom:calc(var(--pw) * -.1);gap:0}
.ws-over .sh.art-scene .ws-step{position:absolute;top:calc(var(--pw) * -.02 + 6px);left:0;right:0;text-align:center}
.ws-over .sh.art-scene .ws-cap{position:absolute;top:calc(var(--pw) * -.02 + 24px);left:50%;translate:-50% 0;white-space:nowrap;max-width:94vw;overflow:hidden;text-overflow:ellipsis}
.ws-over .sh.art-scene .ws-ribbon{position:absolute;left:50%;translate:-50% 0;bottom:calc(var(--pw) * .2)}
.ws-over .sh.art-scene .ws-meter{position:absolute;left:50%;translate:-50% 0;bottom:calc(var(--pw) * .135)}
.ws-over .sh.art-scene .ws-acts{position:absolute;left:0;right:0;bottom:calc(var(--pw) * .15)}
.ws-over .sh.art-scene .ws-panel{transform:perspective(1600px) rotateX(2deg)}
@media (max-width:700px){.ws-over .sh.art-scene{--pw:min(76vh,100vw,640px)}.ws-over .sh.art-scene .ws-cap{font-size:20px}}
/* the resting hands steady the board's sides rather than reaching over its top */
.ws-over .sh.art-scene .sh-guild{width:max(100vw,calc(var(--pw) * 2.25));transform:translateY(34%)}
.ws-over .sh.art-scene.art-hands.working .sh-guild{transform:translateY(28%)}
.ws-over .sh.art-scene.art-hold.holding .sh-guild{transform:translateY(60%)}
/* the finish buttons and progress sit at the bottom of the view, below the motto */
.ws-over .sh.art-scene .ws-acts{bottom:calc(var(--pw) * .1 + 14px)}
.ws-over .sh.art-scene .ws-meter{bottom:calc(var(--pw) * .1 + 6px)}

/* ---- true scale: a 20" crest and a craftsman's hands (about 4" across, a fifth of the board's width) ----
   the hands are drawn at that size, set at the board's sides, and their sleeves fade into the bench's shadow */
.ws-over .sh.art-scene .sh-chisel{width:calc(var(--pw) * 1.02)}
.ws-over .sh.art-scene .sh-chisel img{-webkit-mask-image:linear-gradient(135deg,#000 52%,rgba(0,0,0,.6) 66%,transparent 84%);mask-image:linear-gradient(135deg,#000 52%,rgba(0,0,0,.6) 66%,transparent 84%)}
.ws-over .sh.art-scene .sh-guild{width:calc(var(--pw) * 1.02);transform:translateY(12%)}
.ws-over .sh.art-scene.art-hands.working .sh-guild{transform:translateY(8%)}
.ws-over .sh.art-scene .sh-guild .gh.l{translate:calc(var(--pw) * -.3) 0;-webkit-mask-image:linear-gradient(to top right,transparent 6%,#000 38%);mask-image:linear-gradient(to top right,transparent 6%,#000 38%)}
.ws-over .sh.art-scene .sh-guild .gh.r{translate:calc(var(--pw) * .3) 0;-webkit-mask-image:linear-gradient(to top left,transparent 6%,#000 38%);mask-image:linear-gradient(to top left,transparent 6%,#000 38%)}
.ws-over .sh.art-scene .ws-pw{--gw:calc(var(--pw) * 1.19)}
.ws-over .sh.art-scene .sh-grip .gw.l{translate:calc(var(--pw) * -.25) 0}
.ws-over .sh.art-scene .sh-grip .gw.r{translate:calc(var(--pw) * .25) 0}
.ws-over .sh.art-scene .sh-grip .g{-webkit-mask-image:linear-gradient(to right,transparent 2%,#000 24%);mask-image:linear-gradient(to right,transparent 2%,#000 24%)}
/* the glasses gag: his two hands come up from the bench into view, at true scale */
.sh-gag{position:absolute;left:50%;bottom:0;width:calc(var(--pw) * 1.25);aspect-ratio:1536/1024;translate:-50% 12%;z-index:8;pointer-events:none;opacity:0;transform:translateY(18%);transition:opacity .45s,transform .6s cubic-bezier(.2,.8,.2,1)}
.sh-gag img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 18px 24px rgba(0,0,0,.55)) brightness(.95) sepia(.06);-webkit-mask-image:linear-gradient(to top,transparent 2%,#000 22%);mask-image:linear-gradient(to top,transparent 2%,#000 22%)}
.sh.gag .sh-gag{opacity:1;transform:none}
.sh:not(.art-glasses) .sh-gag{display:none}
.sh.gag .sh-guild{opacity:0;transition:opacity .4s}
/* ---- the carving block: the crest stands in its slot on the bench while it's made ---- */
.ws-block{position:absolute;left:50%;bottom:calc(var(--pw) * -.03);width:calc(var(--pw) * .78);height:calc(var(--pw) * .19);translate:-50% 0;z-index:1;pointer-events:none;opacity:0;transition:opacity .6s,transform .9s cubic-bezier(.2,.8,.2,1);filter:drop-shadow(0 18px 18px rgba(0,0,0,.7))}
.ws-block svg{width:100%;height:100%;display:block}
.sh.blocked .ws-block{opacity:1}
.sh.holding .ws-block{opacity:1;transform:translateY(4%)}
.ws-over .sh.art-scene .sh-work{bottom:calc(var(--pw) * .06)}
.ws-over .sh.art-scene .ws-panel{transform:perspective(1600px) rotateX(1deg) translateY(0)}
.ws-over .sh.art-scene .ws-ribbon{bottom:calc(var(--pw) * .2)}
.ws-over .sh.art-scene .ws-meter{bottom:calc(var(--pw) * -.05)}
.ws-over .sh.art-scene .ws-acts{bottom:calc(var(--pw) * -.04)}
.ws-block.front{z-index:4;clip-path:inset(31% 0 0 0);filter:none}   /* the front of the block over the crest's foot: it stands in the slot */

/* ---- oak, not steel: no glints. The burn scorches the carving's edges and shadows (pyrography), the colours go on as paint and stain ---- */
.ws-hot{filter:grayscale(1) contrast(3.2) brightness(1.08) sepia(1) saturate(1.7) hue-rotate(-16deg) brightness(.8);mix-blend-mode:multiply;-webkit-mask-size:100% 100%;mask-size:100% 100%}
.ws-gold{filter:saturate(1.15) sepia(.12);mix-blend-mode:color}   /* the arms' colours soak into the burned oak like stain */
.ws-sheen{display:none}
.ws-torch{position:absolute;inset:0;pointer-events:none;opacity:0;z-index:2;mix-blend-mode:screen;transition:opacity .4s,transform .12s linear;
  background:radial-gradient(circle at 50% 50%,rgba(255,196,110,.75) 0,rgba(255,140,40,.4) 5%,rgba(255,110,20,.16) 11%,transparent 18%)}
.ws-torch.on{opacity:1;animation:wsTorch .18s steps(2) infinite alternate}
@keyframes wsTorch{from{filter:brightness(.9)}to{filter:brightness(1.2)}}
.sh.burning .sh-glow{opacity:1;animation:wsFlicker 1.1s ease-in-out infinite alternate}
.sh.art-hands.burning .gh{filter:drop-shadow(0 -6px 18px rgba(0,0,0,.45)) brightness(1.03) sepia(.18) saturate(1.15)}
@media (prefers-reduced-motion:reduce){.ws-torch.on{animation:none}}
/* one right hand: while it holds the chisel or the brush it isn't also resting on the bench */
.sh-guild .gh{transition:transform .6s cubic-bezier(.2,.8,.2,1),opacity .35s}
.sh.art-chisel.carving .sh-guild .gh.r,.sh.art-brush.painting .sh-guild .gh.r{opacity:0}
/* the glasses going back on: right up at his eyes, so the frame fills the view */
.sh-gag.close{width:max(108vw,calc(var(--pw) * 2));bottom:-6%;translate:-50% 4%}
.sh-gag.close img{-webkit-mask-image:none;mask-image:none}

/* ---- the shield blank: one oak shield for every family, the arms set within its field ---- */
.ws-panel.shield{border-radius:0;box-shadow:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.ws-panel.shield::after{display:none}
.sh.art-scene .ws-panel.shield{box-shadow:none}
.ws-pw:has(.ws-panel.shield){filter:drop-shadow(0 18px 14px rgba(0,0,0,.6)) drop-shadow(0 2px 2px rgba(40,20,5,.7))}
.ws-rim{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
/* the field inside the shield: wide at the top, narrowing toward the point, so the arms sit high and centred */
.ws-panel.shield .ws-layer,.ws-panel.shield .ws-final{inset:auto;left:13%;top:8%;width:74%;height:74%;object-fit:contain}
