:root {
  --bg: #0a0b0f; --dot: rgba(255, 255, 255, .07); --card: rgba(21, 23, 29, .86); --card2: rgba(28, 31, 39, .92); --line: rgba(255, 255, 255, .07);
  --text: #f2f3f5; --muted: #8a8f9c; --light: #e8eaef; --light2: #d8dbe2; --ink: #0d0f14; --inkmuted: #5d6270;
  --red: #ef4444; --green: #22c55e; --radius: 22px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 15px; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
.muted { color: var(--muted); } .small { font-size: 13px; }

#app {
  position: relative; z-index: 1; max-width: 620px; margin: 0 auto;
  padding: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px) + 12px) 14px calc(112px + env(safe-area-inset-bottom));
}

/* верхняя панель */
.topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--light); color: var(--ink); display: grid; place-items: center; flex: none; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.icon-btn.active { background: var(--light); color: var(--ink); }
.badge { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 1px 6px; line-height: 1.5; }

/* статистика */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.stat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat b { display: block; font-size: 18px; font-weight: 800; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat span { font-size: 12px; color: var(--muted); }
.ic.gray { background: #262a33; color: #c9ccd4; } .ic.amber { background: #3a2f0b; color: #fbbf24; }
.ic.red { background: #3b1518; color: #f87171; } .ic.green { background: #0f2f1c; color: #4ade80; } .ic.blue { background: #13233f; color: #60a5fa; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.card-h { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.card-h b { font-size: 16px; }
.card p { margin: 0 0 12px; line-height: 1.5; }
.page-h { margin: 2px 2px 14px; }
.page-h h1 { margin: 0; font-size: 24px; font-weight: 800; }
.page-h p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* светлая карточка подписки */
.subcard { background: var(--light); color: var(--ink); border-radius: 26px; padding: 16px; margin-bottom: 14px; position: relative; overflow: hidden; }
.subcard::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(0, 0, 0, .045); pointer-events: none; }
.warn { background: var(--light2); border-radius: 14px; padding: 10px 12px; font-size: 13px; font-weight: 700; margin-bottom: 14px; }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--light2); border-radius: 999px; padding: 6px 11px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.keyname { display: flex; align-items: center; gap: 8px; font-weight: 800; min-width: 0; }
.keyname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-btn { width: 30px; height: 30px; border-radius: 9px; border: 0; background: var(--light2); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.tariff-name { font-size: 28px; font-weight: 800; margin: 14px 0 4px; line-height: 1.15; }
.meta { color: var(--inkmuted); font-size: 13px; }
.bar { height: 6px; border-radius: 9px; background: rgba(0, 0, 0, .09); overflow: hidden; margin: 14px 0 6px; }
.bar i { display: block; height: 100%; border-radius: 9px; background: var(--red); transition: width .4s; }
.bar i.ok { background: var(--green); }
.bar.dark { background: rgba(255, 255, 255, .08); }
.bar.dark i { background: var(--light); }

.btn { border: 0; border-radius: 14px; padding: 13px 16px; font-weight: 700; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .08s, opacity .2s; text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ink { background: var(--ink); color: #fff; }
.btn.outline { background: transparent; color: var(--ink); border: 1px solid rgba(0, 0, 0, .15); }
.btn.light { background: var(--light); color: var(--ink); }
.btn.ghost { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
.btn.danger { background: rgba(239, 68, 68, .12); color: #f87171; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; }
.subcard .btn { position: relative; z-index: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.stack { display: grid; gap: 8px; margin-top: 14px; }

.traffic-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.traffic-row b { font-size: 18px; }
.dev { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dev:last-of-type { border-bottom: 0; }
.dev .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--card2); color: var(--muted); display: grid; place-items: center; flex: none; }
.dev .txt { flex: 1; min-width: 0; }
.dev b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev small { color: var(--muted); font-size: 12px; }
.row-end { display: flex; justify-content: flex-end; margin-top: 10px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card2); color: var(--muted); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 12px; cursor: pointer; }
.chip.active { background: var(--light); color: var(--ink); border-color: var(--light); }
.usage-nums { display: flex; gap: 28px; margin: 2px 0 14px; }
.usage-nums span { display: block; font-size: 12px; color: var(--muted); }
.usage-nums b { font-size: 18px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; }
.chart i { flex: 1; background: linear-gradient(180deg, #e8eaef, #6b7080); border-radius: 4px 4px 2px 2px; min-height: 3px; }
.chart-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.sub-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sub-switch .chip { white-space: nowrap; font-size: 13px; padding: 8px 14px; }

.tariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tariff { background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tariff .name { font-weight: 800; }
.tariff .price { font-size: 22px; font-weight: 800; }
.tariff .per { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.tariff .btn { margin-top: auto; }

.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list-item:last-child { border-bottom: 0; }
.list-item .l { min-width: 0; }
.list-item .l div { overflow: hidden; text-overflow: ellipsis; }
.plus { color: var(--green); font-weight: 800; white-space: nowrap; }
.minus { color: #f87171; font-weight: 800; white-space: nowrap; }
.input { width: 100%; min-width: 0; border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 14px; padding: 12px 14px; font: inherit; outline: none; }
.input:focus { border-color: rgba(255, 255, 255, .3); }
.form-row { display: flex; gap: 8px; }
.empty { text-align: center; padding: 22px 8px; color: var(--muted); }
.cta { background: linear-gradient(135deg, #e8eaef, #c3c8d2); color: var(--ink); border-radius: 24px; padding: 18px; margin-bottom: 14px; }
.cta h3 { margin: 0 0 4px; font-size: 19px; }
.cta p { margin: 0 0 14px; color: var(--inkmuted); font-size: 14px; }
.linkbox { display: flex; align-items: center; gap: 8px; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; margin: 10px 0; }
.linkbox span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 18px; background: var(--light); color: var(--ink); display: grid; place-items: center; font-size: 22px; font-weight: 800; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.big { font-size: 28px; font-weight: 800; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 16px; padding: 14px; font-weight: 700; cursor: pointer; margin-bottom: 8px; text-align: left; }
.method:active { transform: scale(.99); }
.notif { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif b { display: block; margin-bottom: 3px; }
.notif .when { color: var(--muted); font-size: 12px; margin-top: 4px; }
.notif.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 8px; vertical-align: middle; }

/* нижнее меню */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 20px); max-width: 600px;
  background: rgba(22, 24, 30, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line);
  border-radius: 26px; padding: 6px; display: flex; z-index: 40; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border-radius: 20px; font-size: 10.5px; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: none; position: relative; min-width: 0; }
.tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; font-size: 9.5px; letter-spacing: -.2px; }
@media (min-width: 400px) { .tabbar a span { font-size: 10.5px; letter-spacing: 0; } }
.tabbar a.active { background: var(--light); color: var(--ink); }
.tabbar .badge { top: 2px; right: 16%; }

/* модальные окна */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal-card { background: #15171d; border: 1px solid var(--line); width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 88vh; overflow: auto; animation: up .2s ease; }
.modal-card h3 { margin: 0 0 12px; font-size: 19px; }
.modal-card .btn.wide { margin-top: 8px; }
@media (min-width: 700px) { .modal { align-items: center; } .modal-card { border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); background: var(--light); color: var(--ink); padding: 11px 16px; border-radius: 14px; font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.toast.err { background: var(--red); color: #fff; }
.loader { display: grid; place-items: center; height: 60vh; }
.spinner { width: 32px; height: 32px; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--light); border-radius: 50%; animation: spin .8s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr { display: block; width: 100%; max-width: 280px; margin: 0 auto 10px; border-radius: 16px; background: #fff; padding: 10px; }

/* админка */
.adm-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.photo-box { position: relative; margin-bottom: 8px; }
.photo-box img { display: block; max-width: 100%; max-height: 220px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 8px; }
.upload-btn { cursor: pointer; }
.ap-item { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.ap-item:first-of-type { border-top: 0; }
.ap-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; float: right; margin-left: 10px; }
.ap-item .perm-chips { margin-top: 8px; clear: both; }
.tariff .price .old, .price .old { color: var(--muted); font-size: 15px; font-weight: 600; }
.disc { align-self: flex-start; background: rgba(239, 68, 68, .15); color: #f87171; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; }
.adm-tabs .chip { white-space: nowrap; font-size: 13px; padding: 8px 14px; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.fields .field:first-child { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: #e8eaef; flex: none; }
.check.disabled { opacity: .4; cursor: default; }
.multi { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
textarea.input { resize: vertical; min-height: 70px; line-height: 1.45; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a8f9c 50%), linear-gradient(135deg, #8a8f9c 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.input:disabled { opacity: .6; }
.role-badge { display: inline-block; background: rgba(96, 165, 250, .14); color: #93c5fd; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.perm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.perm-chips span { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); }
.status-pill { background: var(--card2); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800; }
.status-pill.on { background: rgba(34, 197, 94, .14); color: #4ade80; }
.ok-tag, .no-tag { font-style: normal; font-weight: 700; margin-left: 6px; }
.ok-tag { color: #4ade80; } .no-tag { color: var(--muted); }
.list-item.clickable { cursor: pointer; }
.list-item.clickable:active { opacity: .7; }
.modal-card h4 { margin: 18px 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 380px) { .fields, .multi { grid-template-columns: 1fr; } }

/* рулетка */
.wheel-card { margin-bottom: 14px; }
.wheel-stage { position: relative; width: min(360px, 88vw); aspect-ratio: 1; margin: 22px auto 16px; }
.wheel-halo { position: absolute; inset: -7%; border-radius: 50%; background: radial-gradient(circle, rgba(59, 130, 246, .38), rgba(99, 102, 241, .12) 55%, transparent 70%);
  animation: halo 4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes halo { from { transform: scale(.96); opacity: .7; } to { transform: scale(1.04); opacity: 1; } }
.wheel-rot { position: absolute; inset: 0; will-change: transform; filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .6)); }
.wheel-svg { width: 100%; height: 100%; display: block; }
.w-rim { fill: rgba(255, 255, 255, .92); font-weight: 800; letter-spacing: .06em; font-family: Manrope, system-ui, sans-serif; }
.w-ic { font-weight: 900; fill: #fff; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", Manrope, sans-serif; }
.w-line { stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }
.w-light { fill: #cfe6ff; animation: blink 1.4s ease-in-out infinite; }
.w-light.alt { animation-delay: .7s; }
@keyframes blink { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.wheel-pointer { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3; filter: drop-shadow(0 4px 10px rgba(59, 130, 246, .9)); }
.wheel-pointer i { display: block; width: 34px; height: 32px; background: linear-gradient(180deg, #8ccaff, #2b7fe0); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 23%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: 3; cursor: pointer;
  border: 3px solid rgba(170, 205, 255, .6); background: radial-gradient(circle at 35% 30%, #69adff, #1d4f9a 72%); color: #fff; font-weight: 900;
  font-size: clamp(12px, 3.6vw, 16px); letter-spacing: .04em; box-shadow: 0 0 0 6px rgba(8, 22, 48, .92), 0 8px 24px rgba(0, 0, 0, .55), inset 0 2px 8px rgba(255, 255, 255, .35);
  transition: transform .15s; }
.wheel-hub:active { transform: translate(-50%, -50%) scale(.93); }
.wheel-hub.free { animation: hubPulse 1.8s ease-in-out infinite; }
.wheel-hub[disabled] { opacity: .85; cursor: default; animation: none; }
@keyframes hubPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(8, 22, 48, .92), 0 0 0 6px rgba(105, 173, 255, .55); }
  50% { box-shadow: 0 0 0 6px rgba(8, 22, 48, .92), 0 0 0 20px rgba(105, 173, 255, 0); } }
.wheel-under { display: grid; gap: 8px; justify-items: center; max-width: 360px; margin: 0 auto; }
.pill-free { background: rgba(34, 197, 94, .15); color: #4ade80; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-size: 13px; }
.wheel-preview { width: min(300px, 80vw); margin: 4px auto; }
.prize-list { display: flex; flex-wrap: wrap; gap: 8px; }
.prize-list span { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.win { text-align: center; }
.win-emoji { font-size: 64px; line-height: 1.1; animation: pop .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.2) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* лента выигрышей */
.ticker-card { padding: 14px 0; overflow: hidden; }
.ticker-h { display: flex; align-items: center; gap: 10px; padding: 0 16px 12px; }
.ticker-h b { font-size: 16px; }
.tk-btn { margin-left: auto; width: 36px; height: 36px; font-size: 11px; letter-spacing: -1px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: live 1.6s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
.ticker { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee linear infinite; }
.ticker.paused .ticker-track { animation-play-state: paused; }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.win-card { display: flex; align-items: center; gap: 12px; min-width: 210px; margin-right: 10px; padding: 10px 16px 10px 10px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(30, 64, 120, .5), rgba(12, 22, 42, .85)); border: 1px solid rgba(120, 170, 255, .2); }
.win-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none;
  background: rgba(59, 130, 246, .18); border: 1px solid rgba(120, 170, 255, .28); }
.win-t b { display: block; font-size: 14px; white-space: nowrap; }
.win-t span { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* анимированный фон */
.bg-anim { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, #0f1c38 0%, rgba(10, 11, 15, 0) 60%), var(--bg); }
.bg-anim::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px;
  animation: dots 9s ease-in-out infinite alternate; }
@keyframes dots { from { opacity: .45; } to { opacity: 1; } }
.bg-anim i { position: absolute; border-radius: 50%; will-change: transform; }
.bg-anim .b1 { width: 70vmax; height: 70vmax; top: -30vmax; left: -25vmax; background: radial-gradient(circle, rgba(37, 99, 235, .32), transparent 62%);
  animation: float1 28s ease-in-out infinite alternate; }
.bg-anim .b2 { width: 65vmax; height: 65vmax; bottom: -30vmax; right: -25vmax; background: radial-gradient(circle, rgba(124, 58, 237, .28), transparent 62%);
  animation: float2 34s ease-in-out infinite alternate; }
.bg-anim .b3 { width: 45vmax; height: 45vmax; top: 35%; left: 30%; background: radial-gradient(circle, rgba(14, 165, 233, .16), transparent 62%);
  animation: float3 40s ease-in-out infinite alternate; }
@keyframes float1 { to { transform: translate3d(22vw, 18vh, 0) scale(1.15); } }
@keyframes float2 { to { transform: translate3d(-20vw, -22vh, 0) scale(1.1); } }
@keyframes float3 { 0% { transform: translate3d(-10vw, -8vh, 0); } 100% { transform: translate3d(12vw, 10vh, 0) scale(1.2); } }
.bg-anim .stars, .bg-anim .stars2 { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent; }
.bg-anim .stars { box-shadow: 8vw 12vh #fff, 22vw 5vh #cfe3ff, 37vw 18vh #fff, 55vw 9vh #fff, 71vw 21vh #cfe3ff, 88vw 7vh #fff, 13vw 34vh #fff, 46vw 41vh #cfe3ff,
  79vw 38vh #fff, 94vw 52vh #fff, 5vw 63vh #cfe3ff, 29vw 71vh #fff, 62vw 67vh #fff, 83vw 78vh #cfe3ff, 17vw 88vh #fff, 51vw 92vh #fff, 74vw 95vh #fff;
  animation: twinkle 3.5s ease-in-out infinite alternate; }
.bg-anim .stars2 { box-shadow: 3vw 27vh #fff, 31vw 29vh #fff, 64vw 31vh #cfe3ff, 91vw 24vh #fff, 41vw 58vh #fff, 69vw 55vh #cfe3ff, 11vw 79vh #fff, 38vw 83vh #cfe3ff,
  58vw 80vh #fff, 97vw 88vh #fff, 25vw 49vh #fff, 86vw 66vh #fff; animation: twinkle 5s ease-in-out 1.7s infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .75; } }
@media (prefers-reduced-motion: reduce) {
  .bg-anim i, .bg-anim::after, .bg-anim .stars, .bg-anim .stars2, .wheel-halo, .w-light, .ticker-track { animation: none !important; }
}
