:root {
  --bg: #0b0b0c;
  --tile: #161618;
  --tile-2: #1d1d20;
  --line: rgba(255, 255, 255, .08);
  --text: #ffffff;
  --muted: #8d8d93;
  --accent: #f26a0c;
  --accent-2: #ff8a2a;
  --accent-dark: #c94f00;
  --purple: #8b5cf6;
  --ok: #5fd37a;
  --radius: 18px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --head: Unbounded, Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 600;
  overflow-x: hidden; user-select: none;
}
img { -webkit-user-drag: none; }
#embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.45; }
.center { text-align: center; }

.app { position: relative; max-width: 520px; margin: 0 auto; padding: 14px 14px calc(100px + var(--safe-b)); }

/* ── шапка ── */
.top { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; }
.brand { display: flex; align-items: center; gap: 6px; font-family: var(--head); font-weight: 900; font-size: 20px; letter-spacing: -.01em; margin-right: auto; }
.brand-box {
  background: var(--accent); color: #fff; padding: 4px 8px 5px; border-radius: 8px;
  box-shadow: 0 0 22px rgba(242, 106, 12, .55);
}
.pill {
  display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--tile); border: 1px solid var(--line); font-family: var(--head); font-weight: 800; font-size: 13px;
}
.pill img { width: 24px; height: 24px; }
.avatar {
  width: 42px; height: 42px; border-radius: 12px; flex: none; border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 16px; color: #fff;
  background: var(--tile) center / cover no-repeat; padding: 0;
}
.avatar.big { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; margin-bottom: 10px; background-color: rgba(0, 0, 0, .22); border-color: rgba(255, 255, 255, .25); cursor: default; }

/* ── промо-карточки ── */
.promo {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px 20px; margin-bottom: 12px; min-height: 168px;
  display: flex; align-items: center; border: 1.5px solid rgba(255, 255, 255, .14); isolation: isolate;
}
.promo::before { /* световые лучи как на референсе */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    linear-gradient(115deg, transparent 52%, rgba(255, 255, 255, .14) 52.3%, transparent 62%),
    linear-gradient(115deg, transparent 66%, rgba(255, 255, 255, .10) 66.3%, transparent 80%);
}
.promo-orange { background: linear-gradient(160deg, #f68a1e 0%, #e9650a 45%, #c84d00 100%); border-color: #ffb25a; box-shadow: 0 10px 40px rgba(242, 106, 12, .25); }
.promo-purple { background: linear-gradient(160deg, #a17cfb 0%, #8b5cf6 50%, #6d3fe0 100%); border-color: #b9a0ff; box-shadow: 0 10px 40px rgba(139, 92, 246, .22); }
.promo-text { position: relative; z-index: 1; max-width: 62%; }
.promo h2 { font-family: var(--head); font-weight: 800; font-size: 19px; line-height: 1.2; margin: 0 0 8px; text-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.promo p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .88); }
.promo b { color: #fff; font-weight: 800; }
.promo-img {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(-6deg); width: 46%; max-width: 190px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); animation: float 4s ease-in-out infinite; z-index: 0;
}
@keyframes float { 50% { transform: translateY(calc(-50% - 8px)) rotate(-3deg); } }
.promo-sm { min-height: 120px; cursor: pointer; margin-top: 6px; }
.promo-sm .promo-img { width: 34%; }
.promo-arrow {
  display: inline-grid; place-items: center; width: 54px; height: 32px; margin-top: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .3); font-size: 18px;
}
.promo-hero { min-height: 190px; }
.profile-promo { min-height: 190px; }

/* ── баннеры с картинкой ── */
.banner {
  position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 1874 / 839; margin-bottom: 12px;
  background: #1a1030 center / 104% auto no-repeat; /* 104% — прячем тёмные уголки картинки */
  display: flex; align-items: center; isolation: isolate;
}
.banner::before { /* затемнение слева под текст */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .38), rgba(0, 0, 0, .12) 45%, transparent 62%);
}
.banner-text { max-width: 54%; padding: 0 0 0 18px; }
.banner h2 { font-family: var(--head); font-weight: 800; font-size: clamp(15px, 4.6vw, 21px); line-height: 1.15; margin: 0 0 6px; text-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.banner p { margin: 0; font-size: clamp(11px, 3.2vw, 13px); line-height: 1.4; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.banner b { color: #fff; font-weight: 800; }
.banner .promo-arrow { width: 44px; height: 26px; margin-top: 8px; border-radius: 10px; font-size: 15px; }
.banner .week-bar { margin-top: 8px; height: 6px; }
.banner .week-count { margin-top: 4px; }

/* ── слайдер ── */
.slider { position: relative; margin-bottom: 4px; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; cursor: pointer; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots i { width: 7px; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .22); cursor: pointer; transition: width .25s, background .25s; }
.dots i.on { width: 22px; background: var(--accent); }

.section-title { font-family: var(--head); font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; margin: 22px 2px 12px; }

.tile { background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }

/* ── кнопки ── */
.btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 800; color: #fff; border-radius: 14px;
  transition: transform .12s ease, filter .2s, opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-main { background: var(--accent); box-shadow: 0 6px 22px rgba(242, 106, 12, .35); }
.btn-main:hover { background: var(--accent-2); }
.btn-ghost { background: var(--tile-2); border: 1px solid var(--line); }
.btn-ok { background: rgba(95, 211, 122, .12); color: var(--ok); border: 1px solid rgba(95, 211, 122, .3); }
.btn-big { width: 100%; padding: 17px; font-size: 15px; font-family: var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 6px 0 12px; }
.btn-sm { padding: 10px 14px; font-size: 13px; border-radius: 12px; white-space: nowrap; }

/* ── колесо ── */
.wheel-wrap { position: relative; width: min(84vw, 340px); aspect-ratio: 1; margin: 18px auto 22px; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%; will-change: transform;
  box-shadow: 0 0 0 6px #1a1a1c, 0 0 0 8px var(--accent), 0 20px 50px rgba(0, 0, 0, .6), 0 0 50px rgba(242, 106, 12, .25);
}
.wheel canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
.pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 3; width: 30px; height: 40px;
  background: var(--accent); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6));
}
.hub {
  position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2;
  border-radius: 50%; display: grid; place-items: center; background: var(--accent);
  box-shadow: 0 0 0 5px #1a1a1c, 0 0 24px rgba(242, 106, 12, .7);
  font-family: var(--head); font-weight: 900; color: #fff; font-size: clamp(14px, 4.4vw, 20px);
}
.cooldown { text-align: center; margin: 6px 0 14px; padding: 14px; background: var(--tile); border: 1px solid var(--line); border-radius: var(--radius); }
.cooldown-label { color: var(--muted); font-size: 13px; }
.cooldown-time { font-family: var(--head); font-weight: 800; font-size: 28px; margin-top: 4px; letter-spacing: .04em; color: var(--accent-2); }

