/* Both sheets use the approved detail dialog's actual gilded silhouette and button artwork. */
#path-map.stone-dialog, #stake-bag.stone-dialog {
  width:min(94vw,57dvh,520px); max-height:94dvh; overflow:hidden; border:0;
  box-shadow:none;background:transparent;filter:drop-shadow(0 10px 22px #000a);
}
#stake-bag .stone-sheet, #path-map .stone-sheet {
  isolation:isolate;position:relative;box-sizing:border-box;max-height:94dvh;padding:0 5.7cqw 10.8cqw;
  background:transparent;filter:none;
}
#stake-bag .stone-sheet {height:min(152cqw,88dvh);box-sizing:border-box}
#stake-bag .stone-sheet:has(.blank-list) {height:min(126cqw,84dvh)}
#stake-bag .stone-sheet:before,#path-map .stone-sheet:before {
  content:"";position:absolute;inset:1% .65% 1.3%;z-index:-2;pointer-events:none;
  background:#111c16 url("../v6/silk.webp");border-radius:10% 11% 7% 8% / 7% 6% 5% 5%;
}
#stake-bag .stone-sheet:after,#path-map .stone-sheet:after {
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  border-style:solid;border-color:transparent;border-width:20.85cqw 1.55cqw 10.8cqw;
  border-image-source:url("../v6/detail.webp");border-image-slice:174 13 90 13;border-image-repeat:stretch;
}
#stake-bag .stone-sheet>header,#path-map .stone-sheet>.atlas-head {
  position:relative;flex:none;height:19.6cqw;margin:0 -5.7cqw;text-align:center;padding:0;background:transparent;border:0;
}
#path-map .stone-sheet>.atlas-head {height:24.5cqw}
#stake-bag .stone-sheet:before {background-image:url("bag-silk.webp")}
#stake-bag .stone-sheet:after {border-image-source:url("bag-frame.webp");border-image-slice:220 18 88 18;border-width:20.87cqw 1.71cqw 8.35cqw}
#stake-bag .stone-sheet>header:after,#path-map .atlas-head:after {
  display:none;
}
#bag-title,#path-map .atlas-head h2 {position:absolute;display:grid;place-items:center;left:24%;width:52%;top:4.15cqw;height:10.4cqw;margin:0;background:#101b17 url("../v6/silk.webp");mask-image:linear-gradient(90deg,transparent,#000 9%,#000 91%,transparent);font:600 clamp(24px,7.4cqw,39px)/1.2 KaiTi,STKaiti,var(--serif);letter-spacing:.08em;color:#edcb89;text-shadow:0 2px 4px #000a}
#path-map #atlas-account {position:absolute;left:4%;right:4%;bottom:0;margin:0;text-align:center;font:clamp(11px,3.15cqw,16px)/1.5 var(--serif);color:#e0cfaa}
#stake-bag .close,#path-map .close {z-index:2;right:4.2%;top:5%;transform:none;width:max(44px,12cqw);height:max(44px,15cqw);background:transparent;border:0;border-radius:50%;font-size:0;color:transparent}
#stake-bag #bag-title {background:none;color:transparent;text-shadow:none;mask-image:none}
#stake-bag .close {right:3.2%;top:3.5cqw}
#stake-bag .stone-sheet>header {height:20cqw}
#stake-bag .bag-tabs {gap:2cqw;padding:3.3cqw 0 1.2cqw}
#stake-bag .bag-tabs button,#atlas-tabs button {
  background:#111c17cc;border:1px solid #8b734452; border-radius:2px;
  height:clamp(34px,8.4cqw,43px); padding:0 2cqw;color:#cfbe99;
}
#stake-bag .bag-tabs button {flex:1;font-size:clamp(13px,3.9cqw,19px)}
#stake-bag .bag-tabs button[aria-pressed=true],#atlas-tabs button[aria-pressed=true] {border-color:#b28a4e;background:linear-gradient(120deg,#554323e8,#332d1cdb);color:#ffe3a9;box-shadow:inset 0 0 0 2px #211f179c}
#atlas-tabs button[aria-pressed=true]::after {display:none}
#atlas-tabs {padding:2.3cqw 0;gap:1.2cqw}
#stake-bag .bag-search {position:relative;padding:1.5cqw 0 2.8cqw}
#stake-bag .bag-search:before {content:"";position:absolute;left:3cqw;top:50%;margin-top:-2.25cqw;width:2.8cqw;height:2.8cqw;border:1.5px solid #d7b571;border-radius:50%;pointer-events:none}
#stake-bag .bag-search:after {content:"";position:absolute;left:5.8cqw;top:50%;width:1.65cqw;height:1.5px;background:#d7b571;transform-origin:left;transform:rotate(48deg);pointer-events:none}
#stake-bag .bag-search input {font:clamp(12px,3.65cqw,17px) var(--serif);padding:2.1cqw 3cqw 2.1cqw 9cqw;border:1px solid #9a8353;background:#0a1511d9}
#bag-filter::placeholder {color:#c9bea4;opacity:1}
#bag-all {min-width:12cqw;min-height:36px;font-size:clamp(12px,3.4cqw,17px);color:#ebc887}
#stake-bag #bag-list {flex:1 1 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2.4cqw;align-content:start;padding:0 1cqw 1.6cqw 0;min-height:0;max-height:none;scrollbar-color:#947744 #16201a;scrollbar-width:thin}
#bag-list:has(.blank-list){align-content:center!important}
#bag-list .blank-list,#bag-more {grid-column:1/-1;text-align:center;padding:4cqw 0}
#bag-list .blank-list {font:clamp(14px,3.8cqw,18px)/1.6 KaiTi,STKaiti,var(--serif);color:#e4d6b0;min-height:36cqw;margin:0;display:grid;place-content:center;justify-items:center;gap:1.6cqw}
#bag-list .blank-list:before {content:"";width:12cqw;height:12cqw;background:url("../v9/seal-1.webp") center/contain no-repeat;filter:saturate(.66);opacity:.85}
#stake-bag #bag-list .blank-list:before {width:16cqw;height:16cqw;background-image:url("bag-lotus.webp");border-radius:50%;filter:none;opacity:1}
#stake-bag .bag-card {position:relative;display:grid;grid-template-rows:auto auto;gap:0;min-width:0;width:100%;padding:.7cqw;background:linear-gradient(130deg,#353025,#101914 65%);border:1px solid #7e6948;color:#eee0be;box-shadow:inset 0 0 0 1px #141812;text-align:left}
#stake-bag .bag-card img {width:100%;height:23cqw;object-fit:cover;object-position:center 21%;border:0}
#stake-bag .bag-copy {position:relative;display:block;background:linear-gradient(115deg,#1c261d,#151b16);padding:1.3cqw 1.75cqw 1.6cqw;min-width:0}
#stake-bag .bag-copy b {font:600 clamp(13px,3.8cqw,19px)/1.4 KaiTi,STKaiti,var(--serif);color:#f2dbac;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
#stake-bag .bag-copy small,#stake-bag .bag-copy em {font:clamp(11px,2.9cqw,15px)/1.55 var(--serif);color:#cfc2a4;display:inline-block;margin:0 .9cqw 0 0}
#stake-bag .bag-copy em {color:#efc780}
#stake-bag .bag-copy em:before {content:"｜";color:#8c7a53}
#stake-bag .bag-card i {position:absolute;right:1.5cqw;top:1.5cqw;width:clamp(20px,5.8cqw,28px);height:clamp(20px,5.8cqw,28px);border:1px solid #dec997;border-radius:50%;background:#112018c9;color:transparent}
#stake-bag .bag-card[aria-pressed=true] {border-color:#edc879;box-shadow:inset 0 0 0 1px #deb674}
#stake-bag .bag-card[aria-pressed=true] i {color:#392710;background:linear-gradient(140deg,#ffe5a5,#b98b42);box-shadow:0 0 0 2px #41341e}
#stake-bag .stone-sheet footer,#path-map .stone-sheet footer {padding:2.1cqw 1cqw 1.5cqw;margin-top:1.5cqw;border-top:1px solid #ac8a5070;background:#101b16 url("../v6/silk.webp")}
#stake-bag .stone-sheet footer {background:#101b16 url("bag-silk.webp");min-height:13cqw}
.bag-totals {display:grid;gap:.65cqw;padding:.8cqw .4cqw;color:#f5dfb4;font-size:clamp(14px,4cqw,20px)}
#bag-yield {color:#d5c7a6;font:clamp(12px,3.1cqw,16px)/1.4 var(--serif)}
#stake-bag #bag-submit {max-width:54%}
#stake-bag #bag-submit,#path-map #map-up,#path-map #map-preview {
  height:clamp(39px,10.4cqw,53px);border:0;background-color:transparent;background-image:url("../v6/detail.webp");
  background-size:222.34% 1224.5%;background-position:92.2% 90.2%;background-repeat:no-repeat;color:#3b280e;
}
#path-map #map-preview,#stake-bag #bag-submit:disabled,#path-map #map-up:disabled {
  background-size:237.5% 1304.35%;background-position:8.7% 90.1%;background-color:transparent;color:#d5c293;border:0;
}
#stake-bag #bag-submit:disabled,#path-map #map-up:disabled {opacity:.85}
#path-map #map-board {background:radial-gradient(ellipse at center,#0d1b16a6,transparent 74%);height:min(85cqw,46dvh)}
#path-map #map-detail {padding:2cqw 2.1cqw 1.2cqw;background:linear-gradient(100deg,#101b16f1,#1d251ad4 60%,#101b16b3);border-block:1px solid #8e784479}
#path-map #map-preview {min-width:29%}
#path-map .map-node {text-shadow:0 1px 3px #030603,0 0 4px #030603}
#path-map .atlas-tiers {left:1.7%}
.gold-signature {position:absolute;z-index:2;right:13%;top:4%;width:15%;height:86%;max-height:65px;max-width:87px;pointer-events:none;container-type:inline-size;opacity:.88}
.gold-signature .vr-rod {left:0%;top:2%;width:100%;height:8%}
.gold-signature .vr-charm {top:7%;width:22%;height:73%}
.gold-signature .vr-charm-l {left:6%}.gold-signature .vr-charm-c {left:35%;width:29%;height:89%}.gold-signature .vr-charm-r {left:73%}
.gold-signature .vr-hinge span {display:none}
#path-map .gold-signature,#stake-bag .gold-signature {right:auto;left:45%;width:10%;top:auto;bottom:.9cqw;height:8cqw;max-height:44px}
#stake-bag[open] .gold-signature,#path-map[open] .gold-signature {animation:signature-exit .35s 2.3s ease-in both}
@keyframes signature-exit {from{opacity:.88}to{opacity:0}}
[data-gold-dialog=corner] .gold-signature {left:4%;right:auto;top:2%;width:12%;height:12%;max-height:75px}
#card-dialog .gold-signature {left:auto;right:18%;top:1%;width:9%;height:9%}
#v5-menu .gold-signature,#lobby-dialog .gold-signature{left:auto;right:16%;top:2%;height:15%}
#v5-catalog .gold-signature {left:auto;right:9%;top:1%;height:32%;width:8%}
.gold-rig {position:absolute;inset:0;pointer-events:none}
#v5-ritual-dialog .vr-dialog-art {background:radial-gradient(ellipse at 50% 48%,#33322275,transparent 65%),linear-gradient(0deg,#08161170,#0c191651)}
#v5-ritual-dialog:not([data-rite=rules]) #v5-ritual-description {top:68.8%;height:5.3%;font-size:3.7cqw}
#v5-ritual-dialog #v5-ritual-accept {top:76%}
#v5-ritual-dialog:not([data-rite=rank]) .vr-charm-c span {font-size:5cqw}
#rite-detail {position:absolute;left:19%;width:62%;top:84%;min-height:36px;color:#eacc95;text-align:center;font:3.5cqw KaiTi,STKaiti,var(--serif);background:none;text-decoration:underline;text-underline-offset:.3em;text-decoration-color:#b2976379}
#v5-ritual-dialog button:focus-visible,#stake-bag button:focus-visible,#path-map button:focus-visible {outline:2px solid #ffdc86;outline-offset:1px}
@media(prefers-reduced-motion:reduce){.gold-signature,.gold-signature *{animation:none!important}#stake-bag .gold-signature,#path-map .gold-signature{opacity:0}}

/* A single live line between the number cartouche and both detail actions. */
.ink-v6 #detail-yield {
  position:absolute; left:4%; right:4%; top:79.7%; height:3.15%; margin:0;
  display:grid; place-items:center; color:#f2daaa; white-space:nowrap;
  font:clamp(10px,2.9cqw,15px)/1.1 var(--serif); letter-spacing:.02em;
  font-variant-numeric:tabular-nums; text-shadow:0 1px 2px #0d1511;
}
