/* ============================================================
   БАНК ХВБ — ТЕМА v17 «Noir»
   Чёрный #000 · графит #0e0e0e · сталь #333336. Один тёплый акцент,
   взятый из иллюстраций, — только в тексте, точках и линиях.
   Широкий гротеск Unbounded для заголовков, Manrope для текста.
   Подключается ПОСЛЕДНЕЙ и перекрывает старые стили страниц.
   ============================================================ */

:root {
    --c0: #000000;
    --c1: #0e0e0e;
    --c2: #333336;
    --c1-a: rgba(14, 14, 14, .82);
    --ink: #ece8e1;
    --ink-2: #b4b1ab;
    --muted: #7c7a76;
    --line: rgba(236, 232, 225, .10);
    --line-2: rgba(236, 232, 225, .18);
    --accent: #e3a24a;
    --ok: #9fcf9f;
    --bad: #e0705e;
    --r: 4px;
    --r-lg: 10px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-door: cubic-bezier(.77, 0, .18, 1);
    --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --ui: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --hdr: 64px;

    /* старые переменные страниц → новая палитра */
    --bf-gold: #e3a24a; --bf-gold2: #e3a24a; --bf-green: #9fcf9f; --bf-red: #e0705e; --bf-blue: #ece8e1;
    --bf-panel: #0e0e0e; --bf-panel2: #141414; --bf-line: rgba(236, 232, 225, .10); --bf-muted: #7c7a76;
    --pf-gold: #e3a24a; --pf-gold2: #e3a24a; --pf-panel: #0e0e0e; --pf-line: rgba(236, 232, 225, .10); --pf-muted: #7c7a76;
    --gold: #e3a24a; --gold2: #e3a24a; --green: #9fcf9f; --red: #e0705e; --cyan: #ece8e1; --violet: #b4b1ab; --pink: #e3a24a;
    --text: #ece8e1; --stroke: rgba(236, 232, 225, .10); --stroke-2: rgba(236, 232, 225, .18);
    --grad: linear-gradient(#ece8e1, #ece8e1); --grad-soft: none; --glow-cyan: none; --glow-violet: none;
}

/* ---------- База ---------- */
html { color-scheme: dark; background: var(--c0); scroll-behavior: smooth; }
html body { background: transparent; color: var(--ink); font-family: var(--ui); font-size: 15px; line-height: 1.55; margin: 0; min-height: 100vh;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html body::before { content: none; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
a { color: inherit; }
* { scrollbar-width: thin; scrollbar-color: var(--c2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--c2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
html body h1, html body h2, html body h3,
html body .page-title, html body .bf-title, html body .pf-title, html body .auth-title, html body .game-title, html body .casino-title,
html body .shop-title, html body .staff-page-title, html body .admin-page-title, html body .messages-title, html body .modal-title,
html body .multiplier, html body .bf-balance-num, html body .stat-number, html body .panel-title, html body .side-title, html body .pot,
html body .tm-title, html body .user-nickname, html body .bf-feature-title {
    font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
}
html body button, html body input, html body select, html body textarea { font-family: var(--ui); }
.particles-container, .bg-particles, #hv-wall, .hv-flame-light, .hv-embers, .hv-cursor-light { display: none !important; }

/* ---------- Фон: медленный туман ---------- */
#hv-fog { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; display: block; opacity: 0; transition: opacity 1.6s ease; }
html.fog-ready #hv-fog { opacity: 1; }
.hv-grain { position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); } }

/* ---------- Заставка-портал ---------- */
#px-intro { display: none; }
html[data-intro="1"] #px-intro { display: block; position: fixed; inset: 0; z-index: 5000; pointer-events: none; animation: introGone 0s 4.2s forwards; }
@keyframes introGone { to { visibility: hidden; } }
.px-intro-door { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--c1); transition: transform 1.25s var(--ease-door); }
.px-intro-door.l { left: 0; border-right: 1px solid var(--accent); }
.px-intro-door.r { right: 0; }
.px-intro-word { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: .02em; font-family: var(--display); font-weight: 700;
    font-size: clamp(64px, 16vw, 240px); letter-spacing: .06em; color: var(--ink); transition: letter-spacing 1.25s var(--ease-door), transform 1.25s var(--ease-door), opacity .6s ease .7s; }
.px-intro-word span { display: inline-block; transition: transform 1.25s var(--ease-door); }
#px-intro.open .px-intro-door.l { transform: translateX(-101%); }
#px-intro.open .px-intro-door.r { transform: translateX(101%); }
#px-intro.open .px-intro-word { letter-spacing: -.03em; transform: scale(1.18); opacity: 0; }
#px-intro.open .px-intro-word .a { transform: translateX(-30vw); }
#px-intro.open .px-intro-word .b { transform: translateX(30vw); }

/* ---------- Шапка: тонкая линия ---------- */
html body .header { display: none; }
.px-header { position: sticky; top: 0; z-index: 200; height: var(--hdr); display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 3vw, 40px);
    background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-sizing: border-box; }
.px-header::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.px-logo { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.px-logo b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.px-logo b i { font-style: normal; color: var(--accent); }
.px-logo small { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.px-nav { display: flex; gap: 26px; margin-left: auto; }
.px-nav a, .px-link { position: relative; text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0; transition: color .3s ease; }
.px-nav a::after, .px-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.px-nav a:hover, .px-nav a.active, .px-link:hover { color: var(--ink); }
.px-nav a:hover::after, .px-nav a.active::after, .px-link:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.px-nav a.active::before { content: ''; position: absolute; left: -12px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--accent); }
.px-right { display: flex; align-items: center; gap: 18px; padding-left: 26px; border-left: 1px solid var(--line); height: 28px; }
.px-bal { display: flex; align-items: center; gap: 8px; text-decoration: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; color: var(--ink); }
.px-bal small { color: var(--muted); font-size: 10.5px; letter-spacing: .14em; }
html body .px-bal.balance-container { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; height: auto; }
html body .px-iconbtn.notification-btn, html body .px-me.profile-link { background: none !important; box-shadow: none !important; padding: 0; }
html body .px-iconbtn.notification-btn { padding: 0; border: 1px solid var(--line) !important; border-radius: 50% !important; }
.hv-ore { width: 18px; height: 18px; image-rendering: pixelated; border-radius: 2px; flex: 0 0 auto; }
.px-iconbtn { position: relative; width: 34px; height: 34px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-2); cursor: pointer; transition: color .3s, border-color .3s; }
.px-iconbtn:hover { color: var(--ink); border-color: var(--line-2); }
.px-iconbtn svg { width: 16px; height: 16px; }
html body .notif-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; box-sizing: border-box; border-radius: 8px; display: none; font-size: 10px; line-height: 16px; text-align: center; font-weight: 800; background: var(--accent); color: #000; }
.px-me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 700; }
.px-me span:first-child { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-family: var(--display); font-size: 12px; }
html body .balance-amount.pulse { animation: balPulse .6s var(--ease); }
@keyframes balPulse { 40% { color: var(--accent); } }
.px-tabbar { display: none; }
@media (max-width: 820px) {
    .px-nav, .px-me span:last-child, .px-logo small { display: none; }
    .px-right { margin-left: auto; border-left: 0; padding-left: 0; gap: 12px; }
    .px-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
    .px-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
    .px-tabbar a svg { width: 19px; height: 19px; }
    .px-tabbar a.active { color: var(--ink); }
    .px-tabbar a.active svg { color: var(--accent); }
    html body { padding-bottom: 64px; }
}

/* ---------- Общие элементы ---------- */
.px-wrap { width: min(1240px, calc(100% - 2 * clamp(16px, 3vw, 40px))); margin: 0 auto; }
.px-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.px-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.px-h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 7vw, 104px); line-height: .95; letter-spacing: -.035em; margin: 18px 0 0; }
.px-lead { color: var(--ink-2); font-size: 16px; max-width: 520px; margin: 18px 0 0; }
.px-btn { position: relative; display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 24px; border-radius: 999px; overflow: hidden; isolation: isolate;
    font-family: var(--ui); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; border: 1px solid var(--ink); color: #000; background: var(--ink); transition: color .45s var(--ease); }
.px-btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c0); transform: translateY(101%); transition: transform .5s var(--ease); border-radius: inherit; }
.px-btn:hover { color: var(--ink); }
.px-btn:hover::before { transform: translateY(0); }
.px-btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.px-btn:hover svg { transform: translateX(4px); }
.px-btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.px-btn.ghost::before { background: var(--ink); }
.px-btn.ghost:hover { color: #000; }
.px-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: 0 0 auto; transition: transform .6s var(--ease), background .4s, color .4s, border-color .4s; }
.px-arrow svg { width: 16px; height: 16px; }

/* reveal: фото раскрываются шторкой, текст поднимается */
[data-px-reveal] { opacity: 0; }
html.no-motion [data-px-reveal] { opacity: 1; }
.px-shot { position: relative; overflow: hidden; border-radius: var(--r); background: var(--c1); }
.px-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.6s var(--ease); }

/* ============================================================
   ГЛАВНАЯ: две половины-портала
   ============================================================ */
.px-split { display: flex; height: calc(100svh - var(--hdr)); min-height: 560px; border-bottom: 1px solid var(--line); }
.px-portal { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--ink); transition: flex-grow 1.2s var(--ease-door); }
.px-portal + .px-portal { border-left: 1px solid var(--line); }
.px-split:hover .px-portal { flex-grow: .8; }
.px-split .px-portal:hover, .px-split .px-portal:focus-visible { flex-grow: 1.35; }
.px-portal-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.18); filter: brightness(.55); transition: transform 1.6s var(--ease-door), filter 1.2s ease; }
.px-portal::after { content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .1) 40%, rgba(0, 0, 0, .85)); }
.px-door { position: absolute; top: 0; bottom: 0; width: 50.2%; background: var(--c1); z-index: -1; transition: transform 1.15s var(--ease-door); }
.px-door.l { left: 0; border-right: 1px solid rgba(227, 162, 74, .55); }
.px-door.r { right: 0; }
.px-door::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 48px, rgba(236, 232, 225, .025) 48px 49px); }
.px-portal-idx { position: absolute; top: 26px; left: 28px; font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; transition: color .6s; }
.px-portal-idx b { color: var(--accent); font-weight: 700; }
.px-word { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: flex; justify-content: center; pointer-events: none;
    font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7.4vw, 128px); line-height: 1; letter-spacing: .04em; transition: letter-spacing 1.2s var(--ease-door); }
