/* item shop of the site (2026-10-18): one framed window like the reference shop - top bar (logo, coins, user panel),
   tabs + search, categories on the left, cards with the game icons */
.shop-page { display: flex; flex-direction: column; align-items: center; padding: 34px 16px; }
.s-app { position: relative; width: 1080px; max-width: 100%; background: rgba(18, 14, 11, .93); border: 1px solid rgba(225, 190, 142, .28); border-radius: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.65); overflow: hidden; }
.s-top { display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 0 0 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)); }
.s-logo { font: 900 30px/1 var(--font-logo); letter-spacing: 2px; background: linear-gradient(180deg, #fff3d6, #f0cf8c 35%, #b9833d 60%, #f2d79c 80%, #8a5c27); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 0 #3b2611); margin-right: auto; }
.s-coins { display: flex; align-items: center; gap: 8px; padding: 6px 18px; min-width: 110px; border-radius: 20px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); font-weight: 700; color: #fff; }
/* (2026-10-19) the account the shop is logged in with, before the coins */
.s-user { display: flex; align-items: center; gap: 7px; max-width: 200px; padding: 6px 14px; border-radius: 20px; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--gold); font-weight: 600; font-size: 14px; white-space: nowrap; }
.s-user span { overflow: hidden; text-overflow: ellipsis; }
.s-user .bi { font-size: 17px; color: #e1be8e; }
.s-user:hover { color: #fff; }
.s-back { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-2); color: #e9dcc5; font-size: 13px; font-weight: 500; }
.s-back:hover { color: #fff; background: rgba(255,255,255,.05); }
.s-menu-btn { width: 66px; height: 66px; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; cursor: pointer; background: #6a2c1c; border-left: 1px solid rgba(0,0,0,.4); }
.s-menu-btn:hover { background: #7d3522; }
i.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #e1b04a 45%, #8a5a14 100%); box-shadow: inset 0 0 0 1px rgba(60,35,5,.6); vertical-align: -2px; }
i.coin.big { width: 26px; height: 26px; vertical-align: -6px; }

.s-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 22px; }
.s-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.s-tabs a { display: flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: #eadfcd; font-size: 12.5px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.s-tabs a.home { padding: 0 14px; font-size: 15px; }
.s-tabs a:hover { color: #fff; }
.s-tabs a.on { background: linear-gradient(180deg, #f1d9a9, #c99a5c); color: #2a1d10; border-color: transparent; }
.s-search { position: relative; width: 260px; }
.s-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.s-search input { width: 100%; height: 40px; padding: 0 12px 0 36px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); color: #fff; font: 14px var(--font); }
.s-search input:focus { outline: none; border-color: var(--gold-2); }

.s-body { display: flex; gap: 18px; padding: 0 22px 22px; min-height: 470px; }
.s-cats { width: 170px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; max-height: 470px; overflow-y: auto; padding-right: 4px; }
.s-cats a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(0,0,0,.28); color: #eadfcd; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.s-cats a img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
.s-cats a span { flex: 1; line-height: 1.2; }
.s-cats a i { color: var(--muted); font-size: 11px; }
.s-cats a:hover, .s-cats a.on { border-color: rgba(225,190,142,.5); background: rgba(225,190,142,.08); color: #fff; }
.s-main { flex: 1; min-width: 0; }
.s-main .notice { margin-bottom: 14px; }

.s-home { display: grid; grid-template-columns: 1.7fr 1fr; gap: 14px; }
.s-banner { position: relative; min-height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: url("/assets/news/bosses.jpg") center / cover; display: flex; align-items: flex-end; color: #fff; }
.s-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,8,6,.85), rgba(10,8,6,.15)); }
.s-banner-text { position: relative; padding: 22px; }
.s-kicker { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #f0e2c8; }
.s-kicker .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: 4px; }
.s-banner h2 { margin: 6px 0 8px; font-size: 21px; }
.s-banner span { font-size: 13px; color: #f0e2c8; }
.s-banner:hover { color: #fff; }
.s-coins-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid rgba(225,190,142,.35); background: radial-gradient(circle at 50% 0%, rgba(225,190,142,.18), rgba(0,0,0,.35) 70%); text-align: center; padding: 18px; }
.s-coins-title { font: 900 22px var(--font-logo); color: var(--gold); letter-spacing: 1px; }
.s-coins-value { font-size: 30px; font-weight: 700; color: #fff; }
.s-coins-note { font-size: 12px; color: var(--muted); }

.s-section-head { display: flex; align-items: center; gap: 14px; margin: 20px 0 12px; }
.s-section-head h3 { margin: 0; font-size: 20px; padding-left: 12px; border-left: 3px solid var(--gold); }
.s-pill { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line-2); color: #eadfcd; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.s-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.s-row .s-card { scroll-snap-align: start; }
.s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.s-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(36,29,23,.9), rgba(20,16,13,.95)); color: #fff; text-align: center; transition: border-color .2s, transform .2s; }
.s-card:hover { border-color: rgba(225,190,142,.55); transform: translateY(-2px); color: #fff; }
.s-badges { width: 100%; display: flex; justify-content: space-between; height: 20px; }
.b-new, .b-hot { padding: 2px 9px; border-radius: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; }
.b-new { color: #7fe08a; background: rgba(40,110,50,.35); border: 1px solid rgba(111,208,103,.5); }
.b-hot { color: #ff8f7a; background: rgba(140,40,30,.35); border: 1px solid rgba(220,90,70,.55); box-shadow: 0 0 10px rgba(220,90,70,.35); }
.s-icon { width: 54px; height: 54px; margin-top: -18px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #0f0c0a; border: 1px solid rgba(225,190,142,.35); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.s-icon img { max-width: 40px; max-height: 46px; image-rendering: auto; }
.s-name { font-weight: 700; font-size: 15px; line-height: 1.25; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-desc { font-size: 12px; color: #cdbfa8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 18px; }
.s-price { margin-top: 6px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line); font-weight: 700; }
.s-price s { color: var(--muted); font-weight: 500; }
.s-price em { font-style: normal; font-size: 11px; color: #ff9b86; }
.s-price.big { width: auto; font-size: 20px; padding: 10px 18px; }

.s-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(225,190,142,.35); color: var(--muted); }
.s-crumb { padding: 5px 14px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3); color: #eadfcd; font-size: 13px; font-weight: 600; }
.s-crumb.on { background: linear-gradient(180deg, #f1d9a9, #c99a5c); color: #2a1d10; border-color: transparent; }

.s-detail { display: flex; gap: 24px; padding: 20px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); }
.s-detail-icon { width: 110px; height: 110px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #0f0c0a; border: 1px solid rgba(225,190,142,.4); }
.s-detail-icon img { transform: scale(1.6); }
.s-detail-text { flex: 1; }
.s-detail-text h2 { font-size: 22px; margin-bottom: 8px; }
.s-detail-text p { color: #ddd2c1; margin: 0 0 12px; }
.s-facts { margin: 0 0 16px; padding-left: 18px; color: var(--muted); font-size: 13px; }
.s-buy { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.s-count { display: flex; align-items: center; gap: 8px; margin: 0; }
.s-count input { width: 80px; height: 40px; margin: 0; }
.s-mini { width: 24px; height: 24px; object-fit: contain; vertical-align: middle; }

.s-foot { padding: 14px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

/* ---- user panel (right side) */
.s-panel-toggle { display: none; }
.s-panel { position: absolute; top: 66px; right: 0; bottom: 0; width: 320px; padding: 16px; background: rgba(12,10,8,.98); border-left: 1px solid var(--line-2); transform: translateX(105%); transition: transform .25s; z-index: 5; display: flex; flex-direction: column; gap: 10px; }
.s-panel-toggle:checked ~ .s-app .s-panel { transform: none; }
.s-panel-head { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgba(225,190,142,.4); font-size: 18px; color: #fff; }
.s-close { margin-left: auto; cursor: pointer; color: var(--muted); font-size: 16px; }
.s-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.s-langs a { white-space: nowrap; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); color: #eadfcd; font-size: 13px; font-weight: 600; }
.s-langs a.on { border-color: rgba(225,190,142,.55); color: #fff; }
.s-panel-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: #eadfcd; font: 600 13.5px var(--font); text-align: left; cursor: pointer; }
.s-panel-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.s-panel form { margin: 0; }
.s-count-badge { margin-left: auto; padding: 1px 10px; border-radius: 10px; background: var(--gold-2); color: #2a1d10; font-size: 12px; }

/* ---- login of the shop */
.s-login-app { width: 820px; }
.s-login { width: 400px; max-width: calc(100% - 32px); margin: 36px auto; padding: 24px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); }
.s-login h2 { font-size: 22px; font-weight: 500; }
.s-login label { margin: 6px 0 6px; font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #ddd3c4; }
.s-login .cf-turnstile { margin: 6px 0 16px; }

@media (max-width: 860px) {
	.s-body { flex-direction: column; }
	.s-cats { width: 100%; max-height: none; flex-direction: row; overflow-x: auto; }
	.s-cats a { flex-shrink: 0; }
	.s-home { grid-template-columns: 1fr; }
	.s-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.s-row { grid-auto-columns: 46%; }
	.s-bar { flex-direction: column; align-items: stretch; }
	.s-search { width: 100%; }
	.s-back span { display: none; }
}
@media (max-width: 520px) {
	.s-grid { grid-template-columns: 1fr; }
	.s-detail { flex-direction: column; align-items: center; text-align: center; }
	.s-buy { justify-content: center; }
}

/* (dark scroll bars inside the shop) */
.s-row, .s-cats, .s-panel { scrollbar-width: thin; scrollbar-color: #6b5435 transparent; }
.s-row::-webkit-scrollbar, .s-cats::-webkit-scrollbar { height: 6px; width: 6px; }
.s-row::-webkit-scrollbar-thumb, .s-cats::-webkit-scrollbar-thumb { background: #6b5435; border-radius: 3px; }
.s-row::-webkit-scrollbar-track, .s-cats::-webkit-scrollbar-track { background: transparent; }

/* donations */
a.s-coins { text-decoration: none; }
a.s-coins .bi { margin-left: 4px; color: #7fd36f; }
.s-donate { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 16px; border-radius: 8px; background: linear-gradient(180deg, #e6c890, #c09a58); color: #24190d; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; }

/* count buttons, total, free items, donate tab */
.s-count input { width: 64px; text-align: center; -moz-appearance: textfield; }
.s-count input::-webkit-outer-spin-button, .s-count input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.s-step { width: 38px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--gold); font-size: 18px; cursor: pointer; }
.s-step:hover { border-color: var(--gold); color: #fff; }
.s-total { padding: 9px 14px; border-radius: 8px; background: rgba(225,190,142,.1); border: 1px solid rgba(225,190,142,.3); color: #f0e8dc; font-weight: 600; }
.s-total b { color: var(--gold); font-size: 18px; }
.s-price.free { color: #8fe387; }
.s-price.free i { color: #8fe387; }
.s-tabs a.donate { color: #f0d39c; border-color: rgba(225,190,142,.4); gap: 6px; }
.s-main .panel { margin-bottom: 16px; }

/* (2026-10-20) PayPal buttons in the donation dialog: PayPal + card form on the page */
#donate-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
.pp-area { margin-top: 14px; }
.pp-hint { margin: 0 0 10px; }
.pp-hint.pp-warn { color: #f6c4b9; }
.pp-button { margin-bottom: 8px; }
.pp-error { margin: 10px 0 0; }

/* purchase confirmation */
.buy-dialog-item { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.buy-dialog-item img { width: 44px; height: 44px; object-fit: contain; padding: 4px; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); }
.buy-dialog-text { margin: 0; font-size: 15px; color: #fff; line-height: 1.5; }

@media (max-width: 960px) { .s-user { max-width: 130px; padding: 6px 10px; font-size: 13px; } }
@media (max-width: 520px) { .s-user span { display: none; } }
