body[data-screen=shop] #sceneLabel{inset:3% 2% 3% 2%;display:block;pointer-events:none}
body[data-screen=shop] #sceneLabel .shop-filters{position:absolute;bottom:0;left:50%;transform:translateX(-50%);pointer-events:auto}
.smith-shelf{position:absolute;right:0;top:0;width:64%;height:80%;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:5px;color:#f6e1b4;pointer-events:auto}
.smith-goods{display:grid;grid-template:repeat(3,minmax(0,1fr))/repeat(2,minmax(0,1fr));gap:5px}
.smith-item{display:grid;grid-template-columns:33% minmax(0,1fr);align-items:center;overflow:hidden;border:1px solid #98733f;background:linear-gradient(110deg,#17100ee8,#1d1511e3);padding:4px;gap:4px;text-shadow:0 1px #000}
.smith-item img{width:100%;height:100%;min-height:0;object-fit:contain}.smith-item strong,.smith-item small{display:block}.smith-item strong{font:600 clamp(11px,1vw,16px)/1.08 Georgia,serif}.smith-item small{color:#e6bb71;margin:3px 0}
.smith-item button,.smith-shelf nav button{padding:3px 5px;font:inherit;font-size:clamp(9px,.78vw,13px);min-width:0}.smith-item div div{display:flex;gap:3px;flex-wrap:wrap}
.smith-shelf nav{display:flex;align-items:center;gap:8px;justify-content:flex-end;background:#170f0bd9;padding:2px 6px}.smith-balances{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-inline-end:auto}
.smith-balance{display:inline-flex;align-items:center;gap:.32em;white-space:nowrap;border:1px solid #846435;background:linear-gradient(#332a20,#1c1712);padding:.24em .45em;line-height:1.2;font-size:clamp(10px,1vw,15px);color:#ffe1a6;font-variant-numeric:tabular-nums}
.smith-balance small{font:inherit;color:#d3be94}
.smith-coin{flex:none;display:inline-grid;place-items:center;vertical-align:middle;width:1.36em;height:1.36em;box-sizing:border-box;line-height:1;font-family:Georgia,serif;font-weight:bold;font-style:normal;letter-spacing:0}
.smith-coin img{display:block;width:100%;height:100%;object-fit:contain}
.smith-cost .smith-coin{margin-inline-end:.35em}

.smith-item.crimson,.bag-cell.crimson,.rank.crimson{border:2px solid #d92e77;box-shadow:inset 0 0 8px #a4184c75}.rank.crimson{color:#ff99be}
.smith-dialog{position:fixed;max-width:min(95vw,760px);max-height:90vh;overflow:auto;padding:24px;border:2px solid #886530;color:#331c10;background:radial-gradient(ellipse at center,#f4e3bc,#d4b783 78%,#ab8750);box-shadow:0 12px 50px #000a}.smith-dialog::backdrop{background:#0f0a08a8;backdrop-filter:blur(3px)}.smith-dialog [data-smith-close]{float:right}
.smith-scroll{display:grid;grid-template-columns:minmax(120px,42%) 1fr;gap:20px;align-items:center;clear:both}.smith-scroll figure{margin:0}.smith-scroll img{width:100%;border:2px solid #80603a}.smith-scroll dl{display:grid;grid-template-columns:1fr auto;gap:6px}.smith-scroll dd{margin:0;text-align:right}
.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.trade-columns section>label{display:block}.trade-columns input{width:8em}.trade-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px}.trade-slot{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;background:#211b17;color:#e1c598;border:1px solid #967446}.trade-slot img{width:100%;height:100%;object-fit:contain}.trade-slot select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.trade-slot:focus-within{outline:2px solid #e7b65c}.trade-slot small{position:absolute;bottom:0;left:0;right:0;font-size:9px;background:#111a}.smith-dialog footer{display:flex;gap:6px;margin-top:12px}
@media(max-width:740px){body[data-screen=shop] #sceneLabel{inset:1% 2% 6px}.smith-shelf{width:74%;height:calc(100% - 155px)}.smith-item{grid-template-columns:26% minmax(0,1fr)}.smith-item small{margin:0}.smith-scroll{gap:8px}.trade-columns{gap:5px}}
.smith-choice{display:inline-grid;grid-template-columns:54px 1fr;align-items:center;gap:8px;margin:3px}.smith-choice img{width:54px;height:54px;object-fit:contain}

/* The illustrated item page shares the forge dialog, but has its own paper and ink. */
dialog.smith-folio{
  box-sizing:border-box;width:min(720px,calc(100vw - 20px));max-width:none;
  max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;
  border:1px solid #856136;background:#e9cca0;color:#351e14;text-shadow:none;
  font:16px/1.35 Georgia,"Times New Roman",serif;box-shadow:0 16px 70px #080502cc;
}
.smith-folio .folio-sheet{
  position:relative;box-sizing:border-box;padding:30px 38px 30px;isolation:isolate;
  background:#ebcea1 url("/art/folio/vellum.webp") center/100% 100% no-repeat;
}
.smith-folio [data-smith-close]{
  position:absolute;right:13px;top:12px;z-index:2;float:none;display:grid;place-items:center;
  width:31px;height:31px;min-width:0;padding:0;border:1px solid #997440;border-radius:50%;
  color:#4c2b17;background:#f6e2b9;box-shadow:0 1px 4px #50331955;font:21px/1 Georgia,serif;text-shadow:none;
}
.smith-folio button:focus-visible{outline:3px solid #295571;outline-offset:2px}
.smith-folio .folio-heading{text-align:center;padding:0 22px}
.smith-folio .folio-heading h2{
  margin:0;color:#3e1c12;text-shadow:none;font:700 clamp(22px,3.2vw,30px)/1.1 Georgia,"Times New Roman",serif;
  letter-spacing:-.035em;text-wrap:balance;overflow-wrap:anywhere;
}
.smith-folio .folio-heading p{margin:5px 0 0;color:#54351e;font:italic 15px/1.35 Georgia,serif}
.folio-heading p span{display:inline-block;margin:0 .35em;font:9px Georgia,serif;color:#906c39;vertical-align:middle}
.smith-folio .folio-body{
  display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:start;
  gap:20px;margin:14px 0 10px;padding:15px 0;border-block:3px double #977647;
}
.smith-folio figure{position:relative;isolation:isolate;display:grid;place-items:center;min-width:0;min-height:245px;align-self:center;margin:0}
.smith-folio figure img{display:block;width:100%;max-height:320px;aspect-ratio:1;object-fit:contain;border:0}
.smith-folio .folio-facts{display:grid;align-content:start;gap:8px;min-width:0}
.smith-folio .folio-block,.smith-folio .folio-set{
  padding:10px 12px;border:1px solid #a38352;
  background:linear-gradient(110deg,#fff3d67a,#ebcd971a);box-shadow:inset 0 0 9px #ae885432;
}
.smith-folio h3{margin:0 0 5px;color:#502917;font:700 20px/1.15 Georgia,serif;text-shadow:none}
.smith-folio dl{margin:0;color:#352014}
.smith-folio dl div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:4px 0}
.smith-folio dl div+div{border-top:1px dotted #987a5399}
.smith-folio dt{font-size:15px;line-height:1.2;overflow-wrap:anywhere}
.smith-folio dd{margin:0;color:#402311;font-weight:bold;font-variant-numeric:tabular-nums}
.smith-folio .folio-set strong{color:#4e3523;font-size:15px}
.smith-folio .folio-set p{margin:3px 0 0;color:#442d1d;font-size:14px}
.smith-folio .folio-purchase{display:flex;align-items:center;justify-content:center;gap:28px}
.smith-folio .folio-purchase small{display:block;color:#68452b;font-size:13px}
.smith-folio .folio-purchase strong{display:block;color:#3a2014;font-size:21px}
.smith-folio .folio-purchase button{
  padding:8px 24px;border:3px double #bd965e;background:linear-gradient(#65412b,#422719);
  color:#fff0d1;font:700 16px Georgia,serif;text-shadow:none;
}
.smith-folio button:not(:disabled):hover{filter:brightness(1.12)}
.smith-folio .folio-purchase button:disabled{color:#d1c2ab;background:#5b5145;cursor:not-allowed}
@media(max-width:540px){
  .smith-folio .folio-sheet{padding:34px 22px 25px}
  .smith-folio .folio-body{gap:10px;grid-template-columns:minmax(0,2fr) minmax(0,3fr)}
  .smith-folio figure{min-height:170px}.smith-folio .folio-heading{padding:0 5px}
  .smith-folio .folio-block,.smith-folio .folio-set{padding:8px}.smith-folio h3{font-size:17px}
}
@media(max-width:430px){
  .smith-folio .folio-body{grid-template-columns:1fr;margin-top:12px}
  .smith-folio figure{min-height:0}.smith-folio figure img{height:142px}
}

.smith-shelf{grid-template-rows:auto minmax(0,1fr) auto}.smith-toolbar{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;background:#211a13ee;padding:.2rem .45rem}.smith-sort{display:flex;align-items:center;gap:.36rem;color:#f4d9ab;font:600 clamp(11px,.95vw,15px) Georgia,serif}.smith-sort select{max-width:100%;font:inherit;background:#25211b;color:#ffe6bd;border:1px solid #8b734f;padding:.14rem .3rem}.smith-toolbar output,.folio-purchase output{font:500 13px Georgia,serif}.folio-purchase output:empty{display:none}
@media(max-width:740px){body[data-screen=shop] .scene{min-height:570px}.smith-shelf{width:min(98%,620px);height:calc(100% - 165px)}.smith-toolbar output{font-size:11px}}

.smith-catalog{position:absolute;margin:0;right:calc(64% + 5px);top:0;width:13.2%;height:80%;box-sizing:border-box;display:block;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;pointer-events:auto;text-align:left;background:#201a15ed;border:1px solid #89693e;scrollbar-color:#a57b47 #241c16;scrollbar-width:thin}
.smith-catalog button{display:block;width:100%;min-width:0;box-sizing:border-box;border:0;border-bottom:1px solid #695236;padding:.52em .48em;text-align:left;background:transparent;color:#efd9b0;font:600 clamp(12px,1vw,16px)/1.2 Georgia,serif;cursor:pointer;white-space:normal}
.smith-catalog .smith-branch{background:#31261ccc}.smith-branch::before{content:'▸';display:inline-block;width:1em;color:#d7ad69}.smith-branch[aria-expanded=true]::before{content:'▾'}
.smith-types[hidden]{display:none}.smith-types button{padding-left:1.35em;font-weight:400}
.smith-catalog button:hover,.smith-catalog button:focus-visible{background:#493626}.smith-catalog button[aria-pressed=true]{background:#4b3722;color:#ffe3a7;box-shadow:inset 3px 0 #d0a35b}
@media(max-width:740px){
  .smith-catalog{left:0;right:auto;width:clamp(92px,25%,145px);height:calc(100% - 165px)}
  .smith-shelf{width:calc(100% - clamp(92px,25%,145px) - 5px)}
  .smith-goods{overflow-y:auto;grid-template:repeat(3,minmax(78px,1fr))/repeat(2,minmax(0,1fr))}
  .smith-shelf nav{flex-wrap:wrap;gap:3px}
}
@media(max-width:510px){.smith-goods{grid-template:repeat(6,minmax(78px,1fr))/1fr}.smith-catalog button{font-size:12px}.smith-types button{padding-left:1em}}

.city-smith-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.6rem}
.city-smith-header img{width:68px;height:68px;object-fit:contain;background:#201913;border:1px solid #8f7448}
.city-smith-header h2{margin:0}
.city-smith-header p{margin:.3rem 0 .8rem;color:#dfc68e}
dialog.smith-dialog > p,
dialog.smith-dialog > .smith-service-row span{
  color:#2d1b10;text-shadow:none;
}
.smith-service-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.45rem;padding:.4rem 0;border-bottom:1px solid #8f744854}
.smith-dialog [data-smith-temper]{display:grid;gap:.55rem}
.smith-dialog [data-smith-temper] label{display:grid;gap:.3rem;min-width:0}
.smith-dialog [data-smith-temper] select{max-width:100%}
.smith-scroll :is([data-sell-scroll],[data-trade-scroll]) label{color:#f1dfbc;text-shadow:none}
.smith-gemmed-art{position:relative;display:inline-grid;place-items:center;width:100%;height:100%;min-width:0;min-height:0}
.gear-icon-tile > .smith-gemmed-art{overflow:hidden}
.gear-icon-tile > .smith-gemmed-art > img{
  position:absolute;inset:0;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain;
}
.smith-gemmed-art > .smith-socket-icons{
  position:absolute;bottom:2px;left:2px;right:2px;display:flex;gap:2px;z-index:2;pointer-events:none;
}
.smith-socket-icons img.smith-gem{
  flex:0 1 28px;display:block;width:28px;max-width:calc((100% - 4px)/3);min-width:0;
  height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 0 3px #000);
}
.jewel-bag-cell{position:relative;display:grid;place-items:center}
.jewel-bag-cell img{width:100%;height:100%;object-fit:contain}
.jewel-bag-cell small{position:absolute;bottom:0;right:1px;background:#15110de8;color:#ffe4a6;padding:1px 2px;font:9px/1.05 system-ui;letter-spacing:0}
.jewel-bag-cell .jewel-artifact{font-size:clamp(6px,.66vw,9px);color:#ffd886}
.jewel-scroll{font-size:1.5em}
.jewel-actions{display:flex;flex-wrap:wrap;gap:.45rem}
.smith-dialog [data-smith-gem-service]{display:grid;gap:.45rem;color:#2d1b10;text-shadow:none}
.smith-dialog [data-smith-gem-service] label{display:grid;gap:.25rem}
.smith-dialog [data-smith-gem-service] select{min-width:0;max-width:100%}
.jeweler-dialog{width:min(92vw,760px)}
.jeweler-portrait{min-height:clamp(230px,56vw,405px);display:flex;align-items:end;justify-content:end;padding:clamp(10px,3vw,24px);background:#20150f url('/art/jeweler-workshop.webp') center/cover;color:#ffe5b4}
.jeweler-portrait > div{max-width:290px;background:#1b130ee8;padding:1rem;border:1px solid #906c43}
.jeweler-portrait h2,.jeweler-portrait p{color:#ffe5b4;margin:0 0 .55rem}
.jeweler-check h2,.jeweler-check label,.jeweler-check small,.jeweler-check li{color:#2d1b10;text-shadow:none}
.jewel-clean-list{margin:.5rem 0;padding:0;list-style:none}
.jewel-clean-list li{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:.5rem;padding:.3rem 0;border-bottom:1px solid #947753}
.jewel-clean-list img{width:48px;height:48px;object-fit:contain;background:#28231d}
.jewel-quantity-controls,.jewel-clean-footer{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}
.jewel-quantity{white-space:nowrap}
.jewel-quantity input{width:4.9rem}
.jeweler-dialog > [data-smith-status]:empty{display:none}
.jeweler-check button{margin:.25rem}
@media(max-width:520px){.jewel-clean-list li{grid-template-columns:42px minmax(0,1fr)}.jewel-clean-list img{width:38px;height:38px;grid-row:span 2}.jewel-quantity-controls{grid-column:2}}


/* The workbench sits over the anvil area of the forge scene. */
body[data-screen=shop] #sceneLabel .smith-bench{
  position:absolute;left:9.8%;top:76%;z-index:1;isolation:isolate;
  display:grid;place-items:center;width:clamp(68px,11vw,154px);min-width:0;aspect-ratio:1;
  transform:translate(-50%,-50%);padding:0;border:0;border-radius:50%;
  background:none;box-shadow:none;pointer-events:auto;cursor:pointer;
}
.smith-bench::before{
  content:"";position:absolute;z-index:-1;inset:-18%;pointer-events:none;
  background:radial-gradient(ellipse, #ffbe6588 0%, #f98b3e55 29%, #cf480a26 49%, transparent 71%);
  opacity:.58;transform:scale(.84);transition:opacity .22s ease,transform .22s ease;
}
.smith-bench img{
  display:block;width:92%;height:92%;object-fit:contain;pointer-events:none;
  filter:drop-shadow(0 0 6px #f29a4a88) drop-shadow(0 5px 5px #090501);
  transition:filter .22s ease,transform .22s ease;
}
.smith-bench:is(:hover,:focus-visible)::before{opacity:1;transform:scale(1.14)}
.smith-bench:is(:hover,:focus-visible) img{
  transform:scale(1.06);filter:brightness(1.22) drop-shadow(0 0 12px #ffb060cc) drop-shadow(0 0 23px #f87b388f);
}
.smith-bench:focus-visible{outline:2px solid #f4c884;outline-offset:2px}
@media(max-width:740px){
  .smith-catalog{height:calc(100% - 235px)}
  body[data-screen=shop] #sceneLabel .smith-bench{
    left:calc(clamp(92px,25%,145px)/2);top:auto;bottom:165px;
    width:68px;transform:translateX(-50%);
  }
}
@media(prefers-reduced-motion:reduce){
  .smith-bench::before,.smith-bench img{transition:none}
}

.smith-dialog [data-smith-gem-service] .smith-gear-empty{
  color:#2d1b10;text-shadow:none;margin:.3rem 0;
}
.smith-gear-picker{border:0;min-width:0;margin:0;padding:0}
.smith-gear-picker legend{font-weight:bold;padding:0 0 .35rem}
.smith-gear-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:.4rem;
  max-height:min(330px,42vh);overflow:auto;padding:3px;
}
.smith-dialog .smith-gear-option{
  position:relative;display:grid;grid-template-rows:64px auto;justify-items:center;gap:.3rem;
  min-width:0;padding:.35rem .15rem;border:1px solid #8e7250;
  background:#272119;color:#f1dfbc;cursor:pointer;line-height:1.15;
}
.smith-gear-option .gear-icon-tile{width:64px;height:64px}
.smith-gear-option .gear-icon-tile > img{width:100%;height:100%;object-fit:contain}
.smith-dialog .smith-gear-option[aria-pressed=true]{outline:2px solid #774811;outline-offset:1px;background:#50351c}
.smith-dialog .smith-gear-option:focus-visible{outline:2px solid #255d82;outline-offset:1px}
.smith-gear-state,.smith-gear-slots{font:12px/1.1 system-ui,sans-serif}
.smith-gear-state b{color:#a6e5a5}
.smith-gear-slots{position:absolute;top:3px;right:3px;padding:2px 3px;background:#160f0be8;border-radius:2px}

.smith-stone-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
.smith-dialog [data-smith-gem-service] .smith-stone-option{
  position:relative;display:grid;justify-items:center;align-content:start;gap:.3rem;
  min-width:0;padding:.45rem .2rem;border:1px solid #8e7250;
  background:#272119;color:#f1dfbc;text-align:center;cursor:pointer;
}
.smith-stone-option img{display:block;width:47px;height:47px;object-fit:contain}
.smith-stone-option input{position:absolute;inline-size:1px;block-size:1px;opacity:0}
.smith-dialog [data-smith-gem-service] .smith-stone-option:has(input:checked){outline:2px solid #774811;outline-offset:1px;background:#50351c}
.smith-dialog [data-smith-gem-service] .smith-stone-option:focus-within{outline:2px solid #255d82;outline-offset:1px}

.inventory-heading [data-inventory-exit]{padding:.45rem .8rem;font-size:15px;line-height:1.2}
.inventory-artifact-detail{display:flex;align-items:flex-start;gap:.85rem;padding:.6rem;color:inherit}
.inventory-artifact-detail > img{flex:none;width:clamp(44px,6vw,82px);height:auto;object-fit:contain}
.inventory-artifact-detail h3,.inventory-artifact-detail p{margin:.14rem 0}
.inventory-artifact-detail small{color:#c3a263}
.inventory-artifact-detail .jewel-actions{margin-top:.55rem}
.smith-dialog .inventory-artifact-detail,.smith-dialog [data-jewel-trade]{color:#2d1b10}
.smith-dialog [data-jewel-trade] p{color:#2d1b10}

.jewel-extra-bonuses{margin-top:.5rem}
.jewel-extra-bonuses small{display:block;margin:.12rem 0 .25rem;letter-spacing:normal}
.jewel-extra-bonuses ul{margin:0;padding-inline-start:1.15em}
.smith-dialog .jewel-extra-bonuses small{color:#60401e}

dialog.jewel-exchange-dialog{
  --banknote-ink:#352417;
  --banknote-line:#7b522e;
  position:fixed;isolation:isolate;width:min(680px,calc(100% - 24px));
  padding:clamp(23px,4vw,39px);
  border:1px solid var(--banknote-line);border-radius:2px;
  color:var(--banknote-ink);
  background:radial-gradient(ellipse at 43% 33%,#f7eccf 10%,#efddaf 70%,#d8b783);
  box-shadow:0 14px 52px #000b;
}
dialog.jewel-exchange-dialog::before{
  --engraving:repeating-radial-gradient(ellipse closest-side,#75492100 0 2px,#8a5d3d9e 2.3px 2.9px,#75492100 3.2px 4.3px);
  --rosette:repeating-radial-gradient(ellipse closest-side,#80543400 0 1.3px,#724827b8 1.6px 2.1px,#80543400 2.4px 3px);
  content:"";position:absolute;z-index:-1;inset:5px;
  border:3px double #99704c;pointer-events:none;
  background:
    var(--rosette) left top/24px 19px no-repeat,
    var(--rosette) right top/24px 19px no-repeat,
    var(--rosette) left bottom/24px 19px no-repeat,
    var(--rosette) right bottom/24px 19px no-repeat,
    var(--engraving) center -2px/34px 13px repeat-x,
    var(--engraving) center bottom/34px 13px repeat-x,
    var(--engraving) left center/13px 34px repeat-y,
    var(--engraving) right center/13px 34px repeat-y;
}
dialog.jewel-exchange-dialog > h2{
  color:var(--banknote-ink);text-shadow:none;margin:0 2.1rem .65rem 0;
}
dialog.jewel-exchange-dialog .inventory-artifact-detail,
dialog.jewel-exchange-dialog .inventory-artifact-detail :is(h3,p,b,li),
dialog.jewel-exchange-dialog [data-jewel-trade] :is(label,p){
  color:var(--banknote-ink);text-shadow:none;
}
dialog.jewel-exchange-dialog .inventory-artifact-detail small{color:#513518;text-shadow:none}
dialog.jewel-exchange-dialog [data-jewel-trade]{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.55rem;margin-top:.65rem;
}
dialog.jewel-exchange-dialog [data-jewel-trade] label{display:grid;gap:.2rem;min-width:0;font-weight:bold}
dialog.jewel-exchange-dialog [data-jewel-trade] input{
  display:block;width:100%;padding:.42rem .5rem;border:1px solid #87643f;
  background:#fff6df;color:var(--banknote-ink);font:inherit;font-weight:normal;
}
dialog.jewel-exchange-dialog [data-jewel-trade] [role=status]{grid-column:1/-1;margin:0}
dialog.jewel-exchange-dialog [data-jewel-trade] [role=status]:empty{display:none}
dialog.jewel-exchange-dialog :focus-visible{outline:2px solid #5d482a;outline-offset:2px}
@media(max-width:490px){
  dialog.jewel-exchange-dialog [data-jewel-trade]{grid-template-columns:minmax(0,1fr)}
  dialog.jewel-exchange-dialog [data-jewel-trade] button{justify-self:start}
}

dialog.smith-inlay-dialog{
  width:min(430px,calc(100% - 24px));padding:clamp(20px,5vw,34px);text-align:center;
  border:1px solid #a77b4e;color:#f5e6c8;background:radial-gradient(ellipse at 50% 45%,#362a24,#181412 72%);
  box-shadow:0 16px 56px #000c;
}
dialog.smith-inlay-dialog h2{color:#f4d6a1;margin:0 0 .5rem}
dialog.smith-inlay-dialog > p{color:#ffe8bf;margin:.65rem 0}
.smith-inlay-stone{
  position:relative;isolation:isolate;display:grid;place-items:center;
  width:min(176px,52vw);aspect-ratio:1;margin:.9rem auto;
}
.smith-inlay-stone::before{
  content:"";position:absolute;z-index:-1;inset:-13%;border-radius:50%;
  background:radial-gradient(ellipse,var(--stone-light) 0%,transparent 68%);
  opacity:.26;filter:blur(16px);pointer-events:none;
}
.smith-inlay-stone .smith-gem{
  width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 18px var(--stone-light));
}
.smith-inlay-dialog.is-working .smith-inlay-stone{animation:smith-inlay-shake 4s ease-in-out both}
.smith-inlay-aura{
  --crest:var(--stone-light);
  position:absolute;z-index:-1;width:155%;height:155%;inset:-30% -27.5% auto;
  pointer-events:none;mix-blend-mode:screen;opacity:.92;
}
.smith-inlay-dialog.is-working .smith-inlay-aura{animation:smith-inlay-light 4s ease-in both}
.smith-inlay-check{
  position:absolute;right:-.12em;bottom:-.12em;color:#c2fc75;
  font:900 3.3rem/.95 system-ui,sans-serif;transform:rotate(-12deg);
  text-shadow:.024em .024em 0 #6f9f44;filter:drop-shadow(0 0 5px #b7fa6c42);
}
@supports(background-clip:text){
  .smith-inlay-check{
    color:transparent;text-shadow:none;
    background:repeating-radial-gradient(ellipse at 26% 43%,#a6e85b 0 .6px,#cef994 1px 2px,#94c55a 2.1px 2.4px);
    background-clip:text;
    filter:drop-shadow(1px 1px 0 #5f8739) drop-shadow(0 0 6px #c8ff804a);
  }
}
@keyframes smith-inlay-shake{
  0%,100%{transform:translate(0,0) rotate(0)}
  8%,28%,48%,68%,88%{transform:translate(-3px,1px) rotate(-3deg)}
  18%,38%,58%,78%,96%{transform:translate(3px,-1px) rotate(3deg)}
}
@keyframes smith-inlay-light{
  from{opacity:.14;transform:scale(.60)}
  to{opacity:.90;transform:scale(1.13)}
}
@media(prefers-reduced-motion:reduce){
  @keyframes smith-inlay-shake{from,to{transform:none}}
  .smith-inlay-dialog.is-working .smith-inlay-aura{animation:none}
}
dialog.smith-dialog .smith-gear-picker legend{color:#2d1b10;text-shadow:none}
