:root {
  --thumb-light: url("../../images/events/halloween-2026/v2/color-mode-switcher/thumb/light.png");
  --thumb-dark: url("../../images/events/halloween-2026/v2/color-mode-switcher/thumb/dark.png");
  --frame-360: url("../../images/events/halloween-2026/v2/promo-banner/frame-360-light.svg");
  --frame-720: url("../../images/events/halloween-2026/v2/promo-banner/frame-720-light.svg");
  --frame-1024: url("../../images/events/halloween-2026/v2/promo-banner/frame-1024-light.svg");
  --frame-1440: url("../../images/events/halloween-2026/v2/promo-banner/frame-1440-light.svg");
  --blue: #1453ff;
  --blue-600: #3c6df0;
  --blue-700: #2f5ad4;
  --blue-soft: #eef3ff;
  --blue-soft-2: #dfe9ff;
  --bg: #ffffff;
  --bg-soft: #f5f6fa;
  --bg-soft-2: #eef0f6;
  --card: #ffffff;
  --line: #e8ebf2;
  --line-2: #dfe3ec;
  --text: #000000;
  --text-2: #3d4350;
  --muted: #828794;
  --green: #00a846;
  --green-soft: #e7f8ee;
  --red: #ee4b4b;
  --red-soft: #fdecec;
  --gold: #f0b429;
  --shadow-sm: 0 2px 8px rgba(22, 24, 29, .05);
  --shadow: 0 10px 30px rgba(22, 24, 29, .07);
  --shadow-lg: 0 24px 60px rgba(22, 24, 29, .14);
  --r-xl: 24px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --hdr: 96px;
  --search-bg: #f3f4f8;
  --hdr-bg: #f2f4f7;
  --field: #f2f4f7;
  --warn-soft: #fff1dc;
  --switch-bg: #e4e7ee;
  --switch-bg-hover: #d9dde6;
  --muted-nav: #828794;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
  --muted-nav: #a4a8b2;
  --frame-360: url("../../images/events/halloween-2026/v2/promo-banner/frame-360-dark.svg");
  --frame-720: url("../../images/events/halloween-2026/v2/promo-banner/frame-720-dark.svg");
  --frame-1024: url("../../images/events/halloween-2026/v2/promo-banner/frame-1024-dark.svg");
  --frame-1440: url("../../images/events/halloween-2026/v2/promo-banner/frame-1440-dark.svg");
  --blue: #5286ff;
  --blue-600: #5286ff;
  --blue-700: #4076f5;
  --blue-soft: #1b2436;
  --blue-soft-2: #22304a;
  --bg: #14161a;
  --bg-soft: #1b1c21;
  --bg-soft-2: #1e2027;
  --hdr-bg: #252630;
  --field: #282933;
  --search-bg: #151619;
  --warn-soft: #3a2c16;
  --switch-bg: #3a3c47;
  --switch-bg-hover: #454854;
  --card: #1e2027;
  --line: #2b2d36;
  --line-2: #343743;
  --text: #f1f3fa;
  --text-2: #c7cdd9;
  --muted: #8b93a5;
  --green: #2ecc71;
  --green-soft: #14281d;
  --red: #ff6b6b;
  --red-soft: #2a1719;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(100% - 40px, 1520px); margin: 0 auto; padding: 0; }
.app { min-height: 60vh; padding: 20px 0 64px; }

.hdr { position: sticky; top: 0; z-index: 40; padding: 20px 0 0; pointer-events: none; }
.hdr > .wrap { pointer-events: auto; }
.hdr-in { display: flex; align-items: center; gap: 24px; height: 76px; padding: 0 24px; border-radius: 20px; position: relative; isolation: isolate; }
.hdr-in::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: color-mix(in srgb, var(--hdr-bg) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; }
.hdr-brand { display: flex; align-items: center; gap: 16px; flex: none; }

.brand { display: inline-flex; align-items: center; flex: none; color: #5286ff; }
.brand-svg { width: 133px; height: 32px; fill: none; stroke: none; }

.tswitch { --thumb: var(--thumb-light); position: relative; flex: none; display: inline-flex; align-items: center; width: 56px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: rgba(133, 147, 171, .3); transition: background .18s; }
.tswitch:hover { background: rgba(133, 147, 171, .42); }
.tswitch:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.tswitch-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--thumb) center / cover no-repeat; transform: translateX(2px); transition: transform .22s ease; pointer-events: none; }
.tswitch[aria-checked="true"] { --thumb: var(--thumb-dark); }
.tswitch[aria-checked="true"] .tswitch-thumb { transform: translateX(26px); }

