/* One purchase leads the arcade shop; the rest waits one clear step away. */
.shop-view .stats-hud{height:calc(72px + env(safe-area-inset-top));border-bottom:1px solid #706143}
.shop-view .hud-summary{height:71px;grid-template-rows:1fr;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;padding:9px 14px;gap:10px}
.shop-view .hud-overall,.shop-view .hud-lift{display:none}
.shop-view .hud-cash{display:block}
.shop-view .hud-cash .hud-label{display:block;font-size:12px;letter-spacing:.08em;margin-bottom:3px}
.shop-view #cashTop{font-size:28px;letter-spacing:-.05em}
.shop-view .hud-income{flex-wrap:wrap;gap:4px;align-items:baseline}
.shop-view #incomeTop{font-size:23px}
.shop-view .hud-unit{font-size:12px}
.shop-view .hud-delta{font-size:12px;max-width:100%;flex-basis:100%;text-align:right}
.shop-view #mainContent{padding:0 14px 26px;min-height:calc(100dvh - 132px)}
.upgrade-shop{--shop-cream:#f3dbad;--shop-gold:#e9b54a;--shop-blue:#477a98;--shop-charcoal:#292b34;--shop-green:#b9db93;min-width:0;max-width:100%;font-size:14px;line-height:1.4;color:#e5dfcd}
.upgrade-shop [hidden]{display:none!important}
.shop-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:8px 0 10px;min-height:44px}
.shop-header h1{font:900 21px/1.1 'Courier New',monospace;letter-spacing:.045em;color:#f3dbad;margin:0;min-width:0}
.shop-text-button{background:none;border:0;border-bottom:1px solid #7399af;color:#acd0e0;min-width:66px;min-height:44px;padding:8px 0;font:700 12px/1.2 'Courier New',monospace;box-shadow:none;border-radius:0;text-decoration:none}
.shop-text-button:active:enabled{transform:none;color:#fff0ba}
.shop-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:8px}
.shop-goals button{background:#293744;color:#b8cad1;border:1px solid #597183;border-bottom:3px solid #111a26;border-radius:0;min-width:0;min-height:44px;padding:8px 4px;font-size:13px;line-height:1.2;box-shadow:none}
.shop-goals button[aria-pressed="true"]{background:#c85c39;color:#fff0c5;border-color:#e9b54a;border-bottom-color:#7a3528}
.shop-overview-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin:0 0 9px;color:#a8b1b7;font-size:12px;letter-spacing:.04em}
.shop-quantity{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#bccbd2;white-space:nowrap;font-size:12px}
.shop-quantity select,.shop-catalog-tools select{appearance:none;-webkit-appearance:none;border:1px solid #627c8e;border-radius:0;background-color:#273b4c;color:#f0dfba;min-height:44px;padding:6px 29px 6px 9px;font-size:14px;line-height:1.2;background-image:linear-gradient(45deg,transparent 50%,#d1e0e4 50%),linear-gradient(135deg,#d1e0e4 50%,transparent 50%);background-position:calc(100% - 13px) 19px,calc(100% - 8px) 19px;background-size:5px 5px;background-repeat:no-repeat}
.shop-quantity select{width:138px}
.shop-hero{background:#282e36;border:1px solid #b28d4c;border-top:3px solid #e9b54a;padding:11px 13px 12px;margin:0 0 18px;min-width:0;box-shadow:0 4px #121a24}
.shop-hero-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;min-width:0}
.shop-kicker{color:#d6b674;letter-spacing:.09em;font-size:12px;line-height:1.2}
.shop-level{color:#c6c9bd;font-size:12px;text-align:right}
.shop-hero-title{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:7px 0;border:0;box-shadow:none;background:transparent;color:#f3dbad;text-align:left;min-height:64px}
.shop-hero-title:active:enabled{transform:none}
.shop-hero-title>span:nth-child(2){min-width:0;flex:1}
.shop-hero-title strong{display:block;font-size:17px;line-height:1.2;overflow-wrap:anywhere}
.shop-hero-title small{display:block;color:#aebfc5;font-size:12px;line-height:1.25;margin-top:4px}
.shop-hero-art{display:grid;place-items:center;width:56px;height:56px;flex:0 0 56px}
.shop-upgrade-art{width:56px!important;height:56px!important;display:flex!important;align-items:center;justify-content:center}
.shop-upgrade-art img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.shop-info-mark{display:grid;place-items:center;border:1px solid #81969f;color:#b9d4df;flex:0 0 20px;width:20px;height:20px;font:700 13px/1 'Courier New',monospace}
.shop-hero-gain{color:#f3d37f;font-size:clamp(23px,7.2vw,30px);line-height:1.1;letter-spacing:-.035em;margin:7px 0 10px;font-weight:900;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.shop-comparison{margin:0 0 9px;font-variant-numeric:tabular-nums}
.shop-comparison>span{display:block;font-size:12px;line-height:1.2;color:#aabcc6;margin-bottom:3px}
.shop-comparison>div{display:flex;flex-wrap:wrap;gap:4px 7px;align-items:baseline;font-size:16px;line-height:1.2}
.shop-comparison s,.shop-purchase-receipt s{text-decoration:none;color:#b6bbb6;font-size:14px;font-weight:400}
.shop-comparison b{color:#d3e6be}
.shop-comparison small{color:#bec9c8;font-size:12px}
.shop-comparison-arrow{color:#829aa9;font-size:16px}
.shop-reason{font-size:13px;line-height:1.4;color:#c8c8bb;margin:5px 0 12px;overflow-wrap:anywhere}
.shop-progress-copy{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:5px;font-size:12px;line-height:1.3;color:#c5ccd0;font-variant-numeric:tabular-nums}
.shop-progress-copy b{font-size:12px;color:#dfc484;text-align:right}
.shop-affordability,.shop-mini-meter{height:7px;width:100%;background:#111b28;border:1px solid #4a5965;overflow:hidden}
.shop-affordability i,.shop-mini-meter i{display:block;height:100%;background:#e9b54a;transition:width 180ms linear}
.shop-hero.ready .shop-affordability i,.shop-gym.ready .shop-mini-meter i,.shop-combo.active .shop-mini-meter i{background:#a5cd89}
.shop-hero.ready #shopHeroStatus{color:#b9db93}
.shop-buy{width:100%;min-height:48px;padding:9px 10px;margin:11px 0 0;border:1px solid #e6c575;border-bottom:4px solid #78602e;border-radius:0;background:#e9b54a;color:#252c35;box-shadow:none;font:900 16px/1.3 'Courier New',monospace;text-shadow:none;overflow-wrap:anywhere}
.shop-hero.ready .shop-buy,.shop-gym.ready .shop-buy{background:#8bb36e;border-color:#cfdfa7;border-bottom-color:#42633f;color:#17251e}
.shop-buy:disabled{opacity:1;background:#303f4d;border-color:#637687;border-bottom-color:#192736;color:#aebbc4;cursor:default}
.shop-hero.locked .shop-affordability i{background:#7d8790}
.shop-pinned{display:block;color:#a2bccb;font-size:12px;text-align:center;margin-top:7px;letter-spacing:.07em}
.shop-alternatives{margin:0 0 17px}
.shop-alternatives h2{font:700 12px/1.2 'Courier New',monospace;letter-spacing:.09em;color:#a9bdc8;margin:0 0 6px}
.shop-option{display:flex;width:100%;min-width:0;min-height:76px;align-items:center;gap:9px;padding:11px 0;border:0;border-bottom:1px solid #46525e;border-radius:0;background:transparent;color:#f3dbad;box-shadow:none;text-align:left}
.shop-option:hover,.shop-option:focus-visible{background:#2a3541}
.shop-option:active:enabled{transform:none;background:#324453}
.shop-option-art{display:grid;place-items:center;flex:0 0 36px;width:36px;height:40px}
.shop-list-art{display:flex!important;align-items:center;justify-content:center;width:36px!important;height:36px!important}
.shop-list-art img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.shop-option-copy{flex:1;min-width:0}
.shop-option-copy strong{display:block;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.shop-option-copy>span{display:block;color:#b2c6cd;font-size:12px;line-height:1.3;margin-top:3px;overflow-wrap:anywhere}
.shop-option-end{flex:0 0 auto;max-width:99px;text-align:right;font-variant-numeric:tabular-nums}
.shop-option-end b{display:block;color:#e8c579;font-size:14px;line-height:1.2;overflow-wrap:anywhere}
.shop-option-end small{display:block;color:#9bafba;font-size:12px;line-height:1.25;margin-top:4px;max-width:99px;overflow-wrap:anywhere}
.shop-option.ready .shop-option-end b{color:#b9db93}
.shop-option.locked .shop-option-end b,.shop-option.complete .shop-option-end b{color:#a8b6b7}
.shop-option.complete .shop-option-copy>span{color:#94b89e}
.shop-milestone{display:flex;align-items:flex-start;gap:12px;width:100%;padding:15px 0 6px;border:0;border-top:1px solid #766341;border-radius:0;background:transparent;color:#f3dbad;box-shadow:none;text-align:left;min-height:72px}
.shop-milestone>span:last-child{display:block;flex:1;min-width:0}
.shop-milestone small{display:block;color:#d8af67;font-size:12px;letter-spacing:.1em;margin-bottom:4px}
.shop-milestone strong{display:block;font-size:15px;line-height:1.25;overflow-wrap:anywhere}
.shop-milestone b{display:block;color:#b7cfd8;font-size:13px;line-height:1.3;margin-top:4px}
.shop-milestone>span>span{display:block;color:#aab7ba;font-size:12px;line-height:1.35;margin-top:4px}
.shop-milestone-art{padding-top:10px}
.shop-catalog-tools{display:flex;align-items:flex-end;gap:10px;margin-bottom:11px}
.shop-catalog-tools>label:first-child{display:block;flex:1;min-width:0}
.shop-catalog-tools>label:first-child>span{display:block;color:#aabcc6;font-size:12px;letter-spacing:.08em;margin-bottom:4px}
.shop-catalog-tools>label:first-child select{display:block;width:100%}
.shop-catalog-list{padding-bottom:12px}
.shop-combo,.shop-gym{border-bottom:1px solid #596065;margin:0;padding:16px 0 21px}
.shop-collection-heading{display:flex;gap:11px;align-items:center;min-width:0}
.shop-collection-heading>div{min-width:0;flex:1}
.shop-collection-heading h2{margin:0;font-size:16px;line-height:1.25;color:#f3dbad;overflow-wrap:anywhere}
.shop-collection-heading>div>span{display:block;color:#c3b994;font-size:12px;line-height:1.3;margin-top:4px}
.shop-combo.active .shop-collection-heading>div>span{color:#b9db93}
.shop-combo>p,.shop-gym-benefit{font-size:14px;color:#c5d8d7;line-height:1.45;margin:12px 0}
.shop-requirements{padding:0;list-style:none;margin:10px 0 0}
.shop-requirements li>button,.shop-requirements li>span{display:flex;align-items:center;gap:8px;min-height:44px;width:100%;padding:6px 0;border:0;background:none;box-shadow:none;border-radius:0;text-align:left;color:#b7c4c9;font-size:13px}
.shop-requirements li>button>span,.shop-requirements li>span>span{flex:1;min-width:0}
.shop-requirements b{color:#be9e69;width:13px;font-size:17px}
.shop-requirements small{font-size:12px;white-space:nowrap}
.shop-requirements .done b,.shop-requirements .done small{color:#acd18f}
.shop-gym-art{width:76px;height:56px;flex:0 0 76px;overflow:hidden;border:1px solid #665b49}
.shop-gym-image{width:100%!important;height:100%!important;display:flex!important}
.shop-gym-image img{width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.shop-gym-requirement{font-size:13px;line-height:1.4;color:#cbb99a;margin:0 0 12px}
.shop-empty{padding:23px 14px;border-block:1px solid #687381;margin:10px 0 18px;text-align:center}
.shop-empty strong{font-size:18px;color:#e9b54a;letter-spacing:.05em}
.shop-empty p,.shop-empty-note{font-size:14px;line-height:1.5;color:#b9c7cc}
.shop-purchase-receipt{position:fixed;z-index:25;left:50%;bottom:calc(70px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(calc(100% - 28px),420px);padding:12px 15px;border:1px solid #a7cb8d;border-left:5px solid #a7cb8d;background:#21392f;box-shadow:0 4px 0 #101a20;color:#d6e6bc;pointer-events:none}
.shop-purchase-receipt>span{display:block;font-size:12px;letter-spacing:.09em;color:#c4dfab;margin-bottom:3px}
.shop-purchase-receipt>strong{display:block;font-size:15px;line-height:1.3;color:#f0e7bd}
.shop-purchase-receipt>b{display:block;font-size:21px;line-height:1.2;color:#d8f0b8;margin-top:4px}
.shop-purchase-receipt>div{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;font-size:14px;margin-top:5px}
.shop-purchase-receipt>div>strong{font-size:17px;color:#e9f6ce}
.shop-purchase-receipt>div>small{font-size:12px}
.shop-purchase-receipt>small{display:block;margin-top:4px;font-size:12px;color:#c1d4bf;line-height:1.3}
/* Shop details keep one readable effect per row and one primary action. */
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene){padding:19px 18px;background:#282e38;border:1px solid #b28d4c;border-top:4px solid #e9b54a;box-shadow:0 6px 0 #101821;max-height:calc(100dvh - 32px)}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene)>h2{font:900 21px/1.2 'Courier New',monospace;letter-spacing:.025em;color:#f3dbad;margin-bottom:15px;overflow-wrap:anywhere}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene)>p{font-size:14px;line-height:1.5;color:#c8cbbd;margin:13px 0;overflow-wrap:anywhere}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene) .pixel-btn{min-height:44px;font-size:14px;line-height:1.35;padding:10px 12px;border:1px solid #7696a9;border-bottom:3px solid #192837;box-shadow:none;text-shadow:none;color:#dbe5e4;background:#304b5d}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene) .pixel-btn.green{background:#8bb36e;border-color:#cfdfa7;border-bottom-color:#42633f;color:#17251e}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene) .pixel-btn:disabled{opacity:1;background:#303f4d;border-color:#637687;border-bottom-color:#192736;color:#aebbc4}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene) .modal-actions{margin-top:19px;padding-top:13px;border-top:1px solid #53616a}
.modal:has(.shop-detail-heading,.shop-combo-reward,.shop-gym-scene) .modal-actions .pixel-btn{background:transparent;border:0;color:#a9cddd;font-size:12px}
.shop-detail-heading{display:flex;align-items:center;gap:13px;margin-bottom:17px;min-width:0}
.shop-detail-art{width:64px!important;height:64px!important;flex:0 0 64px;display:flex!important;align-items:center;justify-content:center}
.shop-detail-art img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.shop-detail-heading>div{min-width:0;flex:1}
.shop-detail-heading>div>span{display:block;font-size:12px;letter-spacing:.07em;color:#b4c8d1;margin-bottom:5px}
.shop-detail-heading>div>b{display:block;font-size:14px;color:#f0d59c;line-height:1.35}
.shop-detail-effects{margin:0 0 14px;padding:1px 0 13px;border-bottom:1px solid #59636b;font-variant-numeric:tabular-nums}
.shop-detail-effects .effect-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 10px;padding:11px 0 0}
.shop-detail-effects .effect-line+.effect-line{margin-top:4px}
.shop-detail-effects .effect-line>span{grid-column:1/-1;font-size:12px;color:#b5c9d1;line-height:1.35}
.shop-detail-effects .effect-line>b{font-size:17px;line-height:1.3;color:#f3dbad;overflow-wrap:anywhere}
.shop-detail-effects .effect-line>small{font-size:14px;line-height:1.3;color:#b9db93;text-align:right;overflow-wrap:anywhere}
.shop-detail-effects .effect-note{font-size:12px;line-height:1.45;color:#e3c784;margin-top:12px}
.shop-detail-progress{height:8px;border:1px solid #566670;background:#111b28;overflow:hidden;margin-top:16px}
.shop-detail-progress>i{display:block;height:100%;background:#e9b54a;transition:width 180ms linear}
.modal:has(#shopDetailBuy.green) .shop-detail-progress>i,.modal:has(#shopGymDetailBuy.green) .shop-detail-progress>i{background:#a5cd89}
.modal .shop-detail-status{font-size:12px!important;line-height:1.4!important;color:#c9d0ce!important;margin:7px 0 14px!important;font-variant-numeric:tabular-nums}
.shop-detail-controls{display:flex;flex-direction:column;gap:8px;margin-top:13px}
.shop-detail-controls #shopDetailBuy{min-height:48px;font-size:16px;font-weight:900}
.shop-detail-controls #shopDetailPin{border:1px solid #637c8c;background:transparent;font-size:12px;color:#b4cedc}
.shop-detail-combos{margin-top:17px;border-top:1px solid #69634e;padding-top:7px}
.shop-detail-combo{display:block;width:100%;min-height:44px;padding:10px 0;border:0;border-bottom:1px solid #4b5761;box-shadow:none;background:transparent;color:#d7c58e;font-size:13px;line-height:1.4;text-align:left;overflow-wrap:anywhere}
.shop-combo-reward{display:flex;gap:14px;align-items:center;padding:5px 0 15px;border-bottom:1px solid #6f684e}
.shop-combo-reward>b{font-size:23px;line-height:1.25;color:#d7e7ac;min-width:0;overflow-wrap:anywhere}
.shop-combo-step{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;margin:0;padding:12px 0;border:0;border-bottom:1px solid #53616a;background:transparent;box-shadow:none;color:#d2dee0;font-size:14px;line-height:1.4;text-align:left}
.shop-combo-step>span{min-width:0;flex:1;overflow-wrap:anywhere}
.shop-combo-step>b{color:#d1e6ac;font-size:12px;text-align:right}
.shop-gym-scene{width:100%;aspect-ratio:2/1;background:#182330;border:1px solid #827453;margin:8px 0 17px;overflow:hidden;image-rendering:pixelated}
.shop-gym-scene .shop-gym-art{display:block!important;width:100%!important;height:100%!important;flex:none;border:0}
.shop-gym-scene .shop-gym-art img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:pixelated}
.modal:has(.shop-gym-scene)>button{width:100%;margin-top:9px}
@media(max-width:360px){
 .shop-view #mainContent{padding-inline:11px}
 .shop-view .hud-summary{padding-inline:11px;gap:7px}
 .shop-view #cashTop{font-size:25px}.shop-view #incomeTop{font-size:21px}
 .shop-header h1{font-size:19px}
 .shop-hero{padding-inline:11px}
 .shop-hero-title strong{font-size:16px}
 .shop-hero-art,.shop-upgrade-art{width:48px!important;height:48px!important;flex-basis:48px}
 .shop-hero-gain{font-size:25px}
 .shop-option{gap:7px}
 .shop-option-end{max-width:87px}
}
@media(prefers-reduced-motion:reduce){.shop-affordability i,.shop-mini-meter i,.shop-detail-progress>i{transition:none}}
.reduced-motion .shop-affordability i,.reduced-motion .shop-mini-meter i,.reduced-motion .shop-detail-progress>i{transition:none}