.px-word span { display: inline-block; transition: transform 1.2s var(--ease-door); }
.px-portal-meta { position: absolute; left: 28px; right: 28px; bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.px-portal-meta p { max-width: 360px; margin: 0; color: var(--ink-2); font-size: 14.5px; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .9s var(--ease); }
.px-portal-cta { display: inline-flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; opacity: .55; transition: opacity .6s; }
.px-portal-cta .px-arrow { width: 52px; height: 52px; }
/* открытие портала */
.px-portal:hover .px-door.l, .px-portal:focus-visible .px-door.l, .px-portal.is-open .px-door.l { transform: translateX(-101%); }
.px-portal:hover .px-door.r, .px-portal:focus-visible .px-door.r, .px-portal.is-open .px-door.r { transform: translateX(101%); }
.px-portal:hover .px-portal-img, .px-portal:focus-visible .px-portal-img, .px-portal.is-open .px-portal-img { transform: scale(1.02); filter: brightness(.82); }
.px-portal:hover .px-word, .px-portal:focus-visible .px-word, .px-portal.is-open .px-word { letter-spacing: -.035em; }
.px-portal:hover .px-word .a, .px-portal:focus-visible .px-word .a, .px-portal.is-open .px-word .a { transform: translateX(var(--part, -14%)) scale(1.06); }
.px-portal:hover .px-word .b, .px-portal:focus-visible .px-word .b, .px-portal.is-open .px-word .b { transform: translateX(var(--part-b, 14%)) scale(1.06); }
.px-portal:hover .px-portal-meta p, .px-portal.is-open .px-portal-meta p { opacity: 1; transform: none; transition-delay: .35s; }
.px-portal:hover .px-portal-cta, .px-portal.is-open .px-portal-cta { opacity: 1; }
.px-portal:hover .px-arrow, .px-portal.is-open .px-arrow { background: var(--ink); color: #000; border-color: var(--ink); transform: rotate(-45deg); }
.px-portal:hover .px-portal-idx { color: var(--ink-2); }
.px-home-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0 40px; color: var(--muted); font-size: 13px; }
.px-home-foot nav { display: flex; gap: 26px; }
@media (max-width: 820px) {
    .px-split { flex-direction: column; height: auto; min-height: 0; }
    .px-portal, .px-split:hover .px-portal, .px-split .px-portal:hover { flex: none; height: 62svh; min-height: 380px; }
    .px-portal + .px-portal { border-left: 0; border-top: 1px solid var(--line); }
    .px-portal-meta p { opacity: 1; transform: none; }
}

/* ============================================================
   БАНК: список-редакция
   ============================================================ */
.px-vault { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 64px); align-items: end; padding: clamp(36px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.px-amount { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.px-amount-num { font-family: var(--display); font-weight: 700; font-size: clamp(56px, 10vw, 150px); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.px-amount-cur { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 2vw, 26px); color: var(--accent); }
.px-amount .hv-ore { width: clamp(30px, 3.4vw, 48px); height: auto; aspect-ratio: 1; align-self: center; }
.px-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.px-vault .px-shot { aspect-ratio: 3 / 2; }
.px-list { margin: 0; padding: 0; list-style: none; }
.px-row { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 260px) 44px; align-items: center; gap: 20px; padding: 26px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.px-row::before { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease); }
.px-row:hover::before { transform: scaleX(1); }
.px-row-idx { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--muted); transition: color .4s; }
.px-row-title { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 4.4vw, 60px); line-height: 1; letter-spacing: -.035em; transition: transform .7s var(--ease), color .4s; }
.px-row-sub { color: var(--muted); font-size: 14px; transition: color .4s; }
.px-row-thumb { display: none; }
.px-row:hover .px-row-idx { color: var(--accent); }
.px-row:hover .px-row-title { transform: translateX(14px); }
.px-row:hover .px-row-sub { color: var(--ink-2); }
.px-row:hover .px-arrow { background: var(--ink); color: #000; border-color: var(--ink); transform: rotate(-45deg); }
.px-row.small .px-row-title { font-size: clamp(18px, 2.4vw, 28px); }
.px-row.small { padding: 18px 0; }
/* превью за курсором */
.px-float { position: fixed; left: 0; top: 0; z-index: 150; width: 340px; aspect-ratio: 3 / 2; pointer-events: none; border-radius: var(--r); overflow: hidden;
    clip-path: inset(50% 50% 50% 50%); transition: clip-path .6s var(--ease); will-change: transform, clip-path; }
.px-float.on { clip-path: inset(0 0 0 0); }
.px-float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .4s ease, transform .9s var(--ease); }
.px-float img.cur { opacity: 1; transform: scale(1); }
@media (max-width: 820px) {
    .px-vault { grid-template-columns: 1fr; }
    .px-vault .px-shot { order: -1; }
    .px-row { grid-template-columns: 64px minmax(0, 1fr) 40px; gap: 14px; padding: 16px 0; }
    .px-row-sub { grid-column: 2; grid-row: 2; margin-top: -8px; }
    .px-row-idx { display: none; }
    .px-row-thumb { display: block; grid-row: 1 / span 2; width: 64px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; }
    .px-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
    .px-row .px-arrow { grid-column: 3; grid-row: 1 / span 2; width: 38px; height: 38px; }
    .px-float { display: none; }
}

/* ============================================================
   КАЗИНО: шторки-жалюзи
   ============================================================ */
.px-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 3vw, 36px); }
.px-head-bal { display: flex; align-items: center; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; padding-bottom: 10px; }
.px-head-bal small { color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.px-games { display: grid; gap: 16px; }
.px-game { position: relative; display: block; height: clamp(360px, 58vh, 620px); overflow: hidden; isolation: isolate; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.px-game-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; transform: scale(1.12); filter: brightness(.6); transition: transform 1.8s var(--ease), filter 1s ease; }
.px-blinds { position: absolute; inset: 0; z-index: -2; display: grid; grid-template-columns: repeat(8, 1fr); }
.px-blinds i { background: var(--c1); border-right: 1px solid rgba(236, 232, 225, .04); transform-origin: 0 50%; transition: transform .9s var(--ease-door); }
.px-blinds i:nth-child(1) { transition-delay: 0s; } .px-blinds i:nth-child(2) { transition-delay: .04s; } .px-blinds i:nth-child(3) { transition-delay: .08s; } .px-blinds i:nth-child(4) { transition-delay: .12s; }
.px-blinds i:nth-child(5) { transition-delay: .16s; } .px-blinds i:nth-child(6) { transition-delay: .2s; } .px-blinds i:nth-child(7) { transition-delay: .24s; } .px-blinds i:nth-child(8) { transition-delay: .28s; }
.px-game::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .1) 65%); }
.px-game-body { position: absolute; left: clamp(22px, 4vw, 52px); right: clamp(22px, 4vw, 52px); bottom: clamp(22px, 4vw, 48px); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.px-game-title { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 7vw, 108px); line-height: .92; letter-spacing: -.04em; margin: 14px 0 14px; }
.px-game-desc { color: var(--ink-2); max-width: 440px; margin: 0; font-size: 15px; }
.px-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.px-tag::before { content: ''; width: 18px; height: 1px; background: var(--accent); }
.px-game:hover .px-blinds i, .px-game.is-open .px-blinds i { transform: scaleX(0); }
.px-game:hover .px-game-img, .px-game.is-open .px-game-img { transform: scale(1.02); filter: brightness(.88); }
.px-game:hover .px-arrow, .px-game.is-open .px-arrow { background: var(--ink); color: #000; border-color: var(--ink); transform: rotate(-45deg); }
.px-game .px-arrow { width: 64px; height: 64px; }
.px-note { display: flex; gap: 12px; align-items: center; padding: 22px 0 40px; color: var(--muted); font-size: 13.5px; }
.px-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
@media (max-width: 820px) { .px-head { flex-direction: column; align-items: flex-start; } .px-game .px-arrow { display: none; } }

/* ============================================================
   ПРОФИЛЬ
   ============================================================ */
.px-me-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(20px, 3vw, 40px); padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.px-avatar { position: relative; width: clamp(96px, 12vw, 150px); aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); display: grid; place-items: center; background: var(--c1); }
.px-avatar span { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); }
.px-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-me-name { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 88px); line-height: .95; letter-spacing: -.04em; margin: 14px 0 0; overflow-wrap: anywhere; }
.px-me-bal { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.px-me-bal b { color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.px-me-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.px-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.px-card { display: block; text-decoration: none; color: var(--ink); }
.px-card .px-shot { aspect-ratio: 3 / 2; }
.px-card:hover .px-shot img { transform: scale(1); }
.px-card-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 16px; }
.px-card-title { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.03em; }
.px-card-idx { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.px-card-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.px-card:hover .px-card-idx { color: var(--accent); }
.px-promo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 40px; align-items: end; padding: 40px 0 56px; }
.px-promo-title { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.03em; margin: 12px 0 0; }
.px-promo-form { display: flex; align-items: center; gap: 16px; }
html body .px-promo-form input { flex: 1; min-width: 0; height: 52px; padding: 0 2px !important; background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line-2) !important; border-radius: 0 !important;
    font-size: 18px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink) !important; box-shadow: none !important; }
html body .px-promo-form input:focus { border-bottom-color: var(--accent) !important; }
.px-promo-msg { grid-column: 1 / -1; font-weight: 700; font-size: 14px; }
.px-promo-msg:empty { display: none; }
.px-promo-msg.success { color: var(--ok); } .px-promo-msg.error { color: var(--bad); }
@media (max-width: 900px) { .px-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .px-promo { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .px-me-top { grid-template-columns: auto minmax(0, 1fr); } .px-me-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; } .px-cards { grid-template-columns: 1fr; } }

/* ============================================================
   СТАРЫЕ СТРАНИЦЫ (игры, крипта, переводы, админка):
   та же логика, новая палитра — плоский графит и тонкие линии
   ============================================================ */
html body .bf-scene, html body .bg-image-container, html body .bg-video-container, html body .pf-scene::before, html body .pf-scene::after,
html body .home-page::before, html body .home-page::after, html body .casino-page::before, html body .casino-page::after,
html body .pvp-page::before, html body .rocket-page::before, html body .rocket-page::after, html body .bg-orb, html body .bg-grid { display: none !important; }
html body .rocket-page, html body .pvp-page, html body .casino-page, html body .home-page, html body .crypto-scene, html body .pf-scene { background: transparent !important; }
html body .bf-reveal, html body .pf-reveal { animation: none !important; opacity: 1; transform: none; }
html body .bf-card, html body .pf-card, html body .glass-card, html body .admin-form-card, html body .admin-list-card, html body .stat-card,
html body .staff-history-card, html body .user-profile-card, html body .notif-page-box, html body .confirm-card, html body .rocket-side, html body .rocket-main,
html body .pvp-side, html body .pvp-board, html body .admin-card, html body .staff-card, html body .chat-item, html body .bf-extra-link, html body .casino-note, html body .crypto-stat-card {
    background: var(--c1-a) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; box-shadow: none !important;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
html body .bf-card::before, html body .bf-card::after, html body .glass-card::before { display: none !important; }
html body .bf-art-card { background-color: var(--c1) !important; border: 1px solid var(--line) !important; border-radius: var(--r-lg) !important; }
html body .bf-art-card::after { display: block !important; background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .88)) !important; }
html body .bf-header-art { border-radius: var(--r); border: 1px solid var(--line); filter: grayscale(.3) brightness(.8); transform: none; }
html body .bf-title, html body .page-title, html body .pf-title, html body .casino-title, html body .shop-title, html body .staff-page-title, html body .messages-title,
html body [class^="admin-"][class$="-title"], html body .auth-title {
    color: var(--ink) !important; -webkit-text-fill-color: currentColor !important; background: none !important; text-shadow: none !important; letter-spacing: -.03em; }
