/* =====================================================================
   Obsidian & Champagne — дизайн-система Mini App (2026)
   Тёмная «люксовая» тема: обсидиан, стекло, шампанское золото.
   ===================================================================== */
/* Onest (variable 100–900, OFL) — единый шрифт: премиальный финтех вместо «игровых» широких начертаний */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  /* поверхности */
  --bg: #07070b;
  --bg2: #0d0d14;
  --card: rgba(255, 255, 255, .035);
  --card-solid: #12121b;
  --raise: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  /* текст */
  --text: #f4f1ea;
  --hint: #8f8c99;
  --dim: #5d5a68;
  --link: #e9cf8e;
  /* акценты */
  --gold-1: #fbecc0; --gold-2: #e5c27a; --gold-3: #b98a35; --gold-4: #7a5520;
  --gold: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 38%, var(--gold-3) 78%, var(--gold-2) 100%);
  --accent: #e5c27a;
  --accent2: #8b6cff;
  --accent2-fg: #b8a6ff;
  --live-fg: #c6b8ff;
  --btn: #8b6cff;
  --btn-text: #fff;
  --ok: #3ddc97;
  --bad: #ff5d6c;
  --warn: #ffb547;
  /* форма */
  --radius: 20px;
  --radius-s: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 40px -24px rgba(0, 0, 0, .8);
  --glass: blur(22px) saturate(160%);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  /* насыщенность: текст 400 · акцент 500 · кнопки/суммы 600 · заголовки 650 */
  --w-text: 400; --w-medium: 500; --w-strong: 600; --w-head: 650;
  --num: tabular-nums lining-nums;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* редкость наград */
  --r-common: #6b6878; --r-uncommon: #4f9dff; --r-rare: #9d7bff; --r-epic: #ff5fb2; --r-legendary: #e5c27a;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* атрибут hidden сильнее любых display: иначе, например, вкладка «Админ» видна всем */
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 var(--font); font-feature-settings: "kern"; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overflow-x: hidden; }
/* фон: мягкое «северное сияние» и зерно — дорогая глубина вместо плоской заливки */
body::before { content: ""; position: fixed; inset: -20vh -20vw; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vmax 34vmax at 12% -4%, rgba(139, 108, 255, .22), transparent 60%),
    radial-gradient(34vmax 30vmax at 100% 8%, rgba(229, 194, 122, .14), transparent 62%),
    radial-gradient(46vmax 40vmax at 50% 110%, rgba(56, 130, 246, .10), transparent 60%),
    var(--bg);
  animation: aurora 26s ease-in-out infinite alternate; }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes aurora { to { transform: translate3d(-3vw, 2vh, 0) scale(1.06); } }

#app { max-width: 640px; margin: 0 auto; padding-bottom: calc(104px + var(--safe-b)); }
a { color: var(--link); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: var(--w-head); letter-spacing: -0.5px; }
b, strong { font-weight: var(--w-strong); }
h1 { font-size: 26px; line-height: 1.2; margin: 18px 2px 4px; }
h2 { font-size: 12.5px; margin: 26px 4px 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--hint); font-weight: var(--w-medium); }
h3 { font-size: 16px; line-height: 1.3; margin: 0 0 8px; }
small, .hint { color: var(--hint); font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
::selection { background: rgba(229, 194, 122, .35); }

/* ---------------------------------------------------------------- шапка */
.topbar { position: sticky; top: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: linear-gradient(var(--bg) 30%, rgba(7, 7, 11, 0));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.brand { font-family: var(--display); font-weight: var(--w-head); font-size: 17px; letter-spacing: -0.4px;
  background: linear-gradient(90deg, #fff, #cfc9db); -webkit-background-clip: text; background-clip: text; color: transparent; }
.balance-pill { display: flex; align-items: center; gap: 7px; cursor: pointer; font-weight: var(--w-strong); font-variant-numeric: var(--num);
  padding: 8px 14px 8px 10px; border-radius: 999px; color: #1a1206; background: var(--gold); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 236, 180, .35) inset, 0 8px 24px -8px rgba(229, 194, 122, .55);
  animation: sheen 6s ease-in-out infinite; }
.balance-pill svg { width: 17px; height: 17px; }
@keyframes sheen { 0%, 70% { background-position: 0 0; } 85% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  cursor: pointer; background: var(--card); color: var(--text); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 0 2px var(--bg), 0 0 10px var(--bad); }

/* ---------------------------------------------------------------- база */
main { padding: 0 16px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  margin: 12px 0; box-shadow: var(--shadow); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
.big { font-family: var(--display); font-size: 36px; font-weight: var(--w-strong); font-variant-numeric: var(--num); letter-spacing: -1.8px; line-height: 1.05; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { opacity: .7; }
.pre { white-space: pre-wrap; }

/* кнопки */
.btn { position: relative; overflow: hidden; appearance: none; border: 0; border-radius: var(--radius-s); padding: 14px 18px;
  font: inherit; font-weight: var(--w-strong); letter-spacing: -0.1px; cursor: pointer; width: 100%; color: var(--text);
  background: var(--raise); box-shadow: 0 0 0 1px var(--line) inset; transition: transform .12s var(--ease), filter .2s, opacity .2s; }
.btn:active { transform: scale(.975); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.sm { width: auto; padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn.gold { color: #1a1206; background: var(--gold); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 240, 200, .45) inset, 0 10px 28px -10px rgba(229, 194, 122, .7); }
.btn.gold::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); animation: glint 4.5s ease-in-out infinite; }
@keyframes glint { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.btn.secondary { background: var(--raise); color: var(--text); }
.btn.ghost { background: transparent; color: var(--link); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.btn.ok { background: linear-gradient(135deg, #3ddc97, #1fa874); color: #04150d; }
.btn.bad { background: linear-gradient(135deg, #ff6b78, #d63a4b); color: #fff; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btns .btn { flex: 1; }

/* поля */
label.f { display: block; margin: 12px 0 6px; font-size: 12px; color: var(--hint); letter-spacing: .02em; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: rgba(229, 194, 122, .55); background: rgba(255, 255, 255, .06);
  box-shadow: 0 0 0 4px rgba(229, 194, 122, .1); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hint) 50%), linear-gradient(135deg, var(--hint) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
option { background: var(--card-solid); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; align-items: center; gap: 10px; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; flex: none; accent-color: var(--gold-2); }

/* бейджи */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: var(--w-strong); padding: 4px 9px; border-radius: 999px;
  background: var(--raise); color: var(--hint); white-space: nowrap; letter-spacing: .01em; box-shadow: 0 0 0 1px var(--line) inset; }
.badge.ok { background: rgba(61, 220, 151, .12); color: var(--ok); box-shadow: 0 0 0 1px rgba(61, 220, 151, .25) inset; }
.badge.bad { background: rgba(255, 93, 108, .12); color: var(--bad); box-shadow: 0 0 0 1px rgba(255, 93, 108, .25) inset; }
.badge.warn { background: rgba(255, 181, 71, .12); color: var(--warn); box-shadow: 0 0 0 1px rgba(255, 181, 71, .25) inset; }
.badge.live { background: rgba(139, 108, 255, .14); color: var(--live-fg); box-shadow: 0 0 0 1px rgba(139, 108, 255, .3) inset; }

/* списки */
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.place { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: var(--w-strong); font-size: 13px;
  background: var(--raise); flex: none; font-family: var(--display); }
.place.p1 { background: var(--gold); color: #1a1206; box-shadow: 0 0 16px rgba(229, 194, 122, .5); }
.place.p2 { background: linear-gradient(135deg, #f1f5f9, #94a3b8); color: #0f172a; }
.place.p3 { background: linear-gradient(135deg, #f4b183, #a85d2a); color: #1b0d03; }
li.me, .list li.me { background: rgba(139, 108, 255, .1); border-radius: 12px; padding-left: 10px; padding-right: 10px; border-bottom-color: transparent; }
.amount { font-weight: var(--w-strong); font-variant-numeric: var(--num); white-space: nowrap; }
.amount.plus { color: var(--ok); } .amount.minus { color: var(--bad); }

.prize { font-family: var(--display); font-size: 22px; font-weight: var(--w-strong); font-variant-numeric: var(--num); letter-spacing: -0.8px;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.kv div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.kv b { display: block; font-size: 15px; } .kv span { font-size: 12px; color: var(--hint); }
.mybox { border: 1px dashed rgba(139, 108, 255, .5); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }

/* переключатели */
.segment { display: flex; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 16px; padding: 4px; gap: 4px; margin: 12px 0; }
.segment button { flex: 1; border: 0; background: transparent; color: var(--hint); font: inherit; font-weight: var(--w-strong); padding: 10px; border-radius: 12px; cursor: pointer; transition: all .25s var(--ease); }
.segment button.active { background: var(--raise); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset, 0 6px 16px -8px rgba(0, 0, 0, .8); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 6px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 8px 14px; border-radius: 999px;
  font: inherit; font-size: 13.5px; font-weight: var(--w-strong); cursor: pointer; transition: all .2s; }
.chips button.active { background: var(--gold); color: #1a1206; border-color: transparent; box-shadow: 0 6px 18px -8px rgba(229, 194, 122, .7); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-family: var(--display); font-weight: var(--w-strong); font-size: 20px; letter-spacing: -0.6px; font-variant-numeric: var(--num); }
.stat span { font-size: 12px; color: var(--hint); }
.step { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
.step .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #1a1206; display: grid; place-items: center;
  font-size: 12px; font-weight: var(--w-strong); font-family: var(--display); }
.step.done .n { background: var(--ok); }
.empty { text-align: center; color: var(--hint); padding: 32px 12px; }
.empty .em { font-size: 42px; margin-bottom: 8px; filter: grayscale(.2); }
.copy { cursor: pointer; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 6px 0; }
.copy:active { opacity: .6; }

/* ---------------------------------------------------------------- нижняя панель: плавающий «док» */
.tabbar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 9; display: flex; justify-content: space-around;
  max-width: 560px; margin: 0 auto; padding: 7px; border-radius: 26px;
  background: rgba(18, 18, 27, .72); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .06) inset; }
.tabbar button { position: relative; flex: 1; border: 0; background: none; color: var(--dim); font: inherit; font-size: 10.5px; font-weight: var(--w-strong);
  letter-spacing: .02em; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0 3px; cursor: pointer;
  border-radius: 20px; transition: color .25s var(--ease); }
.tabbar .ic { width: 44px; height: 28px; display: grid; place-items: center; transition: transform .25s var(--ease); }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar button:active .ic { transform: scale(.88); }
.tabbar button.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.tabbar button.active .ic { color: var(--gold-2); filter: drop-shadow(0 0 10px rgba(229, 194, 122, .55)); }
.tabbar button .dot { position: absolute; margin-left: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }

/* ---------------------------------------------------------------- шторка, тост, загрузка */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 6, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade .25s ease-out; }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; max-width: 640px; margin: 0 auto;
  background: linear-gradient(180deg, #15151f, #0c0c13 60%); border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 28px 28px 0 0; padding: 22px 18px calc(28px + var(--safe-b)); animation: up .38s var(--ease);
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .9); }
.sheet-body::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: -10px auto 14px; }
.sheet-x { position: absolute; right: 14px; top: 14px; border: 1px solid var(--line); background: var(--raise); color: var(--hint);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
@keyframes up { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); transform: translateX(-50%); z-index: 30; max-width: 90vw;
  padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: var(--w-strong); color: var(--text);
  background: rgba(24, 24, 34, .88); border: 1px solid var(--line-strong); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .8); animation: toastIn .35s var(--ease); }
.toast.bad { border-color: rgba(255, 93, 108, .45); background: rgba(60, 14, 22, .9); }
@keyframes toastIn { from { transform: translate(-50%, 16px); opacity: 0; } }
.loader { width: 36px; height: 36px; margin: 70px auto; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold-2);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* ---------------------------------------------------------------- заголовки разделов, скелетоны, анимации */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 4px 12px; }
.sec-h h2 { margin: 0; }
.sec-h a { font-size: 13px; font-weight: var(--w-strong); cursor: pointer; }
.page-h { margin: 8px 2px 6px; }
.page-h h1 { margin: 6px 0 2px; }
.sk-wrap { padding-top: 10px; }
.sk { height: 96px; border-radius: var(--radius); margin: 12px 0; border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, .07) 50%, rgba(255, 255, 255, .03) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk-hero { height: 190px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
#view.enter > * { animation: fadeUp .5s var(--ease) both; }
#view.enter > *:nth-child(2) { animation-delay: .04s; } #view.enter > *:nth-child(3) { animation-delay: .08s; }
#view.enter > *:nth-child(4) { animation-delay: .12s; } #view.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }

/* ---------------------------------------------------------------- главная: карточка баланса */
.card.hero { overflow: hidden; padding: 20px 18px 18px; border-radius: 26px; border: 0;
  background: radial-gradient(120% 140% at 100% 0%, rgba(229, 194, 122, .16), transparent 55%),
              radial-gradient(120% 120% at 0% 100%, rgba(139, 108, 255, .22), transparent 55%), #0f0f17;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
/* «живая» золотая окантовка */
.card.hero::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), rgba(229, 194, 122, .0), rgba(229, 194, 122, .8), rgba(139, 108, 255, .5), rgba(229, 194, 122, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 8s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spinBorder { to { --spin: 360deg; } }
.card.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(229, 194, 122, .25), transparent 65%); filter: blur(8px); }
.card.hero .hint { color: #a9a3b8; }
.hero .hello { font-size: 13px; color: #a9a3b8; letter-spacing: .02em; }
.hero .big { font-size: 44px; margin: 8px 0 4px; background: linear-gradient(180deg, #fff 20%, #d9d2c2); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero .btns { position: relative; z-index: 1; }
.hero .btns .btn.secondary { background: rgba(255, 255, 255, .07); }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.hero-stats div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; font-size: 11.5px; color: var(--hint); line-height: 1.25; }
.hero-stats b { display: block; font-family: var(--display); font-weight: var(--w-strong); font-size: 18px; letter-spacing: -0.5px; font-variant-numeric: var(--num); color: var(--text); margin-bottom: 2px; }

/* баннеры */
.banner { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; border-radius: var(--radius); padding: 14px 16px; margin: 12px 0;
  cursor: pointer; color: var(--text); border: 1px solid rgba(139, 108, 255, .35);
  background: radial-gradient(120% 160% at 0% 0%, rgba(139, 108, 255, .35), transparent 60%), rgba(20, 16, 36, .7);
  box-shadow: 0 18px 36px -20px rgba(139, 108, 255, .6); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); }
.banner .em { font-size: 34px; animation: bob 3s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.banner .t { flex: 1; min-width: 0; } .banner .t b { display: block; font-size: 15px; font-weight: var(--w-strong); } .banner .t small { color: #b9b2cc; }
.banner .btn { width: auto; padding: 10px 16px; }
.banner.soft { border-color: var(--line); background: var(--card); box-shadow: var(--shadow); }
.banner.soft .t small { color: var(--hint); }
.banner.flash { cursor: default; border-color: rgba(255, 120, 70, .5);
  background: radial-gradient(130% 170% at 0% 0%, rgba(255, 110, 60, .45), transparent 60%), rgba(40, 14, 8, .75);
  animation: glow 1.8s ease-in-out infinite; }
.banner.flash .t small { color: #ffcdb5; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(255, 120, 70, .4), 0 18px 44px -12px rgba(255, 110, 60, .7); } }
.banner.sub { border-color: rgba(79, 157, 255, .45); background: radial-gradient(130% 170% at 0% 0%, rgba(79, 157, 255, .38), transparent 60%), rgba(8, 18, 40, .75); }
.banner.sub .t small { color: #b8d3ff; }

/* карусель конкурсов */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 78%; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); cursor: pointer; }
.mini:only-child { flex-basis: 100%; }
.mini h3 { font-size: 15px; margin: 10px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .prize { font-size: 20px; }

/* карточки конкурсов */
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: var(--w-strong); color: var(--hint); letter-spacing: .03em; text-transform: uppercase; }
.contest { cursor: pointer; transition: transform .15s var(--ease), border-color .2s; }
.contest:active { transform: scale(.985); }
.contest h3 { font-size: 17px; margin: 10px 0 12px; }
.prize-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.prize-row small { display: block; color: var(--hint); font-size: 12px; }
.meta { display: flex; gap: 12px; color: var(--hint); font-size: 13px; white-space: nowrap; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.meta svg { width: 15px; height: 15px; }
.timebar { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .06); margin: 14px 0 2px; overflow: hidden; }
.timebar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent2), var(--gold-2)); box-shadow: 0 0 12px rgba(229, 194, 122, .5); }
.status-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px;
  background: rgba(139, 108, 255, .1); border: 1px solid rgba(139, 108, 255, .22); }
.status-line.muted { background: rgba(255, 255, 255, .03); border-color: var(--line); color: var(--hint); }
.status-line.win { background: rgba(61, 220, 151, .1); border-color: rgba(61, 220, 151, .25); }
.status-line .rank { margin-left: auto; font-weight: var(--w-strong); font-variant-numeric: var(--num); }
.more-hint { text-align: right; font-size: 13px; color: var(--link); margin-top: 8px; }
.ico-c { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 17px; background: var(--raise); border: 1px solid var(--line); }
.ico-c.plus { background: rgba(61, 220, 151, .1); } .ico-c.minus { background: rgba(255, 93, 108, .1); }

/* код со стрима */
.codebox .em { font-size: 26px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--raise); border: 1px solid var(--line); }
.codebox input { text-transform: uppercase; letter-spacing: .14em; font-weight: var(--w-strong); font-family: var(--display); font-size: 14px; }
.codebox input::placeholder { text-transform: none; letter-spacing: 0; font-weight: var(--w-medium); font-family: var(--font); }

/* стрим (админка) */
.live-panel { border-color: rgba(255, 120, 70, .55); box-shadow: 0 0 0 1px rgba(255, 120, 70, .25) inset, 0 20px 50px -20px rgba(255, 110, 60, .5); }
.big-timer { font-family: var(--display); font-size: 48px; font-weight: var(--w-strong); text-align: center; font-variant-numeric: var(--num); }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.code-tag { font-family: var(--display); font-size: 17px; font-weight: var(--w-strong); letter-spacing: .12em; }

/* поддержка */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; }
.bubble.me { align-self: flex-end; background: linear-gradient(135deg, #8b6cff, #6a4be6); color: #fff; border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--raise); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .who { font-size: 12px; font-weight: var(--w-strong); color: var(--gold-2); margin-bottom: 2px; }
.bubble .time { font-size: 11px; opacity: .6; text-align: right; margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: var(--w-strong); list-style: none; }
.faq summary::after { content: "＋"; float: right; color: var(--gold-2); }
.faq details[open] summary::after { content: "－"; }
.faq p { margin: 8px 0 0; color: var(--hint); }
.promo-box { text-align: center; background: rgba(229, 194, 122, .05); border: 1px dashed rgba(229, 194, 122, .5); border-radius: 18px; padding: 14px; margin: 14px 0; }
.promo-code { font-family: var(--display); font-size: 22px; font-weight: var(--w-strong); letter-spacing: .1em; margin: 8px 0 12px; cursor: pointer; word-break: break-all;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.thread { cursor: pointer; }
.thread .grow small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* прогресс */
.progress { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin: 8px 0 4px; }
.progress i { display: block; height: 100%; border-radius: 4px; background: var(--ok); }
.progress.warn i { background: var(--warn); } .progress.bad i { background: var(--bad); }
.progress.vip i { background: linear-gradient(90deg, var(--accent2), var(--gold-2)); box-shadow: 0 0 14px rgba(229, 194, 122, .55); }

/* графики аналитики */
.viz { --series-1: #6b9dff; --series-2: #e5a35a; --grid: rgba(255, 255, 255, .08); position: relative; }
.viz svg { width: 100%; height: 150px; display: block; overflow: visible; }
.viz .axis { font-size: 10px; fill: var(--hint); }
.viz .tip { position: absolute; pointer-events: none; background: #f4f1ea; color: #0b0b10; font-size: 12px; padding: 4px 8px; border-radius: 8px;
  white-space: nowrap; transform: translate(-50%, -100%); margin-top: -6px; }
.viz table { width: 100%; font-size: 13px; border-collapse: collapse; }
.viz td { padding: 4px; border-bottom: 1px solid var(--line); } .viz td:last-child { text-align: right; font-variant-numeric: var(--num); }
.roi .verdict { font-weight: var(--w-strong); }

/* ---------------------------------------------------------------- VIP, серия, друзья, стримы */
.vip-chip { position: relative; z-index: 1; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .06); color: var(--text);
  font: inherit; font-size: 12px; font-weight: var(--w-strong); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; letter-spacing: .02em; }
.vip-chip.lv1 { background: linear-gradient(135deg, #e8a978, #8d4f26); color: #1b0d03; border-color: transparent; }
.vip-chip.lv2 { background: linear-gradient(135deg, #f8fafc, #8c99ab); color: #0f172a; border-color: transparent; }
.vip-chip.lv3 { background: var(--gold); color: #1a1206; border-color: transparent; box-shadow: 0 0 18px rgba(229, 194, 122, .5); }
.vip-chip.lv4 { background: linear-gradient(135deg, #e0f7ff, #67b7e8 55%, #2f6fb0); color: #051628; border-color: transparent; box-shadow: 0 0 18px rgba(103, 183, 232, .45); }
.vip-chip.lv5 { background: linear-gradient(135deg, #f5d0ff, #9b6cff 50%, #e5c27a); color: #12071f; border-color: transparent; box-shadow: 0 0 22px rgba(155, 108, 255, .6); }
.hero .vip-mini { position: relative; z-index: 1; margin: 4px 0 4px; }
.hero .vip-mini .progress { height: 5px; margin: 8px 0 4px; }
.hero .vip-mini .hint { font-size: 12px; }

.card.streak .dots { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 6px; margin: 14px 0 10px; }
.card.streak .dots i { display: grid; place-items: center; height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .04); font-style: normal; font-size: 14px;
  border: 1px solid var(--line); transition: all .4s var(--ease); }
.card.streak .dots i.on { background: linear-gradient(180deg, #ffb35c, #ff7a3d); border-color: transparent; box-shadow: 0 6px 16px -6px rgba(255, 122, 61, .8); }
.card.streak .dots i.gift { border-style: dashed; border-color: rgba(229, 194, 122, .7); }
.card.streak .dots i.gift.on { border-style: solid; background: var(--gold); }

.copybox { background: rgba(255, 255, 255, .04); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 12px 14px; margin: 12px 0 4px; text-align: center; user-select: all; }
/* предупреждение в окне «внесите депозит» */
.warnbox { background: rgba(255, 181, 71, .1); color: var(--warn); box-shadow: 0 0 0 1px rgba(255, 181, 71, .3) inset; border-radius: 14px; padding: 12px 14px; margin: 12px 0; line-height: 1.45; }
.warnbox .mono { word-break: break-all; }
.live-card .btns { flex-wrap: wrap; }
.live-card .btns .btn { flex: 1 1 30%; }
.lv-table input, .lv-table select { padding: 9px 10px; }
.lv-row { display: grid; grid-template-columns: 46px 1fr 84px 56px; gap: 6px; align-items: end; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.lv-row label { font-size: 11px; color: var(--hint); display: block; margin-bottom: 3px; }
.lv-row .dc { grid-column: 1 / 3; } .lv-row .dc2 { grid-column: 3 / -1; }

/* ---------------------------------------------------------------- КЕЙСЫ: три уровня */
/* материал уровня: цвет свечения, окантовки и фона */
.tier-basic { --t1: #d6d9e0; --t2: #8a8f9c; --tglow: rgba(180, 188, 204, .28); --tbg: rgba(150, 158, 175, .08); --tname: "Обычный"; }
.tier-premium { --t1: #c4f1ff; --t2: #3aa8ff; --tglow: rgba(58, 168, 255, .45); --tbg: rgba(58, 168, 255, .1); }
.tier-legendary { --t1: #fff1c4; --t2: #e5b24a; --tglow: rgba(229, 178, 74, .6); --tbg: rgba(229, 178, 74, .12); }

.tiers { display: grid; gap: 12px; }
.tier-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  padding: 16px; border-radius: 24px; border: 1px solid color-mix(in srgb, var(--t2) 40%, transparent);
  background: radial-gradient(120% 140% at 0% 50%, var(--tbg), transparent 60%), rgba(255, 255, 255, .025);
  box-shadow: 0 24px 50px -30px var(--tglow), 0 1px 0 rgba(255, 255, 255, .06) inset; }
.tier-card .case-art { width: 96px; height: 96px; }
.tier-card .tc-name { font-family: var(--display); font-weight: var(--w-strong); font-size: 16px; margin: 0; }
.tier-card .tc-label { font-size: 10.5px; font-weight: var(--w-strong); letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier-card p { margin: 4px 0 10px; font-size: 12.5px; color: var(--hint); line-height: 1.4; }
.tier-card .tc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tier-card .tc-count { font-family: var(--display); font-weight: var(--w-strong); font-size: 13px; padding: 5px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--t2) 18%, transparent); color: var(--t1); }
.tier-card .tc-lock { font-size: 12px; color: var(--hint); }
.tier-card .btn.sm { padding: 8px 14px; }
.tier-legendary.tier-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin, 0deg), transparent, rgba(255, 225, 150, .95), transparent 35%, transparent 60%, rgba(229, 178, 74, .7), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinBorder 6s linear infinite; }
.tier-card.empty-tier .case-art { filter: saturate(.6) brightness(.85); }

/* «арт» кейса: пьедестал со свечением, парящий эмодзи и блики */
.case-art { position: relative; display: grid; place-items: center; flex: none; }
.case-art::before { content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: radial-gradient(circle, var(--tglow), transparent 68%); filter: blur(6px); animation: breathe 3.2s ease-in-out infinite; }
.case-art::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 6%; height: 12%; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .7), transparent 70%); }
.case-art .em { position: relative; z-index: 1; font-size: 52px; line-height: 1; animation: float 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px var(--tglow)); }
.tier-legendary .case-art .em { animation: float 3.2s ease-in-out infinite, legend 4s ease-in-out infinite; }
.case-art .spark { position: absolute; z-index: 2; width: 4px; height: 4px; border-radius: 50%; background: var(--t1); box-shadow: 0 0 8px var(--t1); opacity: 0;
  animation: spark 3s ease-in-out infinite; }
.case-art .spark:nth-of-type(1) { top: 16%; left: 22%; } .case-art .spark:nth-of-type(2) { top: 26%; right: 16%; animation-delay: 1s; }
.case-art .spark:nth-of-type(3) { bottom: 24%; left: 14%; animation-delay: 2s; }
@keyframes float { 50% { transform: translateY(-7px); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes legend { 50% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(255, 210, 120, .9)); } }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }

/* ежедневный кейс */
.daily { overflow: hidden; text-align: center; padding: 22px 16px 18px; border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--t2, #8a8f9c) 45%, transparent);
  background: radial-gradient(90% 90% at 50% 0%, var(--tbg, rgba(255, 255, 255, .06)), transparent 70%), rgba(255, 255, 255, .025);
  box-shadow: 0 30px 60px -30px var(--tglow, rgba(0, 0, 0, .8)); }
.daily .case-art { width: 130px; height: 130px; margin: 0 auto 4px; }
.daily .case-art .em { font-size: 66px; }
.daily .kicker { font-size: 10.5px; font-weight: var(--w-strong); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.daily h2 { text-transform: none; letter-spacing: -0.5px; color: var(--text); font-size: 20px; margin: 4px 0 4px; font-weight: var(--w-head); }
.daily .hint { color: #a9a3b8; }
.daily a { color: var(--link); }

/* прочие кейсы инвентаря */
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-card { position: relative; text-align: center; padding: 16px 12px 14px; border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(100% 80% at 50% 0%, rgba(139, 108, 255, .14), transparent 70%), rgba(255, 255, 255, .025); }
.case-card .case-art { width: 84px; height: 84px; margin: 0 auto; }
.case-card .case-art .em { font-size: 46px; }
.case-card .cnt { position: absolute; top: 10px; right: 10px; }
.case-card h3 { font-size: 13.5px; margin: 8px 0 10px; }

/* открытие: рулетка */
.case-open { --t1: #e8e6ef; --t2: #9b98a6; --tglow: rgba(139, 108, 255, .35); }
.case-open .co-title { text-align: center; margin: 0 0 2px; }
.case-open .co-title .tc-label { font-size: 10.5px; font-weight: var(--w-strong); letter-spacing: .16em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--t1), var(--t2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-open .co-title h2 { text-transform: none; letter-spacing: -0.5px; color: var(--text); font-size: 19px; font-weight: var(--w-head); margin: 4px 0 0; }
.roulette { position: relative; overflow: hidden; border-radius: 20px; padding: 14px 0; margin: 16px -4px;
  background: radial-gradient(60% 100% at 50% 50%, var(--tbg, rgba(255, 255, 255, .05)), transparent 70%), rgba(0, 0, 0, .35);
  border: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent); }
.r-track { display: flex; gap: 8px; will-change: transform; padding: 0 6px; }
.r-item { position: relative; flex: none; width: 92px; height: 112px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 6px; border: 1px solid color-mix(in srgb, var(--rc, var(--r-common)) 40%, transparent);
  background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--rc, var(--r-common)) 30%, transparent), transparent 70%), #111119; }
.r-item::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--rc, var(--r-common));
  box-shadow: 0 0 12px var(--rc, var(--r-common)); }
.r-item .e { font-size: 36px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.r-item .t { font-size: 11px; font-weight: var(--w-strong); color: #cbc7d6; line-height: 1.15; max-height: 26px; overflow: hidden; }
.r-item.win { transform: scale(1.06); transition: transform .4s var(--ease); box-shadow: 0 0 0 2px var(--rc), 0 0 36px var(--rc); z-index: 1; }
.r-marker { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; z-index: 3;
  background: linear-gradient(180deg, transparent, var(--gold-1), transparent); box-shadow: 0 0 14px var(--gold-2); }
.r-marker::before, .r-marker::after { content: ""; position: absolute; left: 50%; margin-left: -7px; border: 7px solid transparent; }
.r-marker::before { top: 0; border-top-color: var(--gold-2); }
.r-marker::after { bottom: 0; border-bottom-color: var(--gold-2); }
.rc-common { --rc: var(--r-common); } .rc-uncommon { --rc: var(--r-uncommon); } .rc-rare { --rc: var(--r-rare); }
.rc-epic { --rc: var(--r-epic); } .rc-legendary { --rc: var(--r-legendary); }
.result { text-align: center; padding: 10px 0 4px; animation: pop .5s var(--ease); }
.result .e { font-size: 58px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .6)); }
.result .big { font-size: 30px; letter-spacing: -1.2px; margin: 6px 0 4px; }
.result .big.win-amount { background: linear-gradient(180deg, #b9ffd9, #3ddc97); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(61, 220, 151, .45)); }
@keyframes pop { from { transform: scale(.85); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.rw-row { display: grid; grid-template-columns: 96px 48px 1fr; gap: 6px; align-items: center; margin: 6px 0; }
.rw-row .full { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 6px; align-items: center; }
.rw-row input, .rw-row select { padding: 9px; font-size: 14px; }
.reward-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; margin: 6px 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--rc) 16%, transparent), rgba(255, 255, 255, .02) 60%); border: 1px solid var(--line); }
.reward-chip small { color: var(--rc); font-weight: var(--w-strong); letter-spacing: .04em; text-transform: uppercase; font-size: 10.5px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- профиль пользователя (админка) */
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: var(--w-strong);
  font-size: 16px; color: var(--text); background: linear-gradient(135deg, #2a2a3a, #15151f); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.avatar.sm { width: 38px; height: 38px; font-size: 15px; }
.avatar.lg { width: 64px; height: 64px; font-size: 26px; }
.avatar.lv1 { background: linear-gradient(135deg, #e8a978, #8d4f26); color: #1b0d03; box-shadow: none; }
.avatar.lv2 { background: linear-gradient(135deg, #f8fafc, #8c99ab); color: #0f172a; box-shadow: none; }
.avatar.lv3 { background: var(--gold); color: #1a1206; box-shadow: 0 0 18px rgba(229, 194, 122, .45); }
.avatar.lv4 { background: linear-gradient(135deg, #e0f7ff, #67b7e8 55%, #2f6fb0); color: #051628; box-shadow: 0 0 18px rgba(103, 183, 232, .4); }
.avatar.lv5 { background: linear-gradient(135deg, #f5d0ff, #9b6cff 50%, #e5c27a); color: #12071f; box-shadow: 0 0 22px rgba(155, 108, 255, .55); }
.profile-head { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; padding-right: 34px; }
.profile-head h2 { text-transform: none; letter-spacing: -0.5px; color: var(--text); font-size: 20px; margin: 0 0 2px; font-weight: var(--w-head); }
.profile-head .badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.copyable { cursor: pointer; border-bottom: 1px dashed var(--line-strong); }
.profile-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.profile-stats .stat { padding: 11px 10px; background: rgba(255, 255, 255, .03); }
.profile-stats .stat b { font-size: 15px; }
.profile-stats .stat span { font-size: 11px; line-height: 1.25; display: block; margin-top: 2px; }
.profile .segment { margin: 14px 0 4px; }
.profile .segment button { padding: 9px 4px; font-size: 13px; }
.info-list { padding: 6px 16px; }
.info-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: var(--hint); flex: none; }
.info-row b { font-weight: var(--w-strong); text-align: right; }
.risk-card { border-color: rgba(255, 93, 108, .35); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 93, 108, .1), transparent 60%), var(--card); }
.code-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.user-row { cursor: pointer; }
.user-row:active { opacity: .7; }

/* выдача кейса: плитки выбора */
.grant-card { border-color: rgba(229, 194, 122, .35); background: radial-gradient(120% 140% at 100% 0%, rgba(229, 194, 122, .1), transparent 60%), var(--card); }
.grant-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.gt:not([class*="tier-"]) { --t1: #e8e6ef; --t2: #8b6cff; --tglow: rgba(139, 108, 255, .35); }
.gt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px 10px; border-radius: 16px; cursor: pointer; text-align: center; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03); transition: all .25s var(--ease); }
.gt input { position: absolute; opacity: 0; pointer-events: none; }
.gt .gt-em { font-size: 30px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.gt .gt-name { font-size: 11.5px; font-weight: var(--w-strong); line-height: 1.2; color: var(--hint); }
.gt:has(input:checked) { border-color: color-mix(in srgb, var(--t2) 70%, transparent);
  background: radial-gradient(100% 90% at 50% 0%, color-mix(in srgb, var(--t2) 22%, transparent), transparent 70%), rgba(255, 255, 255, .04);
  box-shadow: 0 10px 26px -12px var(--tglow), 0 0 0 1px color-mix(in srgb, var(--t2) 40%, transparent) inset; }
.gt:has(input:checked) .gt-name { color: var(--text); }
.stepper { display: flex; align-items: center; margin-left: auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: var(--raise); color: var(--text); font-size: 18px; cursor: pointer; }
.stepper input { width: 54px; border: 0; border-radius: 0; text-align: center; padding: 8px 4px; background: transparent; font-weight: var(--w-strong); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* главная: «активных конкурсов нет» — в стиле карточек конкурсов */
.mini.no-contests { cursor: pointer; padding: 16px; margin-bottom: 4px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(139, 108, 255, .12), transparent 60%), var(--card); }
.mini.no-contests h3 { margin: 0 0 4px; font-size: 15px; white-space: normal; }
.mini.no-contests .hint { font-size: 12.5px; line-height: 1.4; }
.nc-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }

/* ---------------------------------------------------------------- быстрый розыгрыш на главной */
.flash-card { overflow: hidden; padding: 14px 16px 16px; border-radius: 24px; border-color: rgba(255, 110, 70, .45);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 90, 60, .22), transparent 55%),
              radial-gradient(100% 120% at 0% 100%, rgba(229, 194, 122, .10), transparent 60%), rgba(20, 12, 14, .78);
  box-shadow: 0 24px 50px -28px rgba(255, 90, 60, .8), 0 1px 0 rgba(255, 255, 255, .06) inset;
  animation: flashGlow 2.4s ease-in-out infinite; }
.flash-card.joined { animation: none; border-color: rgba(61, 220, 151, .35);
  box-shadow: 0 24px 50px -30px rgba(61, 220, 151, .5), 0 1px 0 rgba(255, 255, 255, .06) inset; }
@keyframes flashGlow { 50% { box-shadow: 0 0 0 1px rgba(255, 110, 70, .35), 0 26px 56px -22px rgba(255, 90, 60, .95), 0 1px 0 rgba(255, 255, 255, .06) inset; } }
.fc-top { display: flex; align-items: center; gap: 8px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: var(--w-strong);
  letter-spacing: .12em; color: #fff; background: rgba(255, 70, 70, .18); box-shadow: 0 0 0 1px rgba(255, 90, 90, .45) inset; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.fc-kind { font-size: 11px; font-weight: var(--w-strong); letter-spacing: .12em; text-transform: uppercase; color: #ffb59c; }
.fc-timer { margin-left: auto; font-family: var(--display); font-weight: var(--w-strong); font-size: 22px; font-variant-numeric: var(--num); color: var(--text); }
.fc-timer.urgent { color: #ff6b6b; animation: blink .6s ease-in-out infinite; }
.fc-main { display: flex; gap: 14px; align-items: center; margin: 12px 0 14px; }
.fc-ico { flex: none; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 28px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 170, 90, .35), rgba(255, 90, 60, .08) 70%); box-shadow: 0 0 0 1px rgba(255, 140, 90, .35) inset;
  filter: drop-shadow(0 8px 18px rgba(255, 90, 60, .45)); }
.fc-main h3 { margin: 0 0 4px; font-size: 16px; line-height: 1.25; }
.fc-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.fc-prize { font-family: var(--display); font-weight: var(--w-strong); font-size: 17px; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fc-people { font-size: 12.5px; color: var(--hint); }
.fc-status { padding: 11px 14px; border-radius: 14px; font-size: 13.5px; font-weight: var(--w-strong); color: var(--hint); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line); }
.fc-status.ok { color: var(--ok); background: rgba(61, 220, 151, .08); border-color: rgba(61, 220, 151, .25); }
.profile-actions .btn { flex: 1 1 0; min-width: 0; white-space: nowrap; padding-left: 8px; padding-right: 8px; }

/* ================================================================ ИГРЫ */
.gate-card { text-align: center; border-color: rgba(229, 194, 122, .35); }
.gate-card .em { font-size: 40px; }
.create-card { border-color: rgba(229, 194, 122, .3); background: radial-gradient(120% 140% at 100% 0%, rgba(229, 194, 122, .09), transparent 60%), var(--card); }
.stake-input { font-family: var(--display); font-weight: var(--w-strong); font-size: 18px; }
.quick-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.quick-chips button, .seg-mini button { border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; font-weight: var(--w-strong);
  font-size: 13px; padding: 7px 12px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.quick-chips button:active { transform: scale(.95); }
.seg-mini { display: flex; gap: 6px; }
.seg-mini button { flex: 1; }
.seg-mini button.active { background: var(--gold); color: #1a1206; border-color: transparent; }
.pot-preview { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 13.5px; }
.prize-sm { font-family: var(--display); font-weight: var(--w-strong); background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-card { padding: 14px 16px; border-color: color-mix(in srgb, var(--t2, #8b6cff) 30%, var(--line)); }
.gc-title { font-weight: var(--w-strong); font-size: 15px; }
.gc-foot { margin-top: 12px; flex-wrap: wrap; gap: 8px; }
.seat-dots { display: flex; gap: 4px; }
.seat-dots .sd { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: var(--w-strong);
  border: 1px dashed var(--line-strong); color: var(--hint); }
.seat-dots .sd.on { border: 0; background: linear-gradient(135deg, #2f2f42, #1a1a26); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.seat-dots .sd.me { background: var(--gold); color: #1a1206; }
.rules summary, .fair summary { cursor: pointer; font-weight: var(--w-strong); list-style: none; }
.rules p { margin: 10px 0 0; }
.fair { margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.fair summary { font-size: 13px; color: var(--hint); }
.fair p { margin: 6px 0 0; word-break: break-all; }
.loader.small { width: 18px; height: 18px; margin: 0; border-width: 2px; display: inline-block; vertical-align: middle; }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; color: var(--hint); font-weight: var(--w-strong); }

/* экран игры */
.game-view .gv-head { text-align: center; margin-bottom: 12px; }
.game-view .gv-head .tc-label { font-size: 10.5px; font-weight: var(--w-strong); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.game-view .gv-head h2 { text-transform: none; letter-spacing: -0.5px; color: var(--text); font-size: 19px; font-weight: var(--w-head); margin: 4px 0; }
.bj-view .gv-head .row { text-align: left; margin-top: 4px; }

/* батл: колонки игроков */
.battle-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; }
.bcol { border-radius: 18px; padding: 10px 6px 10px; text-align: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  transition: all .4s var(--ease); min-width: 0; }
.bcol.me { border-color: rgba(229, 194, 122, .35); }
.bcol.win { border-color: rgba(61, 220, 151, .6); background: radial-gradient(100% 70% at 50% 0%, rgba(61, 220, 151, .16), transparent 70%), rgba(255, 255, 255, .03);
  box-shadow: 0 16px 40px -20px rgba(61, 220, 151, .7); }
.bname { font-size: 12px; font-weight: var(--w-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.brolls { display: grid; gap: 6px; }
.bslot { height: 58px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--rc, var(--r-common)) 28%, transparent), transparent 70%), #111119;
  border: 1px solid color-mix(in srgb, var(--rc, #2a2a38) 45%, transparent); }
.bslot .e { font-size: 24px; line-height: 1; }
.bslot .e.q { color: var(--dim); font-weight: var(--w-strong); font-size: 18px; }
.bslot .t { font-size: 11px; font-weight: var(--w-strong); color: #d9d4e4; }
.bslot.land { animation: land .45s var(--ease); }
@keyframes land { 0% { transform: scale(1.18); box-shadow: 0 0 26px var(--rc); } 100% { transform: none; } }
.btotal { margin-top: 8px; font-family: var(--display); font-weight: var(--w-strong); font-size: 16px; min-height: 22px; }
.bpay { margin-top: 2px; font-weight: var(--w-strong); font-size: 13px; color: var(--ok); }

/* 21: стол и карты */
.felt { border-radius: 24px; padding: 14px; background: radial-gradient(120% 90% at 50% 50%, #0f3b2c 0%, #0a2219 60%, #07150f 100%);
  border: 1px solid rgba(229, 194, 122, .25); box-shadow: inset 0 0 40px rgba(0, 0, 0, .6); }
.felt-mid { text-align: center; font-family: var(--display); font-size: 12px; letter-spacing: .4em; color: rgba(229, 194, 122, .45); margin: 10px 0; }
.bj-hand { padding: 10px; border-radius: 16px; border: 1px solid transparent; transition: all .35s var(--ease); }
.bj-hand.me { background: rgba(0, 0, 0, .18); }
.bj-hand.win { border-color: rgba(61, 220, 151, .6); box-shadow: 0 0 30px -8px rgba(61, 220, 151, .6); }
.bj-label { font-size: 12.5px; font-weight: var(--w-strong); color: #cfe8dc; }
.bj-score { font-family: var(--display); font-weight: var(--w-strong); font-size: 22px; color: #fff; text-align: right; line-height: 1; }
.bj-score small { display: block; font-family: var(--font); font-size: 10.5px; font-weight: var(--w-strong); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2); margin-top: 3px; }
.bj-score.bust { color: #ff7b7b; }
.cards { display: flex; gap: 0; margin-top: 10px; min-height: 86px; padding-left: 4px; }
.pcard { position: relative; width: 60px; height: 84px; border-radius: 9px; margin-left: -14px; flex: none;
  background: linear-gradient(160deg, #ffffff, #ece7dc); color: #14141c; box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .08) inset;
  animation: deal .4s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
.pcard:first-child { margin-left: 0; }
.pcard.red { color: #c81e3a; }
.pcard .r { position: absolute; top: 5px; left: 7px; font-weight: var(--w-strong); font-size: 15px; line-height: 1; }
.pcard .r2 { position: absolute; bottom: 5px; right: 7px; font-weight: var(--w-strong); font-size: 15px; line-height: 1; transform: rotate(180deg); }
.pcard .s { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; }
.pcard.back { background: repeating-linear-gradient(45deg, #2a1d0c 0 6px, #3a2810 6px 12px); box-shadow: 0 8px 18px rgba(0, 0, 0, .45), 0 0 0 2px rgba(229, 194, 122, .55) inset; }
.pcard.back::after { content: "♛"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; color: rgba(229, 194, 122, .75); }
@keyframes deal { from { opacity: 0; transform: translateY(-24px) rotate(-8deg); } to { opacity: 1; transform: none; } }
.bj-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; }
.bj-view .fc-status { margin-top: 14px; text-align: center; }

/* =====================================================================
   Админка: пульт, группы разделов, навигация внутри раздела
   ===================================================================== */
.adm-hero { position: relative; overflow: hidden; margin-top: 14px; padding: 18px 18px 16px; border-radius: 26px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(229, 194, 122, .16), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(139, 108, 255, .16), transparent 60%), rgba(255, 255, 255, .03);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); }
.adm-hero h1 { margin: 2px 0 0; font-size: 24px; }
.adm-hero .eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-weight: var(--w-strong); }
.role-pill { flex: none; font-size: 11.5px; font-weight: var(--w-strong); padding: 6px 11px; border-radius: 999px; letter-spacing: .02em;
  background: var(--raise); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.role-pill.r3 { background: var(--gold); color: #1a1206; box-shadow: 0 6px 18px -8px rgba(229, 194, 122, .8); }
.role-pill.r2 { background: rgba(139, 108, 255, .16); color: var(--live-fg); box-shadow: 0 0 0 1px rgba(139, 108, 255, .35) inset; }
.adm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 16px; border-radius: 16px; overflow: hidden;
  background: var(--line); }
.adm-kpis > div { background: rgba(10, 10, 16, .72); padding: 11px 10px; min-width: 0; }
.adm-kpis b { display: block; font-family: var(--display); font-weight: var(--w-strong); font-size: 17px; font-variant-numeric: var(--num);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-kpis span { display: block; font-size: 11px; color: var(--hint); line-height: 1.25; margin-top: 2px; }
.adm-search { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 0 14px; border-radius: 16px;
  background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; color: var(--hint); }
.adm-search:focus-within { box-shadow: 0 0 0 1px rgba(229, 194, 122, .55) inset, 0 0 0 4px rgba(229, 194, 122, .08); color: var(--gold-2); }
.adm-search input { flex: 1; border: 0 !important; background: none !important; box-shadow: none !important; padding: 14px 0 !important; margin: 0 !important; min-width: 0; }
.adm-alerts { display: grid; gap: 8px; }
.adm-alert { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--text); cursor: pointer;
  padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 181, 71, .07); box-shadow: 0 0 0 1px rgba(255, 181, 71, .22) inset;
  transition: transform .2s var(--ease); }
.adm-alert:active { transform: scale(.985); }
.adm-alert.bad { background: rgba(255, 93, 108, .07); box-shadow: 0 0 0 1px rgba(255, 93, 108, .24) inset; }
.adm-alert .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; font-size: 19px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.adm-alert b { display: block; font-weight: var(--w-strong); }
.adm-alert small { color: var(--hint); font-size: 12.5px; }
.adm-alert svg { color: var(--hint); flex: none; }
.adm-calm { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: rgba(61, 220, 151, .06);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, .2) inset; }
.adm-calm > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(61, 220, 151, .14);
  color: var(--ok); font-weight: var(--w-strong); font-size: 18px; }
.adm-calm b { display: block; }
.adm-calm small { color: var(--hint); font-size: 12.5px; }
.adm-live { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.adm-live button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: var(--w-strong); color: var(--live-fg);
  padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(139, 108, 255, .12); box-shadow: 0 0 0 1px rgba(139, 108, 255, .3) inset; cursor: pointer; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent2); box-shadow: 0 0 0 0 rgba(139, 108, 255, .7); animation: pdot 1.6s infinite; }
@keyframes pdot { 70% { box-shadow: 0 0 0 8px rgba(139, 108, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 108, 255, 0); } }
.adm-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.adm-quick button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 84px; padding: 12px 6px;
  font: inherit; font-size: 12.5px; font-weight: var(--w-strong); color: var(--text); text-align: center; line-height: 1.2; cursor: pointer;
  border: 0; border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow); transition: transform .2s var(--ease); }
.adm-quick button span { font-size: 22px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.adm-quick button:active, .adm-tile:active { transform: scale(.97); }
.adm-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.adm-tile { position: relative; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  text-align: left; font: inherit; color: var(--text); cursor: pointer; padding: 12px; border: 0; border-radius: 18px; min-width: 0;
  background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; transition: transform .2s var(--ease), background .2s; }
.adm-tile .ic { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; border-radius: 13px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); box-shadow: 0 0 0 1px var(--line) inset; }
.adm-tile b { font-size: 14px; font-weight: var(--w-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-tile small { font-size: 11.5px; color: var(--hint); line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-style: normal;
  font-size: 11px; font-weight: var(--w-strong); font-variant-numeric: var(--num); background: var(--warn); color: #1d1200; margin-left: 6px; }
.cnt.bad { background: var(--bad); color: #fff; }
.cnt.live { background: var(--accent2); color: #fff; }
.adm-tile .cnt { position: absolute; top: 8px; right: 8px; margin: 0; }
/* шапка раздела: назад к пульту, название, все разделы */
.adm-bar { position: sticky; top: 60px; z-index: 6; display: flex; align-items: center; gap: 8px; margin: 0 -16px; padding: 10px 16px;
  background: linear-gradient(180deg, rgba(7, 7, 11, .94), rgba(7, 7, 11, .78)); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--line); }
.adm-back, .adm-menu { display: inline-flex; align-items: center; gap: 2px; font: inherit; font-size: 13.5px; font-weight: var(--w-strong); color: var(--link);
  border: 0; background: var(--raise); border-radius: 12px; padding: 8px 10px 8px 6px; cursor: pointer; }
.adm-menu { padding: 8px; color: var(--text); }
.adm-title { flex: 1; min-width: 0; text-align: center; font-family: var(--display); font-weight: var(--w-strong); font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-title span { margin-right: 6px; }
.adm-sib { padding-top: 10px; }
.adm-sib button .cnt { margin-left: 6px; }
.adm-sw-g { margin-bottom: 14px; }
.adm-sw-g > small { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--hint); margin: 0 2px 8px; }
.adm-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.adm-sw button { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: var(--w-strong); color: var(--text); text-align: left;
  padding: 10px 12px; border: 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; cursor: pointer; }
.adm-sw button .ic { font-size: 17px; }
.adm-sw button .cnt { margin-left: auto; }
.adm-sw button.active { box-shadow: 0 0 0 1px rgba(229, 194, 122, .6) inset; background: rgba(229, 194, 122, .08); }
@media (max-width: 360px) { .adm-tiles, .adm-sw { grid-template-columns: 1fr; } .adm-quick { grid-template-columns: 1fr 1fr; } }
.adm-tile.has-cnt { padding-right: 34px; }
.adm-tile:last-child:nth-child(odd) { grid-column: span 2; }

/* настройки: сворачиваемые группы вместо одной длинной простыни */
.fold-form { display: grid; gap: 10px; margin-top: 10px; }
.fold { border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; overflow: hidden; }
.fold[open] { box-shadow: 0 0 0 1px var(--line-strong) inset, var(--shadow); }
.fold > summary { list-style: none; display: grid; grid-template-columns: 38px 1fr auto 16px; grid-template-rows: auto auto; column-gap: 10px;
  align-items: center; padding: 14px; cursor: pointer; user-select: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > span { grid-row: span 2; width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); box-shadow: 0 0 0 1px var(--line) inset; }
.fold > summary > b { font-weight: var(--w-strong); }
.fold > summary > small { grid-column: 2; color: var(--hint); font-size: 12px; }
.fold > summary > .badge { grid-column: 3; grid-row: 1 / span 2; }
.fold > summary::after { content: ""; grid-column: 4; grid-row: 1 / span 2; width: 8px; height: 8px; border-right: 2px solid var(--hint);
  border-bottom: 2px solid var(--hint); transform: rotate(45deg); transition: transform .25s var(--ease); justify-self: center; margin-top: -4px; }
.fold[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.fold-body { padding: 0 14px 16px; border-top: 1px solid var(--line); }
.fold-body > :first-child { margin-top: 12px; }
.save-bar { position: sticky; bottom: calc(86px + var(--safe-b)); z-index: 5; padding: 6px 0 0; }
.save-bar .btn { box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9), 0 6px 18px -8px rgba(229, 194, 122, .6); }
#adm { padding-top: 6px; }
.fold-sec { margin-top: 10px; }
.fold-sec > summary { grid-template-columns: 38px 1fr 16px; }
.fold-sec > summary > b { grid-row: span 2; }
.fold-sec > summary::after { grid-column: 3; }
.fold-sec .fold-body > .card { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 12px 0 0; }
.fold-sec .fold-body > .card::before, .fold-sec .fold-body > .card::after { display: none; }
.flash-hl { animation: hl 1.6s var(--ease) 1; scroll-margin-top: 132px; }
@keyframes hl { 0%, 40% { box-shadow: 0 0 0 2px rgba(229, 194, 122, .8), 0 0 40px -6px rgba(229, 194, 122, .6); } 100% { box-shadow: 0 0 0 1px var(--line) inset; } }

/* ---------------------------------------------------------------- типографика: финальные правила */
/* все суммы, счётчики, таймеры — табличные цифры одной высоты, чтобы колонки и баланс не «прыгали» */
.amount, .prize, .prize-sm, .fc-prize, .fc-timer, .big-timer, .btotal, .bpay, .bj-score, .stake-input,
.adm-kpis b, .stat b, .hero-stats b, .status-line .rank, .balance-pill, .kv b, .info-row b, .stepper input,
table.t td, .tier-card .tc-count, .place { font-variant-numeric: var(--num); }
.big-timer { letter-spacing: -1.8px; }
.fc-timer, .bj-score { letter-spacing: -0.6px; }
.balance-pill { letter-spacing: -0.2px; }
/* мелкие надписи капсом — средняя насыщенность, а не жирная */
.chip, .badge, .kicker, .tc-label, .fc-kind, .live-pill, .eyebrow, .reward-chip small, .bj-score small { font-weight: var(--w-medium); }
.hint, small, label.f { font-weight: var(--w-text); }

/* ---------------------------------------------------------------- VIP по каждому казино */
.cv { position: relative; z-index: 1; margin-top: 12px; display: grid; gap: 8px; }
.cv-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.cv-row .cv-name { font-weight: var(--w-strong); font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-row .cv-lv { font-size: 12.5px; color: var(--hint); text-align: right; white-space: nowrap; }
.cv-row .cv-lv b { color: var(--text); font-weight: var(--w-strong); }
.cv-row .progress { grid-column: 1 / -1; height: 4px; margin: 2px 0 0; }
.cv-row .cv-left { grid-column: 1 / -1; font-size: 11.5px; color: var(--hint); font-variant-numeric: var(--num); }
.sheet-title { text-align: center; margin: 0; text-transform: none; letter-spacing: -0.5px; color: var(--text); font-size: 20px; font-weight: var(--w-head); }
.seg-c { display: flex; gap: 6px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin: 14px 0; overflow-x: auto; }
.seg-c button { flex: 1; min-width: 96px; border: 0; border-radius: 12px; padding: 9px 6px; font: inherit; font-size: 13.5px; font-weight: var(--w-strong);
  color: var(--hint); background: transparent; cursor: pointer; transition: all .2s var(--ease); }
.seg-c button.on { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.seg-c button small { display: block; font-size: 11px; font-weight: var(--w-text); color: var(--hint); }
.note { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(139, 108, 255, .08);
  border: 1px solid rgba(139, 108, 255, .22); font-size: 13px; color: #cfc6ee; }
.thr { display: grid; grid-template-columns: 30px 1fr 120px; gap: 8px; align-items: center; padding: 4px 0; }
.thr input { text-align: right; font-variant-numeric: var(--num); }
