/* Королевское желе */
:root { --jelly: #ffc83d; --jelly-2: #ff9f1c; --jelly-grad: linear-gradient(135deg, #fff1a6, #ffc83d 50%, #ff9f1c); }
.jelly-badge { display: inline-grid; place-items: center; flex: none; width: 17px; height: 17px; margin-left: 4px; border-radius: 50%; background: var(--jelly-grad); color: #3b1028; vertical-align: -3px; }
.jelly-badge .ico { width: 11px; height: 11px; }
.who .jelly-badge { margin-left: 0; }

/* Живые ники */
.fx-name { background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; -webkit-text-fill-color: transparent; animation: fx-shift 4s linear infinite; }
.fx-gold { background-image: linear-gradient(90deg, #ffb627, #fff1a8, #ff9d1c, #ffb627); }
.fx-aurora { background-image: linear-gradient(90deg, #2dd4a7, #6fd3f5, #c084fc, #2dd4a7); }
.fx-fire { background-image: linear-gradient(90deg, #ff4d2e, #ffb627, #ff6b3d, #ff4d2e); }
.fx-ice { background-image: linear-gradient(90deg, #a5f3fc, #ffffff, #7dd3fc, #a5f3fc); }
.fx-candy { background-image: linear-gradient(90deg, #ff7ab8, #ffd1e8, #c084fc, #ff7ab8); }
@keyframes fx-shift { to { background-position: -220% 0; } }
:root[data-motion="off"] .fx-name { animation: none; }

/* Баннеры профиля */
.card-banner { height: 92px; margin: -4px -20px 0; border-radius: 0; }
.banner-sunset { background: linear-gradient(120deg, #ff6b4a, #ffb627, #ff7ab8); } .banner-ocean { background: linear-gradient(120deg, #0ea5e9, #2dd4a7, #1e3a8a); }
.banner-aurora { background: linear-gradient(120deg, #2dd4a7, #6366f1, #c084fc); } .banner-honey { background: linear-gradient(120deg, #ffb627, #ff9d1c, #5a3a0a); }
.banner-night { background: radial-gradient(circle at 20% 30%, #fff8 1px, transparent 2px) 0 0 / 22px 22px, linear-gradient(120deg, #0b0e1a, #312e81); } .banner-candy { background: linear-gradient(120deg, #ff7ab8, #ffd1e8, #a5f3fc); }
.card-banner + .profile { margin-top: -46px; }
.flair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
.flair-grid button { display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 11px; border: 2px solid transparent; font-size: 12px; font-weight: 650; } .flair-grid button.active { border-color: var(--honey); } .flair-grid .sw { height: 34px; border-radius: 7px; }
.flair-grid .name-sw { height: 34px; display: grid; place-items: center; font-size: 15px; font-weight: 800; background: var(--panel-2); border-radius: 7px; }
.locked-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--jelly) 13%, transparent); font-size: 13px; } .locked-note button { margin-left: auto; }
.seg button.locked, .theme-grid button.locked { opacity: .55; } .theme-grid button .lock-ico { position: absolute; top: 9px; right: 9px; color: #fff; } .theme-grid button { position: relative; }

/* Эффекты */
.fx-layer { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.fx-layer span { position: absolute; top: -40px; animation: fx-fall linear forwards; will-change: transform; }
.fx-fire span, .fx-bees span { top: auto; bottom: -40px; animation-name: fx-rise; }
.fx-bees span { animation-name: fx-fly; }
@keyframes fx-fall { to { transform: translate(var(--drift), 112vh) rotate(540deg); opacity: .9; } }
@keyframes fx-rise { to { transform: translate(var(--drift), -112vh) scale(.6); opacity: 0; } }
@keyframes fx-fly { 25% { transform: translate(calc(var(--drift) * -1), -30vh); } 60% { transform: translate(var(--drift), -70vh); } to { transform: translate(calc(var(--drift) * 2), -115vh); } }
.burst { position: fixed; z-index: 95; width: 0; height: 0; pointer-events: none; } .burst span { position: absolute; left: -12px; top: -12px; font-size: 24px; animation: burst 1.1s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes burst { 0% { transform: translate(0, 0) scale(.4); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.2); opacity: 0; } }
.fx-replay { font-size: 12px; line-height: 1; padding: 0 1px; }
.effect-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 7px; } .effect-pick button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: var(--panel-2); font-weight: 650; font-size: 13px; } .effect-pick button span { font-size: 26px; } .effect-pick button:hover { background: var(--panel-3); }

/* Страница Желе */
.jelly-page { display: flex; flex-direction: column; gap: 12px; }
.jelly-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, #3a1530, #2a1a08 60%); color: #fff7ec; }
.jelly-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, #ffc83d55, transparent 65%); pointer-events: none; }
.jelly-hero h1 { margin: 0 0 4px; font-size: clamp(26px, 4vw, 38px); background: var(--jelly-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.jelly-hero p { margin: 0 0 10px; color: #f1dcc7; max-width: 520px; }
.jelly-orb { flex: none; width: 84px; height: 94px; display: grid; place-items: center; clip-path: var(--chip); background: var(--jelly-grad); color: #3b1028; animation: orb 3s ease-in-out infinite; } @keyframes orb { 50% { transform: translateY(-4px) rotate(-3deg); } }
:root[data-motion="off"] .jelly-orb { animation: none; }
.jelly-state { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: #ffffff1f; font-size: 13px; font-weight: 700; } .jelly-hero.on .jelly-state { background: #2dd4a733; color: #b8ffe9; }
.jelly-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.jelly-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--panel-2); min-width: 0; } .jelly-card h4 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.jelly-card .row .input { min-width: 0; flex: 1; }
.honey-balance { display: flex; align-items: baseline; gap: 8px; } .honey-balance span { font-size: 30px; } .honey-balance b { font-size: 40px; line-height: 1; letter-spacing: -.03em; } .honey-balance small { color: var(--muted); font-weight: 650; }
.earn { display: flex; flex-direction: column; gap: 4px; } .meter { height: 8px; border-radius: 8px; background: var(--panel-3); overflow: hidden; } .meter i { display: block; height: 100%; border-radius: 8px; background: var(--jelly-grad); transition: width .3s; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.perk { display: flex; gap: 11px; padding: 12px; border-radius: 14px; background: var(--panel-2); } .perk b { display: block; } .perk small { color: var(--muted); }
.perk-ico { flex: none; width: 36px; height: 40px; display: grid; place-items: center; clip-path: var(--chip); background: color-mix(in srgb, var(--jelly) 24%, var(--panel-3)); color: var(--jelly); }
.codes { display: flex; flex-direction: column; gap: 4px; } .code-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 9px; background: var(--panel); } .code-row code { font: 13px Consolas, monospace; } .code-row.used code { text-decoration: line-through; opacity: .5; }

/* Эксклюзивные темы */
:root[data-theme="royal"] { --bg:#140a14; --bg-2:#1d0f1c; --panel:#251325; --panel-2:#331b33; --panel-3:#462646; --line:#46284a; --text:#fff0f7; --muted:#d6a9c4; --faint:#a47b94; --honey:#ffb627; --honey-2:#ff9d1c; --on-honey:#2a1503; --own:#5a2350; --mint:#5eead4; color-scheme:dark; }
:root[data-theme="royal"] .main::before { opacity: .07; }
:root[data-theme="aurora"] { --bg:#06121a; --bg-2:#0a1b26; --panel:#0e2230; --panel-2:#153042; --panel-3:#1f4256; --line:#1f4054; --text:#e8fbff; --muted:#9cc8d6; --faint:#6f98a6; --honey:#5eead4; --honey-2:#2dd4bf; --on-honey:#03201b; --own:#174a5c; color-scheme:dark; }
:root[data-theme="aurora"] .main { background: linear-gradient(160deg, #0e2230, #142a3f 50%, #1d1d3f); }
:root[data-theme="neon"] { --bg:#07060d; --bg-2:#0d0b18; --panel:#121022; --panel-2:#1c1833; --panel-3:#2a2449; --line:#2c2650; --text:#f4f0ff; --muted:#b0a6dc; --faint:#7f76ac; --honey:#e879f9; --honey-2:#d946ef; --on-honey:#22072a; --own:#3b1a58; --mint:#22d3ee; color-scheme:dark; }
:root[data-theme="neon"] .bubble { box-shadow: 0 0 0 1px #e879f91c; } :root[data-theme="neon"] .msg.mine .bubble { box-shadow: 0 0 18px #e879f92e; }

@media (max-width: 820px) { .jelly-hero { flex-direction: column; align-items: flex-start; padding: 18px; } .jelly-orb { width: 64px; height: 72px; } .card-banner { margin: -4px -16px 0; } }
