166 lines
3.0 KiB
CSS
166 lines
3.0 KiB
CSS
/* html/shop.css */
|
|
|
|
/* Hide helpers */
|
|
#shop-wrap.hidden { display: none; }
|
|
.hidden { display: none !important; }
|
|
|
|
/* Kill any “black frame” / overlay behind the card */
|
|
html, body {
|
|
background: transparent !important;
|
|
}
|
|
|
|
#shop-wrap {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
pointer-events: auto;
|
|
background: transparent !important;
|
|
z-index: 50;
|
|
}
|
|
|
|
/* If shop is open, hide ATM vignette even if wrap accidentally exists */
|
|
#shop-wrap:not(.hidden) ~ #wrap::before { display: none !important; }
|
|
#wrap::before { display: none !important; } /* temporary test */
|
|
|
|
/* Card (gang-tinted glass) */
|
|
.shop-card {
|
|
width: 520px;
|
|
border-radius: 16px;
|
|
padding: 18px;
|
|
|
|
/* Gang-tinted glass */
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(var(--gang-rgb, 10, 10, 10), 0.45),
|
|
rgba(10,10,10,0.60)
|
|
);
|
|
|
|
/* ✅ remove the frame */
|
|
border: none;
|
|
outline: none;
|
|
box-shadow: 0 10px 26px rgba(var(--gang-rgb, 10, 10, 10), 0.18);
|
|
|
|
color: #fff;
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
|
|
/* Header */
|
|
.shop-top {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.shop-title {
|
|
font-size: 20px;
|
|
font-weight: 800;
|
|
margin: 0;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.shop-sub {
|
|
font-size: 12px;
|
|
opacity: 0.85;
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.shop-balance {
|
|
text-align: right;
|
|
font-size: 12px;
|
|
opacity: 0.9;
|
|
}
|
|
.shop-balance .num {
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* Tabs */
|
|
.shop-tabs {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin: 12px 0 10px;
|
|
}
|
|
|
|
.shop-tab {
|
|
border: 1px solid rgba(255,255,255,0.14);
|
|
background: rgba(255,255,255,0.06);
|
|
color: #fff;
|
|
padding: 8px 10px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
user-select: none;
|
|
}
|
|
|
|
.shop-tab.active {
|
|
background: rgba(var(--gang-rgb, 10, 10, 10), 0.28);
|
|
border-color: rgba(var(--gang-rgb, 10, 10, 10), 0.55);
|
|
}
|
|
|
|
/* List */
|
|
.shop-list {
|
|
max-height: 360px;
|
|
overflow: auto;
|
|
border-top: 1px solid rgba(255,255,255,0.10);
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.shop-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
}
|
|
|
|
.shop-item-name { font-weight: 700; }
|
|
|
|
.shop-item-sub {
|
|
font-size: 12px;
|
|
opacity: 0.85;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.shop-price {
|
|
font-weight: 800;
|
|
margin-right: 10px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Buttons */
|
|
.shop-buy {
|
|
border: 1px solid rgba(255,255,255,0.14);
|
|
background: rgba(255,255,255,0.08);
|
|
color: #fff;
|
|
padding: 8px 12px;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-weight: 700;
|
|
}
|
|
.shop-buy:hover {
|
|
background: rgba(255,255,255,0.12);
|
|
}
|
|
|
|
/* Footer */
|
|
.shop-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 12px;
|
|
gap: 10px;
|
|
font-size: 12px;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.shop-close {
|
|
cursor: pointer;
|
|
text-decoration: underline;
|
|
opacity: 0.9;
|
|
}
|