/* ==========================================================================
   FlameDrop — новогодняя тема
   Размеры в rem: корневой шрифт растёт с шириной экрана, поэтому интерфейс
   одинаково выглядит на 1920×1080, 2560×1440 и 3840×2160 (без «мелкого» вида).
   ========================================================================== */

:root {
    --bg: #07061a;
    --bg2: #0d0b28;
    --panel: rgba(23, 20, 62, .66);
    --panel-solid: #15123a;
    --panel2: rgba(34, 30, 86, .6);
    --line: rgba(150, 160, 255, .13);
    --line2: rgba(150, 160, 255, .22);
    --text: #eef1ff;
    --muted: #9196c8;
    --flame: #ff2e4d;
    --flame2: #ff7a1a;
    --ice: #5ec8ff;
    --ice2: #a6ecff;
    --gold: #ffc93c;
    --green: #3ddc72;
    --purple: #a855f7;
    --r: .9rem;
    --r-lg: 1.25rem;
    --live-w: 15.5rem;
    --top-h: 4.6rem;
    --pad: 2rem;
    --shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
}

html {
    /* 1920px -> 16px, 2560px -> 21.3px, 3840px -> 32px */
    font-size: clamp(13px, .8334vw, 40px);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
@media (max-width: 1560px) { html { font-size: 13px; } }
@media (max-width: 760px) { html { font-size: 13.5px; } :root { --pad: 1rem; } }

*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 500 1rem/1.45 Inter, Roboto, system-ui, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ice); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .85em; background: rgba(255, 255, 255, .06); padding: .1em .4em; border-radius: .3em; word-break: break-all; }
[hidden] { display: none !important; }
::selection { background: var(--flame); color: #fff; }
::-webkit-scrollbar { width: .55rem; height: .55rem; }
::-webkit-scrollbar-thumb { background: #2c2766; border-radius: 1rem; }
::-webkit-scrollbar-track { background: transparent; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- фон ---------- */
#bg-snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .8; }
.bg-glow {
    position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background:
        radial-gradient(60rem 40rem at 85% -10%, rgba(94, 200, 255, .14), transparent 60%),
        radial-gradient(55rem 40rem at 15% 0%, rgba(255, 46, 77, .13), transparent 60%),
        radial-gradient(70rem 50rem at 50% 110%, rgba(168, 85, 247, .12), transparent 60%),
        linear-gradient(180deg, #0a0822 0%, #07061a 50%, #060515 100%);
}

/* ---------- каркас ---------- */
.shell { position: relative; z-index: 1; margin-left: var(--live-w); min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; padding: 1.5rem var(--pad) 3rem; width: 100%; max-width: 120rem; margin: 0 auto; opacity: 0; transform: translateY(.8rem); }
.page.enter { animation: page-in .55s var(--ease) forwards; }
@keyframes page-in { to { opacity: 1; transform: none; } }

/* ---------- шапка ---------- */
.top {
    position: sticky; top: 0; z-index: 50;
    height: var(--top-h); display: flex; align-items: center; gap: 2rem; padding: 0 var(--pad);
    background: linear-gradient(180deg, rgba(10, 8, 34, .92), rgba(10, 8, 34, .78));
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--line);
}
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--flame), var(--ice), transparent); opacity: .5; }