html body .bf-sub, html body .pf-sub, html body .page-sub, html body .casino-sub, html body .auth-subtitle { color: var(--muted); }
html body .bf-kicker, html body .pf-kicker { color: var(--accent); letter-spacing: .2em; font-size: 11px; font-weight: 700; }
html body .bf-back, html body .pf-back, html body .casino-back, html body .rocket-back, html body .back, .px-back {
    display: inline-flex; align-items: center; gap: 8px; color: var(--muted) !important; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
    background: none !important; border: 0 !important; padding: 0; transition: color .3s, transform .5s var(--ease); }
html body .bf-back:hover, html body .pf-back:hover, html body .casino-back:hover, html body .rocket-back:hover, html body .back:hover, .px-back:hover { color: var(--ink) !important; transform: translateX(-4px); }

/* кнопки старых страниц */
html body .bf-btn, html body .btn, html body .auth-btn, html body .play-btn, html body .modal-btn-confirm, html body .modal-btn-cancel, html body .btn-buy, html body .btn-select,
html body .btn-give, html body .btn-take, html body .btn-write, html body .tm-submit, html body .confirm, html body .cancel, html body .rocket-btn, html body .modal-btn, html body .pf-btn {
    font-family: var(--ui); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; border-radius: 999px; cursor: pointer; box-shadow: none !important; text-shadow: none !important;
    transition: background .35s var(--ease), color .35s, border-color .35s;
}
html body .bf-primary, html body .btn-gold, html body .btn-green, html body .auth-btn, html body .play-btn, html body .btn-buy, html body .modal-btn-confirm, html body .tm-submit,
html body .btn-give, html body .btn-write, html body .confirm, html body .btn-primary, html body .pf-primary, html body .bf-small-btn.bf-buy {
    background: var(--ink) !important; color: #000 !important; border: 1px solid var(--ink) !important; }
html body .bf-primary:hover, html body .auth-btn:hover, html body .play-btn:hover, html body .btn-buy:hover, html body .modal-btn-confirm:hover, html body .confirm:hover, html body .pf-primary:hover {
    background: transparent !important; color: var(--ink) !important; transform: none; filter: none; }
html body .bf-secondary, html body .btn-purple, html body .btn-select, html body .modal-btn-cancel, html body .cancel, html body .pf-secondary {
    background: transparent !important; color: var(--ink) !important; border: 1px solid var(--line-2) !important; }
html body .bf-secondary:hover, html body .modal-btn-cancel:hover, html body .cancel:hover, html body .pf-secondary:hover { border-color: var(--ink) !important; }
html body .btn-danger, html body .btn-take, html body .btn-reject, html body .btn-block, html body .btn-fire, html body .bf-small-btn.bf-sell { background: transparent !important; color: var(--bad) !important; border: 1px solid rgba(224, 112, 94, .5) !important; }
html body .btn-approve, html body .btn-unblock { background: transparent !important; color: var(--ok) !important; border: 1px solid rgba(159, 207, 159, .5) !important; }
html body .bf-btn::after, html body .bf-primary::after { display: none !important; }
html body button:disabled, html body .btn:disabled, html body .bf-btn[disabled] { opacity: .4; cursor: not-allowed; }
html body .trade-btn.buy { background: var(--ink) !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
html body .trade-btn.sell { background: transparent !important; color: var(--bad) !important; border: 1px solid rgba(224, 112, 94, .5) !important; box-shadow: none !important; }

/* поля */
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):not([type=submit]):not([type=button]),
html body select, html body textarea {
    background: var(--c1) !important; border: 1px solid var(--line-2) !important; color: var(--ink) !important; border-radius: var(--r) !important; box-shadow: none !important; transition: border-color .3s;
}
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):focus, html body select:focus, html body textarea:focus { outline: none; border-color: var(--accent) !important; transform: none; }
html body input::placeholder, html body textarea::placeholder { color: var(--muted); }
html body select option { background: var(--c1); color: var(--ink); }
html body .auth-flash, html body .flash { background: transparent; border: 1px solid rgba(224, 112, 94, .45); color: #f0bdb3; border-radius: var(--r); }

/* таблицы и мелочи */
html body table { border-collapse: collapse; }
html body table th { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .16em; border-bottom: 1px solid var(--line-2); background: transparent; }
html body table td { border-bottom: 1px solid var(--line); }
html body table tbody tr:hover { background: rgba(236, 232, 225, .03); }
html body .bf-filter { background: transparent; border: 1px solid var(--line); color: var(--ink-2); border-radius: 999px; font-weight: 700; letter-spacing: .08em; }
html body .bf-filter.active, html body .bf-filter:hover { border-color: var(--ink); color: var(--ink); background: transparent; }
html body .bf-history-icon, html body .bf-ledger-icon, html body .bf-request-icon, html body .bf-stock-icon, html body .bf-icon, html body .pf-stat .icon { background: transparent !important; border: 1px solid var(--line); }
html body .bf-modal-amount, html body .bf-confirm-amount, html body .bf-rank-balance, html body .bf-position-price, html body .stocks-price, html body .bf-balance-num { color: var(--ink) !important; }
html body .bf-history-item.pos .bf-history-amount, html body .bf-ledger-amount.pos { color: var(--ok); }
html body .bf-history-item.neg .bf-history-amount, html body .bf-ledger-amount.neg { color: var(--ink-2); }
html body .stock-select-row.selected { border-color: var(--ink) !important; background: rgba(236, 232, 225, .03) !important; }
/* графики рисуются линией */
html body .chart-area-line { stroke: var(--accent) !important; filter: none !important; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: drawLine 2.2s var(--ease) .2s forwards; }
html body .chart-dot { fill: var(--accent); stroke: #000; filter: none !important; }
html body .chart-grid { stroke: rgba(236, 232, 225, .06); }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
html body .rocket-stage { background: #050505 !important; }
html body .rocket-main, html body .rocket-side, html body .pvp-board, html body .pvp-side { border-radius: var(--r-lg) !important; }
html body.auth-body { background: transparent; overflow: auto; }
html body .glass-card { padding: 40px 34px; }
html body .auth-link a { color: var(--accent); }
html body .admin-header { background: transparent; border: 0; }
html body .stat-number { color: var(--ink) !important; -webkit-text-fill-color: currentColor; background: none; }
html body .admin-badge, html body .badge { background: transparent; color: var(--accent); border: 1px solid rgba(227, 162, 74, .45); }
html body .message.sent { background: var(--ink) !important; color: #000 !important; border-radius: 14px 14px 2px 14px; }
html body .message.received { background: var(--c1) !important; border: 1px solid var(--line) !important; color: var(--ink) !important; border-radius: 14px 14px 14px 2px; }
html body .unread-badge { background: var(--accent); color: #000; }
html body .back-btn { color: var(--ink-2); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; }
html body .bottom-tab.active { background: transparent; color: var(--ink); box-shadow: inset 0 -1px 0 var(--accent); }
html body .crypto-topbar { padding-left: 130px; }
@media (max-width: 600px) { html body .crypto-topbar { padding-left: 96px; } }

/* модальные окна, уведомления, тосты */
html body .notif-modal, html body .modal-overlay, html body .admin-modal-overlay, html body .staff-modal-overlay, html body .transfer-modal-overlay, html body .bf-modal { background: rgba(0, 0, 0, .78) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .notif-modal-box, html body .modal-box, html body .admin-modal-box, html body .staff-modal-box, html body .transfer-modal-box, html body .bf-modal-card {
    background: var(--c1) !important; border: 1px solid var(--line-2) !important; border-radius: var(--r-lg) !important; box-shadow: none !important; }
html body .notif-item { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; }
html body .notif-modal-header h2 { font-size: 18px; }
html body .notif-close-btn { border-radius: 50%; background: transparent; border: 1px solid var(--line-2); color: var(--ink); }
html body .notif-amount { color: var(--ok); }
.toast-stack { position: fixed; right: 18px; top: calc(var(--hdr) + 14px); z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.toast-item { pointer-events: auto; cursor: pointer; white-space: pre-line; padding: 14px 18px; border-radius: var(--r); font-size: 14px; font-weight: 600; color: var(--ink); background: var(--c1); border: 1px solid var(--line-2); border-left: 2px solid var(--accent); }
.toast-item.ok { border-left-color: var(--ok); } .toast-item.err { border-left-color: var(--bad); }
html body .toast { background: var(--c1) !important; border: 1px solid var(--line-2) !important; color: var(--ink) !important; border-radius: var(--r); font-family: var(--ui); }

/* ошибка */
.err-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 24px; text-align: center; }
.err-box { max-width: 520px; padding: 46px 38px; }
.err-code { font-family: var(--display); font-weight: 700; font-size: clamp(72px, 16vw, 160px); line-height: 1; letter-spacing: -.05em; }
.err-box h1 { font-size: 24px; margin: 14px 0 8px; }
.err-box p { color: var(--muted); margin-bottom: 24px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.err-actions a { padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #000; background: var(--ink); }
.err-actions a.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .hv-grain { animation: none; }
}

/* ============================================================
   V18 — порталы: на закрытой шторке тёмная размытая картинка,
   слово целиком уезжает вниз
   ============================================================ */
.px-portal-img { object-position: 50% 18%; }
.px-portal-meta { z-index: 1; }
/* створки — две половины той же картинки, затемнённые и размытые */
.px-door { overflow: hidden; background: #050505; }
.px-door::before { content: none; }
.px-door::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .7)); }
.px-door-img { position: absolute; top: -4%; height: 108%; width: 199.2%; max-width: none; object-fit: cover; object-position: 50% 18%;
    filter: blur(6px) brightness(.34) saturate(.7); transform: scale(1.06); animation: doorBreath 9s ease-in-out infinite alternate; }
.px-door.l .px-door-img { left: 0; }
.px-door.r .px-door-img { right: 0; }
@keyframes doorBreath { to { transform: scale(1.12) translateY(-1.5%); } }
.px-door.l { border-right: 1px solid rgba(240, 230, 210, .28); }
/* слово: не делится, плавно уезжает вниз и уменьшается */
.px-portal { container-type: inline-size; }
.px-word { font-size: min(7.4vw, 128px, 14.5cqw); transition: transform 1.2s var(--ease-door), opacity .6s ease; letter-spacing: -.01em; color: var(--cream); text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.px-word span { transition: none; }
.px-portal:hover .px-word, .px-portal:focus-visible .px-word, .px-portal.is-open .px-word { letter-spacing: -.01em; transform: translateY(calc(-50% + 27vh)) scale(.62); }
.px-portal:hover .px-word .a, .px-portal:hover .px-word .b, .px-portal.is-open .px-word .a, .px-portal.is-open .px-word .b,
.px-portal:focus-visible .px-word .a, .px-portal:focus-visible .px-word .b { transform: none; }
@media (max-width: 820px) {
    .px-portal.is-open .px-word { transform: translateY(-50%) scale(1.04); opacity: 0; }
    .px-portal-meta { background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); margin: 0 -28px -28px; padding: 40px 28px 28px; }
}

/* ============================================================
   V18 — общий фон-пейзаж и кремовый белый
   ============================================================ */
:root { --cream: #f2e8d5; --cream-2: #d9ccb3; --ink: #efe9df; }
.hv-world { position: fixed; inset: -3%; z-index: -3; pointer-events: none; background: #000 var(--world) center 30% / cover no-repeat;
    filter: brightness(.36) saturate(.85); transform: translate3d(0, calc(var(--wy, 0) * -1px), 0) scale(1.04); animation: worldDrift 40s ease-in-out infinite alternate; }
.hv-world::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(0, 0, 0, .75)), linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)); }
@keyframes worldDrift { from { background-position: 46% 30%; } to { background-position: 54% 34%; } }
#hv-fog { mix-blend-mode: screen; opacity: 0; }
html.fog-ready #hv-fog { opacity: .8; }
html body h1, html body .px-h1, html body .px-amount-num, html body .px-game-title, html body .px-me-name, html body .px-card-title,
html body .bf-title, html body .page-title { color: var(--cream) !important; }
.px-eyebrow::before { background: var(--cream); }
.px-btn { background: var(--cream); border-color: var(--cream); }
.px-btn.ghost::before { background: var(--cream); }

/* перевод / вывод: большая карточка-иллюстрация (картинка в ::before, общий фон карточек её больше не перекрывает) */
html body .bf-card.px-art { background: #050505 !important; overflow: hidden; isolation: isolate; min-height: 440px; -webkit-backdrop-filter: none; backdrop-filter: none; }
html body .bf-card.px-art::before { content: '' !important; display: block !important; position: absolute; inset: 0; width: auto; height: auto; z-index: -2; background: var(--art) center / cover no-repeat;
    transform: scale(1.08); animation: artKen 18s ease-in-out infinite alternate; }
html body .bf-card.px-art::after { z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .9)) !important; }
html body .bf-card.px-art h2 { color: var(--cream-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-family: var(--ui); font-weight: 800; }
html body .bf-card.px-art strong { font-family: var(--display); font-size: clamp(34px, 4vw, 52px) !important; color: var(--cream) !important; letter-spacing: -.04em; display: inline-block; margin: 4px 0 8px; }
@keyframes artKen { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
html body .bf-header-art { filter: none; border-color: var(--line-2); }

/* ============================================================
   V18 — БАНК: сетка карточек и карусель
   ============================================================ */
.px-vault { border-bottom: 0; }
.px-vault.solo { grid-template-columns: 1fr; }
.px-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0 22px; }
.px-switch { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(0, 0, 0, .4); }
.px-switch button { appearance: none; border: 0; background: none; color: var(--ink-2); font: 800 11px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; padding: 10px 16px; border-radius: 999px; cursor: pointer; transition: background .4s var(--ease), color .3s; }
.px-switch button[aria-selected="true"] { background: var(--cream); color: #000; }

/* карточки: картинка видна сразу, при наведении наклон в 3D и блик */
.px-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 19vw, 250px); gap: 16px; perspective: 1200px; }
.px-tile { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); text-decoration: none; color: var(--cream); border: 1px solid var(--line);
    background: #050505; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease), border-color .4s, box-shadow .6s; will-change: transform; }
.px-tile.t1 { grid-column: span 7; grid-row: span 2; }
.px-tile.t2, .px-tile.t3 { grid-column: span 5; }
.px-tile.t4 { grid-column: span 5; }
.px-tile.t5 { grid-column: span 7; }
.px-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.72) saturate(.95); transform: scale(1.06); transition: transform 1.4s var(--ease), filter .8s; }
.px-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .82)); }
.px-glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 245, 225, .22), transparent 45%); mix-blend-mode: soft-light; }
.px-tile-body { position: absolute; left: 24px; right: 84px; bottom: 22px; display: flex; flex-direction: column; gap: 6px; transform: translateZ(40px); }
.px-tile-idx { font-size: 11px; font-weight: 800; letter-spacing: .2em; color: var(--cream-2); }
.px-tile-title { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 36px); line-height: 1; letter-spacing: -.035em; }
.px-tile.t1 .px-tile-title { font-size: clamp(32px, 4.4vw, 64px); }
.px-tile-sub { color: var(--ink-2); font-size: 14px; }
.px-tile .px-arrow { position: absolute; right: 20px; bottom: 20px; border-color: rgba(242, 232, 213, .35); transform: translateZ(40px); }
.px-tile:hover { border-color: rgba(242, 232, 213, .32); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); transition: transform .15s linear, border-color .4s, box-shadow .6s; }
.px-tile:hover .px-tile-img { transform: scale(1.12); filter: brightness(.9) saturate(1.05); }
.px-tile:hover .px-glare { opacity: 1; }
.px-tile:hover .px-arrow { background: var(--cream); color: #000; border-color: var(--cream); transform: translateZ(40px) rotate(-45deg); }
@media (max-width: 820px) {
    .px-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; gap: 12px; }
    .px-tile.t1 { grid-column: span 2; grid-row: span 1; height: 240px; }
    .px-tile.t2, .px-tile.t3, .px-tile.t4 { grid-column: span 1; }
    .px-tile.t5 { grid-column: span 2; }
    .px-tile-body { left: 16px; right: 16px; bottom: 16px; }
    .px-tile .px-arrow { display: none; }
    .px-tile-title, .px-tile.t1 .px-tile-title { font-size: 22px; }
}

