:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--gold:#e5bd77;--paper:#f6ecdb;--muted:#bcb09c;--edge:#493c2e;color:var(--paper);background:#100f0e;font-family:Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(at top,#342b21,#0000 75%),#100f0e;min-height:100vh;margin:0}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline-offset:3px;outline:3px solid #ffe09b}button:disabled{cursor:default}h1,h2,p{margin:0}.item-name,h1,h2{font-family:Georgia,Times New Roman,serif;font-weight:400}.shop{background:#191715;border-inline:1px solid #352e24;max-width:1024px;margin:auto;position:relative;overflow:hidden}.finds-head,.list-button,.sheet-head,.shop-switch{align-items:center;display:flex}.close,.sound{border:1px solid var(--edge);color:#edd7ad;background:#25211c;border-radius:50%;width:36px;height:36px;font-size:1.25rem}.sound[aria-pressed=false]{color:#a29a8d;text-decoration:line-through}.sound-float{right:10px}.admin-float,.sound-float{z-index:5;position:absolute;top:10px;box-shadow:0 4px 14px #0c090680}.admin-float{border:1px solid var(--edge);color:#edd7ad;background:#25211c;border-radius:50%;width:36px;height:36px;font-size:1.05rem;right:54px}.admin-float:hover{background:#483924}.shop-switch{z-index:3;color:#e8d7b8;background:#1a1510bb;border:1px solid #5a4a36;border-radius:999px;gap:10px;padding:4px 10px;font-size:.82rem;position:absolute;top:8%;left:50%;transform:translate(-50%)}.shop-arrow{color:#f0dfc0;background:#2a231b;border:1px solid #7a6548;border-radius:50%;width:28px;height:28px;line-height:1}.stage{isolation:isolate;aspect-ratio:16/9;background:#1a1612;width:100%;height:auto;position:relative;overflow:hidden}.scenery,.stage:after{pointer-events:none;position:absolute;inset:0}.scenery{z-index:-2;background-image:var(--shop-bg,url(../assets/shop.jpg));background-position:50%;background-repeat:no-repeat;background-size:contain;transition:transform .8s,background-image .35s}.stage:after{content:"";z-index:-1;background:linear-gradient(#0000 68%,#17120fe8),linear-gradient(#120e0a88,#0000 18%)}.shop h1{text-align:left;letter-spacing:.01em;text-shadow:0 1px 10px #120c08,0 0 18px #120c08cc;z-index:2;width:auto;max-width:55%;font-size:calc(clamp(.95rem,1.7vw,1.35rem));line-height:1.15;top:1.2%;left:2.5%}.chest-art,.shadow,.shop h1,.stand{position:absolute}.stand{place-items:end center;width:38%;height:48%;display:grid;bottom:26%;left:48%}.shadow{filter:blur(8px);background:#1e0e08c9;border-radius:50%;width:62%;height:9%;bottom:1%}.chest-art{aspect-ratio:1;max-width:68%;height:100%;bottom:0}#chest{-o-object-fit:contain;object-fit:contain;-o-object-position:center bottom;object-position:center bottom;filter:drop-shadow(0 4px 3px #180b0866);width:100%;height:100%;position:relative}.chest-art.swap{animation:.29s ease-out arrive}@keyframes arrive{0%{opacity:.25;transform:translateX(var(--slide,16px))}to{opacity:1;transform:none}}.arrow{background:#211b16cb;border:1px solid #d1b07ba3;border-radius:50%;place-items:center;width:calc(clamp(44px,3.3vw,54px));height:calc(clamp(44px,3.3vw,54px));transition:background .2s;display:grid;position:absolute;top:48%}.arrow:hover,.close:hover,.list-button:hover,.sound:hover{background:#483924}.arrow:after{content:"";border:solid #f6dfb6;border-width:0 2px 2px 0;width:10px;height:10px;margin-right:4px;transform:rotate(-45deg)}.arrow.prev:after{margin:0 0 0 4px;transform:rotate(135deg)}.prev{left:0}.next{right:0}.speech{text-shadow:0 1px 8px #190e07,0 2px 4px #190e07;border-left:2px solid #bc8c4e;max-width:34%;padding:6px 0 6px 15px;position:absolute;bottom:7%;left:4%}.choice p,.sheet-head p,.speech span{color:#f1cc8a;letter-spacing:.13em;text-transform:uppercase;font-size:.72rem;font-weight:700}.speech p{margin-top:5px;font:italic calc(clamp(1rem,1.38vw,1.45rem))/1.3 Georgia,serif}.choice{text-align:center;text-shadow:0 2px 9px #150d06;width:42%;position:absolute;bottom:3.5%;left:46%}.choice h2{letter-spacing:-.03em;margin:3px 0 10px;font-size:calc(clamp(1.25rem,2.2vw,2.15rem));line-height:1.12}.action{color:#302012;background:linear-gradient(#f2cc88,#cc9c55);border:1px solid #f1cf94;border-radius:5px;min-height:40px;padding:8px 24px;font:600 .95rem Georgia,serif;box-shadow:inset 0 0 0 2px #ab7d404d,0 4px 14px #21130566}.action:hover:enabled{filter:brightness(1.1)}.action:disabled{color:#e1d2bb;background:#474036;border-color:#75634a}.finds{background:linear-gradient(115deg,#24211c,#1a1917 70%);border-top:1px solid #735936;padding:20px 4% 26px}.finds-head,.sheet-head{justify-content:space-between;gap:12px}.finds-head h2{font-size:calc(clamp(1.4rem,2.1vw,2rem))}.list-button{color:#e1c69c;background:0 0;border:1px solid #584b37;border-radius:4px;gap:8px;padding:7px 12px;font-size:.88rem}.highlights{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;display:grid}.item{background:linear-gradient(100deg,#36302877,#29261f66);border:1px solid #463c30;border-radius:4px;align-items:center;gap:14px;min-width:0;padding:10px 14px;display:flex}.item img{-o-object-fit:contain;object-fit:contain;filter:drop-shadow(0 2px 5px #0008);width:56px;height:56px}.item-name{font-size:calc(clamp(1rem,1.4vw,1.4rem));line-height:1.12;display:block}.item small{color:var(--rarity,#c9baa2);margin-top:5px;font-size:.78rem;display:block}.highlights .item{padding-right:30px;position:relative}.highlights .item:after{content:"▶";color:var(--rarity);font-size:.66rem;position:absolute;top:12px;right:12px}.highlights .item:hover{border-color:var(--rarity);background:#393125}.glow{opacity:0;pointer-events:none;background:radial-gradient(#ffe4a5b0,#0000 70%);border-radius:50%;height:38%;transition:opacity .4s;bottom:27%;left:18%;right:18%}#prize-art,.glow{position:absolute}#prize-art{-o-object-fit:contain;object-fit:contain;filter:drop-shadow(0 3px 12px #eab66199);width:50%;height:51%;animation:.5s ease-out both reveal;bottom:28%;left:25%}@keyframes reveal{0%{opacity:0;transform:translateY(15%)scale(.8)}to{opacity:1;transform:none}}@keyframes latch{25%{transform:translate(2px)rotate(.5deg)}65%{transform:translate(-2px)rotate(-.5deg)}}.reveal-fx{pointer-events:none;color:var(--light);display:none;position:absolute;inset:0;container-type:inline-size}[data-phase=result][data-fx] .reveal-fx{display:block}[data-fx].ajar .glow,[data-phase=result][data-fx] .glow{background:radial-gradient(ellipse,var(--light),transparent 70%)}[data-phase=result][data-fx] .scenery{filter:brightness(.74);transition:filter .45s,transform .8s}[data-phase=result][data-fx] #kind{color:var(--light)}[data-phase=result][data-fx] #prize-art{filter:drop-shadow(0 0 10px var(--light))}.rays,.wave{pointer-events:none;position:absolute;top:46%;left:50%}.wave{aspect-ratio:1;border:1px solid;border-radius:50%;width:44%;animation:1.05s ease-out both light-wave;box-shadow:0 0 12px}@keyframes light-wave{0%{opacity:.8;transform:translate(-50%,-50%)scale(.3)}to{opacity:0;transform:translate(-50%,-50%)scale(2.6)}}.rays{aspect-ratio:1;opacity:.33;background:repeating-conic-gradient(#0000 0deg 18deg,currentColor 24deg,#0000 32deg);border-radius:50%;width:160%;display:none;transform:translate(-50%,-50%);-webkit-mask-image:radial-gradient(circle,#000 6%,#0000 67%);mask-image:radial-gradient(circle,#000 6%,#0000 67%)}[data-fx=epic] .rays,[data-fx=legendary] .rays{animation:3.4s ease-out both turn-rays;display:block}[data-fx=legendary] .rays{opacity:.65;width:205%}@keyframes turn-rays{0%{transform:translate(-50%,-50%)rotate(-28deg)scale(.64)}to{transform:translate(-50%,-50%)}}#sparks i{width:4px;height:6px;animation:spark-flight 1.45s ease-out var(--delay) both;background:currentColor;position:absolute;top:46%;left:50%;box-shadow:0 0 8px}@keyframes spark-flight{0%{opacity:0;transform:scale(.3)}12%{opacity:1}to{opacity:0;transform:translate(var(--x),var(--y)) rotate(110deg) scale(.35)}}@media (prefers-reduced-motion:reduce){#sparks,.wave{display:none}.rays{animation:none!important}}[data-phase=opening] .chest-art{animation:.32s .1s latch}[data-phase=opening] .scenery,[data-phase=result] .scenery{transform:scale(1.025)}[data-phase=opening] .choice{opacity:0}.shop.ajar .glow,[data-phase=result] .glow{opacity:1}.shop:not([data-phase=browse]) .arrow,.shop:not([data-phase=browse]) .finds{visibility:hidden}.choice{transition:opacity .22s}dialog{color:var(--paper);background:#211e19;border:1px solid #8d704c;border-radius:12px;width:min(720px,100% - 24px);max-height:80vh;padding:0;box-shadow:0 24px 100px #0009}dialog[open]{flex-direction:column;animation:.2s ease-out reveal;display:flex}dialog::backdrop{background:#100d0cbd}.sheet-head{border-bottom:1px solid var(--edge);padding:22px 24px}.sheet-head h2{margin-top:5px;font-size:2rem}.loot-grid{grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:18px;list-style:none;display:grid;overflow:auto}.loot-grid .item,.loot-grid .item-row{text-align:left;gap:10px;width:100%;padding:8px}.loot-grid .item img{width:44px;height:44px}.loot-grid .item-name{font-size:1.03rem}.highlights .item{cursor:pointer;text-align:left;width:100%;font:inherit;color:inherit}.item-dialog-body{align-items:flex-start;gap:16px;padding:18px 24px 24px;display:flex}.item-dialog-body img{-o-object-fit:contain;object-fit:contain;flex:none;width:72px;height:72px}.funds-dialog-body p,.item-dialog-body p{color:#e8dcc8;margin:0;line-height:1.45}.funds-dialog{width:min(420px,100% - 24px)}.funds-dialog-body{gap:16px;padding:18px 24px 24px;display:grid}.funds-dialog-body strong{color:#f0d39a}.funds-ok{justify-self:end;min-height:36px;padding:8px 18px;font-size:.9rem}.sr{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}@media (width>=1100px){.shop{margin:2vh auto}}@media (width<=700px){.shop{max-width:100%}.shop h1{font-size:calc(clamp(.9rem,3.4vw,1.15rem));top:1%;left:3%}.stand{width:52%;height:40%;bottom:28%;left:40%}.choice{width:56%;bottom:5%;left:38%}.choice h2{font-size:calc(clamp(1.15rem,4vw,1.7rem))}.speech{max-width:30%;bottom:6%;left:4%}.finds{padding:16px}.highlights{gap:8px}.highlights .item{flex-direction:column;align-items:flex-start;gap:5px;padding:10px}.highlights .item img{width:46px;height:46px}.highlights .item small{font-size:.68rem}}@media (width<=480px){.choice h2{font-size:1.65rem}.choice p{font-size:.63rem}.action{padding:8px 12px;font-size:.98rem}.speech{padding-left:8px}.speech p{font-size:.89rem}.arrow{width:40px;height:40px}.loot-grid{grid-template-columns:1fr}.list-button{padding:7px 8px}}@media (prefers-reduced-motion:reduce){*,:after,:before{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-delay:0s!important}}