.logo { position: relative; display: inline-flex; align-items: baseline; font-weight: 900; font-size: 1.9rem; letter-spacing: -.03em; line-height: 1; white-space: nowrap; user-select: none; }
.logo-flame {
    background: linear-gradient(180deg, #ff8a9b 0%, #ff2e4d 45%, #c2102e 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 .12rem 0 #5b0414) drop-shadow(0 0 .6rem rgba(255, 46, 77, .45));
}
.logo-drop {
    background: linear-gradient(180deg, #ffffff 0%, #bfeeff 40%, #4aa8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 .12rem 0 #0b2f66) drop-shadow(0 0 .6rem rgba(94, 200, 255, .45));
}
.logo-hat {
    position: absolute; left: -.55rem; top: -.95rem; width: 1.9rem; height: 1.6rem; transform: rotate(-18deg); pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20' shape-rendering='crispEdges'%3E%3Cpath fill='%23d81b3c' d='M6 14h14V12h-1V9h-1V7h-2V5h-3V4H9v1H8v2H7v3H6z'/%3E%3Cpath fill='%23ff4d6a' d='M9 5h4v1h2v2h-2V7H9z'/%3E%3Cpath fill='%23fff' d='M4 14h18v4H4zM1 1h4v4H1z'/%3E%3Cpath fill='%23d81b3c' d='M5 3h4v2H5z'/%3E%3Cpath fill='%23dfe8f5' d='M4 17h18v1H4z'/%3E%3C/svg%3E") no-repeat center / contain;
    animation: hat 4s ease-in-out infinite;
}
@keyframes hat { 50% { transform: rotate(-12deg) translateY(-.1rem); } }
.logo.small { font-size: 1.5rem; }

.nav { display: flex; gap: .4rem; }
.nav a {
    position: relative; display: flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: .8rem;
    color: var(--muted); font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.active { color: #fff; background: linear-gradient(180deg, rgba(255, 46, 77, .18), rgba(255, 46, 77, .06)); box-shadow: inset 0 0 0 1px rgba(255, 46, 77, .35); }
.nav a.active::after { content: ''; position: absolute; left: 25%; right: 25%; bottom: -.95rem; height: .2rem; border-radius: 1rem; background: var(--flame); box-shadow: 0 0 1rem var(--flame); }
.ni { width: 1.3rem; height: 1.3rem; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ni-cases { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h18v11H3zM4 4h16v4H4z M10 9h4v4h-4z'/%3E%3C/svg%3E"); }
.ni-upgrade { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 8h-5v4H9v-4H4zM9 16h6v2H9zm0 4h6v2H9z'/%3E%3C/svg%3E"); }
.ni-top { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h10v3h4v3a5 5 0 0 1-5 5h-.3A5 5 0 0 1 13 16.9V19h4v2H7v-2h4v-2.1A5 5 0 0 1 8.3 14H8a5 5 0 0 1-5-5V6h4zm-2 5v1a3 3 0 0 0 2 2.8V8zm14 0h-2v3.8A3 3 0 0 0 19 9z'/%3E%3C/svg%3E"); }
.ni-fair { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l9 4v6c0 5-3.8 9.4-9 10-5.2-.6-9-5-9-10V6zm-1.2 13.2l6-6-1.4-1.4-4.6 4.6-2.2-2.2-1.4 1.4z'/%3E%3C/svg%3E"); }

.top-right { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.online { display: flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 2rem; background: rgba(61, 220, 114, .08); border: 1px solid rgba(61, 220, 114, .25); font-size: .85rem; color: var(--muted); }
.online b { color: #fff; font-weight: 800; }
.live-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 114, .7); animation: live 1.8s infinite; flex: none; }
@keyframes live { 70% { box-shadow: 0 0 0 .5rem rgba(61, 220, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 114, 0); } }
.icon-btn { width: 2.6rem; height: 2.6rem; border-radius: .75rem; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); font-size: 1.05rem; transition: transform .2s, border-color .2s; }
.icon-btn:hover { transform: translateY(-2px); border-color: var(--line2); }

.balance { display: flex; align-items: center; gap: .55rem; padding: .3rem .3rem .3rem .8rem; border-radius: .9rem; background: linear-gradient(180deg, rgba(255, 201, 60, .12), rgba(255, 201, 60, .04)); border: 1px solid rgba(255, 201, 60, .3); }
.balance b { font-size: 1.1rem; font-weight: 800; min-width: 3ch; font-variant-numeric: tabular-nums; }
.balance.bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.08); box-shadow: 0 0 1.5rem rgba(255, 201, 60, .5); } }
.coin-ic { width: 1.25em; height: 1.25em; object-fit: contain; display: inline-block; vertical-align: -.25em; filter: drop-shadow(0 0 .3rem rgba(255, 201, 60, .4)); }
.bal-plus { width: 2rem; height: 2rem; border-radius: .65rem; font-size: 1.3rem; font-weight: 800; line-height: 1; background: linear-gradient(180deg, #ff5a6e, var(--flame)); color: #fff; box-shadow: 0 .3rem 1rem rgba(255, 46, 77, .45); transition: transform .2s; }
.bal-plus:hover { transform: scale(1.08) rotate(90deg); }

.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: .55rem; padding: .3rem .7rem .3rem .3rem; border-radius: .9rem; background: var(--panel2); border: 1px solid var(--line); }
.user-btn .un { font-weight: 700; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { color: var(--muted); font-size: .8rem; }
.user-drop {
    position: absolute; right: 0; top: calc(100% + .6rem); min-width: 15rem; padding: .5rem; border-radius: var(--r);
    background: var(--panel-solid); border: 1px solid var(--line2); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-.5rem) scale(.97); pointer-events: none; transition: .2s var(--ease); transform-origin: top right;
}
.user-drop.open { opacity: 1; transform: none; pointer-events: auto; }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: .7rem .9rem; border-radius: .6rem; color: var(--text); font-weight: 600; }
.user-drop a:hover, .user-drop button:hover { background: rgba(255, 255, 255, .06); }
.user-drop .danger { color: #ff8095; }

/* ---------- кнопки ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.4rem; border-radius: .85rem; font-weight: 800; font-size: 1rem; letter-spacing: .01em; white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .25s, filter .2s, opacity .2s; overflow: hidden; isolation: isolate;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; filter: grayscale(.4); }
.btn-flame { color: #fff; background: linear-gradient(180deg, #ff5a6e 0%, #ff2e4d 55%, #d6163a 100%); box-shadow: 0 .4rem 1.4rem rgba(255, 46, 77, .4), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -.2rem 0 rgba(0, 0, 0, .2); }
.btn-flame:hover { box-shadow: 0 .6rem 2rem rgba(255, 46, 77, .6), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -.2rem 0 rgba(0, 0, 0, .2); }
.btn-ice { color: #04203a; background: linear-gradient(180deg, #c9f3ff 0%, #5ec8ff 60%, #2f9be6 100%); box-shadow: 0 .4rem 1.4rem rgba(94, 200, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -.2rem 0 rgba(0, 0, 0, .15); }
.btn-gold { color: #3a2500; background: linear-gradient(180deg, #fff1a8 0%, #ffc93c 55%, #f0a514 100%); box-shadow: 0 .4rem 1.2rem rgba(255, 201, 60, .3), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -.2rem 0 rgba(0, 0, 0, .15); }
.btn-ghost { color: var(--text); background: var(--panel2); border: 1px solid var(--line2); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(50, 44, 120, .6); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; border-radius: .7rem; }
.btn-xs { padding: .4rem .7rem; font-size: .78rem; border-radius: .55rem; }
.btn-wide { width: 100%; }
.btn-open { padding: 1.05rem 2.4rem; font-size: 1.15rem; border-radius: 1rem; min-width: 18rem; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading > * { visibility: hidden; }
.btn .coins { color: inherit; }
.btn-flame .coins { color: #fff3c4; }
.btn.loading::after { content: ''; position: absolute; width: 1.2rem; height: 1.2rem; border-radius: 50%; border: .2rem solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.pulse { animation: btn-pulse 2s infinite; }
@keyframes btn-pulse { 0%, 100% { box-shadow: 0 .4rem 1.4rem rgba(255, 46, 77, .4), 0 0 0 0 rgba(255, 46, 77, .5); } 50% { box-shadow: 0 .4rem 1.4rem rgba(255, 46, 77, .4), 0 0 0 .8rem rgba(255, 46, 77, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.pill-btn { padding: .5rem .9rem; border-radius: 2rem; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .85rem; transition: .2s; }
.pill-btn:hover { border-color: var(--line2); background: rgba(60, 52, 140, .6); }
.pill-btn.on { color: #ff8095; border-color: rgba(255, 46, 77, .4); }

/* ---------- монеты ---------- */
.coins { display: inline-flex; align-items: center; gap: .35em; font-weight: 800; color: #ffe18a; font-variant-numeric: tabular-nums; white-space: nowrap; }
.coins.sm { font-size: .82rem; }
.coins.lg { font-size: 1.5rem; }
.free-txt { color: var(--green); letter-spacing: .04em; text-shadow: 0 0 .8rem rgba(61, 220, 114, .5); }

/* ---------- живая лента ---------- */
.live { position: fixed; left: 0; top: 0; bottom: 0; width: var(--live-w); z-index: 60; display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(12, 10, 38, .96), rgba(8, 7, 26, .96)); border-right: 1px solid var(--line); }
.live-head { height: var(--top-h); flex: none; display: flex; align-items: center; justify-content: center; gap: .6rem; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.live-list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: .6rem; display: flex; flex-direction: column; gap: .5rem; scrollbar-width: none; mask: linear-gradient(180deg, #000 85%, transparent); }
.live-list::-webkit-scrollbar { display: none; }
.drop {
    position: relative; display: flex; align-items: center; gap: .7rem; padding: .55rem .6rem; border-radius: .8rem; flex: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 22%, transparent), rgba(255, 255, 255, .02) 70%);
    border: 1px solid color-mix(in srgb, var(--rc) 28%, transparent); overflow: hidden; color: var(--text);
}
.drop::before { content: ''; position: absolute; left: 0; top: 15%; bottom: 15%; width: .2rem; border-radius: 0 .2rem .2rem 0; background: var(--rc); box-shadow: 0 0 .8rem var(--rc); }
.drop-art { width: 3.4rem; height: 3.4rem; flex: none; display: grid; place-items: center; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 35%, transparent), transparent 70%); }
.drop-art .item-img { width: 85%; height: 85%; object-fit: contain; filter: drop-shadow(0 .2rem .4rem rgba(0, 0, 0, .5)); }
.drop-info { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.drop-tag { font-size: .66rem; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.drop-name { font-size: .82rem; font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.drop-hover { position: absolute; inset: 0; display: flex; align-items: center; gap: .5rem; padding: 0 .8rem; background: rgba(12, 10, 38, .94); opacity: 0; transition: opacity .2s; font-weight: 700; font-size: .85rem; }
.drop-hover span:not(.avatar) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop:hover .drop-hover { opacity: 1; }
.drop-case { width: 3rem; height: 2.2rem; object-fit: contain; }
.drop-up { color: var(--green); font-size: 1.2rem; }
.drop.fresh { animation: drop-in .8s var(--ease); }
@keyframes drop-in { 0% { opacity: 0; transform: translateY(-1rem) scale(.9); max-height: 0; } 40% { max-height: 6rem; } 100% { opacity: 1; transform: none; } }
.drop.fresh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rc) 50%, transparent), transparent); animation: sweep 1.2s ease-out forwards; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.drop.r-legendary, .drop.r-mythic { box-shadow: 0 0 1.2rem color-mix(in srgb, var(--rc) 25%, transparent); }
.live-empty { margin: 1rem .4rem; padding: 1.4rem 1rem; text-align: center; font-size: .85rem; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); }
.le-ic { font-size: 2rem; margin-bottom: .5rem; animation: float 3s ease-in-out infinite; }

/* ---------- аватар ---------- */
.avatar { width: 2.1rem; height: 2.1rem; flex: none; border-radius: .6rem; display: inline-grid; place-items: center; font-weight: 900; color: #fff; font-size: .95rem; background: linear-gradient(135deg, var(--a1), var(--a2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.avatar.xs { width: 1.3rem; height: 1.3rem; font-size: .65rem; border-radius: .35rem; vertical-align: middle; }
.avatar.sm { width: 1.8rem; height: 1.8rem; font-size: .8rem; }
.avatar.xl { width: 5rem; height: 5rem; font-size: 2.2rem; border-radius: 1.2rem; }

/* ---------- баннер ---------- */
.hero { margin-bottom: 1.5rem; }
.hero-frame {
    --px: 0px; --py: 0px;
    position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 2000 / 750;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .55), 0 0 0 1px var(--line2), 0 0 4rem rgba(94, 120, 255, .12);
    background: #0b0a2a;
}
.hero-img { position: absolute; inset: -2%; width: 104%; height: 104%; max-width: none; object-fit: cover; transform: translate3d(var(--px), var(--py), 0); transition: transform .6s var(--ease); animation: hero-in 1.4s var(--ease) both; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.08); filter: blur(6px) brightness(1.4); } }
.hero-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .16) 48%, rgba(255, 255, 255, .03) 52%, transparent 60%); transform: translateX(-100%); animation: hero-sweep 7s 1.5s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes hero-sweep { 0% { transform: translateX(-100%); } 25%, 100% { transform: translateX(100%); } }
.hero-frame::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 75%, rgba(7, 6, 26, .5)); box-shadow: inset 0 0 6rem rgba(7, 6, 26, .5); }
.twinkle { position: absolute; width: calc(2.2rem * var(--s, 1)); height: calc(2.2rem * var(--s, 1)); transform: translate(-50%, -50%); pointer-events: none; animation: twinkle 2.8s ease-in-out infinite; z-index: 2; }
.twinkle::before, .twinkle::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 0 .3rem #fff) drop-shadow(0 0 .7rem var(--ice)); }
.twinkle::before { width: 100%; height: .16rem; background: linear-gradient(90deg, transparent, #fff 45%, #fff 55%, transparent); }
.twinkle::after { width: .16rem; height: 100%; background: linear-gradient(180deg, transparent, #fff 45%, #fff 55%, transparent); }
.twinkle { background: radial-gradient(circle, rgba(255,255,255,.9) 0 6%, rgba(166,236,255,.35) 12%, transparent 30%); border-radius: 50%; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(20deg); } }
.hero-cta { position: absolute; left: 39.6%; top: 84.2%; width: 21.6%; height: 12.4%; border-radius: .9rem; z-index: 3; }
.cta-ring { position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(255, 46, 77, .7); animation: cta 2.2s infinite; }
.hero-cta:hover .cta-ring { box-shadow: 0 0 2.5rem .4rem rgba(255, 60, 90, .7), inset 0 0 2rem rgba(255, 255, 255, .25); animation: none; background: rgba(255, 255, 255, .06); }
@keyframes cta { 0% { box-shadow: 0 0 0 0 rgba(255, 46, 77, .65); } 70% { box-shadow: 0 0 0 1.4rem rgba(255, 46, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 46, 77, 0); } }

/* ---------- полоса статистики ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.ss-item { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.ss-ic img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 .2rem .4rem rgba(0,0,0,.5)); }
.ss-ic { font-size: 1.7rem; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: .8rem; background: rgba(255, 255, 255, .05); flex: none; }
.ss-item b { display: block; font-size: 1.15rem; font-weight: 800; }
.ss-item span { color: var(--muted); font-size: .85rem; }

/* ---------- категории ---------- */
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: .9rem; padding: .3rem .1rem 1rem; margin-bottom: .5rem; }
.chip { --ac: var(--flame); position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: 5.4rem; padding: 0 0 0 1.2rem; border-radius: var(--r); text-align: left; overflow: hidden; background: linear-gradient(120deg, color-mix(in srgb, var(--ac) 16%, var(--panel-solid)), var(--panel-solid) 70%); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); transition: transform .25s var(--ease), box-shadow .25s; }
.chip:hover { transform: translateY(-3px); box-shadow: 0 .8rem 2rem color-mix(in srgb, var(--ac) 25%, transparent); }
.chip-txt { min-width: 0; position: relative; z-index: 1; }
.chip-txt b { display: block; font-weight: 900; font-size: 1rem; text-transform: uppercase; white-space: nowrap; }
.chip-txt span { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.chip-img { position: absolute; right: -1.6rem; top: 50%; translate: 0 -50%; width: 7rem; height: 140%; object-fit: contain; opacity: .95; transition: transform .35s var(--ease); flex: none; }
.chip:hover .chip-img { transform: scale(1.12) rotate(-4deg); }
.acc-ice { --ac: var(--ice); } .acc-gold { --ac: var(--gold); } .acc-green { --ac: var(--green); } .acc-purple { --ac: var(--purple); } .acc-flame { --ac: var(--flame); }

/* ---------- панель поиска ---------- */
.toolbar { display: flex; align-items: center; gap: 1rem; margin: .5rem 0 1rem; scroll-margin-top: calc(var(--top-h) + 1rem); }
.tb-free { display: flex; align-items: center; gap: .7rem; padding: .65rem 1.1rem; border-radius: var(--r); background: linear-gradient(120deg, rgba(61, 220, 114, .16), rgba(61, 220, 114, .04)); border: 1px solid rgba(61, 220, 114, .3); color: var(--text); flex: none; transition: transform .2s; }
.tb-free:hover { transform: translateY(-2px); }
.tb-free b { display: block; font-size: .95rem; }
.tb-free small { color: var(--muted); font-variant-numeric: tabular-nums; }
.tb-free.ready { animation: free-glow 2s infinite; }
.tb-free.ready small { color: var(--green); font-weight: 700; }
@keyframes free-glow { 50% { box-shadow: 0 0 1.6rem rgba(61, 220, 114, .45); } }
.tbf-ic { font-size: 1.6rem; animation: float 2.6s ease-in-out infinite; }
.search { flex: 1; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; height: 3.3rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: rgba(94, 200, 255, .5); box-shadow: 0 0 0 .25rem rgba(94, 200, 255, .1); }
.search input { flex: 1; background: none; border: 0; outline: 0; font-size: 1rem; min-width: 0; }
.search .s-ic { color: var(--muted); font-size: 1.3rem; }
.search.sm { height: 2.5rem; flex: 0 1 14rem; }
.switch-row { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-weight: 600; white-space: nowrap; cursor: pointer; }

/* переключатель */
.switch { position: relative; display: inline-block; width: 2.9rem; height: 1.6rem; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 2rem; background: #2a2560; transition: .25s; border: 1px solid var(--line2); }
.switch i::after { content: ''; position: absolute; left: .17rem; top: 50%; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: #fff; transform: translateY(-50%); transition: .25s var(--ease); box-shadow: 0 .1rem .3rem rgba(0, 0, 0, .4); }
.switch input:checked + i { background: linear-gradient(90deg, var(--flame), var(--flame2)); border-color: transparent; }
.switch input:checked + i::after { transform: translate(1.28rem, -50%); }

/* ---------- секции и сетка кейсов ---------- */
.case-section { margin-top: 2.2rem; scroll-margin-top: calc(var(--top-h) + 1rem); }
.sec-title { text-align: center; font-size: 1.75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; margin: 0 0 1.4rem; display: flex; align-items: center; justify-content: center; gap: .45em; }
.sec-title span { background: linear-gradient(180deg, #ff8a9b, var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec-title::before, .sec-title::after { content: ''; height: 2px; flex: 0 1 7rem; background: linear-gradient(90deg, transparent, var(--line2)); }
.sec-title::after { transform: scaleX(-1); }
.case-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.case-grid > .case-card { width: 15.8rem; }

.case-card {
    --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --gc: var(--flame);
    position: relative; display: flex; flex-direction: column; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--r-lg); color: var(--text);
    background: radial-gradient(120% 80% at 50% 45%, color-mix(in srgb, var(--gc) 13%, transparent), transparent 60%), linear-gradient(180deg, rgba(30, 26, 78, .85), rgba(16, 14, 44, .9));
    border: 1px solid var(--line); overflow: hidden; isolation: isolate;
    transform: perspective(60rem) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; will-change: transform;
}
.case-card.glow-ice { --gc: var(--ice); } .case-card.glow-gold { --gc: var(--gold); } .case-card.glow-purple { --gc: var(--purple); } .case-card.glow-flame { --gc: var(--flame); }
.case-card:hover { border-color: color-mix(in srgb, var(--gc) 50%, transparent); box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, .5), 0 0 2.5rem color-mix(in srgb, var(--gc) 22%, transparent); }
.cc-shine { position: absolute; inset: 0; z-index: -1; background: radial-gradient(18rem circle at var(--mx) var(--my), rgba(255, 255, 255, .09), transparent 45%); opacity: 0; transition: opacity .3s; }
.case-card:hover .cc-shine { opacity: 1; }
.cc-head { text-align: center; }
.cc-name { display: block; font-weight: 900; font-size: 1.1rem; letter-spacing: .02em; }
.cc-meta { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.cc-badge { padding: .12rem .45rem; border-radius: .35rem; font-size: .66rem; font-weight: 900; letter-spacing: .06em; color: #fff; background: var(--flame); }
.b-new { background: linear-gradient(90deg, #3f8cff, var(--ice)); } .b-free, .b-lucky { background: linear-gradient(90deg, #17a34a, var(--green)); } .b-max { background: linear-gradient(90deg, #f59e0b, var(--gold)); color: #3a2500; } .b-hot { background: linear-gradient(90deg, var(--flame), var(--flame2)); }
.cc-fav { position: absolute; right: .8rem; top: .8rem; width: 2rem; height: 2rem; border-radius: .6rem; display: grid; place-items: center; font-size: 1rem; color: rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .2); transition: .2s; z-index: 2; }
.cc-fav:hover { color: #ff8095; transform: scale(1.1); }
.cc-fav.on { color: var(--flame); text-shadow: 0 0 .6rem var(--flame); }
.cc-art { position: relative; height: 11.5rem; margin: .4rem -1.1rem 0; display: grid; place-items: center; }
.cc-ring { position: absolute; width: 9.5rem; height: 9.5rem; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--gc) 45%, transparent); opacity: .35; animation: spin 18s linear infinite; transition: opacity .3s, transform .3s; }
.case-card:hover .cc-ring { opacity: .9; animation-duration: 5s; }
.cc-img { position: relative; width: 112%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 1rem 1.2rem rgba(0, 0, 0, .55)); transition: transform .45s var(--ease); animation: float 4.5s ease-in-out infinite; }
.case-card:nth-child(2n) .cc-img { animation-delay: -1.5s; }
.case-card:nth-child(3n) .cc-img { animation-delay: -3s; }
.case-card:hover .cc-img { transform: scale(1.1) translateY(-.4rem); }
@keyframes float { 50% { translate: 0 -.45rem; } }
.cc-top { position: absolute; right: .9rem; bottom: .1rem; width: 2.8rem; height: 2.8rem; padding: .35rem; border-radius: .7rem; background: rgba(10, 8, 30, .7); border: 1px solid var(--line2); opacity: 0; transform: translateY(.5rem) scale(.8); transition: .3s var(--ease); }
.cc-top .item-img { width: 100%; height: 100%; object-fit: contain; }
.case-card:hover .cc-top { opacity: 1; transform: none; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .5rem; }
.cc-price { font-size: 1.15rem; }
.cc-open { pointer-events: none; }
.nothing { text-align: center; padding: 4rem 1rem; color: var(--muted); font-size: 1.1rem; }

/* появление */
.reveal { opacity: 0; translate: 0 1.2rem; transition: opacity .6s var(--ease) var(--d, 0ms), translate .6s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; translate: 0 0; }

/* ---------- карточка предмета ---------- */
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 1rem; }
.item-card {
    position: relative; display: flex; flex-direction: column; align-items: center; padding: .8rem .8rem 1rem; border-radius: var(--r); text-align: center;
    background: radial-gradient(90% 60% at 50% 40%, color-mix(in srgb, var(--rc) 22%, transparent), transparent 70%), linear-gradient(180deg, rgba(28, 24, 72, .85), rgba(15, 13, 42, .92));
    border: 1px solid color-mix(in srgb, var(--rc) 25%, transparent); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.item-card::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: 0; height: .2rem; border-radius: .2rem .2rem 0 0; background: var(--rc); box-shadow: 0 0 1rem var(--rc); }
.item-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .4), 0 0 1.6rem color-mix(in srgb, var(--rc) 25%, transparent); }
.ic-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; min-height: 1.3rem; }
.ic-tag { font-size: .66rem; font-weight: 900; letter-spacing: .08em; padding: .12rem .45rem; border-radius: .35rem; background: rgba(255, 255, 255, .07); color: var(--muted); }
.ic-chance { font-size: .75rem; font-weight: 800; color: var(--rc); font-variant-numeric: tabular-nums; }
.ic-art { width: 100%; aspect-ratio: 1.3; display: grid; place-items: center; margin: .2rem 0 .4rem; }
.ic-art .item-img { width: 68%; height: 90%; object-fit: contain; filter: drop-shadow(0 .5rem .7rem rgba(0, 0, 0, .55)); transition: transform .35s var(--ease); image-rendering: pixelated; }
.item-card:hover .ic-art .item-img { transform: scale(1.1) rotate(-3deg); }
.ic-name { font-size: .88rem; font-weight: 700; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic-price { margin-top: .35rem; }
.ic-x { position: absolute; left: .6rem; bottom: .6rem; font-size: .72rem; font-weight: 800; color: var(--green); }
.ic-user { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .5rem; font-size: .75rem; color: var(--muted); }
.item-card.pickable { cursor: pointer; }
.item-card.picked { border-color: var(--ice); box-shadow: 0 0 0 2px var(--ice), 0 0 1.6rem rgba(94, 200, 255, .35); }
.item-card.picked::before { content: '✓'; position: absolute; right: .55rem; top: .55rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--ice); color: #04203a; font-weight: 900; font-size: .8rem; z-index: 2; animation: pop .3s var(--ease); }
.item-card.dim { opacity: .65; }
@keyframes pop { from { transform: scale(0); } }
.r-mythic.item-card { animation: mythic 3s ease-in-out infinite; }
@keyframes mythic { 50% { box-shadow: 0 0 1.8rem rgba(255, 201, 60, .35); } }

/* ---------- панели ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; backdrop-filter: blur(10px); }
.panel h3 { margin: 0 0 1rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.page-title { font-size: 2.3rem; font-weight: 900; text-transform: uppercase; text-align: center; margin: .5rem 0 .3rem; letter-spacing: .01em; }
.page-title span { background: linear-gradient(180deg, #ff8a9b, var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-sub { text-align: center; color: var(--muted); margin: 0 auto 2rem; max-width: 44rem; }

/* ---------- страница кейса ---------- */
.case-page { --gc: var(--flame); }
.case-page.glow-ice { --gc: var(--ice); } .case-page.glow-gold { --gc: var(--gold); } .case-page.glow-purple { --gc: var(--purple); }
.cp-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.back { color: var(--muted); font-weight: 700; padding: .5rem .2rem; transition: color .2s; }
.back:hover { color: #fff; }
.cp-stage { display: grid; grid-template-columns: 17rem 1fr 17rem; gap: 1.5rem; align-items: start; }
.cp-about dl { display: grid; grid-template-columns: auto 1fr; gap: .75rem 1rem; margin: 0; }
.cp-about dt { color: var(--muted); font-size: .85rem; }
.cp-about dd { margin: 0; font-weight: 700; text-align: right; }
.cp-top-prize { grid-column: 1 / -1; display: flex; align-items: center; gap: .7rem; text-align: left !important; padding: .6rem; border-radius: .8rem; background: color-mix(in srgb, var(--rc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); }
.cp-top-prize .item-img { width: 3rem; height: 3rem; object-fit: contain; }
.cp-center { text-align: center; min-width: 0; }
.cp-kicker { color: var(--gc); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.cp-title { font-size: 3rem; font-weight: 900; margin: .2rem 0 .6rem; letter-spacing: .02em; text-shadow: 0 0 2rem color-mix(in srgb, var(--gc) 40%, transparent); }
.cp-scene { position: relative; height: 24rem; display: grid; place-items: center; border-radius: var(--r-lg); overflow: hidden; }
.cp-snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cp-idle { position: relative; width: 24rem; height: 24rem; display: grid; place-items: center; transition: transform .5s var(--ease), opacity .4s; }
.cp-rings { position: absolute; inset: 0; display: grid; place-items: center; }
.cp-rings i { position: absolute; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--gc) 55%, transparent); box-shadow: 0 0 2rem color-mix(in srgb, var(--gc) 30%, transparent), inset 0 0 2rem color-mix(in srgb, var(--gc) 15%, transparent); }
.cp-rings i:nth-child(1) { width: 19rem; height: 19rem; border-style: dashed; animation: spin 24s linear infinite; }
.cp-rings i:nth-child(2) { width: 15.5rem; height: 15.5rem; border-width: 3px; border-color: color-mix(in srgb, var(--gc) 70%, transparent) transparent; animation: spin 7s linear infinite reverse; }
.cp-rings i:nth-child(3) { width: 22rem; height: 22rem; opacity: .25; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); opacity: .45; } }
.cp-rays { position: absolute; width: 30rem; height: 30rem; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--gc) 16%, transparent) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(circle, #000 20%, transparent 65%); animation: spin 40s linear infinite; opacity: .7; }
.cp-case { position: relative; width: 26rem; max-width: none; height: auto; filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, .6)); animation: float 4s ease-in-out infinite; cursor: default; }
.cp-idle.opening .cp-case { animation: shake .55s linear; }
.cp-idle.opening .cp-rings i { animation-duration: 1s; }
.cp-idle.gone { opacity: 0; transform: scale(1.35); pointer-events: none; position: absolute; }
@keyframes shake { 0%, 100% { transform: none; } 15% { transform: rotate(-4deg) scale(1.02); } 30% { transform: rotate(4deg) scale(1.04); } 45% { transform: rotate(-5deg) scale(1.06); } 60% { transform: rotate(5deg) scale(1.08); } 80% { transform: rotate(-2deg) scale(1.12); } }
.cp-rolls { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 0 .2rem; pointer-events: none; }
.cp-scene:not(.rolling) .cp-rolls { display: none; }
.cp-controls { margin-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: .9rem; min-height: 7rem; }
.cp-row { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.cp-login { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.fast-toggle { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--muted); cursor: pointer; }
.is-spinning .cp-bar, .is-spinning .cp-about, .is-spinning .cp-recent { opacity: .55; transition: opacity .4s; }

.seg { display: inline-flex; padding: .25rem; border-radius: .9rem; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); gap: .2rem; }
.seg button { padding: .55rem 1rem; border-radius: .65rem; font-weight: 800; color: var(--muted); transition: .2s; }
.seg button:hover { color: #fff; }
.seg button.active { color: #fff; background: linear-gradient(180deg, rgba(255, 46, 77, .45), rgba(255, 46, 77, .2)); box-shadow: inset 0 0 0 1px rgba(255, 46, 77, .5); }
.seg.center { display: flex; width: max-content; margin: 0 auto 2rem; }

/* рулетка */
.rl { position: relative; height: 10.5rem; border-radius: var(--r); overflow: hidden; background: linear-gradient(180deg, rgba(10, 8, 30, .85), rgba(20, 17, 55, .85)); border: 1px solid var(--line2); box-shadow: inset 0 0 3rem rgba(0, 0, 0, .6); animation: rl-in .45s var(--ease) both; }
.cp-rolls[data-n="2"] .rl { height: 9.5rem; }
.cp-rolls[data-n="3"] .rl { height: 7.2rem; }
.cp-rolls[data-n="4"] .rl, .cp-rolls[data-n="5"] .rl { height: 4.4rem; }
.rl:nth-child(2) { animation-delay: .06s; } .rl:nth-child(3) { animation-delay: .12s; } .rl:nth-child(4) { animation-delay: .18s; } .rl:nth-child(5) { animation-delay: .24s; }
@keyframes rl-in { from { opacity: 0; transform: scaleY(.6); } }
.rl-track { position: absolute; left: 0; top: 0; bottom: 0; display: flex; gap: .45rem; padding: .45rem 0; will-change: transform; }
.rl-card { position: relative; flex: none; width: 9.5rem; height: 100%; border-radius: .7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .4rem; background: radial-gradient(80% 70% at 50% 40%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 75%), rgba(255, 255, 255, .03); border-bottom: .2rem solid var(--rc); transition: transform .4s var(--ease), box-shadow .4s; }
.rl-card .item-img { flex: 1; min-height: 0; width: 70%; object-fit: contain; filter: drop-shadow(0 .4rem .5rem rgba(0, 0, 0, .5)); }
.rl-name { font-size: .72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rl-price { font-size: .7rem; color: #ffe18a; font-weight: 800; }
.cp-rolls[data-n="3"] .rl-card { width: 7.5rem; }
.cp-rolls[data-n="4"] .rl-card, .cp-rolls[data-n="5"] .rl-card { width: 5rem; flex-direction: row; }
.cp-rolls[data-n="4"] .rl-name, .cp-rolls[data-n="5"] .rl-name, .cp-rolls[data-n="4"] .rl-price, .cp-rolls[data-n="5"] .rl-price { display: none; }
.rl-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: .2rem; transform: translateX(-50%); background: linear-gradient(180deg, var(--gold), #fff, var(--gold)); box-shadow: 0 0 1rem var(--gold), 0 0 2rem rgba(255, 201, 60, .5); z-index: 2; }
.rl-marker::before, .rl-marker::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: .55rem solid transparent; }
.rl-marker::before { top: 0; border-top-color: var(--gold); }
.rl-marker::after { bottom: 0; border-bottom-color: var(--gold); }
.rl.kick .rl-marker { animation: kick .12s; }
@keyframes kick { 50% { transform: translateX(-50%) scaleY(1.04); filter: brightness(1.6); } }
.rl-fade { position: absolute; top: 0; bottom: 0; width: 22%; z-index: 1; pointer-events: none; }
.rl-fade.l { left: 0; background: linear-gradient(90deg, rgba(10, 8, 30, .95), transparent); }
.rl-fade.r { right: 0; background: linear-gradient(-90deg, rgba(10, 8, 30, .95), transparent); }
.rl-card.win { transform: scale(1.06); box-shadow: 0 0 0 2px var(--rc), 0 0 2.5rem var(--rc); z-index: 1; animation: win-glow 1.2s ease-in-out infinite; }
@keyframes win-glow { 50% { box-shadow: 0 0 0 2px var(--rc), 0 0 3.5rem var(--rc); } }
.cp-scene.won::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 50%, var(--wc, rgba(255, 255, 255, .25)), transparent 60%); animation: flash 1s ease-out forwards; }
.cp-scene.won-legendary { --wc: rgba(255, 46, 77, .35); } .cp-scene.won-mythic { --wc: rgba(255, 201, 60, .45); } .cp-scene.won-epic { --wc: rgba(180, 92, 255, .3); }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* результат */
.cp-result { margin: 1.5rem auto 0; max-width: 70rem; }
.cp-result.show { animation: page-in .5s var(--ease) both; }
.res-inner { padding: 1.6rem; border-radius: var(--r-lg); text-align: center; background: radial-gradient(60% 80% at 50% 0%, color-mix(in srgb, var(--gc) 18%, transparent), transparent 70%), var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow); }
.res-title { margin: 0 0 1.2rem; font-size: 1.6rem; font-weight: 900; text-transform: uppercase; }
.res-items { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.res-card { width: 13.5rem; animation: card-flip .7s var(--ease) both; animation-delay: calc(var(--i) * .12s); perspective: 50rem; }
.res-card .item-card .btn { margin-top: .7rem; width: 100%; }
@keyframes card-flip { from { opacity: 0; transform: rotateY(90deg) scale(.8); } }
.res-card.sold .item-card { opacity: .5; filter: grayscale(.6); }
.res-sold { margin-top: .7rem; font-weight: 800; color: var(--gold); }
.res-actions { display: flex; justify-content: center; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }

.cp-recent-list { display: flex; flex-direction: column; gap: .5rem; max-height: 28rem; overflow-y: auto; }
.rc-row { display: flex; align-items: center; gap: .6rem; padding: .45rem; border-radius: .7rem; background: rgba(255, 255, 255, .03); border-left: .2rem solid var(--rc); color: var(--text); transition: background .2s; }
.rc-row:hover { background: rgba(255, 255, 255, .07); }
.rc-row .item-img { width: 2.6rem; height: 2.6rem; object-fit: contain; flex: none; }
.rc-row b { display: block; font-size: .82rem; line-height: 1.2; }
.rc-row span { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.rc-row.fresh { animation: drop-in .7s var(--ease); }
.cp-contents { margin-top: 3rem; }
.rar-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin: -.4rem 0 1.4rem; font-size: .82rem; color: var(--muted); }
.rar-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.rar-legend span::before { content: ''; width: .7rem; height: .7rem; border-radius: .2rem; background: var(--rc); box-shadow: 0 0 .5rem var(--rc); }

/* ---------- апгрейд ---------- */
.up-stage { display: grid; grid-template-columns: 1fr 26rem 1fr; gap: 1.5rem; align-items: stretch; }
.up-slot { display: flex; flex-direction: column; gap: 1rem; min-height: 26rem; }
.us-title { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-size: .9rem; text-align: center; }
.us-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem; color: var(--muted); border: 2px dashed var(--line2); border-radius: var(--r); padding: 1.5rem; }
.us-empty b { color: var(--text); font-size: 1.05rem; }
.us-empty span { font-size: .85rem; max-width: 18rem; }
.us-ph { font-size: 3rem; opacity: .4; animation: float 3s ease-in-out infinite; }
.us-items { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(6.2rem, 1fr)); gap: .6rem; align-content: start; }
.us-chip { position: relative; aspect-ratio: 1; border-radius: .8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 30%, transparent), transparent 70%), rgba(255, 255, 255, .03); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); animation: pop .3s var(--ease); transition: transform .2s; }
.us-chip:hover { transform: scale(.95); }
.us-chip:hover::after { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 46, 77, .45); border-radius: inherit; font-size: 2rem; font-weight: 900; }
.us-chip .item-img { width: 60%; height: 60%; object-fit: contain; }
.us-chip span { font-size: .72rem; font-weight: 800; color: #ffe18a; }
.us-extra { display: grid; grid-template-columns: auto 1fr 6rem; align-items: center; gap: .8rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.us-extra.off { opacity: .4; }
.us-extra input[type=number], .field input, .field select, .form input { background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); border-radius: .65rem; padding: .6rem .8rem; outline: 0; width: 100%; transition: border-color .2s, box-shadow .2s; }
.us-extra input[type=number]:focus, .field input:focus, .field select:focus, .form input:focus { border-color: rgba(94, 200, 255, .6); box-shadow: 0 0 0 .2rem rgba(94, 200, 255, .12); }
input[type=range] { accent-color: var(--flame); width: 100%; }
.us-sum { text-align: center; font-weight: 800; font-size: 1.1rem; }
.us-target { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; border-radius: var(--r); padding: 1rem; background: radial-gradient(60% 50% at 50% 40%, color-mix(in srgb, var(--rc) 30%, transparent), transparent 75%); border: 1px solid color-mix(in srgb, var(--rc) 40%, transparent); animation: pop .35s var(--ease); }
.ut-art { width: 9rem; height: 9rem; display: grid; place-items: center; }
.ut-art .item-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 .8rem 1rem rgba(0, 0, 0, .5)); animation: float 3.5s ease-in-out infinite; }
.ut-x { position: absolute; left: .8rem; top: .8rem; padding: .2rem .55rem; border-radius: .45rem; background: rgba(61, 220, 114, .15); color: var(--green); font-weight: 900; font-size: .85rem; }
.ut-clear { position: absolute; right: .6rem; top: .6rem; width: 1.9rem; height: 1.9rem; border-radius: .55rem; background: rgba(255, 255, 255, .07); font-size: 1.2rem; }
.ut-clear:hover { background: rgba(255, 46, 77, .4); }
.us-quick { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; justify-content: center; }
.us-quick span { color: var(--muted); font-size: .8rem; font-weight: 700; min-width: 5.5rem; }

