/* MTTA — THE BLANK · shop.css (SOZO Coin shop). Design px inside the 1280x720 #ui box. */
#scr-shop .sp-panel { position: absolute; left: 150px; top: 100px; width: 1100px; height: 608px; padding: 16px 22px 20px; display: flex; flex-direction: column; gap: 12px; animation: pop 0.28s var(--ease-pop) both; }
#scr-shop .sp-head { display: flex; align-items: center; gap: 16px; }
#scr-shop .sp-head h2 { font: 800 34px/1 var(--font); letter-spacing: 0.04em; margin: 0 auto 0 0; color: var(--ink); }
#scr-shop .sp-back { padding: 0 22px; font-size: 24px; }
#scr-shop .sp-tabs { display: flex; gap: 10px; }
#scr-shop .sp-tab { min-height: 100px; padding: 0 22px; font: 700 24px/1.1 var(--font); color: var(--ink); background: transparent; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; transition: transform 0.12s var(--ease-pop); }
#scr-shop .sp-tab:active { transform: scale(0.95); }
#scr-shop .sp-tab.act { background: var(--ink); color: var(--ivory); box-shadow: none; }
#scr-shop .sp-tab.focus, #scr-shop .sp-card.focus, #scr-shop .sp-buy.focus { outline: 3px solid #c9a96e; outline-offset: 2px; }
#scr-shop .sp-note { font: 600 22px/1.3 var(--font); color: var(--g2); padding: 8px 14px; border-left: 4px solid #c9a96e; background: rgba(0,0,0,0.04); }
#scr-shop .sp-grid { flex: 1; min-height: 0; display: grid; gap: 14px; }
#scr-shop .sp-grid[data-page="coins"] { grid-template-columns: repeat(5, 1fr); }
#scr-shop .sp-grid[data-page="upgrades"] { grid-template-columns: repeat(3, 1fr); }
#scr-shop .sp-grid[data-page="featured"] { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
#scr-shop .sp-card { position: relative; min-height: 0; background: #fbfaf7; border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; overflow: hidden; animation: pop 0.3s var(--ease-pop) both; }
#scr-shop .sp-card.owned { opacity: 0.75; }
#scr-shop .sp-tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; font: 700 22px/1.2 var(--mono); color: #7a6130; border: 2px solid #c9a96e; border-radius: 4px; background: #fff; z-index: 1; }
#scr-shop .sp-ic { width: 120px; height: 120px; flex: none; display: flex; align-items: center; justify-content: center; margin-top: 30px; }
#scr-shop .sp-ic img { width: 100%; height: 100%; object-fit: contain; }
#scr-shop .sp-svg { color: var(--ink); }
#scr-shop .sp-svg svg { width: 84px; height: 84px; }
.sp-quad { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; }
.sp-quad img, .sp-quad .sp-ph { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #efece6; display: block; }
#scr-shop .sp-txt { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
#scr-shop .sp-name { font: 800 26px/1.15 var(--font); color: var(--ink); }
#scr-shop .sp-big { font: 800 38px/1 var(--mono); color: var(--ink); letter-spacing: 0.02em; }
#scr-shop .sp-desc { font: 500 22px/1.25 var(--font); color: var(--g2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
#scr-shop .sp-buy { width: 100%; padding: 0 8px; font-size: 24px; letter-spacing: 0; text-transform: none; white-space: normal; line-height: 1.15; text-align: center; flex: none; }
#scr-shop .sp-buy.off { opacity: 0.45; }
/* featured: one row per card (icon | text | price) */
#scr-shop .sp-grid[data-page="featured"] .sp-card { flex-direction: row; text-align: left; padding: 10px 12px; gap: 12px; }
#scr-shop .sp-grid[data-page="featured"] .sp-ic { width: 96px; height: 96px; margin: 0; }
#scr-shop .sp-grid[data-page="featured"] .sp-txt { align-items: flex-start; justify-content: center; gap: 2px; }
#scr-shop .sp-grid[data-page="featured"] .sp-tag { position: static; font-size: 22px; padding: 0 8px; line-height: 1.2; }
#scr-shop .sp-grid[data-page="featured"] .sp-name { font-size: 24px; }
#scr-shop .sp-grid[data-page="featured"] .sp-desc { -webkit-line-clamp: 1; }
#scr-shop .sp-grid[data-page="featured"] .sp-buy { width: 160px; min-height: 100px; align-self: center; }
/* detail and gain modals */
.sp-detail { display: flex; gap: 24px; align-items: flex-start; }
.sp-detail .sp-ic { width: 160px; height: 160px; flex: none; }
.sp-detail .sp-ic img { width: 100%; height: 100%; object-fit: contain; }
.sp-detail ul { margin: 0; padding: 0 0 0 26px; font: 500 26px/1.5 var(--font); color: var(--ink); }
.sp-detail .sp-dtag { list-style: none; margin-left: -26px; margin-top: 8px; color: #7a6130; font-weight: 700; }
.sp-msg { font: 500 24px/1.4 var(--font); color: var(--g2); margin: 6px 0 0; }
.sp-gain { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.sp-grow { position: relative; display: flex; align-items: center; gap: 16px; animation: pop 0.4s var(--ease-pop) both; }
.sp-grow > img { width: 84px; height: 84px; object-fit: contain; }
.sp-grow b { font: 800 40px/1 var(--mono); color: var(--ink); }
.sp-fly { position: absolute; left: 20px; top: 20px; width: 44px; height: 44px; pointer-events: none; animation: spFly 0.8s ease-out both; }
@keyframes spFly { 0% { transform: translate(0, 0) scale(0.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
.sp-gitems { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.sp-gi { width: 140px; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 22px/1.2 var(--font); color: var(--ink); text-align: center; }
.sp-gi img, .sp-gi .sp-ph { width: 110px; height: 110px; object-fit: contain; background: #efece6; border-radius: 8px; display: block; }
/* home entry: only when the platform shop is on */
#scr-home .h-shop { display: none; }
body.shop-on #scr-home .h-shop { display: inline-flex; }
body[data-screen="shop"] #nav .nv { opacity: 0.85; }