/* карусель: крупное окно в центре, соседние уходят в глубину */
.px-carousel { position: relative; overflow-x: clip; }
html, body { overflow-x: clip; }
.px-car-track { position: relative; height: clamp(340px, 46vw, 560px); perspective: 1400px; touch-action: pan-y; user-select: none; }
.px-slide { position: absolute; top: 0; bottom: 0; left: 50%; width: min(760px, 78%); margin-left: calc(min(760px, 78%) / -2); overflow: hidden; isolation: isolate; border-radius: var(--r-lg);
    border: 1px solid var(--line-2); text-decoration: none; color: var(--cream); background: #050505; transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s; will-change: transform; }
.px-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.px-slide.cur img { transform: scale(1); }
.px-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .85)); }
.px-slide-body { position: absolute; left: 30px; right: 30px; bottom: 28px; display: flex; flex-direction: column; gap: 8px; opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .8s var(--ease); }
.px-slide.cur .px-slide-body { opacity: 1; transform: none; transition-delay: .25s; }
.px-slide .px-tile-title { font-size: clamp(30px, 4.6vw, 64px); }
.px-car-nav { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 26px 0 8px; }
.px-car-nav .px-arrow { background: none; color: var(--cream); cursor: pointer; }
.px-car-nav .px-arrow:hover { background: var(--cream); color: #000; border-color: var(--cream); }
.px-car-dots { display: flex; gap: 8px; }
.px-car-dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); transition: width .6s var(--ease), background .4s; cursor: pointer; }
.px-car-dots i.on { width: 46px; background: var(--cream); }
.px-list { margin-top: 28px; }
[hidden] { display: none !important; }

/* ============================================================
   V18 — КАЗИНО: картинки видны сразу, наклон за курсором
   ============================================================ */
.px-games { grid-template-columns: 1fr 1fr; gap: 18px; perspective: 1400px; }
.px-game { color: var(--cream); background: #050505; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease), border-color .4s, box-shadow .6s; will-change: transform; height: clamp(420px, 64vh, 660px); }
.px-game-img { transform: scale(1.04); filter: brightness(.74) saturate(1); animation: gameDrift 14s ease-in-out infinite alternate; }
.px-game + .px-game .px-game-img { animation-delay: -7s; }
@keyframes gameDrift { to { transform: scale(1.1) translateY(-1.5%); } }
.px-game::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .86)); }
.px-game:hover, .px-game.is-open { border-color: rgba(242, 232, 213, .3); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.px-game:hover { transition: transform .15s linear, border-color .4s, box-shadow .6s; }
.px-game:hover .px-game-img, .px-game.is-open .px-game-img { filter: brightness(.95) saturate(1.08); }
.px-game:hover .px-glare { opacity: 1; }
.px-game:hover .px-arrow, .px-game.is-open .px-arrow { background: var(--cream); border-color: var(--cream); }
.px-game-title { font-size: clamp(38px, 4.8vw, 76px); }
.px-tag { color: var(--cream-2); }
.px-tag::before { background: var(--cream); }
@media (max-width: 820px) { .px-games { grid-template-columns: 1fr; } .px-game { height: clamp(360px, 70svh, 520px); } }

/* ============================================================
   V18 — ИСТОРИЯ: пиксельные иконки и цветные суммы
   ============================================================ */
.px-hist { display: grid; gap: 10px; }
html body .px-hist-item { --tone: 242, 232, 213; position: relative; overflow: hidden; align-items: center; transition: transform .5s var(--ease), border-color .4s; }
html body .px-hist-item::before { content: '' !important; display: block !important; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgb(var(--tone)); opacity: .75; }
html body .px-hist-item:hover { background: rgba(var(--tone), .06) !important; border-color: rgba(var(--tone), .35) !important; }
.px-hist-item.k-coin { --tone: 120, 196, 214; } .px-hist-item.k-rocket { --tone: 227, 162, 74; } .px-hist-item.k-swords { --tone: 214, 120, 104; }
.px-hist-item.k-chart { --tone: 150, 168, 222; } .px-hist-item.k-gift { --tone: 214, 156, 196; } .px-hist-item.k-star { --tone: 236, 205, 120; }
.px-hist-item.k-bank { --tone: 196, 186, 164; } .px-hist-item.k-transfer { --tone: 242, 232, 213; } .px-hist-item.k-gem { --tone: 120, 214, 196; }
html body .px-hist-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px !important; color: rgb(var(--tone, 242, 232, 213));
    background: rgba(var(--tone, 242, 232, 213), .1) !important; border: 1px solid rgba(var(--tone, 242, 232, 213), .28) !important; image-rendering: pixelated; }
