.store-dialog,.store-dialog *{box-sizing:border-box}
.store-dialog{position:fixed;inset:0;width:1100px;height:780px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);margin:auto;padding:4px 14px 12px;border:40px solid transparent;border-image:url("../img/upgrade_panel_bg.png?v=20-wide-panel") 95 fill / 40px / 0 stretch;background:transparent;color:#dec8b2;overflow:hidden;font-family:"Open Sans",Arial,sans-serif}
.store-dialog[open]{display:flex;flex-direction:column}
.store-dialog::backdrop{background:#050403bf;backdrop-filter:blur(5px)}
.store-heading{position:relative;flex:0 0 64px;display:flex;align-items:flex-start;justify-content:center;width:100%;margin:0;padding:0 42px 16px;border-bottom:1px solid #81543966}
.store-heading h2{margin:0;text-align:center;font:700 30px/1.3 Georgia,serif;color:#f1d8bd}
.store-close{position:absolute;right:0;top:0;width:30px;height:30px;padding:0;margin:0;border:0;overflow:hidden;background:transparent;cursor:pointer}
.store-close img{position:absolute;display:block;max-width:none;width:var(--image-width);height:var(--image-height);left:var(--image-left);top:var(--image-top);margin:0}
.store-close:hover{filter:brightness(1.2)}
.store-close:focus-visible{outline:2px solid #dc9e60;outline-offset:2px}
.store-content{flex:1;min-height:0;width:100%;margin:0;padding:16px 0 8px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;font-size:13px;line-height:1.8}
.store-content::-webkit-scrollbar{display:none;width:0;height:0}
.store-overview{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;margin:0;gap:12px}
.store-content:focus-visible{outline:1px solid #916844;outline-offset:-1px}
.store-content h3{margin:0 0 8px;color:#e6bd91;font:700 20px/1.4 Georgia,serif}
.store-content p{margin:0 0 18px}
.store-content strong{color:#f1d6aa}
.store-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);gap:30px;align-items:center;margin:0}
.store-intro p:last-child{margin-bottom:0}
.store-intro>*,.store-content figure{min-width:0;margin:0}
.store-content img{display:block;width:100%;height:auto;max-width:100%;margin:0 auto;user-select:none;-webkit-user-drag:none}
.store-hud img{max-width:429px;image-rendering:auto}
.store-content figcaption{text-align:center;color:#a68c74;font-size:11px;line-height:1.6;margin:10px 0 0}
.store-screen{display:flex;flex-direction:column;min-height:0;padding:12px 0;border-top:1px solid #81543966;border-bottom:1px solid #81543966;overflow:hidden}
.store-screen img{flex:1;min-height:0;width:100%;height:0;max-width:858px;object-fit:contain}
.store-screen figcaption{flex:none;margin-top:8px}
.store-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 30px;margin:24px 0}
.store-steps section{position:relative;min-width:0;margin:0;padding-left:42px}
.store-step{position:absolute;left:0;top:0;color:#bd7344;font:700 24px/1.4 Georgia,serif}
.store-steps p{margin:0}
.store-note{margin:0;padding:18px 0 0;border-top:1px solid #81543966}
.store-note p{margin:0}
@media(max-width:700px){.store-dialog{border-width:28px;border-image-width:28px;padding:4px 6px 8px}.store-heading{flex-basis:58px}.store-heading h2{font-size:25px}.store-intro,.store-steps{grid-template-columns:1fr;gap:20px}.store-content{padding-top:16px}.store-hud{padding-bottom:12px}}