.hsearch { position: relative; display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 13px; background: var(--search-bg); border: 1px solid transparent; cursor: text; transition: border-color .18s; }
.hsearch:hover { border-color: var(--line-2); }
.hsearch:focus-within { border-color: var(--blue); }
.hsearch-ico { width: 24px; height: 24px; fill: currentColor; stroke: none; color: #8593ab; transition: color .18s; }
.hsearch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 500; text-overflow: ellipsis; }
.hsearch input::placeholder { color: var(--muted); }
.hsearch input::-webkit-search-cancel-button, .hsearch input::-webkit-search-decoration { -webkit-appearance: none; }
.hsearch-close { display: none; flex: none; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: var(--bg-soft-2); color: var(--muted); }
.hsearch-close svg { width: 16px; height: 16px; }

.hnav { display: flex; align-items: center; gap: 24px; flex: none; }
.hnav a { display: flex; flex-direction: column; align-items: center; gap: 0; color: var(--muted-nav); font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; transition: color .18s; }
.hnav a:hover, .hnav a.on { color: var(--blue); }
.hnav a:active .hnav-ico { transform: scale(.92); }
.hnav-ico { position: relative; display: grid; place-items: center; width: 32px; height: 32px; transition: transform .12s; }
.hnav-ico > svg { width: 32px; height: 32px; stroke-width: 1.7; color: var(--muted); transition: color .18s; }
.hnav a:hover .hnav-ico > svg, .hnav a.on .hnav-ico > svg { color: var(--blue); }
.hnav-prize .hnav-ico > svg { width: 32px; height: 32px; }
.hnav-ico > img { width: 32px; height: 32px; object-fit: contain; }
.hnav-ico b { position: absolute; top: -2px; right: -10px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; border: 2px solid var(--hdr-bg); background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; line-height: 18px; text-align: center; }
.hnav-ico b[hidden] { display: none; }
.hnav-pill { min-width: 40px; padding: 0 6px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; line-height: 20px; text-align: center; }
.hnav-mob { display: none !important; }
.hnav a.hnav-prize, .hnav a.hnav-prize:hover, .hnav a.hnav-prize.on { color: var(--text-2); }
.hnav a.hnav-prize:active .hnav-ico { transform: none; }
.hnav .avatar { width: 32px; height: 32px; background: none; border: 0; border-radius: 0; overflow: visible; color: #8593ab; transition: color .18s; }
.hnav a:hover .avatar, .hnav a.on .avatar { color: var(--blue); }
.hnav .avatar img { border-radius: 50%; }
.hnav .avatar svg { width: 32px; height: 32px; }
.avatar { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 19px; height: 19px; }
.avatar-ph { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.avatar-img { position: absolute; inset: 0; border-radius: 50%; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 11px; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .18s, border-color .18s, color .18s, transform .1s; }
.btn:active { transform: scale(.985); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { filter: brightness(1.06); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(1.05); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text-2); }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 6px 0 20px; }
.page-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.page-head p { color: var(--muted); margin-top: 5px; font-size: 14px; }
.crumbs { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--blue); }
.crumbs svg { width: 13px; height: 13px; }

.promo { --frame: var(--frame-1440); position: relative; aspect-ratio: 3040 / 640; max-height: 320px; width: 100%; -webkit-mask-image: linear-gradient(#000, #000), var(--frame); mask-image: linear-gradient(#000, #000), var(--frame); -webkit-mask-size: 100% 100%, 100% 100%; mask-size: 100% 100%, 100% 100%; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-composite: source-out; mask-composite: subtract; }
.promo-track { position: absolute; inset: 0; }
.promo-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.promo-slide.on { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.promo-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50%) 50%; user-select: none; }
.promo-dots { position: absolute; z-index: 1; left: 50%; bottom: 8px; display: flex; gap: 4px; transform: translateX(-50%); pointer-events: none; }
.promo-dots button { position: relative; width: 30px; height: 12px; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; }
.promo-dots button::before, .promo-dots button::after { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; border-radius: 1px; }
.promo-dots button::before { background: rgba(255, 255, 255, .3); transition: background .18s; }
.promo-dots button:hover::before { background: rgba(255, 255, 255, .55); }
.promo-dots button::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.promo-dots button.past::after { transform: none; }
.promo.play .promo-dots button.on::after { animation: promo-fill var(--promo-delay, 6s) linear forwards; }
.promo.play:hover .promo-dots button.on::after { animation-play-state: paused; }
.promo:not(.play) .promo-dots button.on::after { transform: none; }
@keyframes promo-fill { to { transform: scaleX(1); } }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0 34px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.trust-item svg { width: 24px; height: 24px; color: var(--blue); }
.trust-item b { display: block; font-size: 13.5px; }
.trust-item span { font-size: 12px; color: var(--muted); }

.sec { margin-top: 36px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: 23px; font-weight: 800; letter-spacing: -.4px; }
.sec-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sec-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.sec-link svg { width: 16px; height: 16px; }

.tiles { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 13px 8px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); text-align: center; transition: border-color .18s, transform .18s, box-shadow .18s; }
.tile:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.tile img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.tile span { font-size: 11.5px; font-weight: 600; color: var(--text-2); line-height: 1.25; }
.tile b { font-size: 10.5px; color: var(--muted); font-weight: 600; }

