/* A stable shop shelf: selecting previews, the single checkout confirms. */
dialog[data-mode=shop]{width:min(1010px,calc(100vw - 28px));background:radial-gradient(ellipse at 20% 20%,#648b6240,transparent 60%),#16362e;padding:24px}
dialog[data-mode=shop] .modal-actions{display:none}dialog[data-mode=shop] .modal-heading{margin-bottom:16px}
.shop-topline{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:15px;margin-bottom:19px;border-bottom:1px solid #bacbad2e}.shop-wallet-label{display:flex;gap:13px;align-items:center;color:#bed1bd;font-size:13px}.shop-wallet-label strong{font-size:24px;color:#f3d798;font-variant-numeric:tabular-nums}.shop-topline>div{display:flex;gap:8px}.shop-topline button,.shop-footer button{min-height:40px;border:1px solid #b3c39e43;background:#39574b85;border-radius:7px;padding:8px 13px;color:#e2e8d3;font-size:13px}.shop-topline kbd,.shop-footer kbd{margin-left:5px;font-size:11px;background:#0b2e244a;color:#c5d4bd;border-color:#8ea98c52}
.shop-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:22px;align-items:start}.shop-shelf{min-width:0}.shop-shelf-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 12px}.shop-shelf-heading h3{font-size:17px;margin:0;color:#efdfb6}.shop-shelf-heading>span{font-size:12px;color:#a8c2b1}
.shop-grid{--shop-columns:4;display:grid;grid-template-columns:repeat(var(--shop-columns),minmax(0,1fr));gap:9px}.shop-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;min-height:132px;gap:4px;padding:17px 5px 10px;border:1px solid #a9b59263;border-radius:9px;background:radial-gradient(ellipse at 50% 35%,#61806554,transparent 68%),linear-gradient(145deg,#2c4c3c,#203b31);color:#f1e7c9;cursor:pointer;box-shadow:inset 0 1px #dfecba0d,0 3px 8px #08211625;transition:border-color .15s,background .15s,transform .15s}.shop-tile:hover{border-color:#e6d39b;background-color:#496742}.shop-tile[aria-pressed=true]{border-color:#ffe0a0;box-shadow:inset 0 0 0 1px #f3d3909e,0 0 16px #f7d38b15;background:radial-gradient(ellipse at 50% 35%,#bba75e45,transparent 70%),linear-gradient(145deg,#556246,#314a36)}.shop-tile:focus-visible{outline:3px solid #b7e0d9;outline-offset:3px}.shop-tile>kbd{position:absolute;left:7px;top:6px;min-width:15px;height:17px;padding:0 3px;font-size:10px;line-height:15px;background:#102b235e;color:#a9c2af;border:1px solid #95b69835;border-radius:3px}.shop-tile>.equipment-icon,.shop-tile>.shop-object{width:68px;height:68px}.shop-tile>strong{font-weight:550;font-size:13px;line-height:1.4;white-space:nowrap}.shop-tile-price{font-size:13px;color:#ebd79d;line-height:1.4;min-height:18px;font-variant-numeric:tabular-nums}.shop-tile[data-state=owned] .shop-tile-price{color:#b5d7ac}.shop-tile[data-state=locked]>.equipment-icon{opacity:.4;filter:grayscale(.65)}.shop-tile[data-state=locked]>strong{color:#a3b3a0}.shop-tile[data-state=locked]>.shop-tile-price{color:#a4b5a2}.shop-tile[data-state=unaffordable]>.shop-tile-price{color:#e8b9a4}.shop-tile-lock{position:absolute;top:7px;right:7px;font-size:10px;color:#a7bba7}.shop-object{display:block;flex:none;width:68px;height:68px;background-image:url('/games/assets/shop-atlas.png');background-size:200% 200%;background-position:var(--shop-x) var(--shop-y);background-repeat:no-repeat;filter:drop-shadow(0 4px 4px #08261b4a)}
#shop-detail{position:sticky;top:70px;padding:17px 19px 15px;min-height:431px;border:1px solid #c5c49460;border-radius:12px;background:radial-gradient(ellipse at 50% 12%,#98a27633,transparent 65%),linear-gradient(150deg,#294b3c,#13342d);text-align:center;box-shadow:inset 0 1px #e6e3b11a}.shop-detail-art{display:flex;align-items:center;justify-content:center;height:128px;margin:0 0 7px}.shop-detail-art .equipment-icon,.shop-detail-art .shop-object{width:140px;height:140px}.shop-detail-kind{font-size:11px;letter-spacing:2px;color:#bdd0b9}#shop-detail h3{font-size:23px;line-height:1.3;margin:6px 0 19px;color:#ffedc2;overflow-wrap:anywhere}.shop-comparison{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#092b246b;border:1px solid #8daa8230;border-radius:8px;padding:12px}.shop-comparison>span{font-size:13px;color:#c8d4bd}.shop-comparison>div{display:flex;align-items:baseline;gap:9px;font-variant-numeric:tabular-nums}.shop-comparison>div>span{font-size:17px;color:#b6c4b6}.shop-comparison i{font-size:15px;font-style:normal;color:#95b395}.shop-comparison strong{font-size:23px;color:#d4eea3}.shop-effect-note{font-size:12px;line-height:1.7;margin:12px 0 15px;color:#bdcebb;min-height:40px;text-align:left}.shop-checkout{border-top:1px solid #afc1942b;padding-top:14px}.shop-checkout .kit-primary{font-size:15px;min-height:47px;padding:10px 5px}.shop-checkout .kit-primary:disabled{background:#385545;border-color:#8ba58550;color:#b9cbbb;box-shadow:none;opacity:1;cursor:default}.shop-checkout .kit-primary kbd{font-size:11px;min-width:26px;margin-left:6px;padding:1px 4px;background:#293c2320;border:1px solid #6c683e66;border-radius:4px;vertical-align:1px}.shop-feedback{font-size:12px;line-height:1.65;margin:10px 0 0;min-height:20px;color:#c5d5c0}.shop-feedback:empty{display:none}.shop-feedback.purchased{color:#d4edb1}.shop-result-link{font-size:12px;line-height:1.5;color:#efdda5;padding:8px 5px;margin-top:3px;min-height:36px;border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.shop-chances{display:grid;grid-template-columns:1fr 1fr;gap:9px}.shop-chances>div{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px;background:#12362d7a;border:1px solid #96af7a3d;border-radius:8px}.shop-chances .equipment-icon{width:48px;height:48px}.shop-chances strong{font-size:16px;color:#f1dba2}.shop-chances span:last-child{font-size:12px;color:#becbb6}.shop-relic-mark{width:48px;height:48px;line-height:48px;font-size:33px;color:#b3c6b5}.shop-controls{font-size:11px;color:#96b29f;line-height:1.6;margin:14px 0 0}.shop-footer{display:flex;justify-content:flex-end;border-top:1px solid #a3b38d2a;padding-top:13px;margin-top:18px}.shop-footer button{min-width:118px}.shop-topline button:hover,.shop-footer button:hover{border-color:#d3cb93}.shop-topline button:focus-visible,.shop-footer button:focus-visible,.shop-result-link:focus-visible{outline:3px solid #b7e0d9;outline-offset:3px}
@media(max-width:800px){.shop-layout{grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);gap:15px}.shop-grid{--shop-columns:3;gap:7px}.shop-tile{min-height:119px;padding-top:17px}.shop-tile>.equipment-icon,.shop-tile>.shop-object{width:59px;height:59px}.shop-tile>strong{font-size:12px}.shop-detail-art{height:105px}.shop-detail-art .equipment-icon,.shop-detail-art .shop-object{width:118px;height:118px}#shop-detail{padding:15px;min-height:406px}.shop-controls{max-width:270px}.shop-topline>div{gap:5px}.shop-topline button{padding:8px 9px}}
@media(max-width:580px){dialog[data-mode=shop]{padding:15px;width:calc(100vw - 18px)}.shop-topline{margin-bottom:14px;padding-bottom:12px;gap:7px}.shop-wallet-label{font-size:11px;gap:7px}.shop-wallet-label strong{font-size:20px}.shop-topline button{font-size:12px;padding:7px;min-height:38px}.shop-layout{grid-template-columns:1fr;gap:14px}.shop-grid{--shop-columns:4;gap:6px}.shop-tile{min-height:103px;padding:17px 2px 7px;gap:2px}.shop-tile>.equipment-icon,.shop-tile>.shop-object{width:49px;height:49px}.shop-tile>strong{font-size:11px}.shop-tile-price{font-size:12px}.shop-tile-lock{top:6px;right:4px;font-size:9px}.shop-tile>kbd{left:4px;top:5px}#shop-detail{position:static;min-height:0;text-align:left;display:grid;grid-template-columns:82px minmax(0,1fr);column-gap:12px;padding:13px}.shop-detail-art{grid-column:1;grid-row:1/4;height:96px;margin:0}.shop-detail-art .equipment-icon,.shop-detail-art .shop-object{width:92px;height:92px}.shop-detail-kind{grid-column:2;align-self:end}#shop-detail h3{grid-column:2;font-size:20px;margin:5px 0 10px}.shop-comparison,.shop-chances{grid-column:2;padding:8px}.shop-comparison strong{font-size:20px}.shop-comparison>div>span{font-size:15px}.shop-effect-note{grid-column:1/-1;min-height:0;margin:10px 0}.shop-checkout{grid-column:1/-1;padding-top:10px;text-align:center}.shop-footer{margin-top:12px;padding-top:10px}.shop-shelf-heading h3{font-size:15px}.shop-shelf-heading{margin-bottom:9px}.shop-controls{margin-top:8px;max-width:none}.shop-chances .equipment-icon,.shop-relic-mark{height:30px;width:30px;line-height:30px}.shop-chances>div{padding:5px}.shop-chances{border:0;background:transparent;padding:0}}
@media(prefers-reduced-motion:reduce){.shop-tile{transition:none}}
.shop-comparison[data-change=lower] strong{color:#eac5a5}.shop-comparison[data-change=same] strong{color:#d9dfc9}
.shop-checkout .kit-primary:disabled kbd{display:none}
@media(max-width:580px){.shop-tile{min-height:99px;padding:15px 2px 6px;gap:1px}.shop-tile>.equipment-icon,.shop-tile>.shop-object{width:44px;height:44px}.shop-controls{margin-top:6px}.shop-shelf-heading>span{font-size:11px}}