html body .px-hist-icon svg { width: 24px; height: 24px; }
.px-hist-icon.big { width: 72px; height: 72px; margin: 0 auto 10px; }
.px-hist-icon.big svg { width: 36px; height: 36px; }
html body .px-hist-item .bf-history-amount { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html body .px-hist-item .bf-history-amount small { font-family: var(--ui); font-size: 10.5px; letter-spacing: .14em; opacity: .7; }
html body .px-hist-item.pos .bf-history-amount { color: #a6dca0 !important; }
html body .px-hist-item.neg .bf-history-amount { color: #e8907e !important; }
html body .px-hist-item .bf-history-name { color: var(--cream); font-weight: 700; }

/* ============================================================
   V18 — РАКЕТКА: всё рисует canvas (rocket-fx.js)
   ============================================================ */
.rfx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; image-rendering: pixelated; }
html body .rocket-stage .stars, html body .rocket-stage .particles, html body .rocket-stage .rocket-ship, html body .rocket-stage .flight-trail,
html body .rocket-stage .flight-aura, html body .rocket-stage .flame-aura { display: none !important; }
html body .rocket-stage .stage-vignette { background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, .55)); pointer-events: none; }
html body .rocket-stage .multiplier { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.04em; transition: color .3s, text-shadow .3s; }
html body .rocket-stage .multiplier.good { color: var(--cream); text-shadow: 0 0 26px rgba(242, 232, 213, .18); }
html body .rocket-stage .multiplier.hot { color: #f3c46b; text-shadow: 0 0 26px rgba(243, 196, 107, .45); }
html body .rocket-stage .multiplier.danger { color: #ffd38a; text-shadow: 0 0 30px rgba(243, 160, 80, .6); }
/* ============================================================
   V18 — РЕЙТИНГ: одинаковые строки, баннер игрока — фон под ником
   ============================================================ */
.px-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.px-rank-row { display: grid; grid-template-columns: 54px 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 10px 18px 10px 14px;
    background: rgba(10, 10, 12, .72); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .4s, background .4s; }
.px-rank-row:hover { border-color: rgba(242, 232, 213, .3); background: rgba(16, 16, 18, .85); }
.px-rank-num { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--cream-2); text-align: center; font-variant-numeric: tabular-nums; }
.px-rank-ava { position: relative; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #15151a; border: 1px solid var(--line-2); }
.px-rank-ava b { font-family: var(--display); font-size: 20px; color: var(--cream); }
.px-rank-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px-rank-plate { position: relative; display: flex; align-items: center; min-height: 52px; padding: 0 22px; border-radius: 8px; overflow: hidden; isolation: isolate; text-decoration: none; color: var(--cream); }
.px-rank-plate.has-banner { border: 1px solid rgba(242, 232, 213, .16); }
.px-rank-plate.has-banner::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--banner) center / cover no-repeat; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.px-rank-plate.has-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .15) 70%); }
.px-rank-row:hover .px-rank-plate.has-banner::before { transform: scale(1.1); }
.px-rank-nick { font-family: var(--display); font-weight: 700; font-size: clamp(16px, 2vw, 22px); letter-spacing: -.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-rank-bal { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--cream); font-variant-numeric: tabular-nums; }
.px-rank-bal small { font-family: var(--ui); font-size: 10.5px; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 620px) {
    .px-rank-row { grid-template-columns: 30px 40px minmax(0, 1fr); gap: 10px; padding: 10px; }
    .px-rank-num { font-size: 15px; }
    .px-rank-ava { width: 40px; height: 40px; }
    .px-rank-plate { min-height: 40px; padding: 0 12px; }
    .px-rank-bal { grid-column: 3; font-size: 14px; }
}
html body .rocket-stage .multiplier.crashed { color: #e7735f; text-shadow: 0 0 30px rgba(224, 112, 94, .5); }

/* ============================================================
   V19 — скругления везде
   ============================================================ */
:root { --r: 14px; --r-lg: 22px; --glass: rgba(16, 17, 22, .46); --glass-line: rgba(242, 232, 213, .12); --hdr: 72px; }
html body .bf-header-art, html body .px-shot, html body .px-float, html body .px-row-thumb, html body .px-avatar,
html body .bf-card, html body .px-tile, html body .px-slide, html body .px-game, html body .px-rank-row, html body .px-rank-plate,
html body .px-rank-ava, html body .px-hist-icon, html body .banner-card, html body .glass-panel, html body .coin-item,
html body .rocket-stage, html body .rocket-main, html body .rocket-side, html body .pvp-board, html body .pvp-side,
html body img.bf-rank-avatar, html body .bf-top-avatar, html body .user-profile-card, html body .stat-card { border-radius: var(--r-lg) !important; }
html body .px-rank-ava, html body .px-hist-icon, html body .px-rank-plate, html body .coin-item, html body .px-row-thumb { border-radius: var(--r) !important; }
html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),
html body select, html body textarea { border-radius: 12px !important; }
.hv-ore { border-radius: 4px; }

/* ============================================================
   V19 — матовое стекло: разделы полупрозрачные, пейзаж просвечивает
   ============================================================ */
html body .bf-card:not(.px-art), html body .glass-card, html body .admin-form-card, html body .admin-list-card, html body .stat-card,
html body .staff-history-card, html body .user-profile-card, html body .notif-page-box, html body .confirm-card, html body .rocket-side, html body .rocket-main,
html body .pvp-side, html body .pvp-board, html body .admin-card, html body .staff-card, html body .chat-item, html body .bf-extra-link, html body .crypto-stat-card,
html body .px-rank-row, html body .glass-panel {
    background: linear-gradient(160deg, rgba(28, 29, 36, .52), rgba(12, 12, 16, .44)) !important;
    border: 1px solid var(--glass-line) !important;
    box-shadow: inset 0 1px 0 rgba(242, 232, 213, .08), 0 24px 60px -30px rgba(0, 0, 0, .8) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
}

/* ============================================================
   V19 — ШАПКА: стекло, крупный текст, персонажи на краях
   ============================================================ */
.px-header { height: var(--hdr); gap: 22px; background: linear-gradient(180deg, rgba(10, 10, 14, .82), rgba(10, 10, 14, .58)); border-bottom: 0;
    -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
/* нижняя кромка: тонкая линия, по которой бежит свет */
.px-header::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(242, 232, 213, .16) 20%, rgba(242, 232, 213, .16) 80%, transparent),
                linear-gradient(90deg, transparent 0, rgba(255, 246, 228, .85) 50%, transparent 100%) no-repeat;
    background-size: 100% 100%, 22% 100%; animation: hdrRun 7s linear infinite; }
@keyframes hdrRun { from { background-position: 0 0, -30% 0; } to { background-position: 0 0, 130% 0; } }
.px-header::after { background: var(--cream); }
.px-logo b { font-size: 24px; color: var(--cream); }
.px-logo b i { display: inline-block; animation: dotPulse 2.6s ease-in-out infinite; }
@keyframes dotPulse { 50% { opacity: .35; transform: translateY(-2px); } }
.px-logo small { font-size: 10.5px; color: var(--cream-2); opacity: .7; }
/* пункты меню: крупнее, обычные буквы, подложка-«таблетка» едет за курсором */
.px-nav { position: relative; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(242, 232, 213, .04); border: 1px solid rgba(242, 232, 213, .08); }
.px-nav a { z-index: 1; padding: 9px 18px; font-family: var(--ui); font-size: 15.5px; font-weight: 600; letter-spacing: .005em; text-transform: none; color: var(--cream-2); border-radius: 999px; }
.px-nav a::after, .px-nav a.active::before { content: none; }
.px-nav a:hover, .px-nav a.active { color: var(--cream); }
.px-nav-pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, rgba(242, 232, 213, .16), rgba(242, 232, 213, .07)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 20px -8px rgba(242, 232, 213, .35);
    transition: transform .55s var(--ease), width .55s var(--ease), opacity .3s; }
.px-link { font-size: 14px; letter-spacing: .02em; text-transform: none; font-weight: 600; color: var(--cream-2); }
.px-right { border-left-color: rgba(242, 232, 213, .1); }
.px-bal { font-size: 16px; color: var(--cream); padding: 7px 14px !important; border-radius: 999px !important; background: rgba(242, 232, 213, .05) !important; border: 1px solid rgba(242, 232, 213, .1) !important; transition: background .3s; }
.px-bal:hover { background: rgba(242, 232, 213, .1) !important; }
.px-me { font-size: 15px; color: var(--cream); }
.px-me span:first-child { background: rgba(242, 232, 213, .06); border-color: rgba(242, 232, 213, .2); }
.px-iconbtn { width: 38px; height: 38px; }

/* персонажи: сидят на нижнем крае шапки, ноги свисают вниз */
.mc-seat { position: relative; flex: 0 0 auto; width: 48px; height: 100%; cursor: pointer; --look: 0; }
.mc-seat.left { margin-left: 18px; }
.mc-seat.right { margin-left: 18px; }
/* колени ровно на нижней кромке шапки: бёдра «лежат» на панели, голени свисают */
.mc-seat .mc { position: absolute; left: 0; bottom: -27px; width: 48px; height: auto; overflow: visible; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.mc-thigh { display: none; }
.mc-seat .mc-thigh { display: inline; }
.mc-seat .mc-leg { transform-origin: 50% 25%; }
.mc g { transform-box: fill-box; }
.mc-head { transform-origin: 50% 100%; transform: rotate(calc(var(--look, 0) * 9deg)) translateX(calc(var(--look, 0) * .6px)); transition: transform .5s var(--ease); }
.mc-leg { transform-origin: 50% 0; }
.mc-arm { transform-origin: 50% 8%; }
.mc-seat .mc-leg.l { animation: legSwing 1.7s ease-in-out infinite; }
.mc-seat .mc-leg.r { animation: legSwing 1.7s ease-in-out -.85s infinite; }
.mc-seat .mc-arm.l { transform: rotate(14deg); }
.mc-seat .mc-arm.r { transform: rotate(-14deg); }
.mc-seat.right .mc-leg.l { animation-duration: 2.1s; }
.mc-seat.right .mc-leg.r { animation-duration: 2.1s; animation-delay: -1.05s; }
@keyframes legSwing { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
.mc-seat .mc-body { animation: breathe 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scaleY(1.025); } }
.mc-eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .08s; }
.blink .mc-eye { transform: scaleY(.15); }
.mc-seat:hover .mc-arm.r { animation: wave .6s ease-in-out 2; }
@keyframes wave { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(-150deg); } }
.mc-seat.hop .mc { animation: hop .55s var(--ease); }
@keyframes hop { 40% { transform: translateY(-14px); } }
@media (max-width: 1100px) { .mc-seat { display: none; } }
@media (max-width: 820px) { .px-logo b { font-size: 21px; } }