.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gcard { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg-soft); min-height: 158px; display: flex; align-items: flex-end; padding: 16px; isolation: isolate; }
.gcard img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.gcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 24, .05) 10%, rgba(10, 14, 24, .82) 100%); }
.gcard:hover img.bg { transform: scale(1.04); }
.gcard-in { color: #fff; width: 100%; }
.gcard-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; margin-bottom: 10px; border: 1px solid rgba(255, 255, 255, .3); }
.gcard b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.gcard span { font-size: 12px; color: rgba(255, 255, 255, .78); }
.gcard .gcard-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; font-size: 11.5px; color: rgba(255, 255, 255, .85); }
.gcard .gcard-meta em { font-style: normal; font-weight: 700; }

.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pgrid.pgrid-5 { grid-template-columns: repeat(5, 1fr); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.pcard:hover { border-color: var(--blue-soft-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / .82; background: var(--bg-soft); overflow: hidden; }
.pcard-media img.art { width: 100%; height: 100%; object-fit: cover; }
.pcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(140deg, var(--blue-soft), var(--bg-soft)); }
.pcard-ph-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(15, 23, 42, .16); }
.pcard-logo { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 9px; object-fit: cover; background: #fff; border: 1px solid rgba(0, 0, 0, .06); }
.pcard-fav { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #5b6170; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.pcard-fav svg { width: 17px; height: 17px; }
.pcard-fav.on { color: #ff4d6a; }
.pcard-fav.on svg { fill: currentColor; }
.pcard-body { padding: 12px 13px 13px; display: flex; flex-direction: column; flex: 1; }
.pcard-cat { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .35px; }
.pcard-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin: 5px 0 9px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.pcard-seller { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.pcard-seller svg { width: 13px; height: 13px; color: var(--green); }
.pcard-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.pcard-price { font-size: 16px; font-weight: 800; color: var(--green); letter-spacing: -.3px; white-space: nowrap; }
.pcard-price small { font-size: 11px; font-weight: 700; }
.pcard-buy { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 700; font-size: 12.5px; }
.pcard:hover .pcard-buy { background: var(--blue); color: #fff; }
.pcard-badge { position: absolute; left: 12px; bottom: 10px; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .94); font-size: 10.5px; font-weight: 700; color: #1b2a4d; }

.band { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: center; margin-top: 34px; padding: 30px 34px; border-radius: var(--r-xl); background: linear-gradient(120deg, var(--blue-soft), var(--bg-soft)); border: 1px solid var(--line); }
.band h2 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.band p { color: var(--muted); margin: 8px 0 18px; max-width: 560px; }
.band-steps { display: flex; gap: 12px; flex-wrap: wrap; }
.band-step { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.band-step b { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; line-height: 1; padding-top: 1px; font-variant-numeric: tabular-nums; }
.band-visual { display: grid; place-items: center; }
.band-visual img { width: 150px; height: 150px; object-fit: contain; filter: drop-shadow(0 14px 24px rgba(60, 109, 240, .25)); }
.band-shield { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 180px; height: 180px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.band-shield svg { width: 54px; height: 54px; margin-bottom: 8px; color: var(--blue); }
.band-shield b { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.band-shield span { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }


.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; height: 44px; padding: 0 14px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--text); }
.tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--blue); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip svg { width: 15px; height: 15px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 16px 0; flex-wrap: wrap; }
.toolbar-l { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-r { display: flex; align-items: center; gap: 10px; }
.select { position: relative; }
.select select { appearance: none; height: 38px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); font-size: 13px; font-weight: 600; outline: 0; }
.select svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
.count-note { font-size: 13px; color: var(--muted); }

.catalog-layout { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: start; }
.side { position: sticky; top: calc(var(--hdr) + 12px); display: grid; gap: 16px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 15px; }
.side-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.side-list { display: grid; gap: 2px; }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.side-list a:hover { background: var(--bg-soft); color: var(--text); }
.side-list a.on { background: var(--blue-soft); color: var(--blue); }
.side-list small { color: var(--muted); font-size: 11px; }
.side-list img { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }

.game-hero { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--bg-soft); margin-bottom: 22px; position: relative; overflow: hidden; }
.game-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; z-index: 0; }
.game-hero > * { position: relative; z-index: 1; }
.game-hero .glogo { width: 110px; height: 110px; border-radius: 22px; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.game-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -.7px; }
.game-hero p { color: var(--muted); margin-top: 6px; max-width: 560px; }
.game-hero .gmeta { display: flex; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.game-hero .gmeta b { font-weight: 800; }
.game-hero .gmeta span { color: var(--muted); }

.product-layout { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
.pv-media { border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; position: relative; display: grid; place-items: center; }
.pv-media > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.pv-media .pv-logo { width: 168px; height: 168px; border-radius: 34px; object-fit: cover; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); position: relative; }
.pv-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pv-thumb { width: 72px; height: 72px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.pv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pv-thumb.on { border-color: var(--blue); }
.pv-info { margin-top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.pv-info h2 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.pv-info p { color: var(--text-2); font-size: 14px; }
.pv-specs { display: grid; gap: 10px; margin-top: 16px; }
.pv-spec { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.pv-spec svg { width: 17px; height: 17px; color: var(--green); margin-top: 1px; }
.buy-box { position: sticky; top: calc(var(--hdr) + 14px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.buy-cat { font-size: 11.5px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .4px; }
.buy-title { font-size: 18px; font-weight: 800; line-height: 1.3; margin: 6px 0 14px; letter-spacing: -.3px; }
.buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.buy-price b { font-size: 30px; color: var(--green); letter-spacing: -1px; }
.buy-price span { font-size: 13px; color: var(--muted); }
.buy-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.buy-actions { display: grid; gap: 9px; }
.buy-trust { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.buy-trust div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.buy-trust svg { width: 16px; height: 16px; color: var(--blue); }
.seller-card { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--bg-soft); }
.seller-card .avatar { width: 38px; height: 38px; }
.seller-card b { display: block; font-size: 13px; }
.seller-card span { font-size: 11.5px; color: var(--muted); }
.seller-card .badge { margin-left: auto; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge svg { width: 12px; height: 12px; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-gold { background: #fdf3d8; color: #a97800; }
html[data-theme="dark"] .badge-gold { background: #2a2413; color: #f0b429; }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-grey { background: var(--bg-soft-2); color: var(--muted); }

.filters-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); background: var(--bg-soft); }
.empty svg { width: 40px; height: 40px; color: var(--muted); }
.empty b { font-size: 16px; }
.empty span { font-size: 13px; color: var(--muted); max-width: 420px; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2, .panel-head h3 { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.panel-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.field { display: grid; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.field small { font-size: 11.5px; color: var(--muted); }
.input, .field input, .field textarea, .field select { width: 100%; height: 44px; padding: 0 13px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--bg); outline: 0; font-size: 14px; transition: border-color .16s; }
.field textarea { height: auto; min-height: 100px; padding: 11px 13px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: var(--blue); }
.field input[type="file"] { height: auto; padding: 9px 11px; font-size: 12.5px; color: var(--muted); background: var(--bg-soft); }
.field input[type="file"]::file-selector-button { margin-right: 10px; height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); color: var(--text); font-weight: 700; font-size: 12.5px; cursor: pointer; }
.field input[type="file"]::file-selector-button:hover { border-color: var(--blue); color: var(--blue); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.hint { font-size: 12px; color: var(--muted); }
.error-text { font-size: 12.5px; color: var(--red); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.switch input { width: 38px; height: 22px; appearance: none; border-radius: 20px; background: var(--line-2); position: relative; outline: 0; cursor: pointer; transition: background .16s; }
.switch input::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: transform .16s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { transform: translateX(16px); }

.pay-opt { position: relative; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 11px; cursor: pointer; transition: border-color .16s, background .16s; }
.pay-opt:hover { border-color: var(--blue-soft-2); }
.pay-opt.on { border-color: var(--blue); background: var(--blue-soft); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt-mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); flex: none; transition: border-color .16s; }
.pay-opt.on .pay-opt-mark { border-color: var(--blue); box-shadow: inset 0 0 0 4px var(--blue); background: var(--bg); }
.pay-opt-in { display: grid; gap: 2px; }
.pay-opt-in b { font-size: 13.5px; }
.pay-opt-in small { font-size: 11.5px; color: var(--muted); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--bg-soft); }
.tbl .num { font-weight: 700; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; }
.row-user { display: flex; align-items: center; gap: 9px; }
.row-user .avatar { width: 32px; height: 32px; }
.row-user b { font-size: 13px; display: block; }
.row-user span { font-size: 11px; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 25px; font-weight: 800; letter-spacing: -.6px; margin-top: 4px; }
.stat small { font-size: 11.5px; color: var(--muted); }
.stat.accent { background: linear-gradient(135deg, var(--blue), var(--blue-600)); border-color: transparent; color: #fff; }
.stat.accent span, .stat.accent small { color: rgba(255, 255, 255, .78); }

.deal-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.deal-main { display: grid; gap: 16px; }
.deal-head { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); }
.deal-head h1 { font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.deal-status { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.deal-steps { display: flex; gap: 4px; margin: 18px 0 8px; }
.deal-step { flex: 1; height: 5px; border-radius: 4px; background: var(--line-2); }
.deal-step.on { background: var(--blue); }
.deal-step.done { background: var(--green); }
.deal-step-labels { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--muted); }
.deal-step-labels b { font-weight: 700; color: var(--text-2); }
.lvl-bar { height: 8px; border-radius: 6px; background: var(--bg-soft-2); overflow: hidden; }
.lvl-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--blue-600)); transition: width .3s; }
.deal-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.deal-term { padding: 14px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); }
.deal-term span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.deal-term b { display: block; font-size: 14px; margin-top: 5px; word-break: break-word; }
.deal-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.deal-amount b { font-size: 26px; color: var(--green); letter-spacing: -.6px; }
.deal-amount span { font-size: 12px; color: var(--muted); }
.deal-side { position: sticky; top: calc(var(--hdr) + 14px); display: grid; gap: 14px; }
.deal-people { display: grid; gap: 10px; }
.deal-person { display: flex; align-items: center; gap: 10px; padding: 11px; border-radius: 11px; background: var(--bg-soft); }
.deal-person .avatar { width: 36px; height: 36px; }
.deal-person b { display: block; font-size: 13px; }
.deal-person span { font-size: 11px; color: var(--muted); }
.deal-person .badge { margin-left: auto; }
.deal-actions { display: grid; gap: 9px; }
.timeline { display: grid; gap: 0; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding-bottom: 14px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.tl-dot svg { width: 12px; height: 12px; }
.tl-item b { font-size: 12.5px; display: block; }
.tl-item span { font-size: 11px; color: var(--muted); }

.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100vh - var(--hdr) - 172px); min-height: 480px; }
.chat-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.chat-list-head { padding: 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chat-list-head b { font-size: 15px; }
.chat-items { overflow-y: auto; flex: 1; }
.chat-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; }
.chat-item:hover { background: var(--bg-soft); }
.chat-item.on { background: var(--blue-soft); }
.chat-item .avatar { width: 38px; height: 38px; }
.chat-item-in { min-width: 0; flex: 1; }
.chat-item b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item span { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item time { font-size: 10.5px; color: var(--muted); align-self: flex-start; }
.chat-main { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-top b { font-size: 14px; display: block; }
.chat-top span { font-size: 11.5px; color: var(--muted); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { max-width: 74%; padding: 10px 13px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; align-self: flex-start; word-break: break-word; }
.msg.me { align-self: flex-end; background: var(--blue); border-color: var(--blue); color: #fff; }
.msg time { display: block; font-size: 10px; opacity: .62; margin-top: 4px; }
.msg img { border-radius: 9px; margin-bottom: 6px; max-height: 240px; object-fit: cover; }
.msg .msg-ai { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; opacity: .7; margin-bottom: 3px; }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-input textarea { flex: 1; min-height: 42px; max-height: 120px; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: 11px; background: var(--bg); resize: none; outline: 0; font-size: 13.5px; }
.chat-input textarea:focus { border-color: var(--blue); }
.chat-send { width: 42px; height: 42px; border: 0; border-radius: 11px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); font-size: 13px; padding: 30px; }
.chat-note { padding: 8px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.chat-note svg { width: 14px; height: 14px; color: var(--blue); }

.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.profile-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.profile-card .avatar { width: 84px; height: 84px; margin: 0 auto 12px; }
.profile-card h1 { font-size: 20px; font-weight: 800; }
.profile-card .pusername { color: var(--muted); font-size: 13px; margin-top: 2px; }
.profile-card .pbadges { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.profile-menu { display: grid; gap: 3px; margin-top: 16px; text-align: left; }
.profile-menu a, .profile-menu button { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 0; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 600; color: var(--text-2); width: 100%; text-align: left; }
.profile-menu a:hover, .profile-menu button:hover { background: var(--bg-soft); color: var(--text); }
.profile-menu svg { width: 17px; height: 17px; color: var(--muted); }
.profile-main { display: grid; gap: 16px; }
.balance-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--blue), var(--blue-600)); color: #fff; }
.balance-hero span { font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.balance-hero b { display: block; font-size: 32px; letter-spacing: -1px; margin-top: 2px; }
.balance-hero .btn { background: #fff; color: var(--blue-700); }
.balance-hero .btn:hover { background: rgba(255, 255, 255, .9); }

.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.list-row-in { flex: 1; min-width: 0; }
.list-row b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row span { font-size: 11.5px; color: var(--muted); }
.list-row .num { font-weight: 800; white-space: nowrap; }

.auth-box { display: grid; gap: 14px; text-align: center; }
.auth-box .brand { justify-content: center; font-size: 30px; }
.auth-box p { font-size: 13px; color: var(--muted); }
.auth-box .auth-widget { display: flex; justify-content: center; min-height: 44px; }
.auth-box .auth-dev { display: grid; gap: 8px; text-align: left; border-top: 1px solid var(--line); padding-top: 14px; }
.auth-box .auth-dev summary { cursor: pointer; font-size: 12px; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(10, 14, 24, .55); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
.modal-card.wide { width: min(760px, 100%); }
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding-right: 40px; }
.modal-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.modal-head p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); display: grid; place-items: center; }
.modal-close svg { width: 16px; height: 16px; }


.page-skel { display: grid; gap: 16px; padding-top: 10px; }
.sk { height: 180px; border-radius: var(--r-lg); background: linear-gradient(90deg, var(--bg-soft) 25%, var(--bg-soft-2) 37%, var(--bg-soft) 63%); background-size: 400% 100%; animation: sk 1.3s infinite; }
.sk-hero { height: 300px; }
.sk-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sk-row .sk { height: 210px; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }


.admin-layout { display: grid; grid-template-columns: 232px 1fr; gap: 20px; align-items: start; }
.admin-nav { position: sticky; top: calc(var(--hdr) + 14px); display: grid; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.admin-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.admin-nav a:hover { background: var(--bg-soft); }
.admin-nav a.on { background: var(--blue-soft); color: var(--blue); }
.admin-nav svg { width: 16px; height: 16px; }
.admin-main { min-width: 0; display: grid; gap: 16px; }

.money-op { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.money-op input { width: 92px; height: 34px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-size: 12.5px; }
.mini-select { height: 34px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font-size: 12.5px; }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.stars .off { color: var(--line-2); }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 13.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { font-size: 13px; color: var(--muted); margin-top: 8px; }

.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.blue { color: var(--blue); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; }
.hide { display: none !important; }

@media (max-width: 1120px) {
  .hdr-in { gap: 18px; padding: 12px 18px; }
  .hnav { gap: 12px; }
  .tiles { grid-template-columns: repeat(6, 1fr); }
  .pgrid, .ggrid { grid-template-columns: repeat(3, 1fr); }
  .product-layout { grid-template-columns: 1fr 340px; }
}

@media (max-width: 960px) {
  :root { --hdr: 0px; }
  html.search-open { --hdr: 124px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hdr { padding: 8px 0; }
  .hdr-in { flex-wrap: wrap; gap: 10px; height: auto; padding: 10px 12px; border-radius: 18px; }
  .hdr-brand { width: 100%; gap: 10px; }
  .hnav-mob { display: flex !important; }
  .promo-dots { bottom: 12px; gap: 3px; }
  .promo-dots button { width: 14px; }
  .hnav-pill { min-width: 0; padding: 0 6px; font-size: 11px; line-height: 16px; }
  .hsearch { flex-basis: 100%; height: 44px; padding: 0 12px; gap: 10px; border-radius: 12px; }
  .hsearch input { font-size: 15px; }
  .hnav { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 45; gap: 0; padding: 4px 6px; border-radius: 28px; background: var(--hdr-bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .hnav a { flex: 1; min-width: 0; padding: 4px 2px 3px; font-size: 11.5px; color: var(--muted); }
  .hnav-ico { width: 26px; height: 26px; }
  .hnav-ico > svg { width: 24px; height: 24px; }
  .hnav-ico > img { width: 24px; height: 24px; }
  .hnav-ico b { top: -4px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10.5px; line-height: 14px; }
  .hnav .avatar { width: 26px; height: 26px; }
  .hnav .avatar svg { width: 26px; height: 26px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .deal-grid { grid-template-columns: 1fr; }
  .deal-side { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 260px 1fr; height: calc(100vh - var(--hdr) - 30px); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .brand-svg { width: 100px; height: 24px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile img { width: 40px; height: 40px; }
  .ggrid, .pgrid, .pgrid.pgrid-5 { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust-item { padding: 12px 14px; }
  .band { grid-template-columns: 1fr; padding: 24px 20px; }
  .band-visual { display: none; }
  .game-hero { grid-template-columns: 72px 1fr; padding: 18px; gap: 14px; }
  .game-hero .glogo { width: 72px; height: 72px; border-radius: 16px; }
  .game-hero h1 { font-size: 22px; }
  .game-hero .gmeta { gap: 10px; font-size: 12px; }
  .game-hero > .btn { grid-column: 1 / -1; width: 100%; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .page-head h1 { font-size: 22px; }
  .pv-media .pv-logo { width: 120px; height: 120px; border-radius: 24px; }
  .side { grid-template-columns: 1fr; }
  .form-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-list { max-height: 300px; }
  .chat-main { height: calc(100vh - var(--hdr) - 120px); min-height: 440px; }
  .modal-card { padding: 20px; }
  .deal-terms { grid-template-columns: 1fr; }
  .tbl th:nth-child(n+5), .tbl td:nth-child(n+5) { display: none; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .pgrid, .ggrid { gap: 10px; }
  .pcard-body { padding: 10px; }
  .pcard-title { font-size: 12.5px; }
  .pcard-price { font-size: 14.5px; }
  .pcard-buy { display: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .balance-hero { flex-direction: column; align-items: flex-start; }
  .profile-card { padding: 18px; }
}

@media (max-width: 360px) {
  .hdr-brand { gap: 6px; }
  .hnav { padding: 4px 2px; }
  .hnav a { font-size: 10.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 1279px) { .promo { --frame: var(--frame-1024); } }
@media (max-width: 1023px) { .promo { --frame: var(--frame-720); aspect-ratio: 2410 / 640; max-height: none; } }
@media (max-width: 719px) {
  .promo { --frame: var(--frame-360); aspect-ratio: 1694 / 640; width: auto; margin-right: -16px; margin-left: -16px; }
  .promo-slide img { object-position: var(--pos, 50%) 50%; }
}

@media (max-width: 960px) {
  .wrap { width: calc(100% - 32px); padding: 0; }
  .hdr { padding: 12px 0 0; }
  .app { padding-top: 16px; }
  .tswitch { width: 48px; height: 28px; }
  .tswitch-thumb { width: 24px; height: 24px; }
  .tswitch[aria-checked="true"] .tswitch-thumb { transform: translateX(22px); }
  .hdr-brand { flex-wrap: nowrap; }
  .hnav a { color: var(--muted); }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) and (max-width: 960px) {
  .wrap { width: min(100% - 40px, 1520px); }
}

@media (max-width: 1023px) {
  .hdr { position: relative; }
}

.ftr { margin-top: 40px; background: #f2f4f7; }
html[data-theme="dark"] .ftr { background: #282933; }
.ftr-in { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
.ftr-h { display: block; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--text); }
.ftr-cards { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.ftr-card { flex: none; width: 40px; height: 40px; stroke: none; color: var(--text); --color-text-primary: var(--text); }
.ftr-mid { display: flex; flex-direction: column; gap: 32px; }
.ftr-info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ftr-links { display: grid; grid-template-columns: auto auto; grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 20px; }
.ftr-links a { color: var(--text); font-size: 16px; line-height: 24px; transition: color .18s; }
.ftr-links a:hover { color: var(--blue); }
.ftr-soc { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ftr-icons { display: flex; align-items: center; gap: 16px; }
.ftr-icons a { display: block; flex: none; width: 40px; height: 40px; }
.ftr-icons img { width: 100%; height: 100%; }
.ftr-copy { order: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; line-height: 23.8px; color: var(--muted); }
@media (min-width: 1440px) {
  .ftr-in { grid-template-columns: 514fr 966fr; gap: 16px 40px; }
  .ftr-cards { margin-top: 24px; }
  .ftr-mid { flex-direction: row; justify-content: space-between; gap: 20px; }
  .ftr-info { flex: 1; gap: 24px; }
  .ftr-soc { flex: none; width: 375px; gap: 24px; }
  .ftr-copy { grid-column: 1 / -1; grid-row: 2; align-self: end; max-width: 1180px; }
}
@media (max-width: 767px) {
  .ftr-in { padding: 32px 0; }
  .ftr-h { font-size: 20px; line-height: 28px; }
  .ftr-cards { margin-top: 16px; }
  .ftr-card { width: 36px; height: 36px; }
  .ftr-info { gap: 16px; }
  .ftr-links { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 16px; }
  .ftr-soc { gap: 12px; }
  .ftr-icons { gap: 12px; }
  .ftr-icons a { width: 36px; height: 36px; }
  .ftr-copy { margin-top: 6px; }
}
@media (max-width: 767px) {
  .ftr-copy { line-height: 19.5px; }
}

input, textarea, select { background-image: none; -webkit-text-security: none; list-style: none; }
input::before, input::after { content: none; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); caret-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--field) inset; transition: background-color 9999s ease-out; }

@media (max-width: 960px) {
  body { padding-bottom: 0; }
  .ftr { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

.sdrop { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0; max-height: min(480px, 64vh); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-lg); cursor: default; }
.sdrop[hidden] { display: none; }
.sdrop-h { padding: 8px 10px 4px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; letter-spacing: .04em; }
.sdrop-i { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; }
.sdrop-i:hover, .sdrop-i.on { background: var(--bg-soft-2); }
.sdrop-i img, .sdrop-ph { flex: none; width: 36px; height: 36px; border-radius: 10px; object-fit: cover; background: var(--bg-soft-2); }
.sdrop-t { display: flex; flex-direction: column; min-width: 0; }
.sdrop-t b { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.sdrop-t small { overflow: hidden; color: var(--muted); font-size: 13px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.sdrop-all { display: block; margin-top: 4px; padding: 10px; border-radius: 12px; color: var(--blue); font-size: 15px; font-weight: 600; text-align: center; }
.sdrop-all:hover { background: var(--bg-soft-2); }
.sdrop-empty { padding: 16px 10px; color: var(--muted); font-size: 15px; text-align: center; }

html.no-search .hsearch { display: none; }

@media (max-width: 960px) {
  :root { --px-nav-pad: 76px; }
  .hdr { position: relative; padding: 12px 0 16px; }
  .hdr-in { gap: 12px; padding: 0; background: none; border: 0; box-shadow: none; border-radius: 0; }
  .hdr-in::before { display: none; }
  .hdr-brand { justify-content: space-between; }
  .hsearch { height: 44px; border-color: transparent; background: var(--field); }
  .hnav { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: none; }
}
@media (max-width: 960px) {
  .hdr-in { gap: 8px; }
  .hdr + .app { padding-top: 0; }
  .promo + .cats { margin-top: -40px; }
}

.wl, .pf { width: 100%; }
.pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-auth, .ad-login { margin-inline: auto; }
.ad-login { align-items: center; text-align: center; }
.pf-head { justify-content: flex-start; }
.pc-pic.nophoto, .pf-pic:empty { background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%238593ab' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='10' width='36' height='28' rx='5'/%3E%3Ccircle cx='17' cy='21' r='3'/%3E%3Cpath d='m8 36 11-10 8 7 6-5 9 8'/%3E%3C/svg%3E") center / 44px no-repeat; }
.wl-card, .pf-wallet { gap: 12px; }
.wl-card img, .pf-wallet svg { width: 32px; height: 32px; }
.wl-bal, .pf-wallet b { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.wl-empty { align-items: center; justify-content: center; text-align: center; margin-inline: auto; }
.wl-empty img { display: block; margin: 0 auto; }
html { scrollbar-width: thin; scrollbar-color: rgba(100, 108, 126, .4) transparent; }
html[data-theme="dark"] { scrollbar-color: rgba(255, 255, 255, .18) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { border-radius: 3px; background: rgba(100, 108, 126, .4); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); }
@media (max-width: 1023px) {
  .promo-slide img { object-position: 50% 50%; }
}
.pc-pic-logo { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; border-radius: 20px; transform: translate(-50%, -50%); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); object-fit: cover; }
.pc-pic img.pc-pic-logo { inset: auto; left: 50%; top: 50%; width: 72px; height: 72px; }
.pcard-ph-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard-ph-logo { position: relative; }
.promo-arr { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 17, 21, .55); color: #fff; opacity: 0; transform: translateY(-50%) scale(.9); cursor: pointer; transition: opacity .25s, transform .25s cubic-bezier(.22, 1, .36, 1), background .2s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.promo-arr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.promo-prev { left: 24px; }
.promo-next { right: 24px; }
.promo:hover .promo-arr { opacity: 1; transform: translateY(-50%) scale(1); }
.promo-arr:hover { background: rgba(15, 17, 21, .8); }
.promo-arr:active { transform: translateY(-50%) scale(.92); }
@media (hover: none), (max-width: 1023px) { .promo-arr { display: none; } }
.promo-slide { transform: scale(1.02); transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .6s; }
.promo-slide.on { transform: none; transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
.promo-track { background: var(--bg-soft); }
