#stash-dialog{width:min(820px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px;background:#22283c;color:#faf2de;border:3px solid #faf2de;border-radius:8px}#stash-dialog::backdrop,#stash-demo-ad::backdrop{background:#130e25c9}.stash-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.stash-head h2{font:italic 900 42px/.95 Impact,Arial;margin:0;color:#ffcd46}.stash-head p{margin:6px 0 14px;color:#c4bad3;font-size:13px}.stash-wallet{display:flex;align-items:center;gap:7px;background:#281b47;padding:10px 16px;border:2px solid #ffcd46;transform:rotate(2deg);font:900 25px Impact,Arial}.stash-wallet img{width:30px;height:30px}.stash-products{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stash-products article{padding:16px;background:#281b47;border:2px solid #70d9c9;border-radius:6px;display:flex;flex-direction:column;align-items:center;text-align:center}.stash-products article:last-child{border-color:#ffcd46}.stash-art{width:150px;height:120px;object-fit:contain;filter:drop-shadow(4px 5px 0 #120b2288)}.stash-products small{font:800 9px Arial;letter-spacing:2px;color:#b7b0c7}.stash-products h3{font:italic 900 30px Impact,Arial;margin:5px 0;color:#70d9c9}.stash-products article:last-child h3{color:#ffcd46}.stash-products p{font:13px/1.4 Arial;color:#faf2de;margin:4px 0}.stash-products .stash-description{color:#bbb8cd;font-size:12px;min-height:35px}.stash-product-meta{display:flex;justify-content:space-between;align-items:center;width:100%;font:800 11px Arial;margin:12px 0}.stash-product-meta b{color:#ffcd46}.stash-products button{min-height:44px;margin:0;background:#70d9c9;border:2px solid #faf2de;border-radius:3px;color:#281b47;font:900 17px Impact,Arial}.stash-products article:last-child button{background:#ffcd46}.stash-products button:disabled{background:#434052;color:#aaa4b5;border-color:#666071;cursor:default;filter:none}.stash-ads{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#171b2c;padding:12px 16px;margin-top:16px;border:1px dashed #8a78e6}.stash-ads b{font:800 11px Arial}.stash-ads small{display:block;color:#aaa6bd;font-size:11px;margin-top:4px}.stash-ads button{width:auto;min-height:44px;margin:0;padding:9px 16px;background:#8a78e6;color:#faf2de;font-size:12px}.stash-ads button:disabled{background:#363747;color:#aaa;cursor:default}#stash-message{min-height:18px;text-align:center;color:#70d9c9;font:800 11px Arial;margin:10px 0 4px}#stash-save-note{color:#ffcd46;font:11px Arial;text-align:center;margin:5px 0}#stash-back{width:auto;min-height:44px;background:#faf2de;color:#281b47;font-size:13px;padding:9px 18px;margin:4px 0 0}
#menu .menu-nav #stash-open{background:#70d9c9;color:#281b47;font-size:20px;min-height:47px}#menu .menu-nav #stash-open img{filter:brightness(.3)}#result-stash{background:#70d9c9;color:#281b47}#duel-result #stash-earnings{display:flex;justify-content:center;align-items:center;gap:13px;font:800 9px Arial;margin:9px 0;color:#c9c3d5}#stash-earnings b{display:block;color:#ffcd46;font:900 20px Impact,Arial;margin-top:2px}#stash-earnings strong{border-left:1px solid #8a78e6;padding-left:13px;color:#faf2de}
#stash-controls{position:fixed;bottom:max(25px,env(safe-area-inset-bottom));right:max(180px,env(safe-area-inset-right));display:flex;gap:9px;z-index:8;pointer-events:none}#stash-controls[hidden]{display:none}#stash-controls button{position:relative;pointer-events:auto;touch-action:manipulation;width:68px;min-height:76px;margin:0;padding:6px 4px;background:#281b47dd;color:#faf2de;border:2px solid #8a78e6;border-radius:6px;display:flex;align-items:center;justify-content:center;flex-direction:column;font:800 8px Arial}#stash-controls button img{width:38px;height:35px;object-fit:contain}#stash-controls button b{display:block;color:#ffcd46;margin-top:3px}#stash-controls button kbd{position:absolute;left:4px;top:3px;color:#70d9c9;font:800 9px Arial}#stash-controls button small{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font:900 16px Impact,Arial;text-shadow:2px 2px #281b47}#stash-controls button:disabled{opacity:.4;filter:none}#stash-controls button:disabled small:not(:empty){background:#281b4788}
#stash-shield{width:100%;margin:3px 0;color:#70d9c9}#stash-shield[hidden]{display:none}#stash-shield span{display:flex;justify-content:space-between;font:800 8px Arial}#stash-shield b{font:800 8px Arial;color:#70d9c9;margin:0}#stash-shield progress{display:block;width:100%;height:6px;border:0;margin-top:2px;appearance:none;background:#70d9c933}#stash-shield progress::-webkit-progress-bar{background:#70d9c933}#stash-shield progress::-webkit-progress-value{background:#70d9c9}#stash-shield progress::-moz-progress-bar{background:#70d9c9}#stash-shield.broken{opacity:.35}
#stash-demo-ad{width:min(400px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;text-align:center;background:#281b47;color:#faf2de;border:3px solid #ffcd46;padding:24px}#stash-demo-ad h2{color:#ffcd46}#stash-demo-ad p{color:#cfc7dc}.demo-coin{font-size:65px;color:#ffcd46}#stash-demo-ad button{min-height:44px;margin-top:10px;background:#ffcd46;color:#281b47}#stash-demo-ad button:disabled{background:#625776;color:#bbb}#stash-demo-ad #demo-ad-cancel{background:transparent;color:#faf2de;border:1px solid #aaa}
@media(max-width:700px){#stash-dialog{padding:16px}.stash-head h2{font-size:32px}.stash-wallet{font-size:21px;padding:7px 10px}.stash-products{grid-template-columns:1fr;gap:12px}.stash-products article{display:grid;grid-template-columns:90px 1fr;gap:3px 12px;text-align:left;padding:13px}.stash-art{grid-row:1/6;width:90px;height:105px}.stash-products h3{font-size:25px}.stash-products p{font-size:12px}.stash-products .stash-description{font-size:11px;min-height:0}.stash-products article button,.stash-product-meta{grid-column:1/-1}.stash-product-meta{margin:6px 0}.stash-ads{padding:10px;flex-wrap:wrap}.stash-ads button{width:100%}#menu .menu-nav #stash-open{font-size:17px;min-height:42px}#stash-controls{right:12px;bottom:285px;gap:5px}#stash-controls button{width:55px;min-height:58px}#stash-controls button img{height:25px;width:30px}}
@media(orientation:landscape) and (max-height:500px){#stash-dialog{padding:12px 18px}.stash-products{grid-template-columns:1fr 1fr;gap:12px}.stash-products article{display:flex;padding:10px}.stash-art{height:65px;width:90px}.stash-head h2{font-size:28px}.stash-head p{margin:4px 0 8px}.stash-products h3{font-size:23px}.stash-products p{font-size:11px}.stash-products .stash-description{min-height:26px}.stash-product-meta{margin:6px 0}.stash-products button{min-height:40px;font-size:15px}.stash-ads{margin-top:10px;padding:8px;flex-wrap:nowrap}.stash-ads button{width:auto}#menu .menu-nav #stash-open{font-size:15px;min-height:36px}#stash-controls{right:auto;left:165px;bottom:14px;gap:5px}#stash-controls button{width:52px;min-height:57px}#stash-controls button img{height:26px;width:30px}#stash-controls button span{font-size:7px}.touch-playing #stash-controls kbd{display:none}#duel-result #stash-earnings{margin:4px 0;gap:9px}#stash-earnings b{font-size:16px}}
@media(prefers-reduced-motion:reduce){.stash-products article,#stash-controls button{transition:none}}
#stash-dialog{position:fixed;inset:auto;left:50%;top:50%;margin:0;width:820px;max-width:none;height:auto;max-height:none;overflow:visible;transform:translate(-50%,-50%) scale(var(--fit-scale,1));transform-origin:center}#stash-dialog p{line-height:1.3}#stash-dialog button{box-shadow:2px 3px 0 #130d2588}
@media(max-height:680px) and (max-width:700px){#stash-dialog{padding:12px}.stash-head h2{font-size:27px}.stash-head p{font-size:11px;margin-bottom:10px}.stash-products{grid-template-columns:1fr 1fr;gap:8px}.stash-products article{display:flex;padding:10px;gap:3px}.stash-art{width:90px;height:65px}.stash-products h3{font-size:22px}.stash-products article>p:not(.stash-description){display:none}.stash-products .stash-description{font-size:11px;min-height:40px}.stash-product-meta{display:flex;flex-wrap:wrap;gap:6px;font-size:10px;margin:7px 0}.stash-products button{min-height:44px;padding:7px;font-size:13px}.stash-ads{margin-top:10px;padding:10px}.stash-ads button{min-height:44px}.stash-wallet{padding:6px 9px}.stash-wallet img{width:23px;height:23px}#stash-message{margin-top:8px;font-size:10px}#stash-save-note{font-size:10px}#stash-back{margin-top:3px}}
@media(min-height:501px) and (min-width:701px){#stash-controls{right:max(25px,env(safe-area-inset-right));bottom:135px}}
@media(orientation:landscape) and (max-height:500px){#stash-controls{left:145px;right:auto;bottom:calc(85px + env(safe-area-inset-bottom))}}
#stash-demo-ad{position:fixed;inset:auto;left:50%;top:50%;margin:0;width:400px;max-width:none;max-height:none;overflow:visible;transform:translate(-50%,-50%) scale(var(--fit-scale,1))}
#stash-controls #use-shockwave small:not(:empty){background:conic-gradient(#281b47e6 var(--cooldown,0deg),#ffcd4644 0);border-radius:4px}
