/* ===== rograde — violet neon theme (overrides style.css) ===== */

:root {
  --bg: #0a0713;
  --surface: #110c1f;
  --surface-2: #17102a;
  --surface-3: #1f1636;
  --line: #2a1d4a;
  --line-2: #3d2a6b;
  --text: #f3efff;
  --muted: #a598c9;
  --muted-2: #6d5f95;

  --accent: #8b3dff;
  --accent-2: #a56bff;
  --accent-3: #c084fc;
  --accent-ink: #ffffff;
  --accent-soft: rgba(139, 61, 255, .14);
  --glow: 0 0 0 1px rgba(139, 61, 255, .35), 0 8px 32px rgba(139, 61, 255, .25);

  --gold: #ffc75a;
  --green: #4fe0a3;
  --red: #ff6b8b;

  --r-common: #9d92c4;
  --r-rare: #5aa5ff;
  --r-epic: #c07bff;
  --r-legendary: #ffc75a;
  --r-mythic: #ff6fae;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
  --r: 12px;
  --r-lg: 16px;
}

body {
  --header-h: 66px;
  --sidebar-w: 160px;
  background:
    radial-gradient(900px 500px at 20% -10%, rgba(139, 61, 255, .16), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(139, 61, 255, .10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
::selection { background: var(--accent); color: #fff; }

/* icons */
.ic, .ic-sm, .gift-ic, .copy-ic, .search-ic { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.ic svg, .ic-sm svg, .logo-mark svg, .icon-btn svg, .balance-chip svg, .fav svg, .go svg, .price svg,
.gift-ic svg, .copy-ic svg, .search-ic svg, .group-head .right svg, .hot svg, .drop .val svg {
  width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.hot svg { fill: currentColor; stroke: none; }

/* ---------- Header ---------- */
.header { background: rgba(12, 8, 22, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { gap: 1.25rem; padding: 0 28px; }
.logo { gap: 10px; font-family: var(--display); font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; font-size: 18px;
  background: linear-gradient(145deg, #a56bff, #6d28d9); color: #fff;
  box-shadow: 0 4px 16px rgba(139, 61, 255, .45);
}
.logo-text { color: var(--text); }
.logo-text span { color: var(--accent-3); }

.nav { gap: 4px; margin-left: 1.5rem; height: var(--header-h); align-items: stretch; }
.nav-item {
  display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 0;
  font-size: .9rem; font-weight: 600; color: var(--muted); position: relative;
}
.nav-item .ic { font-size: 1.05rem; opacity: .85; }
.nav-item:hover { color: var(--text); background: transparent; }
.nav-item.active { color: var(--text); background: linear-gradient(180deg, rgba(139, 61, 255, .18), rgba(139, 61, 255, .04)); }
.nav-item.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); }

.header-actions { gap: 8px; }
.balance-chip {
  height: 42px; padding: 0 16px; border-radius: 10px; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: .95rem; font-weight: 800;
}
.balance-chip .coin { color: var(--accent-3); font-size: 1rem; display: inline-flex; }
.btn-auth {
  height: 42px; padding: 0 20px; border-radius: 10px; font-weight: 700; font-size: .92rem; color: #fff;
  background: linear-gradient(180deg, #9d5bff, #7c3aed); box-shadow: 0 6px 20px rgba(139, 61, 255, .35);
}
.btn-auth:hover { background: linear-gradient(180deg, #ad74ff, #8b4bf5); }
.icon-btn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 1.1rem; }
.icon-btn.ghost { border-color: transparent; background: transparent; width: 32px; }
.icon-btn:hover, .icon-btn.active { color: var(--accent-3); border-color: var(--line-2); background: var(--surface-3); }

/* ---------- Sidebar (live drops) ---------- */
.sidebar { background: rgba(14, 9, 26, .9); border-right: 1px solid var(--line); }
.sidebar-head { padding: 12px 10px 10px; gap: 6px; }
.sidebar-head .cnt { font-size: .66rem; }
.sidebar-foot { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px 12px; font-size: .66rem; }
.live-dot { color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.live-dot::before { background: var(--accent-3); box-shadow: 0 0 10px var(--accent-3); }
.sidebar .live-strip { padding: 0 12px 12px; gap: 6px; }
.drop {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px;
  padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.drop:hover { border-color: var(--line-2); background: var(--surface-3); }
.drop::before { display: none; }
.drop .emoji { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 9px; background: radial-gradient(circle at 50% 40%, rgba(139, 61, 255, .35), rgba(139, 61, 255, .05)); display: grid; place-items: center; overflow: hidden; }
.drop .emoji img { width: 100%; height: 100%; object-fit: contain; padding: 4px; margin: 0; }
.drop .name { grid-column: 2; font-size: .78rem; font-weight: 700; color: var(--text); }
.drop .meta { grid-column: 2; display: block; }
.drop .user { font-size: .68rem; color: var(--muted-2); }
.drop .val {
  grid-column: 3; grid-row: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 7px; background: rgba(139, 61, 255, .12); border: 1px solid rgba(139, 61, 255, .25);
  color: var(--text); font-size: .7rem; font-weight: 700;
}
.drop .val svg { color: var(--accent-3); font-size: .8rem; }
.sidebar-foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted-2); font-size: .7rem; padding: 12px 18px; }

/* ---------- Banner ---------- */
main.container { padding-top: 22px; }
.banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 28px; min-height: 108px;
  padding: 22px 30px; border-radius: 18px; border: 1px solid rgba(139, 61, 255, .45);
  background: linear-gradient(90deg, #160d2b 0%, #1f1140 45%, #3b1a7a 75%, #5b21b6 100%);
  box-shadow: 0 12px 40px rgba(60, 20, 140, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 85% 50%, rgba(192, 132, 252, .35), transparent 65%); z-index: -1; }
.banner .lead { gap: 16px; }
.banner .gift-ic { width: 46px; height: 46px; border-radius: 12px; font-size: 1.4rem; color: var(--accent-3); background: rgba(139, 61, 255, .16); border: 1px solid rgba(139, 61, 255, .35); }
.banner .tag { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.03em; color: #c084fc; text-shadow: 0 0 24px rgba(192, 132, 252, .55); }
.banner .lead div b { display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); line-height: 1.35; }
.banner .lead div b:first-child { color: var(--muted); }
.banner .promo-wrap { align-items: flex-start; gap: 6px; padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.banner .promo-wrap small { color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.banner .promo {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 9px;
  background: rgba(10, 7, 19, .7); border: 1px solid rgba(139, 61, 255, .45); color: var(--text);
  font-size: .95rem; font-weight: 700; letter-spacing: .06em; user-select: none;
}
.banner .promo:hover { background: rgba(10, 7, 19, .9); border-color: var(--accent-3); }
.banner .promo .copy-ic { color: var(--muted); font-size: 1rem; }
.banner .timer { flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 0 0 28px; border: 0; border-left: 1px solid rgba(255, 255, 255, .12); border-radius: 0; background: transparent; color: var(--muted); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.banner .timer b { font-family: var(--display); font-size: 1.25rem; font-weight: 800; color: var(--text); }
.banner-art { position: absolute; right: 0; top: 0; bottom: 0; width: 46%; pointer-events: none; z-index: -1; }
.banner-art img { position: absolute; right: 60px; bottom: -30px; width: 190px; height: 190px; object-fit: contain; filter: drop-shadow(0 0 30px rgba(192, 132, 252, .6)); opacity: .95; }
.banner-art .cube { position: absolute; width: 30px; height: 30px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); transform: rotate(18deg); box-shadow: 0 0 20px rgba(192, 132, 252, .35); }
.banner-art .c1 { right: 28%; top: 14%; width: 22px; height: 22px; opacity: .9; }
.banner-art .c2 { right: 18%; top: 58%; transform: rotate(-12deg); }
.banner-art .c3 { right: 6%; top: 8%; width: 36px; height: 36px; transform: rotate(30deg); }
.banner-art .c4 { right: 2%; top: 60%; width: 20px; height: 20px; opacity: .7; }
.banner-art .c5 { right: 40%; top: 66%; width: 14px; height: 14px; opacity: .5; }

/* ---------- Title / toolbar ---------- */
.page-title { margin-top: 30px; align-items: flex-end; gap: 16px; }
.page-title .title-row { display: flex; align-items: center; gap: 12px; }
.page-title h1, .page-head h1, .case-hero h1, .upgrade-head h1 { font-family: var(--display); font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.page-title .count { min-width: 28px; height: 24px; padding: 0 8px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 700; }
.page-title .subtitle { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.page-title .right, .group-head .right { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .76rem; font-weight: 500; }
.page-title .right:hover, .group-head .right:hover { color: var(--text); }
.page-title .right .ic-sm { font-size: .9rem; }
.toolbar { margin-top: 16px; padding: 0; border: 0; gap: 10px; }
.tabs { gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.tab { padding: 7px 14px; border: 0; border-radius: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.tab.active { background: var(--surface-3); color: var(--text); border-color: transparent; }
.toolbar .search { margin-left: auto; }
.toolbar .search::before { display: none; }
.toolbar .search .search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.05rem; }
select, input { height: 44px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); padding: 0 14px; }
.toolbar .search input { width: 260px; padding-left: 42px; }
select:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 61, 255, .2); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a598c9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }

.group-head { margin: 30px 0 14px; gap: 10px; }
.group-head h2 { font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.group-head .hot { color: #ff7a3d; font-size: 1.05rem; display: inline-flex; filter: drop-shadow(0 0 8px rgba(255, 122, 61, .6)); }
.group-head .pill { border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-size: .68rem; padding: 2px 9px; }
.group-head::after { display: none; }
.group-head .right { margin-left: auto; }

main.container, .footer .container {
  padding-left: max(56px, calc((100% - var(--sidebar-w) - 1240px) / 2));
  padding-right: max(56px, calc((100% - var(--sidebar-w) - 1240px) / 2));
}

/* ---------- Case cards ---------- */
.cases-grid { gap: 14px !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
@media (max-width: 1300px) { .cases-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (max-width: 1050px) { .cases-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.case-card {
  padding: 0; border-radius: 18px; background: linear-gradient(180deg, #16102a, #110c1f); border: 1px solid var(--line);
  overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(139, 61, 255, .6); box-shadow: var(--glow), 0 16px 40px rgba(0, 0, 0, .45); }
.case-card .art, .case-card.is-featured .art {
  height: 104px !important; border-radius: 0;
  background: radial-gradient(240px 160px at 50% 60%, rgba(139, 61, 255, .45), rgba(139, 61, 255, .04) 70%), #120c22 !important;
}
.case-card .art::after { background: linear-gradient(180deg, transparent 60%, rgba(17, 12, 31, .9)); z-index: 0; }
.case-card .art img { padding: 8% 22%; z-index: 1; filter: drop-shadow(0 14px 22px rgba(139, 61, 255, .45)); transition: transform .25s; }
.case-card:hover .art img { transform: scale(1.06) translateY(-4px); }
.case-card .badge { top: 14px; left: 14px; padding: 4px 10px; border-radius: 99px; background: linear-gradient(180deg, #a56bff, #7c3aed); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .08em; box-shadow: 0 4px 14px rgba(139, 61, 255, .5); }
.case-card .fav {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); font-size: 1rem;
  background: rgba(10, 7, 19, .55); border: 1px solid rgba(255, 255, 255, .06); transition: color .15s, background .15s;
}
.case-card .fav:hover { color: var(--text); background: rgba(139, 61, 255, .35); }
.case-card .fav.on { color: #ff6fae; }
.case-card .fav.on svg { fill: currentColor; }
.case-card { border-radius: 12px; }
.case-card .body { min-height: 0; padding: 8px 12px 10px; gap: 0; align-items: flex-start; text-align: left; }
.case-card .name { max-width: 100%; font-family: var(--display); font-size: .88rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.case-card .badge { top: 10px; left: 10px; padding: 3px 8px; font-size: .58rem; }
.case-card .items-count { color: var(--muted-2); font-size: .72rem; }
.case-card .card-foot { display: flex; align-items: center; justify-content: flex-start; width: 100%; margin-top: 6px; }
.case-card .price, .case-card:hover .price {
  position: static; display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 4px 10px; border-radius: 7px;
  background: var(--surface-3); border: 1px solid var(--line-2); color: var(--text); font-size: .8rem; font-weight: 700;
}
.case-card .price svg { color: var(--accent-3); font-size: 1rem; }
.case-card .price span, .case-card:hover .price span { color: var(--muted); font-size: .72rem; font-weight: 600; margin: 0; }
.case-card .go {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--accent-3); font-size: 1rem; background: transparent;
  transition: background .15s, color .15s, transform .15s;
}
.case-card:hover .go { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateX(2px); box-shadow: 0 0 16px rgba(139, 61, 255, .55); }

/* ---------- Shared components ---------- */
.btn { height: 44px; padding: 0 20px; border-radius: 10px; font-size: .88rem; font-weight: 700; color: #fff; background: linear-gradient(180deg, #9d5bff, #7c3aed); box-shadow: 0 6px 20px rgba(139, 61, 255, .3); }
.btn:hover { background: linear-gradient(180deg, #ad74ff, #8b4bf5); }
.btn.green { background: linear-gradient(180deg, #57e8ad, #22c98a); color: #04261a; box-shadow: 0 6px 20px rgba(79, 224, 163, .25); }
.btn.green:hover { background: linear-gradient(180deg, #6df0b9, #33d698); }
.btn.gold { background: linear-gradient(180deg, #ffd47a, #f5b53a); color: #2b1a00; box-shadow: 0 6px 20px rgba(255, 199, 90, .25); }
.btn.gold:hover { background: linear-gradient(180deg, #ffde96, #ffbf50); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); border-color: var(--accent); }
.upgrade-submit { background: linear-gradient(180deg, #9d5bff, #7c3aed); color: #fff; }

.roulette-wrap, .side-panel, .up-box, .deposit-card, .upgrade-panel, .admin-form, .admin-stat, .item-card, .modal {
  border-radius: 16px; background: linear-gradient(180deg, #16102a, #110c1f); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}
.roulette { border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.roulette .cell { border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.roulette .pointer { width: 2px; background: var(--accent-3); box-shadow: 0 0 12px var(--accent-3); }
.roulette .pointer::before { border-top-color: var(--accent-3); }
.roulette .pointer::after { border-bottom-color: var(--accent-3); }
.item-card { border-radius: 14px; }
.item-card .emoji { background: radial-gradient(circle at 50% 50%, rgba(139, 61, 255, .25), transparent 70%); border-radius: 10px; }
.item-card .name { font-weight: 700; }
.case-hero .art { border-radius: 14px; background: radial-gradient(circle at 50% 55%, rgba(139, 61, 255, .45), #120c22 75%) !important; }
.case-hero .badge { border-radius: 99px; background: linear-gradient(180deg, #a56bff, #7c3aed); color: #fff; }
.upgrade-item-list::before, .rbx-grid { border-color: var(--line); }
.upgrade-list-item:hover, .upgrade-list-item.selected { background: var(--surface-3); }
.chance-bar-fill, .dial-face::after { background: var(--accent-3); }
.dial-face::after { background: conic-gradient(from calc(180deg - (var(--chance-angle) / 2)), var(--accent-3) 0 var(--chance-angle), transparent var(--chance-angle) 360deg); }
.upgrade-dial { box-shadow: 0 0 0 7px var(--surface-2), 0 0 0 8px var(--line-2); }
.deposit-card h3, .side-panel h3, .admin-stat b, .dial-center strong { font-family: var(--display); font-weight: 800; }
.soon { background: rgba(139, 61, 255, .18); color: var(--accent-3); border: 1px solid rgba(139, 61, 255, .35); border-radius: 99px; }
.empty { border-color: var(--line-2); border-radius: 16px; }
.empty a { color: var(--accent-3); }

.footer { border-top: 1px solid var(--line); background: rgba(12, 8, 22, .6); }
.footer h4 { color: var(--text); }
.footer a:hover { color: var(--accent-3); }

.mobile-nav { background: rgba(12, 8, 22, .95); border-top: 1px solid var(--line); }
.mobile-nav a .ic { font-size: 1.2rem; }
.mobile-nav a.active { color: var(--accent-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .banner-art { display: none; } }
@media (max-width: 980px) { body { --sidebar-w: 0px; } }
@media (max-width: 768px) {
  .banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .banner .promo-wrap, .banner .timer { padding-left: 0; border-left: 0; }
  .page-title { flex-direction: column; align-items: flex-start; }
  .page-title .right { margin-left: 0; }
  .toolbar .search { margin-left: 0; flex: 1; }
  .toolbar .search input { width: 100%; }
  .case-card .art, .case-card.is-featured .art { height: 104px !important; }
}

/* ===== Страница кейса: на всю ширину, несколько лент, счётчик, звук ===== */
.case-layout--full { grid-template-columns: minmax(0, 1fr); }
.roulettes { display: flex; flex-direction: column; gap: 10px; }
.roulettes[data-count="1"] .roulette { height: 150px; }
.roulettes[data-count="2"] .roulette { height: 136px; }
.roulettes[data-count="3"] .roulette,
.roulettes[data-count="4"] .roulette,
.roulettes[data-count="5"] .roulette { height: 118px; }
.roulettes[data-count="3"] .roulette .cell,
.roulettes[data-count="4"] .roulette .cell,
.roulettes[data-count="5"] .roulette .cell { height: 92px; gap: 3px; }
.roulettes[data-count="3"] .roulette .cell .nm,
.roulettes[data-count="4"] .roulette .cell .nm,
.roulettes[data-count="5"] .roulette .cell .nm { display: none; }
.roulette .cell img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.roulette .pointer { width: 3px; border-radius: 2px; background: linear-gradient(var(--accent-3), var(--accent), var(--accent-3)); box-shadow: 0 0 14px var(--accent-2), 0 0 32px rgba(139,61,255,.45); }
.roulette::before, .roulette::after { width: 140px; }

.open-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.open-controls .roulette-actions { margin-top: 0; }
.count-picker { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.count-picker button { min-width: 44px; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.count-picker button:hover { color: var(--text); background: var(--surface-3); }
.count-picker button.on { color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: var(--accent-2); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 6px 18px rgba(139,61,255,.35); }
.count-picker.locked { opacity: .55; pointer-events: none; }
.sound-btn { width: 48px; height: 48px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--accent-3); cursor: pointer; }
.sound-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn.off { color: var(--muted-2); }
.sound-btn:hover { border-color: var(--line-2); color: var(--text); }

.modal.multi { max-width: 720px; width: 100%; }
.modal .wins-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; margin: 18px 0 16px; }
.modal .win-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.modal .win-cell::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; background: var(--rc); border-radius: 0 0 2px 2px; }
.modal .win-cell .emoji { font-size: 40px; margin: 0; }
.modal .win-cell .emoji img { width: 64px; height: 64px; object-fit: contain; }
.modal .win-cell .nm { font-size: .72rem; font-weight: 600; color: var(--text); text-align: center; line-height: 1.25; }
.modal .win-cell .v { font-size: .78rem; font-weight: 700; color: var(--rc); }
@media (max-width: 768px) {
  .open-controls { flex-direction: column; align-items: stretch; }
  .count-picker { justify-content: space-between; }
  .count-picker button { flex: 1; }
}

/* ===== Боковое табло: вертикальная лента, одна карточка в ряд ===== */
.sidebar .live-strip {
  display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
  border-top: 1px solid var(--line);
}
.drop.drop--art {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  flex: 0 0 auto; height: 82px; padding: 6px 8px; min-height: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow: hidden; position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rc) 22%, transparent), color-mix(in srgb, var(--rc) 6%, transparent)),
    var(--surface-2);
  animation: dropIn .25s ease-out;
}
.drop.drop--art::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rc); opacity: .85;
}
.drop.drop--art:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rc) 32%, transparent), color-mix(in srgb, var(--rc) 10%, transparent)),
    var(--surface-3);
}
.drop.drop--art .emoji {
  width: 40px; height: 40px; border-radius: 0; background: none; display: grid; place-items: center;
  font-size: 1.5rem; flex: 0 0 auto;
}
.drop.drop--art .emoji img { width: 100%; height: 100%; object-fit: contain; padding: 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.55)); }
.drop.drop--art .info { width: 100%; text-align: center; line-height: 1.2; min-width: 0; }
.drop.drop--art .name {
  display: block; font-size: .7rem; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drop.drop--art .user {
  display: block; font-size: .64rem; font-weight: 500; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drop.drop--art .val {
  position: absolute; right: 6px; top: 6px; padding: 1px 5px; border-radius: 5px;
  background: rgba(10, 7, 19, .55); border: 0; color: var(--muted-2); font-size: .58rem; font-weight: 600;
  font-variant-numeric: tabular-nums; backdrop-filter: blur(4px); line-height: 1.3;
}
.drop.drop--art:hover .val { color: var(--text); }

/* ===== Профиль ===== */
.profile { display: flex; flex-direction: column; gap: 18px; }
.profile-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.profile-avatar {
  width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); box-shadow: 0 10px 30px rgba(139,61,255,.35);
}
.profile-avatar svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.profile-id h1 { margin: 0 0 4px; font-size: 1.5rem; }
.profile-id h1 span { color: var(--accent-3); }
.profile-id p { margin: 0; color: var(--muted); font-size: .9rem; }
.profile-level { min-width: 200px; text-align: right; }
.profile-level .lvl { font-weight: 800; color: var(--text); }
.profile-level .lvl-bar { height: 6px; margin: 8px 0 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.profile-level .lvl-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-3)); }
.profile-level small { color: var(--muted-2); font-size: .72rem; }

.profile-best {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center;
  padding: 22px; border-radius: 16px; border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(139,61,255,.18), var(--surface) 55%);
}
.best-art {
  aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; font-size: 4rem;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc) 40%, transparent), var(--surface-2) 75%);
  border: 1px solid var(--rc);
}
.best-art img { width: 80%; height: 80%; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.6)); }
.best-info .rarity-label { color: var(--rc); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.best-info h2 { margin: 6px 0 4px; font-size: 1.6rem; }
.best-val { font-size: 1.3rem; font-weight: 800; color: var(--accent-3); }
.best-info p { margin: 6px 0 0; color: var(--muted); font-size: .85rem; }
.best-empty { grid-column: 1 / -1; text-align: center; padding: 10px; }
.best-empty h2 { margin: 0 0 6px; }
.best-empty p { color: var(--muted); margin: 0 0 14px; }

.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat-card { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat-card span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.stat-card b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-card small { color: var(--muted-2); font-size: .7rem; }
.stat-card.up b { color: #4ade80; }
.stat-card.down b { color: #f87171; }

.profile-history { display: flex; flex-direction: column; gap: 6px; }
.hist-row {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
}
.hist-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-3); }
.hist-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hist-txt { display: flex; flex-direction: column; min-width: 0; }
.hist-txt b { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-txt small { color: var(--muted-2); font-size: .7rem; }
.hist-val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.hist-row.win .hist-val { color: #4ade80; }
.hist-row.lose .hist-val { color: #f87171; }
.hist-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }

/* ===== Админка: вход и настройки табла ===== */
.admin-gate { min-height: 60vh; display: grid; place-items: center; padding: 40px 16px; }
.admin-gate-card {
  width: 100%; max-width: 360px; padding: 28px; border-radius: 16px; text-align: center;
  background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px;
}
.admin-gate-card h2 { margin: 0; }
.admin-gate-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.admin-gate-card input {
  height: 46px; text-align: center; font-size: 1.2rem; letter-spacing: .3em; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
}
.admin-feed { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); margin-bottom: 18px; }
.admin-feed-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.admin-feed-head h3 { margin: 0 0 4px; }
.admin-feed-head p { margin: 0; color: var(--muted); font-size: .85rem; }
.admin-feed-actions { display: flex; gap: 8px; }
.admin-feed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.feed-bar { display: flex; height: 8px; margin-top: 12px; border-radius: 4px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.feed-bar span { display: block; height: 100%; }
.admin-feed-foot { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-feed-foot .field { width: 160px; }
.admin-feed-foot .form-msg { flex: 1 1 100%; }
@media (max-width: 768px) {
  .profile-hero, .profile-best { grid-template-columns: 1fr; text-align: center; }
  .profile-level { text-align: center; }
  .best-art { max-width: 200px; margin: 0 auto; }
}
.balance-chip .cur { color: var(--muted); font-size: .78rem; font-weight: 600; }
