/* Copyright (c) 2026 Astoria Insight. All rights reserved. */
.store-panel>small{display:block;white-space:normal;color:#9fb9ac;line-height:1.45;margin:2px 0 9px}.garage-icon{display:inline-grid;place-items:center;flex:none;width:44px;height:30px;padding:2px;border:1px solid #628773;background:#12241f;overflow:hidden}.garage-icon .car-sprite{width:100%}.garage-icon .car-sprite{width:100%}.store-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.store-item{display:grid;grid-template-columns:23px minmax(0,1fr);grid-template-rows:auto auto;text-align:left;column-gap:6px;align-items:center;min-height:48px;padding:5px 7px;border:1px solid #426354;background:#10221d;color:#dce9d8;font:700 11px ui-monospace,monospace;cursor:pointer}.store-item-icon{grid-row:1/3;font-size:18px}.store-item span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.store-item b{font-size:10px;color:#eac788}.store-item:disabled{opacity:.55;cursor:default}.store-spent{margin-top:7px!important;color:#eac788!important}.profile-icons{display:inline-flex;flex:none;gap:2px}.profile-icons-desktop{display:none}.profile-badge{display:none;padding:2px 4px;border:1px solid #ad8950;background:#281e10;color:#ffe2a0;font:700 10px ui-monospace,monospace;white-space:nowrap}.profile-badge:not(:empty){display:inline-flex}.badge-control{display:flex;flex-basis:100%;gap:8px;justify-content:space-between;align-items:center;flex-wrap:wrap;border:1px solid #6d5533;background:#1c1b14;padding:7px;margin:5px 0}.badge-control strong{color:#f2d49d}.badge-control button{border:1px solid #ad8950;background:#392718;color:#ffe2a0;font:700 11px ui-monospace,monospace;padding:5px 8px}.store-animation{position:fixed;inset:0;z-index:35;pointer-events:none;display:grid;place-items:center;opacity:0;transition:opacity .25s ease;overflow:hidden}.store-animation.visible{opacity:1}.store-celebration{display:grid;place-items:center;gap:5px;padding:18px 25px;background:#0c1c17f0;border:2px solid #d5b979;color:#f9d58b;box-shadow:0 0 30px #b3984366;font:700 13px 'Astoria Pixel',ui-monospace,monospace;text-align:center;animation:store-pop 1.2s steps(8,end)}.store-celebration>span{font-size:48px}.store-celebration small{font:11px ui-monospace,monospace;color:#d9e2d8}.store-animation.vacation{background:#061523}.store-vacation{width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;padding:0 12px max(10vh,32px);background:url(assets/island-sunset.png) center/cover no-repeat;image-rendering:pixelated;animation:store-island 3.5s ease-in-out;color:#ffdfa1;text-align:center;text-shadow:0 2px 2px #162225;font:clamp(13px,4vw,22px) 'Astoria Pixel',ui-monospace,monospace}.store-vacation span{font:12px ui-monospace,monospace}.store-vacation strong{padding:8px;background:#081c23bb}@keyframes store-pop{0%{transform:scale(.5)}20%{transform:scale(1.06)}35%{transform:scale(1)}100%{transform:scale(1)}}@keyframes store-island{0%{transform:scale(1.04);opacity:0}12%{opacity:1}80%{opacity:1}100%{transform:scale(1);opacity:0}}
@media(max-width:720px){.progression-toggle{padding-right:2px!important;gap:4px!important}.progression-toggle #progression-summary{flex:1;min-width:0}.profile-icons .garage-icon{width:34px;height:23px;padding:1px}.garage-icon .car-sprite{width:100%}.profile-badge{max-width:62px;overflow:hidden;text-overflow:ellipsis;align-self:center}.store-items{grid-template-columns:repeat(2,minmax(0,1fr))}}
.music-toggle{width:100%;min-height:36px;background:#16251f;border:1px solid #809a6a;color:#e3c889;font:700 11px ui-monospace,monospace;letter-spacing:.05em}.music-toggle[aria-pressed="true"]{background:#273520;border-color:#d3bd79;color:#ffe1a2}
@media(min-width:721px){.progression-hud{position:relative}.profile-icons-desktop{position:absolute;right:12px;top:6px;display:flex;gap:3px}.profile-badge-desktop{position:absolute;right:12px;bottom:5px;display:flex}.profile-icons{display:none}}
@media(prefers-reduced-motion:reduce){.store-animation,.store-celebration,.store-vacation{animation:none!important;transition:none!important}}

.store-item{grid-template-columns:44px minmax(0,1fr)}.store-item-icon{display:grid;place-items:center;width:44px}
/* icon sizing (moved here from the retired store-scenes.css) */
.store-item-icon svg{display:block;width:26px;height:26px;image-rendering:pixelated}
.music-toggle svg,.profile-badge svg,.badge-control svg{display:inline-block;width:17px;height:17px;vertical-align:middle;margin-right:6px;image-rendering:pixelated}
.profile-badge svg{width:14px;height:14px;margin-right:3px}
.store-item span:nth-child(2){white-space:normal;overflow:visible;line-height:1.25}
.profile-badge-chip{display:inline-flex;align-items:center;white-space:nowrap}.profile-badge-chip+.profile-badge-chip{margin-left:5px}.profile-badge-more{display:none}
@media(max-width:720px){.progression-hud:has(.profile-badge:not(:empty)) .progression-toggle{padding-right:100px!important}.progression-hud .profile-badge{position:absolute;top:50%;right:27px;transform:translateY(-50%);max-width:86px;height:24px;align-items:center;overflow:hidden;pointer-events:none}.profile-badge-chip:nth-child(n+2){display:none}.profile-badge-more{display:inline;margin-left:3px;flex:none}}
@media(min-width:721px){.progression-hud .profile-badge{position:absolute;right:12px;bottom:5px;max-width:240px;overflow:hidden;pointer-events:none}}

/* Vault: every owned asset (any tier). Sheet frames step views; single images turn on a scaleX squash-and-flip. */
.vault{display:grid;gap:4px;border:1px solid #3d6456;background:#0b1919;padding:4px}
.vault-view{display:flex;align-items:center;gap:12px;min-height:128px}
.vault-art{position:relative;width:min(46%,188px);flex:none;aspect-ratio:402/256;display:grid;place-items:center;overflow:hidden;touch-action:pan-y;cursor:pointer;background-color:#0a1515;border:1px solid #243c36}
.vault-art.empty{cursor:default;background:repeating-linear-gradient(135deg,#0d1a18 0 6px,#0a1515 6px 12px)}
.vault-spin{width:100%;height:100%;display:grid;place-items:center;transition:transform .22s ease-in-out}
.vault-art .asset-frame{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}
.vault-art .sheet-frame,.vault-thumb .sheet-frame,.garage-icon .sheet-frame{display:block;width:100%;height:auto;aspect-ratio:402/256}
.vault-art.turntable.face-1 .vault-spin,.vault-art.turntable.face-3 .vault-spin{transform:scaleX(-1)}
.vault-sweep{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(105deg,#0000 38%,#ffffff70 49%,#fff2 52%,#0000 62%) no-repeat;background-size:260% 100%;background-position:130% 0}
.vault-art.sweep .vault-sweep{animation:vault-sweep .6s ease-out}
@keyframes vault-sweep{0%{opacity:1;background-position:130% 0}100%{opacity:0;background-position:-30% 0}}
.vault-meta{display:grid;gap:5px;min-width:0;font:11px ui-monospace,monospace}
.vault-meta strong{color:#e8cd86}
.vault-meta span{color:#91a99e;white-space:normal}
.vault-owned{display:flex;gap:4px;padding:2px;overflow-x:auto}
.vault-owned:empty{display:none}
.vault-thumb{flex:none;display:grid;place-items:center;width:64px;height:42px;padding:2px;border:1px solid #628773;background:#12241f;overflow:hidden;cursor:pointer}
.vault-thumb.selected{border-color:#e1b85d}
.vault-thumb .asset-frame{max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}
.vault-thumb:focus-visible,.vault-art:focus-visible{outline:2px solid #f5d886}
.asset-frame-missing{display:grid;place-items:center;width:100%;height:100%;min-height:24px;background:repeating-linear-gradient(135deg,#0d1a18 0 6px,#0a1515 6px 12px)}
.asset-frame-missing svg{width:40%;max-width:48px;height:auto}
.store-section{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;margin:12px 0 6px;padding-top:8px;border-top:1px solid #45685a;font:11px ui-monospace,monospace}
.store-section b{color:#dcb675;font:13px 'Astoria Pixel',ui-monospace,monospace;letter-spacing:.1em}
.store-section span{color:#8da69a;font-size:9px}
@media(prefers-reduced-motion:reduce){.vault-spin{transition:none}.vault-art.sweep .vault-sweep{animation:none}}
.store-item:focus-visible{outline:2px solid #f5d886}
/* Career strip on phones: never truncate the status text; the row grows and wraps between parts instead. */
@media(max-width:720px){.progression-toggle{height:auto!important;min-height:31px;flex-wrap:wrap;row-gap:4px;padding-top:5px!important;padding-bottom:5px!important;padding-right:30px!important;align-items:center}
.progression-toggle #progression-summary{flex:1 1 150px!important;min-width:0;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35;overflow-wrap:normal}
.progression-toggle .profile-icons{flex:none;align-self:center}
.progression-hud .asset-profile-badge{top:6px;bottom:auto}
.progression-slot,.progression-hud{height:auto!important;min-height:42px}}
/* Menu discoverability: "MENU ⌃" tag on the phone career bar, a soft pulse until the menu is first opened, and the one-time hint bubble. */
.progression-menu-tag{display:inline-flex;align-items:center;gap:4px;flex:none;padding:2px 5px;border:1px solid #3f7a5f;background:#0f231c;color:#93dcb7;font:700 10px ui-monospace,monospace;letter-spacing:.08em;line-height:1.2}
.progression-menu-tag .progression-chevron{display:inline-block}
.progression-hud.menu-unseen .progression-toggle,.progression-hud.menu-unseen .progression-workbench>summary{animation:menu-pulse 2s ease-in-out infinite}
@keyframes menu-pulse{0%,100%{box-shadow:0 0 0 0 #5cf0bf00}50%{box-shadow:0 0 0 2px #5cf0bf55,0 0 12px #5cf0bf44}}
@media(prefers-reduced-motion:reduce){.progression-hud.menu-unseen .progression-toggle,.progression-hud.menu-unseen .progression-workbench>summary{animation:none;box-shadow:0 0 0 1px #5cf0bf66}}
.menu-hint{position:absolute;z-index:40;width:260px;max-width:calc(100vw - 24px);padding:9px 11px;border:1px solid #5cf0bf;background:#0b1d18f2;color:#dce9d8;font:12px/1.4 ui-monospace,monospace;box-shadow:0 6px 18px #0009;pointer-events:none;animation:menu-hint-in .25s ease-out}
.menu-hint strong{color:#5cf0bf}.menu-hint small{display:block;margin-top:5px;color:#8fae9f;font-size:9px;letter-spacing:.08em}
.menu-hint::before{content:'';position:absolute;top:-7px;left:18px;border:7px solid transparent;border-top:0;border-bottom-color:#5cf0bf}
@keyframes menu-hint-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.menu-hint{animation:none}}
/* Tier star badge (status row and asset leaderboard). Tier 6 also glows. */
.tier-star{image-rendering:pixelated}.tier-star-6{filter:drop-shadow(0 0 3px #ffd57faa) drop-shadow(0 0 6px #ffd57f66)}
/* Computer: garage icons and the tier star get their own column after the menu button, so nothing covers its text. */
@media(min-width:721px){.progression-hud .asset-profile-badge{display:none}
.progression-hud:has(.profile-icons-desktop:not(:empty)){grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.25fr) auto auto}
.progression-hud .profile-icons-desktop{position:static;grid-column:5;grid-row:1/4;align-self:center;display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,auto);gap:2px 3px;align-items:center}
.progression-hud .profile-icons-desktop .garage-icon{width:32px;height:21px;padding:1px}
.progression-hud .profile-icons-desktop .asset-profile-star{grid-row:1/3}
.progression-hud .profile-icons-desktop:empty{display:none}
.asset-profile-star{display:inline-grid;place-items:center;width:24px;height:24px}.asset-profile-star svg{width:22px;height:22px}}
/* Phone: the tier star sits inside the bar at the right end (no longer on its top edge); the MENU tag ends the first line. */
@media(max-width:720px){aside.progression-hud .progression-toggle{padding-right:34px!important}
aside.progression-hud:has(.profile-badge:not(:empty)) .progression-toggle{padding-right:128px!important}
aside.progression-hud .profile-badge{right:34px}
aside.progression-hud .asset-profile-badge{right:9px;top:50%;bottom:auto;transform:translateY(-50%);width:20px;height:20px}
aside.progression-hud .asset-profile-badge svg{width:18px;height:18px}
.progression-toggle .progression-menu-tag{margin-left:auto}}
/* Computer: a very long wealth title shortens with "…" instead of running into the level text beside it. */
@media(min-width:721px){.progression-hud .progression-line{min-width:0;gap:8px}.progression-hud .progression-line>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.progression-hud .progression-line>strong{flex:none}}
