/* ==========================================================================
   FlameDrop — заставка, гирлянда, слайдер, бонусы, рефералы, контракты,
   эффекты рулетки. Подключается после app.css.
   ========================================================================== */

/* ---------- общие мелочи ---------- */
.sx-kicker {
    display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .85rem; border-radius: 2rem;
    font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #dff6ff;
    background: linear-gradient(90deg, rgba(94, 200, 255, .2), rgba(94, 200, 255, .06)); border: 1px solid rgba(94, 200, 255, .35);
    box-shadow: 0 0 1.2rem rgba(94, 200, 255, .15);
}
.empty { grid-column: 1 / -1; text-align: center; padding: 2.6rem 1rem; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r-lg); line-height: 2; }
.empty .btn { margin-left: .6rem; vertical-align: middle; }
.gate { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; text-align: center; padding: 2rem; margin: 1.5rem 0; }
.gate p { margin: 0; color: var(--muted); font-weight: 600; font-size: 1.05rem; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .8rem; max-height: 40rem; overflow-y: auto; padding: .2rem; align-content: start; }
.item-grid .item-card { padding: .55rem .55rem .75rem; }
.item-grid .ic-name { font-size: .8rem; }
.up-list-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.up-list-head h3 { margin: 0 auto 0 0; }
.bonus-ic { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.24em; filter: drop-shadow(0 0 .3rem rgba(60, 240, 143, .45)); }
.coins.bonus { color: #8dffc0; }
.btn-gold .coins.bonus { color: #0d4a2a; }
.btn-gold .bonus-ic { filter: none; }
.cp-hint { margin: 0; color: var(--muted); font-size: .85rem; max-width: 30rem; }
.mb-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---------- новые иконки навигации ---------- */
.ni-contract { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.6V8h4.4zM7 11h10v1.7H7zm0 3.5h10v1.7H7zm0 3.5h6v1.7H7z'/%3E%3C/svg%3E"); }
.ni-bonus { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8h8v4H3zm10 0h8v4h-8zM4 13h7v9H4zm9 0h7v9h-7zM12 7.6c-2-4.6-6.2-4-5.1-1.4.6 1.4 3 1.4 5.1 1.4zm0 0c2-4.6 6.2-4 5.1-1.4-.6 1.4-3 1.4-5.1 1.4z'/%3E%3C/svg%3E"); }

/* ---------- заставка ---------- */
.splash {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden;
    background:
        radial-gradient(50rem 32rem at 50% 45%, rgba(255, 46, 77, .22), transparent 65%),
        radial-gradient(60rem 40rem at 50% 60%, rgba(94, 200, 255, .14), transparent 70%),
        #07061a;
    transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s;
}
.splash.out { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }
.sp-rays {
    position: absolute; left: 50%; top: 50%; width: 140vmax; height: 140vmax; translate: -50% -50%;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .045) 0 5deg, transparent 5deg 15deg);
    mask: radial-gradient(circle, #000 5%, transparent 55%); animation: spin 60s linear infinite;
}
.sp-flakes { position: absolute; inset: 0; pointer-events: none; }
.sp-flakes i {
    position: absolute; top: -6vh; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%;
    background: radial-gradient(circle, #fff 0 35%, rgba(200, 236, 255, .5) 60%, transparent 72%);
    animation: sp-fall var(--t) linear var(--dl) infinite; opacity: .85;
}
.sp-flakes i:nth-child(1) { --x: 6%; --s: .6rem; --t: 6s; --dl: -1s; }
.sp-flakes i:nth-child(2) { --x: 14%; --s: .35rem; --t: 8s; --dl: -4s; }
.sp-flakes i:nth-child(3) { --x: 23%; --s: .8rem; --t: 5.5s; --dl: -2.5s; }
.sp-flakes i:nth-child(4) { --x: 31%; --s: .4rem; --t: 7s; --dl: -.5s; }
.sp-flakes i:nth-child(5) { --x: 42%; --s: .55rem; --t: 6.5s; --dl: -3.5s; }
.sp-flakes i:nth-child(6) { --x: 51%; --s: .3rem; --t: 9s; --dl: -6s; }
.sp-flakes i:nth-child(7) { --x: 60%; --s: .7rem; --t: 6s; --dl: -2s; }
.sp-flakes i:nth-child(8) { --x: 68%; --s: .45rem; --t: 7.5s; --dl: -5s; }
.sp-flakes i:nth-child(9) { --x: 77%; --s: .9rem; --t: 5s; --dl: -1.5s; }
.sp-flakes i:nth-child(10) { --x: 85%; --s: .35rem; --t: 8.5s; --dl: -3s; }
.sp-flakes i:nth-child(11) { --x: 92%; --s: .6rem; --t: 6.2s; --dl: -4.5s; }
.sp-flakes i:nth-child(12) { --x: 97%; --s: .4rem; --t: 7.8s; --dl: -.8s; }
@keyframes sp-fall { to { transform: translate3d(3rem, 112vh, 0) rotate(360deg); } }
.sp-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; animation: sp-in 1s var(--ease) both; }
@keyframes sp-in { from { opacity: 0; transform: scale(.85); filter: blur(8px); } }
.sp-logo { position: relative; display: inline-flex; align-items: baseline; font-weight: 900; font-size: 6rem; letter-spacing: -.035em; line-height: 1; user-select: none; }
.sp-logo .logo-flame { filter: drop-shadow(0 .3rem 0 #5b0414) drop-shadow(0 0 2rem rgba(255, 46, 77, .6)); }
.sp-logo .logo-drop { filter: drop-shadow(0 .3rem 0 #0b2f66) drop-shadow(0 0 2rem rgba(94, 200, 255, .6)); }
.sp-logo .logo-hat { width: 5.4rem; height: 4.5rem; left: -1.7rem; top: -2.8rem; }
.sp-logo { animation: sp-glow 2.4s ease-in-out infinite; }
@keyframes sp-glow { 50% { filter: brightness(1.15) drop-shadow(0 0 1.5rem rgba(255, 120, 140, .35)); } }
.sp-sub { color: var(--muted); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }
.sp-bar { width: 18rem; height: .35rem; border-radius: 1rem; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--flame), var(--gold), var(--ice)); box-shadow: 0 0 1rem var(--flame); animation: sp-load 1.1s var(--ease) forwards; }
@keyframes sp-load { 60% { width: 75%; } to { width: 100%; } }

/* ---------- гирлянда ---------- */
.garland { position: absolute; left: 0; right: 0; top: calc(100% - .15rem); height: 2.4rem; pointer-events: none; z-index: 2; }
.garland svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.garland .gw { fill: none; stroke: #173a2a; stroke-width: 2; stroke-linecap: round; }
.garland .gw2 { fill: none; stroke: rgba(120, 220, 160, .25); stroke-width: .8; }
.gb {
    --c: #ff3b55;
    position: absolute; width: .62rem; height: .95rem; margin-left: -.31rem; transform-origin: 50% -.15rem; rotate: var(--a, 0deg);
    border-radius: 50% 50% 48% 48% / 38% 38% 62% 62%;
    background: radial-gradient(circle at 36% 30%, #fff 0 9%, color-mix(in srgb, var(--c) 55%, #fff) 20%, var(--c) 48%, color-mix(in srgb, var(--c) 55%, #000) 100%);
    box-shadow: 0 0 .55rem .08rem var(--c), 0 0 1.4rem color-mix(in srgb, var(--c) 45%, transparent);
    animation: gb-blink var(--t, 2.4s) ease-in-out var(--d, 0s) infinite, gb-sway 5s ease-in-out var(--d, 0s) infinite;
}
.gb::before { content: ''; position: absolute; left: 50%; top: -.2rem; width: .36rem; height: .26rem; translate: -50% 0; border-radius: .08rem .08rem .05rem .05rem; background: linear-gradient(90deg, #6b5a2c, #d9c27a 45%, #6b5a2c); }
.gb.c1 { --c: #ff3b55; } .gb.c2 { --c: #ffc93c; } .gb.c3 { --c: #3ddc72; } .gb.c4 { --c: #5ec8ff; } .gb.c5 { --c: #c37bff; }
@keyframes gb-blink { 0%, 100% { filter: none; } 45% { filter: brightness(.42) saturate(.6); box-shadow: 0 0 .15rem color-mix(in srgb, var(--c) 40%, transparent); } }
@keyframes gb-sway { 50% { rotate: calc(var(--a, 0deg) + 6deg); } }
[data-quality=low] .gb { animation: none; box-shadow: 0 0 .4rem var(--c); }

/* ---------- плашка бонусов в шапке ---------- */
.bonus-chip {
    position: relative; display: flex; align-items: center; gap: .45rem; height: 2.6rem; padding: 0 .85rem; border-radius: .9rem; color: #c9ffe0;
    background: linear-gradient(180deg, rgba(60, 240, 143, .14), rgba(60, 240, 143, .04)); border: 1px solid rgba(60, 240, 143, .32); transition: transform .2s, box-shadow .2s;
}
.bonus-chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.bonus-chip .bonus-ic { width: 1.35rem; height: 1.35rem; }
.bonus-chip:hover { transform: translateY(-2px); box-shadow: 0 0 1.4rem rgba(60, 240, 143, .25); }
.bonus-chip.ready { animation: chip-glow 2s ease-in-out infinite; }
.bonus-chip.ready::after { content: ''; position: absolute; right: -.25rem; top: -.25rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--flame); box-shadow: 0 0 0 .15rem var(--bg), 0 0 .6rem var(--flame); animation: live 1.6s infinite; }
.bonus-chip.ready .bonus-ic { animation: gift-wiggle 2s ease-in-out infinite; }
@keyframes chip-glow { 50% { box-shadow: 0 0 1.6rem rgba(60, 240, 143, .4); border-color: rgba(60, 240, 143, .6); } }
@keyframes gift-wiggle { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg) scale(1.1); } 80% { transform: rotate(10deg) scale(1.1); } 90% { transform: rotate(-6deg); } }
.user-drop .dot { display: inline-block; width: .5rem; height: .5rem; margin-left: .35rem; border-radius: 50%; background: var(--flame); box-shadow: 0 0 .5rem var(--flame); vertical-align: middle; }

/* ---------- шапка Санты на аватарках ---------- */
.user-btn .avatar, .avatar.xl, .pod .avatar { position: relative; overflow: visible; }
.user-btn .avatar::after, .avatar.xl::after, .pod .avatar::after {
    content: ''; position: absolute; left: -34%; top: -58%; width: 100%; height: 76%; rotate: -16deg; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff6575'/%3E%3Cstop offset='.5' stop-color='%23e3203f'/%3E%3Cstop offset='1' stop-color='%23930a24'/%3E%3C/linearGradient%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.6' stop-color='%23eef4fc'/%3E%3Cstop offset='1' stop-color='%23b9cbe4'/%3E%3C/linearGradient%3E%3CradialGradient id='p' cx='.36' cy='.32' r='.72'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.7' stop-color='%23e7eef8'/%3E%3Cstop offset='1' stop-color='%23b4c6df'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath d='M8 35C10 20 22 7 39 6c11-.6 18 7 19 18l-5 1c-1-6-5-9-10-7-5 2-4 10 4 17z' fill='url(%23r)'/%3E%3Cpath d='M14 30c3-10 11-19 23-21' stroke='%23ffa3ad' stroke-width='2.4' fill='none' stroke-linecap='round' opacity='.55'/%3E%3Cpath d='M43 18c5-2 9 1 10 7' stroke='%23690619' stroke-width='1.6' fill='none' opacity='.5'/%3E%3Crect x='4' y='30' width='50' height='12' rx='6' fill='url(%23w)'/%3E%3Cpath d='M9 39c3 1.6 6 .4 9 1.4s6 .2 9 .8 7-.4 10 .4 7 0 11-1' stroke='%23a9bedb' stroke-width='1.2' fill='none' opacity='.7'/%3E%3Ccircle cx='56' cy='26' r='6.5' fill='url(%23p)'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: drop-shadow(0 .12rem .15rem rgba(0, 0, 0, .45));
}

/* ---------- снег на карточках кейсов ---------- */
.cc-snowcap {
    position: absolute; left: 0; right: 0; top: 0; height: 1.5rem; z-index: 1; pointer-events: none; opacity: .92;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.55' stop-color='%23f1f7ff'/%3E%3Cstop offset='1' stop-color='%23bcd8f5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23s)' d='M0 0H200V8C192 12 186 9 180 12C176 14 175 20 172 20C169 20 169 14 165 13C156 11 150 15 140 12C132 10 126 14 118 13C112 12 110 18 107 18C104 18 104 12 99 12C88 12 80 9 70 12C62 14 58 11 50 12C46 13 45 22 42 22C39 22 39 14 35 13C26 11 18 14 10 11C6 10 3 12 0 11Z'/%3E%3Cpath d='M0 4C40 7 70 3 100 5S160 7 200 4' stroke='%23fff' stroke-width='1.4' fill='none' opacity='.9'/%3E%3C/svg%3E") no-repeat top / 100% 100%;
    filter: drop-shadow(0 .15rem .2rem rgba(120, 170, 255, .25));
}
.cc-snowcap::after {
    content: ''; position: absolute; inset: 0; opacity: .9;
    background: radial-gradient(.12rem .12rem at 18% 30%, #fff, transparent), radial-gradient(.1rem .1rem at 47% 22%, #fff, transparent), radial-gradient(.14rem .14rem at 73% 36%, #fff, transparent), radial-gradient(.1rem .1rem at 88% 20%, #fff, transparent);
    animation: sparkle 3s ease-in-out infinite;
}
@keyframes sparkle { 50% { opacity: .2; } }
.case-card .cc-fav { top: 1.2rem; }
.case-card .cc-head { padding: 0 1.6rem; }
.case-card .cc-name { font-size: .98rem; line-height: 1.2; overflow-wrap: anywhere; }
.case-card .cc-foot { margin-top: auto; padding-top: .5rem; }
.case-card .cc-img[src*="/cases/ny-"] { width: 84%; height: 92%; }
.cp-case[src*="/cases/ny-"] { width: 21rem; }

/* ---------- слайдер на главной ---------- */
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(3%) scale(1.02); transition: opacity .8s var(--ease), transform .9s var(--ease), visibility 0s .9s; }
.slide.active { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition: opacity .8s var(--ease), transform .9s var(--ease), visibility 0s; z-index: 1; }
.slide.out-l { transform: translateX(-3%) scale(.98); }
.slide.out-r { transform: translateX(3%) scale(.98); }

.sx-text { position: absolute; left: 6%; top: 50%; translate: 0 -50%; width: 42%; z-index: 3; }
.sx-text h2 { margin: 1rem 0 .8rem; font-size: 4.2rem; line-height: .98; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 .3rem 1.5rem rgba(0, 0, 0, .5); }
.sx-text h2 em { font-style: normal; background: linear-gradient(180deg, #f2fdff 0%, #8fe0ff 40%, #3b9dff 75%, #2a6dff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 1.2rem rgba(94, 200, 255, .5)); }
.sx-text p { margin: 0 0 1.6rem; color: #c6cbf2; font-size: 1.15rem; line-height: 1.5; max-width: 32rem; }
.sx-text p b { color: #fff; }
.sx-btn { padding: 1rem 2.2rem; font-size: 1.1rem; }
.slide .sx-text > * { opacity: 0; translate: 0 1.2rem; }
.slide.active .sx-text > * { animation: sx-in .8s var(--ease) forwards; }
.slide.active .sx-text > :nth-child(2) { animation-delay: .1s; }
.slide.active .sx-text > :nth-child(3) { animation-delay: .2s; }
.slide.active .sx-text > :nth-child(4) { animation-delay: .3s; }
@keyframes sx-in { to { opacity: 1; translate: 0 0; } }

/* новогодний слайд */
.s-xmas { background: radial-gradient(70% 90% at 75% 60%, #183a7a 0%, #0c1547 45%, #070726 100%); }
.sx-aurora { position: absolute; inset: -20%; filter: blur(3rem); opacity: .75; mix-blend-mode: screen;
    background: radial-gradient(35% 22% at 30% 25%, rgba(61, 220, 160, .55), transparent 70%), radial-gradient(30% 20% at 60% 15%, rgba(94, 200, 255, .5), transparent 70%), radial-gradient(28% 22% at 80% 35%, rgba(168, 85, 247, .45), transparent 70%);
    animation: aurora 14s ease-in-out infinite alternate; }
@keyframes aurora { 50% { transform: translate(4%, 3%) skewX(-6deg) scale(1.05); } 100% { transform: translate(-3%, -2%) skewX(4deg); } }
.sx-stars { position: absolute; inset: 0; opacity: .9;
    background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 22% 62%, #fff, transparent), radial-gradient(2px 2px at 34% 12%, #cfefff, transparent), radial-gradient(1px 1px at 46% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 58% 8%, #fff, transparent), radial-gradient(1px 1px at 66% 52%, #fff, transparent), radial-gradient(2px 2px at 78% 16%, #fff, transparent), radial-gradient(1px 1px at 88% 44%, #cfefff, transparent), radial-gradient(1.5px 1.5px at 94% 10%, #fff, transparent), radial-gradient(1px 1px at 6% 80%, #fff, transparent);
    animation: sparkle 4s ease-in-out infinite; }
.s-xmas::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 1; pointer-events: none;
    background: radial-gradient(60% 100% at 70% 100%, rgba(220, 238, 255, .4), transparent 70%), linear-gradient(0deg, rgba(200, 228, 255, .16), transparent); }
.sx-chests { position: absolute; right: 2%; top: 0; bottom: 0; width: 56%; z-index: 2; }
.sx-c { position: absolute; height: auto; filter: drop-shadow(0 1.4rem 1.6rem rgba(0, 0, 0, .6)); opacity: 0; }
.sx-c.c1 { left: 0; bottom: 20%; width: 29%; --r: -8deg; }
.sx-c.c2 { left: 20%; bottom: 27%; width: 36%; --r: -3deg; z-index: 2; }
.sx-c.c3 { left: 47%; bottom: 8%; width: 32%; --r: 4deg; z-index: 3; }
.sx-c.c4 { left: 73%; bottom: 36%; width: 27%; --r: 9deg; z-index: 1; }
.slide.active .sx-c { animation: sx-drop .9s var(--ease) forwards, sx-float 4.5s ease-in-out .9s infinite; }
.slide.active .sx-c.c2 { animation-delay: .12s, 1.1s; }
.slide.active .sx-c.c3 { animation-delay: .24s, 1.3s; }
.slide.active .sx-c.c4 { animation-delay: .36s, 1.5s; }
@keyframes sx-drop { from { opacity: 0; transform: translateY(-3rem) rotate(var(--r)) scale(.85); } to { opacity: 1; transform: rotate(var(--r)); } }
@keyframes sx-float { 0%, 100% { opacity: 1; transform: rotate(var(--r)); } 50% { opacity: 1; transform: translateY(-.7rem) rotate(calc(var(--r) * .6)); } }

/* бонусный слайд */
.s-bonus { background: radial-gradient(70% 90% at 75% 55%, #134a3a 0%, #0b2433 45%, #070722 100%); }
.s-bonus .sx-text h2 em { background: linear-gradient(180deg, #fff 0%, #b8ffd8 45%, #2bd47a 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 1.2rem rgba(60, 240, 143, .45)); }
.s-bonus .sx-kicker { color: #d6ffe9; background: linear-gradient(90deg, rgba(60, 240, 143, .2), rgba(60, 240, 143, .05)); border-color: rgba(60, 240, 143, .35); box-shadow: 0 0 1.2rem rgba(60, 240, 143, .15); }
.sb-glow { position: absolute; right: 5%; top: 50%; width: 55%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: radial-gradient(circle, rgba(60, 240, 143, .28), transparent 62%); animation: breathe 5s ease-in-out infinite; }
.sb-cal { position: absolute; right: 5%; top: 50%; translate: 0 -50%; width: 50%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; z-index: 2; }
.sb-day {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1rem .5rem; border-radius: 1rem; text-align: center;
    background: linear-gradient(180deg, rgba(30, 70, 70, .75), rgba(12, 28, 40, .85)); border: 1px solid rgba(60, 240, 143, .25); box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .35);
    opacity: 0; transform: translateY(1rem) scale(.9);
}
.slide.active .sb-day { animation: sb-in .6s var(--ease) calc(.15s + var(--d) * .07s) forwards; }
@keyframes sb-in { to { opacity: 1; transform: none; } }
.sb-day span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb-day .bonus-ic { width: 2.8rem; height: 2.8rem; }
.sb-day b { font-size: 1.3rem; font-weight: 900; color: #b8ffd8; }
.sb-day.big { grid-column: span 2; background: linear-gradient(180deg, rgba(90, 70, 20, .8), rgba(40, 28, 10, .85)); border-color: rgba(255, 201, 60, .5); box-shadow: 0 0 2.5rem rgba(255, 201, 60, .25); }
.sb-day.big .bonus-ic { width: 3.6rem; height: 3.6rem; filter: drop-shadow(0 0 .8rem rgba(255, 201, 60, .6)) hue-rotate(-95deg) saturate(1.4); }
.sb-day.big b { color: var(--gold); font-size: 1.7rem; }

/* реферальный слайд */
.s-ref { background: radial-gradient(70% 90% at 72% 55%, #3a1870 0%, #170f4a 45%, #070722 100%); }
.s-ref .sx-text h2 em { background: linear-gradient(180deg, #fff 0%, #ffd9a8 45%, #ffb020 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 1.2rem rgba(255, 176, 32, .45)); }
.s-ref .sx-kicker { color: #fff0d6; background: linear-gradient(90deg, rgba(255, 201, 60, .2), rgba(255, 201, 60, .05)); border-color: rgba(255, 201, 60, .35); box-shadow: 0 0 1.2rem rgba(255, 201, 60, .15); }
.sr-glow { position: absolute; right: 8%; top: 50%; width: 50%; aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 201, 60, .14) 0 7deg, transparent 7deg 20deg); mask: radial-gradient(circle, #000 15%, transparent 65%); animation: spin 40s linear infinite; }
.sr-art { position: absolute; right: 10%; top: 50%; translate: 0 -50%; width: 36%; aspect-ratio: 1; display: grid; place-items: center; z-index: 2; }
.sr-case { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1.5rem 2rem rgba(0, 0, 0, .6)); animation: float 4s ease-in-out infinite; }
.sr-badge {
    position: absolute; right: 2%; top: 8%; width: 7.2rem; height: 7.2rem; border-radius: 50%; display: grid; place-items: center;
    font-size: 2rem; font-weight: 900; color: #3a2500; rotate: 12deg;
    background: radial-gradient(circle at 35% 30%, #fff6c8, #ffc93c 45%, #e49710); box-shadow: 0 0 0 .4rem rgba(255, 201, 60, .25), 0 0 3rem rgba(255, 201, 60, .5), inset 0 -.3rem 0 rgba(0, 0, 0, .15);
    animation: badge-pop 3s ease-in-out infinite;
}
@keyframes badge-pop { 50% { scale: 1.08; rotate: 4deg; } }

/* управление слайдером */
.sl-arrow {
    position: absolute; top: 50%; translate: 0 -50%; z-index: 6; width: 3.2rem; height: 3.2rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 2rem; line-height: 1; padding-bottom: .2rem; color: #fff;
    background: rgba(10, 8, 30, .45); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(8px);
    opacity: 0; transition: opacity .3s, background .2s, transform .2s;
}
.sl-arrow.prev { left: 1.2rem; } .sl-arrow.next { right: 1.2rem; }
.hero-frame:hover .sl-arrow { opacity: 1; }
.sl-arrow:hover { background: rgba(255, 46, 77, .55); transform: scale(1.08); }
.sl-dots { position: absolute; right: 1.6rem; bottom: 1.3rem; z-index: 6; display: flex; gap: .5rem; }
.sl-dot { position: relative; width: 2.6rem; height: .4rem; border-radius: 1rem; overflow: hidden; background: rgba(255, 255, 255, .22); transition: width .3s var(--ease), background .2s; }
.sl-dot:hover { background: rgba(255, 255, 255, .4); }
.sl-dot.active { width: 4.2rem; }
.sl-dot i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--flame), var(--gold)); box-shadow: 0 0 .6rem var(--flame); }
.sl-dot.active i { animation: sl-prog 7s linear forwards; }
.hero.paused .sl-dot.active i { animation-play-state: paused; }
@keyframes sl-prog { to { width: 100%; } }
.hero-frame::after { z-index: 4; }
.hero-snow { z-index: 5; }
.hero-sweep { z-index: 5; }

/* ---------- вход: Telegram ---------- */
.or { display: flex; align-items: center; gap: .8rem; margin: 1rem 0; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }
.btn-tg { color: #fff; background: linear-gradient(180deg, #45bdf5 0%, #229ed9 60%, #1786bd 100%); box-shadow: 0 .4rem 1.4rem rgba(34, 158, 217, .35), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -.2rem 0 rgba(0, 0, 0, .15); }
.btn-tg svg { width: 1.3rem; height: 1.3rem; flex: none; }
.btn-tg:hover { box-shadow: 0 .6rem 2rem rgba(34, 158, 217, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.auth-tg { margin: .8rem 0 1rem; }
.auth-tg a { width: 100%; }
.telegram-feedback { margin: .55rem 0 0; color: var(--muted); font-size: .88rem; }
.telegram-profile {
    max-width: 34rem; margin: 1rem 0 1.25rem; padding: 1.15rem 1.3rem;
    border-color: #5ca5e13b; background: radial-gradient(ellipse at 100% 0, #4bbaff20, transparent 66%), #15132e;
}
.telegram-card-head { display: flex; align-items: center; gap: .9rem; }
.telegram-card-head h2 { font-size: 1.1rem; }
.telegram-card-head .muted { font-size: .83rem; }
.telegram-card-icon {
    display: grid; place-items: center; flex: none; width: 2.55rem; height: 2.55rem;
    color: #90dcff; background: #263857; border: 1px solid #4e7ca8; border-radius: .72rem;
}
.telegram-card-icon svg { width: 1.45rem; height: 1.45rem; }
.telegram-profile-account { margin: .85rem 0 0; overflow-wrap: anywhere; }
.telegram-profile-account b, .telegram-case-status b { color: var(--ice2); }
.telegram-case-status { margin: .4rem 0 0; font-size: .88rem; }
.telegram-profile-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .75rem; }
.telegram-confirm {
    display: grid; justify-items: center; gap: .8rem; max-width: 30rem;
    margin: 2rem auto; padding: 1.5rem; text-align: center;
}
.telegram-confirm h1 { font-size: 1.45rem; }
.telegram-feedback:empty { display: none; }
.auth-ref { margin-top: 1rem; padding: .75rem 1rem; border-radius: .75rem; text-align: center; font-weight: 700; font-size: .88rem; color: #c9ffe0; background: rgba(60, 240, 143, .1); border: 1px solid rgba(60, 240, 143, .3); }

/* ---------- страница бонусов / рефералов: шапка ---------- */
.bp-hero {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.4rem 2.8rem; margin-bottom: 1.5rem; border-radius: var(--r-lg); overflow: hidden;
    background: radial-gradient(40rem 20rem at 85% 50%, rgba(60, 240, 143, .2), transparent 65%), radial-gradient(40rem 22rem at 0% 0%, rgba(94, 200, 255, .12), transparent 60%), linear-gradient(120deg, #0f2a3a, #0d0b28 70%);
    border: 1px solid var(--line2); box-shadow: var(--shadow);
}
.bp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image: radial-gradient(1.5px 1.5px at 10% 30%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 20%, #fff, transparent), radial-gradient(1px 1px at 75% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 92% 25%, #fff, transparent); }
.bp-hero-txt { position: relative; max-width: 44rem; }
.bp-hero h1 { margin: .9rem 0 .6rem; font-size: 3rem; font-weight: 900; line-height: 1.05; text-transform: uppercase; }
.bp-hero h1 em { font-style: normal; background: linear-gradient(180deg, #fff, #b8ffd8 45%, #2bd47a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bp-hero p { margin: 0; color: #c6cbf2; font-size: 1.05rem; }
.bp-balance { position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1.4rem 2.4rem; border-radius: 1.1rem; background: rgba(5, 20, 20, .5); border: 1px solid rgba(60, 240, 143, .35); box-shadow: 0 0 2.5rem rgba(60, 240, 143, .15), inset 0 0 2rem rgba(60, 240, 143, .06); }
.bp-balance span { color: var(--muted); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.bp-balance b { display: flex; align-items: center; gap: .6rem; font-size: 2.6rem; font-weight: 900; color: #b8ffd8; font-variant-numeric: tabular-nums; }
.bp-balance .bonus-ic { width: 2.6rem; height: 2.6rem; }

/* ---------- бонусы: календарь и задания ---------- */
.bp-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; align-items: start; }
.bp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.bp-head h3 { margin: 0; }
.bp-streak { font-weight: 700; color: var(--muted); }
.bp-streak b { color: var(--flame2); font-size: 1.1rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .7rem; }
.cal-day {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: 1rem .3rem .9rem; border-radius: .95rem; text-align: center;
    background: linear-gradient(180deg, rgba(36, 32, 90, .7), rgba(16, 14, 44, .85)); border: 1px solid var(--line2);
    animation: pop .5s var(--ease) calc(var(--d) * .05s) both;
}
.cd-n { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cd-ic { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; }
.cd-ic .bonus-ic { width: 100%; height: 100%; }
.cd-ic img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 0 .6rem rgba(255, 201, 60, .5)); }
.cal-day b { font-size: 1.1rem; font-weight: 900; color: #b8ffd8; }
.cal-day.big { background: linear-gradient(180deg, rgba(90, 66, 18, .75), rgba(36, 24, 8, .85)); border-color: rgba(255, 201, 60, .45); }
.cal-day.big b { color: var(--gold); }
.cal-day.done { opacity: .55; }
.cal-day.done .cd-ic { filter: grayscale(.3); }
.cd-check { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; font-size: 1.8rem; font-weight: 900; color: #fff; background: rgba(20, 120, 70, .45); text-shadow: 0 0 .8rem var(--green); }
.cal-day.today { opacity: 1; border-color: var(--green); transform: translateY(-.3rem); box-shadow: 0 0 0 1px var(--green), 0 0 2rem rgba(60, 240, 143, .35); animation: pop .5s var(--ease) both, today 2s ease-in-out .5s infinite; }
.cal-day.today::before { content: 'Сегодня'; position: absolute; top: -.7rem; left: 50%; translate: -50% 0; padding: .1rem .5rem; border-radius: .4rem; font-size: .62rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #053a1d; background: var(--green); white-space: nowrap; }
.cal-day.today .cd-ic { animation: gift-wiggle 2s ease-in-out infinite; }
@keyframes today { 50% { box-shadow: 0 0 0 1px var(--green), 0 0 3rem rgba(60, 240, 143, .55); } }
.bp-claim { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: 1.6rem; text-align: center; }
.bp-claim .btn { min-width: 22rem; }
.bp-claim p { margin: 0; }
.bp-next { padding: .9rem 1.6rem; border-radius: .9rem; background: rgba(0, 0, 0, .25); border: 1px solid var(--line2); font-weight: 600; color: var(--muted); }
.bp-next b { color: #fff; font-variant-numeric: tabular-nums; font-size: 1.1rem; margin-left: .3rem; }
#reset-t { color: #fff; font-variant-numeric: tabular-nums; }
.tasks { display: flex; flex-direction: column; gap: .7rem; }
.task { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; border-radius: .9rem; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.task .t-ic { width: 2.8rem; height: 2.8rem; flex: none; border-radius: .75rem; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: inherit; font-weight: inherit; }
.task .t-ic img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; }
.t-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.t-body b { font-size: .95rem; }
.t-bar { height: .42rem; border-radius: 1rem; background: rgba(255, 255, 255, .07); overflow: hidden; }
.t-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1fae63, #6dffb0); box-shadow: 0 0 .6rem rgba(60, 240, 143, .5); transition: width .8s var(--ease); }
.t-prog { font-size: .75rem; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.t-rew { display: inline-flex; align-items: center; gap: .3rem; font-weight: 800; color: #8dffc0; white-space: nowrap; }
.t-done { color: var(--green); font-weight: 800; font-size: .85rem; white-space: nowrap; }
.task.ready { border-color: rgba(60, 240, 143, .5); box-shadow: 0 0 1.4rem rgba(60, 240, 143, .15); }
.task.ready .btn { animation: btn-pulse-g 2s infinite; }
@keyframes btn-pulse-g { 50% { box-shadow: 0 0 0 .5rem rgba(255, 201, 60, 0), 0 0 1.4rem rgba(255, 201, 60, .5); } }
.task.claimed { opacity: .55; }
.task.claimed .t-bar i { background: linear-gradient(90deg, #3a5f8a, #6c8fbf); box-shadow: none; }
.bonus-page .case-section { margin-top: 2.5rem; }

/* ---------- рефералы ---------- */
.ref-hero { background: radial-gradient(40rem 22rem at 85% 50%, rgba(255, 201, 60, .2), transparent 65%), radial-gradient(40rem 22rem at 0% 0%, rgba(168, 85, 247, .18), transparent 60%), linear-gradient(120deg, #2a1550, #0d0b28 70%); }
.ref-hero h1 em { background: linear-gradient(180deg, #fff, #ffd9a8 45%, #ffb020); -webkit-background-clip: text; background-clip: text; }
.ref-hero .sx-kicker { color: #fff0d6; background: linear-gradient(90deg, rgba(255, 201, 60, .2), rgba(255, 201, 60, .05)); border-color: rgba(255, 201, 60, .35); }
.ref-hero-art { position: relative; width: 15rem; height: 12rem; flex: none; display: grid; place-items: center; }
.ref-hero-art::before { content: ''; position: absolute; inset: -30%; background: repeating-conic-gradient(from 0deg, rgba(255, 201, 60, .14) 0 7deg, transparent 7deg 20deg); mask: radial-gradient(circle, #000 15%, transparent 65%); animation: spin 30s linear infinite; }
.rh-case { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1rem 1.4rem rgba(0, 0, 0, .55)); animation: float 4s ease-in-out infinite; }
.ref-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.copy-row { display: flex; gap: .6rem; }
.copy-row input { flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: .75rem; background: rgba(0, 0, 0, .3); border: 1px solid var(--line2); outline: 0; font-weight: 600; transition: border-color .2s, box-shadow .2s; }
.copy-row input:focus { border-color: rgba(94, 200, 255, .6); box-shadow: 0 0 0 .2rem rgba(94, 200, 255, .12); }
.copy-row input.code { font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; font-weight: 800; letter-spacing: .25em; color: var(--gold); text-align: center; }
.copy-row .btn { flex: none; min-width: 9.5rem; }
.ref-apply { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line2); }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rst { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 1.2rem 1.3rem; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); color: var(--text); overflow: hidden; }
.rst > span { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rst b { font-size: 1.8rem; font-weight: 900; }
.rst.gold { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 201, 60, .18), transparent 60%), var(--panel); border-color: rgba(255, 201, 60, .3); }
.rst.gold b { font-size: 1.5rem; }
.rst.invite { padding-left: 7.5rem; transition: transform .25s var(--ease), box-shadow .25s; }
.rst.invite b { font-size: 1rem; }
.rst-case { position: absolute; left: .4rem; top: 50%; translate: 0 -50%; width: 6.6rem; height: 6.6rem; object-fit: contain; filter: grayscale(.7) brightness(.8); transition: filter .3s; }
.rst.invite.has { border-color: rgba(255, 46, 77, .5); box-shadow: 0 0 2rem rgba(255, 46, 77, .2); animation: free-glow 2.4s infinite; }
.rst.invite.has .rst-case { filter: none; animation: float 3s ease-in-out infinite; }
.rst.invite.has b { color: #ff8095; }
.rst.invite:hover { transform: translateY(-3px); }
.ref-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.rs { position: relative; padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.rs::after { content: ''; position: absolute; left: 1.3rem; right: 1.3rem; bottom: 0; height: .2rem; border-radius: .2rem .2rem 0 0; background: linear-gradient(90deg, var(--flame), var(--gold)); opacity: .6; }
.rs-n { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .8rem; border-radius: .75rem; font-weight: 900; font-size: 1.1rem; color: #fff; background: linear-gradient(180deg, #ff5a6e, var(--flame)); box-shadow: 0 .3rem 1rem rgba(255, 46, 77, .4); }
.rs b { display: block; font-size: 1.05rem; margin-bottom: .35rem; }
.rs p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
table.table { width: 100%; border-collapse: collapse; padding: 0; }
table.table th { text-align: left; padding: .7rem 1rem; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 800; border-bottom: 1px solid var(--line); }
table.table td { padding: .75rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .03); }
table.table tr:hover td { background: rgba(255, 255, 255, .03); }
.tu { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-weight: 700; }
table.table .st { margin: 0; }
.st-done { background: rgba(61, 220, 114, .15); color: var(--green); }
.st-pending { background: rgba(255, 255, 255, .07); color: var(--muted); }

/* ---------- контракты ---------- */
.ct-head { margin-bottom: 1.4rem; }
.ct-head h1 { margin: .9rem 0 .4rem; font-size: 2.6rem; font-weight: 900; text-transform: uppercase; line-height: 1.05; }
.ct-head h1 em { font-style: normal; background: linear-gradient(180deg, #fff, #ffd9a8 45%, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ct-head p { margin: 0; }
.ct-stage {
    position: relative; display: grid; grid-template-columns: 1fr 26rem; gap: 2.5rem; align-items: center; min-height: 26rem; padding: 2rem 2.4rem; margin-bottom: 1.5rem; overflow: hidden;
    background: radial-gradient(30rem 22rem at 78% 50%, rgba(255, 176, 32, .14), transparent 65%), radial-gradient(40rem 25rem at 10% 100%, rgba(168, 85, 247, .12), transparent 60%), var(--panel);
}
.ct-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 8.6rem)); justify-content: center; gap: .9rem; }
.ct-slot {
    position: relative; aspect-ratio: 1; border-radius: 1rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
    background: rgba(0, 0, 0, .22); border: 2px dashed var(--line2); color: rgba(255, 255, 255, .18); font-weight: 900; font-size: 1.3rem;
}
.ct-slot.need { border-color: rgba(255, 176, 32, .35); color: rgba(255, 176, 32, .4); }
.ct-slot.full { border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 32%, transparent), transparent 72%), rgba(255, 255, 255, .03); box-shadow: 0 0 1.4rem color-mix(in srgb, var(--rc) 18%, transparent); animation: pop .35s var(--ease); transition: transform .2s; }
.ct-slot.full .item-img { width: 62%; height: 62%; object-fit: contain; filter: drop-shadow(0 .4rem .5rem rgba(0, 0, 0, .5)); }
.ct-slot.full span { font-size: .75rem; font-weight: 800; color: #ffe18a; }
.ct-slot.full:hover { transform: scale(.95); }
.ct-slot.full:hover::after { content: '×'; position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(255, 46, 77, .5); color: #fff; font-size: 2.2rem; }
.ct-slot.suck { animation: ct-suck .75s cubic-bezier(.55, 0, .75, .2) forwards; pointer-events: none; }
@keyframes ct-suck { 20% { transform: scale(1.08); } to { transform: translate(var(--tx), var(--ty)) scale(.15) rotate(200deg); opacity: 0; filter: brightness(2.5); } }
.ct-core { position: relative; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.ct-orb { position: relative; width: 11rem; height: 11rem; display: grid; place-items: center; }
.ct-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 176, 32, .5); box-shadow: 0 0 1.6rem rgba(255, 176, 32, .25), inset 0 0 1.6rem rgba(255, 176, 32, .15); }
.ct-orb i:nth-child(1) { border-style: dashed; animation: spin 20s linear infinite; }
.ct-orb i:nth-child(2) { inset: 1.2rem; border-width: 3px; border-color: rgba(255, 201, 60, .75) transparent; animation: spin 6s linear infinite reverse; }
.ct-orb i:nth-child(3) { inset: 2.6rem; background: radial-gradient(circle, rgba(255, 201, 60, .35), transparent 70%); border: 0; animation: breathe 3s ease-in-out infinite; }
.ct-scroll { position: relative; font-size: 3.4rem; filter: drop-shadow(0 0 1rem rgba(255, 201, 60, .6)); animation: float 3s ease-in-out infinite; }
.ct-sum { display: flex; flex-direction: column; gap: .15rem; }
.ct-sum span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.ct-sum .coins { font-size: 1.8rem; }
.ct-range { min-height: 1.5rem; font-weight: 700; color: #c6cbf2; }
.ct-core .btn-open { min-width: 20rem; }
.ct-stage.fusing .ct-orb i:nth-child(1) { animation-duration: 1.2s; }
.ct-stage.fusing .ct-orb i:nth-child(2) { animation-duration: .6s; }
.ct-stage.fusing .ct-orb { animation: orb-charge 1.5s ease-in forwards; }
.ct-stage.fusing .ct-scroll { opacity: 0; transition: opacity .3s; }
.ct-stage.fusing .ct-sum, .ct-stage.fusing .ct-range, .ct-stage.fusing #ct-go, .ct-stage.fusing .switch-row { opacity: .35; transition: opacity .3s; }
@keyframes orb-charge { to { filter: brightness(1.6) drop-shadow(0 0 2.5rem rgba(255, 201, 60, .8)); transform: scale(1.12); } }
.ct-reel { position: absolute; left: 50%; top: 0; width: 11rem; height: 11rem; translate: -50% 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.ct-reel-item { width: 7rem; height: 7rem; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 50%, transparent), transparent 70%); animation: reel-pop .14s var(--ease); }
.ct-reel-item .item-img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 0 .8rem var(--rc)); }
@keyframes reel-pop { from { transform: scale(.7); opacity: .4; } }
.ct-result { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 1rem; background: rgba(7, 6, 26, .7); backdrop-filter: blur(6px); animation: page-in .4s var(--ease) both; }
.ctr-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .55rem; width: min(30rem, 100%); padding: 1.8rem 1.6rem 1.3rem; border-radius: var(--r-lg); text-align: center; overflow: hidden; isolation: isolate;
    background: radial-gradient(80% 60% at 50% 30%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 70%), var(--panel-solid);
    border: 1px solid color-mix(in srgb, var(--rc) 55%, transparent); box-shadow: 0 0 3rem color-mix(in srgb, var(--rc) 30%, transparent), var(--shadow); animation: card-flip .7s var(--ease) both; }
.ctr-rays { position: absolute; left: 50%; top: 32%; width: 40rem; height: 40rem; translate: -50% -50%; z-index: -1; background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 22%, transparent) 0 6deg, transparent 6deg 18deg); mask: radial-gradient(circle, #000 10%, transparent 55%); animation: spin 22s linear infinite; }
.ctr-r { padding: .2rem .7rem; border-radius: .45rem; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: color-mix(in srgb, var(--rc) 55%, transparent); }
.ctr-img { width: 10rem; height: 10rem; object-fit: contain; filter: drop-shadow(0 0 1.4rem color-mix(in srgb, var(--rc) 60%, transparent)) drop-shadow(0 1rem 1rem rgba(0, 0, 0, .5)); animation: float 3.5s ease-in-out infinite; }
.ctr-name { font-size: 1.35rem; font-weight: 900; }
.ctr-price { display: flex; align-items: center; gap: .7rem; font-size: 1.2rem; }
.ctr-price .pos { color: var(--green); font-weight: 900; }
.ctr-price .neg { color: #ff8095; font-weight: 900; }
.ctr-btns { display: flex; gap: .7rem; margin: .5rem 0 .3rem; flex-wrap: wrap; justify-content: center; }
.ct-possible { margin-bottom: 1.5rem; }
.ct-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .7rem; max-height: 30rem; overflow-y: auto; padding: .2rem; }
.ct-pool .item-card { padding: .55rem .55rem .75rem; }
.ct-pool .ic-name { font-size: .78rem; }

/* ---------- рулетка: драматургия ---------- */
.cp-flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
    background: radial-gradient(circle at 50% 50%, #fff 0, color-mix(in srgb, var(--gc) 70%, #fff) 12%, color-mix(in srgb, var(--gc) 40%, transparent) 35%, transparent 65%); }
.cp-flash.go { animation: cp-flash .9s ease-out forwards; }
@keyframes cp-flash { 0% { opacity: 0; transform: scale(.4); } 12% { opacity: 1; } 100% { opacity: 0; transform: scale(2.2); } }
.cp-scene.charging .cp-case { animation: shake .55s linear, charge .9s ease-in forwards; }
.cp-scene.charging .cp-rays { animation-duration: 3s; opacity: 1; }
.cp-scene.charging .cp-rings i { box-shadow: 0 0 3rem color-mix(in srgb, var(--gc) 60%, transparent), inset 0 0 2rem color-mix(in srgb, var(--gc) 30%, transparent); }
@keyframes charge { to { filter: brightness(1.8) drop-shadow(0 0 3rem var(--gc)); scale: 1.12; } }
.rl.slow .rl-marker { box-shadow: 0 0 1.4rem var(--gold), 0 0 3.4rem rgba(255, 201, 60, .7); width: .28rem; transition: width .3s, box-shadow .3s; }
.rl.slow { box-shadow: inset 0 0 3rem rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 201, 60, .35), 0 0 2rem rgba(255, 201, 60, .15); transition: box-shadow .4s; }
.rl.landed .rl-card:not(.win) { opacity: .4; filter: grayscale(.55) brightness(.8); transition: opacity .5s, filter .5s; }
.rl.landed .rl-marker { opacity: .35; transition: opacity .5s; }
.rl-beam { position: absolute; left: 50%; bottom: 0; width: 70%; height: 140%; translate: -50% 0; pointer-events: none; mix-blend-mode: screen; filter: blur(.4rem);
    background: linear-gradient(0deg, color-mix(in srgb, var(--rc) 80%, #fff), color-mix(in srgb, var(--rc) 30%, transparent) 55%, transparent); animation: beam 1.6s ease-out forwards; transform-origin: bottom; }
@keyframes beam { 0% { opacity: 0; transform: scaleY(0); } 25% { opacity: .9; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(1.1); } }
.rl-wave { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 0 .15rem var(--rc), 0 0 1.4rem var(--rc); animation: wave 1.1s ease-out forwards; }
@keyframes wave { to { transform: scale(1.45); opacity: 0; } }
.land-legendary .rl-card.win, .land-mythic .rl-card.win { animation: win-glow 1.2s ease-in-out infinite, win-bounce .6s var(--ease); }
@keyframes win-bounce { 0% { scale: .85; } 50% { scale: 1.12; } 100% { scale: 1; } }
.cp-center { position: relative; }
.cp-banner { position: absolute; left: 50%; top: 1.4rem; z-index: 8; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem 1.6rem; border-radius: 1rem; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #fff) 35%, rgba(10, 8, 30, .9)), rgba(10, 8, 30, .92)); border: 1px solid color-mix(in srgb, var(--rc, #fff) 60%, transparent); box-shadow: 0 0 2.5rem color-mix(in srgb, var(--rc, #fff) 40%, transparent); }
.cp-banner span { font-size: .78rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--rc); text-shadow: 0 0 .8rem var(--rc); }
.cp-banner b { font-size: 1.15rem; font-weight: 900; white-space: nowrap; }
.cp-banner.go { animation: banner 3.2s var(--ease) forwards; }
@keyframes banner { 0% { opacity: 0; transform: translateY(-1.5rem) scale(.8); } 12% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-.8rem); } }
.page.enter.quake { animation: page-in 1ms forwards, quake .7s cubic-bezier(.36, .07, .19, .97); }
@keyframes quake { 10%, 90% { translate: -.1rem 0; } 20%, 80% { translate: .25rem .1rem; } 30%, 50%, 70% { translate: -.45rem -.1rem; } 40%, 60% { translate: .45rem .1rem; } }
[data-quality=low] .rl-beam, [data-quality=low] .sx-aurora, [data-quality=low] .sp-rays { display: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1500px) {
    .bp-grid { grid-template-columns: 1fr; }
    .ct-stage { grid-template-columns: 1fr 22rem; gap: 1.6rem; }
    .ct-core .btn-open { min-width: 0; width: 100%; }
}
@media (max-width: 1180px) {
    .ref-grid { grid-template-columns: 1fr; }
    .ref-steps { grid-template-columns: repeat(2, 1fr); }
    .ct-stage { grid-template-columns: 1fr; }
    .ct-core { order: -1; }
    .sx-text h2 { font-size: 3rem; }
    .sx-text p { font-size: 1rem; margin-bottom: 1rem; }
    .garland { display: none; }
}
@media (max-width: 760px) {
    .sp-logo { font-size: 3.4rem; }
    .sp-logo .logo-hat { width: 3rem; height: 2.5rem; left: -.9rem; top: -1.6rem; }
    .sp-sub { font-size: .7rem; text-align: center; padding: 0 1rem; }
    .hero-frame { aspect-ratio: 4 / 3; }
    .s-banner .hero-img { object-position: 50% 50%; }
    .hero-cta { display: none; }
    .sx-text { left: 6%; right: 6%; top: auto; bottom: 8%; translate: none; width: auto; }
    .sx-text h2 { font-size: 2.2rem; margin: .6rem 0 .4rem; }
    .sx-text p { display: none; }
    .sx-btn { padding: .7rem 1.4rem; font-size: .95rem; }
    .sx-chests { width: 100%; right: 0; top: -8%; bottom: 40%; }
    .sb-cal { right: 4%; left: 4%; width: auto; top: 6%; translate: none; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
    .sb-day { padding: .4rem .1rem; }
    .sb-day.big { grid-column: auto; }
    .sb-day span { display: none; }
    .sb-day .bonus-ic, .sb-day.big .bonus-ic { width: 1.6rem; height: 1.6rem; }
    .sb-day b, .sb-day.big b { font-size: .8rem; }
    .sr-art { width: 45%; right: 4%; top: 32%; }
    .sr-badge { width: 4rem; height: 4rem; font-size: 1.1rem; }
    .sl-arrow { display: none; }
    .sl-dots { right: 50%; translate: 50% 0; bottom: .7rem; }
    .bp-hero { flex-direction: column; align-items: stretch; padding: 1.6rem; text-align: center; }
    .bp-hero h1 { font-size: 2rem; }
    .ref-hero-art { display: none; }
    .cal { grid-template-columns: repeat(4, 1fr); }
    .bp-claim .btn { min-width: 0; width: 100%; }
    .task { flex-wrap: wrap; }
    .ref-steps, .ref-stats { grid-template-columns: 1fr; }
    .copy-row { flex-direction: column; }
    .ct-stage { padding: 1.2rem; }
    .ct-slots { gap: .45rem; }
    .ct-head h1 { font-size: 1.8rem; }
    .bonus-chip { padding: 0 .55rem; }
    .cp-banner b { font-size: .95rem; }
}

/* ---------- шапка: компактнее, чтобы всё влезало на 1920 ---------- */
.top { gap: 1.4rem; }
.nav { gap: .15rem; }
.nav a { padding: .65rem .8rem; gap: .45rem; font-size: .9rem; }
.top-right { gap: .5rem; }
.online span:not(.live-dot) { display: none; }
.user-btn .un { max-width: 7.5rem; }
@media (min-width: 2200px) { .online span:not(.live-dot) { display: inline; } }
@media (min-width: 761px) { .nav a span { display: none; } .nav a { padding: .65rem; } }

/* битые внешние картинки: не показывать alt-текст */
img.item-img, img.case-img { color: transparent; font-size: 0; }

/* мобильная шапка и нижнее меню на 6 пунктов */
@media (max-width: 760px) {
    .nav { gap: 0; padding-left: .2rem; padding-right: .2rem; }
    .nav a { flex: 1 1 0; min-width: 0; padding: .45rem .1rem; font-size: .56rem; letter-spacing: 0; }
    .nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .top-right { gap: .35rem; }
    .top-right #btn-sound, .top-right .sound-btn { display: none; }
    .balance { padding-left: .5rem; }
    .balance b { font-size: .95rem; }
}
.subscription-heading { margin-bottom: 1.5rem; text-align: center; }
.subscription-heading > p { color: var(--muted); }
.subscription-status { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45rem 1rem; margin-top: 1rem; padding: .65rem 1rem; border: 1px solid var(--line2); border-radius: .8rem; background: #211d41; }
.subscription-status span { color: var(--muted); font-size: .87rem; }
.subscription-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.65rem, 1.15vw, 1.2rem); }
.subscription-card { --tier: #b9cfe6; display: flex; flex-direction: column; min-width: 0; gap: .65rem; padding: clamp(.75rem, 1.2vw, 1.3rem); border: 1px solid color-mix(in srgb, var(--tier) 42%, #171231); border-radius: 1.2rem; background: linear-gradient(153deg, color-mix(in srgb, var(--tier) 11%, #1a1539), #15112f 58%); }
.subscription-card[data-rank="2"] { --tier: #65e3ae; }
.subscription-card[data-rank="3"] { --tier: #64caff; }
.subscription-card[data-rank="4"] { --tier: #d395ff; }
.subscription-card[data-rank="5"] { --tier: #ff9276; }
.subscription-card.is-current { border-color: var(--tier); box-shadow: 0 0 1.1rem color-mix(in srgb, var(--tier) 19%, transparent); }
.subscription-card header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .4rem; }
.subscription-card h2 { font-size: clamp(1.14rem, 1.6vw, 1.56rem); line-height: 1.15; letter-spacing: -.025em; }
.subscription-card header span { color: var(--tier); font-size: .83rem; font-weight: 800; }
.subscription-art { display: grid; place-items: center; height: 9rem; border-radius: .75rem; background: radial-gradient(ellipse, color-mix(in srgb, var(--tier) 25%, transparent), transparent 69%); }
.subscription-art img { width: 100%; height: 100%; object-fit: contain; }
.subscription-perks { flex: 1; display: grid; align-content: start; gap: .55rem; padding: .75rem 0; margin: 0; list-style: none; border-block: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.subscription-perks li { display: block; padding-left: 1.05rem; position: relative; }
.subscription-perks li::before { position: absolute; left: 0; top: .04em; content: '◆'; font-size: .72em; color: var(--tier); }
.subscription-perks strong { color: var(--text); }
.subscription-price { margin: .15rem 0; font-size: 1.45rem; font-weight: 900; }
.subscription-card .btn { min-height: 2.85rem; padding: .55rem .45rem; white-space: normal; text-align: center; line-height: 1.2; }
.subscription-details { display: grid; gap: .65rem; margin: 0 0 1rem; }
.subscription-details div, .subscription-cases li { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.subscription-details dt { color: var(--muted); }
.subscription-details dd { margin: 0; font-weight: 800; text-align: right; }
.subscription-cases-title { margin-top: 1.1rem; }
.subscription-cases { padding: 0; list-style: none; display: grid; gap: .4rem; }
.subscription-cases a { color: var(--ice); }
.subscription-cases a:hover { text-decoration: underline; }
.subscription-checkout-note { margin-bottom: .85rem; color: var(--muted); }
#verify-seeds { margin-bottom: 1.25rem; }
@media (max-width: 1120px) { .subscription-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .subscription-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 365px) { .subscription-grid { grid-template-columns: minmax(0, 1fr); } }

/* Навигация и выпадающие панели */
.top .garland { z-index: 0; }
.top > .logo, .top-right { position: relative; z-index: 2; }
.nav a { z-index: 1; }
.nav a[data-tip]::before {
    position: absolute; z-index: 3; left: 50%; top: calc(100% + .9rem);
    content: attr(data-tip); translate: -50% -.3rem; opacity: 0; visibility: hidden; pointer-events: none;
    padding: .48rem .72rem; border: 1px solid #72425f; border-radius: .6rem;
    background: linear-gradient(135deg, #332042, #191530); color: #fff1f4;
    font-size: .73rem; font-weight: 850; letter-spacing: .09em; white-space: nowrap;
    box-shadow: 0 .45rem 1rem #070418aa; transition: opacity .15s, translate .15s, visibility .15s;
}
.nav a:focus-visible::before { visibility: visible; opacity: 1; translate: -50% 0; }
@media (hover: hover) {
    .nav a:hover::before { visibility: visible; opacity: 1; translate: -50% 0; }
}
.ni-subscriptions { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m2 6 5 4 5-6 5 6 5-4-3 12H5zm3 14h14v2H5z'/%3E%3C/svg%3E"); }
.user-drop { z-index: 5; visibility: hidden; }
.user-drop.open { visibility: visible; }
.avatar > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.balance .bal-plus { display: grid; place-items: center; }
.balance .bal-plus:hover { transform: scale(1.06); }
@media (max-width: 760px) {
    .nav a[data-tip]::before { top: auto; bottom: calc(100% + .55rem); }
    .nav a:first-child::before { left: 0; translate: 0; }
    .nav a:last-child::before { left: auto; right: 0; translate: 0; }
}

/* Кошелёк и регуляторы */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wallet-info { border: 1px solid #3c547f; border-radius: .75rem; padding: .75rem .85rem; background: #202548; color: #c0e5f9; font-size: .89rem; }
.wallet-form { margin-top: 1rem; }
.wallet-options, .wallet-presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.wallet-options { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.wallet-options label { position: relative; display: grid; }
.wallet-options input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.wallet-options span { display: grid; justify-items: center; gap: .15rem; padding: .65rem .2rem; border: 1px solid var(--line2); border-radius: .8rem; background: rgba(6, 4, 20, .43); color: var(--text); font-weight: 800; }
.wallet-options i { color: var(--ice); font-size: 1.4rem; font-style: normal; }
.wallet-options input:checked + span { border-color: var(--flame); background: #381733; box-shadow: inset 0 0 1rem #ff2e4d19; }
.wallet-options input:focus-visible + span, .wallet-presets button:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.wallet-presets button { min-width: 0; padding: .62rem .22rem; border: 1px solid #594641; border-radius: .75rem; background: #2a2137; font-weight: 800; }
.wallet-presets button[aria-pressed=true] { border-color: #ffc93c; background: #3b2a3b; }
.volume-control { display: flex; align-items: center; gap: .65rem; width: min(55%, 15rem); }
.set-row .volume-control input[type=range] { width: 100%; }
.volume-control output { min-width: 3.15ch; color: var(--ice); font-variant-numeric: tabular-nums; text-align: right; }
.fd-range { --fill: 0%; appearance: none; min-width: 0; width: 100%; height: .55rem; margin: .55rem 0; border-radius: 2rem; background: linear-gradient(90deg, #ff3c6c, #ff9360) 0 / var(--fill) 100% no-repeat, #312d58; cursor: pointer; }
.fd-range:focus-visible { outline: 2px solid var(--ice); outline-offset: 5px; }
.fd-range::-webkit-slider-thumb { appearance: none; width: 1.15rem; height: 1.15rem; border: 3px solid #ffd1b7; border-radius: 50%; background: #ff4f64; box-shadow: 0 0 .9rem #ff537e88; }
.fd-range::-moz-range-thumb { width: .8rem; height: .8rem; border: 3px solid #ffd1b7; border-radius: 50%; background: #ff4f64; box-shadow: 0 0 .9rem #ff537e88; }
.fd-range:disabled { cursor: default; }

.music-menu { position: relative; z-index: 3; flex: none; margin-inline-start: -.6rem; }
.music-trigger {
    display: flex; align-items: center; gap: .48rem; min-height: 2.6rem; padding: 0 .72rem;
    background: var(--panel2); border: 1px solid var(--line2); border-radius: .75rem;
    color: var(--text); font-size: .84rem; font-weight: 750;
}
.music-trigger svg {
    width: 1.17rem; height: 1.17rem; fill: none; stroke: var(--ice);
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.music-trigger > i { width: .38rem; height: .38rem; border-radius: 50%; background: var(--muted); opacity: .55; }
.music-trigger:hover, .music-trigger[aria-expanded=true] { border-color: var(--ice); }
.music-menu[data-playing] .music-trigger > i { background: var(--green); box-shadow: 0 0 .55rem #3ddc7290; opacity: 1; }
.music-menu[data-playing] .music-trigger svg { stroke: var(--green); }
.music-trigger:focus-visible, .music-panel .switch input:focus-visible + i { outline: 2px solid var(--ice); outline-offset: 3px; }
.music-panel {
    position: absolute; inset-block-start: calc(100% + .65rem); inset-inline-start: 0;
    z-index: 3;
    width: min(23rem, calc(100vw - 2rem)); padding: .9rem 1rem;
    max-height: calc(100dvh - var(--top-h) - 1.5rem); overflow-y: auto; overscroll-behavior: contain;
    background: linear-gradient(145deg, #251b47, #151230 72%);
    border: 1px solid var(--line2); border-radius: .95rem; box-shadow: var(--shadow);
}
.music-heading { display: grid; gap: .06rem; margin-bottom: .75rem; }
.music-heading strong { font-size: 1.08rem; font-weight: 850; }
.music-heading span { color: var(--ice2); font-size: .85rem; overflow-wrap: anywhere; }
.music-heading small { color: var(--muted); font-size: .75rem; overflow-wrap: anywhere; }
.music-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .85rem; font-weight: 650; }
label.music-row { padding: .62rem 0; margin-bottom: .6rem; border-block: 1px solid var(--line); cursor: pointer; }
.music-row output { color: var(--ice2); font-variant-numeric: tabular-nums; }
.music-search, .music-actions { display: flex; gap: .45rem; margin-top: .65rem; }
.music-search input {
    flex: 1; min-width: 0; padding: .55rem .66rem; border-radius: .58rem;
    border: 1px solid var(--line2); background: #110e28; font-size: .85rem;
}
.music-search button, .music-actions button {
    flex: none; padding: .52rem .66rem; border: 1px solid var(--line2);
    border-radius: .58rem; background: var(--panel2); font-size: .8rem; font-weight: 700;
}
.music-search button:hover, .music-actions button:hover { border-color: var(--ice); }
.music-actions { flex-wrap: wrap; }
.music-results {
    display: grid; gap: .25rem; max-height: 10rem; overflow-y: auto;
    overscroll-behavior: contain; padding: .15rem; margin: .5rem 0 0; list-style: none;
}
.music-results button {
    display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); align-items: center; gap: .5rem;
    width: 100%; padding: .45rem .55rem; border-radius: .5rem; text-align: start; background: #ffffff08;
}
.music-results button:hover, .music-results button:focus-visible { background: #ffffff15; }
.music-results button > i { color: var(--ice); font-size: .76rem; font-style: normal; }
.music-result-detail { display: grid; gap: .1rem; }
.music-result-detail b, .music-result-detail small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.music-result-detail b { font-size: .8rem; }
.music-result-detail small { font-size: .72rem; color: var(--muted); }
.music-note, .music-status { margin: .4rem 0 0; color: var(--muted); font-size: .78rem; }
.music-status:empty { margin: 0; }
@media (max-width: 1280px) {
    .music-trigger { width: 2.6rem; justify-content: center; padding: 0; }
    .music-trigger > span, .music-trigger > i { display: none; }
}
@media (max-width: 760px) {
    .music-menu { position: static; margin-inline-start: 0; }
    .music-trigger { width: 2.4rem; min-height: 2.4rem; }
    .music-panel { inset-block-start: calc(100% + .4rem); inset-inline-start: var(--pad); }
}
@media (max-width: 370px) {
    .top { gap: .45rem; }
    .top > .logo { font-size: 1.25rem; }
}

/* Апгрейдер */
.up-list { min-width: 0; }
.ul-grid { grid-template-columns: repeat(auto-fill, minmax(min(8.5rem, 100%), 1fr)); grid-auto-rows: minmax(10.75rem, max-content); }
.ul-grid .item-card { min-height: 10.75rem; }
.ul-grid .ic-art { flex: 1 0 4.3rem; height: 4.3rem; aspect-ratio: auto; }
.ul-grid .ic-art .item-img { max-height: 4.3rem; }
.ul-grid .ic-top, .ul-grid .ic-name { flex-shrink: 0; }
.ul-grid .pickable:focus-visible { outline: 2px solid var(--ice); outline-offset: -2px; }
.ul-more { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.ul-more button:disabled { opacity: .4; cursor: default; }
.us-extra { grid-template-columns: minmax(0, 1fr) clamp(4.2rem, 26%, 7rem); gap: .55rem .75rem; border: 1px solid var(--line); background: #10102b; border-radius: .8rem; padding: .65rem .75rem; }
.us-extra label { grid-column: 1 / -1; color: var(--text); }
.us-extra input[type=number] { padding: .45rem .5rem; text-align: right; font-variant-numeric: tabular-nums; }

/* Настройки аккаунта и управление */
.account-back { display: inline-block; margin-bottom: .8rem; color: var(--ice); font-weight: 700; }
.account-grid, .admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.account-grid .panel { display: grid; gap: .9rem; min-width: 0; }
.avatar-preview { display: flex; align-items: center; gap: 1rem; margin: .55rem 0; }
.account-actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.account-actions [hidden], .admin-modern [hidden] { display: none; }
.account-settings input[type=file] { font-size: .88rem; }
.admin-modern { color: var(--text); }
.admin-modern .block { margin-top: 1rem; }
.admin-modern .panel > h2 { margin-bottom: .65rem; }
.admin-modern .actions { display: flex; gap: .5rem; }
.admin-modern .actions input { min-width: 0; flex: 1; }
.admin-modern .admin-table { overflow-x: auto; }
.admin-modern table { width: 100%; border-collapse: collapse; font-size: .88rem; text-align: left; }
.admin-modern th, .admin-modern td { padding: .6rem .42rem; border-bottom: 1px solid var(--line); }
.admin-modern td small { display: block; color: var(--muted); margin-top: .22rem; }
.admin-identity, .admin-ip { display: flex; align-items: center; gap: .45rem; }
.admin-ip { white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-flag { border-radius: .15rem; object-fit: contain; }
.admin-modern .admin-user-status, .admin-modern .error { color: #ff93a6; }
.admin-geo { font-size: .73rem; margin-top: .75rem; }
.admin-geo a:hover { text-decoration: underline; }
.admin-modern .form { padding: .8rem 0; border-top: 1px solid var(--line); }
.admin-modern button { padding: .55rem .8rem; background: #2d2349; color: var(--text); border: 1px solid var(--line2); border-radius: .65rem; font-weight: 750; text-align: center; }
.admin-modern .form button { background: linear-gradient(180deg, #9e2850, #641b45); border-color: #b34268; }
.admin-modern button:hover { border-color: var(--ice); }
.admin-modern button[data-user] { padding: .25rem .45rem; }
.admin-modern input, .admin-modern select, .admin-modern textarea { font: inherit; color: inherit; background: #111027; border: 1px solid var(--line2); border-radius: .65rem; padding: .55rem .7rem; }
.admin-modern select, .admin-modern textarea { width: 100%; }
.admin-modern .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.admin-modern .lead, .admin-modern small { color: var(--muted); }
.admin-modern .form-status:empty { display: none; }
@media (max-width: 920px) { .account-grid, .admin-columns { grid-template-columns: minmax(0, 1fr); } }

.tb-free.tb-telegram { background: #162240; border-color: #365a86; }
.tb-telegram .tbf-ic { color: #8ad6ff; }
.cp-telegram { flex-wrap: wrap; justify-content: center; }
.cp-telegram .btn { white-space: normal; text-align: center; }
.cp-free-panel {
    display: grid; justify-items: center; gap: .72rem; width: min(100%, 32rem);
    padding: 1rem clamp(.8rem, 3vw, 1.5rem); text-align: center; border-radius: var(--r);
    color: var(--text); border: 1px solid #e973592f;
    background: radial-gradient(ellipse at 50% 0, #ff6b5719, transparent 68%), #111126;
    box-shadow: 0 .5rem 1.7rem #07061865;
}
.cp-free-copy { margin: 0; line-height: 1.55; font-size: .94rem; font-weight: 650; }
.cp-free-copy span, .cp-free-note { color: var(--muted); font-weight: 500; }
.cp-free-bot.btn {
    width: min(100%, 21rem); gap: .35rem; padding: .62rem .85rem; border: 1px solid #ff845f;
    background: #ff784713; color: #ffc3a6; white-space: normal; overflow-wrap: anywhere;
}
.cp-free-bot.btn:hover { background: #ff784728; color: #fff0e9; }
.cp-free-clock { display: grid; gap: .18rem; margin: 0; color: #ffbb9d; font-size: .86rem; }
.cp-free-clock time { font-size: 1.07rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.cp-free-note { margin: 0; font-size: .81rem; }
.cp-free-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem .8rem; font-size: .83rem; }
.cp-free-actions > a:hover { text-decoration: underline; }
.cp-hint a { color: var(--ice); }
.verify [hidden] { display: none; }

.language-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; min-width: 0; padding: 0; margin: 0 0 .65rem; border: 0; }
.language-picker legend { padding: 0; margin-bottom: .55rem; color: var(--text); font-weight: 800; }
.language-picker label { position: relative; cursor: pointer; }
.language-picker input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.language-picker span { display: flex; align-items: center; gap: .6rem; min-height: 2.7rem; padding: .4rem .55rem; border: 1px solid var(--line2); border-radius: .65rem; background: #15132f; font-weight: 750; }
.language-picker img { display: block; flex: none; border-radius: .15rem; object-fit: cover; }
.language-picker input:checked + span { border-color: #f56587; background: #39203d; }
.language-picker input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.account-language { max-width: 37rem; margin: 0 auto 1rem; }
.account-language fieldset { margin-bottom: 0; }
.foot-documents { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; padding: 1.2rem 0 0; margin-top: 1.1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.foot-documents a:hover { color: var(--text); text-decoration: underline; }
.foot-age { padding: .35rem .55rem; border: 1px solid #d45070; border-radius: .45rem; color: #fba7bc; font-weight: 850; }
.doc-page { max-width: 58rem; margin: 0 auto; }
.doc-page .doc { display: grid; gap: .8rem; line-height: 1.65; }
.doc-page .doc > div { display: grid; gap: .8rem; }
.doc-page a { color: var(--ice); text-decoration: underline; }
.subscription-base-price { color: var(--muted); font-size: .76rem; }
.subscription-order-id { overflow-wrap: anywhere; }