.up-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; }
.wheel { position: relative; width: 24rem; height: 24rem; }
.wheel-svg { width: 100%; height: 100%; overflow: visible; }
.w-outer { fill: rgba(16, 14, 44, .9); stroke: var(--line2); stroke-width: 1; }
.w-ticks line { stroke: rgba(160, 170, 255, .3); stroke-width: .8; }
.w-track { fill: none; stroke: rgba(255, 255, 255, .06); stroke-width: 15; }
.w-arc { fill: none; stroke: url(#win-grad); stroke-width: 12; stroke-linecap: butt; }
.w-inner { fill: rgba(10, 8, 30, .95); stroke: var(--line); }
.w-pointer path { fill: url(#pointer-grad); stroke: #ffb462; stroke-width: .65; stroke-linejoin: round; }
.w-pointer .w-pointer-line { fill: none; stroke: #fff0be; stroke-width: .8; stroke-linecap: round; }
.w-scale { fill: #b0b9d0; font-size: 7.5px; font-weight: 750; text-anchor: middle; }
.w-ticks .major { stroke: #8898b7; stroke-width: 1.4; }
.w-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.w-center b { font-size: 3.4rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #ffb3bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-center span { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-top: .3rem; }
.wheel.spinning .w-pointer path { stroke: #ffc06c; }
.wheel.win { animation: win-pop .6s var(--ease); }
.wheel.win .w-arc { stroke: var(--green); }
.wheel.win .w-center b { background: linear-gradient(180deg, #fff, var(--green)); -webkit-background-clip: text; background-clip: text; }
.wheel.lose { animation: lose-shake .5s; }
.wheel.lose .w-center b { background: linear-gradient(180deg, #fff, #ff5a6e); -webkit-background-clip: text; background-clip: text; }
@keyframes win-pop { 40% { transform: scale(1.06); } }
@keyframes lose-shake { 20%, 60% { transform: translateX(-.5rem); } 40%, 80% { transform: translateX(.5rem); } }
.up-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.up-list { display: flex; flex-direction: column; min-height: 22rem; }
.ul-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ul-head h3 { margin: 0; }
.ul-tools { display: flex; gap: .6rem; align-items: center; }
.ul-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .7rem; max-height: 38rem; overflow-y: auto; padding: .2rem; align-content: start; }
.ul-grid .item-card { padding: .55rem .55rem .75rem; }
.ul-grid .ic-name { font-size: .78rem; }
.ul-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 3rem 1rem; line-height: 2; }
.ul-more { text-align: center; margin-top: .8rem; }
.is-spinning .up-lists { opacity: .5; pointer-events: none; transition: opacity .3s; }

/* ---------- профиль ---------- */
.p-head { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem; background: radial-gradient(50rem 20rem at 0% 0%, rgba(255, 46, 77, .12), transparent 60%), radial-gradient(40rem 20rem at 100% 100%, rgba(94, 200, 255, .1), transparent 60%), var(--panel); }
.ph-user { display: flex; align-items: center; gap: 1.2rem; }
.ph-user h1 { margin: 0 0 .2rem; font-size: 1.8rem; font-weight: 900; }
.ph-actions { display: flex; gap: .5rem; margin-top: .8rem; flex-wrap: wrap; }
.ph-stats { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .8rem; }
.stat { padding: .9rem 1rem; border-radius: var(--r); background: rgba(0, 0, 0, .2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .3rem; }
.stat > span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat b { font-size: 1.3rem; font-weight: 900; }
.stat b.hot { color: var(--flame); }
.stat.best { border-color: color-mix(in srgb, var(--rc, #fff) 35%, transparent); }
.sb { display: flex; align-items: center; gap: .5rem; }
.sb .item-img { width: 2.4rem; height: 2.4rem; object-fit: contain; }
.sb b { font-size: .85rem; line-height: 1.2; }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs button { padding: .9rem 1.3rem; font-weight: 800; color: var(--muted); position: relative; white-space: nowrap; transition: color .2s; }
.tabs button:hover { color: #fff; }
.tabs button.active { color: #fff; }
.tabs button.active::after { content: ''; position: absolute; left: 1rem; right: 1rem; bottom: -1px; height: .2rem; border-radius: .2rem; background: var(--flame); box-shadow: 0 0 .8rem var(--flame); }
.tabs.big button { font-size: 1.05rem; }
.inv-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.inv-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.inv-btns { display: flex; gap: .4rem; margin-top: .6rem; width: 100%; }
.inv-btns .btn { flex: 1; }
.inv-st, .st { display: inline-block; margin-top: .6rem; padding: .25rem .6rem; border-radius: .45rem; font-size: .75rem; font-weight: 800; font-style: normal; }
.st-wait { background: rgba(255, 201, 60, .15); color: var(--gold); }
.st-ok { background: rgba(61, 220, 114, .15); color: var(--green); }
.st-bad { background: rgba(255, 46, 77, .15); color: #ff8095; }
.empty-box { text-align: center; padding: 3.5rem 1rem; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r-lg); font-size: 1.05rem; }
.loader { width: 3rem; height: 3rem; margin: 4rem auto; border-radius: 50%; border: .3rem solid var(--line2); border-top-color: var(--flame); animation: spin .8s linear infinite; }
.wd-item { display: flex; align-items: center; gap: 1rem; padding: .8rem; border-radius: var(--r); margin-bottom: 1rem; background: color-mix(in srgb, var(--rc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--rc) 30%, transparent); }
.wd-item .item-img { width: 4rem; height: 4rem; object-fit: contain; }
.wd-item b { display: block; }
.wd-item span { color: var(--muted); font-size: .85rem; }

.table { padding: .4rem; overflow-x: auto; }
.tr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1rem; align-items: center; padding: .75rem 1rem; border-radius: .7rem; color: var(--text); min-width: 40rem; }
.top-page .tr { grid-template-columns: 3rem 2fr .8fr 2fr 1.2fr; }
.admin-page .tr { grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; }
.admin-page .admin-wd .tr { grid-template-columns: 1fr 2.2fr 1.4fr 1fr 1.5fr; }
.tr:not(.th):hover { background: rgba(255, 255, 255, .04); }
.tr.th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.tr + .tr:not(.th) { border-top: 1px solid rgba(255, 255, 255, .03); }
.t-item, .t-user { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.t-item .item-img { width: 2.2rem; height: 2.2rem; object-fit: contain; flex: none; }
.rank { font-weight: 900; color: var(--muted); }
.plus { color: var(--green); font-weight: 800; }
.minus { color: #ff8095; font-weight: 800; }

.fair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fair-card { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.field input, .field select { color: var(--text); font-size: .95rem; }
.field-row { display: flex; gap: .6rem; align-items: flex-end; }
.field-row .field { flex: 1; }
.rev { padding: .8rem; border-radius: .7rem; background: rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: .4rem; margin-bottom: .6rem; font-size: .85rem; }
.rev > div:not(.small) { display: flex; flex-direction: column; gap: .2rem; }

/* ---------- топ ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 15rem)); justify-content: center; align-items: end; gap: 1.5rem; margin: 1rem 0 2.5rem; }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem 1rem 0; border-radius: var(--r-lg) var(--r-lg) 0 0; color: var(--text); background: linear-gradient(180deg, var(--pc, rgba(255, 255, 255, .1)), rgba(20, 17, 55, .4)); border: 1px solid var(--line); border-bottom: 0; text-align: center; overflow: hidden; }
.pod b { font-size: 1.1rem; }
.pod-1 { --pc: rgba(255, 201, 60, .25); min-height: 20rem; }
.pod-2 { --pc: rgba(200, 215, 255, .18); min-height: 17rem; }
.pod-3 { --pc: rgba(255, 140, 70, .2); min-height: 15rem; }
.pod-crown { font-size: 2.2rem; animation: float 3s ease-in-out infinite; }
.pod-empty { visibility: hidden; }
.pod-base { margin-top: auto; align-self: stretch; padding: .6rem; font-size: 2.6rem; font-weight: 900; color: rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .2); }
.pod-1 .avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 2rem rgba(255, 201, 60, .5); }

/* ---------- честность ---------- */
.fair-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.step { position: relative; }
.step > b { position: absolute; right: 1rem; top: .6rem; font-size: 3rem; font-weight: 900; color: rgba(255, 255, 255, .06); }
.step h3 { color: var(--text); }
.step p { color: var(--muted); margin: 0; font-size: .9rem; }
.verify h2 { margin-top: 0; }
.vf-grid { display: grid; grid-template-columns: 2fr 1fr .6fr 1fr auto; gap: 1rem; align-items: end; }
.vf-grid #vf-ch { grid-column: 1 / 2; }
.vf-out { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.vf-line { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.vf-line span { color: var(--muted); min-width: 12rem; }
.vf-line code.big { font-size: 1.3rem; color: var(--gold); }
.vf-res { font-size: 1.2rem; font-weight: 900; }
.vf-res.ok { color: var(--green); } .vf-res.bad { color: #ff8095; }
.vf-item { width: 13rem; }

/* ---------- админка ---------- */
.admin-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin: 1.5rem 0; }
.admin-forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.promo-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* ---------- документы и пустые страницы ---------- */
.doc-page { max-width: 56rem; margin: 1rem auto; padding: 2rem 2.5rem; }
.doc { color: #cfd3f5; line-height: 1.7; }
.doc h3 { color: #fff; margin-top: 1.6rem; }
.empty-page { text-align: center; padding: 6rem 1rem; }
.empty-page h1 { font-size: 2rem; margin: .5rem 0; }
.empty-page p { color: var(--muted); margin-bottom: 1.5rem; }
.big-404 { font-size: 6rem; font-weight: 900; line-height: 1; background: linear-gradient(180deg, #fff, var(--ice)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 2rem rgba(94, 200, 255, .4)); animation: float 3s ease-in-out infinite; }

/* ---------- формы и модалки ---------- */
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.form input { color: var(--text); font-size: 1rem; padding: .8rem .9rem; }
.form .check { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 500; line-height: 1.4; }
.form .check input { width: auto; margin-top: .15rem; accent-color: var(--flame); }
.form-err { color: #ff8095; font-weight: 700; min-height: 1.2em; font-size: .9rem; }
.form h3 { margin-bottom: .2rem; }

.modal-wrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; background: rgba(4, 3, 14, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.modal-wrap.open { opacity: 1; }
.modal { position: relative; width: min(30rem, 100%); max-height: 92vh; overflow-y: auto; padding: 2rem; border-radius: var(--r-lg); background: radial-gradient(40rem 16rem at 50% -10%, rgba(255, 46, 77, .16), transparent 70%), var(--panel-solid); border: 1px solid var(--line2); box-shadow: 0 2rem 5rem rgba(0, 0, 0, .7); transform: translateY(1.2rem) scale(.96); transition: transform .35s var(--ease); }
.modal-wrap.open .modal { transform: none; }
.modal.shake { animation: lose-shake .45s; }
.modal-x { position: absolute; right: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; border-radius: .6rem; font-size: 1.5rem; line-height: 1; color: var(--muted); background: rgba(255, 255, 255, .05); transition: .2s; }
.modal-x:hover { color: #fff; background: rgba(255, 46, 77, .4); transform: rotate(90deg); }
.modal-title { margin: 0 0 1.2rem; font-size: 1.5rem; font-weight: 900; }
.modal-small { width: min(27rem, 100%); }
.auth-art { text-align: center; margin-bottom: 1.4rem; }
.auth-art .logo { font-size: 2.6rem; }
.auth-art p { color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.auth-tabs { justify-content: center; }
.auth[data-mode=login] .reg-only, .auth[data-mode=login] .when-register, .auth[data-mode=register] .when-login { display: none; }
.note { padding: .8rem 1rem; border-radius: .7rem; font-size: .85rem; margin-bottom: 1rem; }
.note-ice { background: rgba(94, 200, 255, .1); border: 1px solid rgba(94, 200, 255, .3); color: #bfeeff; }
.dep-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.dep-m { padding: .8rem; border-radius: .8rem; background: rgba(0, 0, 0, .25); border: 1px solid var(--line2); font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: .3rem; transition: .2s; }
.dep-m.active { border-color: var(--flame); background: rgba(255, 46, 77, .12); box-shadow: 0 0 1.2rem rgba(255, 46, 77, .2); }
.dm-ic { font-size: 1.4rem; }
.dep-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.dep-a { padding: .75rem; border-radius: .8rem; background: rgba(255, 201, 60, .07); border: 1px solid rgba(255, 201, 60, .2); transition: .2s; }
.dep-a:hover { border-color: var(--gold); transform: translateY(-2px); }
.modal-dep .field { margin-bottom: 1rem; }
.modal-dep .btn { margin-top: .5rem; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.set-row input[type=range] { width: 10rem; }

/* ---------- тосты ---------- */
.toasts { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-radius: .9rem; max-width: 26rem; background: var(--panel-solid); border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; transform: translateX(120%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; pointer-events: auto; }
.toast.show { transform: none; opacity: 1; }
.t-ic { width: 1.8rem; height: 1.8rem; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: rgba(94, 200, 255, .2); color: var(--ice); }
.t-success .t-ic { background: rgba(61, 220, 114, .2); color: var(--green); }
.t-error .t-ic { background: rgba(255, 46, 77, .2); color: #ff8095; }
.t-gift .t-ic { background: rgba(255, 201, 60, .2); }
.t-success { border-color: rgba(61, 220, 114, .35); } .t-error { border-color: rgba(255, 46, 77, .35); }

.fx-burst { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 250; }

/* ---------- подвал ---------- */
.foot { position: relative; margin-top: 3rem; padding: 2.5rem var(--pad) 1.5rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(5, 4, 16, .7)); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 120rem; margin: 0 auto; }
.foot-brand p { color: #b7bbe3; font-size: .9rem; max-width: 30rem; }
.foot-brand .muted { color: var(--muted); font-size: .8rem; }
.foot-links { display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.foot-links b { margin-bottom: .3rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot-links a { color: #cfd3f5; transition: color .2s; }
.foot-links a:hover { color: var(--ice); }
.badge-18 { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--flame); color: var(--flame); font-weight: 900; margin-top: .5rem; }
.foot-bottom { max-width: 120rem; margin: 2rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; text-align: center; }

/* ---------- экономная графика ---------- */
[data-quality=low] .cp-rays, [data-quality=low] .hero-sweep, [data-quality=low] .twinkle { display: none; }
[data-quality=low] .cc-img, [data-quality=low] .cc-ring { animation: none; }
[data-quality=low] .panel, [data-quality=low] .top, [data-quality=low] .ss-item { backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1500px) {
    .cp-stage { grid-template-columns: 15rem 1fr; }
    .cp-recent { grid-column: 1 / -1; }
    .cp-recent-list { flex-direction: row; overflow-x: auto; max-height: none; }
    .rc-row { flex: 0 0 15rem; }
    .admin-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1180px) {
    :root { --live-w: 0px; }
    .live { position: sticky; top: var(--top-h); width: auto; height: 5.8rem; flex-direction: row; bottom: auto; z-index: 40; border-right: 0; border-bottom: 1px solid var(--line); }
    body { display: flex; flex-direction: column; }
    .live { order: 1; }
    .shell { order: 0; display: contents; }
    .top { order: 0; }
    .page { order: 2; }
    .foot { order: 3; }
    .live-head { height: auto; padding: 0 1rem; border-bottom: 0; border-right: 1px solid var(--line); writing-mode: horizontal-tb; font-size: .7rem; flex-direction: column; gap: .3rem; }
    .live-list { flex-direction: row; overflow-x: auto; overflow-y: hidden; mask: linear-gradient(90deg, #000 85%, transparent); padding: .5rem; }
    .drop { width: 13rem; }
    .live-empty { margin: 0; padding: .6rem 1rem; display: flex; align-items: center; gap: .6rem; white-space: nowrap; }
    .live-empty br { display: none; }
    .le-ic { margin: 0; font-size: 1.3rem; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .up-stage { grid-template-columns: 1fr 1fr; }
    .up-center { grid-column: 1 / -1; order: -1; }
    .up-lists, .fair-grid { grid-template-columns: 1fr; }
    .fair-steps { grid-template-columns: repeat(2, 1fr); }
    .vf-grid { grid-template-columns: 1fr 1fr; }
    .admin-forms { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .top { gap: .8rem; height: 4rem; --top-h: 4rem; backdrop-filter: none; background: rgba(10, 8, 34, .97); }
    .live-head span:not(.live-dot) { display: none; }
    .live-head { padding: 0 .8rem; }
    .logo { font-size: 1.5rem; }
    .logo-hat { width: 1.5rem; height: 1.3rem; top: -.75rem; }
    .nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; justify-content: space-around; padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom)); background: rgba(10, 8, 34, .96); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
    .nav a { flex-direction: column; gap: .2rem; padding: .45rem .6rem; font-size: .66rem; }
    .nav a.active::after { display: none; }
    .online, #btn-settings, .user-btn .un, .user-btn .caret { display: none; }
    .top-right .btn { padding: .55rem .8rem; font-size: .85rem; }
    .top-right .btn-ghost { display: none; }
    body { padding-bottom: 4.5rem; }
    .stats-strip { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .ss-item { padding: .7rem; } .ss-ic { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; }
    .toolbar { flex-wrap: wrap; }
    .search { flex-basis: 100%; order: -1; }
    .case-grid { gap: .7rem; }
    .case-grid > .case-card { width: calc(50% - .35rem); }
    .cc-art { height: 8.5rem; }
    .cc-foot { flex-direction: column; align-items: stretch; text-align: center; }
    .cp-stage { grid-template-columns: 1fr; }
    .cp-about { order: 2; }
    .cp-title { font-size: 2rem; }
    .cp-scene { height: 19rem; }
    .cp-idle { width: 19rem; height: 19rem; }
    .cp-case { width: 19rem; }
    .btn-open { min-width: 0; width: 100%; }
    .rl-card { width: 7rem; }
    .items-grid { grid-template-columns: repeat(2, 1fr); }
    .up-stage { grid-template-columns: 1fr; }
    .wheel { width: 19rem; height: 19rem; }
    .p-head { flex-direction: column; align-items: stretch; }
    .podium { gap: .5rem; }
    .pod { padding: 1rem .4rem 0; }
    .pod b { font-size: .85rem; }
    .fair-steps { grid-template-columns: 1fr; }
    .vf-grid { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .toasts { left: 1rem; right: 1rem; bottom: 5.5rem; align-items: stretch; }
    .sec-title { font-size: 1.35rem; }
    .page-title { font-size: 1.7rem; }
}