/* ── задания ── */
.week-bar { height: 8px; border-radius: 8px; background: rgba(0, 0, 0, .25); margin-top: 14px; overflow: hidden; }
.week-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: 8px; transition: width .5s; }
.week-count { font-size: 12px; margin-top: 6px; color: rgba(255, 255, 255, .85); }

.task { display: flex; gap: 12px; align-items: center; }
.task.claimed { opacity: .5; }
.task-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--tile-2); border: 1px solid var(--line); }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 800; font-size: 14.5px; }
.task-desc { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.task-reward { color: var(--accent-2); font-weight: 800; font-size: 13px; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.tk { width: 18px; height: 18px; vertical-align: -4px; margin-right: 4px; }
.task-reward .tk { margin-right: -4px; }
.bar { flex: 1; height: 6px; border-radius: 6px; background: var(--tile-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.bar-num { color: var(--muted); font-size: 11.5px; }

/* ── профиль ── */
.badge-priv { display: inline-block; padding: 6px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 800; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .25); }
.profile-promo h2 { word-break: break-all; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats .tile { margin: 0; text-align: center; }
.stats b { display: block; font-family: var(--head); font-size: 20px; color: var(--accent-2); }
.stats span { color: var(--muted); font-size: 11.5px; }
.ip-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ip { font-family: var(--head); font-weight: 800; font-size: 15px; margin-top: 2px; word-break: break-all; }
.hl { color: var(--accent-2); font-weight: 800; }
.ref-row { display: flex; gap: 8px; margin-top: 12px; }
.ref-row .btn { flex: none; }
.input {
  width: 100%; min-width: 0; padding: 15px; border-radius: 14px; font: inherit; font-size: 15px; color: var(--text);
  background: var(--tile); border: 1px solid var(--line); outline: none; user-select: text;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(242, 106, 12, .2); }
.history { padding: 4px 14px; }
.history .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.history .row:last-child { border: 0; }
.history .amt { color: var(--accent-2); font-weight: 800; white-space: nowrap; }
.history .when { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.history .st { font-size: 11px; color: var(--muted); }
.history .empty { padding: 12px 0; }
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.links a {
  text-decoration: none; color: var(--text); font-size: 13px; font-weight: 800; text-align: center; padding: 13px 8px;
  border-radius: 14px; background: var(--tile); border: 1px solid var(--line);
}
.links a:active { background: var(--tile-2); }

/* ── навигация ── */
.tabs {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + var(--safe-b)); z-index: 5;
  width: min(calc(100% - 24px), 496px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px;
  background: rgba(16, 16, 18, .92); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}
.tab {
  position: relative; border: 1px solid transparent; background: none; color: var(--muted); font: inherit; font-family: var(--head);
  font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 9px 4px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: background .2s, color .2s;
}
.tab img { width: 24px; height: 24px; filter: grayscale(1) brightness(.8); transition: filter .2s; }
.tab.active { color: #fff; background: var(--accent); border-color: rgba(255, 255, 255, .15); box-shadow: 0 4px 16px rgba(242, 106, 12, .4); }
.tab.active img { filter: none; }
.dot { position: absolute; top: 5px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px #ff3b30; }

.support {
  position: fixed; right: max(14px, calc(50% - 246px)); bottom: calc(86px + var(--safe-b)); z-index: 6;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 8px 24px rgba(242, 106, 12, .5);
}
.support:active { transform: scale(.94); }

/* ── приветствие ── */
.welcome { position: fixed; inset: 0; z-index: 20; overflow-y: auto; background: var(--bg); }
.welcome-inner { max-width: 520px; margin: 0 auto; padding: 14px 14px 30px; }
.gift { display: grid; gap: 0; }
.gift-item { display: flex; align-items: center; gap: 14px; }
.gift-item img { width: 58px; height: 58px; flex: none; padding: 6px; border-radius: 14px; background: var(--tile-2); }
.gift-title { font-family: var(--head); font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.field-err { color: #ff6b5c; font-size: 13px; min-height: 18px; margin: 6px 4px 2px; }

/* ── модалка ── */
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box {
  width: min(100%, 360px); text-align: center; padding: 22px 20px 10px; border-radius: 24px;
  background: var(--tile); border: 1.5px solid rgba(242, 106, 12, .5); box-shadow: 0 0 80px rgba(242, 106, 12, .25);
}
.modal-img { width: 130px; height: 130px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .5)); }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.modal-title { font-family: var(--head); font-weight: 800; font-size: 18px; margin-top: 4px; }
.modal-amount { font-family: var(--head); font-weight: 900; font-size: 34px; margin: 8px 0 6px; color: var(--accent-2); text-shadow: 0 0 24px rgba(242, 106, 12, .6); }
.modal .muted { font-size: 13.5px; margin-bottom: 14px; }

.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 40;
  padding: 12px 18px; border-radius: 14px; font-size: 14px; max-width: calc(100% - 32px);
  background: var(--tile-2); border: 1px solid rgba(242, 106, 12, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: fadeIn .25s;
}
.toast.err { border-color: rgba(255, 80, 70, .7); }
.demo-badge {
  position: fixed; left: 10px; bottom: calc(86px + var(--safe-b)); z-index: 6; font-size: 10px; letter-spacing: .1em;
  padding: 4px 8px; border-radius: 8px; background: rgba(242, 106, 12, .15); color: var(--accent-2); border: 1px solid rgba(242, 106, 12, .4);
}

.page { display: none; animation: pageIn .3s ease; }
.page.active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } }

/* ── иконки заданий ── */
.task-ico img { width: 38px; height: 38px; }

/* ── Все кейсы ── */
.plat {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .35);
}
.plat.img { background: none; box-shadow: none; }
.plat.img img { width: 52px; height: 52px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.links a { display: flex; align-items: center; justify-content: center; gap: 8px; }
.links a img { width: 22px; height: 22px; }
.task-body[data-cact] { cursor: pointer; }
.btn.wait { font-variant-numeric: tabular-nums; min-width: 74px; color: var(--muted); }
.live-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 16px; margin: 4px 0 10px;
  background: linear-gradient(150deg, #ff2d55 0%, #c5122f 55%, #7a0a1f 100%); border: 1.5px solid #ff7a90;
  box-shadow: 0 10px 34px rgba(255, 45, 85, .3);
}
.live-card.ended { background: var(--tile); border-color: var(--line); box-shadow: none; }
.live-head { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: livePulse 1.4s infinite; }
.ended .live-dot { background: var(--muted); animation: none; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.live-title { font-family: var(--head); font-weight: 800; font-size: 18px; margin: 8px 0 4px; }
.live-sub { font-size: 12.5px; color: rgba(255, 255, 255, .88); line-height: 1.4; margin-bottom: 12px; }
.ended .live-sub { color: var(--muted); margin-bottom: 0; }
.btn-live { background: #fff; color: #c5122f; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.live-card .btn-live { width: 100%; padding: 12px; }
.media-head { display: flex; align-items: center; gap: 12px; padding: 4px 2px 10px; cursor: pointer; }
.media-head.flat { cursor: default; padding: 0 0 10px; }
.media-head b { display: block; font-size: 14.5px; }
.media-head span { color: var(--muted); font-size: 12px; }

/* ── вкладки (до 5 штук) ── */
.tabs { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; padding: 5px; }
.tab { flex-direction: column; gap: 3px; padding: 7px 2px 6px; font-size: 9.5px; letter-spacing: .01em; }
.tab img, .tab svg { width: 26px; height: 26px; }
.tab svg { color: var(--muted); }
.tab.active svg { color: #fff; }
.support { bottom: calc(92px + var(--safe-b)); }

/* ── админка ── */
.admin-head { margin-top: 4px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 14px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--tile); color: var(--muted); font: inherit; font-size: 12.5px;
  font-weight: 800; padding: 9px 14px; border-radius: 12px; cursor: pointer;
}
.chip.active { background: var(--accent); color: #fff; border-color: rgba(255, 255, 255, .15); }
.status-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill-st { font-size: 11.5px; font-weight: 800; padding: 6px 10px; border-radius: 10px; background: var(--tile); border: 1px solid var(--line); color: var(--muted); }
.pill-st.ok { color: var(--ok); border-color: rgba(95, 211, 122, .35); }
.pill-st.bad { color: #ff8a7a; border-color: rgba(255, 110, 90, .35); }
.pill-st.live { color: #fff; background: #d81b3c; border-color: #ff7a90; }
.grid-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid-stats .tile { margin: 0; padding: 12px; }
.grid-stats b { display: block; font-family: var(--head); font-size: 18px; color: var(--accent-2); }
.grid-stats span { color: var(--muted); font-size: 11.5px; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 0; }
.bar-col i { width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent-dark)); }
.bar-col i.alt { background: linear-gradient(180deg, #a17cfb, #6d3fe0); }
.bar-col b { font-size: 10.5px; color: #fff; }
.bar-col span { font-size: 9.5px; color: var(--muted); }
.hint-box { font-size: 12.5px; line-height: 1.45; color: var(--muted); padding: 12px 14px; border-radius: 14px; border: 1px dashed rgba(242, 106, 12, .35); margin-bottom: 10px; }
.hint-box b { color: var(--text); }
.aform { display: grid; gap: 10px; }
.aform .card-title { font-family: var(--head); font-size: 14px; margin: 0; }
.fld { display: grid; gap: 5px; min-width: 0; }
.fld > span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.fld .input { padding: 11px 12px; font-size: 14px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fld-row.three { grid-template-columns: repeat(3, 1fr); }
.fld-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
textarea.input { resize: vertical; min-height: 110px; line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); margin: 0; }
.form-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.aform .btn-big { margin: 2px 0 0; }
.btn-xs { padding: 7px 10px; font-size: 12px; border-radius: 10px; white-space: nowrap; }
.col-btns { display: grid; gap: 6px; }
.mini-tasks { display: grid; gap: 6px; margin-bottom: 10px; }
.mini-tasks div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 8px 10px; border-radius: 10px; background: var(--tile-2); }
.mini-tasks b { color: var(--accent-2); white-space: nowrap; }
.search-row, .give-row { display: flex; gap: 8px; margin-bottom: 10px; }
.give-row { margin: 10px 0 0; }
.give-row .input, .search-row .input { padding: 11px 12px; font-size: 14px; }
.give-row .input[name="amount"] { width: 96px; flex: none; }
.user-head { margin-bottom: 10px; }
.user-head b { display: block; font-family: var(--head); font-size: 16px; }
.user-head span { color: var(--muted); font-size: 12px; }

/* ── ежедневная награда ── */
.daily-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.daily-head b { display: block; font-family: var(--head); font-size: 14px; }
.daily-head span { color: var(--muted); font-size: 11.5px; }
.daily-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.dd {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px;
  border-radius: 12px; background: var(--tile-2); border: 1px solid var(--line);
}
.dd span { font-size: 9.5px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.dd img { width: 30px; height: 30px; }
.dd b { font-family: var(--head); font-size: 12px; }
.dd.big { grid-column: span 2; background: linear-gradient(150deg, rgba(242, 106, 12, .25), rgba(242, 106, 12, .05)); border-color: rgba(242, 106, 12, .4); }
.dd.big img { width: 38px; height: 38px; }
.dd.got { opacity: .55; }
.dd.got i { position: absolute; top: 4px; right: 6px; font-style: normal; color: var(--ok); font-weight: 900; font-size: 12px; }
.dd.now { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(242, 106, 12, .35), 0 0 18px rgba(242, 106, 12, .35); opacity: 1; }
.daily .btn-big { margin: 12px 0 0; }
.daily-next { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.daily-next b { color: var(--accent-2); font-family: var(--head); font-variant-numeric: tabular-nums; }

/* ── уровень ── */
.lvl { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .2); }
.lvl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 12px; }
.lvl-top b { font-family: var(--head); font-size: 13px; }
.lvl-bar { height: 7px; border-radius: 7px; background: rgba(0, 0, 0, .3); margin: 7px 0 5px; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; background: #fff; border-radius: 7px; transition: width .5s; }
.lvl-bonus { font-size: 11px; color: rgba(255, 255, 255, .85); }
.profile-promo .promo-text { max-width: 64%; }

/* ── достижения ── */
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ach { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; }
.ach img { width: 40px; height: 40px; margin-bottom: 2px; filter: grayscale(.85) brightness(.75); }
.ach.ready img, .ach.got img { filter: none; }
.ach b { font-size: 13px; }
.ach span { font-size: 11px; color: var(--muted); line-height: 1.35; flex: 1; }
.ach .bar { width: 100%; flex: none; margin: 4px 0; }
.ach em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 800; }
.ach em.ok { color: var(--ok); }
.ach.ready { border-color: rgba(242, 106, 12, .55); box-shadow: 0 0 22px rgba(242, 106, 12, .18); }
.ach.got { opacity: .65; }

/* ── топ ── */
.chips.tight { margin-bottom: 8px; }
.top-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.top-prizes div { text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--tile-2); font-size: 18px; }
.top-prizes b { display: block; font-size: 11.5px; color: var(--accent-2); margin-top: 2px; }
.top-list { margin-top: 8px; }
.top-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 9px 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.top-row:last-child { border: 0; }
.top-row .pl { text-align: center; font-weight: 900; color: var(--muted); }
.top-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-row em { font-style: normal; font-weight: 800; color: var(--accent-2); white-space: nowrap; }
.top-row.me { background: rgba(242, 106, 12, .12); border-radius: 10px; border-color: transparent; }
.top-row.out { margin-top: 6px; }

/* ── промокод ── */
.promo-code .card-title { font-family: var(--head); font-size: 14px; }
.promo-code .input { text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.promo-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.promo-row .code { display: block; font-family: var(--head); font-size: 15px; letter-spacing: .04em; cursor: pointer; }
.promo-row span { font-size: 11.5px; color: var(--muted); }
.promo-row.off { opacity: .5; }

/* ── настройки ── */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.switch { appearance: none; -webkit-appearance: none; width: 48px; height: 28px; flex: none; border-radius: 28px; background: var(--tile-2); border: 1px solid var(--line); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: 12px; cursor: pointer;
  background: var(--tile-2); border: 1.5px solid var(--line); color: var(--muted); font: inherit; font-weight: 800; font-size: 13.5px;
}
.seg-btn img { width: 26px; height: 26px; }
.seg-btn.active { color: #fff; border-color: var(--accent); background: rgba(242, 106, 12, .14); }
/* ── донат ── */
.donate-btn {
  flex: none; border: 0; padding: 0; background: none; cursor: pointer; line-height: 0;
  filter: drop-shadow(0 4px 12px rgba(139, 92, 246, .5)); transition: transform .12s;
}
.donate-btn img { display: block; height: 34px; width: auto; }
.donate-btn:active { transform: scale(.94); }
.donate-card .donate-btn img { width: auto; height: 36px; filter: none; }
.donate-card {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; cursor: pointer;
  background: linear-gradient(135deg, rgba(139, 92, 246, .28), rgba(109, 63, 224, .1)); border-color: rgba(161, 124, 251, .45);
}
.donate-card img { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.donate-card div { flex: 1; min-width: 0; }
.donate-card b { display: block; font-family: var(--head); font-size: 15px; }
.donate-card span { font-size: 12px; color: #cfc6e8; }
@media (max-width: 440px) {
  .top { gap: 8px; }
  .app .top .avatar { display: none; }  /* профиль доступен из нижнего меню */
  .brand { font-size: 16px; gap: 5px; }
  .brand-box { padding: 4px 7px 5px; border-radius: 7px; }
  .top .donate-btn img { height: 30px; }
  .pill { font-size: 12px; padding: 4px 10px 4px 5px; }
  .pill img { width: 22px; height: 22px; }
}
.btn-danger { background: rgba(255, 70, 70, .14); color: #ff8a7a; border: 1px solid rgba(255, 90, 80, .35); }
.ban-btn { margin-bottom: 10px; }
.ban-badge { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: #d81b3c; color: #fff; vertical-align: 2px; }
#onlineHint { margin-top: 10px; }

/* ════════════════ «Живой» интерфейс: анимации ════════════════ */

/* ── живой фон: свечение + пиксельные частицы (canvas #bgfx) ── */
#bgfx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.bg-glow {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(38% 28% at 18% 22%, rgba(242, 106, 12, .16), transparent 70%),
    radial-gradient(34% 26% at 84% 68%, rgba(139, 92, 246, .14), transparent 70%);
  animation: glowDrift 18s ease-in-out infinite alternate;
}
@keyframes glowDrift { to { transform: translate(6%, -5%) scale(1.1); } }
.app { z-index: 1; }
.welcome { background: radial-gradient(60% 40% at 50% 0%, rgba(242, 106, 12, .14), transparent 70%), var(--bg); }

/* ── заставка при открытии ── */
.intro {
  position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(50% 40% at 50% 45%, rgba(242, 106, 12, .18), transparent 70%), var(--bg);
  transition: opacity .45s ease, visibility .45s;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro-logo { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 900; font-size: 34px; }
.intro-logo .brand-box { padding: 6px 12px 8px; border-radius: 11px; animation: introBox .7s cubic-bezier(.2, 1.5, .4, 1) both, boxGlow 2s 1s ease-in-out infinite; }
.intro-logo .brand-txt { animation: introTxt .6s .25s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes introBox { from { transform: scale(.2) rotate(-14deg); opacity: 0; } }
@keyframes introTxt { from { transform: translateX(34px); opacity: 0; } }
.intro-sub { color: var(--muted); font-size: 13px; animation: fadeUp .5s .45s both; }
.intro-bar { width: 140px; height: 4px; border-radius: 4px; background: var(--tile-2); overflow: hidden; animation: fadeUp .4s .5s both; }
.intro-bar i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 4px; animation: introLoad 1s ease-in-out infinite; }
@keyframes introLoad { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes boxGlow { 50% { box-shadow: 0 0 34px rgba(242, 106, 12, .9), 0 0 4px rgba(255, 200, 140, .9); } }
.app > .top .brand-box { animation: boxGlow 3.2s ease-in-out infinite; }
.app > .top.drop { animation: dropIn .55s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-16px); } }

/* ── карточки появляются по очереди ── */
.stagger > * { animation: riseIn .5s cubic-bezier(.2, .9, .3, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* ── плавная смена вкладок ── */
.page { animation: pageIn .38s cubic-bezier(.2, .9, .3, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateX(var(--dx, 0px)); } }
.tab.active img, .tab.active svg { animation: tabPop .5s cubic-bezier(.2, 1.7, .4, 1); }
@keyframes tabPop { 30% { transform: translateY(-6px) scale(1.18); } }
.tab:active, .chip:active, .seg-btn:active { transform: scale(.94); }
.tab, .chip { transition: background .2s, color .2s, transform .12s; }

/* ── «дышащие» предметы ── */
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes bobRot { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes glint {
  0%, 84%, 100% { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .35)) brightness(1); }
  91% { filter: drop-shadow(0 0 12px rgba(255, 205, 140, .85)) brightness(1.35); }
}
@keyframes coinSpin { 0%, 80% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
.gift-item img { animation: bobRot 3.2s ease-in-out infinite; }
.gift-item:nth-child(2) img { animation-delay: -1.6s; }
.dd.now img { animation: bob 1.3s ease-in-out infinite; }
.dd.big img { animation: bobRot 2.8s ease-in-out infinite, glint 4s infinite; }
.task-ico img, .plat.img img { animation: glint 6s infinite; }
.tile:nth-child(2n) .plat.img img, .tile:nth-child(2n) .task-ico img { animation-delay: -2s; }
.tile:nth-child(3n) .plat.img img, .tile:nth-child(3n) .task-ico img { animation-delay: -4s; }
.ach.ready img { animation: bob 1.6s ease-in-out infinite, glint 3s infinite; }
.donate-card > img { animation: bobRot 3.6s ease-in-out infinite; }
.pill img { animation: coinSpin 7s ease-in-out infinite; }
.modal-img { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1), bob 2.4s .5s ease-in-out infinite; }
.media-head .plat.img img { animation: bob 2.6s ease-in-out infinite; }

/* баннеры: медленный наезд и блик */
.banner { animation: kenBurns 16s ease-in-out infinite alternate; }
@keyframes kenBurns { to { background-size: 112% auto; background-position: 60% 45%; } }
.banner-text { position: relative; z-index: 1; }
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-110%);
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .16) 50%, transparent 62%);
  animation: sweep 7s ease-in-out infinite;
}
.slide:nth-child(2)::after { animation-delay: -1.7s; }
.slide:nth-child(3)::after { animation-delay: -3.4s; }
@keyframes sweep { 0%, 72% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }

/* ── счётчик Токенов ── */
.pill { transition: transform .2s; }
.pill.bump { animation: pillBump .55s cubic-bezier(.2, 1.6, .4, 1); border-color: rgba(95, 211, 122, .6); }
.pill.bump img { animation: coinJump .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pillBump { 40% { transform: scale(1.12); } }
@keyframes coinJump { 40% { transform: translateY(-7px) rotate(-14deg) scale(1.2); } }
#balance, .stats b { font-variant-numeric: tabular-nums; }

/* ── кнопки «продавливаются», по главным пробегает блик ── */
.btn-main { position: relative; overflow: hidden; box-shadow: 0 4px 0 var(--accent-dark), 0 8px 22px rgba(242, 106, 12, .32); }
.btn-main:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark), 0 3px 10px rgba(242, 106, 12, .3); }
.btn-ghost:active:not(:disabled) { transform: translateY(2px) scale(.98); }
.btn-big.btn-main::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg);
  animation: btnShine 3.4s ease-in-out infinite;
}
.btn:disabled::after { display: none; }
@keyframes btnShine { 0%, 62% { left: -60%; } 100% { left: 135%; } }
.support { animation: supportBob 3s ease-in-out infinite; }
@keyframes supportBob { 50% { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(242, 106, 12, .6); } }

/* готово к получению — пульсирует */
@keyframes readyPulse {
  0%, 100% { box-shadow: 0 4px 0 var(--accent-dark), 0 0 0 0 rgba(242, 106, 12, .6); }
  60% { box-shadow: 0 4px 0 var(--accent-dark), 0 0 0 9px rgba(242, 106, 12, 0); }
}
.btn-main[data-act="claim"], .btn-main[data-cact="claim"], .btn-main[data-ach], #dailyBtn, #claimBtn { animation: readyPulse 1.6s infinite; }
.dd.now { animation: ddGlow 1.6s ease-in-out infinite; }
@keyframes ddGlow { 50% { box-shadow: 0 0 0 2px rgba(242, 106, 12, .55), 0 0 26px rgba(242, 106, 12, .55); } }
.ach.ready { animation: ddGlow 2s ease-in-out infinite; }

/* ── скелетоны пока грузится ── */
.sk { position: relative; overflow: hidden; background: var(--tile-2); border-radius: 9px; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: skMove 1.2s infinite;
}
@keyframes skMove { to { transform: translateX(100%); } }
.sk-line { height: 11px; margin: 7px 0; width: 70%; }
.sk-line.w40 { width: 40%; } .sk-line.w60 { width: 60%; } .sk-line.w90 { width: 90%; }
.sk-ico { width: 48px; height: 48px; border-radius: 14px; flex: none; }
.sk-btn { width: 76px; height: 36px; border-radius: 12px; flex: none; }
.sk-dd { height: 74px; border-radius: 12px; }
.sk-dd.big { grid-column: span 2; }
.sk-num { display: inline-block; width: 40px; height: 13px; vertical-align: -2px; border-radius: 6px; }
.sk-card { height: 120px; border-radius: var(--radius); margin-bottom: 10px; }

/* ── прогресс-бары заполняются и переливаются ── */
.bar i, .week-bar i, .lvl-bar i { position: relative; overflow: hidden; }
.bar i { background: linear-gradient(90deg, var(--accent-dark), var(--accent-2)); animation: barIn 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes barIn { from { width: 0; } }
.bar i::after, .week-bar i::after, .lvl-bar i::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent); animation: barShine 2.6s ease-in-out infinite;
}
@keyframes barShine { 0%, 40% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.lvl-bar i, .week-bar i { transition: width 1s cubic-bezier(.2, .8, .2, 1); }

/* ── колесо ── */
.pointer { transform-origin: 50% 0; }
.pointer.flick { animation: flick .14s ease-out; }
@keyframes flick { 45% { transform: translateX(-50%) rotate(-22deg); } }
.hub { animation: hubPulse 2.4s ease-in-out infinite; }
@keyframes hubPulse { 50% { box-shadow: 0 0 0 5px #1a1a1c, 0 0 38px rgba(242, 106, 12, 1); } }
.wheel-wrap.spinning .hub { animation-duration: .5s; }
.wheel-wrap.win .wheel { animation: winGlow .7s ease-in-out 4; }
@keyframes winGlow { 50% { box-shadow: 0 0 0 6px #1a1a1c, 0 0 0 8px #ffd08a, 0 20px 50px rgba(0, 0, 0, .6), 0 0 90px rgba(255, 170, 60, .8); } }
.flash { position: fixed; inset: 0; z-index: 55; pointer-events: none; background: radial-gradient(circle at 50% 45%, rgba(255, 214, 150, .8), rgba(242, 106, 12, .25) 45%, transparent 75%); animation: flash .9s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ── LIVE ── */
.live-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 6px;
  background: #fff; color: #e0123a; font-family: var(--head); font-size: 10px; font-weight: 900; letter-spacing: .08em;
}
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff2d55; animation: liveBlink 1.1s ease-in-out infinite; }
@keyframes liveBlink { 50% { opacity: .2; transform: scale(.7); } }
.live-card:not(.ended) { animation: liveCard 2.4s ease-in-out infinite; }
@keyframes liveCard { 50% { box-shadow: 0 10px 46px rgba(255, 45, 85, .6), 0 0 0 1px rgba(255, 160, 180, .6); } }
.tab-live {
  position: absolute; top: 1px; right: 2px; padding: 1px 4px; border-radius: 4px; background: #ff2d55; color: #fff;
  font-style: normal; font-size: 7.5px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 0 10px rgba(255, 45, 85, .8);
  animation: liveBlink 1.4s ease-in-out infinite;
}
.live-strip {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin: 10px 0 0; border-radius: 16px; cursor: pointer;
  background: linear-gradient(135deg, #ff2d55, #a40f2a); border: 1px solid #ff7a90; animation: liveCard 2.4s ease-in-out infinite;
}
.live-strip b { flex: 1; font-size: 13px; }
.live-strip span:last-child { font-size: 18px; }

/* ── лента «Сейчас выигрывают» ── */
.feed { margin: 12px 0 0; padding: 10px 12px 6px; }
.feed-head { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: liveBlink 1.6s ease-in-out infinite; }
.feed-track { height: 138px; overflow: hidden; }
.feed-track.slide { animation: feedSlide .55s cubic-bezier(.2, .9, .3, 1); }
@keyframes feedSlide { from { transform: translateY(-46px); } }
.feed-row { display: flex; align-items: center; gap: 10px; height: 46px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.feed-row:last-child { border: 0; }
.feed-row img { width: 30px; height: 30px; flex: none; }
.feed-row div { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #d9d9de; }
.feed-row div b { color: #fff; }
.feed-row div span { display: block; font-size: 10.5px; color: var(--muted); }
.feed-row em { font-style: normal; font-family: var(--head); font-weight: 800; font-size: 12.5px; color: var(--ok); white-space: nowrap; }
.feed-row.in { animation: feedIn .6s ease; }
.feed-row.in em { animation: pillBump .6s .2s cubic-bezier(.2, 1.6, .4, 1); display: inline-block; }
@keyframes feedIn { from { opacity: 0; background: rgba(95, 211, 122, .18); } 50% { background: rgba(95, 211, 122, .1); } }
.feed-row.big em { color: #ffd08a; text-shadow: 0 0 12px rgba(255, 170, 60, .7); }

/* ── розыгрыш недели ── */
.raffle { background: linear-gradient(150deg, rgba(139, 92, 246, .2), rgba(242, 106, 12, .08)); border-color: rgba(161, 124, 251, .35); }
.raffle-top { display: flex; align-items: center; gap: 12px; }
.raffle-tk {
  position: relative; flex: none; width: 74px; padding: 8px 4px 6px; border-radius: 14px; text-align: center;
  background: var(--tile-2); border: 1px solid var(--line);
}
.raffle-tk.on { border-color: rgba(161, 124, 251, .7); box-shadow: 0 0 18px rgba(139, 92, 246, .35); }
.raffle-tk i { position: absolute; top: -10px; right: -8px; font-style: normal; font-size: 22px; animation: bobRot 3s ease-in-out infinite; }
.raffle-tk b { display: block; font-family: var(--head); font-size: 24px; line-height: 1.1; }
.raffle-tk span { font-size: 10.5px; color: var(--muted); }
.raffle-info b { display: block; font-family: var(--head); font-size: 14px; line-height: 1.3; }
.raffle-info span { font-size: 11.5px; color: var(--muted); }
.raffle-bar { margin: 12px 0 2px; height: 7px; }
.raffle-bar i { background: linear-gradient(90deg, #6d3fe0, #a17cfb); }
.raffle-prizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 10px; }
.raffle-prizes div { text-align: center; padding: 7px 4px; border-radius: 12px; background: rgba(0, 0, 0, .25); font-size: 17px; }
.raffle-prizes b { display: block; font-size: 11.5px; color: var(--accent-2); margin-top: 2px; }
.raffle-how { display: flex; flex-wrap: wrap; gap: 6px; }
.raffle-how span { font-size: 11px; padding: 5px 8px; border-radius: 9px; background: rgba(0, 0, 0, .25); color: var(--muted); border: 1px solid transparent; }
.raffle-how span b { color: #c9b6ff; }
.raffle-how span em { font-style: normal; margin-left: 4px; color: #fff; }
.raffle-how span.on { color: #fff; border-color: rgba(161, 124, 251, .4); }
.raffle-last { margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.raffle-last b { color: #fff; margin: 0 6px 0 2px; }

/* ── аналитика в админке ── */
.an-row { padding: 12px 14px; }
.an-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.an-head b { font-family: var(--head); font-size: 14px; }
.an-head span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.an-line { display: grid; grid-template-columns: 1.3fr 1fr 40px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); margin: 5px 0; }
.an-line b { text-align: right; color: #fff; font-size: 12px; }
#srcOut .ref-row { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
}
