/* ===================================================== Тапать Гришку — оформление v7 «графит»
   Спокойная тёмная палитра, один акцент (золото Гришкоина), минимум градиентов.
   Цвета меняются в :root (тёмная тема) и body.light (светлая). */
:root {
  --bg: #0d0e12;
  --bg-2: #121318;
  --surface: #17181e;
  --surface-2: #1e2027;
  --surface-3: #262832;
  --stroke: rgba(255, 255, 255, .07);
  --stroke-2: rgba(255, 255, 255, .12);
  --text: #f2f2f5;
  --muted: #8e909c;
  --accent: #f0b43c;          /* золото Гришкоина — единственный яркий цвет */
  --accent-2: #d99a1e;
  --accent-ink: #1a1405;
  --accent-soft: rgba(240, 180, 60, .12);
  --good: #3fb37f;
  --good-soft: rgba(63, 179, 127, .14);
  --bad: #e5574f;
  --bad-soft: rgba(229, 87, 79, .14);
  --info: #6f9cf0;
  --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
  --r: 18px;
  --r-sm: 12px;
  --aura: rgba(240, 180, 60, .16);
  --nav-h: 74px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --spring: cubic-bezier(.2, 1.3, .4, 1);
  --smooth: cubic-bezier(.2, .8, .2, 1);
}
body.light {
  --bg: #f4f4f6;
  --bg-2: #ececf0;
  --surface: #ffffff;
  --surface-2: #f3f3f6;
  --surface-3: #e8e8ee;
  --stroke: rgba(20, 20, 40, .07);
  --stroke-2: rgba(20, 20, 40, .12);
  --text: #16171c;
  --muted: #6e707b;
  --accent: #e3a12a;
  --accent-2: #c98a13;
  --accent-ink: #ffffff;
  --accent-soft: rgba(227, 161, 42, .14);
  --shadow: 0 8px 24px rgba(20, 20, 40, .08);
  --shadow-sm: 0 2px 8px rgba(20, 20, 40, .06);
  --aura: rgba(227, 161, 42, .14);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--bg); overflow: hidden; -webkit-font-smoothing: antialiased;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation; overscroll-behavior: none;
}
button { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- фон: ровный, с едва заметным тёплым светом сверху */
.bg { position: fixed; inset: 0; overflow: hidden; background: var(--bg); }
.bg::before { content: ""; position: absolute; left: 50%; top: -35vh; width: 120vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(240, 180, 60, .07), transparent); pointer-events: none; }
body.light .bg::before { background: radial-gradient(closest-side, rgba(227, 161, 42, .10), transparent); }
.blob { display: none; }
.bg-img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .06; }

/* ---------------------------------------------------------------- заставка */
.splash { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; background: var(--bg); }
.splash-ava { width: 112px; height: 112px; border-radius: 50%; padding: 3px; background: var(--surface-3); box-shadow: 0 0 0 1px var(--stroke-2); animation: bob 1.8s ease-in-out infinite; }
.splash-ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--surface); }
.splash-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.splash-text { font-size: 15px; font-weight: 500; max-width: 320px; line-height: 1.45; color: var(--muted); }
.shimmer { background: linear-gradient(90deg, var(--muted) 0%, var(--text) 50%, var(--muted) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------------------------------------------------------------- страницы */
.app { position: fixed; inset: 0; }
.page {
  position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 14px 16px calc(var(--nav-h) + var(--safe-b) + 18px);
  opacity: 0; transform: translateY(10px); pointer-events: none; visibility: hidden;
  transition: opacity .24s var(--smooth), transform .3s var(--smooth), visibility 0s .3s;
}
.page.active { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .24s var(--smooth), transform .3s var(--smooth); }
.page-home { display: flex; flex-direction: column; overflow: hidden; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 10px); }
.page-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; gap: 10px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.page-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.2px; }
.page-head.sub { margin-top: 22px; }

/* ---------------------------------------------------------------- поверхности */
.glass, .tile, .level, .energy, .card, .stat, .ach, .seg, .me-bar, .podium-col .plate {
  background: var(--surface); border: 1px solid var(--stroke);
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-weight: 600; font-size: 13px; white-space: nowrap; }
.pill-glass { background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text); }
.pill-gold { background: var(--accent-soft); border: 1px solid transparent; font-size: 15px; font-weight: 700; }
.coin { flex: none; border-radius: 50%; position: relative; background: linear-gradient(160deg, #ffd981, var(--accent) 55%, var(--accent-2));
  box-shadow: inset 0 -2px 0 rgba(120, 70, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.coin::after { content: "Г"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; color: rgba(90, 50, 0, .85); }
.coin-lg { width: 36px; height: 36px; } .coin-lg::after { font-size: 18px; }
.coin-sm { width: 18px; height: 18px; } .coin-sm::after { font-size: 10px; }
.coin-xs { width: 14px; height: 14px; } .coin-xs::after { font-size: 8px; }
.ava { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--surface-3) center / cover; color: var(--text); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1px var(--stroke-2); }

.btn { border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 700; font-size: 15px; min-height: 46px; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--spring), filter .2s, opacity .2s, background .2s; }
.btn:active { transform: scale(.96); }
.btn-primary, .btn-gold { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: var(--surface-2); color: var(--muted); border: 1px solid var(--stroke); }
.btn[disabled] { opacity: .45; }
.btn-wide { width: 100%; }
.btn-sm { padding: 9px 12px; min-height: 40px; font-size: 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; }
.btn .coin { display: inline-block; vertical-align: -3px; margin-right: 5px; }

/* ---------------------------------------------------------------- шапка главной */
.hud { flex: none; }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hud-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--surface); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, background .2s; }
.icon-btn svg.i { width: 19px; height: 19px; }
.icon-btn.off { color: var(--muted); opacity: .6; }
.icon-btn.on { color: var(--text); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who-text { min-width: 0; }
.me-name { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-sub { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance-wrap { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 10px; }
.balance { font-size: 44px; font-weight: 800; letter-spacing: -1.6px; line-height: 1; }
.balance.bump { animation: bump .25s var(--spring); }
@keyframes bump { 40% { transform: scale(1.04); } }
.level { width: 100%; display: block; text-align: left; border-radius: 16px; padding: 10px 12px 11px; cursor: pointer; color: var(--text); }
.level-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.level-name { white-space: nowrap; }
.level-next { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-bar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.level-fill { height: 100%; width: 0; border-radius: 99px; background: var(--accent); transition: width .5s var(--smooth); }
.tiles { display: flex; gap: 8px; margin-top: 8px; }
.tile { flex: 1; min-width: 0; border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; }
.tile-k { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.tile b { font-size: 17px; font-weight: 700; margin-top: 1px; }
.tile-event { flex: 1.6; background: var(--accent-soft); border-color: transparent; font-size: 13px; font-weight: 700; justify-content: center; line-height: 1.25; }
.tile-event small { font-weight: 500; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------------------------------------------------------------- сцена и Гришка */
.stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; margin: 4px 0 8px; }
.aura { position: absolute; left: 50%; bottom: 4%; width: min(80vw, 56vh); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, var(--aura) 0%, transparent 66%); transition: background .6s; pointer-events: none; }
.ring { position: absolute; left: 50%; bottom: 0; width: min(64vw, 270px); height: 40px; transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, .06), transparent 70%); }
body.light .ring { background: radial-gradient(ellipse at center, rgba(20, 20, 40, .08), transparent 70%); }
.ring::before { content: ""; position: absolute; inset: 6px 12%; border-radius: 50%; border: 1px solid var(--stroke-2); }
.char-box { position: relative; height: 100%; aspect-ratio: 502 / 1270; max-width: 96vw; display: flex; align-items: flex-end; justify-content: center; }
.char-float { width: 100%; height: 100%; animation: idle 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.char-tilt { position: relative; width: 100%; height: 100%; transform-origin: 50% 85%; will-change: transform; }
.char-img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; display: block; pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); transition: filter .5s; }
.shadow { position: absolute; bottom: -4px; left: 50%; width: 80%; height: 14px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .3); filter: blur(6px);
  animation: shadow 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes shadow { 50% { transform: translateX(-50%) scale(.92); opacity: .75; } }
.tapzone { position: absolute; inset: 0; z-index: 4; cursor: pointer; touch-action: none; }

/* эффекты настроения — эмодзи поверх картинки, свечение приглушённое */
.fx { position: absolute; inset: 0; pointer-events: none; }
.fx span { position: absolute; font-size: clamp(20px, 6.5vw, 30px); opacity: 0; transform: scale(.3); transition: opacity .25s, transform .35s var(--spring); pointer-events: none; }
.fx-vein { left: 82%; top: 1%; } .fx-vein2 { left: 34%; top: 4%; font-size: 20px !important; }
.fx-sweat { left: 84%; top: 8%; } .fx-zzz { left: 82%; top: -4%; }
.fx-heart { top: 2%; } .h1 { left: 20%; } .h2 { left: 80%; } .h3 { left: 50%; top: -5% !important; }
.fx-lol { left: 86%; top: 3%; } .fx-shock { left: 78%; top: -3%; } .fx-fire { left: 12%; top: 0; }
.mood-annoyed .fx-vein { opacity: .85; transform: scale(.75); }
.mood-angry .fx-vein { opacity: 1; transform: scale(1); animation: pulse .6s ease-in-out infinite; }
.mood-rage .fx-vein, .mood-rage .fx-vein2, .mood-rage .fx-fire { opacity: 1; transform: scale(1.05); animation: pulse .35s ease-in-out infinite; }
.mood-tired .fx-sweat { opacity: 1; transform: scale(1); animation: drip 1.4s ease-in infinite; }
.mood-sleepy .fx-zzz { opacity: 1; transform: scale(1); animation: zzz 2.2s ease-in-out infinite; }
.mood-happy .fx-heart { opacity: 1; transform: scale(1); animation: floaty 2.4s ease-in-out infinite; }
.mood-happy .h2 { animation-delay: .5s; } .mood-happy .h3 { animation-delay: 1s; }
.mood-laughing .fx-lol { opacity: 1; transform: scale(1.05) rotate(-10deg); animation: wobble .4s ease-in-out infinite; }
.mood-shocked .fx-shock { opacity: 1; transform: scale(1.15); animation: pulse .3s ease-in-out infinite; }
.mood-annoyed { --aura: rgba(230, 140, 70, .16); }
.mood-angry { --aura: rgba(229, 87, 79, .22); }
.mood-rage { --aura: rgba(229, 60, 50, .34); }
.mood-tired { --aura: rgba(140, 140, 155, .14); }
.mood-sleepy { --aura: rgba(111, 156, 240, .16); }
.mood-happy { --aura: rgba(240, 180, 60, .22); }
.mood-laughing { --aura: rgba(240, 200, 80, .2); }
.mood-shocked { --aura: rgba(111, 156, 240, .22); }
.mood-rage .char-img { animation: tremble .09s linear infinite; filter: drop-shadow(0 0 14px rgba(229, 60, 50, .45)) drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.mood-angry .char-img { filter: drop-shadow(0 0 10px rgba(229, 87, 79, .3)) drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.mood-tired .char-img { filter: grayscale(.5) brightness(.88) drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.mood-sleepy .char-img { filter: brightness(.85) saturate(.75) drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }
.mood-sleepy .char-float, .mood-tired .char-float { animation-duration: 5s; }
@keyframes pulse { 50% { transform: scale(1.25); } }
@keyframes tremble { 0% { transform: translate(1px, 0); } 25% { transform: translate(-1px, 1px); } 50% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 0); } }
@keyframes drip { 0% { transform: translateY(0) scale(1); opacity: 1; } 100% { transform: translateY(26px) scale(.7); opacity: 0; } }
@keyframes zzz { 0% { transform: translate(0, 0) scale(.7); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(18px, -28px) scale(1.1); opacity: 0; } }
@keyframes floaty { 0% { transform: translateY(6px) scale(.8); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-34px) scale(1.05); opacity: 0; } }
@keyframes wobble { 50% { transform: scale(1.12) rotate(10deg); } }

/* реплика */
.bubble { position: absolute; left: 66%; bottom: 93%; z-index: 6; width: max-content; max-width: min(78vw, 300px);
  padding: 10px 14px; border-radius: 16px; font-size: 15px; font-weight: 600; line-height: 1.32; text-align: center;
  background: #fafafa; color: #16171c; box-shadow: var(--shadow);
  transform: translate(calc(-50% + var(--bx, 0px)), -6px) scale(.7); transform-origin: 50% 120%; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .32s var(--spring); margin-bottom: -6%; }
.bubble.show { opacity: 1; transform: translate(calc(-50% + var(--bx, 0px)), -14px) scale(1); }
.bubble::after { content: ""; position: absolute; left: calc(50% - var(--bx, 0px)); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: inherit; transform: rotate(45deg); border-radius: 3px; }

/* частицы тапа */
.fxlayer { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 5; }
.plus { position: absolute; font-size: 26px; font-weight: 800; letter-spacing: -.5px; color: var(--accent); pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35); animation: plus .8s var(--smooth) forwards; will-change: transform, opacity; }
@keyframes plus { 0% { transform: translate(-50%, -50%) scale(.7); opacity: 0; } 15% { transform: translate(-50%, -70%) scale(1.08); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), -240%) scale(.9); opacity: 0; } }
.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); pointer-events: none; opacity: .9;
  animation: spark .55s ease-out forwards; will-change: transform, opacity; }
@keyframes spark { to { transform: translate(var(--sx), var(--sy)) scale(.3); opacity: 0; } }
.ripple { position: absolute; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 1.5px solid var(--stroke-2); pointer-events: none;
  animation: ripple .45s ease-out forwards; }
@keyframes ripple { from { transform: scale(.25); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.combo { position: absolute; top: 2%; left: 4%; z-index: 6; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--stroke-2); box-shadow: var(--shadow-sm); opacity: 0; transform: scale(.6); transition: opacity .25s, transform .3s var(--spring); pointer-events: none; }
.combo.show { opacity: 1; transform: scale(1); }
.combo.pop { animation: comboPop .18s var(--spring); }
@keyframes comboPop { 50% { transform: scale(1.12); } }

/* энергия */
.energy { flex: none; display: flex; align-items: center; gap: 12px; border-radius: 18px; padding: 10px 14px; }
.energy-ico { width: 38px; height: 38px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.energy-ico svg.i { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.energy-main { flex: 1; min-width: 0; }
.energy-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 700; }
.ebar { height: 8px; margin-top: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ebar-fill { height: 100%; width: 0; border-radius: 99px; transition: width .3s linear; background: var(--accent); }
.ebar-fill.low { background: var(--bad); }

/* ---------------------------------------------------------------- навигация */
.nav { position: fixed; left: 10px; right: 10px; bottom: calc(8px + var(--safe-b)); z-index: 20; height: 62px; border-radius: 20px; display: flex; padding: 5px;
  background: var(--surface); border: 1px solid var(--stroke-2); box-shadow: var(--shadow); }
body:not(.light) .nav { background: rgba(23, 24, 30, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav button { position: relative; z-index: 1; flex: 1; min-width: 0; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); font-size: 10.5px; font-weight: 600; border-radius: 15px; transition: color .25s; cursor: pointer; }
.nav button .ni { display: flex; line-height: 1; transition: transform .3s var(--spring); }
.nav button .ni svg.i { width: 22px; height: 22px; }
.nav button.active { color: var(--text); }
.nav button.active .ni { color: var(--accent); transform: translateY(-1px); }
.nav-ind { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 6); border-radius: 15px; background: var(--surface-2); transition: transform .38s var(--spring); }
.dot { position: absolute; top: 7px; right: 26%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------------- переключатели */
.seg { position: relative; display: flex; padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 2)); border-radius: 10px; background: var(--surface-3); transition: transform .35s var(--spring); }
.seg-btn { position: relative; z-index: 1; flex: 1; border: 0; background: none; padding: 9px 6px; font-weight: 600; font-size: 14px; color: var(--muted); border-radius: 10px; transition: color .25s; cursor: pointer; }
.seg-btn.active { color: var(--text); }
.switch { position: relative; width: 48px; height: 28px; flex: none; border-radius: 99px; background: var(--surface-3); border: 0; cursor: pointer; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .3s var(--spring); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }

/* ---------------------------------------------------------------- списки */
.list { display: flex; flex-direction: column; gap: 8px; }
.card { position: relative; border-radius: var(--r); padding: 12px; display: flex; align-items: center; gap: 12px; animation: rise .4s var(--smooth) both; }
.card.dim { opacity: .5; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ico { width: 46px; height: 46px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: var(--surface-2); border: 1px solid var(--stroke); color: var(--text); }
.ico svg.i { width: 22px; height: 22px; }
.ico.g-tap, .ico.g-energy, .ico.g-passive, .ico.g-offline, .ico.g-task { background: var(--surface-2); }
.ico.g-lock { opacity: .55; filter: grayscale(1); }
.cbody { flex: 1; min-width: 0; }
.ctitle { font-size: 15px; font-weight: 650; line-height: 1.25; }
.csub { font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 3px; line-height: 1.32; }
.lvlbar { height: 4px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.lvlbar > div { height: 100%; border-radius: 99px; background: var(--accent); }
.badge { font-size: 12.5px; font-weight: 650; padding: 6px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--good-soft); color: var(--good); }
.flash { animation: flash .7s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--accent-soft); } 100% { box-shadow: 0 0 0 16px transparent; } }

/* ---------------------------------------------------------------- топ */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; margin: 10px 0 14px; min-height: 10px; }
.podium-col { flex: 1; max-width: 120px; display: flex; flex-direction: column; align-items: center; animation: rise .45s var(--smooth) both; }
.podium-col .pav { position: relative; width: 54px; height: 54px; border-radius: 50%; padding: 2px; background: var(--surface-3); margin-bottom: 6px; }
.podium-col.p1 .pav { width: 68px; height: 68px; background: var(--accent); }
.podium-col .pav .ava { width: 100%; height: 100%; box-shadow: none; font-size: 20px; }
.podium-col .crown { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 20px; }
.podium-col .pname { font-size: 13px; font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-col .pval { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.podium-col .plate { width: 100%; border-radius: 12px 12px 4px 4px; display: flex; align-items: flex-start; justify-content: center; padding-top: 8px; font-size: 18px; font-weight: 800; color: var(--muted); }
.p1 .plate { height: 78px; color: var(--accent); background: linear-gradient(180deg, var(--accent-soft), var(--surface)); }
.p2 .plate { height: 58px; }
.p3 .plate { height: 44px; }
.rank { width: 28px; text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); flex: none; }
.card.me { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.val { font-weight: 700; font-size: 15px; white-space: nowrap; display: flex; align-items: center; gap: 5px; }
.me-bar { position: sticky; bottom: 0; margin-top: 14px; border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 650;
  background: var(--surface-2); border-color: var(--stroke-2); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- задания */
.ringp { width: 50px; height: 50px; flex: none; position: relative; }
.ringp svg { transform: rotate(-90deg); width: 50px; height: 50px; }
.ringp .e { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.event-card { border-radius: var(--r); padding: 14px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border: 1px solid transparent; animation: rise .4s var(--smooth) both; }
.event-card .big { font-size: 32px; }

/* ---------------------------------------------------------------- профиль */
.hero { position: relative; border-radius: 22px; padding: 18px; overflow: hidden; text-align: center; background: var(--surface); border: 1px solid var(--stroke); }
.hero .ava { width: 76px; height: 76px; margin: 0 auto 10px; font-size: 28px; box-shadow: 0 0 0 3px var(--surface-3); }
.hero .hname { font-size: 20px; font-weight: 750; letter-spacing: -.3px; }
.hero .hsub { font-size: 13.5px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stat { border-radius: 16px; padding: 12px; animation: rise .4s var(--smooth) both; }
.stat .k { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.stat b { display: block; font-size: 18px; font-weight: 750; margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.ach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ach { border-radius: 16px; padding: 14px 10px; text-align: center; position: relative; overflow: hidden; animation: rise .4s var(--smooth) both; }
.ach .e { font-size: 30px; }
.ach .t { font-size: 13.5px; font-weight: 650; margin-top: 6px; line-height: 1.25; }
.ach .d { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.ach.got { border-color: rgba(240, 180, 60, .35); }
.ach.no { opacity: .45; filter: grayscale(1); }
.settings { margin-top: 10px; }
.setting { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); }
.setting .st { flex: 1; min-width: 0; }
.setting .st b { display: block; font-size: 15px; font-weight: 650; }
.setting .st span { font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------------------- уведомления и окно */
.toasts { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 420px; padding: 11px 15px; border-radius: 16px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow);
  animation: toastIn .35s var(--spring); background: var(--surface-2); color: var(--text); border: 1px solid var(--stroke-2); }
.toast.out { animation: toastOut .3s ease-in forwards; }
.toast .te { font-size: 20px; }
.toast.good { border-color: rgba(63, 179, 127, .45); }
.toast.bad { border-color: rgba(229, 87, 79, .55); }
.toast.ach { border-color: rgba(240, 180, 60, .55); }
@keyframes toastIn { from { transform: translateY(-24px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-16px) scale(.97); opacity: 0; } }
.sheet-wrap { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.sheet-back { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 10px 20px calc(20px + var(--safe-b)); text-align: center;
  transform: translateY(110%); transition: transform .42s var(--spring); background: var(--surface); border-top: 1px solid var(--stroke-2); }
.sheet-wrap.open { pointer-events: auto; }
.sheet-wrap.open .sheet-back { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-grip { width: 36px; height: 4px; border-radius: 99px; background: var(--surface-3); margin: 0 auto 14px; }
#sheet-body { font-size: 17px; font-weight: 650; line-height: 1.4; margin-bottom: 18px; }
#sheet-body .big { font-size: 48px; margin-bottom: 8px; }
#sheet-body .amount { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 32px; font-weight: 800; letter-spacing: -.8px; margin: 6px 0; }
.confetti { position: fixed; width: 6px; height: 10px; border-radius: 2px; z-index: 90; pointer-events: none; animation: confetti .9s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes confetti { to { transform: translate(var(--cx), var(--cy)) rotate(var(--cr)); opacity: 0; } }

@media (max-height: 700px) {
  .balance { font-size: 38px; } .coin-lg { width: 30px; height: 30px; } .coin-lg::after { font-size: 15px; }
  .balance-wrap { margin: 8px 0 6px; } .tile { padding: 6px 10px; } .tile b { font-size: 15px; }
  .tile-event small { display: none; }
}
@media (max-height: 600px) { .tiles { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================================================================ обновление 2: кланы, призы, уровни */
.me-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.me-clan { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45vw; }
.me-clan .clan-ico { flex: none; }
.glevel-chip { display: none; }
/* подставка Гришки по уровню карьеры — тонкое кольцо, без неона */
.glvl-2 .ring::before { border-color: rgba(190, 130, 80, .45); }
.glvl-3 .ring::before { border-color: rgba(200, 205, 215, .5); }
.glvl-4 .ring::before { border-color: rgba(240, 180, 60, .55); }
.glvl-5 .ring::before { border-color: rgba(240, 180, 60, .75); box-shadow: 0 0 18px rgba(240, 180, 60, .18); }
.glvl-6 .ring::before { border: 2px solid rgba(240, 180, 60, .9); box-shadow: 0 0 26px rgba(240, 180, 60, .25); }
.glvl-2 .char-box { max-width: 96vw; }

/* поля ввода */
.inp { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--stroke-2); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 16px; font-weight: 500; outline: none; user-select: text; -webkit-user-select: text; transition: border-color .2s, box-shadow .2s; }
.inp:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp::placeholder { color: var(--muted); }
.search { position: relative; margin-bottom: 12px; }
.search .inp { padding-left: 42px; }
.search::before { content: ""; position: absolute; left: 15px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); opacity: .6;
  background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.row-btns { display: flex; gap: 8px; }
.row-btns .btn { flex: 1; }
.hint { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.empty { text-align: center; padding: 24px 10px; color: var(--muted); font-weight: 500; }

/* кланы */
.clan-ico { flex: none; display: block; overflow: visible; }
.cta { border-radius: 22px; padding: 18px; margin-bottom: 14px; text-align: center; background: var(--surface); border: 1px solid var(--stroke); }
.cta .cta-ico { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.cta .cta-t { font-size: 17px; font-weight: 750; }
.cta .cta-s { margin: 4px 0 14px; }
.clan-hero { position: relative; border-radius: 22px; padding: 18px 16px 16px; text-align: center; overflow: hidden; border: 1px solid var(--stroke); background: var(--surface); margin-bottom: 10px; }
.clan-hero::before { content: ""; position: absolute; left: 50%; top: -60px; width: 260px; height: 160px; transform: translateX(-50%); border-radius: 50%;
  background: var(--c, var(--accent)); opacity: .08; filter: blur(30px); pointer-events: none; }
.clan-hero .clan-ico { margin: 0 auto 8px; position: relative; }
.clan-hero .cname { font-size: 22px; font-weight: 750; letter-spacing: -.4px; word-break: break-word; position: relative; }
.clan-hero .cmeta { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; position: relative; }
.clan-hero .cbar { margin-top: 14px; text-align: left; position: relative; }
.clan-hero .cbar-top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.clan-hero .level-bar { height: 6px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; letter-spacing: .6px; }
.member .crown { font-size: 14px; margin-left: 4px; }
.kick { width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--stroke-2); background: var(--surface-2); color: var(--bad); font-size: 14px; font-weight: 800; flex: none; cursor: pointer; }
.icon-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 8px; }
.icon-pick button { border: 1.5px solid var(--stroke); background: var(--surface-2); border-radius: 16px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; transition: transform .2s var(--spring), border-color .2s; }
.icon-pick button.on { border-color: var(--accent); color: var(--text); transform: scale(1.03); }
.sheet-form { text-align: left; }
.sheet-form h3 { margin: 0 0 12px; font-size: 20px; font-weight: 750; text-align: center; }
.sheet-form .lbl { font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .3px; }
.sheet .btn + .btn { margin-top: 8px; }

/* призы */
.prize { border-radius: 22px; padding: 22px 16px; text-align: center; border: 1px solid var(--stroke); position: relative; overflow: hidden; background: var(--surface); animation: rise .4s var(--smooth) both; }
.prize::before { content: ""; position: absolute; left: 50%; top: -70px; width: 240px; height: 160px; transform: translateX(-50%); border-radius: 50%; background: var(--accent); opacity: .1; filter: blur(30px); }
.prize > * { position: relative; }
.prize .pbig { font-size: 64px; line-height: 1; animation: bob 2.6s ease-in-out infinite; }
.prize .pt { font-size: 20px; font-weight: 750; margin-top: 10px; }
.prize .ps { margin: 6px 0 14px; }
.prize .pprice { display: inline-flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.prize .pcode { font-size: 26px; margin: 6px 0 4px; }
.prize .pprog { margin: 0 0 14px; text-align: left; }
.career { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.career .card { padding: 10px 12px; }
.career .card.cur { border-color: var(--accent); }

/* ================================================================ обновление 4: базы и налёты */
.clan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.btn-war { background: var(--bad); color: #fff; }
.btn-base { background: var(--surface-2); color: var(--text); border: 1px solid var(--stroke-2); }
.btn-war svg.i, .btn-base svg.i { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.treasury { border-radius: 20px; padding: 16px; margin-bottom: 10px; border: 1px solid var(--stroke); background: var(--surface); }
.treasury.war { border-color: rgba(229, 87, 79, .3); }
.treasury .tk { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.treasury .tv { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 6px; }
.treasury .tsafe { height: 6px; border-radius: 99px; overflow: hidden; background: var(--bad-soft); margin: 8px 0 8px; }
.treasury .tsafe > div { height: 100%; background: var(--good); }
.shield { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; font-weight: 600; font-size: 13px; background: rgba(111, 156, 240, .12); color: var(--info); }
.bld .ico { font-size: 24px; }
.bld .cnow { font-size: 12.5px; font-weight: 600; margin-top: 3px; }
.bld .cnext { font-size: 12.5px; font-weight: 500; color: var(--good); margin-top: 2px; }
.logl { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); animation: rise .4s var(--smooth) both; }
.logl.bad { border-color: rgba(229, 87, 79, .35); }
.logl .le { font-size: 18px; line-height: 1.3; }
.logl .lt { flex: 1; font-size: 13.5px; font-weight: 550; line-height: 1.35; }
.logl .lw { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.logl .btn { padding: 7px 10px; min-height: 34px; font-size: 13px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0; }
.quick button { border: 1px solid var(--stroke-2); background: var(--surface-2); color: var(--text); border-radius: 12px; padding: 10px 0; font-weight: 650; cursor: pointer; }
.target .tmeta { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-top: 3px; }
.target .tloot { font-size: 13.5px; font-weight: 700; margin-top: 4px; display: flex; align-items: center; gap: 5px; }
.badge.rev { background: var(--bad-soft); color: var(--bad); }

/* экран налёта */
.raid { position: fixed; inset: 0; z-index: 65; display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(18px + var(--safe-b));
  background: #0b0b0e; color: #f2f2f5; animation: raidIn .3s var(--smooth); }
.raid::before { content: ""; position: absolute; left: 50%; top: 30%; width: 120vw; height: 60vh; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 87, 79, .16), transparent); pointer-events: none; }
@keyframes raidIn { from { opacity: 0; } }
.raid > * { position: relative; }
.raid-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.raid-name { font-size: 17px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raid-timer { flex: none; min-width: 60px; text-align: center; font-size: 26px; font-weight: 800; padding: 4px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-variant-numeric: tabular-nums; }
.raid-timer.hot { color: #ff8a80; animation: pulse .5s ease-in-out infinite; }
.raid-hp { position: relative; height: 22px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 12px; }
.raid-hp-fill { position: absolute; inset: 0; width: 100%; background: var(--bad); transition: width .12s linear; }
.raid-hp span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.raid-stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; touch-action: none; cursor: pointer; }
.raid-glow { display: none; }
.raid-base { position: relative; pointer-events: none; transition: transform .07s; }
.raid-base.hit { transform: scale(.95) rotate(var(--rot, 0deg)); }
.raid-base.broken { animation: boom .6s ease-out forwards; }
@keyframes boom { 30% { transform: scale(1.15); filter: brightness(1.6); } 100% { transform: scale(.6) rotate(10deg); opacity: .25; filter: grayscale(1); } }
.raid-walls { font-size: 28px; letter-spacing: 2px; margin-top: 12px; pointer-events: none; min-height: 40px; }
.raid-walls span { display: inline-block; transition: opacity .3s, transform .3s; }
.raid-walls span.gone { opacity: .12; transform: translateY(10px) rotate(25deg); }
.raid-hint { text-align: center; font-size: 13.5px; font-weight: 550; color: rgba(255, 255, 255, .6); }
.dmg { position: absolute; font-size: 24px; font-weight: 800; color: #ff8a80; pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); animation: plus .75s var(--smooth) forwards; }
.raid-banner { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) scale(.6); font-size: 34px; font-weight: 800; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .4s var(--spring); white-space: nowrap; }
.raid-banner.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===================================================== GRISHKA_THEMES_V8: темы — магазин и настройки
   Сами темы лежат в static/themes/<id>.css и подключаются поверх этого файла. Этот файл = тема «Графит». */
.seg-btn { white-space: nowrap; }
#shop-seg .seg-btn { font-size: 13.5px; padding-left: 2px; padding-right: 2px; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-card { position: relative; display: block; width: 100%; text-align: left; padding: 7px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--stroke); color: var(--text); cursor: pointer; animation: rise .45s var(--smooth) both; transition: transform .2s var(--spring), border-color .2s; }
.theme-card:active { transform: scale(.97); }
.theme-card.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.tprev { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--r) - 6px); overflow: hidden; background: var(--surface-2); }
.tprev img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.theme-card.locked .tprev img, .theme-mini.locked .tprev img { filter: saturate(.85); }
.tlock { position: absolute; right: 7px; top: 7px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tinfo { display: flex; flex-direction: column; gap: 3px; padding: 9px 5px 3px; }
.tinfo b { font-size: 15px; font-weight: 700; }
.tinfo > span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.tinfo > span.ok { color: var(--good); font-weight: 600; }
.tinfo > span.price { color: var(--text); font-weight: 700; }
.theme-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 2px -2px 0; scrollbar-width: none; scroll-snap-type: x proximity; }
.theme-row::-webkit-scrollbar { display: none; }
.theme-mini { flex: 0 0 78px; scroll-snap-align: start; border: 0; background: none; padding: 0; color: var(--text); cursor: pointer; text-align: center; }
.theme-mini .tprev { border-radius: 12px; border: 2px solid var(--stroke-2); transition: border-color .2s, transform .2s var(--spring); }
.theme-mini:active .tprev { transform: scale(.95); }
.theme-mini.cur .tprev { border-color: var(--accent); }
.theme-mini .tlock { width: 22px; height: 22px; font-size: 10px; right: 4px; top: 4px; }
.theme-mini b { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.theme-mini.cur b { color: var(--text); }
.daynight { position: relative; flex: none; width: 64px; height: 34px; border-radius: 99px; border: 0; padding: 0; cursor: pointer; background: #1b2540;
  transition: background .35s var(--smooth); }
.daynight.is-light { background: #cfe3ff; }
.dn-knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e6edf7; color: #1b2540;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .35s var(--spring), background .3s; }
.dn-knob svg.i { width: 16px; height: 16px; stroke-width: 2; }
.daynight.is-light .dn-knob { transform: translateX(30px); background: #fff; color: #ff9f0a; }
.tsheet { text-align: center; }
.tsheet-prev { width: 62%; margin: 0 auto 14px; border-radius: 20px; overflow: hidden; border: 1px solid var(--stroke-2); box-shadow: var(--shadow); }
.tsheet-prev img { display: block; width: 100%; }
.tsheet-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.tsheet-price { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 22px; font-weight: 800; margin-top: 10px; }
.tsheet .hint { font-weight: 500; }
.btn .coin { margin: 0 4px 0 2px; }

/* ===================================================== GRISHKA_CASINO_V9: казино — слоты и ракетка */
.nav button { font-size: 10px; letter-spacing: -.15px; padding: 0; }
.nav button .nl { max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; }
.nav button .ni svg.i { width: 21px; height: 21px; }
/* ставка */
.betbox { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.bet-row { display: flex; gap: 8px; align-items: stretch; }
.bet-adj { flex: 0 0 52px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--surface-2); color: var(--text); font-weight: 800; font-size: 16px; cursor: pointer;
  transition: transform .15s var(--spring); }
.bet-adj:active, .bet-chips button:active { transform: scale(.94); }
.bet-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke-2); min-height: 50px; cursor: text; }
.bet-val:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.bet-inp { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bet-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.bet-chips button { border: 1px solid var(--stroke); background: var(--surface); color: var(--muted); border-radius: 11px; padding: 8px 0; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: transform .15s var(--spring), color .2s; }
.bet-chips button[data-v="all"] { color: var(--accent); }
.btn-play { margin-top: 12px; min-height: 56px; font-size: 17px; border-radius: 16px; }
.btn-cash { background: var(--good); color: #fff; box-shadow: 0 6px 22px var(--good-soft, rgba(63, 179, 127, .25)); animation: casPulse 1s ease-in-out infinite; }
@keyframes casPulse { 50% { transform: scale(1.02); } }
/* слоты */
.slot { border-radius: calc(var(--r) + 4px); background: var(--surface); border: 1px solid var(--stroke); padding: 14px; box-shadow: var(--shadow-sm); }
.slot-msg { text-align: center; font-weight: 700; font-size: 15px; color: var(--muted); min-height: 24px; margin-bottom: 10px; transition: color .2s; }
.slot-msg.win { color: var(--good); font-size: 20px; font-weight: 800; animation: casPop .45s var(--spring); }
.slot-msg.big { color: var(--accent); font-size: 26px; }
@keyframes casPop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.reels { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 222px; }
.reel { position: relative; overflow: hidden; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--stroke);
  -webkit-mask-image: linear-gradient(transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 22%, #000 78%, transparent 100%); }
.reel .strip { will-change: transform; }
.reel.moving .strip { filter: blur(1.2px); }
.reel .cell { height: 74px; display: grid; place-items: center; font-size: 40px; line-height: 1; user-select: none; }
.reel .cell img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; }
.reel .cell.hit { animation: casHit .8s var(--spring) both; }
@keyframes casHit { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1.08); } }
.payline { position: absolute; left: -4px; right: -4px; top: 50%; height: 78px; margin-top: -39px; border-radius: 16px; border: 2px solid var(--accent); pointer-events: none;
  box-shadow: 0 0 0 4px var(--accent-soft); opacity: .9; transition: border-color .3s, box-shadow .3s; }
.reels.won .payline { border-color: var(--good); box-shadow: 0 0 0 4px var(--good-soft, rgba(63, 179, 127, .2)), 0 0 24px var(--good-soft, rgba(63, 179, 127, .2)); }
.reels.lost .payline { opacity: .45; }
.paytable { display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--stroke); }
.pay-row.top { border-color: var(--accent); }
.pay-syms { display: flex; gap: 4px; }
.pay-syms i { width: 30px; height: 30px; display: grid; place-items: center; font-style: normal; font-size: 21px; border-radius: 8px; background: var(--surface-2); }
.pay-syms img { width: 24px; height: 24px; border-radius: 50%; object-fit: contain; }
.pay-syms .any { font-size: 15px; font-weight: 800; color: var(--muted); }
.pay-note { flex: 1; font-size: 12px; color: var(--muted); font-weight: 500; line-height: 1.25; }
.pay-row b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pay-row.top b { color: var(--accent); }
/* ракетка */
.crash-stage { position: relative; height: 250px; border-radius: calc(var(--r) + 4px); overflow: hidden; background: var(--surface); border: 1px solid var(--stroke); box-shadow: var(--shadow-sm); }
.crash-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 70% at 15% 100%, var(--accent-soft), transparent 70%); opacity: .8; pointer-events: none; }
.crash-stage.is-crashed::before { background: radial-gradient(80% 70% at 50% 40%, var(--bad-soft, rgba(229, 87, 79, .15)), transparent 70%); }
#crash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crash-rocket { position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; font-size: 30px; line-height: 1; will-change: transform; pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.crash-rocket.idle span { animation: casIdle 1.2s ease-in-out infinite; }
@keyframes casIdle { 50% { transform: translateY(-3px); } }
.crash-rocket.boom span { font-size: 40px; animation: casBoom .5s var(--spring) both; }
@keyframes casBoom { 0% { transform: scale(.3); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.crash-center { position: absolute; left: 0; right: 0; top: 34px; text-align: center; pointer-events: none; }
.crash-x { font-size: 54px; font-weight: 800; letter-spacing: -2px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.crash-stage.is-crashed .crash-x { color: var(--bad); }
.crash-stage.is-betting .crash-x { font-size: 44px; color: var(--muted); }
.crash-sub { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.crash-bar { position: absolute; left: 14px; right: 14px; bottom: 10px; height: 4px; border-radius: 4px; overflow: hidden; background: transparent; }
.crash-bar div { height: 100%; width: 0; background: var(--accent); border-radius: 4px; transition: width .1s linear; }
.crash-stage.is-crashed .crash-bar div { background: var(--muted); }
.crash-hist { display: flex; gap: 6px; overflow-x: auto; padding: 10px 1px 2px; scrollbar-width: none; }
.crash-hist::-webkit-scrollbar { display: none; }
.crash-hist span { flex: none; padding: 5px 9px; border-radius: 9px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--muted); }
.crash-hist span.mid { color: var(--text); }
.crash-hist span.hi { color: var(--good); background: var(--good-soft, rgba(63, 179, 127, .12)); }
.crash-hist span.top { color: var(--accent-ink); background: var(--accent); }
.crash-hist span.lo { color: var(--bad); }
.crash-my { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-size: 14px; font-weight: 600; line-height: 1.45; }
.crash-my .ok { color: var(--good); } .crash-my .bad { color: var(--bad); }
.auto-row { margin-top: 8px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); }
.auto-row .st { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.auto-row .st b { font-size: 14px; } .auto-row .st span { font-size: 12px; color: var(--muted); font-weight: 500; }
.auto-val { display: flex; align-items: center; gap: 2px; padding: 0 10px; height: 38px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--stroke); }
.auto-val i { font-style: normal; color: var(--muted); font-weight: 700; }
.auto-inp { width: 52px; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.auto-row.off .auto-val { opacity: .45; }
.cbets { display: flex; flex-direction: column; gap: 4px; }
.cbet { display: grid; grid-template-columns: 1fr auto 104px; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--stroke);
  font-size: 13.5px; font-weight: 600; }
.cbet.me { border-color: var(--accent); }
.cb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-bet { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cb-res { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.cbet.won .cb-res { color: var(--good); } .cbet.won .cb-res b { margin-right: 4px; }
.cbet.lost { opacity: .55; } .cbet.lost .cb-res { color: var(--bad); }
/* лента и итог */
.feed-row .ico { font-size: 20px; }
.feed-win { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.feed-win b { font-size: 15px; color: var(--accent); } .feed-win span { font-size: 12.5px; color: var(--good); font-weight: 700; }
.casino-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.casino-me:empty { display: none; }
.casino-me .cm { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 3px; }
.casino-me .cm span { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.casino-me .cm b { font-size: 15px; font-variant-numeric: tabular-nums; }
.casino-me .cm b.pos { color: var(--good); } .casino-me .cm b.neg { color: var(--bad); }
.casino-note { margin: 14px 2px 0; font-size: 12px; text-align: center; }

/* GRISHKA_CASINO_MERGE_V10 — unchanged source clan PNG across every theme */
img.clan-ico, body[data-theme] img.clan-ico { filter:none !important; -webkit-filter:none !important; mix-blend-mode:normal !important; opacity:1 !important; object-fit:contain; background:transparent !important; }
#shop-seg { overflow-x:auto; scrollbar-width:none; }
#shop-seg .seg-btn { font-size:11px; min-width:0; padding:9px 2px; white-space:nowrap; }
#shop-casino .page-head:first-child { margin-top:8px; }

/* GRISHKA_NOTIFY_V9 — compact settings, use theme variables only. */
.notify-child { padding-left: 23px; }
.notify-note { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:0 8px 4px;
  font-size:12px; line-height:1.45; color:var(--muted); }
.notify-note .btn { margin-left:auto; font-size:12px; }
.switch[disabled] { opacity:.45; cursor:progress; }


/* GRISHKA_GIFTS_V11. Theme aware gifting surface, modal above existing sheets. */
.gift-profile-action { margin: 8px 0 12px; border-radius: 14px; }
.gift-overlay { position: fixed; inset: 0; z-index: 170; display: flex; align-items: center; justify-content: center; padding: 18px; }
.gift-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.70); backdrop-filter: blur(9px); opacity: 1; transition: opacity .24s ease; }
.gift-dialog { position: relative; width: min(100%, 410px); max-height: min(85vh, 690px); overflow-y: auto;
  border: 1px solid var(--stroke-2); border-radius: 26px; background: var(--surface);
  color: var(--text); box-shadow: 0 25px 90px rgba(0,0,0,.38); padding: 24px 21px 18px;
  text-align: center; animation: giftEnter .34s cubic-bezier(.2,1.35,.3,1) both; }
.gift-overlay.gift-exit .gift-dialog { animation: giftExit .2s ease-in both; }
.gift-overlay.gift-success .gift-dialog { animation: giftExplode .68s ease-in both; }
.gift-overlay.gift-exit .gift-backdrop, .gift-overlay.gift-success .gift-backdrop { opacity: 0; }
.gift-top { font-size: 23px; font-weight: 850; margin-bottom: 20px; }
.gift-recipient, .gift-sender-hero { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; margin-bottom: 15px; }
.gift-recipient .ava, .gift-sender-hero .ava { width: 52px; height: 52px; flex: 0 0 52px; }
.gift-sender-hero { flex-direction: column; gap: 11px; }
.gift-sender-hero .ava { width: 78px; height: 78px; flex: 0 0 78px; }
.gift-sender-nick { font-size: 19px; display: flex; flex-direction: column; gap: 3px; }
.gift-sender-nick small { color: var(--muted); font-size: 13px; }
.gift-amount, .gift-incoming { font-size: clamp(28px,9vw,41px); font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; margin: 10px 0 20px; transform-origin: center; }
.gift-amount small, .gift-incoming small { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-top: 4px; }
.gift-amount.gift-changing { filter: brightness(1.12); transform: scale(1.04); }
.gift-range { display: block; width: 100%; margin: 15px 0 9px; height: 10px; background: linear-gradient(90deg,var(--accent) 0 var(--gift-fill,25%), var(--surface-3) var(--gift-fill,25%) 100%);
  border-radius: 99px; appearance: none; -webkit-appearance: none; outline: 0; }
.gift-range::-webkit-slider-thumb { -webkit-appearance: none; width: 29px; height: 29px; border: 4px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 3px 14px rgba(0,0,0,.35); }
.gift-range::-moz-range-thumb { width: 23px; height: 23px; border: 4px solid var(--surface); border-radius: 50%; background: var(--accent); }
.gift-range-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.gift-limit { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 16px 0 20px; }
.gift-send-btn,.gift-accept-btn { min-height: 52px; font-size: 16px; }
.gift-cancel { display: block; margin: 13px auto 0; padding: 8px 12px; border: 0; background: transparent; color: var(--muted); }
.gift-heart { position: fixed; z-index: 190; font-size: 25px; pointer-events: none; transform: translate(-50%,-50%); animation: flyingHeart 1.1s ease-out forwards; }
@keyframes giftEnter { from { opacity: 0; transform: translateY(28px) scale(.88); } to {opacity:1;transform:translateY(0) scale(1);} }
@keyframes giftExit { to { opacity:0;transform:translateY(25px) scale(.92); } }
@keyframes giftExplode { 0% {opacity:1;transform:scale(1)} 38% {opacity:1;transform:scale(1.07)} 100% {opacity:0;transform:scale(1.40)} }
@keyframes flyingHeart { 0% {opacity:1;transform:translate(-50%,-50%) scale(.5) rotate(0)} 60% {opacity:1} 100% {opacity:0;transform:translate(calc(-50% + var(--gh-x)),calc(-50% + var(--gh-y))) scale(1.6) rotate(var(--gh-rot))} }
@media(prefers-reduced-motion:reduce) { .gift-dialog,.gift-heart { animation-duration: .01s !important; } }

/* GRISHKA_SOCIAL_V12: avatar opens profile, settings cue and username autocomplete.
   Theme CSS variables control surfaces, not clan PNG colors. */
.who-profile { cursor: pointer; border-radius: 14px; transition: transform .16s ease; }
.who-profile:active { transform: scale(.97); }
.who-profile:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.avatar-gear-wrap { position: relative; display: inline-flex; flex: none; }
.avatar-gear { position: absolute; right: -6px; bottom: -5px; z-index: 2; width: 21px; height: 21px;
  display: grid; place-items: center; border-radius: 50%; color: var(--text); background: var(--surface-2);
  border: 2px solid var(--bg); box-shadow: var(--shadow-sm); pointer-events: none; }
.avatar-gear svg.i { width: 13px; height: 13px; stroke-width: 2.1; }
.nav-ind.nav-off { opacity: 0; }
.player-search-box { margin-top: 8px; }
.player-search-hint { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.player-search-result { cursor: pointer; transition: transform .16s ease; }
.player-search-result:active { transform: scale(.98); }
.player-search-result .cbody { min-width: 0; flex: 1; }
.player-search-result .ctitle, .player-search-result .csub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-search-chevron { font-size: 28px; font-weight: 300; color: var(--muted); margin: 0 4px 0 auto; }


/* GRISHKA_SOCIAL_V13 — original clan PNG remains untinted in every theme */
.clan-ico { filter:none !important; mix-blend-mode:normal !important; }
.clan-permanent-note { color:var(--text); background:var(--surface-2); border:1px solid var(--stroke);
  padding:12px 13px; border-radius:13px; font-size:13px; line-height:1.5; margin:4px 0 16px; }
.search-top-actions { display:flex; align-items:center; gap:8px; }
.stat.stat-invited { grid-column:1 / -1; text-align:center; }
.clan-legend { --glow-a:#fff; --glow-b:#e6b74d; --glow-c:#fff8b4;
  display:inline-block; color:transparent !important; -webkit-text-fill-color:transparent;
  background:linear-gradient(110deg,var(--glow-a) 2%,var(--glow-b) 28%,var(--glow-c) 50%,var(--glow-a) 68%,var(--glow-b) 96%);
  background-size:280% 100%; background-clip:text; -webkit-background-clip:text;
  animation:grishLegend 3.2s linear infinite; filter:none !important; }
.clan-legend[data-clan-icon="bolt"] { --glow-a:#ebfbff;--glow-b:#188dff;--glow-c:#fff; }
.clan-legend[data-clan-icon="cactus"] { --glow-a:#e4ffeb;--glow-b:#1dba63;--glow-c:#94ffa0; }
.clan-legend[data-clan-icon="bomb"] { --glow-a:#ffe3d9;--glow-b:#f23942;--glow-c:#ffd386; }
.clan-legend[data-clan-icon="skull"] { --glow-a:#e9d7ff;--glow-b:#8e49f4;--glow-c:#fff; }
.clan-legend[data-clan-icon="flower"], .clan-legend[data-clan-icon="car"] { --glow-a:#fff3fa;--glow-b:#ef62aa;--glow-c:#ffc6e8; }
.clan-legend[data-clan-icon="crown"] { --glow-a:#fff6d0;--glow-b:#e7a321;--glow-c:#fff; }
@keyframes grishLegend {to{background-position:-280% 0}}
.ach.orator-complete { border-color:#eabb4c !important; box-shadow:0 0 14px rgba(255,196,46,.24);
  background:linear-gradient(112deg,rgba(239,194,54,.12),var(--surface),rgba(239,194,54,.22),var(--surface));
  background-size:240% 100%; animation:grishLegend 2.8s linear infinite !important; }
.ach.orator-complete .t,.ach.orator-complete .e { color:#f9c53e !important; }
.ach.orator-ach .t small { font-size:10px; vertical-align:middle; border:1px solid var(--stroke);
  border-radius:20px; padding:2px 5px; }
.clan-level-overlay { position:fixed; inset:0; z-index:220; display:grid; place-items:center;
  padding:20px; background:rgba(0,0,0,.82); backdrop-filter:blur(12px); color:var(--text); }
.clan-level-overlay.hidden { display:none !important; }
.clan-level-dialog { position:relative; width:min(100%,420px); text-align:center; padding:20px 22px 25px;
  border-radius:26px; background:var(--surface); border:1px solid var(--stroke-2);
  box-shadow:0 24px 85px rgba(0,0,0,.5); animation:grishLevEnter .45s cubic-bezier(.15,1.2,.35,1) both; }
.clan-level-icons { position:relative; height:185px; display:grid; place-items:center; }
.clan-level-old,.clan-level-new { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }
.clan-level-old { animation:grishLevBreak .9s .45s ease-in forwards; }
.clan-level-new { opacity:0; animation:grishLevRise .9s 1s cubic-bezier(.13,1.2,.2,1) forwards; }
.clan-level-pieces { color:var(--accent); opacity:0; font-size:36px; pointer-events:none;
  animation:grishPieces 1s .8s ease-out both; }
.clan-level-title { font-size:22px; font-weight:900; line-height:1.2; margin:4px 0 14px; }
.clan-level-name { font-size:22px; font-weight:850; padding:4px 0 9px; }
.clan-level-sub { font-size:14px; color:var(--muted); margin-bottom:20px; }
.clan-level-overlay.clan-level-exit .clan-level-dialog { animation:grishLevExit .33s ease-in both; }
@keyframes grishLevEnter {from{opacity:0;transform:scale(.75) translateY(25px)}to{opacity:1;transform:none}}
@keyframes grishLevBreak {0%,18%,35%,53%{transform:translate(-50%,-50%) rotate(-7deg)}9%,27%,45%,63%{transform:translate(-50%,-50%) rotate(8deg)}78%{opacity:1;filter:brightness(2);transform:translate(-50%,-50%) scale(1.25)}100%{opacity:0;transform:translate(-50%,-50%) scale(.15) rotate(55deg);filter:blur(8px)}}
@keyframes grishLevRise {0%{opacity:0;transform:translate(-50%,10%) scale(.2) rotate(-22deg)}65%{opacity:1;transform:translate(-50%,-62%) scale(1.2) rotate(7deg)}100%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}}
@keyframes grishPieces {0%{opacity:0;transform:scale(.2)}40%{opacity:1;transform:scale(1.5)}100%{opacity:0;transform:scale(2.6)}}
@keyframes grishLevExit {to{opacity:0;transform:scale(1.2)}}
@media(prefers-reduced-motion:reduce){.clan-level-old{display:none}.clan-level-new{opacity:1;animation:none}
.clan-level-dialog{animation:none}.clan-legend,.ach.orator-complete{animation:none!important}}


/* GRISHKA_SOCIAL_V13_1 — robot clan + theme-safe originals */
.clan-ico { filter:none !important; mix-blend-mode:normal !important; opacity:1 !important; }
.clan-legend[data-clan-icon="robot"] { --glow-a:#ffffff;--glow-b:#9298a1;--glow-c:#e9ecef; }
.clan-discovery { margin-top:20px; padding-top:4px; border-top:1px solid var(--stroke); }