/* ============================================================
   V19 — ПРОФИЛЬ: анимации при наведении на карточки
   ============================================================ */
.px-cards { perspective: 1200px; }
.px-card { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease); will-change: transform; }
.px-card:hover { transition: transform .15s linear; }
.px-card .px-shot { border: 1px solid var(--glass-line); transition: box-shadow .6s var(--ease), border-color .4s; }
.px-card .px-shot img { transform: scale(1.06); filter: brightness(.82); transition: transform 1.2s var(--ease), filter .6s; }
.px-card:hover .px-shot { border-color: rgba(242, 232, 213, .35); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(242, 232, 213, .08); }
.px-card:hover .px-shot img { transform: scale(1.14); filter: brightness(1); }
.px-card:hover .px-glare { opacity: 1; }
.px-card-go { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #000; background: var(--cream);
    transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .6s var(--ease), opacity .35s; }
.px-card-go svg { width: 18px; height: 18px; }
.px-card:hover .px-card-go { transform: scale(1) rotate(-45deg); opacity: 1; }
.px-card-title { position: relative; transition: transform .6s var(--ease); }
.px-card-title::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--cream); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.px-card:hover .px-card-title { transform: translateX(6px); }
.px-card:hover .px-card-title::after { transform: scaleX(1); }
.px-card:hover .px-card-idx { color: var(--cream); }
.px-card:hover .px-card-sub { color: var(--ink-2); }

/* ============================================================
   V19 — ПРОМОКОД: билет
   ============================================================ */
.px-promo2 { padding: 44px 0 64px; }
.px-ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.15fr); align-items: center; overflow: hidden; isolation: isolate;
    border-radius: 26px; border: 1px solid var(--glass-line); background: linear-gradient(120deg, rgba(40, 34, 26, .55), rgba(14, 14, 18, .5) 55%, rgba(26, 30, 40, .5));
    -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25); box-shadow: inset 0 1px 0 rgba(242, 232, 213, .1), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.px-ticket::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background: radial-gradient(60% 120% at 0% 50%, rgba(243, 196, 107, .16), transparent 60%), repeating-linear-gradient(135deg, transparent 0 14px, rgba(242, 232, 213, .025) 14px 15px); }
.px-ticket-side { display: flex; align-items: center; gap: 24px; padding: 34px 10px 34px 34px; }
.px-ticket-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; padding: 34px 34px 34px 10px; }
.px-ticket-cut { align-self: stretch; position: relative; }
.px-ticket-cut::before { content: ''; position: absolute; left: 50%; top: 18px; bottom: 18px; border-left: 2px dashed rgba(242, 232, 213, .18); }
.px-ticket-cut::after { content: ''; position: absolute; left: 50%; top: -16px; bottom: -16px; width: 30px; margin-left: -15px;
    background: radial-gradient(circle at 50% 0, #000 14px, transparent 15px), radial-gradient(circle at 50% 100%, #000 14px, transparent 15px); opacity: .85; }
.px-promo-title { margin: 8px 0 0; color: var(--cream); }
.px-promo-lead { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.px-gift { position: relative; flex: 0 0 auto; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 22px;
    background: radial-gradient(circle, rgba(243, 196, 107, .22), transparent 70%); }
.px-gift svg { width: 60px; height: 60px; overflow: visible; animation: giftBob 2.6s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .6)); }
.px-gift .lid { transform-box: fill-box; transform-origin: 0 100%; transition: transform .5s var(--ease); }
.px-ticket:hover .px-gift .lid { transform: rotate(-14deg) translateY(-1px); }
@keyframes giftBob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.px-gift i { position: absolute; width: 5px; height: 5px; background: #f3c46b; animation: twinkle 2.4s ease-in-out infinite; }
.px-gift i:nth-of-type(1) { left: 6px; top: 12px; } .px-gift i:nth-of-type(2) { right: 4px; top: 20px; animation-delay: -.6s; background: #efe3cb; }
.px-gift i:nth-of-type(3) { left: 14px; bottom: 8px; animation-delay: -1.2s; background: #6fd3c4; } .px-gift i:nth-of-type(4) { right: 12px; bottom: 4px; animation-delay: -1.8s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.px-code { position: relative; display: block; }
html body .px-code input { width: 100%; height: 58px; padding: 0 18px !important; box-sizing: border-box; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
    color: var(--cream) !important; background: rgba(0, 0, 0, .35) !important; border: 1px solid rgba(242, 232, 213, .16) !important; border-radius: 16px !important; }
html body .px-code input::placeholder { color: rgba(242, 232, 213, .3); letter-spacing: .22em; }
.px-code-line { position: absolute; left: 16px; right: 16px; bottom: 9px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #f3c46b, var(--cream), #6fd3c4); transform: scaleX(0); transition: transform .7s var(--ease); }
.px-code input:focus + .px-code-line { transform: scaleX(1); }
html body .px-code input:focus { border-color: rgba(242, 232, 213, .32) !important; }
.px-ticket .px-btn { height: 58px; border-radius: 16px; }
.px-ticket .px-promo-msg { grid-column: 1 / -1; }
.px-ticket-shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 2; pointer-events: none; transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 246, 228, .09), transparent); animation: ticketShine 6s ease-in-out infinite; }
@keyframes ticketShine { 0%, 60% { left: -40%; } 100% { left: 130%; } }
.px-ticket.won { animation: wonPop .7s var(--ease); }
@keyframes wonPop { 30% { transform: scale(1.015); } }
.px-ticket.won .px-gift .lid { transform: rotate(-40deg) translate(-2px, -4px); }
.px-spark { position: absolute; left: 50%; top: 40%; width: 6px; height: 6px; pointer-events: none; animation: spark 1s var(--ease) forwards; }
@keyframes spark { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--x), var(--y)); opacity: 0; } }
@media (max-width: 900px) {
    .px-ticket { grid-template-columns: 1fr; }
    .px-ticket-cut { height: 30px; } .px-ticket-cut::before { left: 18px; right: 18px; top: 50%; bottom: auto; border-left: 0; border-top: 2px dashed rgba(242, 232, 213, .18); }
    .px-ticket-cut::after { display: none; }
    .px-ticket-side { padding: 26px 22px 6px; } .px-ticket-main { padding: 6px 22px 26px; grid-template-columns: 1fr; }
}

/* ============================================================
   V19 — КРИПТОВАЛЮТА в стиле сайта
   ============================================================ */
