/* КотоКарта · Блог котят — премиальная тёплая тема */
:root {
  --bg: #fbf6ef;
  --bg-2: #f4ebdf;
  --ink: #1f1611;
  --ink-2: #4a3a2e;
  --muted: #8c7b6b;
  --faint: #b9aa9a;
  --line: rgba(70, 40, 15, .09);
  --line-2: rgba(70, 40, 15, .14);
  --accent: #f27a2e;
  --accent-2: #ffad4a;
  --accent-ink: #c4561a;
  --accent-soft: #fff1e4;
  --ok: #2f8a57;
  --ok-soft: #e4f4ea;
  --bad: #cf4a3a;
  --bad-soft: #fde8e5;
  --warn: #c98612;
  --warn-soft: #fff4dc;
  --night: #1c1410;
  --night-2: #2a1e17;
  --gold-1: #fbe7b5; --gold-2: #d6a243;
  --silver-1: #f3f5f8; --silver-2: #aab3bf;
  --bronze-1: #f6d2b2; --bronze-2: #bd7a45;
  --grad: linear-gradient(180deg, #ff9449 0%, #f2732a 100%);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --shadow-s: 0 1px 2px rgba(60, 30, 10, .06), 0 4px 14px -6px rgba(60, 30, 10, .12);
  --shadow-m: 0 2px 6px rgba(60, 30, 10, .05), 0 18px 40px -18px rgba(60, 30, 10, .28);
  --safe-top: max(env(safe-area-inset-top), var(--tg-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-bottom, 0px));
  --strip: calc(var(--safe-top) + 54px);
  --tabbar-h: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 500 15px/1.45 Manrope, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
  font-feature-settings: "tnum" 0;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; user-select: text; -webkit-user-select: text; caret-color: var(--accent); }
a { color: var(--accent-ink); text-decoration: none; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; line-height: 1.15; font-weight: 800; }
p { margin: 6px 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }

/* ---------- фон ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.ambient i:nth-child(1) { width: 320px; height: 320px; background: #ffd9b0; left: -90px; top: 6%; }
.ambient i:nth-child(2) { width: 280px; height: 280px; background: #ffeec2; right: -80px; top: 40%; animation-delay: -8s; }
.ambient i:nth-child(3) { width: 340px; height: 340px; background: #ffe2cc; left: 15%; bottom: -120px; animation-delay: -14s; }
@keyframes drift { to { transform: translate(30px, -40px) scale(1.1); } }

/* ---------- стекло и поверхности ---------- */
.glass {
  position: relative;
  background: rgba(255, 252, 248, .66);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .85), var(--shadow-m);
}
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.surface { background: rgba(255, 255, 255, .82); border-radius: 22px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .9), var(--shadow-s); }
.pad { padding: 18px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px; border-radius: 17px; font-weight: 700; font-size: 16px; letter-spacing: -.01em;
  background: var(--grad); color: #fff; text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -1px 0 rgba(150, 50, 0, .18), 0 10px 24px -10px rgba(242, 115, 42, .75);
  transition: transform .35s var(--spring), filter .2s, opacity .2s;
}
.btn svg.i { width: 20px; height: 20px; stroke-width: 2; }
.btn:active { transform: scale(.965); transition-duration: .12s; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }
.btn.light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-s); }
.btn.dark { background: var(--night); color: #fff; box-shadow: 0 10px 24px -12px rgba(28, 20, 16, .7); }
.btn.ghost { background: transparent; color: var(--accent-ink); box-shadow: none; }
.btn.sm { height: 40px; padding: 0 16px; border-radius: 13px; font-size: 14px; }

/* ---------- экраны и переходы ---------- */
#app { position: fixed; inset: 0; z-index: 1; }
.screen {
  position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; visibility: hidden;
  transform: translate3d(var(--from, 0), 0, 0) scale(.985);
  transition: opacity .38s var(--ease), transform .55s var(--ease), visibility 0s linear .55s;
}
.screen.active { opacity: 1; pointer-events: auto; visibility: visible; transform: none; transition: opacity .38s var(--ease), transform .55s var(--ease), visibility 0s; }
.screen.scroll {
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(var(--safe-top) + 18px) 18px calc(var(--safe-bottom) + var(--tabbar-h) + 44px);
}
.page-title { font-size: 32px; margin: 2px 2px 18px; letter-spacing: -.035em; }
.page-kicker { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin: 0 2px 4px; }

/* появление контента со сдвигом */
.screen.reveal .rv, .sheet.reveal .rv, .rv.go { animation: rise .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* ---------- карта и шторка рейтинга ---------- */
#screen-map { background: var(--night); }
.lb-layer { position: absolute; inset: 0; color: #f6ece2; }
.lb-strip {
  position: absolute; left: 0; right: 0; top: 0; height: var(--strip); padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: center; gap: 9px; color: #f6ece2; font-weight: 700; font-size: 15.5px; z-index: 3;
}
.lb-strip-ico svg.i { width: 19px; height: 19px; color: #f3c56b; }
.lb-strip-text b { color: #fff; }
.lb-strip-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff6a3d; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.45); opacity: .65; } }
/* Кнопка справа от текста: свёрнуто — стрелка вниз (мягко качается, «потяни»),
   развёрнуто — та же кнопка поворачивается стрелкой вверх и сворачивает рейтинг.
   Пустой ::before уравновешивает ширину слева, чтобы текст стоял ровно по центру. */
.lb-strip::before { content: ""; width: 0; flex: none; }
.lb-strip-chev {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  color: rgba(246, 236, 226, .8); background: rgba(255, 255, 255, .07);
  transition: transform .5s var(--spring), background .3s, color .3s;
}
.lb-strip-chev svg.i { width: 18px; height: 18px; display: block; }
#screen-map:not(.lb-open) .lb-strip-chev svg.i { animation: lbHint 1.8s ease-in-out infinite; }
#screen-map.lb-open .lb-strip-chev { transform: rotate(180deg); background: rgba(255, 255, 255, .16); color: #fff; }
.lb-strip:active .lb-strip-chev { background: rgba(255, 255, 255, .24); }
@keyframes lbHint { 0%, 100% { transform: translateY(-1px); opacity: .6; } 50% { transform: translateY(2px); opacity: 1; } }
.lb-panel {
  position: absolute; left: 0; right: 0; top: var(--strip); height: var(--lb-h, 60vh);
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 18px 26px;
  opacity: 0; transform: translateY(-14px) scale(.98); transition: opacity .4s var(--ease), transform .6s var(--ease);
}
.lb-open .lb-panel { opacity: 1; transform: none; }

.map-card {
  position: absolute; left: 0; right: 0; top: var(--strip); bottom: 0; z-index: 4;
  border-radius: 28px 28px 0 0; overflow: hidden; background: #f1e7da;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
  transform: translate3d(0, var(--card-y, 0px), 0);
  transition: transform .6s var(--ease), border-radius .4s;
  will-change: transform;
}
.map-card.dragging { transition: none; }
#map { position: absolute; inset: 0; z-index: 0; isolation: isolate; } /* слои карты не перекрывают кнопки поверх неё */
.map-grab { position: absolute; left: 0; right: 0; top: 0; height: 30px; z-index: 6; display: flex; justify-content: center; padding-top: 8px; touch-action: none; }
.map-grab i { width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 35, 15, .28); box-shadow: 0 0 0 .5px rgba(255, 255, 255, .5); }
.map-shield { position: absolute; inset: 0; z-index: 8; display: none; touch-action: none; }
.lb-open .map-shield { display: block; }
.map-chips { position: absolute; left: 14px; right: 14px; top: 34px; z-index: 5; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; pointer-events: none; }
.map-chips > * { pointer-events: auto; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); animation: rise .6s var(--ease) backwards; }
.chip svg.i { width: 17px; height: 17px; color: var(--accent); }
.map-side { position: absolute; right: 14px; bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 96px); z-index: 5; display: flex; flex-direction: column; gap: 10px; }
.ctl { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; color: var(--ink-2); transition: transform .35s var(--spring); }
.ctl:active { transform: scale(.9); }
.fab {
  position: absolute; left: 50%; bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 30px); z-index: 5;
  transform: translateX(-50%); height: 56px; padding: 0 26px; border-radius: 28px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; color: #fff; background: var(--grad); white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 30px -12px rgba(232, 100, 20, .85), 0 0 0 6px rgba(255, 255, 255, .35);
  transition: transform .4s var(--spring), opacity .3s;
}
.fab svg.i { width: 21px; height: 21px; stroke-width: 2; }
.fab:active { transform: translateX(-50%) scale(.95); transition-duration: .12s; }
.fab.off { background: var(--night); box-shadow: 0 14px 30px -12px rgba(28, 20, 16, .7), 0 0 0 6px rgba(255, 255, 255, .3); }
.maplibregl-ctrl-attrib { font: 500 10px Manrope, sans-serif !important; background: rgba(255, 250, 244, .7) !important; }
.maplibregl-ctrl-bottom-left { bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 18px); }
.maplibregl-ctrl-bottom-left .maplibregl-ctrl { margin: 0 0 0 10px; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--muted); }

/* запасная карта без WebGL (Leaflet) — в той же тёплой гамме */
.lf-map { background: #f4ede3; font-family: Manrope, sans-serif; }
.lf-map .leaflet-tile-pane { filter: saturate(.5) sepia(.12) brightness(1.04); }
.lf-pin { background: none; border: 0; }
.lf-dot {
  display: grid; place-items: center; box-sizing: border-box; border-radius: 50%; background: #f27a2e; color: #fff;
  font: 800 13px Manrope, sans-serif; border: 3px solid #fffaf3;
  box-shadow: 0 0 0 9px rgba(242, 122, 46, .14), 0 6px 14px -6px rgba(60, 30, 10, .5);
}
.lf-name {
  position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 5px; white-space: nowrap;
  font: 800 12px Manrope, sans-serif; color: #1f1611; text-shadow: 0 0 3px #fffaf3, 0 0 3px #fffaf3, 0 0 6px #fffaf3;
}
.lf-far .lf-name { display: none; } /* на мелком масштабе подписи не налезают друг на друга */
.leaflet-marker-icon.sp-pin { background: none; border: 0; }
.kk-pop .leaflet-popup-content-wrapper { border-radius: 18px; background: rgba(255, 252, 248, .96); box-shadow: 0 14px 34px -14px rgba(60, 30, 10, .45); }
.kk-pop .leaflet-popup-content { margin: 13px 16px; font: 600 14px/1.4 Manrope, sans-serif; color: var(--ink); }
.kk-pop .leaflet-popup-tip { background: rgba(255, 252, 248, .96); }
.lf-map .leaflet-control-attribution { font: 500 10px Manrope, sans-serif; background: rgba(255, 250, 244, .7); }
.lf-map .leaflet-bottom { bottom: calc(var(--safe-bottom) + var(--tabbar-h) + 18px); }

/* попап города */
.kk-pop .maplibregl-popup-content {
  border-radius: 18px; padding: 13px 16px; font: 600 14px/1.4 Manrope, sans-serif; color: var(--ink);
  background: rgba(255, 252, 248, .94); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px -14px rgba(60, 30, 10, .45), inset 0 0 0 .5px rgba(255, 255, 255, .9);
  animation: pop .35s var(--spring);
}
.kk-pop .maplibregl-popup-tip { border-top-color: rgba(255, 252, 248, .94) !important; }
.pop-city b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.pop-city .sub { color: var(--muted); font-size: 12.5px; }
.pop-city .nums { display: flex; gap: 14px; margin-top: 8px; }
.pop-city .nums span { font-size: 12.5px; color: var(--muted); }
.pop-city .nums b { display: inline; font-size: 15px; color: var(--ink); }

/* логотип спонсора на карте (как в Лавке) */
.sp-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.sp-pin .bob { display: flex; flex-direction: column; align-items: center; animation: spIn .8s var(--spring) both, bob 3.6s ease-in-out .8s infinite; }
.sp-pin.out .bob { animation: spOut .4s var(--ease) forwards; }
.sp-pin .logo { width: 58px; height: 58px; border-radius: 20px; overflow: hidden; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: var(--accent-ink);
  box-shadow: 0 0 0 3px #fff, 0 14px 26px -10px rgba(60, 30, 10, .55); }
.sp-pin .logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-pin .tail { width: 12px; height: 12px; background: #fff; transform: rotate(45deg); margin-top: -8px; border-radius: 0 0 3px 0; box-shadow: 3px 3px 6px -3px rgba(60, 30, 10, .3); }
.sp-pin .shadow { width: 26px; height: 7px; border-radius: 50%; background: rgba(60, 30, 10, .22); filter: blur(2px); margin-top: 4px; animation: shadowBob 3.6s ease-in-out .8s infinite; }
@keyframes spIn { from { opacity: 0; transform: translateY(-40px) scale(.3); } }
@keyframes spOut { to { opacity: 0; transform: translateY(-20px) scale(.5); } }
@keyframes bob { 50% { transform: translateY(-6px); } }
@keyframes shadowBob { 50% { transform: scale(.75); opacity: .6; } }

/* содержимое рейтинга (тёмное) */
.lb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 4px 0 14px; }
.lb-head h2 { font-size: 28px; color: #fff; }
.lb-head .fund { text-align: right; }
.lb-head .fund small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 236, 226, .5); font-weight: 700; }
.lb-head .fund b { font-size: 22px; color: #f3c56b; letter-spacing: -.02em; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.cd div { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 9px 0 7px; text-align: center; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .08); }
.cd b { display: block; font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.cd span { font-size: 10.5px; color: rgba(246, 236, 226, .5); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.cd-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 236, 226, .5); font-weight: 700; margin: 0 2px 7px; }
.lb-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 0 14px; padding: 12px 0; border-top: .5px solid rgba(255, 255, 255, .1); border-bottom: .5px solid rgba(255, 255, 255, .1); }
.lb-stats div { text-align: center; }
.lb-stats div + div { border-left: .5px solid rgba(255, 255, 255, .1); }
.lb-stats b { display: block; font-size: 19px; color: #fff; font-variant-numeric: tabular-nums; }
.lb-stats span { font-size: 12px; color: rgba(246, 236, 226, .55); }
.lb-row { display: grid; grid-template-columns: 30px 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-radius: 16px; }
.lb-row + .lb-row { border-top: .5px solid rgba(255, 255, 255, .07); }
.lb-row.me { background: rgba(242, 122, 46, .16); box-shadow: inset 0 0 0 1px rgba(242, 122, 46, .4); padding: 10px 10px; margin: 2px -6px; }
.lb-row.me + .lb-row { border-top-color: transparent; }
.lb-panel .play .lb-row { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms); }
.place { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: rgba(246, 236, 226, .6); font-variant-numeric: tabular-nums; }
.place.m1, .place.m2, .place.m3 { color: #3a2410; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 10px -4px rgba(0, 0, 0, .5); }
.place.m1 { background: linear-gradient(145deg, var(--gold-1), var(--gold-2)); }
.place.m2 { background: linear-gradient(145deg, var(--silver-1), var(--silver-2)); color: #3b4350; }
.place.m3 { background: linear-gradient(145deg, var(--bronze-1), var(--bronze-2)); }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; overflow: hidden; flex: none; position: relative; }
.ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lb-name { min-width: 0; }
.lb-name b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.lb-name span { display: block; font-size: 12.5px; color: rgba(246, 236, 226, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-right { text-align: right; }
.lb-count { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; font-size: 16px; color: #fff; font-variant-numeric: tabular-nums; }
.lb-count svg.i { width: 15px; height: 15px; color: rgba(246, 236, 226, .5); }
.lb-prize { display: block; font-size: 12.5px; font-weight: 800; color: #f3c56b; font-variant-numeric: tabular-nums; }
.lb-zone { display: flex; align-items: center; gap: 10px; color: rgba(243, 197, 107, .8); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin: 10px 4px; }
.lb-zone::before, .lb-zone::after { content: ""; flex: 1; height: .5px; background: rgba(243, 197, 107, .35); }
.lb-empty { text-align: center; padding: 26px 20px; color: rgba(246, 236, 226, .6); }
.lb-empty .ico { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #f3c56b; }
.lb-empty b { color: #fff; display: block; font-size: 17px; margin-bottom: 4px; }
.lb-note { font-size: 12px; color: rgba(246, 236, 226, .4); text-align: center; margin: 14px 10px 0; }

/* ---------- нижнее меню ---------- */
.tabbar {
  position: absolute; z-index: 40; left: 50%; bottom: calc(var(--safe-bottom) + 12px);
  width: min(calc(100% - 28px), 380px); height: var(--tabbar-h); border-radius: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px;
  transform: translateX(-50%);
}
.tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--muted); transition: color .35s var(--ease); }
.tab svg.i { width: 23px; height: 23px; transition: transform .5s var(--spring); }
.tab.active { color: var(--ink); }
.tab.active svg.i { color: var(--accent); }
.tab.bump svg.i { animation: tabBump .55s var(--spring); }
@keyframes tabBump { 40% { transform: translateY(-3px) scale(1.14); } }
.tab .badge { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 17px; height: 17px; border-radius: 9px; background: #ff5a3c; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px #fff; }
.tab-pill {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 27px;
  background: rgba(255, 255, 255, .92); box-shadow: 0 1px 2px rgba(60, 30, 10, .08), 0 6px 16px -8px rgba(60, 30, 10, .3);
  transition: transform .6s var(--spring);
}

/* ---------- нижний лист ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(28, 20, 16, .38); opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.sheet-backdrop.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 101; left: 0; right: 0; bottom: var(--kb, 0); max-height: calc(100% - var(--safe-top) - 30px - var(--kb, 0px));
  display: flex; flex-direction: column; border-radius: 30px 30px 0 0;
  background: var(--bg); box-shadow: 0 -24px 60px -24px rgba(28, 20, 16, .45);
  transform: translate3d(0, 105%, 0); transition: transform .6s var(--ease), bottom .25s var(--ease), max-height .25s var(--ease);
  padding-bottom: var(--safe-bottom);
}
.sheet.on { transform: none; }
.sheet.full { height: calc(100% - var(--safe-top) - 30px - var(--kb, 0px)); }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: rgba(60, 35, 15, .18); margin: 9px auto 0; flex: none; }
.sheet-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: rgba(70, 40, 15, .06); z-index: 2; transition: transform .3s var(--spring); }
.sheet-close:active { transform: scale(.88); }
.sheet-close svg.i { width: 18px; height: 18px; }
.sheet-content { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 14px 20px 24px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
/* элементы листа не сжимаются, когда он длиннее экрана: иначе блоки с overflow:hidden (баланс) сплющиваются */
.sheet-content > * { flex-shrink: 0; }
.sheet-title { font-size: 25px; font-weight: 800; margin: 6px 44px 4px 0; letter-spacing: -.03em; }
.sheet-sub { color: var(--muted); margin-bottom: 16px; }

/* ---------- профиль ---------- */
.p-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.p-top .ava { width: 54px; height: 54px; font-size: 20px; box-shadow: 0 0 0 3px #fff, var(--shadow-s); }
.p-top b { font-size: 21px; font-weight: 800; display: block; letter-spacing: -.02em; }
.p-top span { color: var(--muted); font-size: 13.5px; }

.member {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px 20px 18px; color: #f6ece2; aspect-ratio: 1.62;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(242, 122, 46, .35) 0%, transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255, 173, 74, .16) 0%, transparent 60%),
    linear-gradient(135deg, #2c1f17 0%, #1a120d 100%);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12), 0 24px 44px -22px rgba(28, 20, 16, .75);
  display: flex; flex-direction: column; justify-content: space-between;
}
.member::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; box-shadow: inset 0 1px 0 rgba(255, 236, 200, .22), inset 0 0 0 1px rgba(255, 236, 200, .08); }
.member::after { content: ""; position: absolute; top: -50%; left: 0; width: 50%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 236, 200, .16), transparent); transform: translateX(-160%) rotate(18deg); animation: sheen 6s var(--ease) infinite; pointer-events: none; will-change: transform; }
@keyframes sheen { 0%, 55% { transform: translateX(-160%) rotate(18deg); } 100% { transform: translateX(360%) rotate(18deg); } }
.member .row1 { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.member .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; font-size: 15px; }
.member .brand svg.i { width: 20px; height: 20px; color: #f3c56b; }
.member .zoom { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #f6ece2; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.member .zoom svg.i { width: 18px; height: 18px; }
.member .lbl { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(246, 236, 226, .5); font-weight: 700; position: relative; z-index: 1; }
.member .code {
  font-size: clamp(34px, 11vw, 46px); font-weight: 800; letter-spacing: .02em; line-height: 1.05; position: relative; z-index: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffe9c2 0%, #e9b064 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.member .row2 { display: flex; justify-content: space-between; align-items: flex-end; position: relative; z-index: 1; font-size: 12.5px; color: rgba(246, 236, 226, .6); }
.member .row2 b { color: #f6ece2; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 14px 4px; margin-top: 12px; }
.stats div { text-align: center; }
.stats div + div { border-left: .5px solid var(--line-2); }
.stats b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

.section { margin-top: 26px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 12px; }
.section-h h3 { font-size: 19px; }
.section-h span, .section-h button { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.group { border-radius: 22px; overflow: hidden; }
.row-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; transition: background .2s; }
.row-btn + .row-btn { border-top: .5px solid var(--line); }
.row-btn:active { background: rgba(70, 40, 15, .04); }
.row-btn .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.row-btn .ico svg.i { width: 20px; height: 20px; }
.row-btn .txt { flex: 1; min-width: 0; }
.row-btn .txt b { display: block; font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.row-btn .txt span { display: block; font-size: 13px; color: var(--muted); }
.row-btn .go svg.i { width: 18px; height: 18px; color: var(--faint); }
.row-btn .count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: #ff5a3c; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.add-feed { width: 100%; margin-top: 14px; }

.note { border-radius: 20px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; background: #fff; box-shadow: var(--shadow-s); }
.note .ni { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.note .ni svg.i { width: 19px; height: 19px; }
.note b { display: block; font-weight: 700; letter-spacing: -.01em; }
.note p { font-size: 13.5px; color: var(--muted); margin: 3px 0 0; }
.note .btn { margin-top: 10px; }
.note.warn .ni { background: var(--warn-soft); color: var(--warn); }
.note.bad .ni { background: var(--bad-soft); color: var(--bad); }
.note.info .ni { background: var(--accent-soft); color: var(--accent-ink); }
.note.ok .ni { background: var(--ok-soft); color: var(--ok); }

.feeds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feed { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-2); box-shadow: var(--shadow-s); text-align: left; transition: transform .35s var(--spring); }
.feed:active { transform: scale(.97); }
.feed img, .feed video { width: 100%; height: 100%; object-fit: cover; display: block; animation: fadeIn .5s var(--ease); }
.feed .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(20, 12, 6, .72)); color: #fff; font-size: 12px; }
.feed .meta b { display: block; font-size: 13.5px; font-weight: 700; }
.feed .meta span { opacity: .75; }
.feed .st { position: absolute; left: 8px; top: 8px; }
.feed .vid { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(20, 12, 6, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; display: grid; place-items: center; }
.feed .vid svg.i { width: 12px; height: 12px; }
.feed .rc { position: absolute; right: 8px; top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.glassy { background: rgba(20, 12, 6, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; }
.tag.glassy.approved::before { background: #5fd38d; }
.tag.glassy.pending::before, .tag.glassy.review_sent::before { background: #ffc85a; }
.tag.glassy.rejected::before { background: #ff7a66; }
.tag.glassy.review::before { background: #ff9a4a; }
.tag.approved:not(.glassy) { background: var(--ok-soft); color: var(--ok); }
.tag.pending:not(.glassy), .tag.review_sent:not(.glassy) { background: var(--warn-soft); color: var(--warn); }
.tag.rejected:not(.glassy) { background: var(--bad-soft); color: var(--bad); }
.tag.review:not(.glassy) { background: var(--accent-soft); color: var(--accent-ink); }
.tag.plain::before { display: none; }
.empty { text-align: center; padding: 30px 20px; color: var(--muted); }
.empty .ico { width: 52px; height: 52px; border-radius: 17px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.empty b { color: var(--ink); display: block; font-size: 16px; margin-bottom: 4px; }

.toggle-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.toggle-row + .toggle-row { border-top: .5px solid var(--line); }
.toggle-row .txt { flex: 1; }
.toggle-row .txt b { display: block; font-weight: 700; }
.toggle-row .txt span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 51px; height: 31px; border-radius: 16px; background: #e6dbcf; transition: background .35s var(--ease); flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(60, 30, 10, .25); transition: transform .45s var(--spring); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(20px); }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 14px; background: rgba(70, 40, 15, .07); }
.seg button { position: relative; z-index: 1; height: 40px; border-radius: 11px; font-weight: 700; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; transition: color .3s; }
.seg button svg.i { width: 18px; height: 18px; }
.seg button.on { color: var(--ink); background: #fff; box-shadow: var(--shadow-s); }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13.5px; margin-left: 2px; color: var(--ink-2); }
.input {
  width: 100%; height: 52px; border-radius: 15px; border: 0; padding: 0 16px; font-weight: 600; font-size: 16px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow .25s;
}
textarea.input { height: auto; min-height: 88px; padding: 14px 16px; resize: none; line-height: 1.4; }
.input:focus { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(242, 122, 46, .12); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0 2px; display: flex; gap: 8px; align-items: flex-start; }
.hint svg.i { width: 16px; height: 16px; margin-top: 1px; }
.picker {
  position: relative; display: grid; place-items: center; min-height: 200px; border-radius: 22px; overflow: hidden; text-align: center; padding: 20px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); border: 0; width: 100%; transition: transform .35s var(--spring);
}
.picker:active { transform: scale(.985); }
.picker .pi { width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.picker .pi svg.i { width: 26px; height: 26px; }
.picker b { display: block; font-size: 16px; font-weight: 700; }
.picker span { font-size: 13px; color: var(--muted); }
.picker img, .picker video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadeIn .4s; }
.picker .change { position: absolute; right: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px; border-radius: 17px; font-size: 13px; font-weight: 700; color: #fff; background: rgba(20, 12, 6, .55); }
.picker .change svg.i { width: 16px; height: 16px; }
.picker input { display: none; }
.geo-box { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); margin: 12px 0 16px; transition: background .3s; }
.geo-box .gi { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.geo-box .gi svg.i { width: 19px; height: 19px; }
.geo-box .txt { flex: 1; min-width: 0; }
.geo-box b { display: block; font-weight: 700; font-size: 14.5px; }
.geo-box span { font-size: 12.5px; color: var(--muted); }
.geo-box.ok .gi { background: var(--ok-soft); color: var(--ok); }
.geo-box.bad .gi { background: var(--bad-soft); color: var(--bad); }
.progress { height: 6px; border-radius: 3px; background: rgba(70, 40, 15, .08); overflow: hidden; margin: 8px 0; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; transition: width .25s var(--ease); }
/* жест в кадре */
.gest { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; margin-bottom: 12px; background: var(--night); color: rgba(246, 236, 226, .75); font-size: 12.5px; transition: background .3s; }
.gest-emoji { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: rgba(255, 255, 255, .08); }
.gest-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gest-txt b { color: #fff; font-size: 14.5px; font-weight: 700; }
.gest .spin { flex: none; }
.gest .btn.sm { flex: none; }
.gest-ok { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #3fae5c; color: #fff; }
.gest-ok svg.i { width: 17px; height: 17px; stroke-width: 2.6; }
.gest[data-st="ok"] { background: linear-gradient(135deg, #1f3b26, #1a2a1e); }
.gest[data-st="ok"] .gest-emoji { background: rgba(63, 174, 92, .18); }
.cam-gest { position: absolute; left: 12px; top: 12px; z-index: 2; min-width: 54px; height: 54px; padding: 0 8px; border-radius: 18px; display: grid; place-items: center; font-size: 32px; background: rgba(15, 9, 5, .55); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); animation: gestPulse 1.6s ease-in-out infinite; }
.cam-gest i { position: absolute; right: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #3fae5c; color: #fff; }
.cam-gest i svg.i { width: 14px; height: 14px; stroke-width: 2.8; }
.cam-gest[data-st="ok"] { animation: none; box-shadow: 0 0 0 2px #3fae5c; }
.cam[data-state="shot"] .cam-gest { display: none; }
@keyframes gestPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.code-remind { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--night); color: rgba(246, 236, 226, .75); margin-bottom: 14px; font-size: 13px; }
.code-remind .tag-code { font-weight: 800; font-size: 19px; letter-spacing: .02em; white-space: nowrap; background: linear-gradient(180deg, #ffe9c2, #e9b064); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fd-media { border-radius: 22px; overflow: hidden; background: #1a120d; margin-bottom: 14px; }
.fd-media img, .fd-media video { width: 100%; max-height: 50vh; object-fit: contain; display: block; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px; }
.kv + .kv { border-top: .5px solid var(--line); }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; }

/* ---------- кошелёк ---------- */
.wallet-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #f6ece2;
  background: radial-gradient(120% 90% at 100% 0%, rgba(242, 122, 46, .35), transparent 55%), linear-gradient(135deg, #2c1f17, #1a120d);
  box-shadow: 0 24px 44px -24px rgba(28, 20, 16, .8); }
.wallet-hero::after { content: ""; position: absolute; top: -50%; left: 0; width: 50%; height: 200%; background: linear-gradient(90deg, transparent, rgba(255, 236, 200, .12), transparent); transform: rotate(18deg); animation: sheen 7s var(--ease) infinite; }
.wallet-hero .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 236, 226, .5); font-weight: 700; }
.wallet-hero .sum { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 12px; color: #fff; font-variant-numeric: tabular-nums; }
.wallet-hero .state { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14); }
.wallet-hero .state svg.i { width: 16px; height: 16px; color: #f3c56b; }
.wallet-hero .pend { margin-top: 10px; font-size: 13px; color: rgba(246, 236, 226, .65); }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.tx + .tx { border-top: .5px solid var(--line); }
.tx .ti { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.tx .ti svg.i { width: 18px; height: 18px; }
.tx .txt { flex: 1; min-width: 0; }
.tx .txt b { display: block; font-weight: 700; font-size: 14px; }
.tx .txt span { font-size: 12px; color: var(--muted); }
.tx .amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx .amt.plus { color: var(--ok); }
.tx .amt.minus { color: var(--ink-2); }

/* ---------- чат ---------- */
.chat { flex: 1; min-height: 240px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding: 4px 2px 10px; }
.msg { max-width: 80%; padding: 9px 14px; border-radius: 20px; font-weight: 500; word-wrap: break-word; white-space: pre-wrap; user-select: text; -webkit-user-select: text; animation: rise .4s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--night); color: #f6ece2; border-bottom-right-radius: 6px; }
.msg.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: var(--shadow-s); }
.msg time { display: block; font-size: 10.5px; opacity: .55; margin-top: 2px; text-align: right; }
.msg img, .msg video { display: block; max-width: 100%; max-height: 240px; border-radius: 14px; margin-bottom: 4px; }
.msg .who { font-size: 11.5px; font-weight: 800; color: var(--accent-ink); }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; }
.chat-input textarea { flex: 1; min-height: 48px; max-height: 120px; height: 48px; border-radius: 24px; padding: 13px 18px; }
.chat-input .rb { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); cursor: pointer; transition: transform .3s var(--spring); }
.chat-input .rb:active { transform: scale(.9); }
.chat-input .send { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(242, 115, 42, .8); }
.chat-attach { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; padding: 4px 6px; }

/* ---------- спонсоры ---------- */
.fund { padding: 22px 20px 8px; }
.fund .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fund .sum { font-size: 56px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.fund .sum span { color: var(--accent); }
.prize-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; }
.prize-row + .prize-row { border-top: .5px solid var(--line); }
.prize-row .place:not(.m1):not(.m2):not(.m3):not(.m4):not(.m5) { color: var(--muted); background: rgba(70, 40, 15, .06); }
.prize-row .t { flex: 1; font-weight: 600; }
.prize-row .v { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sp-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; width: 100%; text-align: left; transition: transform .35s var(--spring); }
.sp-card:active { transform: scale(.98); }
.sp-card + .sp-card { border-top: .5px solid var(--line); }
.sp-logo { width: 56px; height: 56px; border-radius: 18px; overflow: hidden; background: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--accent-ink); box-shadow: inset 0 0 0 .5px var(--line-2), var(--shadow-s); flex: none; }
.sp-logo img { width: 100%; height: 100%; object-fit: cover; }
.sp-card .txt { flex: 1; min-width: 0; }
.sp-card b { font-size: 16.5px; font-weight: 800; display: block; letter-spacing: -.02em; }
.sp-card .ad { font-size: 13.5px; color: var(--muted); margin-top: 1px; }
.sp-card .go svg.i { width: 18px; height: 18px; color: var(--faint); }
.become { padding: 22px 20px 20px; }
.become h3 { font-size: 21px; }
.become ul { margin: 14px 0 18px; padding: 0; list-style: none; }
.become li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--ink-2); }
.become li svg.i { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* ---------- обучалка ---------- */
.onboarding {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--bg);
  padding: calc(var(--safe-top) + 10px) 0 calc(var(--safe-bottom) + 18px);
  animation: fadeIn .5s var(--ease);
}
.onboarding.out { opacity: 0; transform: scale(1.03); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 40px; flex: none; }
.ob-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.ob-brand img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.ob-skip { font-weight: 700; color: var(--muted); padding: 8px 4px; font-size: 14.5px; }
.ob-view { flex: 1; min-height: 0; overflow: hidden; position: relative; }
.ob-track { display: flex; height: 100%; transition: transform .7s var(--ease); touch-action: pan-y; will-change: transform; }
.ob-slide { flex: 0 0 100%; min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 0 24px; }
.ob-stage { flex: 1; min-height: 0; display: grid; place-items: center; position: relative; }
.scene { position: relative; width: 320px; height: 320px; transform: scale(var(--s, 1)); flex: none; }
.ob-text { flex: none; padding-top: 6px; text-align: center; }
.ob-text h2 { font-size: 27px; letter-spacing: -.035em; margin-bottom: 8px; }
.ob-text p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; max-width: 360px; margin: 0 auto; }
.ob-slide .ob-text > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.ob-slide.on .ob-text > * { opacity: 1; transform: none; }
.ob-slide.on .ob-text > :nth-child(2) { transition-delay: .08s; }
.ob-bottom { flex: none; padding: 0 20px; }
.ob-dots { display: flex; justify-content: center; gap: 6px; margin: 16px 0 14px; }
.ob-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(70, 40, 15, .16); transition: all .5s var(--ease); }
.ob-dots i.on { width: 22px; background: var(--ink); }
.ob-agree { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); animation: rise .5s var(--ease); }
.check { width: 24px; height: 24px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; color: #fff; flex: none; transition: all .3s var(--spring); }
.check svg.i { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: all .35s var(--spring); }
.check.on { background: var(--accent); box-shadow: none; }
.check.on svg.i { opacity: 1; transform: none; }

/* сцены */
.sc { position: absolute; }
.ob-slide:not(.on) .anim { visibility: hidden; }
.ob-slide.on .anim { animation: var(--a, rise) .9s var(--ease) backwards; animation-delay: var(--d, 0s); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.88) translateY(10px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(-26px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(26px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-24px) rotate(var(--r, 0deg)); } }
.photo { border-radius: 30px; overflow: hidden; background: #e8dccd; box-shadow: 0 30px 50px -26px rgba(60, 30, 10, .55), 0 0 0 .5px rgba(0, 0, 0, .05); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; font-size: 13.5px; font-weight: 700; white-space: nowrap; color: var(--ink); }
.float-chip .d { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.float-chip .d svg.i { width: 15px; height: 15px; stroke-width: 2.2; }
.float-chip.dark { background: var(--night); color: #f6ece2; box-shadow: 0 16px 30px -14px rgba(28, 20, 16, .7); }
.float-chip.dark .d { background: rgba(255, 255, 255, .1); color: #f3c56b; }
.float-chip.okc .d { background: var(--ok-soft); color: var(--ok); }
.paper-note {
  width: 120px; height: 68px; background: #fffdf7; border-radius: 3px; display: grid; place-items: center;
  font: 700 30px/1 Caveat, cursive; color: #233a8a; transform: rotate(var(--r, 7deg));
  box-shadow: 0 10px 18px -8px rgba(40, 20, 5, .45), inset 0 -10px 18px -14px rgba(120, 90, 50, .4);
}
.paper-note::before { content: ""; position: absolute; top: -8px; left: 38px; width: 44px; height: 16px; background: rgba(255, 236, 190, .75); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.receipt {
  width: 200px; padding: 18px 16px 26px; background: #fffdf8; font: 500 10.5px/1.55 "JetBrains Mono", monospace; color: #3b3129;
  box-shadow: 0 30px 50px -26px rgba(60, 30, 10, .55);
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x;
  mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x;
}
.receipt .c { text-align: center; font-weight: 700; letter-spacing: .08em; }
.receipt .l { display: flex; justify-content: space-between; gap: 8px; }
.receipt .hr { border-top: 1px dashed #c9bba9; margin: 8px 0; }
.receipt .tot { font-weight: 700; font-size: 12.5px; }
.receipt .bar { height: 26px; margin-top: 10px; background: repeating-linear-gradient(90deg, #3b3129 0 2px, transparent 2px 4px, #3b3129 4px 5px, transparent 5px 8px); opacity: .85; }
.mini-lb { width: 290px; border-radius: 24px; padding: 16px; background: var(--night); color: #f6ece2; box-shadow: 0 30px 50px -24px rgba(28, 20, 16, .75); }
.mini-lb .h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.mini-lb .h b { font-size: 17px; color: #fff; }
.mini-lb .h span { color: #f3c56b; font-weight: 800; }
.mini-lb .lb-row { grid-template-columns: 30px 34px 1fr auto; padding: 8px 2px; }
.mini-lb .ava { width: 34px; height: 34px; font-size: 13px; }

/* ---------- прочее ---------- */
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-top) + 12px); z-index: 200; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 18px; font-weight: 700; font-size: 14.5px;
  background: rgba(28, 20, 16, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .5);
  transform: translate(-50%, -150%); opacity: 0; transition: transform .6s var(--spring), opacity .3s; pointer-events: none;
}
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast svg.i { width: 19px; height: 19px; }
.toast.ok svg.i { color: #5fd38d; }
.toast.err svg.i { color: #ff8a73; }
.splash { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; color: #f6ece2; transition: opacity .55s var(--ease), visibility 0s .55s;
  background: radial-gradient(70% 45% at 50% 42%, rgba(242, 122, 46, .32), rgba(242, 122, 46, 0) 70%), radial-gradient(120% 70% at 50% 110%, rgba(255, 173, 74, .12), transparent 60%), var(--night); }
.splash-mark { position: relative; width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; color: #fff; margin-bottom: 18px;
  background: linear-gradient(160deg, #ffb25c 0%, #f27a2e 55%, #d9561a 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -3px 8px rgba(120, 40, 0, .3), 0 22px 44px -14px rgba(242, 115, 42, .85);
  animation: markIn .9s var(--spring) both; }
.splash-mark::after { content: ""; position: absolute; inset: -10px; border-radius: 36px; border: 1.5px solid rgba(255, 178, 92, .45); animation: ring 2.2s var(--ease) .6s infinite; }
@keyframes markIn { from { opacity: 0; transform: scale(.6) rotate(-8deg); } }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.splash-mark svg.i { width: 40px; height: 40px; filter: drop-shadow(0 2px 2px rgba(120, 40, 0, .3)); }
.splash b { font-size: 28px; font-weight: 800; letter-spacing: -.035em; animation: rise .8s var(--ease) .15s backwards; }
.splash small { display: inline-flex; align-items: center; gap: 8px; color: rgba(246, 236, 226, .55); font-weight: 700; font-size: 13px; animation: rise .8s var(--ease) .25s backwards; }
.splash small img { width: 20px; height: 20px; border-radius: 7px; object-fit: cover; }
.splash-bar { position: absolute; bottom: calc(var(--safe-bottom) + 64px); width: 120px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.splash-bar i { position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 2px; background: linear-gradient(90deg, transparent, #f5a55a, transparent); animation: load 1.2s ease-in-out infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.splash.hide { opacity: 0; visibility: hidden; }
.gate { position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; background: var(--bg); }
.gate .splash-mark { animation: none; }
.gate .splash-mark::after { display: none; }
.gate h2 { font-size: 26px; margin: 8px 0; }
.big-code { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 0 30px; }
.big-code .member { width: 100%; max-width: 380px; }
.rules ol { padding-left: 20px; margin: 0; }
.rules li { margin-bottom: 12px; color: var(--ink-2); user-select: text; -webkit-user-select: text; padding-left: 4px; }
.rules li::marker { color: var(--accent); font-weight: 800; }
.rules li b { color: var(--ink); }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: rot .8s linear infinite; display: inline-block; }
.spin.dark { border-color: rgba(70, 40, 15, .12); border-top-color: var(--accent); }
@keyframes rot { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, rgba(70, 40, 15, .05), rgba(70, 40, 15, .1), rgba(70, 40, 15, .05)); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.gap { height: 12px; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }

/* вход приложения после заставки */
body.booting .tabbar, body.booting .fab, body.booting .lb-strip, body.booting .map-side { opacity: 0; }
body.ready .tabbar { animation: tabIn .8s var(--ease) backwards .1s; }
body.ready .fab { animation: fabIn .8s var(--spring) backwards .3s; }
body.ready .lb-strip { animation: fadeIn .8s var(--ease) backwards .2s; }
body.ready .map-side { animation: slideR .8s var(--ease) backwards .35s; }
@keyframes tabIn { from { opacity: 0; transform: translate(-50%, 30px); } }
@keyframes fabIn { from { opacity: 0; transform: translate(-50%, 24px) scale(.9); } }

@media (min-width: 640px) {
  .screen.scroll { padding-left: max(18px, calc(50% - 300px)); padding-right: max(18px, calc(50% - 300px)); }
  .sheet { left: 50%; right: auto; width: 600px; transform: translate3d(-50%, 105%, 0); }
  .sheet.on { transform: translate3d(-50%, 0, 0); }
  .lb-panel { padding-left: max(18px, calc(50% - 300px)); padding-right: max(18px, calc(50% - 300px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.tilt .member { animation: tilt 7s ease-in-out 1s infinite; }
@keyframes tilt { 50% { transform: perspective(900px) rotateX(7deg) rotateY(-9deg) translateY(-4px); } }

/* ---------- карточка участника v2 ---------- */
.member[data-act] { cursor: pointer; transition: transform .45s var(--spring); }
.member[data-act]:active { transform: scale(.98); }
.member .topo { position: absolute; inset: -6%; width: 112%; height: 112%; fill: none; stroke: rgba(243, 197, 107, .2); stroke-width: .7; pointer-events: none; animation: topoDrift 16s ease-in-out infinite alternate; }
@keyframes topoDrift { to { transform: translate(-10px, 6px) scale(1.05); } }
.member .holo { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .5), 0 6px 16px -4px rgba(0, 0, 0, .45); }
.member .holo i { position: absolute; inset: -40%; background: conic-gradient(from 0deg, #ffe2a8, #ffb3c7, #b9d7ff, #c6f3d0, #fff1b8, #ffe2a8); animation: spinHolo 7s linear infinite; }
.member .holo svg.i { position: relative; width: 19px; height: 19px; color: rgba(42, 27, 18, .85); }
@keyframes spinHolo { to { transform: rotate(360deg); } }
.member .code { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .45)) drop-shadow(0 0 18px rgba(233, 176, 100, .25)); }
.member .row2 span { font-size: 11.5px; letter-spacing: .04em; }

/* все места в цвете */
.place.m4, .place.m5 { color: #4a2408; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 10px -4px rgba(0, 0, 0, .35); }
.place.m4 { background: linear-gradient(145deg, #ffd3b0, #ee8a4c); }
.place.m5 { background: linear-gradient(145deg, #fde6c2, #e3b06a); }

/* чек: край и тень (маска срезает box-shadow, поэтому тень — фильтром на обёртке) */
.receipt-wrap { filter: drop-shadow(0 0 .6px rgba(60, 35, 15, .55)) drop-shadow(0 22px 26px rgba(60, 30, 10, .22)); }

/* сцена 1 — мини-карта */
.mini-map { border-radius: 30px; overflow: hidden; box-shadow: 0 30px 50px -26px rgba(60, 30, 10, .5), inset 0 0 0 .5px rgba(60, 35, 15, .08); }
.mini-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-dot { position: absolute; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; background: #f27a2e; color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 3px #fffaf3, 0 0 0 10px rgba(242, 122, 46, .14), 0 8px 14px -6px rgba(60, 30, 10, .5); }
.mm-pin { position: absolute; width: 86px; margin-left: -43px; margin-top: -96px; display: flex; flex-direction: column; align-items: center; }
.mm-pin .ph { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 16px 26px -10px rgba(60, 30, 10, .6); }
.mm-pin .ph img { width: 100%; height: 100%; object-fit: cover; }
.mm-pin i { width: 14px; height: 14px; background: #fff; transform: rotate(45deg); margin-top: -9px; border-radius: 0 0 3px 0; }
.mm-pin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 16px; height: 16px; margin: 4px 0 0 -8px; border-radius: 50%; background: rgba(242, 122, 46, .35); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }

/* сцена 5 — пьедестал */
.podium { display: flex; flex-direction: column; align-items: center; }
.pd-fund { text-align: center; margin-bottom: 14px; }
.pd-fund small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pd-fund b { font-size: 56px; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; background: linear-gradient(180deg, #f6a54f, #c4561a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pd-cols { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.pd { width: 80px; display: flex; flex-direction: column; align-items: center; transform-origin: bottom center; }
.pd-prize { font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-bottom: 8px; color: var(--ink); }
.pd-bar { width: 100%; border-radius: 18px 18px 6px 6px; display: flex; justify-content: center; padding-top: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -14px 24px rgba(0, 0, 0, .07), 0 18px 30px -16px rgba(60, 30, 10, .45); }
.pd-bar span { font-size: 34px; font-weight: 800; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 1px rgba(0, 0, 0, .15); line-height: 1; }
.c1 .pd-bar { height: 118px; background: linear-gradient(160deg, #fbe7b5 0%, #e0b157 55%, #c99236 100%); }
.c2 .pd-bar { height: 90px; background: linear-gradient(160deg, #f8f9fb 0%, #c9cfd8 55%, #a3acb9 100%); }
.c3 .pd-bar { height: 70px; background: linear-gradient(160deg, #f7d6b8 0%, #d39462 55%, #ad6d3c 100%); }
.pd-floor { width: 270px; height: 16px; margin-top: -2px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 30, 10, .16), transparent); }
@keyframes growUp { from { opacity: 0; transform: scaleY(.3) translateY(10px); } }

/* поле ввода поддержки */
.composer { display: flex; align-items: flex-end; gap: 4px; padding: 5px; margin-top: 8px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-s); }
.composer textarea { flex: 1; min-width: 0; height: 40px; max-height: 120px; border: 0; outline: 0; background: transparent; resize: none; padding: 9px 6px; font: 500 16px/22px Manrope, sans-serif; color: var(--ink); }
.composer textarea::placeholder { color: var(--faint); }
.cbtn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); cursor: pointer; transition: transform .3s var(--spring); }
.cbtn:active { transform: scale(.88); }
.cbtn svg.i { width: 21px; height: 21px; }
.cbtn.send { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(242, 115, 42, .8); }
.cbtn.send svg.i { width: 19px; height: 19px; }

/* ---------- шторка рейтинга v2: цвет и смысл ---------- */
.lb-layer {
  background:
    radial-gradient(120% 50% at 50% -8%, rgba(242, 122, 46, .38) 0%, rgba(242, 122, 46, 0) 62%),
    radial-gradient(70% 35% at 105% 28%, rgba(255, 173, 74, .16), transparent 70%),
    radial-gradient(60% 30% at -5% 55%, rgba(233, 176, 90, .10), transparent 70%),
    var(--night);
}
.lb-hero { display: flex; gap: 16px; align-items: center; padding: 16px; margin: 6px 0 12px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 196, 120, .18), rgba(255, 255, 255, .04) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .2), 0 20px 40px -24px rgba(0, 0, 0, .6); }
.lb-medal { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #5a3410;
  background: radial-gradient(circle at 34% 28%, #fff3cf 0%, #f0c46a 45%, #c48a32 100%);
  box-shadow: 0 0 0 5px rgba(243, 197, 107, .14), 0 12px 26px -8px rgba(233, 176, 90, .7), inset 0 -3px 6px rgba(120, 70, 10, .25); }
.lb-medal svg.i { width: 30px; height: 30px; stroke-width: 2.1; }
.lb-hero-t { min-width: 0; }
.lb-hero-t small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(246, 236, 226, .6); }
.lb-hero-t b { display: block; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1;
  background: linear-gradient(180deg, #ffe7b8, #f0b45c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-hero-t span { font-size: 12.5px; color: rgba(246, 236, 226, .65); }
.lb-prizes { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 16px; padding: 0 18px 2px; scrollbar-width: none; }
.lb-prizes::-webkit-scrollbar { display: none; }
.pz { flex: none; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px 0 5px; border-radius: 19px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); }
.pz .place { width: auto; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; font-size: 12.5px; }
.pz b { color: #fff; font-weight: 800; font-size: 14.5px; }
.lb-sec { display: flex; justify-content: space-between; align-items: center; margin: 6px 2px 9px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: rgba(246, 236, 226, .62); }
.lb-sec span { display: inline-flex; align-items: center; gap: 7px; }
.lb-sec svg.i { width: 15px; height: 15px; color: #f5a55a; stroke-width: 2; }
.lb-sec em { font-style: normal; letter-spacing: 0; text-transform: none; font-size: 13px; color: #f3c56b; font-weight: 700; }
.cd div { background: linear-gradient(180deg, rgba(242, 122, 46, .2), rgba(242, 122, 46, .06)); box-shadow: inset 0 0 0 1px rgba(242, 122, 46, .28); }
.cd span { color: #f5a55a; }
.lb-stats { border-color: transparent; margin: 14px 0 16px; padding: 12px 0; border-radius: 20px; background: rgba(255, 255, 255, .05); border-top: 0; border-bottom: 0; }
.lb-stats svg.i { width: 19px; height: 19px; margin: 0 auto 5px; color: #f5a55a; }
.lb-stats div + div { border-left-color: rgba(255, 255, 255, .08); }
.lb-row.ghost .lb-name b { color: rgba(246, 236, 226, .9); }
.lb-row.ghost .lb-name span { color: rgba(246, 236, 226, .45); }
.ghost-ava { background: rgba(255, 255, 255, .06); color: rgba(245, 165, 90, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ghost-ava svg.i { width: 18px; height: 18px; }
.lb-row.ghost .lb-prize { font-size: 15px; }

/* подсказка на выглядывающей карте */
.back-hint { position: absolute; left: 50%; top: 30px; transform: translate(-50%, 6px); display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px 0 12px; border-radius: 19px;
  background: rgba(28, 20, 16, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #f6ece2; font-size: 13.5px; font-weight: 700; white-space: nowrap;
  opacity: 0; transition: opacity .4s var(--ease) .2s, transform .5s var(--ease) .2s; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.back-hint svg.i { width: 17px; height: 17px; color: #f5a55a; stroke-width: 2.2; }
.lb-open .back-hint { opacity: 1; transform: translate(-50%, 0); }

/* пьедестал v2 */
.pd-prize { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 15.5px; margin-bottom: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 6px 14px -8px rgba(60, 30, 10, .4); }
.c1 .pd-prize { background: linear-gradient(180deg, #fff3d2, #f6d78f); color: #6b4310; }
.c2 .pd-prize { background: linear-gradient(180deg, #ffffff, #e3e7ee); color: #3b4350; }
.c3 .pd-prize { background: linear-gradient(180deg, #fde3cc, #f0bf95); color: #6a3612; }
.pd-bar { position: relative; overflow: hidden; }
.pd-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); }
.pd-bar::after { content: ""; position: absolute; top: -20%; left: 0; width: 40%; height: 140%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(-150%) skewX(-18deg); animation: barSheen 4.5s var(--ease) 1.2s infinite; }
@keyframes barSheen { 0%, 60% { transform: translateX(-150%) skewX(-18deg); } 100% { transform: translateX(300%) skewX(-18deg); } }
.pd-bar span { position: relative; z-index: 1; color: rgba(255, 255, 255, .95); text-shadow: 0 -1px 0 rgba(0, 0, 0, .12), 0 2px 6px rgba(80, 40, 0, .25); }
.pd-rest { display: flex; gap: 8px; margin-top: 8px; }
.pd-rest .pz { background: #fff; box-shadow: inset 0 0 0 .5px var(--line-2), var(--shadow-s); }
.pd-rest .pz b { color: var(--ink); }

/* облегчённые эффекты для Android WebView: размытие — самое дорогое при движении карты */
.lowfx .glass, .lowfx .chip.glass, .lowfx .float-chip.glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 251, 246, .95); }
.lowfx .tag.glassy, .lowfx .feed .vid, .lowfx .toast, .lowfx .back-hint, .lowfx .kk-pop .maplibregl-popup-content { -webkit-backdrop-filter: none; backdrop-filter: none; }
.lowfx .tag.glassy { background: rgba(20, 12, 6, .6); }
.lowfx .toast { background: rgba(28, 20, 16, .96); }
.lowfx .back-hint { background: rgba(28, 20, 16, .92); }
.lowfx .ambient i { filter: blur(40px); }
.lowfx .member .topo { animation: none; }

/* спонсоры: роль и вклад */
.sp-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-name b { display: inline; }
.sp-amt { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12.5px; font-weight: 800; color: #6b4310; background: linear-gradient(180deg, #fff1cc, #f6d68c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7); }
.sp-amt.big { height: 30px; padding: 0 13px; border-radius: 15px; font-size: 14px; }
.sp-role { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-top: 2px; }
.sp-meta { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sp-role-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 15px; font-size: 14px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); }

/* шторка v3: фонд-ссылка и красивый отсчёт */
button.lb-hero { width: 100%; text-align: left; color: inherit; transition: transform .35s var(--spring); }
button.lb-hero:active { transform: scale(.98); }
.lb-hero-t { flex: 1; }
.lb-hero-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: rgba(246, 236, 226, .75); flex: none; }
.lb-hero-go svg.i { width: 18px; height: 18px; }
.lb-hero + .lb-stats { margin-top: 0; }
.cd2 { position: relative; overflow: hidden; border-radius: 24px; padding: 14px 14px 16px; margin-bottom: 18px;
  background: radial-gradient(90% 120% at 50% 0%, rgba(242, 122, 46, .28), rgba(242, 122, 46, 0) 70%), rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 120, .18); }
.cd2-top { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: rgba(246, 236, 226, .65); }
.cd2-top span { display: inline-flex; align-items: center; gap: 7px; }
.cd2-top svg.i { width: 15px; height: 15px; color: #f5a55a; stroke-width: 2; }
.cd2-top em { font-style: normal; letter-spacing: 0; text-transform: none; font-size: 13px; color: #f3c56b; font-weight: 700; }
.cd2-row { display: flex; align-items: flex-start; justify-content: center; gap: 4px; }
.cd2-row > i { font-style: normal; font-size: 30px; font-weight: 800; line-height: 50px; color: rgba(245, 165, 90, .7); width: 10px; text-align: center; }
.cd2-cell { flex: 1; max-width: 76px; text-align: center; }
.cd2-cell b { position: relative; display: block; height: 54px; overflow: hidden; border-radius: 16px; font-size: 32px; font-weight: 800; line-height: 54px; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .05) 50%, rgba(0, 0, 0, .12) 50%, rgba(255, 255, 255, .03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 8px 18px -10px rgba(0, 0, 0, .6); }
.cd2-cell b::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .35); }
.cd2-cell b span { display: block; }
.cd2-cell b .flip { animation: flip .45s var(--ease); }
@keyframes flip { from { transform: translateY(-60%); opacity: 0; } }
.cd2-cell small { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #f5a55a; }
.lb-empty { padding: 22px 20px 28px; }

/* шторка v4: фонд и таймер рядом */
.lb-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.lb-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 14px 13px; border-radius: 22px; text-align: left; color: inherit; min-width: 0;
  background: linear-gradient(150deg, rgba(255, 196, 120, .17), rgba(255, 255, 255, .04) 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .18), 0 18px 34px -22px rgba(0, 0, 0, .6); }
button.lb-card { transition: transform .35s var(--spring); }
button.lb-card:active { transform: scale(.97); }
.lb-card-l { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: rgba(246, 236, 226, .62); white-space: nowrap; }
.lb-card-l svg.i { width: 15px; height: 15px; color: #f5a55a; stroke-width: 2; }
.lb-card b { font-size: 27px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; color: #fff; white-space: nowrap; margin-top: 4px; }
.lb-card b.gold { background: linear-gradient(180deg, #ffe7b8, #f0b45c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lb-card-s { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; color: rgba(246, 236, 226, .6); white-space: nowrap; }
.lb-card-s svg.i { width: 15px; height: 15px; color: rgba(246, 236, 226, .6); }
.lb-top + .lb-stats { margin-top: 0; }
.lb-row.ghost .lb-name b { color: rgba(246, 236, 226, .5); font-weight: 600; }
.lb-row.ghost .lb-prize { font-size: 15px; }
@media (max-width: 360px) { .lb-card b { font-size: 23px; } }

/* шторка v5: центрированный фонд с таймером и крупный заголовок рейтинга */
.lb-hero2 { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 18px; }
.lb-fund { display: flex; flex-direction: column; align-items: center; color: inherit; transition: transform .35s var(--spring); }
.lb-fund:active { transform: scale(.97); }
.lb-fund small { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: rgba(246, 236, 226, .6); }
.lb-fund b { font-size: 60px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; margin: 2px 0 2px;
  background: linear-gradient(180deg, #fff0cf 0%, #f3c06a 55%, #e0943a 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 18px rgba(242, 150, 60, .35)); }
.lb-fund span { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: rgba(246, 236, 226, .7); }
.lb-fund span svg.i { width: 16px; height: 16px; }
.lb-timer { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-top: 16px; padding: 0 18px 0 14px; border-radius: 21px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 214, 150, .18); }
.lb-timer svg.i { width: 17px; height: 17px; color: #f5a55a; stroke-width: 2; }
.lb-timer span { font-size: 13.5px; font-weight: 600; color: rgba(246, 236, 226, .65); }
.lb-timer b { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.lb-hero2 + .lb-stats { margin-top: 0; }
.lb-title { text-align: center; margin: 22px 0 12px; }
.lb-title h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.lb-title span { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #f3c56b; background: rgba(243, 197, 107, .12); }

/* таймер в стиле фонда: типографика без рамок */
.lb-cd { position: relative; margin-top: 18px; padding-top: 16px; display: flex; flex-direction: column; align-items: center; }
.lb-cd::before { content: ""; position: absolute; top: 0; left: 50%; width: 180px; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(243, 197, 107, .45), transparent); }
.lb-cd small { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: rgba(246, 236, 226, .6); }
.lb-cd-row { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin-top: 6px; }
.lb-cd-row div { min-width: 46px; text-align: center; }
.lb-cd-row b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff; }
.lb-cd-row span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #f3c56b; margin-top: 2px; }
.lb-cd-row i { font-style: normal; font-size: 26px; font-weight: 700; line-height: 1.25; color: rgba(243, 197, 107, .55); }

/* под пьедесталом */
.pd-more { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--muted); }

/* увеличенная карточка участника */
.zc { position: fixed; inset: 0; z-index: 110; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.zc-bg { position: absolute; inset: 0; background: rgba(24, 16, 11, .55); -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%); opacity: 0; transition: opacity .55s var(--ease) .28s; }
.lowfx .zc-bg { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(24, 16, 11, .86); }
.zc.on .zc-bg { opacity: 1; }
.zc.out .zc-bg { opacity: 0; transition-duration: .4s; transition-delay: 0s; }
.zc-stage { position: relative; width: min(92vw, 400px); }
.zc-card { position: relative; z-index: 2; will-change: transform; }
.zc-card .member { box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 60px -10px rgba(242, 150, 60, .35); }
.zc-card .code { cursor: pointer; transition: transform .3s var(--spring); }
.zc-card .code:active { transform: scale(.96); }
.zc-card .code.copied { animation: codeFlash .7s var(--ease); }
@keyframes codeFlash { 30% { filter: drop-shadow(0 0 22px rgba(255, 210, 140, .95)) brightness(1.35); transform: scale(1.04); } }
.zc-wave { position: absolute; z-index: 1; left: 50%; top: 50%; width: 100%; aspect-ratio: 1.62; border-radius: 30px; transform: translate(-50%, -50%) scale(.9); opacity: 0;
  box-shadow: 0 0 0 2px rgba(255, 196, 120, .7), 0 0 40px 6px rgba(242, 150, 60, .45), inset 0 0 30px rgba(242, 150, 60, .35); pointer-events: none; }
.zc.on .zc-wave { animation: wave 1.3s var(--ease) .42s forwards; }
.zc.on .zc-wave.w2 { animation-delay: .62s; }
@keyframes wave { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.95); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); } }
.zc-text { position: relative; z-index: 2; margin-top: 30px; max-width: 330px; text-align: center; color: rgba(246, 236, 226, .85); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) .6s, transform .7s var(--ease) .6s; }
.zc.on .zc-text { opacity: 1; transform: none; }
.zc.out .zc-text { opacity: 0; transition-delay: 0s; transition-duration: .2s; }
.zc-text p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.zc-text span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: #f3c56b; }
.zc-text span svg.i { width: 16px; height: 16px; }
.zc-close { position: absolute; z-index: 3; top: calc(var(--safe-top) + 14px); right: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #f6ece2; background: rgba(255, 255, 255, .1); opacity: 0; transition: opacity .4s var(--ease) .3s; }
.zc.on .zc-close { opacity: 1; }
.zc-close svg.i { width: 20px; height: 20px; }
#kkRip { position: fixed; inset: 0; z-index: 105; pointer-events: none; display: none; -webkit-backdrop-filter: url(#kkRipple); backdrop-filter: url(#kkRipple); }
#kkRip.on { display: block; }

/* заставка: только лапка и полоса загрузки */
.splash .splash-mark { margin-bottom: 0; }
.splash-bar { width: 140px; bottom: calc(var(--safe-bottom) + 72px); }

/* волна: стеклянное кольцо, преломляющее фон (работает и в Safari, и в Android WebView) */
.kk-ring { position: fixed; z-index: 106; border-radius: 50%; pointer-events: none; transform: scale(.04); opacity: 0;
  -webkit-backdrop-filter: blur(3px) saturate(1.35) brightness(1.06) contrast(1.04); backdrop-filter: blur(3px) saturate(1.35) brightness(1.06) contrast(1.04);
  -webkit-mask: radial-gradient(circle closest-side, transparent 80%, #000 86%, #000 92%, transparent 99%);
  mask: radial-gradient(circle closest-side, transparent 80%, #000 86%, #000 92%, transparent 99%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), inset 0 0 18px 2px rgba(255, 255, 255, .08);
  animation: kkRing 1.15s cubic-bezier(.2, .8, .3, 1) forwards; will-change: transform, opacity; }
.zc .kk-ring { position: absolute; z-index: 1; }
@keyframes kkRing { 0% { transform: scale(.04); opacity: 1; } 70% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.zc-stage, .zc-text, .zc-close { z-index: 2; }
/* затемнение фона — после того как волна прошла */
.zc-bg { transition: opacity .55s var(--ease) .5s !important; }
.zc.out .zc-bg { transition: opacity .35s var(--ease) 0s !important; }

/* кошелёк: воздух между заголовком и балансом */
.wallet-title { margin-bottom: 16px; }

/* подсказка: значок по центру текста */
.hint { align-items: center; }
.hint svg.i { margin-top: 0; }

/* кнопка отправки */
.send-btn { width: 100%; height: 58px; margin-top: 16px; font-size: 16.5px; flex: none; }

/* встроенная камера */
.cam { position: relative; flex: none; width: 100%; aspect-ratio: 3 / 4; max-height: 52vh; border-radius: 24px; overflow: hidden; background: #140d09; box-shadow: var(--shadow-m); }
.cam video, .cam .cam-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .cam-still { display: none; }
.cam[data-state="shot"] .cam-still { display: block; animation: fadeIn .25s; }
.cam[data-state="shot"] video { visibility: hidden; }
.cam-msg { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: rgba(246, 236, 226, .75); font-size: 14px; }
.cam-msg svg.i { width: 34px; height: 34px; color: #f5a55a; }
.cam-msg b { color: #fff; font-size: 16px; }
.cam-msg .spin { margin-right: 6px; }
.cam[data-state="loading"] .cam-msg { display: flex; flex-direction: row; }
.cam[data-state="error"] .cam-msg { display: flex; }
.cam-actions { display: flex; gap: 8px; margin-top: 8px; }
.cam-shutter { position: absolute; left: 50%; bottom: 18px; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; display: none; place-items: center;
  background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 4px #fff, 0 8px 22px rgba(0, 0, 0, .35); transition: transform .3s var(--spring); }
.cam-shutter i { width: 56px; height: 56px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cam-shutter:active { transform: scale(.92); }
.cam-shutter:active i { transform: scale(.9); }
.cam-flip { position: absolute; right: 14px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%; display: none; place-items: center; color: #fff; background: rgba(0, 0, 0, .45); }
.cam-flip svg.i { width: 21px; height: 21px; }
.cam[data-state="live"] .cam-shutter, .cam[data-state="live"] .cam-flip { display: grid; }
.cam-retake { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); height: 44px; padding: 0 18px 0 14px; border-radius: 22px; display: none; align-items: center; gap: 7px; font-weight: 700; font-size: 14.5px; color: #fff; background: rgba(20, 12, 6, .7); }
.cam-retake svg.i { width: 18px; height: 18px; }
.cam[data-state="shot"] .cam-retake { display: inline-flex; }
.cam::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam.flash::after { animation: camFlash .45s ease-out; }
@keyframes camFlash { 0% { opacity: .85; } 100% { opacity: 0; } }

/* увеличенная карточка: без волн, сильнее размытие */
.kk-ring, #kkRip { display: none !important; }
.zc-bg { background: rgba(24, 16, 11, .5); -webkit-backdrop-filter: blur(34px) saturate(130%); backdrop-filter: blur(34px) saturate(130%); transition: opacity .6s var(--ease) 0s !important; }
.lowfx .zc-bg { background: rgba(24, 16, 11, .9); }
.zc.out .zc-bg { transition: opacity .4s var(--ease) 0s !important; }
.zc-text { transition: opacity .6s var(--ease) .35s, transform .7s var(--ease) .35s; }

/* место в рейтинге: в профиле — отдельной строкой, в шторке — карточкой над призовой зоной */
.stats.three { grid-template-columns: repeat(3, 1fr); }
.rank-num { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.lb-me {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; margin: 4px 0 18px; padding: 12px 14px;
  border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.lb-me.in { background: rgba(242, 122, 46, .16); box-shadow: inset 0 0 0 1px rgba(242, 122, 46, .4); }
.lb-me-txt { min-width: 0; }
.lb-me-txt small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(246, 236, 226, .5); }
.lb-me-txt b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.3; color: #fff; }
.lb-me-place { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #f3c56b; white-space: nowrap; }

/* профиль: место в рейтинге и статистика — одной карточкой */
.pf-card { padding: 0; margin-top: 12px; overflow: hidden; }
.pf-card .row-btn { padding: 14px 16px; }
.pf-card .row-btn .txt b, .pf-card .row-btn .txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-card .stats { margin-top: 0; border-top: .5px solid var(--line); }
/* проверка личности в карточке «Участие приостановлено» */
.note-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.note-acts .btn { margin: 0; }
.kyc-st { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.kyc-st svg.i { width: 16px; height: 16px; color: var(--accent-ink); }
.kyc-st.ok svg.i { color: #2f8a4c; }

/* живое видео камеры: без размытий поверх (они пересчитываются каждый кадр), отдельный слой композиции */
.cam video { transform: translateZ(0); }

/* переключатель языка */
.lang-seg { display: inline-flex; flex: none; padding: 3px; border-radius: 12px; background: rgba(70, 40, 15, .07); gap: 2px; }
.lang-seg button { height: 30px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.lang-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 2px 6px -2px rgba(60, 30, 10, .3); }

/* язык: строка с текущим языком и выпадающий список с флагами */
.lang-row .lang-head { width: 100%; text-align: left; }
.lang-cur { display: inline-flex !important; align-items: center; gap: 7px; }
.lang-cur i { font-style: normal; color: var(--faint); }
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); overflow: hidden; display: inline-block; vertical-align: middle; }
.flag.globe { display: inline-grid; place-items: center; box-shadow: none; color: var(--accent-ink); }
.flag.globe svg.i { width: 18px; height: 18px; }
.lang-change { display: inline-flex; align-items: center; gap: 3px; flex: none; height: 32px; padding: 0 10px 0 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); }
.lang-change svg.i { width: 16px; height: 16px; transition: transform .35s var(--spring); }
.lang-row.open .lang-change svg.i { transform: rotate(180deg); }
.lang-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.lang-row.open .lang-menu { grid-template-rows: 1fr; }
.lang-menu-in { overflow: hidden; padding: 0 12px; }
.lang-row.open .lang-menu-in { padding-bottom: 10px; }
.lang-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 10px; border-radius: 12px; text-align: left; transition: background .2s; }
.lang-opt:active { background: rgba(70, 40, 15, .05); }
.lang-opt.on { background: var(--accent-soft); }
.lang-opt .flag { width: 26px; height: 18px; }
.lang-opt .lo-txt { flex: 1; min-width: 0; }
.lang-opt .lo-txt b { display: block; font-size: 15px; font-weight: 700; }
.lang-opt .lo-txt span { display: block; font-size: 12.5px; color: var(--muted); }
.lo-check svg.i { width: 18px; height: 18px; color: var(--accent-ink); }
.lang-row + .toggle-row, .toggle-row + .lang-row { border-top: .5px solid var(--line); }