html body .crypto-scene { background: transparent !important; font-family: var(--ui) !important; height: calc(100vh - var(--hdr)); }
html body .crypto-scene .bg-orbs, html body .crypto-scene .bg-grid { display: none !important; }
html body .crypto-topbar { background: transparent !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; padding-left: 150px !important; }
html body .crypto-topbar .title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.03em; color: var(--cream); display: flex; align-items: center; gap: 12px; }
html body .crypto-topbar .live-dot { background: #8fdc8f; box-shadow: 0 0 0 4px rgba(143, 220, 143, .15); }
html body .crypto-scene .back-btn { border-radius: 999px !important; background: rgba(242, 232, 213, .06) !important; border: 1px solid var(--glass-line) !important; color: var(--cream-2) !important; font-family: var(--ui); }
html body .crypto-scene .back-btn:hover { color: var(--cream) !important; background: rgba(242, 232, 213, .12) !important; }
html body .crypto-scene .coins-list-header, html body .crypto-scene .orderbook-header { font-family: var(--ui); font-weight: 800; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-2); border-bottom: 1px solid var(--glass-line) !important; }
html body .crypto-scene .count-badge { background: rgba(242, 232, 213, .08) !important; color: var(--cream) !important; border: 0 !important; border-radius: 999px; }
html body .crypto-scene .coin-item { margin: 4px 8px; background: transparent; transition: background .35s var(--ease), border-color .35s, transform .45s var(--ease); }
html body .crypto-scene .coin-item:hover { background: rgba(242, 232, 213, .05) !important; transform: translateX(3px); }
html body .crypto-scene .coin-item.active { background: rgba(242, 232, 213, .09) !important; border-color: rgba(242, 232, 213, .2) !important; box-shadow: inset 3px 0 0 var(--cream) !important; }
html body .crypto-scene .coin-item::before, html body .crypto-scene .coin-item::after { display: none !important; }
/* монета: круглая, с кольцом её цвета и буквой */
html body .crypto-scene .coin-icon, html body .crypto-scene .big-icon, html body .crypto-scene .pf-icon, html body .info-icon {
    width: 40px !important; height: 40px !important; border-radius: 50% !important; display: grid !important; place-items: center; flex: 0 0 auto;
    font-family: var(--display) !important; font-weight: 700; font-size: 15px !important; line-height: 1;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, currentColor 45%, #fff 10%), color-mix(in srgb, currentColor 30%, #000) 70%) !important;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 70%, #000), inset 0 0 0 5px rgba(0, 0, 0, .25), 0 6px 16px -6px currentColor !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
html body .crypto-scene .coin-icon { -webkit-text-fill-color: #fff; }
html body .crypto-scene .big-icon { width: 54px !important; height: 54px !important; font-size: 20px !important; color: var(--cream); }
html body .crypto-scene .big-icon span { color: #fff; }
html body .crypto-scene .coin-ticker, html body .crypto-scene .ticker, html body .crypto-scene .pf-ticker, html body .info-ticker { font-family: var(--display) !important; font-weight: 700; letter-spacing: -.02em; color: var(--cream) !important; }
html body .crypto-scene .ticker { font-size: 28px !important; }
html body .crypto-scene .coin-name, html body .crypto-scene .full-name { display: none; }
html body .crypto-scene .coin-price, html body .crypto-scene .coin-details-price, html body .crypto-scene .ph-value { font-family: var(--display) !important; font-variant-numeric: tabular-nums; color: var(--cream) !important; -webkit-text-fill-color: currentColor !important; background: none !important; text-shadow: none !important; }
html body .crypto-scene .coin-details-price { font-size: clamp(26px, 3vw, 40px) !important; letter-spacing: -.04em; }
html body .crypto-scene .coin-change.up, html body .crypto-scene .coin-details-change.up { color: #9fdc96 !important; background: rgba(143, 220, 143, .1) !important; border-radius: 999px; }
html body .crypto-scene .coin-change.down, html body .crypto-scene .coin-details-change.down { color: #ee8f7d !important; background: rgba(224, 112, 94, .1) !important; border-radius: 999px; }
html body .crypto-scene .chart-wrapper { border-radius: 18px; background: rgba(0, 0, 0, .18); border: 1px solid rgba(242, 232, 213, .06); }
html body .crypto-scene .mode-switch { background: rgba(0, 0, 0, .3) !important; border: 1px solid var(--glass-line) !important; border-radius: 999px !important; padding: 4px; }
html body .crypto-scene .mode-switch button { border-radius: 999px !important; font-family: var(--ui); font-weight: 700; color: var(--cream-2) !important; background: transparent !important; border: 0 !important; transition: background .35s var(--ease), color .3s; }
html body .crypto-scene .mode-switch button.active { background: var(--cream) !important; color: #000 !important; }
html body .crypto-scene .quick-btn { border-radius: 999px !important; background: rgba(242, 232, 213, .06) !important; border: 1px solid var(--glass-line) !important; color: var(--cream) !important; font-family: var(--ui); font-weight: 700; transition: background .3s, transform .3s var(--ease); }
html body .crypto-scene .quick-btn:hover { background: rgba(242, 232, 213, .14) !important; transform: translateY(-2px); }
html body .crypto-scene .trade-input-row, html body .crypto-scene .trade-total-row { background: rgba(0, 0, 0, .28) !important; border: 1px solid var(--glass-line) !important; border-radius: 16px !important; }
html body .crypto-scene .trade-input-row label, html body .crypto-scene .trade-total-row .label { font-family: var(--ui); font-weight: 700; text-transform: none; letter-spacing: .02em; color: var(--cream-2) !important; }
html body .crypto-scene .trade-input-row input { background: transparent !important; border: 0 !important; font-family: var(--display); color: var(--cream) !important; }
html body .crypto-scene .trade-total-row .value { font-family: var(--display); color: var(--cream) !important; }
html body .crypto-scene .trade-btn { border-radius: 16px !important; font-family: var(--ui) !important; font-weight: 800; letter-spacing: .14em; transition: transform .35s var(--ease), background .3s, color .3s !important; }
html body .crypto-scene .trade-btn:hover { transform: translateY(-2px); }
html body .crypto-scene .info-btn { border-radius: 999px !important; background: transparent !important; border: 1px solid var(--glass-line) !important; color: var(--cream-2) !important; font-family: var(--ui); }
html body .crypto-scene .orderbook-row { font-family: var(--ui); font-variant-numeric: tabular-nums; border-radius: 8px; }
html body .crypto-scene .orderbook-spread { color: var(--cream) !important; font-family: var(--display); border-color: var(--glass-line) !important; }
html body .crypto-scene .bottom-tabs { background: rgba(14, 14, 18, .6) !important; border: 1px solid var(--glass-line) !important; border-radius: 999px !important; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8) !important; }
html body .crypto-scene .bottom-tab { border-radius: 999px !important; font-family: var(--ui); font-weight: 700; letter-spacing: .02em; text-transform: none; color: var(--cream-2) !important; padding: 0 22px !important; }
html body .crypto-scene .bottom-tab.active { background: var(--cream) !important; color: #000 !important; box-shadow: none !important; }
html body .crypto-scene .tab-icon:empty, html body .crypto-scene .pf-empty .icon:empty { display: none; }
html body .crypto-scene .ph-label { font-family: var(--ui); font-weight: 800; letter-spacing: .2em; color: var(--cream-2); }
html body .crypto-scene .pf-row { border-radius: 16px !important; background: rgba(242, 232, 213, .03) !important; border: 1px solid var(--glass-line) !important; transition: background .3s, transform .4s var(--ease); }
html body .crypto-scene .pf-row:hover { background: rgba(242, 232, 213, .07) !important; transform: translateY(-2px); }
html body .info-modal-box, html body .crypto-scene [class$="-modal-box"] { border-radius: var(--r-lg) !important; background: rgba(16, 16, 20, .92) !important; border: 1px solid var(--glass-line) !important; }

/* ============================================================
   V21 — персонажи на шапке: пересадка, дразнилка, кормление,
   реплики (mcskin.js)
   ============================================================ */
.mc-seat { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.px-header.mc-free .mc-seat { position: absolute; top: 0; margin: 0; z-index: 3; }
.px-header.mc-free .px-nav { margin-right: 66px; }   /* место для правого персонажа между меню и балансом */
.mc-seat:focus-visible { outline: none; }
/* в руке: болтается, ноги и руки дёргаются */
.mc-seat.held { cursor: grabbing; z-index: 400; }
.mc-seat.held .mc { animation: mcDangle .45s ease-in-out infinite alternate; transform-origin: 50% 8%; }
.mc-seat.held .mc-leg.l, .mc-seat.held .mc-leg.r { animation-duration: .3s; }
.mc-seat.held .mc-arm.l { animation: mcFlailL .22s ease-in-out infinite alternate; }
.mc-seat.held .mc-arm.r { animation: mcFlailR .22s ease-in-out infinite alternate; }
@keyframes mcDangle { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes mcFlailL { from { transform: rotate(40deg); } to { transform: rotate(110deg); } }
@keyframes mcFlailR { from { transform: rotate(-40deg); } to { transform: rotate(-110deg); } }
/* посадка на новое место — с пружинкой */
.mc-seat.landing { transition: top .35s cubic-bezier(.3, 1.6, .5, 1); }
/* падение и возвращение */
.mc-seat.falling .mc { animation: mcFall .85s cubic-bezier(.55, 0, 1, .45) forwards; }
@keyframes mcFall { to { transform: translateY(280px) rotate(30deg); opacity: 0; } }
.mc-seat.climb .mc { animation: mcClimb 1.15s cubic-bezier(.22, 1, .36, 1) both; }
.mc-seat.climb .mc-arm.l { animation: mcClimbL .28s ease-in-out infinite alternate; }
.mc-seat.climb .mc-arm.r { animation: mcClimbR .28s ease-in-out -.14s infinite alternate; }
@keyframes mcClimb { 0% { transform: translateY(70px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(-6px); } 100% { transform: none; } }
@keyframes mcClimbL { from { transform: rotate(160deg); } to { transform: rotate(120deg); } }
@keyframes mcClimbR { from { transform: rotate(-160deg); } to { transform: rotate(-120deg); } }
/* обида: краснеет, топает, уходит за край и возвращается */
.mc-seat.angry .mc { filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)) sepia(.55) saturate(2.6) hue-rotate(-38deg); animation: mcStomp .26s ease-in-out 4; }
@keyframes mcStomp { 50% { transform: translateY(-4px) rotate(-3deg); } }
.mc-seat.walk { transition: left 2.4s linear, opacity .3s; }
.mc-seat.walk .mc-leg.l, .mc-seat.walk .mc-leg.r { animation-duration: .44s; }
.mc-seat.walk .mc { animation: mcWalkBob .22s ease-in-out infinite alternate; }
.mc-seat.walk.angry .mc { animation: mcWalkBob .22s ease-in-out infinite alternate; }
.mc-seat.walk.to-left .mc-head { transform: rotate(-12deg) translateX(-.6px); }
.mc-seat.walk.to-right .mc-head { transform: rotate(12deg) translateX(.6px); }
@keyframes mcWalkBob { to { transform: translateY(-3px); } }
.mc-seat.gone { opacity: 0; pointer-events: none; }
/* кормление: тянут руки к алмазу, ловят и радуются */
.mc-food { cursor: grab; touch-action: none; }
.mc-seat.hungry .mc-arm.l { transform: rotate(115deg); transition: transform .3s; }
.mc-seat.hungry .mc-arm.r { transform: rotate(-115deg); transition: transform .3s; }
.mc-seat.want .mc { filter: drop-shadow(0 0 10px rgba(111, 211, 196, .95)) drop-shadow(0 6px 8px rgba(0, 0, 0, .55)); }
.mc-seat.eat .mc { animation: hop .55s cubic-bezier(.22, 1, .36, 1) 2; }
.mc-seat.eat .mc-arm.l { transform: rotate(150deg); }
.mc-seat.eat .mc-arm.r { transform: rotate(-150deg); }
.mc-ore-ghost { position: fixed; left: 0; top: 0; width: 28px; height: 28px; z-index: 9000; pointer-events: none; image-rendering: pixelated; border-radius: 4px; filter: drop-shadow(0 0 10px rgba(111, 211, 196, .85)); }
.mc-spark { position: fixed; width: 5px; height: 5px; z-index: 9000; pointer-events: none; animation: mcSpark .75s cubic-bezier(.22, 1, .36, 1) forwards; }
@keyframes mcSpark { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--x), var(--y)); opacity: 0; } }
/* речь: рот двигается, облачко под шапкой */
.mc-seat.talk .mc-mouth { transform-box: fill-box; transform-origin: 50% 0; animation: mcTalk .17s ease-in-out infinite alternate; }
@keyframes mcTalk { from { transform: scaleY(.35); } to { transform: scaleY(1.2); } }
.mc-say { position: absolute; top: calc(100% + 8px); z-index: 350; width: max-content; max-width: 240px; padding: 10px 14px; border-radius: 4px 14px 14px 14px;
    font: 700 13.5px/1.35 var(--ui); color: #111; background: var(--cream); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
    opacity: 0; transform: translateY(-6px) scale(.94); transform-origin: 0 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.mc-say::before { content: ''; position: absolute; left: 0; top: -7px; border: 7px solid transparent; border-left-color: var(--cream); border-bottom-color: var(--cream); border-top: 0; }
.mc-say.left { border-radius: 14px 4px 14px 14px; transform: translateX(-100%) translateY(-6px) scale(.94); transform-origin: 100% 0; }
.mc-say.left::before { left: auto; right: 0; border-left-color: transparent; border-right-color: var(--cream); }
.mc-say.on { opacity: 1; transform: none; }
.mc-say.left.on { transform: translateX(-100%); }
@media (max-width: 1100px) { .mc-say { display: none; } }

/* ============================================================
   Пасхалка «хвб»: алмазный дождь и танец персонажей
   ============================================================ */
.hv-rain { position: fixed; inset: 0; z-index: 8000; pointer-events: none; overflow: hidden; }
.hv-rain img { position: absolute; top: -60px; image-rendering: pixelated; border-radius: 3px; filter: drop-shadow(0 0 8px rgba(111, 211, 196, .7));
    animation: hvRain var(--d) cubic-bezier(.45, 0, .9, .6) var(--w) both; }
@keyframes hvRain { from { transform: translate(0, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } to { transform: translate(var(--x), calc(100vh + 80px)) rotate(var(--r)); opacity: .2; } }
.mc-seat.dance .mc { animation: mcDance .32s ease-in-out infinite alternate; }
.mc-seat.dance .mc-arm.l { animation: mcDanceL .32s ease-in-out infinite alternate; }
.mc-seat.dance .mc-arm.r { animation: mcDanceR .32s ease-in-out -.16s infinite alternate; }
.mc-seat.dance .mc-head { transform: rotate(calc(var(--dz, 1) * 10deg)); }
@keyframes mcDance { from { transform: translateY(0) rotate(-6deg); } to { transform: translateY(-7px) rotate(6deg); } }
@keyframes mcDanceL { from { transform: rotate(30deg); } to { transform: rotate(160deg); } }
@keyframes mcDanceR { from { transform: rotate(-30deg); } to { transform: rotate(-160deg); } }
@media (prefers-reduced-motion: reduce) { .hv-rain img { animation-duration: 2.5s; } }
/* ============================================================
   Пасхалка «диско»: прожекторы, диско-шар, блики, цветной фон
   ============================================================ */
.hv-disco-fx { position: fixed; inset: 0; z-index: 7000; pointer-events: none; overflow: hidden; animation: discoIn .5s ease both; }
.hv-disco-fx.out { animation: discoOut .8s ease forwards; }
@keyframes discoIn { from { opacity: 0; } }
@keyframes discoOut { to { opacity: 0; } }
.hv-disco-fx .beam { position: absolute; top: -6vh; left: var(--x); width: 26vw; height: 130vh; transform-origin: 50% 0; mix-blend-mode: screen; opacity: .2;
    background: linear-gradient(180deg, var(--c), transparent 78%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); filter: blur(5px);
    animation: discoBeam var(--t) ease-in-out var(--dl) infinite alternate; }
@keyframes discoBeam { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
.hv-disco-fx .ball { position: absolute; left: 50%; top: 0; width: 58px; height: 58px; margin-left: -29px; border-radius: 50%;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 8px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 8px),
                radial-gradient(circle at 35% 30%, #ffffff, #c9d0dc 35%, #6c7484 75%, #3b4150);
    box-shadow: 0 0 30px rgba(255, 255, 255, .45), 0 0 80px rgba(176, 124, 255, .35);
    animation: discoDrop .7s cubic-bezier(.3, 1.4, .5, 1) both, discoSpin .5s steps(4) infinite; }
.hv-disco-fx .ball s { position: absolute; left: 50%; bottom: 100%; width: 2px; height: 100px; margin-left: -1px; background: rgba(242, 232, 213, .5); }
@keyframes discoDrop { from { transform: translateY(-120px); } to { transform: translateY(84px); } }
@keyframes discoSpin { to { background-position: 8px 0, 0 8px, 0 0; } }
.hv-disco-fx .spot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 3px; background: var(--c); opacity: .55; mix-blend-mode: screen;
    box-shadow: 0 0 14px var(--c); animation: discoSpot var(--st) ease-in-out infinite alternate; }
@keyframes discoSpot { from { transform: translate(var(--sx), var(--sy)); } to { transform: translate(var(--ex), var(--ey)); } }
html.hv-disco .hv-world { animation: discoHue 2.4s linear infinite, worldDrift 40s ease-in-out infinite alternate; }
@keyframes discoHue { from { filter: brightness(.42) saturate(1.7) hue-rotate(0deg); } to { filter: brightness(.42) saturate(1.7) hue-rotate(360deg); } }
html.hv-disco .px-header::before { background: repeating-linear-gradient(90deg, #b07cff 0 18px, #57e3d4 18px 36px, #f3b440 36px 54px, #ff7ab6 54px 72px); background-size: 72px 100%; height: 2px; animation: discoRun .6s linear infinite; }
@keyframes discoRun { to { background-position: 72px 0; } }
html.hv-disco .px-logo b { animation: discoLogo .25s steps(2) infinite; }
@keyframes discoLogo { 50% { color: #f3b440; text-shadow: 0 0 14px rgba(243, 180, 64, .7); } }
@media (prefers-reduced-motion: reduce) { .hv-disco-fx .beam, .hv-disco-fx .spot, html.hv-disco .hv-world { animation-duration: 6s; } }
/* тёмные очки (↑↑↓↓←→←→) */
.mc-shades { display: none; }
.mc-seat.shades .mc-shades { display: inline; }
/* ============================================================
   Пасхалки «крипер», «стив», «спасибо»
   ============================================================ */
.hv-creeper { position: fixed; right: 6vw; bottom: 0; z-index: 8000; width: 132px; height: 132px; pointer-events: none;
    animation: creeperPeek .6s cubic-bezier(.22, 1, .36, 1) both; filter: drop-shadow(0 -6px 24px rgba(95, 191, 58, .45)); }
.hv-creeper svg { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.hv-creeper .hiss { position: absolute; left: -20px; top: -34px; font: 800 18px/1 var(--display); color: #a6ec88; letter-spacing: .08em; opacity: 0; transform: rotate(-8deg); }
.hv-creeper.fuse { animation: creeperFuse .16s steps(2) infinite, creeperSwell 1.6s ease-in forwards; }
.hv-creeper.fuse .hiss { opacity: 1; animation: creeperHiss .3s ease-in-out infinite alternate; }
@keyframes creeperPeek { from { transform: translateY(105%); } to { transform: translateY(18%); } }
@keyframes creeperFuse { 50% { filter: brightness(3.2) saturate(0); } }
@keyframes creeperSwell { from { transform: translateY(18%) scale(1); } to { transform: translateY(10%) scale(1.22); } }
@keyframes creeperHiss { to { transform: rotate(-4deg) translateX(4px); } }
.hv-confetti { position: fixed; width: 9px; height: 9px; z-index: 8001; pointer-events: none; animation: hvConfetti 1.5s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes hvConfetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--x), calc(var(--y) + 220px)) rotate(var(--r)); opacity: 0; } }
html.hv-boom .page-wrap, html.hv-boom .px-header { animation: hvBoom .45s cubic-bezier(.36, .07, .19, .97); }
@keyframes hvBoom { 20% { transform: translate(-6px, 3px); } 40% { transform: translate(6px, -4px); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.mc-seat.scared .mc { animation: mcScared .12s linear infinite alternate; }
@keyframes mcScared { from { transform: translateX(-1.5px); } to { transform: translateX(1.5px); } }
.mc-seat.scared .mc-arm.l { transform: rotate(150deg); } .mc-seat.scared .mc-arm.r { transform: rotate(-150deg); }
/* поклон */
.mc-seat.bow .mc-head { animation: mcBowHead 1.6s ease-in-out; }
.mc-seat.bow .mc-body { animation: mcBowBody 1.6s ease-in-out; }
.mc-seat.bow .mc-arm.r { animation: mcBowArm 1.6s ease-in-out; }
@keyframes mcBowHead { 25%, 65% { transform: translateY(2.2px) scaleY(.82); } }
@keyframes mcBowBody { 25%, 65% { transform: scaleY(.9); } }
@keyframes mcBowArm { 25%, 65% { transform: rotate(-55deg); } }
/* Стив на панели */
.mc-seat.steve { cursor: pointer; z-index: 4; }
.mc-seat.steve .mc-leg.l { animation-duration: 1.4s; } .mc-seat.steve .mc-leg.r { animation-duration: 1.4s; animation-delay: -.7s; }
/* ============================================================
   Без мелких цифр и надписей над блоками
   ============================================================ */
.px-row { grid-template-columns: minmax(0, 1fr) minmax(0, 260px) 44px; }
.px-viewbar { justify-content: flex-end; }
@media (max-width: 820px) {
    .px-row { grid-template-columns: minmax(0, 1fr) 40px; }
    .px-row .px-row-sub { grid-column: 1; grid-row: 2; }
    .px-row .px-arrow { grid-column: 2; grid-row: 1 / span 2; }
}
/* ============================================================
   V29 — значок достижения: ячейка инвентаря Minecraft
   ============================================================ */
.hv-badge { --bc: #e3a24a; --sz: 1.55em; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--sz); height: var(--sz);
    margin-right: .4em; vertical-align: -.38em; font-style: normal; font-size: 1em; line-height: 1; cursor: help; box-sizing: border-box;
    background: #8b8b8b; border: 1px solid color-mix(in srgb, var(--bc) 80%, #000);
    box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #ffffff, 0 0 0 1px color-mix(in srgb, var(--bc) 35%, transparent), 0 0 10px color-mix(in srgb, var(--bc) 40%, transparent);
    image-rendering: pixelated; transition: transform .3s var(--ease), box-shadow .3s; }
.hv-badge img { width: 74%; height: 74%; image-rendering: pixelated; pointer-events: none; }
.hv-badge > span { font-size: .8em; }
.hv-badge[data-tier]:not([data-tier=""])::after { content: attr(data-tier); position: absolute; right: -3px; bottom: -4px; padding: 0 2px; font: 900 8px/1.15 var(--ui); letter-spacing: -.5px;
    color: #fff; background: color-mix(in srgb, var(--bc) 75%, #000); border: 1px solid #000; text-shadow: none; }
.hv-badge:hover { transform: translateY(-1px) scale(1.12); box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff, 0 0 0 1px var(--bc), 0 0 14px color-mix(in srgb, var(--bc) 60%, transparent); }
.hv-badge.lg { --sz: 38px; margin-right: 0; vertical-align: middle; border-width: 2px; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff, 0 0 0 1px color-mix(in srgb, var(--bc) 40%, transparent), 0 0 16px color-mix(in srgb, var(--bc) 45%, transparent); }
.hv-badge.lg[data-tier]:not([data-tier=""])::after { font-size: 10px; right: -5px; bottom: -6px; }
.hv-badge-text { --bc: #e3a24a; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 6px; font-size: 13px; font-weight: 800;
    color: color-mix(in srgb, var(--bc) 40%, #fff); background: color-mix(in srgb, var(--bc) 14%, rgba(0, 0, 0, .45));
    border: 1px solid color-mix(in srgb, var(--bc) 55%, transparent); }
.hv-badge-text .hv-badge { --sz: 26px; margin: 0; vertical-align: middle; }
/* в таблице лидеров: крупный значок, под ником титул цвета редкости */
.px-rank-nick { display: inline-flex; align-items: center; gap: 12px; }
.px-rank-name { display: inline-flex; flex-direction: column; line-height: 1.15; }
.px-rank-title { margin-top: 3px; font: 800 11.5px var(--ui); letter-spacing: .02em; color: color-mix(in srgb, var(--bc) 55%, #fff); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }