/* Mini App сообщества · «ржавый» тёмный стиль: зерно, стекло, 3D-карточка профиля.
   Всё рисуется CSS и SVG прямо в браузере — без внешних картинок и библиотек (CDN в России часто недоступны). */
:root {
  --bg: #0f0c0a;
  --bg2: #17120f;
  --glass: rgba(255, 240, 225, .055);
  --glass2: rgba(255, 240, 225, .09);
  --stroke: rgba(255, 230, 205, .1);
  --text: #f1e9e1;
  --hint: #a2958a;
  --accent: #e0672a;
  --accent2: #ffb648;
  --ok: #52c46b;
  --bad: #ef5a44;
  --gold: #ffcf5a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* этап 37: всё, что меняют темы приложения */
  --topfade: rgba(15, 12, 10, .85);
  --tabsbg: rgba(26, 20, 16, .96);
  --field: rgba(0, 0, 0, .3);
  --btn1: #f07a3a; --btn2: #c9531c; --btnglow: rgba(224, 103, 42, .35);
  --tabon: rgba(224, 103, 42, .32);
  --glow1: rgba(224, 103, 42, .22); --glow2: rgba(255, 182, 72, .07);
  --bgart: none; --bgart-size: auto; --bgart-op: 1;
  --grain: .07;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.42 -apple-system, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
  min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--glow1), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, var(--glow2), transparent 60%),
    var(--bg);
  transition: background-color .4s, color .4s;
}
/* зерно поверх всего — «ржавый металл» */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: var(--grain); transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- верх ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; background: linear-gradient(var(--bg) 55%, var(--topfade));
}
.topbar h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.back { font-size: 30px; line-height: 1; padding: 0 4px 2px 0; color: var(--accent2); }
.balance {
  display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700;
  padding: 6px 10px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke);
}
.balance:empty { display: none; }
.balance b { color: var(--accent2); }

main { position: relative; z-index: 1; padding: 6px 16px 24px; max-width: 640px; margin: 0 auto; }
main > * { animation: rise .45s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .04s; } main > *:nth-child(3) { animation-delay: .08s; }
main > *:nth-child(4) { animation-delay: .12s; } main > *:nth-child(5) { animation-delay: .16s; }
main > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- нижний «док» ---------- */
.tabs {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: flex; justify-content: space-around; padding: 6px; border-radius: 22px;
  background: var(--tabsbg);
  border: 1px solid var(--stroke); box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
  max-width: 616px; margin: 0 auto;
}
.tabs button {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0 5px; border-radius: 16px;
  font-size: 10.5px; font-weight: 600; color: var(--hint); transition: color .2s, background .25s;
}
.tabs button span { font-size: 21px; line-height: 1.05; filter: grayscale(.7) brightness(.85); transition: transform .25s var(--ease), filter .2s; }
.tabs button.on { color: var(--text); background: transparent; }
.tabs button.on span { filter: none; transform: translateY(-2px) scale(1.12); }

/* ---------- заголовки разделов ---------- */
.hero { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.hero .ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none;
  background: linear-gradient(145deg, #3a2417, #1c130e); border: 1px solid var(--stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .4);
}
.hero h2 { margin: 0; font-size: 21px; font-weight: 800; }
.hero p { margin: 1px 0 0; color: var(--hint); font-size: 13px; }

/* ---------- стекло ---------- */
.card {
  position: relative; background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--radius);
  padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.card::before { /* верхний блик стекла */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%);
}
.card h3 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--hint); font-weight: 800; display: flex; align-items: center; gap: 6px; }
.card h3 small { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.muted { color: var(--hint); font-size: 13px; }
.row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--stroke); }
.row:first-of-type, h3 + .row { border-top: 0; }
.row .grow { flex: 1; min-width: 0; }
.row .name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { color: var(--hint); font-size: 12.5px; }
.ava {
  width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 18px; font-weight: 800;
  background: linear-gradient(145deg, #5a3520, #2b1a11); color: #ffd9b8; position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 10px rgba(0, 0, 0, .35);
}
.ava img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.ava.live::after {
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--ok); border: 2px solid var(--bg);
}
.ava.live::before { /* расходящееся кольцо — масштаб и прозрачность, без перерисовки */
  content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(82, 196, 107, .6); animation: pulse 1.8s ease-out infinite; will-change: transform, opacity;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }

/* ---------- кнопки, чипы, переключатели ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px;
  border-radius: 13px; font-weight: 700; font-size: 14px; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, var(--btn1), var(--btn2)); box-shadow: 0 6px 16px var(--btnglow), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s var(--ease), filter .2s;
}
.btn:active { transform: scale(.96); filter: brightness(.95); }
.btn.ghost { background: var(--glass2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); color: var(--text); }
.btn.ok { background: linear-gradient(180deg, #5fd27a, #2f9c4b); box-shadow: 0 6px 16px rgba(82, 196, 107, .3); }
.btn.bad { background: linear-gradient(180deg, #f6705b, #c53a26); box-shadow: 0 6px 16px rgba(239, 90, 68, .3); }
.btn.gold { background: linear-gradient(180deg, #ffd96e, #e0a12b); color: #3b2604; box-shadow: 0 6px 18px rgba(255, 207, 90, .35); }
.btn.small { padding: 7px 11px; font-size: 13px; border-radius: 11px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn.shine::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; transform: translateX(-150%); will-change: transform;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 2.8s infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-150%); } 100% { transform: translateX(330%); } }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btns.grid2 { display: grid; grid-template-columns: 1fr 1fr; }

.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 0 8px; margin-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 13px; border-radius: 99px; background: var(--glass); border: 1px solid var(--stroke);
  font-size: 13px; font-weight: 600; white-space: nowrap; transition: .2s;
}
.chip.on { background: linear-gradient(180deg, #f07a3a, #c9531c); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(224, 103, 42, .35); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(224, 103, 42, .18); color: var(--accent2); }
.tag.green { background: rgba(82, 196, 107, .18); color: #8ee2a0; }
.tag.gray { background: var(--glass2); color: var(--hint); }

.switch { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--stroke); width: 100%; text-align: left; }
h3 + .switch { border-top: 0; }
.switch .grow { flex: 1; }
.switch i {
  position: relative; width: 46px; height: 28px; border-radius: 99px; background: rgba(255, 255, 255, .14); flex: none; transition: .25s;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .25s var(--ease);
}
.switch.on i { background: linear-gradient(180deg, var(--btn1), var(--btn2)); }
.switch.on i::after { transform: translateX(18px); }

.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: width .8s var(--ease); box-shadow: 0 0 10px rgba(255, 182, 72, .5); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 10px 6px; text-align: center; }
.stat b { display: block; font-size: 18px; font-weight: 800; }
.stat span { font-size: 11px; color: var(--hint); }

/* ---------- 3D-карточка профиля ---------- */
/* На ПК в полноэкранном режиме карточка не растягивается шире 460 px: меньше пикселей — плавнее наклон */
.scene { perspective: 1100px; margin: 2px auto 14px; max-width: 460px; touch-action: pan-y; }
/* Производительность: все анимации ниже двигают/проявляют готовые слои (transform/opacity) — это делает видеокарта
   без перерисовки. Никаких анимаций фона, фильтров и размытия «за стеклом» внутри 3D. */
.card3d { position: relative; border-radius: 26px; transform-style: preserve-3d; will-change: transform; transition: transform .6s var(--ease); }
.card3d.live { transition: none; }  /* плавность даёт пружина в JS */
.card3d.idle { animation: drift 8s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: rotateX(3deg) rotateY(-6deg); } 50% { transform: rotateX(-3deg) rotateY(6deg); } }
.card3d.paused *, .card3d.paused, .card3d.paused *::before, .card3d.paused *::after { animation-play-state: paused !important; }
/* Пока карточку двигают пальцем/мышью, живые слои замирают: видеокарта просто поворачивает готовую картинку,
   без перерисовки каждый кадр (это и давало подлагивание на большом экране) */
.card3d.live .c-skin *, .card3d.live .c-skin *::before, .card3d.live .c-skin *::after { animation-play-state: paused !important; }
.c-shadow { position: absolute; left: 10%; right: 10%; bottom: -16px; height: 28px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); transform: translateZ(-40px); }

/* «кожа» карточки — один плоский слой: кант, материал, рельеф, живой слой, обои, блики, частицы */
.c-skin {
  position: absolute; inset: 0; border-radius: 26px; overflow: hidden; transform: translateZ(0); contain: paint;
  box-shadow: 0 0 16px -7px var(--glow), 0 14px 30px rgba(0, 0, 0, .55);
}
/* кант: под материалом крутится большой градиент цветов темы — видны только 5 px по краю */
.c-frame { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--r2); }
.c-frame::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; margin: -80% 0 0 -80%;
  background: conic-gradient(var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r1));
  animation: rot 8s linear infinite; will-change: transform;
}
.c-frame::after { /* фаска: светлая кромка сверху, тёмная снизу */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 25%, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, .45)), rgba(0, 0, 0, .18);
}
@keyframes rot { to { transform: rotate(360deg); } }
.card3d.common .c-frame::before { animation-duration: 18s; }
.c-tex, .c-noise, .c-art, .c-deco, .c-wall, .c-shine, .c-fx { position: absolute; inset: 5px; border-radius: 21px; pointer-events: none; overflow: hidden; }
.c-tex { background-size: cover; box-shadow: inset 0 0 50px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.c-noise { background-size: cover; }  /* запечённый PNG с прозрачностью — без режима наложения */
.c-fx { width: calc(100% - 10px); height: calc(100% - 10px); }

/* уголки-накладки у эпических и легендарных рамок */
.corner { position: absolute; width: 30px; height: 30px; pointer-events: none; }
.corner::before {
  content: ""; position: absolute; inset: 0; border: 3px solid var(--r1); border-radius: 4px; box-shadow: 0 0 8px var(--glow);
  -webkit-mask: linear-gradient(135deg, #000 50%, transparent 50%); mask: linear-gradient(135deg, #000 50%, transparent 50%);
}
.corner.tl { top: 10px; left: 10px; }
.corner.tr { top: 10px; right: 10px; transform: rotate(90deg); }
.corner.br { bottom: 10px; right: 10px; transform: rotate(180deg); }
.corner.bl { bottom: 10px; left: 10px; transform: rotate(270deg); }
.card3d.legend .corner::after { content: "✦"; position: absolute; top: -3px; left: -3px; font-size: 12px; color: #fff; animation: twinkle 2s ease-in-out infinite; will-change: opacity; }

/* обои из эмодзи (фоны): большая плитка внутри, плывёт по диагонали сдвигом (без перерисовки) */
.c-wall { opacity: .2; -webkit-mask: radial-gradient(ellipse 70% 60% at 45% 50%, rgba(0, 0, 0, .25), #000 85%); mask: radial-gradient(ellipse 70% 60% at 45% 50%, rgba(0, 0, 0, .25), #000 85%); }
.c-wall i { position: absolute; inset: -150px 0 0 -150px; background-size: 150px 150px; animation: wall 40s linear infinite; }
.swatch .c-wall { -webkit-mask: none; mask: none; }
@keyframes wall { to { transform: translate(150px, 150px); } }

/* блик и голограмма: большие готовые слои, которые просто сдвигаются за наклоном */
.c-glare { position: absolute; left: -20%; top: -20%; width: 140%; height: 140%; background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .13), transparent 40%); will-change: transform; }
/* голограмма — узкая радужная полоса обычным слоем (без режима наложения), ездит за наклоном */
.c-holo {
  position: absolute; left: 25%; top: -70%; width: 50%; height: 240%; opacity: 0; will-change: transform; transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 61, 110, .35) 20%, rgba(255, 210, 63, .35) 35%, rgba(61, 255, 155, .35) 50%,
    rgba(61, 201, 255, .35) 65%, rgba(178, 61, 255, .35) 80%, transparent);
}
.card3d.rare .c-holo { opacity: .2; } .card3d.epic .c-holo { opacity: .3; } .card3d.legend .c-holo { opacity: .4; }

/* ---------- живые слои тем (только transform/opacity) ---------- */
.deco-stars {
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 30%, #fff, transparent), radial-gradient(1px 1px at 63% 78%, #fff, transparent),
    radial-gradient(2px 2px at 82% 40%, #fff, transparent), radial-gradient(1px 1px at 90% 12%, #fff, transparent),
    radial-gradient(1px 1px at 8% 85%, #fff, transparent), radial-gradient(1.5px 1.5px at 55% 55%, #e6deff, transparent),
    radial-gradient(1px 1px at 37% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 18% 45%, #fff, transparent),
    radial-gradient(44px 44px at 78% 14%, rgba(230, 222, 255, .4), transparent 70%);
}
.deco-stars::after { /* второй слой звёзд мигает */
  content: ""; position: absolute; inset: 0; animation: twinkle 3s ease-in-out infinite;
  background-image: radial-gradient(1px 1px at 20% 40%, #fff, transparent), radial-gradient(1.5px 1.5px at 70% 22%, #fff, transparent),
    radial-gradient(1px 1px at 36% 88%, #fff, transparent), radial-gradient(1px 1px at 92% 70%, #fff, transparent),
    radial-gradient(1px 1px at 50% 35%, #fff, transparent), radial-gradient(1.5px 1.5px at 6% 60%, #fff, transparent);
}
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.deco-grid { background: radial-gradient(85% 32% at 50% 60%, color-mix(in srgb, var(--glow) 35%, transparent), transparent 70%); }
.deco-grid .floor {
  position: absolute; left: -50%; right: -50%; bottom: -6%; height: 46%; transform-origin: 50% 0; overflow: hidden;
  transform: perspective(200px) rotateX(64deg); opacity: .32;
  -webkit-mask: linear-gradient(transparent, #000 55%); mask: linear-gradient(transparent, #000 55%);
}
.deco-grid .floor::before {
  content: ""; position: absolute; left: 0; right: 0; top: -34px; bottom: 0; animation: floor 2.4s linear infinite;
  background-image: linear-gradient(var(--r1) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--r2) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
}
@keyframes floor { to { transform: translateY(34px); } }

.deco-embers {
  background-image: radial-gradient(65% 32% at 50% 106%, rgba(255, 214, 100, .5), transparent 70%);
}
.deco-embers::after {
  content: ""; position: absolute; inset: 0; animation: flicker 2.2s ease-in-out infinite;
  background-image: radial-gradient(3px 3px at 20% 80%, #ffd36b, transparent), radial-gradient(2px 2px at 70% 70%, #ffb347, transparent),
    radial-gradient(2.5px 2.5px at 45% 88%, #fff1a8, transparent), radial-gradient(2px 2px at 85% 85%, #ff8a3d, transparent),
    radial-gradient(2px 2px at 10% 92%, #ffd36b, transparent), radial-gradient(1.5px 1.5px at 58% 64%, #fff1a8, transparent),
    radial-gradient(50% 20% at 50% 100%, rgba(255, 240, 180, .5), transparent 70%);
}
@keyframes flicker { 0%, 100% { opacity: .8; } 30% { opacity: 1; } 55% { opacity: .55; } 75% { opacity: .95; } }

.deco-facets {
  background:
    conic-gradient(from 20deg at 30% 35%, rgba(255, 255, 255, .22) 0 12%, transparent 12% 28%, rgba(255, 255, 255, .1) 28% 40%, transparent 40% 62%, rgba(255, 255, 255, .16) 62% 70%, transparent 70%),
    conic-gradient(from 200deg at 72% 70%, rgba(255, 255, 255, .14) 0 10%, transparent 10% 35%, rgba(255, 255, 255, .09) 35% 48%, transparent 48%);
}
.deco-facets::after, .deco-brushed::after, .deco-rivets::after {
  content: ""; position: absolute; inset: -40%; animation: sweep 5s ease-in-out infinite;
  background: linear-gradient(115deg, transparent 43%, rgba(255, 255, 255, .22) 50%, transparent 57%);
}
.deco-brushed::after, .deco-rivets::after { opacity: .55; animation-duration: 7s; }
@keyframes sweep { 0%, 35% { transform: translateX(-60%); } 75%, 100% { transform: translateX(60%); } }

.deco-hex::before {
  content: ""; position: absolute; inset: 0; animation: twinkle 3s ease-in-out infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='48' viewBox='0 0 28 48'%3E%3Cpath d='M14 0l14 8v16l-14 8L0 24V8zM14 32l14 8v16M14 32L0 40v16' fill='none' stroke='%237dff4d' stroke-opacity='.4' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 28px 48px;
}
.deco-hex { -webkit-mask: radial-gradient(85% 75% at 35% 30%, #000, transparent 90%); mask: radial-gradient(85% 75% at 35% 30%, #000, transparent 90%); }

.deco-brushed { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 7px); }
.deco-rivets {
  background:
    radial-gradient(circle at 12px 12px, #f3e3d2 0 2px, #6b4a33 3px, rgba(0, 0, 0, .5) 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 12px) 12px, #f3e3d2 0 2px, #6b4a33 3px, rgba(0, 0, 0, .5) 5px, transparent 6px),
    radial-gradient(circle at 12px calc(100% - 12px), #f3e3d2 0 2px, #6b4a33 3px, rgba(0, 0, 0, .5) 5px, transparent 6px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), #f3e3d2 0 2px, #6b4a33 3px, rgba(0, 0, 0, .5) 5px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 4px);
}
.deco-rays::before {
  content: ""; position: absolute; inset: -20%; animation: rays 30s ease-in-out infinite alternate;
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 215, 90, .17) 0 5deg, transparent 5deg 15deg);
}
@keyframes rays { to { transform: rotate(6deg) scale(1.06); } }
.deco-smoke::before, .deco-bokeh::before { content: ""; position: absolute; inset: -10%; animation: smoke 9s ease-in-out infinite alternate; }
.deco-smoke::before { background: radial-gradient(60% 40% at 30% 70%, rgba(255, 255, 255, .14), transparent 70%), radial-gradient(50% 35% at 75% 30%, rgba(255, 255, 255, .11), transparent 70%); }
.deco-bokeh::before {
  background: radial-gradient(18px 18px at 20% 30%, rgba(255, 255, 255, .26), transparent), radial-gradient(26px 26px at 75% 22%, rgba(255, 255, 255, .2), transparent),
    radial-gradient(14px 14px at 60% 70%, rgba(255, 255, 255, .24), transparent), radial-gradient(22px 22px at 30% 80%, rgba(255, 255, 255, .15), transparent);
}
@keyframes smoke { to { transform: translate(-6%, -4%) scale(1.12); } }
/* размытые слои рисуются один раз и дальше только вращаются/сдвигаются */
.deco-swirl::before {
  content: ""; position: absolute; inset: -30%; animation: rot 16s linear infinite;
  background: conic-gradient(from 0deg, transparent, rgba(177, 75, 255, .32), transparent 30%, rgba(106, 27, 255, .26), transparent 60%, rgba(211, 139, 255, .22), transparent 85%);
  -webkit-mask: radial-gradient(circle, transparent 6%, #000 28%, transparent 70%); mask: radial-gradient(circle, transparent 6%, #000 28%, transparent 70%);
}
.deco-aurora::before, .deco-aurora::after {
  content: ""; position: absolute; left: -20%; right: -20%; height: 55%; border-radius: 50%;
  /* мягкие края даёт маска (рисуется один раз), а не размытие — оно пересчитывалось при каждом сдвиге */
  -webkit-mask: radial-gradient(closest-side, #000 25%, transparent); mask: radial-gradient(closest-side, #000 25%, transparent);
  background: linear-gradient(90deg, transparent, rgba(77, 255, 184, .38), rgba(77, 155, 255, .32), rgba(176, 77, 255, .34), transparent);
  animation: aurora 9s ease-in-out infinite alternate;
}
.deco-aurora::before { top: 2%; }
.deco-aurora::after { top: 22%; opacity: .6; animation-duration: 12s; animation-direction: alternate-reverse; }
@keyframes aurora { from { transform: rotate(-6deg); } to { transform: translateX(12%) rotate(3deg); } }
.deco-waves { -webkit-mask: linear-gradient(transparent 15%, #000 60%); mask: linear-gradient(transparent 15%, #000 60%); }
.deco-waves::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -120px; right: 0; animation: waves 6s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='40'%3E%3Cpath d='M0 20 Q15 8 30 20 T60 20 T90 20 T120 20' fill='none' stroke='%23b8faff' stroke-opacity='.3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-size: 120px 40px;
}
@keyframes waves { to { transform: translateX(120px); } }
.deco-leaves { background: radial-gradient(70% 45% at 50% 0%, rgba(216, 245, 162, .32), transparent 70%), repeating-linear-gradient(100deg, rgba(0, 0, 0, .12) 0 6px, transparent 6px 22px); }
.deco-sun { background: linear-gradient(180deg, transparent 63%, rgba(255, 220, 160, .6) 63.5%, transparent 64.5%); }
.deco-sun .orb {
  position: absolute; left: 50%; top: 63%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%;
  background: radial-gradient(circle, #f3dca0, #d98a45 55%, rgba(255, 107, 107, 0) 72%); opacity: .75;
  -webkit-mask: linear-gradient(#000 50%, transparent 50%); mask: linear-gradient(#000 50%, transparent 50%);
  animation: sunpulse 5s ease-in-out infinite;
}
@keyframes sunpulse { 50% { transform: scale(1.06); } }
.deco-petals::before {
  content: ""; position: absolute; left: 0; right: 0; top: -340px; bottom: 0; animation: petals 9s linear infinite;
  background-image: radial-gradient(5px 3px at 18% 22%, rgba(255, 240, 247, .9), transparent), radial-gradient(4px 3px at 68% 12%, rgba(255, 200, 225, .9), transparent),
    radial-gradient(5px 3px at 82% 48%, rgba(255, 240, 247, .85), transparent), radial-gradient(4px 3px at 35% 64%, rgba(255, 200, 225, .75), transparent),
    radial-gradient(5px 3px at 55% 82%, rgba(255, 240, 247, .75), transparent);
  background-size: 100% 340px;
}
@keyframes petals { to { transform: translateY(340px); } }
.deco-stripes::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40px; right: 0; animation: stripes 3s linear infinite;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 14px, transparent 14px 28px);
}
@keyframes stripes { to { transform: translateX(39.6px); } }
.deco-prism::before {
  content: ""; position: absolute; inset: -40%; opacity: .28; animation: rot 14s linear infinite;
  background: conic-gradient(#ff3d6e, #ffd23f, #3dff9b, #3dc9ff, #b23dff, #ff3d6e);
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent);
}
.deco-drips {
  background: linear-gradient(180deg, rgba(196, 18, 31, .55), transparent 18%),
    radial-gradient(4px 16px at 15% 10%, rgba(196, 18, 31, .75), transparent), radial-gradient(3px 26px at 42% 12%, rgba(196, 18, 31, .65), transparent),
    radial-gradient(4px 20px at 73% 9%, rgba(196, 18, 31, .75), transparent), radial-gradient(3px 12px at 90% 8%, rgba(196, 18, 31, .65), transparent);
}

/* ---------- содержимое карточки (приподнято над «кожей») ---------- */
.c-body { position: relative; padding: 20px 18px 18px; transform-style: preserve-3d; }
.c-top { display: flex; justify-content: space-between; align-items: center; transform: translateZ(30px); }
.ribbon {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 9px; border-radius: 99px;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .15); color: #fff;
}
.ribbon.legend { color: var(--gold); border-color: rgba(255, 207, 90, .5); }
.ribbon.epic { color: #d39bff; border-color: rgba(178, 61, 255, .5); }
.ribbon.rare { color: #8fd0ff; border-color: rgba(61, 201, 255, .5); }
.c-id { display: flex; gap: 14px; align-items: center; margin-top: 14px; transform-style: preserve-3d; }
.ring {
  --p: .5; width: 88px; height: 88px; border-radius: 50%; padding: 4px; flex: none; position: relative; transform: translateZ(60px);
  background: conic-gradient(var(--r1, var(--accent2)), var(--r2, var(--accent)) calc(var(--p) * 1turn), rgba(255, 255, 255, .14) 0);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 0 18px var(--glow, rgba(255, 182, 72, .5));
}
.ring .ph {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 34px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 35% 30%, #6d4128, #1d120c); border: 3px solid rgba(0, 0, 0, .55); overflow: hidden;
}
.ring .ph img { width: 100%; height: 100%; object-fit: cover; }
.medal {
  position: absolute; right: -6px; bottom: -4px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px;
  background: radial-gradient(circle at 30% 30%, #fff6d0, #c8963a 70%); box-shadow: 0 3px 8px rgba(0, 0, 0, .5), inset 0 -2px 3px rgba(0, 0, 0, .3);
}
.c-name { min-width: 0; transform: translateZ(45px); }
.nick {
  font-size: 26px; line-height: 1.05; font-weight: 900; letter-spacing: .2px; word-break: break-word;
  background: linear-gradient(180deg, #fff 35%, var(--r1, #ffd9b8)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .7));
}
.plate {
  display: inline-block; margin-top: 7px; padding: 3px 12px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #2a2017;
  background: linear-gradient(180deg, #e9e4dc, #a39a8e); position: relative; text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 #fff, 0 3px 8px rgba(0, 0, 0, .45);
}
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #6b6157; box-shadow: inset 0 1px 0 rgba(0, 0, 0, .5); }
.plate::before { left: 4px; } .plate::after { right: 4px; }
.c-role { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px #000; }
.c-rank { margin-top: 16px; transform: translateZ(30px); }
.c-rank .top { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; text-shadow: 0 1px 2px #000; }
.c-rank .top span:last-child { color: rgba(255, 255, 255, .72); font-weight: 600; }
.c-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; transform: translateZ(40px); }
.c-stat { border-radius: 14px; padding: 9px 4px; text-align: center; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.c-stat b { display: block; font-size: 18px; font-weight: 900; }
.c-stat span { font-size: 10.5px; color: rgba(255, 255, 255, .72); }
.c-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; color: rgba(255, 255, 255, .62); transform: translateZ(20px); letter-spacing: .4px; }
.preview-note { text-align: center; font-size: 12.5px; color: var(--accent2); margin: -2px 0 12px; font-weight: 700; }

/* ---------- значки-монеты ---------- */
.coins { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 12px 8px; }
.coin { text-align: center; perspective: 500px; }
.coin .in { position: relative; width: 62px; height: 62px; margin: 0 auto; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.coin.flip .in { transform: rotateY(180deg); }
.coin .face {
  position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 32% 28%, var(--c1), var(--c2) 70%);
  box-shadow: inset 0 0 0 3px var(--c3), inset 0 -5px 8px rgba(0, 0, 0, .35), inset 0 4px 6px rgba(255, 255, 255, .35), 0 6px 12px rgba(0, 0, 0, .45);
  font-size: 27px;
}
.coin .face.back { transform: rotateY(180deg); font-size: 11px; font-weight: 800; line-height: 1.15; padding: 8px; color: #1d140c; }
.coin span.n { display: block; margin-top: 6px; font-size: 11px; color: var(--hint); line-height: 1.2; }
.coin.sel .in { outline: 3px solid var(--accent2); outline-offset: 3px; border-radius: 50%; }
.coin.common { --c1: #f1f1f1; --c2: #9aa3ab; --c3: #c9d0d6; }
.coin.rare { --c1: #c8ecff; --c2: #2f86c9; --c3: #8fd0ff; }
.coin.epic { --c1: #f1d2ff; --c2: #8a39c9; --c3: #d39bff; }
.coin.legend { --c1: #fff4c2; --c2: #d7962c; --c3: #ffd96e; }
.coin.legend .face.front { box-shadow: inset 0 0 0 3px var(--c3), inset 0 -5px 8px rgba(0, 0, 0, .35), inset 0 4px 6px rgba(255, 255, 255, .35), 0 0 14px rgba(255, 207, 90, .6); }

/* ---------- кастомизация ---------- */
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.item { background: var(--glass); border: 1px solid var(--stroke); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.item .swatch.mat { position: relative; overflow: hidden; box-shadow: inset 0 0 0 2px var(--r2, transparent), inset 0 0 20px rgba(0, 0, 0, .5); }
.item .swatch.mat > div { inset: 0; border-radius: 0; }
.item .swatch .sw-ic { position: relative; z-index: 2; }
.item .swatch { height: 64px; border-radius: 11px; display: grid; place-items: center; font-size: 26px; background-size: cover; box-shadow: inset 0 0 20px rgba(0, 0, 0, .5); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.item .nm { font-weight: 700; font-size: 13.5px; }
.item .pr { font-size: 12.5px; color: var(--accent2); font-weight: 700; }
.item .btns { margin-top: auto; }
.item.equipped { border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2), 0 0 18px rgba(255, 182, 72, .25); }
.item .rar { position: absolute; top: 14px; right: 14px; font-size: 13px; }

/* ---------- мероприятия, опросы, дропсы, квесты ---------- */
.event { display: flex; gap: 12px; }
.date {
  flex: none; width: 58px; text-align: center; border-radius: 14px; padding: 8px 0;
  background: linear-gradient(180deg, rgba(224, 103, 42, .35), rgba(224, 103, 42, .1)); border: 1px solid rgba(224, 103, 42, .35);
}
.date b { display: block; font-size: 21px; font-weight: 900; color: var(--accent2); line-height: 1.1; }
.date span { font-size: 11px; color: var(--hint); font-weight: 600; }
.countdown { font-variant-numeric: tabular-nums; }
.opt { position: relative; display: block; width: 100%; text-align: left; padding: 11px 12px; margin-top: 8px; border-radius: 13px; overflow: hidden; background: var(--glass2); border: 1px solid var(--stroke); }
.opt .fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(224, 103, 42, .45), rgba(255, 182, 72, .2)); transition: width .8s var(--ease); }
.opt .lbl { position: relative; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.opt.mine { border-color: var(--accent2); }
.opt[disabled] { opacity: .55; }
.drops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drop { border-radius: 13px; overflow: hidden; background: var(--glass2); text-align: center; font-size: 12px; border: 1px solid var(--stroke); }
.drop img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #222; }
.drop div { padding: 6px 4px; font-weight: 600; }
.quest { padding: 11px 0; border-top: 1px solid var(--stroke); }
h3 + .quest { border-top: 0; }
.quest .head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 7px; }
.quest .head b { font-size: 14px; }
.reward { font-weight: 800; color: var(--accent2); white-space: nowrap; }

/* ---------- кошелёк ---------- */
.wallet-hero { display: flex; align-items: center; gap: 16px; }
.coin3d {
  width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(circle at 32% 28%, #fff1bf, #d08a24 68%, #8a5412);
  box-shadow: inset 0 0 0 4px #f5c65a, inset 0 -6px 10px rgba(0, 0, 0, .35), 0 10px 24px rgba(255, 170, 60, .3);
  animation: coinspin 6s ease-in-out infinite;
}
@keyframes coinspin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(360deg); } }
.big { font-size: 34px; font-weight: 900; line-height: 1; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 12px 0; }
.streak i { height: 34px; border-radius: 10px; background: var(--glass2); display: grid; place-items: center; font-style: normal; font-size: 11px; color: var(--hint); font-weight: 700; }
.streak i.on { background: linear-gradient(180deg, #f07a3a, #c9531c); color: #fff; box-shadow: 0 4px 10px rgba(224, 103, 42, .35); }

/* ---------- служебное ---------- */
.empty { text-align: center; color: var(--hint); padding: 26px 8px; }
.skel { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 12px; background: var(--glass); }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, var(--glass2) 50%, transparent 70%); animation: skel 1.2s linear infinite; will-change: transform; }
@keyframes skel { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.input { width: 100%; padding: 12px 14px; border-radius: 13px; border: 1px solid var(--stroke); background: var(--field); color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.input:focus { border-color: var(--accent); }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); opacity: 0; z-index: 50;
  background: rgba(20, 15, 12, .92); border: 1px solid var(--stroke); color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600;
  max-width: 88vw; text-align: center; transition: .3s var(--ease); pointer-events: none; backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- лёгкая графика (слабые ПК и телефоны) ---------- */
body.lite .c-holo, body.lite .btn.shine::after { display: none; }
body.lite .card3d.idle { animation: none; }
body.lite .c-frame::before, body.lite .c-wall i, body.lite .c-deco, body.lite .c-deco *,
body.lite .c-deco::before, body.lite .c-deco::after, body.lite .corner::after, body.lite .coin3d { animation: none !important; }
body.lite .deco-aurora::before, body.lite .deco-aurora::after, body.lite .deco-swirl::before, body.lite .deco-prism::before { filter: none; opacity: .35; }
body.lite .c-skin { box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
body.lite main > * { animation: none; }

/* ---------- вкладка «Всё»: плитки разделов ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px; border-radius: 14px; text-align: left;
  background: var(--glass2); border: 1px solid var(--stroke); transition: transform .12s var(--ease);
}
.tile:active { transform: scale(.97); }
.tile .ti { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.tile b { font-size: 14px; }
.tile small { color: var(--hint); font-size: 11.5px; line-height: 1.25; }
textarea.input { min-height: 96px; resize: vertical; font: inherit; }
.form label { display: block; font-size: 12.5px; color: var(--hint); margin: 10px 0 5px; font-weight: 600; }
.pill { display: inline-flex; gap: 4px; align-items: center; padding: 3px 9px; border-radius: 99px; background: var(--glass2); font-size: 12px; margin: 0 4px 4px 0; }


/* ---------- раздел «Профиль» (sec/profile2.js) ---------- */
.field { display: flex; gap: 8px; align-items: flex-start; }
.field .input { flex: 1; min-width: 0; }
.field textarea.input { min-height: 64px; }
.field .btn { flex: none; min-width: 46px; padding-inline: 12px; }
.pbar { height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .35); overflow: hidden; }
.pbar i { display: block; height: 100%; transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent), var(--accent2)); transition: transform .6s var(--ease); }
details.fold summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::after { content: "▾"; margin-left: 8px; color: var(--hint); transition: transform .2s var(--ease); }
details.fold[open] summary::after { transform: rotate(180deg); }
details.fold summary small { margin-left: auto; color: var(--hint); font-size: 12px; }
details.fold[open] summary { margin-bottom: 6px; }
.list { display: grid; gap: 6px; }
.row.press { width: 100%; text-align: left; font: inherit; color: inherit; background: var(--glass); border: 1px solid var(--stroke); border-radius: 14px; padding: 10px 12px; cursor: pointer; transition: transform .15s var(--ease); }
.row.press:active { transform: scale(.98); }
.row.press.on { border-color: var(--accent); }
.row .ti { font-size: 22px; width: 30px; text-align: center; }
.range { flex: 1; accent-color: var(--accent); }
.achs { display: grid; gap: 8px; }
.ach { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); opacity: .6; }
.ach.have { opacity: 1; border-color: rgba(255, 207, 90, .35); }
.ach .ai { font-size: 26px; width: 36px; text-align: center; }
.ach .grow { flex: 1; min-width: 0; }
.ach .sub { color: var(--hint); font-size: 12.5px; }
.codebox { display: block; margin: 8px 0; padding: 12px; width: 100%; border-radius: 12px; border: 1px dashed var(--accent2); background: rgba(0, 0, 0, .3); color: var(--accent2); font: 800 20px/1 ui-monospace, Consolas, monospace; letter-spacing: 3px; cursor: pointer; }

/* ---------- раздел «Экономика» (sec/econ.js) ---------- */
.tiles.quick { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; }
.tiles.quick .tile { align-items: center; text-align: center; padding: 12px 6px; }
.row .col { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.stars { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.star { font-size: 34px; line-height: 1; background: none; border: 0; color: rgba(255, 255, 255, .18); cursor: pointer; transition: transform .15s var(--ease), color .15s; }
.star.on { color: var(--gold); }
.star:active { transform: scale(.85); }
.press-row { cursor: pointer; }

/* ---------- раздел «Соревнования» (sec/comp.js) ---------- */
.press-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: transform .15s var(--ease); }
.press-card:active { transform: scale(.985); }
.card.glow { border-color: rgba(255, 182, 72, .45); box-shadow: var(--shadow), 0 0 0 1px rgba(255, 182, 72, .15) inset; }
.vs { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 16px; }
.vs span { color: var(--hint); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.bracket { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.rnd { flex: none; min-width: 150px; display: flex; flex-direction: column; gap: 8px; justify-content: space-around; scroll-snap-align: start; }
.rnd-t { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--hint); font-weight: 800; }
.match { border-radius: 12px; overflow: hidden; border: 1px solid var(--stroke); background: rgba(0, 0, 0, .25); }
.match.mine { border-color: var(--accent); }
.match .pl { padding: 7px 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match .pl + .pl { border-top: 1px solid var(--stroke); }
.match .pl.win { color: var(--gold); font-weight: 800; }
.q { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: center; text-align: left; font: inherit; color: inherit; padding: 12px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); cursor: pointer; transition: transform .15s var(--ease); }
.opt:active:not(:disabled) { transform: scale(.98); }
.opt b { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--glass2); }
.opt.right { border-color: var(--ok); background: rgba(82, 196, 107, .14); }
.opt.wrong { border-color: var(--bad); background: rgba(239, 90, 68, .14); }
.opt:disabled { cursor: default; }
.star:hover { color: var(--gold); }

/* ---------- админка (sec/admin2.js) ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid3 .input { min-width: 0; }

/* ---------- шторка снизу: карточка предмета/товара (только transform/opacity) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .22s ease; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap.on { opacity: 1; }
.sheet { width: 100%; max-width: 560px; max-height: 86vh; overflow-y: auto; background: var(--bg2); border: 1px solid var(--stroke); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 8px 16px calc(18px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); }
.sheet-wrap.on .sheet { transform: none; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--glass2); margin: 0 auto 8px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sheet-head b { flex: 1; font-size: 17px; }
.sheet-preview .swatch { height: 110px; border-radius: 16px; display: grid; place-items: center; font-size: 44px; position: relative; overflow: hidden; box-shadow: inset 0 0 30px rgba(0, 0, 0, .5); }
.sheet-preview .swatch.mat > div { position: absolute; inset: 0; }
.sheet-preview .swatch .sw-ic { position: relative; z-index: 2; }
.sheet-lines { display: grid; gap: 6px; margin: 12px 0; font-size: 14px; }
.sheet-lines .pill { justify-self: start; }
.sheet-status { font-weight: 800; margin-bottom: 10px; color: var(--accent2); }

/* ---------- кастомизация как в боте ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, .3); border: 1px solid var(--stroke); margin-bottom: 10px; }
.seg button { font: inherit; font-weight: 700; color: var(--hint); background: none; border: 0; border-radius: 10px; padding: 9px 6px; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button.on { background: var(--glass2); color: var(--text); }
.item.press { font: inherit; color: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--ease); }
.item.press:active { transform: scale(.97); }
.item.locked { opacity: .62; }
.item .tg { font-size: 12px; letter-spacing: 1px; }

/* ---------- магазин как в боте ---------- */
.shop-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.shop-cta .ti { font-size: 28px; }
.shop-cta .grow { flex: 1; }
.shop-cta .chev { font-size: 26px; color: var(--hint); }
.deal { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; border-color: rgba(255, 182, 72, .45); background: linear-gradient(135deg, rgba(224, 103, 42, .22), rgba(255, 182, 72, .08)); }
.deal b { font-size: 16px; }
.gold-t { color: var(--gold); }
.shop-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-top: 1px solid var(--stroke); padding: 11px 0; cursor: pointer; }
.shop-row:first-of-type { border-top: 0; }
.shop-row .grow { flex: 1; min-width: 0; }
.shop-row .name { font-weight: 700; }
.shop-row .sub { color: var(--hint); font-size: 12.5px; }
.pr-col { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.pr-col s { font-size: 11.5px; color: var(--hint); }
.pr-col b { color: var(--accent2); }
.pr-col small { font-size: 11px; color: #8ee2a0; }
.press:active { transform: scale(.985); }

/* ---------- BETA ---------- */
.beta-pill { flex: none; margin-right: auto; margin-left: -4px; padding: 3px 8px; border-radius: 8px; font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px;
  color: #1b1206; background: linear-gradient(180deg, #ffd96e, #e0a12b); cursor: pointer; box-shadow: 0 2px 10px rgba(255, 182, 72, .35); }
.topbar h1:has(+ .beta-pill) { flex: 0 1 auto; }

/* ---------- переходы между экранами: вперёд — справа, назад — слева, вкладки — снизу (только transform/opacity) ---------- */
main.nav-fwd > * { animation-name: inR; animation-duration: .38s; }
main.nav-back > * { animation-name: inL; animation-duration: .38s; }
@keyframes inR { from { opacity: 0; transform: translate3d(26px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes inL { from { opacity: 0; transform: translate3d(-26px, 0, 0); } to { opacity: 1; transform: none; } }
#title.t-in { animation: tIn .32s var(--ease) both; }
@keyframes tIn { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }
.tabs button { transition: transform .2s var(--ease), color .2s; }
.tabs button:active { transform: scale(.9); }
.tile { transition: transform .15s var(--ease), border-color .2s; }
.tile:active { transform: scale(.95); }
@media (hover: hover) { .tile:hover, .press:hover, .item.press:hover { border-color: rgba(255, 182, 72, .35); } }
@media (prefers-reduced-motion: reduce) { main > *, #title.t-in { animation: none !important; } }
body.lite main.nav-fwd > *, body.lite main.nav-back > *, body.lite #title.t-in { animation: none; }

/* ---------- счётчики «ждёт тебя» ---------- */
.tile { position: relative; }
.tile .badge { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; line-height: 1; font-style: normal; color: #fff; background: var(--bad); box-shadow: 0 2px 8px rgba(239, 90, 68, .45); }
.tile.has-badge { border-color: rgba(239, 90, 68, .35); }
.tabs button { position: relative; }
.tabs .dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--bg2); }
.chips.wrap { flex-wrap: wrap; overflow: visible; }

/* ---------- админка: магазин, посты ---------- */
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--stroke); }
.store-row:first-of-type { border-top: 0; }
.store-row .grow { flex: 1 1 200px; min-width: 0; }
.store-row .name { font-weight: 700; }
.store-row .sub { color: var(--hint); font-size: 12.5px; }
.store-row .btns { margin: 0; }
.store-row.off { opacity: .5; }
.post-preview { white-space: pre-wrap; padding: 12px; border-radius: 14px; background: #1c242e; border: 1px solid rgba(255, 255, 255, .08); font-size: 14px; line-height: 1.45; }
.post-preview .post-btn { margin-top: 10px; text-align: center; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-weight: 700; font-size: 13px; }
.post-preview .opt-p { margin-top: 6px; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); }

/* ===================== этап 36 ===================== */
/* износ рамки: блестит (часто заходит) / потёртая / ржавая — только непрозрачность и маски, без фильтров */
.card3d .c-skin::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .6s; }
.card3d.wear-worn .c-skin::after { opacity: .5; background:
  radial-gradient(40% 30% at 18% 22%, rgba(120, 90, 60, .55), transparent 70%),
  radial-gradient(35% 25% at 82% 78%, rgba(110, 80, 55, .5), transparent 70%); }
.card3d.wear-rust .c-skin::after { opacity: .75; background:
  radial-gradient(45% 35% at 15% 20%, rgba(150, 70, 25, .7), transparent 70%),
  radial-gradient(40% 30% at 85% 30%, rgba(130, 60, 20, .6), transparent 70%),
  radial-gradient(50% 40% at 60% 90%, rgba(140, 65, 22, .65), transparent 70%),
  repeating-linear-gradient(115deg, rgba(90, 40, 15, .18) 0 3px, transparent 3px 9px); }
.card3d.wear-shine .c-skin::after { opacity: 1; background: linear-gradient(105deg, transparent 38%, rgba(255, 245, 220, .16) 48%, transparent 58%);
  background-size: 260% 100%; animation: wearShine 5.5s ease-in-out infinite; }
@keyframes wearShine { 0%, 55% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
body.lite .card3d.wear-shine .c-skin::after { animation: none; opacity: .5; }
.wear-tag { font-style: normal; margin-right: 6px; opacity: .85; }

/* наклейки на карточке */
.c-stk, .stk-edit { position: absolute; inset: 0; border-radius: 26px; pointer-events: none; z-index: 6; transform: translateZ(80px); }
.stk { position: absolute; font-size: 30px; line-height: 1; user-select: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.stk-edit { pointer-events: auto; touch-action: none; }
.stk-edit .stk { cursor: grab; padding: 4px; border-radius: 10px; }
.stk-edit .stk.sel { outline: 2px dashed var(--accent2); outline-offset: 2px; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.stk-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); color: var(--text); }
.stk-cell span { font-size: 26px; }
.stk-cell small { font-size: 10.5px; color: var(--hint); text-align: center; }
.stk-cell:not(.own) span { opacity: .45; }
.stk-cell.own { border-color: rgba(255, 182, 72, .35); }
.range { width: 100%; accent-color: var(--accent); }

/* виджет «Сегодня» */
.today .today-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 0; border-top: 1px solid var(--stroke); color: var(--text); background: none; font: inherit; }
.today .today-row:first-of-type { border-top: 0; }
.today .ti { width: 26px; text-align: center; font-size: 18px; }
.today .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.today .chev { font-style: normal; color: var(--hint); font-size: 20px; }
.today-row.press:active { opacity: .6; }

/* цель недели */
.goal-title { font-weight: 800; font-size: 16px; margin: 2px 0 10px; }
.goal-bar { height: 12px; border-radius: 99px; background: var(--glass2); overflow: hidden; }
.goal-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #c9531c, var(--accent2)); transition: width .8s var(--ease); }
.goal.done .goal-bar i { background: linear-gradient(90deg, #2f9a4a, #7bd389); }
.goal-nums { margin: 8px 0 4px; color: var(--hint); }
.goal-nums b { color: var(--text); font-size: 18px; }

/* вызов, вопрос дня, летопись */
.chal { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.chal-ic { font-size: 30px; line-height: 1; }
.qotd { font-weight: 800; font-size: 17px; line-height: 1.3; }
.chron { position: relative; padding-left: 18px; }
.chron::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: .5; }
.chron-year { font-weight: 900; font-size: 20px; color: var(--accent2); margin: 10px 0 4px 18px; }
.chron-item { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.chron-ic { position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg2); border: 1px solid var(--stroke); font-size: 14px; flex: none; }

/* ферма */
.genes { display: flex; gap: 6px; margin-bottom: 4px; }
.genes i { flex: 1; height: 34px; border-radius: 9px; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--glass2); color: var(--hint); }
.genes i.Y { background: rgba(82, 196, 107, .22); color: #8ee2a0; }
.genes i.G { background: rgba(82, 160, 196, .22); color: #8ecfe2; }
.farm-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.farm-big div { background: var(--glass); border-radius: 14px; padding: 10px 4px; }
.farm-big b { display: block; font-size: 24px; color: var(--accent2); }
.farm-big span { font-size: 12px; color: var(--hint); }

/* планировки */
.plan-img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; background: var(--glass); }
.plan-cost { font-weight: 700; margin: 6px 0; }

/* тренажёр отдачи */
.recoil-card { display: flex; flex-direction: column; align-items: center; }
.recoil { touch-action: none; border-radius: 14px; background: radial-gradient(60% 50% at 50% 100%, rgba(224, 103, 42, .12), transparent), rgba(0, 0, 0, .25); }
.recoil-res { margin-top: 10px; font-weight: 700; min-height: 34px; }
.recoil-score { font-size: 30px; color: var(--accent2); }
.row.me .name { color: var(--accent2); }

/* словарь, титул */
.slang b { font-size: 16px; }
.slang div { margin-top: 3px; }
.title-preview { min-height: 40px; display: flex; align-items: center; }
.chip.word.rare { border-color: rgba(120, 170, 255, .45); }
.chip.word.epic { border-color: rgba(200, 120, 255, .55); color: #e2b8ff; }

/* сравнение */
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 12px; }
.cmp-side { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 14px 8px; border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1, #607d8b) 30%, transparent), color-mix(in srgb, var(--c2, #37474f) 18%, transparent)); border: 1px solid var(--stroke); min-width: 0; }
.cmp-side b { overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.cmp-side small { color: var(--hint); font-size: 11.5px; }
.cmp-ava { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: rgba(0, 0, 0, .3); }
.cmp-vs { text-align: center; }
.cmp-vs b { display: block; font-size: 26px; color: var(--accent2); }
.cmp-vs small { color: var(--hint); font-size: 11px; }
.cmp-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--stroke); text-align: center; }
.cmp-row:first-child { border-top: 0; }
.cmp-row span { color: var(--hint); font-size: 13px; }
.cmp-row b.win { color: #8ee2a0; }
.cmp-row b.win::after { content: " ▲"; font-size: 10px; }

/* голосования команды */
.vote-bars { display: grid; gap: 4px; margin: 8px 0; }
.vote.closed { opacity: .8; }
/* локальная галерея рамок (только для разработки) */
body.gallery #app, body.gallery main { max-width: none !important; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 10px; }
.dev-cell b { display: block; text-align: center; margin: 4px 0; }
.dev-cell .scene { margin: 0 auto; }
/* этап 37: рисунок темы — плоская картинка без режимов наложения (лёгкая для GPU) */
.c-art { background-size: cover; background-position: center; }

/* этап 37: витрина наборов */
.set-list { display: grid; gap: 14px; margin-bottom: 14px; }
.set-card { position: relative; border-radius: var(--radius); padding: 14px; background: linear-gradient(160deg, var(--glass2), var(--glass)); border: 1px solid var(--stroke);
  box-shadow: var(--shadow); animation: rise .5s var(--ease) both; overflow: hidden; }
.set-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(255, 182, 72, .16), transparent); pointer-events: none; }
.set-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.set-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: rgba(0, 0, 0, .28); border: 1px solid var(--stroke); flex: none; }
.set-head b { font-size: 17px; }
.set-badge { font-weight: 900; font-size: 15px; padding: 6px 10px; border-radius: 12px; color: #2a1404; background: linear-gradient(180deg, #ffe08a, #ffb02e); box-shadow: 0 4px 14px rgba(255, 176, 46, .35); transform: rotate(4deg); }
.set-preview { margin: 4px -4px 8px; pointer-events: none; }
.set-preview .scene { max-width: 360px; margin: 0 auto; transform: scale(.92); transform-origin: top center; margin-bottom: -6px; }
.set-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.set-item { padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); border: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 2px; position: relative; }
.set-item small { color: var(--hint); font-size: 11px; }
.set-item span { font-weight: 700; font-size: 13px; }
.set-item i { position: absolute; top: 6px; right: 8px; font-style: normal; font-size: 10.5px; color: #8ee2a0; }
.set-item.have { opacity: .6; }
.set-item.r-rare { border-color: rgba(90, 160, 255, .35); } .set-item.r-epic { border-color: rgba(180, 100, 255, .45); } .set-item.r-legend { border-color: rgba(255, 200, 80, .6); }
.set-timer { font-size: 13px; color: var(--hint); margin-bottom: 8px; }
.set-timer b { color: var(--accent2); }
.set-buy { display: flex; align-items: center; justify-content: center; gap: 10px; }
.set-buy .old { text-decoration: line-through; opacity: .55; }
.set-buy .save { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: rgba(0, 0, 0, .25); }
.set-owned { text-align: center; color: #8ee2a0; font-weight: 700; padding: 6px 0; }

/* ===================== этап 37: темы приложения и анимации ===================== */
/* фон страниц из темы — отдельный слой, плитка рисуется один раз */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background-image: var(--bgart); opacity: var(--bgart-op); }
/* светлый режим */
html[data-mode="light"] {
  --glass: rgba(255, 255, 255, .78); --glass2: rgba(40, 25, 10, .055); --stroke: rgba(70, 45, 20, .13);
  --text: #261b13; --hint: #7d6b5c; --field: rgba(40, 25, 10, .05); --grain: .03;
  --shadow: 0 8px 22px rgba(80, 50, 20, .12);
}
html[data-mode="light"] .card::before { background: linear-gradient(180deg, rgba(255, 255, 255, .6), transparent 40%); }
html[data-mode="light"] .switch i { background: rgba(40, 25, 10, .15); }
html[data-mode="light"] .bar { background: rgba(40, 25, 10, .1); }
html[data-mode="light"] .tabs { box-shadow: 0 10px 26px rgba(80, 50, 20, .16); }
html[data-mode="light"] .tag { background: color-mix(in srgb, var(--accent) 16%, transparent); }
html[data-mode="light"] #toast { background: rgba(38, 27, 19, .92); }
html[data-mode="light"] .set-item, html[data-mode="light"] .set-ic, html[data-mode="light"] .stk-cell, html[data-mode="light"] .farm-big div { background: rgba(40, 25, 10, .05); }
html[data-mode="light"] .ava { color: #fff; }
html[data-mode="light"] .sheet { background: var(--bg2); }
html[data-mode="light"] .post-preview { background: #e9eef3; color: #1d2733; }
/* плавная смена темы без View Transitions */
body.theme-fade, body.theme-fade * { transition: background-color .45s, color .45s, border-color .45s !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* нижние вкладки: подсветка ездит под активной, значки — рисованные */
.tabs { overflow: hidden; }
.tab-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 16px; z-index: 0;
  background: linear-gradient(180deg, var(--tabon), color-mix(in srgb, var(--tabon) 35%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), width .3s; will-change: transform; }
.tabs button { z-index: 1; }
.tabs button em { font-style: normal; }
.tabs button .ti-svg { width: 23px; height: 23px; display: block; color: var(--hint); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), color .2s; }
.tabs button .ti-svg svg { width: 100%; height: 100%; display: block; }
.tabs button.on .ti-svg { color: var(--accent2); transform: translateY(-2px) scale(1.12); }
.tabs button .ti-emoji { font-size: 21px; line-height: 1.05; filter: grayscale(.7) brightness(.85); transition: transform .35s cubic-bezier(.3, 1.5, .5, 1), filter .2s; }
.tabs button.on .ti-emoji { filter: none; transform: translateY(-2px) scale(1.14); }
.tabs button.on em { animation: tabLbl .35s var(--ease); }
@keyframes tabLbl { from { opacity: .3; transform: translateY(3px); } to { opacity: 1; transform: none; } }
/* переход между вкладками — в сторону нажатой */
main.nav-tabR > * { animation-name: tabInR; animation-duration: .42s; }
main.nav-tabL > * { animation-name: tabInL; animation-duration: .42s; }
@keyframes tabInR { from { opacity: 0; transform: translate3d(34px, 0, 0) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes tabInL { from { opacity: 0; transform: translate3d(-34px, 0, 0) scale(.985); } to { opacity: 1; transform: none; } }
body.lite main.nav-tabR > *, body.lite main.nav-tabL > * { animation-duration: .2s; }
/* живость интерфейса: нажатия, появление строк, плитки */
.row.press, .press-row, .today-row.press { transition: transform .15s var(--ease), background .2s; }
.row.press:active, .press-row:active { transform: scale(.985); background: var(--glass2); }
.card .row { animation: rowIn .4s var(--ease) both; }
.card .row:nth-child(2) { animation-delay: .03s; } .card .row:nth-child(3) { animation-delay: .06s; } .card .row:nth-child(4) { animation-delay: .09s; }
.card .row:nth-child(5) { animation-delay: .12s; } .card .row:nth-child(n+6) { animation-delay: .15s; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.tiles .tile { animation: tileIn .45s cubic-bezier(.3, 1.3, .5, 1) both; }
.tiles .tile:nth-child(2) { animation-delay: .03s; } .tiles .tile:nth-child(3) { animation-delay: .06s; } .tiles .tile:nth-child(4) { animation-delay: .09s; }
.tiles .tile:nth-child(n+5) { animation-delay: .12s; }
@keyframes tileIn { from { opacity: 0; transform: scale(.9) translateY(8px); } to { opacity: 1; transform: none; } }
.chip { transition: transform .15s var(--ease), background .25s, color .2s, border-color .2s; }
.chip:active { transform: scale(.94); }
.chip.on { animation: chipOn .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes chipOn { from { transform: scale(.9); } to { transform: none; } }
.btn::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255, 255, 255, .35), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none; }
.btn.rip::before { opacity: 1; transition: none; }
@media (prefers-reduced-motion: reduce) { .card .row, .tiles .tile, main.nav-tabR > *, main.nav-tabL > * { animation: none !important; } }
body.lite .card .row, body.lite .tiles .tile { animation: none; }

/* переключатель «солнце/луна» */
.mode-switch { position: relative; width: 74px; height: 38px; border-radius: 99px; flex: none; overflow: hidden;
  background: linear-gradient(180deg, #2a3a6a, #121a36); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .45); }
.mode-switch .sky { position: absolute; inset: 0; transition: opacity .5s; }
.mode-switch .sky.day { background: linear-gradient(180deg, #8fd0ff, #5aa8f0); opacity: 0; }
.mode-switch .sky.night i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 2.4s ease-in-out infinite; }
.mode-switch .knob { position: absolute; top: 4px; left: 4px; width: 30px; height: 30px; border-radius: 50%; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1), background .5s, box-shadow .5s;
  background: #e8ecf5; box-shadow: inset -4px -3px 0 #c3c9d8, 0 2px 6px rgba(0, 0, 0, .35); transform: translateX(36px) rotate(-30deg); }
.mode-switch .knob::before, .mode-switch .knob::after { content: ""; position: absolute; border-radius: 50%; background: #c3c9d8; transition: opacity .3s; }
.mode-switch .knob::before { width: 7px; height: 7px; top: 7px; left: 9px; } .mode-switch .knob::after { width: 5px; height: 5px; top: 17px; left: 16px; }
.mode-switch .cloud { position: absolute; bottom: 5px; right: 8px; width: 22px; height: 8px; border-radius: 99px; background: #fff; opacity: 0; transform: translateY(10px); transition: .5s; }
.mode-switch.light .sky.day { opacity: 1; }
.mode-switch.light .knob { transform: none; background: #ffd23f; box-shadow: 0 0 0 4px rgba(255, 210, 63, .35), 0 0 16px rgba(255, 200, 40, .8); }
.mode-switch.light .knob::before, .mode-switch.light .knob::after { opacity: 0; }
.mode-switch.light .cloud { opacity: .9; transform: none; }
.mode-row { display: flex; align-items: center; gap: 14px; }
.mode-row .grow { flex: 1; }
/* галерея тем */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-cell { position: relative; text-align: left; border-radius: 16px; padding: 10px; border: 1.5px solid var(--stroke); background: var(--glass2); color: var(--text);
  transition: transform .2s var(--ease), border-color .25s; overflow: hidden; }
.theme-cell:active { transform: scale(.97); }
.theme-cell.cur { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.theme-mini { height: 74px; border-radius: 11px; margin-bottom: 8px; position: relative; overflow: hidden; }
.theme-mini i { position: absolute; left: 8px; right: 8px; height: 10px; border-radius: 5px; }
.theme-mini .tb { bottom: 6px; height: 14px; border-radius: 7px; }
.theme-cell b { display: block; font-size: 14px; }
.theme-cell small { color: var(--hint); font-size: 11.5px; }
.theme-cell .price { position: absolute; z-index: 2; top: 14px; right: 14px; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; }
.theme-cell.r-legend { border-color: rgba(255, 200, 80, .55); }
.theme-cell.r-epic { border-color: rgba(180, 100, 255, .45); }

/* ===================== этап 37: аркада и биржа ===================== */
.crate-card { text-align: center; }
.crate { position: relative; width: 150px; height: 150px; margin: 6px auto 14px; perspective: 600px; }
.crate-glow { position: absolute; inset: -30px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 80, .35), transparent); opacity: .5; animation: cglow 2.4s ease-in-out infinite; }
@keyframes cglow { 50% { opacity: .9; transform: scale(1.08); } }
.crate-body { position: absolute; left: 15px; right: 15px; bottom: 10px; height: 90px; border-radius: 10px; display: grid; place-items: center;
  background: repeating-linear-gradient(90deg, #8a5a2c 0 26px, #6d4520 26px 28px), linear-gradient(#9a6a34, #5a3a1a);
  box-shadow: inset 0 0 0 4px #4a2e14, inset 0 -10px 18px rgba(0, 0, 0, .35), 0 10px 22px rgba(0, 0, 0, .4); }
.crate-body span { font-size: 36px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.crate-lid { position: absolute; left: 8px; right: 8px; top: 30px; height: 26px; border-radius: 8px; z-index: 2; transform-origin: 10% 100%;
  background: linear-gradient(#a8743c, #7a4e24); box-shadow: inset 0 0 0 4px #4a2e14, 0 4px 8px rgba(0, 0, 0, .3); transition: transform .6s cubic-bezier(.3, 1.6, .4, 1); }
.crate.t1 .crate-body { background: repeating-linear-gradient(90deg, #4a5a2a 0 26px, #3a4720 26px 28px), linear-gradient(#5a6a32, #34401a); box-shadow: inset 0 0 0 4px #2a3412, 0 10px 22px rgba(0, 0, 0, .4); }
.crate.t1 .crate-lid { background: linear-gradient(#66763a, #44521f); box-shadow: inset 0 0 0 4px #2a3412; }
.crate.t2 .crate-body { background: linear-gradient(135deg, #1a3a5a, #0e2238); box-shadow: inset 0 0 0 4px #5ad8ff, 0 0 22px rgba(90, 216, 255, .45); }
.crate.t2 .crate-lid { background: linear-gradient(#2a5a8a, #163454); box-shadow: inset 0 0 0 4px #5ad8ff; }
.crate.t2 .crate-glow { background: radial-gradient(closest-side, rgba(90, 216, 255, .4), transparent); }
.crate.shake { animation: cshake .18s linear infinite; }
@keyframes cshake { 0% { transform: rotate(0); } 25% { transform: rotate(-4deg) translateY(-2px); } 75% { transform: rotate(4deg) translateY(-2px); } }
.crate.open .crate-lid, .crate.opened .crate-lid { transform: translate(-20px, -40px) rotate(-38deg); }
.crate.opened { opacity: .55; }
.crate-prize { position: absolute; left: 0; right: 0; top: 40px; z-index: 3; display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(30px) scale(.6); }
.crate.open .crate-prize { animation: prize .7s .15s cubic-bezier(.3, 1.6, .4, 1) forwards; }
@keyframes prize { to { opacity: 1; transform: translateY(-34px) scale(1); } }
.crate-prize b { font-size: 26px; font-weight: 900; color: #ffd23f; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.crate-prize small { font-size: 12px; color: var(--text); background: rgba(0, 0, 0, .45); padding: 2px 8px; border-radius: 99px; margin-top: 2px; }
.crate-tiers { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.crate-tiers .ct { display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 12px; opacity: .5; border: 1px solid transparent; }
.crate-tiers .ct.on { opacity: 1; border-color: var(--accent); background: var(--glass2); }
.crate-tiers .ct span { font-size: 22px; } .crate-tiers .ct small { font-size: 10.5px; color: var(--hint); }
.spark { position: fixed; z-index: 99; width: 8px; height: 8px; margin: -4px; border-radius: 50%; pointer-events: none; animation: spark .85s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
/* кодовый замок */
.lock-panel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-bottom: 10px;
  background: linear-gradient(160deg, #3a3f46, #1c1f24); box-shadow: inset 0 0 0 2px #50565e, inset 0 2px 0 rgba(255, 255, 255, .08), 0 8px 18px rgba(0, 0, 0, .35); }
.lock-led { width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px #ff3b30; flex: none; }
.lock-panel.win .lock-led { background: #34c759; box-shadow: 0 0 12px #34c759; }
.lock-disp { display: flex; gap: 8px; flex: 1; justify-content: center; }
.lock-disp i { width: 34px; height: 44px; border-radius: 8px; display: grid; place-items: center; font: 900 24px/1 ui-monospace, monospace; font-style: normal;
  color: #7dffa0; background: #0b1410; box-shadow: inset 0 2px 6px rgba(0, 0, 0, .7); text-shadow: 0 0 8px rgba(125, 255, 160, .7); transition: transform .15s; }
.lock-disp i.on { transform: scale(1.06); }
.lock-left { font-size: 12px; color: #cfd6dd; min-width: 70px; text-align: right; }
.lock-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.lock-pad .key { height: 50px; border-radius: 12px; font-size: 20px; font-weight: 800; color: #e8edf2;
  background: linear-gradient(180deg, #4a5059, #2c3036); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 4px 0 #181b1f; transition: transform .08s, box-shadow .08s; }
.lock-pad .key:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 0 #181b1f; }
.lock-pad .key.go { background: linear-gradient(180deg, #3aa85a, #237a3c); }
.lock-pad .key[disabled] { opacity: .35; }
.lock-pad.buzz { animation: cshake .1s linear 4; }
.lock-hist { display: grid; gap: 6px; }
.lock-hist .lh { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; border-radius: 10px; background: var(--glass2); animation: rowIn .35s var(--ease) both; }
.lock-hist code { font-size: 17px; letter-spacing: 4px; font-weight: 800; }
.pg { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-left: 4px; background: rgba(128, 128, 128, .35); }
.pg.g { background: #34c759; box-shadow: 0 0 6px #34c759; } .pg.y { background: #ffcc00; box-shadow: 0 0 6px #ffcc00; }
/* биржа */
.dcx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.dcx-stats b { display: block; font-size: 20px; color: var(--accent2); } .dcx-stats span { font-size: 11px; color: var(--hint); }
.ob-head, .ob-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; align-items: center; }
.ob-head { font-size: 11px; color: var(--hint); padding: 0 8px 4px; }
.ob-row { position: relative; width: 100%; padding: 8px; border-radius: 9px; text-align: left; color: var(--text); overflow: hidden; margin-bottom: 3px; animation: rowIn .35s var(--ease) both; }
.ob-row .depth { position: absolute; right: 0; top: 0; bottom: 0; z-index: 0; border-radius: 9px; transition: width .6s var(--ease); }
.ob-row.sell .depth { background: rgba(239, 90, 68, .16); } .ob-row.buy .depth { background: rgba(82, 196, 107, .16); }
.ob-row > b, .ob-row > span, .ob-row > small { position: relative; z-index: 1; }
.ob-row.sell b { color: #ff7a66; } .ob-row.buy b { color: #6fdc8c; }
.ob-row small { color: var(--hint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-row.own { outline: 1px dashed var(--stroke); }
.ob-row:active { transform: scale(.985); }
.ob-mid { text-align: center; font-weight: 900; padding: 6px 0; color: var(--accent2); border-top: 1px dashed var(--stroke); border-bottom: 1px dashed var(--stroke); margin: 4px 0; }
.ob-empty { padding: 8px; text-align: center; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; padding: 4px; border-radius: 14px; background: var(--glass2); }
.seg2 button { padding: 9px; border-radius: 11px; font-weight: 700; color: var(--hint); transition: background .25s, color .2s; }
.seg2 button.on.sell { background: rgba(239, 90, 68, .22); color: #ff8a76; } .seg2 button.on.buy { background: rgba(82, 196, 107, .22); color: #7ee29a; }
.guard-note { border-color: rgba(255, 200, 80, .4); background: rgba(255, 200, 80, .08); font-weight: 600; }
/* этап 38: панель экономики */
.eco-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.eco-top b { display: block; font-size: 20px; } .eco-top span { font-size: 11px; color: var(--hint); }
.eco-top .plus { color: #6fdc8c; } .eco-top .minus { color: #ff7a66; }
.eco-note.ok { border-color: rgba(82, 196, 107, .4); } .eco-note.warn { border-color: rgba(255, 200, 80, .5); }
.eco-chart { display: flex; gap: 4px; align-items: flex-end; height: 140px; }
.eco-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; animation: tileIn .5s var(--ease) both; }
.eco-bars { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; }
.eco-bars i { flex: 1; border-radius: 4px 4px 0 0; min-height: 2px; transition: height .6s var(--ease); }
.eco-bars .m { background: linear-gradient(180deg, #7ee29a, #2f9a4a); } .eco-bars .b { background: linear-gradient(180deg, #ff9a86, #c53a26); }
.eco-col small { font-size: 9px; color: var(--hint); }
.eco-row { position: relative; display: flex; gap: 8px; padding: 7px 4px; border-top: 1px solid var(--stroke); }
.eco-row:first-of-type { border-top: 0; }
.eco-row span, .eco-row b { position: relative; z-index: 1; }
.eco-share { position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 6px; opacity: .14; z-index: 0; }
.eco-share.m { background: #52c46b; } .eco-share.b { background: #ef5a44; }
/* этап 38: Хэллоуин */
.season-card { overflow: hidden; border-color: rgba(255, 122, 26, .45); background: linear-gradient(160deg, rgba(255, 122, 26, .16), rgba(120, 40, 160, .14)); }
.season-bats { position: absolute; inset: 0; pointer-events: none; font-size: 18px; }
.season-bats::before, .season-bats i, .season-bats b { position: absolute; font-style: normal; font-weight: normal; }
.season-bats i { top: 10px; right: 22%; font-size: 14px; animation: bat 5s ease-in-out infinite; }
.season-bats b { top: 34px; right: 8%; font-size: 20px; animation: bat 6.5s ease-in-out infinite reverse; }
@keyframes bat { 0%, 100% { transform: translate(0, 0) rotate(-6deg); } 50% { transform: translate(-26px, 10px) rotate(8deg); } }
.hunt { margin: 10px 0 6px; }
.hunt-bar { display: flex; gap: 6px; margin-bottom: 4px; }
.hunt-bar i { font-style: normal; font-size: 24px; filter: grayscale(1) brightness(.5); transition: filter .4s, transform .4s; }
.hunt-bar i.on { filter: none; transform: scale(1.1); animation: tileIn .5s var(--ease) both; }
.share-url { padding: 10px 12px; border-radius: 12px; background: var(--field); border: 1px dashed var(--stroke); word-break: break-all; font-size: 13px; margin-bottom: 4px; }
/* этап 38: биржа услуг */
.svc-me { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; }
.svc-me b { display: block; font-size: 20px; color: var(--accent2); } .svc-me span { font-size: 11px; color: var(--hint); }
.svc-me .btns { justify-content: flex-end; }
.svc-item { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; padding: 11px 4px; border-top: 1px solid var(--stroke); color: var(--text); animation: rowIn .35s var(--ease) both; }
.svc-item:first-child { border-top: 0; }
.svc-item:active { transform: scale(.985); }
.svc-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--glass2); flex: none; }
.svc-price { color: var(--accent2); white-space: nowrap; }
.svc-head { display: flex; justify-content: space-between; align-items: center; }
.svc-stars { display: grid; gap: 6px; }
.svc-stars button { padding: 9px; border-radius: 11px; background: var(--glass2); font-size: 15px; text-align: left; }
.svc-stars button:active { transform: scale(.98); }
.seg3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; padding: 4px; border-radius: 14px; background: var(--glass2); }
.seg3 button { padding: 9px 4px; border-radius: 11px; font-weight: 700; font-size: 13px; color: var(--hint); transition: background .25s, color .2s; }
.seg3 button.on { background: var(--tabon); color: var(--text); }

/* этап 38: «Рейд-тактик» */
.raid-intro { text-align: center; }
.raid-boom { font-size: 52px; animation: cglow 2s ease-in-out infinite; }
.raid-stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.raid-stats b { display: block; font-size: 20px; color: var(--accent2); } .raid-stats span { font-size: 11px; color: var(--hint); }
.raid-title { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.raid-title > span { font-size: 32px; }
.raid-rule { padding: 8px 12px; border-radius: 12px; margin-bottom: 10px; font-weight: 700; background: rgba(255, 200, 80, .12); border: 1px solid rgba(255, 200, 80, .35); }
.raid-routes { display: grid; gap: 8px; }
.raid-route { padding: 10px; border-radius: 14px; border: 1.5px solid var(--stroke); background: var(--glass2); cursor: pointer; transition: border-color .25s, opacity .3s, transform .15s; }
.raid-route:active { transform: scale(.985); }
.raid-route.on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.raid-route.dim { opacity: .45; }
.rr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rr-path { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.rr-path::-webkit-scrollbar { display: none; }
.rr-arrow { font-style: normal; color: var(--hint); }
.rr-start, .rr-loot { font-size: 22px; }
.rr-obst { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 6px 4px; border-radius: 10px; background: rgba(0, 0, 0, .25); text-align: center; transition: background .3s, transform .3s; }
html[data-mode="light"] .rr-obst { background: rgba(40, 25, 10, .06); }
.rr-obst em { font-style: normal; font-size: 20px; } .rr-obst small { font-size: 10px; color: var(--hint); line-height: 1.15; }
.rr-obst b { font-size: 11px; color: #ffb35a; }
.rr-obst.blown { background: rgba(255, 106, 26, .2); animation: blown .45s var(--ease); }
@keyframes blown { 0% { transform: scale(1); } 40% { transform: scale(1.12) rotate(-3deg); } 100% { transform: scale(1); } }
.raid-pick { padding: 8px 0; border-top: 1px solid var(--stroke); }
.raid-pick:first-of-type { border-top: 0; }
.rp-name { font-weight: 700; margin-bottom: 6px; }
.rp-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.rp-tool { display: flex; flex-direction: column; align-items: center; padding: 7px 4px; border-radius: 11px; border: 1.5px solid var(--stroke); background: var(--glass2); color: var(--text); transition: border-color .2s, transform .15s; }
.rp-tool span { font-size: 18px; } .rp-tool b { font-size: 13px; } .rp-tool small { font-size: 10px; color: var(--hint); }
.rp-tool.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); transform: scale(1.04); }
.raid-bar { position: sticky; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 16px; margin-bottom: 12px; background: var(--tabsbg); border: 1px solid var(--stroke); box-shadow: var(--shadow); }
.raid-bar small { color: var(--hint); font-size: 11px; display: block; }
.raid-bar b { font-size: 22px; color: var(--accent2); transition: color .2s; }
.raid-bar.over b { color: #ff7a66; }
.raid-result { text-align: center; overflow: hidden; }
.raid-blast { font-size: 64px; animation: blast .7s cubic-bezier(.3, 1.6, .4, 1) both; }
@keyframes blast { from { transform: scale(.2) rotate(-30deg); opacity: 0; } to { transform: none; opacity: 1; } }
.raid-stars { display: flex; justify-content: center; gap: 6px; margin: 4px 0; }
.raid-stars i { font-style: normal; font-size: 40px; color: rgba(128, 128, 128, .35); }
.raid-stars i.on { color: #ffd23f; text-shadow: 0 0 16px rgba(255, 210, 63, .7); animation: starIn .5s cubic-bezier(.3, 1.8, .4, 1) both; }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } to { transform: none; } }
.raid-result h2 { margin: 6px 0 12px; font-size: 19px; }
.raid-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
.raid-cmp > div { padding: 10px; border-radius: 12px; background: var(--glass2); }
.raid-cmp small { color: var(--hint); font-size: 11px; display: block; }
.raid-cmp b { font-size: 20px; display: block; } .raid-cmp b.ok { color: #6fdc8c; } .raid-cmp b.bad { color: #ff7a66; }
.raid-cmp span { font-size: 11.5px; color: var(--hint); }
.sheet-row { padding: 7px 0; border-top: 1px solid var(--stroke); }
.sheet-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.sheet-tools span { padding: 3px 8px; border-radius: 9px; background: var(--glass2); font-size: 13px; }
.sheet-tools span small { color: var(--hint); margin-left: 4px; font-size: 10px; }
.sheet-tools span.best { background: rgba(82, 196, 107, .2); }

/* ===================== этап 39: бонус дня карточками ===================== */
.dly-head { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--stroke);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--bg2)), var(--bg2)); box-shadow: var(--shadow); }
.dly-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.dly-top > b { font-size: 18px; }
.dly-top span { font-size: 12.5px; color: var(--hint); }
.dly-timer { font: 800 15px/1 ui-monospace, monospace; color: var(--text); margin-left: 4px; }
.dly-prog { display: flex; gap: 12px; align-items: center; }
.dly-prog .grow { flex: 1; min-width: 0; }
.dly-pl { display: flex; justify-content: space-between; font-size: 12px; color: var(--hint); margin-bottom: 5px; }
.dly-pl b { color: var(--accent2); font-size: 14px; }
.dly-segs { display: grid; grid-template-columns: repeat(28, 1fr); gap: 2px; }
.dly-segs i { height: 9px; border-radius: 3px; background: rgba(128, 128, 128, .22); }
.dly-segs i:nth-child(7n) { margin-right: 3px; }
.dly-segs i.on { background: linear-gradient(180deg, #ffe08a, #e0a12b); box-shadow: 0 0 6px rgba(255, 200, 60, .5); }
.dly-segs i.now { background: var(--accent); animation: segNow 1.2s ease-in-out infinite; }
@keyframes segNow { 50% { opacity: .45; } }
.dly-streak { display: flex; flex-direction: column; align-items: center; padding: 4px 10px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
html[data-mode="light"] .dly-streak { background: rgba(40, 25, 10, .06); }
.dly-streak span { font-size: 16px; } .dly-streak b { font-size: 18px; line-height: 1; } .dly-streak small { font-size: 10px; color: var(--hint); }

.dly-main { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.dly-today, .dly-prize { position: relative; border-radius: var(--radius); padding: 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1.5px solid var(--stroke); background: var(--glass); overflow: hidden; }
.dly-today small, .dly-prize small { font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.dly-today-ic { font-size: 40px; animation: cglow 2.4s ease-in-out infinite; }
.dly-today b, .dly-prize b { font-size: 14px; }
.dly-today .btn { margin-top: 6px; }
.dly-today.done .dly-today-ic { animation: none; }
.dly-prize-tile { width: 76px; height: 76px; border-radius: 14px; display: grid; place-items: center; margin: 2px 0; }
.dly-prize-tile .dly-ic { font-size: 40px; }
.dly-prize-tile .dly-swatch { width: 76px; height: 76px; border-radius: 14px; }
.dly-prize-left { font-size: 12px; color: var(--accent2); font-weight: 700; }
.dly-mini { display: flex; gap: 3px; margin-top: 4px; }
.dly-mini i { width: 14px; height: 5px; border-radius: 3px; background: rgba(128, 128, 128, .3); }
.dly-mini i.on { background: #ffd23f; }
.dly-chains { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: grid; place-items: center;
  background: repeating-linear-gradient(35deg, transparent 0 22px, rgba(160, 165, 175, .5) 22px 26px, transparent 26px 48px),
              repeating-linear-gradient(-35deg, transparent 0 22px, rgba(160, 165, 175, .5) 22px 26px, transparent 26px 48px), rgba(10, 10, 14, .35); }
.dly-chains .lock { font-style: normal; font-size: 30px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); animation: lockSway 3s ease-in-out infinite; }
@keyframes lockSway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.dly-prize.open { animation: prizeGlow 1.6s ease-in-out infinite; }
@keyframes prizeGlow { 50% { box-shadow: 0 0 22px rgba(255, 210, 63, .55); } }

.dly-week { margin-bottom: 12px; }
.dly-wlabel { font-size: 12px; font-weight: 800; color: var(--hint); text-transform: uppercase; letter-spacing: 1px; margin: 0 4px 6px; }
.dly-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(104px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
.dly-row::-webkit-scrollbar { display: none; }
.dly-card { position: relative; scroll-snap-align: start; border-radius: 16px; padding: 8px 8px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #4fb8c8) 18%, var(--bg2)), var(--bg2)); border: 2px solid color-mix(in srgb, var(--rc, #4fb8c8) 55%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 6px 14px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); transform-style: preserve-3d; }
.dly-card.r-common { --rc: #4fb8c8; } .dly-card.r-rare { --rc: #5a8cff; } .dly-card.r-epic { --rc: #b14bff; } .dly-card.r-legend { --rc: #ffc23f; }
.dly-day { font-size: 11px; font-weight: 800; color: var(--hint); }
.dly-tile { position: relative; width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--rc) 22%, rgba(0, 0, 0, .35)); border: 2px solid color-mix(in srgb, var(--rc) 70%, transparent);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -3px 0 rgba(0, 0, 0, .25); }
.dly-ic { font-size: 30px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }
.dly-swatch { display: block; width: 100%; height: 100%; border-radius: 10px; background-size: cover; background-position: center; }
.dly-check { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 30px; font-weight: 900; color: #7ee29a;
  background: rgba(0, 0, 0, .45); border-radius: 10px; }
.dly-name { font-size: 12px; font-weight: 700; line-height: 1.2; min-height: 29px; display: flex; align-items: center; }
.dly-rar { font-size: 10px; font-weight: 800; color: var(--rc); text-transform: uppercase; letter-spacing: .5px; }
.dly-btn { width: 100%; padding: 6px 4px; border-radius: 10px; font-size: 12.5px; font-weight: 800; border: 1.5px solid var(--stroke); color: var(--hint); }
.dly-btn.go { color: #2a1404; border-color: transparent; background: linear-gradient(180deg, #ffe08a, #e0a12b); box-shadow: 0 4px 14px rgba(255, 190, 60, .45); animation: goPulse 1.4s ease-in-out infinite; }
@keyframes goPulse { 50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255, 190, 60, .7); } }
.dly-btn.done { color: #7ee29a; border-color: rgba(82, 196, 107, .35); }
.dly-card.st-claimed { opacity: .62; }
.dly-card.st-locked:not(.special) .dly-tile { filter: saturate(.4) brightness(.8); }
.dly-card.st-ready { transform: translateY(-3px); border-color: #ffd23f; box-shadow: 0 0 0 3px rgba(255, 210, 63, .25), 0 10px 24px rgba(255, 190, 60, .3); }
.dly-card.special { background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 30%, var(--bg2)), var(--bg2)); }
.dly-card.special::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); background-size: 250% 100%; animation: wearShine 4s ease-in-out infinite; }
.dly-card.flip { animation: flipOut .38s ease-in forwards; }
@keyframes flipOut { to { transform: rotateY(90deg) scale(.95); } }
.dly-card.revealed { animation: flipIn .5s cubic-bezier(.3, 1.6, .5, 1) both; border-color: #ffd23f; }
@keyframes flipIn { from { transform: rotateY(-90deg); } to { transform: none; } }
.dly-reveal { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; }
.dly-reveal span { font-size: 40px; } .dly-reveal b { font-size: 13px; color: #ffd23f; } .dly-reveal small { font-size: 11px; color: var(--text); }
/* кошелёк: полоска ближайших дней */
.dly-wallet { cursor: pointer; }
.dly-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dly-strip .ds { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--rc, #4fb8c8) 50%, transparent);
  background: color-mix(in srgb, var(--rc, #4fb8c8) 12%, transparent); }
.dly-strip .ds.r-rare { --rc: #5a8cff; } .dly-strip .ds.r-epic { --rc: #b14bff; } .dly-strip .ds.r-legend { --rc: #ffc23f; }
.dly-strip .ds span { font-size: 18px; } .dly-strip .ds small { font-size: 9.5px; color: var(--hint); }
.dly-strip .ds.st-claimed { opacity: .5; } .dly-strip .ds.st-claimed span { color: #7ee29a; font-weight: 900; }
.dly-strip .ds.st-ready { border-color: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .45); animation: goPulse 1.4s ease-in-out infinite; }
@media (max-width: 380px) { .dly-main { grid-template-columns: 1fr; } }

/* ===================== этап 40 ===================== */
/* ---- окно «Награда получена!» ---- */
.rw-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(5, 4, 3, 0); transition: background .25s; }
.rw-wrap.on { background: rgba(5, 4, 3, .72); }
.rw-card { position: relative; width: 100%; max-width: 340px; text-align: center; padding: 22px 18px 18px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 30%, var(--bg2)), var(--bg2)); border: 2px solid var(--rc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 20%, transparent), 0 30px 60px rgba(0, 0, 0, .55); animation: rwIn .55s cubic-bezier(.3, 1.6, .5, 1) both; --rc: #5a8cff; }
.rw-card.r-common { --rc: #4fb8c8; } .rw-card.r-rare { --rc: #5a8cff; } .rw-card.r-epic { --rc: #b14bff; } .rw-card.r-legend { --rc: #ffc23f; }
@keyframes rwIn { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rw-rays { position: absolute; left: 50%; top: 110px; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--rc) 60%, transparent) 0 8deg, transparent 8deg 22deg); animation: spinRays 9s linear infinite;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); }
@keyframes spinRays { to { transform: rotate(360deg); } }
.rw-head { position: relative; font-size: 13px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; color: var(--rc); }
.rw-icon { position: relative; font-size: 76px; line-height: 1.15; margin: 8px 0 2px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); animation: rwIcon .7s .15s cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes rwIcon { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.rw-rar { position: relative; font-size: 11px; font-weight: 800; color: var(--rc); text-transform: uppercase; letter-spacing: 1px; }
.rw-title { position: relative; display: block; font-size: 19px; margin: 4px 0; }
.rw-text { position: relative; color: var(--hint); font-size: 14px; }
.rw-count { position: relative; margin-top: 8px; font-size: 12px; color: var(--hint); }
/* ---- «НОВОЕ» ---- */
.item.is-new, .shop-row.is-new { position: relative; box-shadow: 0 0 0 2px rgba(255, 210, 63, .7), 0 0 18px rgba(255, 190, 60, .35); animation: newGlow 1.8s ease-in-out infinite; }
@keyframes newGlow { 50% { box-shadow: 0 0 0 2px rgba(255, 210, 63, .35), 0 0 6px rgba(255, 190, 60, .15); } }
.new-rib { position: absolute; top: 6px; left: -4px; z-index: 3; font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: .6px; padding: 2px 7px; border-radius: 0 6px 6px 0;
  color: #2a1404; background: linear-gradient(180deg, #ffe08a, #e0a12b); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.last-rib { position: absolute; top: 6px; right: 6px; z-index: 3; font-style: normal; font-size: 9.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px; color: #fff; background: rgba(239, 90, 68, .9); }
.new-pill { font-style: normal; font-size: 9.5px; font-weight: 900; padding: 1px 6px; border-radius: 6px; margin-right: 6px; color: #2a1404; background: #ffd23f; vertical-align: 1px; }
.seen-now { animation: seenFade .42s ease forwards !important; }
@keyframes seenFade { to { box-shadow: none; } }
/* ---- торговец ---- */
.mc-head { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--stroke); box-shadow: var(--shadow);
  background: linear-gradient(180deg, #1d3a5e, #12233a); color: #eaf2ff; }
html[data-mode="light"] .mc-head { background: linear-gradient(180deg, #2a5288, #1a345a); }
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.mc-top > b { font-size: 17px; color: #ffd76a; } .mc-top span { font-size: 12px; opacity: .85; }
.mc-timer { font: 800 15px/1 ui-monospace, monospace; color: #fff; }
.mc-rank { display: flex; gap: 12px; align-items: center; }
.mc-rank small { display: block; font-size: 10.5px; opacity: .75; }
.mc-rank b { font-size: 15px; color: #ffd76a; }
.mc-rank .grow { flex: 1; min-width: 0; }
.mc-segs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; margin-bottom: 3px; }
.mc-segs i { height: 9px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.mc-segs i.on { background: linear-gradient(180deg, #ffe08a, #e0a12b); }
.mc-coins { text-align: right; }
.mc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 9px; margin-bottom: 12px; }
.mc-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 8px; border-radius: 16px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc, #5a8cff) 18%, #13213a), #0e1828); border: 2px solid color-mix(in srgb, var(--rc, #5a8cff) 55%, transparent); color: #eef3fa;
  animation: tileIn .45s cubic-bezier(.3, 1.3, .5, 1) both; --rc: #4fb8c8; }
.mc-card.r-rare { --rc: #5a8cff; } .mc-card.r-epic { --rc: #b14bff; } .mc-card.r-legend { --rc: #ffc23f; }
.mc-disc { position: absolute; top: 6px; right: 6px; font-size: 10.5px; font-weight: 900; padding: 2px 6px; border-radius: 7px; background: #ef5a44; color: #fff; }
.mc-tile { width: 74px; height: 74px; border-radius: 14px; display: grid; place-items: center; margin-top: 6px;
  background: color-mix(in srgb, var(--rc) 25%, rgba(0, 0, 0, .4)); border: 2px solid color-mix(in srgb, var(--rc) 70%, transparent); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12); }
.mc-ic { font-size: 34px; } .mc-swatch { display: block; width: 100%; height: 100%; border-radius: 11px; background-size: cover; }
.mc-name { font-size: 13px; font-weight: 700; line-height: 1.2; min-height: 32px; display: flex; align-items: center; }
.mc-sub { font-size: 11.5px; opacity: .8; }
.mc-rar { font-size: 10px; font-weight: 800; color: var(--rc); text-transform: uppercase; }
.mc-btn { width: 100%; display: flex; gap: 6px; justify-content: center; align-items: center; padding: 7px 4px; border-radius: 11px; border: 2px solid #ffc23f;
  background: linear-gradient(180deg, #3a3020, #241c10); color: #ffd76a; font-size: 13px; }
.mc-btn s { opacity: .55; font-size: 11px; } .mc-btn:active { transform: scale(.96); }
.mc-btn.gold { background: linear-gradient(180deg, #ffe08a, #e0a12b); color: #2a1404; font-weight: 900; }
.mc-btn.done { border-color: rgba(82, 196, 107, .5); color: #7ee29a; background: transparent; }
.mc-card.sold { opacity: .55; }
.mc-card.sold-anim { animation: soldPop .5s ease; }
@keyframes soldPop { 40% { transform: scale(1.08); } }
.mc-card.contract { grid-column: span 1; }
.mc-card.chained .mc-tile, .mc-card.chained .mc-name, .mc-card.chained .mc-sub { filter: grayscale(.6) brightness(.7); }
.mc-need small { display: block; font-size: 10.5px; opacity: .75; } .mc-need b { color: #ffd76a; position: relative; z-index: 3; }
.mc-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mc-foot small { display: block; font-size: 11.5px; color: var(--hint); } .mc-foot b { font-size: 13px; }
/* ---- контракты и сундук ---- */
.qc-label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 800; color: var(--hint); text-transform: uppercase; letter-spacing: 1px; margin: 4px 4px 6px; }
.qc-label small { text-transform: none; letter-spacing: 0; font-weight: 600; }
.qc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-bottom: 14px; }
.qc { --rc: #5a8cff; position: relative; padding: 10px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--rc) 50%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 16%, var(--bg2)), var(--bg2)); display: flex; flex-direction: column; gap: 4px; animation: tileIn .45s var(--ease) both; }
.qc.r-epic { --rc: #b14bff; }
.qc-top { display: flex; justify-content: space-between; align-items: center; }
.qc-kind { font-size: 10px; font-weight: 900; text-transform: uppercase; color: var(--rc); letter-spacing: .5px; }
.qc-rw { font-size: 12.5px; color: var(--accent2); }
.qc-title { font-weight: 800; font-size: 14px; line-height: 1.25; }
.qc-sub { font-size: 11.5px; color: var(--hint); }
.qc-bar { height: 8px; border-radius: 99px; background: rgba(128, 128, 128, .22); overflow: hidden; margin-top: 4px; }
.qc-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 50%, #fff)); transition: width .8s var(--ease); }
.qc-num { font-size: 11.5px; color: var(--hint); text-align: right; }
.qc-btn { padding: 7px; border-radius: 11px; text-align: center; font-weight: 800; font-size: 12.5px; border: 1.5px solid var(--stroke); color: var(--hint); }
.qc-btn.go { color: #2a1404; border-color: transparent; background: linear-gradient(180deg, #ffe08a, #e0a12b); animation: goPulse 1.4s ease-in-out infinite; }
.qc-btn.swap { color: var(--text); background: var(--glass2); }
.qc-btn.done { color: #7ee29a; border-color: rgba(82, 196, 107, .35); }
.qc.ready { border-color: #ffd23f; box-shadow: 0 0 16px rgba(255, 200, 60, .3); }
.qc.claimed { opacity: .6; }
.chest-card { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); margin-bottom: 14px; border: 1.5px solid var(--stroke); background: var(--glass); }
.chest-card .grow { flex: 1; } .chest-card.ready { border-color: #ffd23f; box-shadow: 0 0 22px rgba(255, 200, 60, .3); }
.chest { position: relative; width: 64px; height: 56px; flex: none; }
.chest-body { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; border-radius: 6px 6px 9px 9px; display: grid; place-items: center; font-style: normal; font-size: 14px;
  background: linear-gradient(180deg, #9a6a34, #5a3a1a); box-shadow: inset 0 0 0 3px #3e2410, inset 0 -6px 10px rgba(0, 0, 0, .3); color: #ffd76a; }
.chest-lid { position: absolute; left: -2px; right: -2px; top: 4px; height: 20px; border-radius: 18px 18px 4px 4px; z-index: 2; transform-origin: 0 100%;
  background: linear-gradient(180deg, #b07a3c, #7a4e24); box-shadow: inset 0 0 0 3px #3e2410; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.chest-card.ready .chest { animation: cshake 1s ease-in-out infinite; }
.chest-card.opening .chest-lid, .chest-card.taken .chest-lid { transform: rotate(-35deg) translate(-4px, -8px); }
.chest-card.opening .chest { animation: none; }
/* ---- уровень и звания ---- */
.lv-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid var(--stroke);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--bg2)), var(--bg2)); box-shadow: var(--shadow); }
.lv-hero .grow { flex: 1; min-width: 0; }
.lv-badge { width: 84px; height: 84px; flex: none; border-radius: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #ffe08a, #e0a12b 60%, #8a5a12); color: #2a1404; box-shadow: 0 8px 20px rgba(224, 161, 43, .4), inset 0 2px 0 rgba(255, 255, 255, .5); }
.lv-badge span { font-size: 22px; line-height: 1; } .lv-badge b { font-size: 26px; line-height: 1; } .lv-badge small { font-size: 10px; font-weight: 800; }
.lv-badge.small { width: 58px; height: 58px; border-radius: 16px; } .lv-badge.small b { font-size: 20px; }
.lv-rank { font-size: 20px; font-weight: 900; }
.lv-bar { height: 12px; border-radius: 99px; background: rgba(128, 128, 128, .22); overflow: hidden; margin: 6px 0 4px; }
.lv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e0a12b, #ffe08a); transition: width 1s var(--ease); }
.rank-road { position: relative; display: grid; gap: 4px; }
.rr-step { display: flex; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 12px; opacity: .55; }
.rr-step.on { opacity: 1; } .rr-step.ready { background: rgba(255, 210, 63, .1); }
.rr-dot { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 20px; background: var(--glass2); border: 2px solid var(--stroke); }
.rr-step.on .rr-dot { border-color: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .4); }
.rr-info { flex: 1; } .rr-info b { display: block; } .rr-info small { color: var(--hint); }
/* ---- пропуск ---- */
.ps-head { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; border: 1px solid var(--stroke); box-shadow: var(--shadow);
  background: linear-gradient(160deg, #0e4a5a, #082a3a); color: #eaf7fb; }
.ps-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.ps-top b { font-size: 17px; color: #ffd76a; } .ps-top span { font-size: 11.5px; opacity: .8; }
.ps-lvl { display: flex; gap: 12px; align-items: center; } .ps-lvl .grow { flex: 1; } .ps-lvl small { font-size: 11.5px; opacity: .85; }
.ps-prem { display: flex; gap: 12px; align-items: center; border-color: rgba(255, 210, 63, .45); background: linear-gradient(90deg, rgba(255, 210, 63, .12), transparent); }
.ps-prem.on { font-weight: 700; color: #ffd23f; }
.ps-wrap { padding: 10px 6px; }
.ps-legend { display: flex; justify-content: space-between; gap: 8px; padding: 0 6px 8px; font-size: 11px; font-weight: 700; color: var(--hint); }
.ps-legend .pl-prem { color: #ffd23f; }
.ps-track { display: flex; gap: 6px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-col { flex: none; width: 92px; display: flex; flex-direction: column; gap: 5px; align-items: stretch; scroll-snap-align: center; opacity: .75; }
.ps-col.on { opacity: 1; }
.ps-num { text-align: center; font-weight: 900; font-size: 13px; padding: 3px 0; border-radius: 8px; background: var(--glass2); }
.ps-col.on .ps-num { background: linear-gradient(180deg, #ffe08a, #e0a12b); color: #2a1404; }
.ps-col.cur .ps-num { box-shadow: 0 0 0 2px var(--accent); }
.ps-cell { position: relative; height: 104px; border-radius: 14px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  border: 2px solid var(--stroke); background: var(--glass2); }
.ps-cell.prem { border-color: rgba(255, 210, 63, .45); background: linear-gradient(180deg, rgba(255, 210, 63, .14), transparent); }
.ps-cell.special { border-width: 2.5px; }
.ps-cell.prem.special { border-color: #ffc23f; } .ps-cell.free.special { border-color: #b14bff; }
.ps-ic { font-size: 26px; } .ps-cell .mc-swatch { width: 48px; height: 48px; border-radius: 10px; }
.ps-cell small { font-size: 10px; line-height: 1.15; color: var(--hint); }
.ps-cell.st-ready { cursor: pointer; border-color: #ffd23f; box-shadow: 0 0 14px rgba(255, 210, 63, .45); animation: goPulse 1.4s ease-in-out infinite; }
.ps-cell.st-claimed { opacity: .5; }
.ps-check { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 30px; font-weight: 900; color: #7ee29a; background: rgba(0, 0, 0, .35); border-radius: 12px; }
.ps-lock { position: absolute; top: 4px; right: 5px; font-style: normal; font-size: 12px; }
.ps-cell.st-prem-lock { filter: saturate(.5); }
/* ---- альбом и коллекции ---- */
.al-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.al-step { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 12px; background: var(--glass2); text-align: center; opacity: .65; }
.al-step.on { opacity: 1; } .al-step.ready { box-shadow: 0 0 0 2px #ffd23f; }
.al-step b { font-size: 18px; color: var(--accent2); } .al-step small { font-size: 10px; color: var(--hint); line-height: 1.15; }
.al-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 14px; }
.al-badge { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--glass); border: 1.5px solid var(--stroke); color: var(--text); animation: tileIn .4s var(--ease) both; }
.al-badge span { font-size: 30px; filter: grayscale(1) brightness(.45); }
.al-badge.have span { filter: none; } .al-badge.have { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.al-badge small { font-size: 10.5px; text-align: center; line-height: 1.15; color: var(--hint); }
.al-badge.have small { color: var(--text); }
.al-rare { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 8.5px; font-weight: 900; padding: 1px 4px; border-radius: 5px; background: #b14bff; color: #fff; }
.coll-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.coll-it { display: flex; flex-direction: column; align-items: center; width: 64px; padding: 6px 2px; border-radius: 12px; background: var(--glass2); }
.coll-it span { font-size: 26px; filter: grayscale(1) brightness(.45); } .coll-it.have span { filter: none; }
.coll-it small { font-size: 9.5px; color: var(--hint); text-align: center; }
.coll-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.coll.done { border-color: rgba(255, 210, 63, .5); }
/* ---- турнирная сетка ---- */
.bracket2 { display: flex; gap: 26px; overflow-x: auto; padding: 4px 4px 10px; scrollbar-width: none; }
.bracket2::-webkit-scrollbar { display: none; }
.b-rnd { flex: none; width: 168px; display: flex; flex-direction: column; }
.b-title { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; color: var(--hint); text-align: center; margin-bottom: 8px; }
.b-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 12px; }
.b-match { position: relative; border-radius: 12px; border: 1.5px solid var(--stroke); background: var(--glass2); animation: tileIn .45s var(--ease) both; }
.b-match.mine { border-color: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
.b-match.has-next::after { content: ""; position: absolute; right: -14px; top: 50%; width: 14px; height: 2px; background: var(--stroke); }
.b-match.has-next.even::before { content: ""; position: absolute; right: -14px; top: 50%; width: 2px; height: calc(50% + 6px + 1px); background: var(--stroke); }
.b-match.has-next.odd::before { content: ""; position: absolute; right: -14px; bottom: 50%; width: 2px; height: calc(50% + 6px + 1px); background: var(--stroke); }
.b-match.done.has-next::after { background: #ffd23f; }
.bp { display: flex; align-items: center; gap: 7px; padding: 6px 8px; font-size: 12.5px; }
.bp + .bp { border-top: 1px solid var(--stroke); }
.bp-ava { width: 22px; height: 22px; border-radius: 7px; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: linear-gradient(145deg, #5a3520, #2b1a11); color: #ffd9b8; }
.bp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp.win { font-weight: 800; color: #ffd23f; } .bp.win .bp-ava { background: linear-gradient(145deg, #ffe08a, #e0a12b); color: #2a1404; }
.bp.lose { opacity: .45; text-decoration: line-through; }
.bp.me .bp-name::after { content: " (ты)"; color: var(--accent2); font-weight: 600; }
.bp.tbd { color: var(--hint); font-style: italic; }
.bp-w { font-style: normal; font-size: 9px; color: #ffd23f; }
.b-rnd.champ { width: 140px; }
.b-champ { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; text-align: center; border: 2px dashed var(--stroke); }
.b-champ span { font-size: 34px; } .b-champ.on { border: 2px solid #ffd23f; background: linear-gradient(180deg, rgba(255, 210, 63, .2), transparent); box-shadow: 0 0 22px rgba(255, 200, 60, .35); }
.b-champ.on span { animation: rwIcon .8s cubic-bezier(.3, 1.8, .5, 1) both; }

/* ===================== этап 41: плавность на ПК, ползунки, премиум-вещи ===================== */
/* ---- фон: градиенты — в неподвижный слой (не перерисовываются при прокрутке), зерно — готовой картинкой ---- */
body { background: var(--bg); }
#bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; transform: translateZ(0);
  background: radial-gradient(120% 60% at 50% -10%, var(--glow1), transparent 60%), radial-gradient(80% 50% at 100% 100%, var(--glow2), transparent 60%); }
html.grainpng body::before { background-image: var(--grainimg); background-size: 128px 128px; opacity: calc(var(--grain) * 1.4); }
body::after { transform: translateZ(0); }
body.lite::before { display: none; }
/* ---- то, что за краем экрана, не анимируется ---- */
.off, .off *, .off::before, .off::after, .off *::before, .off *::after { animation-play-state: paused !important; }
/* ---- пульсации без перерисовки тени: двигаем только transform/opacity ---- */
@keyframes goPulse { 50% { transform: scale(1.05); } }
@keyframes prizeGlow { 50% { transform: scale(1.02); } }
.item.is-new, .shop-row.is-new { animation: none; }
.new-rib { animation: ribPulse 1.8s ease-in-out infinite; transform-origin: left center; }
@keyframes ribPulse { 50% { transform: scale(1.08); } }
.card { contain: layout style; }
.item, .mc-card, .qc, .al-badge, .ps-cell, .b-match { contain: layout style paint; }
.b-match { contain: layout style; }  /* линии-соединители выходят за край — без paint */
body.lite .new-rib, body.lite .don-shine, body.lite .rw-rays { animation: none !important; }

/* ---- ПК: видимые ползунки у горизонтальных лент, колесо и перетаскивание ---- */
body.desk :is(.chips, .rr-path, .dly-row, .ps-track, .bracket2, .bracket, .hscroll) {
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--accent) 70%, transparent) rgba(128, 128, 128, .14); padding-bottom: 12px; cursor: grab; }
body.desk :is(.chips, .rr-path, .dly-row, .ps-track, .bracket2, .bracket, .hscroll)::-webkit-scrollbar { display: block; height: 8px; }
body.desk :is(.chips, .rr-path, .dly-row, .ps-track, .bracket2, .bracket, .hscroll)::-webkit-scrollbar-track { background: rgba(128, 128, 128, .14); border-radius: 99px; margin: 0 6px; }
body.desk :is(.chips, .rr-path, .dly-row, .ps-track, .bracket2, .bracket, .hscroll)::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 99px; border: 1px solid rgba(0, 0, 0, .25); }
body.desk :is(.chips, .rr-path, .dly-row, .ps-track, .bracket2, .bracket, .hscroll)::-webkit-scrollbar-thumb:hover { background: var(--accent); }
body.desk .dragging { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
body.desk .dragging * { pointer-events: none; }

/* ---- премиум (донат) вещи: золото + аметист, блик, лента ---- */
.item.don { --g1: #ffe9a8; --g2: #d9a03a; --am: #8a4dff; border: 1.5px solid transparent;
  background: linear-gradient(165deg, #2a1846 0%, #170d29 55%, #0f0919 100%) padding-box,
              linear-gradient(135deg, var(--g1), var(--g2) 35%, var(--am) 65%, var(--g1)) border-box;
  box-shadow: 0 6px 22px rgba(138, 77, 255, .28), 0 0 0 1px rgba(255, 220, 140, .08) inset; color: #f6eedd; }
html[data-mode="light"] .item.don { color: #f6eedd; }
.item.don .swatch { box-shadow: inset 0 0 0 1.5px rgba(255, 220, 140, .55), inset 0 0 22px rgba(0, 0, 0, .55); }
.item.don .nm { background: linear-gradient(180deg, #fff6d8, #f0c25e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.item.don .pr { display: inline-flex; align-self: flex-start; gap: 4px; padding: 2px 9px; border-radius: 99px; font-weight: 900; color: #2a1404;
  background: linear-gradient(180deg, var(--g1), var(--g2)); box-shadow: 0 2px 8px rgba(217, 160, 58, .4); }
.item.don .tg { color: #d8c8f5; }
.don-rib { position: absolute; top: 6px; left: -4px; z-index: 3; font-style: normal; font-size: 9px; font-weight: 900; letter-spacing: .5px; padding: 2px 8px 2px 6px;
  border-radius: 0 7px 7px 0; color: #fff; background: linear-gradient(90deg, #8a4dff, #c86bff); box-shadow: 0 2px 8px rgba(138, 77, 255, .5); }
.don-shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; border-radius: inherit; }
.don-shine::before { content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .28), transparent); transform: translateX(-160%) skewX(-12deg); animation: donSweep 4.5s ease-in-out infinite; }
.item.don:nth-child(2n) .don-shine::before { animation-delay: 1.4s; } .item.don:nth-child(3n) .don-shine::before { animation-delay: 2.6s; }
@keyframes donSweep { 0%, 62% { transform: translateX(-160%) skewX(-12deg); } 100% { transform: translateX(330%) skewX(-12deg); } }
.don-banner { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; margin-bottom: 4px; color: #f6eedd;
  background: linear-gradient(120deg, #3a1f66, #1c1033); border: 1px solid rgba(255, 220, 140, .45); }
.don-banner b { background: linear-gradient(180deg, #fff6d8, #f0c25e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.don-banner span { font-size: 12px; opacity: .85; }
.btn.don-buy { background: linear-gradient(180deg, #c58aff, #7a3df0); color: #fff; box-shadow: 0 6px 18px rgba(138, 77, 255, .45); }

/* ---- конструктор титула (админка) ---- */
.tb-prev { display: flex; justify-content: center; padding: 18px 10px; border-radius: 14px; margin-bottom: 10px; background: linear-gradient(160deg, #241812, #120c09); }
.tb-title { font-weight: 900; font-size: 17px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--rc); color: var(--rc);
  background: color-mix(in srgb, var(--rc) 14%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--rc) 35%, transparent); --rc: #9fb3c8; }
.tb-title.r-rare { --rc: #5a9cff; } .tb-title.r-epic { --rc: #c07bff; } .tb-title.r-legend { --rc: #ffc23f; }
.tb-title.don { background: linear-gradient(90deg, #3a1f66, #1c1033); }
.tb-rar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tb-rar button { padding: 8px 4px; border-radius: 11px; border: 1.5px solid var(--stroke); background: var(--glass2); font-size: 12px; font-weight: 700; }
.tb-rar button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.item.don .new-rib { top: 28px; }
.item .swatch.don-sw { background: radial-gradient(circle at 50% 45%, rgba(255, 214, 120, .45), rgba(138, 77, 255, .25) 45%, rgba(0, 0, 0, .35) 75%), linear-gradient(160deg, #3a1f66, #160c28); font-size: 30px; }
.item .swatch.don-sw span { filter: drop-shadow(0 0 10px rgba(255, 210, 120, .75)); }

/* ---- этап 42: взлом замка — подсветка каждой цифры, зелёные закреплены ---- */
.lock-disp i.fix { background: linear-gradient(180deg, #3fcf6a, #23964a) !important; color: #fff !important; box-shadow: 0 0 12px rgba(63, 207, 106, .55); }
.lock-hist .lh { justify-content: flex-start; gap: 12px; }
.lock-hist .lh small { width: 18px; color: var(--hint); font-weight: 800; }
.lh-digits { display: flex; gap: 6px; }
.ld { width: 32px; height: 36px; border-radius: 8px; display: inline-grid; place-items: center; font: 900 19px/1 ui-monospace, monospace; color: #fff; }
.ld-g { background: linear-gradient(180deg, #3fcf6a, #23964a); }
.ld-y { background: linear-gradient(180deg, #f2c94c, #c9971a); color: #2a1a02; }
.ld-x { background: #3a3f46; color: #c3c9d1; }
.lock-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; font-size: 12px; color: var(--hint); }
.lock-legend .ld { width: 22px; height: 24px; font-size: 13px; vertical-align: middle; margin-right: 3px; }

/* ---- этап 42: подписи взрывчатки в рейд-тактике ---- */
.rp-tool .rp-tname { font-style: normal; font-size: 11px; font-weight: 800; color: var(--text); }
.rp-legend { display: grid; gap: 4px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--glass2); font-size: 12px; color: var(--hint); }
.rp-legend b { color: var(--text); }

/* ===================== этап 42 ===================== */
/* ---- «Что нового» ---- */
.wn-card { text-align: center; padding: 18px 12px 12px; border-radius: 18px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--bg2)), var(--bg2));
  border: 1px solid var(--stroke); animation: tileIn .35s var(--ease) both; min-height: 180px; }
.wn-ic { font-size: 54px; line-height: 1.1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .4)); }
.wn-t { display: block; font-size: 18px; margin: 8px 0 6px; }
.wn-x { color: var(--hint); font-size: 14px; line-height: 1.45; }
.wn-dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0; flex-wrap: wrap; }
.wn-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--stroke); cursor: pointer; }
.wn-dots i.on { background: var(--accent); width: 20px; border-radius: 99px; }
/* ---- качество графики ---- */
.q-label { font-weight: 700; margin-bottom: 6px; }
.q-seg button { font-size: 12.5px; }
body.q-normal .card3d.idle { animation: none; }
body.q-normal .c-wall i, body.q-normal .don-shine::before, body.q-normal .btn.shine::after, body.q-normal .c-holo { animation: none !important; }
body.q-normal .rw-rays { animation-duration: 30s; }
/* ---- пропуск: сезон месяца ---- */
.ps-season { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--stroke);
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 20%, var(--bg2)), var(--bg2)); }
.ps-season small { display: block; font-size: 11px; color: var(--hint); text-transform: uppercase; letter-spacing: 1px; }
.ps-season b { font-size: 16px; } .ps-season .grow > div { font-size: 12.5px; color: var(--hint); margin-top: 2px; }
.ps-season .grow > div b { font-size: 12.5px; color: var(--text); }
.ps-frame { width: 64px; height: 84px; flex: none; border-radius: 12px; background-size: cover; }
/* ---- аналитика и акции ---- */
.st-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.st-kpi div { padding: 10px; border-radius: 12px; background: var(--glass2); text-align: center; }
.st-kpi b { display: block; font-size: 20px; } .st-kpi span { font-size: 11px; color: var(--hint); }
.st-bar { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.st-bar i { grid-column: 1 / -1; display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.st-tip { padding: 8px 10px; border-radius: 10px; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .3); margin-bottom: 6px; font-size: 13px; }
.pr-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.pr-row:last-child { border-bottom: 0; }
.pr-st { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--glass2); }
.pr-st.live { background: rgba(82, 196, 107, .2); color: #7ee29a; } .pr-st.wait { background: rgba(90, 140, 255, .2); color: #9ab8ff; }

/* ===================== этап 43 ===================== */
/* ---- длинные списки не рисуются целиком: только то, что рядом с экраном ---- */
.items .item, .al-grid .al-badge, .shop-row, .store-row, .sheet-row { content-visibility: auto; contain-intrinsic-size: auto 150px; }
.shop-row, .store-row, .sheet-row { contain-intrinsic-size: auto 64px; }

/* ---- витрина редких вещей на карточке ---- */
.c-gems { position: relative; display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; transform: translateZ(30px); }
.gem { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 3px 9px 3px 6px; border-radius: 99px; font-size: 11.5px;
  background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15); color: #fff; }
.gem i { font-style: normal; } .gem b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; font-weight: 700; }
.gem.r-epic { border-color: rgba(192, 123, 255, .7); } .gem.r-legend { border-color: rgba(255, 194, 63, .8); }
.gem.don { background: linear-gradient(90deg, rgba(138, 77, 255, .55), rgba(40, 20, 70, .7)); border-color: rgba(255, 220, 140, .7); }
/* ---- задание торговца ---- */
.mc-task { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; border: 1px dashed rgba(255, 210, 63, .5); background: rgba(255, 210, 63, .07); }
.mc-task > span { font-size: 24px; } .mc-task b { display: block; font-size: 13.5px; } .mc-task small { color: var(--hint); font-size: 12px; }
.mc-task.done { border-style: solid; border-color: #ffd23f; background: linear-gradient(90deg, rgba(255, 210, 63, .18), transparent); }
.mc-task.ok { opacity: .7; }
/* ---- лидеры недели ---- */
.tp-time { text-align: center; font-size: 13px; color: var(--hint); }
.tp-row { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--stroke); }
.tp-row:last-of-type { border-bottom: 0; } .tp-row.top b { color: var(--accent2); } .tp-row.me { background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 10px; }
.tp-pl { width: 28px; text-align: center; font-weight: 900; }
/* ---- подбор тиммейта ---- */
.mt-top { display: flex; gap: 10px; align-items: center; }
.mt-ava { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; font-size: 18px; background: linear-gradient(145deg, #5a3520, #2b1a11); color: #ffd9b8; }
.mt-score { text-align: center; } .mt-score b { display: block; font-size: 20px; color: var(--accent2); } .mt-score small { font-size: 10px; color: var(--hint); }
.mt-bar { height: 6px; border-radius: 99px; background: rgba(128, 128, 128, .2); margin: 8px 0 6px; overflow: hidden; }
.mt-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.mt-why { display: flex; flex-wrap: wrap; gap: 5px; } .mt-why span { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--glass2); }
/* ---- открытки ---- */
.gc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; margin-bottom: 8px; }
.gc-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1.5px solid var(--stroke); background: var(--glass2); }
.gc-opt span { font-size: 24px; } .gc-opt small { font-size: 10.5px; text-align: center; line-height: 1.15; }
.gc-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.gc-card { --gc: #c58aff; position: relative; overflow: hidden; text-align: center; padding: 22px 14px 18px; border-radius: 20px; border: 2px solid var(--gc);
  background: linear-gradient(170deg, color-mix(in srgb, var(--gc) 35%, var(--bg2)), var(--bg2)); animation: rwIn .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.gc-rays { position: absolute; left: 50%; top: 60px; width: 420px; height: 420px; margin: -210px 0 0 -210px; opacity: .25; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--gc) 0 8deg, transparent 8deg 22deg); animation: spinRays 14s linear infinite;
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); }
.gc-ic { position: relative; font-size: 64px; line-height: 1.1; animation: rwIcon .7s .1s cubic-bezier(.3, 1.8, .5, 1) both; }
.gc-t { position: relative; font-size: 22px; font-weight: 900; margin-top: 4px; } .gc-from { position: relative; color: var(--hint); margin-bottom: 10px; }
.gc-item { position: relative; display: inline-block; padding: 8px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); }
.gc-item small { display: block; font-size: 10.5px; color: var(--hint); text-transform: uppercase; letter-spacing: 1px; } .gc-item b { font-size: 15px; }
.gc-note { position: relative; margin-top: 10px; font-style: italic; font-size: 14px; }
/* ---- обучение ---- */
.tour { position: fixed; inset: 0; z-index: 95; }
.tour-ring { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .72), 0 0 0 3px var(--accent2), 0 0 24px var(--accent2);
  transition: all .35s var(--ease); pointer-events: none; }
.tour-tip { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; padding: 14px; border-radius: 16px; background: var(--bg2);
  border: 1px solid var(--stroke); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); animation: tileIn .3s var(--ease) both; }
.tour-tip b { display: block; font-size: 16px; margin-bottom: 4px; } .tour-tip > div { color: var(--hint); font-size: 14px; }
.tour-nav { display: flex; gap: 8px; align-items: center; margin-top: 10px; } .tour-nav small { flex: 1; color: var(--hint); }
.store-row.changed .name::after { content: " · изменено"; color: var(--accent2); font-size: 11px; }

/* ===================== этап 44: фарм, рейд-комбинации, босс, охота ===================== */
.tabs button em { font-style: normal; font-size: 9.5px; letter-spacing: -.2px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* ---- фарм ---- */
.fm-head { position: relative; padding: 14px; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--stroke); box-shadow: var(--shadow);
  background: radial-gradient(120% 90% at 50% 0%, rgba(255, 214, 90, .22), transparent 60%), linear-gradient(170deg, #2a1f10, #120d07); color: #f6ead6; text-align: center; }
.fm-title small { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
.fm-gp { display: block; font-size: 42px; line-height: 1.05; font-weight: 900; color: #ffe08a; text-shadow: 0 2px 14px rgba(255, 196, 64, .45); font-variant-numeric: tabular-nums; }
.fm-rate { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0; }
.fm-rate span { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .35); }
.fm-comp, .fm-inv { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.fm-c { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); }
.fm-c i { font-style: normal; font-size: 16px; } .fm-c b { font-size: 14px; } .fm-c small { font-size: 9.5px; opacity: .6; }
.fm-inv span { font-size: 13px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 106, 26, .15); }
.fm-tabs { margin-bottom: 10px; } .fm-tabs button { font-size: 12.5px; }
.fm-dig { position: relative; display: flex; flex-direction: column; align-items: center; padding: 22px 12px 14px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.fm-rock { position: relative; width: 210px; height: 210px; border-radius: 50%; touch-action: manipulation; cursor: pointer;
  background: radial-gradient(circle at 40% 32%, #8a7a62, #4a3f30 55%, #241d14 80%); box-shadow: inset 0 -14px 30px rgba(0, 0, 0, .55), 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 6px rgba(255, 210, 90, .08); }
.fm-rock > span { position: absolute; right: 18px; bottom: 14px; font-size: 44px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); transform-origin: 80% 80%; }
.fm-ore i { position: absolute; border-radius: 40% 60% 55% 45%; background: radial-gradient(circle at 35% 30%, #fff6a0, #f2c628 50%, #a8800a); box-shadow: 0 0 14px rgba(255, 220, 60, .6); }
.fm-ore i:nth-child(1) { width: 46px; height: 38px; left: 44px; top: 50px; } .fm-ore i:nth-child(2) { width: 34px; height: 30px; left: 120px; top: 38px; }
.fm-ore i:nth-child(3) { width: 40px; height: 34px; left: 96px; top: 110px; } .fm-ore i:nth-child(4) { width: 26px; height: 22px; left: 50px; top: 130px; }
.fm-rock.hit { animation: rockHit .14s ease-out; } .fm-rock.hit > span { animation: pickSwing .14s ease-out; }
@keyframes rockHit { 50% { transform: scale(.95); } }
@keyframes pickSwing { 50% { transform: rotate(-28deg); } }
.fm-fx { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fm-pop { position: absolute; font-size: 18px; font-weight: 900; color: #ffe08a; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); animation: fmPop .9s ease-out forwards; white-space: nowrap; transform: translateX(-50%); }
.fm-pop.crit { font-size: 24px; color: #ff6a3a; } .fm-pop.drop { font-size: 22px; color: #9fe0ff; } .fm-pop.hunt { font-size: 22px; color: #c7ff9a; }
@keyframes fmPop { to { transform: translate(-50%, -70px); opacity: 0; } }
.fm-hunt, .fm-boss { display: grid; gap: 6px; text-align: left; width: 100%; }
.fm-boss { border-color: rgba(255, 106, 58, .6) !important; background: linear-gradient(90deg, rgba(255, 106, 58, .18), transparent) !important; }
.fm-boss small { color: var(--hint); }
.fm-up, .fm-rec { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--stroke); }
.fm-up:last-child, .fm-rec:last-of-type { border-bottom: 0; }
.fm-up small, .fm-rec small { display: block; font-size: 12px; color: var(--hint); }
.fm-up.can b, .fm-rec.can b { color: var(--accent2); }
.fm-rec-ic { font-size: 30px; width: 40px; text-align: center; }
.fm-wipe-num { display: grid; justify-items: center; gap: 2px; margin: 12px 0; padding: 12px; border-radius: 14px; background: var(--glass2); }
.fm-wipe-num b { font-size: 28px; color: var(--accent2); } .fm-wipe-num small { color: var(--hint); font-size: 11.5px; }
/* ---- рейд: комбинации ---- */
.raid-base.real { border-color: rgba(255, 106, 58, .55); }
.raid-mode { font-size: 10.5px; font-weight: 900; letter-spacing: 1.2px; color: var(--accent2); margin-bottom: 6px; }
.raid-base.real .raid-mode { color: #ff7a4a; }
.raid-inv { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px; background: rgba(255, 106, 26, .1); border: 1px solid rgba(255, 106, 26, .35); }
.raid-inv small { color: var(--hint); } .raid-inv span { font-weight: 800; } .raid-inv span.bad { color: #ff6b5a; } .raid-inv .btn { margin-left: auto; }
.raid-pick.done .rp-head span { color: #7ee29a; }
.rp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; } .rp-head span { font-weight: 800; color: var(--accent2); }
.rp-hp { height: 10px; border-radius: 99px; background: rgba(128, 128, 128, .22); overflow: hidden; margin-bottom: 8px; }
.rp-hp i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff7a1a, #ffd23f); transition: width .35s var(--ease); }
.raid-pick.done .rp-hp i { background: linear-gradient(90deg, #3fcf6a, #9fffb4); }
.rp-rows { display: grid; gap: 6px; }
.rp-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 12px; background: var(--glass2); border: 1.5px solid transparent; }
.rp-row.on { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.rp-row small { display: block; font-size: 10.5px; color: var(--hint); } .rp-row b { font-size: 13px; }
.rp-ic { font-size: 22px; width: 28px; text-align: center; }
.rp-btn { min-width: 34px; height: 32px; border-radius: 10px; font-weight: 900; font-size: 15px; background: var(--glass); border: 1px solid var(--stroke); }
.rp-btn.plus { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.rp-n { min-width: 30px; text-align: center; font-size: 16px !important; font-variant-numeric: tabular-nums; }
.rp-eco { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; } .rp-eco small { color: var(--hint); width: 100%; }
.rp-eco .chip { font-size: 11.5px; }
.rp-sum { margin-top: 6px; text-align: right; font-size: 12.5px; color: var(--accent2); font-weight: 700; }
.raid-loot { margin: 10px 0 4px; padding: 10px; border-radius: 12px; background: rgba(82, 196, 107, .12); border: 1px solid rgba(82, 196, 107, .35); }
.raid-loot small { display: block; color: var(--hint); } .raid-loot.hunt { background: rgba(160, 255, 120, .1); }
.sheet-eco { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--hint); margin-top: 3px; }
.sheet-best { font-size: 12px; color: #7ee29a; margin-top: 2px; }
/* ---- босс ---- */
.bs-hero { display: flex; gap: 12px; align-items: center; padding: 14px; margin-bottom: 10px; border-radius: var(--radius); border: 1px solid rgba(255, 106, 58, .5);
  background: radial-gradient(120% 100% at 0% 0%, rgba(255, 70, 40, .25), transparent 60%), var(--bg2); }
.bs-hero h2 { margin: 0 0 4px; font-size: 20px; } .bs-ic { font-size: 54px; filter: drop-shadow(0 6px 14px rgba(255, 80, 40, .5)); }
.bs-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; } .bs-top span { color: var(--hint); }
.bs-bar { height: 14px; border-radius: 99px; background: rgba(128, 128, 128, .22); overflow: hidden; margin: 8px 0 12px; }
.bs-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff3a2a, #ffb23a); transition: width .6s var(--ease); }
.bs-layers { display: grid; gap: 6px; }
.bs-layer { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--glass2); opacity: .6; }
.bs-layer.cur { opacity: 1; border: 1.5px solid #ff7a3a; box-shadow: 0 0 14px rgba(255, 106, 58, .3); } .bs-layer.down { opacity: .45; }
.bs-layer > span { font-size: 22px; } .bs-layer small { color: var(--hint); }
.bs-lbar { height: 6px; border-radius: 99px; background: rgba(128, 128, 128, .2); overflow: hidden; margin-top: 4px; }
.bs-lbar i { display: block; height: 100%; background: #ff7a3a; }
.bs-charge { margin: 10px 0; text-align: center; font-weight: 800; color: var(--accent2); }
/* ---- охота ---- */
.hn-card { text-align: center; display: grid; gap: 8px; } .hn-big { font-size: 64px; } .hn-card > b { font-size: 24px; }
.raid-routes { grid-template-columns: minmax(0, 1fr); } .raid-route, .raid-base { min-width: 0; }  /* длинный путь листается внутри, а не раздвигает экран */

/* ===================== этап 45: фарм-производство ===================== */
.fm-wrap { position: relative; }
.fm-head { text-align: left; padding: 12px; }
.fm-lv { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.fm-lvb { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; align-content: center; line-height: 1;
  background: radial-gradient(circle at 50% 30%, #ffe08a, #e0a12b 60%, #8a5a12); color: #2a1404; box-shadow: 0 6px 14px rgba(224, 161, 43, .35); }
.fm-lvb small { font-size: 9px; font-weight: 900; } .fm-lvb b { font-size: 22px; }
.fm-bar { position: relative; height: 18px; border-radius: 99px; background: rgba(0, 0, 0, .4); overflow: hidden; margin: 3px 0; }
.fm-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #e0a12b, #ffe08a); transition: width .4s var(--ease); }
.fm-bar.en i { background: linear-gradient(90deg, #2fa8ff, #9fe0ff); } .fm-bar.xp i { background: linear-gradient(90deg, #b06bff, #e2b8ff); }
.fm-bar span { position: relative; display: block; text-align: center; font-size: 10.5px; line-height: 18px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px #000; }
.fm-res { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 6px; }
.fm-res.sm { grid-template-columns: repeat(4, 1fr); }
.fm-r { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border-radius: 10px; background: rgba(0, 0, 0, .35); }
.fm-r i { font-style: normal; font-size: 18px; line-height: 1.1; } .fm-r b { font-size: 12px; font-variant-numeric: tabular-nums; color: #ffe9b0; }
.fm-r.comp { background: rgba(90, 216, 255, .12); }
.fm-inv { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; } .fm-inv span { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: rgba(255, 106, 26, .18); }
.fm-boosts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.fm-boost { padding: 7px; border-radius: 11px; font-weight: 800; font-size: 12.5px; color: #fff; background: linear-gradient(180deg, #2b6fb0, #18406a); border: 1px solid rgba(255, 255, 255, .15); }
.fm-boost.turbo { background: linear-gradient(180deg, #c8461f, #7a240c); } .fm-boost.turbo.on { animation: goPulse 1s ease-in-out infinite; }
.fm-boost[disabled] { opacity: .45; }
.fm-air { position: absolute; top: -6px; right: 6px; z-index: 6; display: flex; flex-direction: column; align-items: center; animation: airFall 1.6s ease-in-out infinite alternate; }
.fm-air span { font-size: 26px; line-height: .9; } .fm-air b { font-size: 34px; filter: drop-shadow(0 0 12px rgba(255, 210, 63, .9)); }
@keyframes airFall { from { transform: translateY(-6px) rotate(-6deg); } to { transform: translateY(6px) rotate(6deg); } }
.fm-tabs { margin: 0 0 8px; } .fm-tabs .chip.dot::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: #ff5a3a; vertical-align: 2px; }
.fm-scene { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 10px 12px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.fm-scene.ore { background: radial-gradient(120% 80% at 50% 100%, rgba(120, 100, 60, .35), transparent 60%), linear-gradient(180deg, #2a3340, #151a20); }
.fm-scene.wood { background: radial-gradient(120% 80% at 50% 100%, rgba(60, 110, 50, .35), transparent 60%), linear-gradient(180deg, #24382a, #121c15); }
.fm-scene.hunt { background: radial-gradient(120% 80% at 50% 100%, rgba(110, 150, 60, .35), transparent 60%), linear-gradient(180deg, #2c3a24, #141c10); }
.fm-node { width: 240px; max-width: 80vw; touch-action: manipulation; cursor: pointer; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .45)); }
.fm-node svg { display: block; width: 100%; height: auto; }
.fm-node.hit { animation: rockHit .14s ease-out; } .fm-node.wood.hit { animation: treeShake .2s ease-out; transform-origin: 50% 95%; }
.fm-node.tired, .fm-beast.tired { animation: cshake .1s linear 3; }
@keyframes treeShake { 30% { transform: rotate(-3deg); } 70% { transform: rotate(2deg); } }
.fm-hint { margin-top: 8px; font-size: 12px; color: #d8cdb8; text-align: center; }
.fm-pop.ore { color: #ffe36a; } .fm-pop.wood { color: #d8a76a; } .fm-pop.hunt { color: #ff7a6a; }
.fm-beast { font-size: 120px; line-height: 1.1; touch-action: manipulation; cursor: pointer; filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5)); }
.fm-beast.hit { animation: rockHit .14s ease-out; }
.fm-beast-name { font-weight: 900; color: #f6ead6; }
.fm-hp { width: 220px; max-width: 80%; height: 12px; border-radius: 99px; background: rgba(0, 0, 0, .5); overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); }
.fm-hp i { display: block; height: 100%; background: linear-gradient(90deg, #d9302a, #ff8a5a); transition: width .15s; }
.fm-tool-cur { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; } .fm-tool-cur > span { font-size: 30px; }
.fm-tool-cur small { display: block; color: var(--hint); font-size: 11px; }
.fm-item, .fm-rec, .fm-task { display: flex; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--stroke); }
.fm-item:last-child, .fm-rec:last-child, .fm-task:last-child { border-bottom: 0; }
.fm-item small, .fm-rec small { display: block; font-size: 11.5px; color: var(--hint); }
.fm-item.locked, .fm-rec.locked { opacity: .55; } .fm-item.can b, .fm-rec.can b { color: var(--accent2); }
.fm-ic { font-size: 28px; width: 36px; text-align: center; flex: none; }
.fm-cost { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; } .fm-cost em { font-style: normal; font-size: 11.5px; padding: 1px 6px; border-radius: 7px; background: var(--glass2); }
.fm-cost em.no { color: #ff7a66; }
.fm-times { display: flex; gap: 4px; }
.fm-zoo-it { display: flex; gap: 8px; align-items: center; padding: 6px 2px; opacity: .55; } .fm-zoo-it.got { opacity: 1; }
.fm-zoo-it span { font-size: 24px; } .fm-zoo-it small { flex: 1; color: var(--hint); font-size: 11px; } .fm-zoo-it em { font-style: normal; font-size: 12px; }
.fm-flow { display: grid; grid-template-columns: auto auto auto auto auto; justify-content: center; align-items: center; gap: 8px; text-align: center; font-weight: 800; }
.fm-flow i { font-style: normal; color: var(--hint); } .fm-flow .fire { font-size: 22px; animation: cglow 1.2s ease-in-out infinite; }
.fm-flow small { grid-column: 1 / -1; font-weight: 600; color: var(--hint); font-size: 11.5px; }
.fm-furns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 6px; }
.fm-furn { width: 64px; } .fm-furn.large { width: 86px; } .fm-furn svg { width: 100%; height: auto; display: block; }
.fm-furn .flame { animation: flame .5s ease-in-out infinite alternate; transform-origin: 50% 100%; } .fm-furn .flame2 { animation: flame .35s ease-in-out infinite alternate-reverse; transform-origin: 50% 100%; }
@keyframes flame { from { transform: scaleY(.85); opacity: .85; } to { transform: scaleY(1.08); opacity: 1; } }
body.lite .fm-furn .flame, body.lite .fm-furn .flame2, body.q-normal .fm-furn .flame2 { animation: none; }
.fm-bench-art { width: 120px; margin: 0 auto 4px; } .fm-bench-art svg { width: 100%; display: block; }
.fm-banner { display: block; width: 100%; text-align: left; font-weight: 800; } .fm-banner.boss { border-color: rgba(255, 106, 58, .6) !important; }
.fm-task.done { opacity: .6; } .fm-task .fm-bar { height: 16px; } .fm-task .fm-bar span { line-height: 16px; }
.fm-life div { font-size: 12.5px; color: var(--hint); }
.fm-lv .grow, .fm-item .grow, .fm-rec .grow, .fm-task .grow { flex: 1; min-width: 0; }

/* ===================== этап 46: фарм — 4 раздела, подсказки, цель ===================== */
.fm-tabs4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 8px; }
.fm-tabs4 button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 14px;
  background: var(--glass2); border: 1.5px solid var(--stroke); font-size: 12px; }
.fm-tabs4 button span { font-size: 20px; line-height: 1.1; } .fm-tabs4 button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 20%, transparent); }
.fm-tabs4 button.dot::after { content: ""; position: absolute; top: 6px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: #ff5a3a; box-shadow: 0 0 6px #ff5a3a; }
.fm-nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.fm-nodes button { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; background: rgba(0, 0, 0, .25); border: 1.5px solid transparent; }
.fm-nodes button span { font-size: 18px; } .fm-nodes button b { font-size: 12px; } .fm-nodes button small { font-size: 10.5px; color: var(--hint); }
.fm-nodes button.on { border-color: #ffd23f; background: rgba(255, 210, 63, .12); }
.fm-tips { display: grid; gap: 6px; margin-bottom: 8px; }
.fm-tip { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; font-size: 12.5px; background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .25); }
.fm-tip > span { font-size: 18px; }
.fm-goal { padding: 10px 12px; } .fm-goal.ready { border-color: #ffd23f; box-shadow: 0 0 14px rgba(255, 210, 63, .25); }
.fm-goal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.fm-goal .btn { margin-top: 6px; } .fm-x { opacity: .6; padding: 2px 6px; }
.fm-goal-btn { float: right; font-size: 15px; opacity: .45; padding: 0 2px; } .fm-goal-btn.on { opacity: 1; filter: drop-shadow(0 0 6px #ffd23f); }
.fm-sub { font-size: 11.5px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: var(--hint); margin: 4px 4px 6px; }

/* ===================== этап 47: крафт, электропечи, комбо ===================== */
.fm-rcs { display: grid; gap: 10px; }
.fm-rc { padding: 10px; border-radius: 14px; background: var(--glass2); border: 1.5px solid var(--stroke); transition: border-color .2s, box-shadow .2s; }
.fm-rc.can { border-color: rgba(255, 210, 63, .55); } .fm-rc.locked { opacity: .55; }
.fm-rc.flash { box-shadow: 0 0 0 3px #ffd23f, 0 0 18px rgba(255, 210, 63, .6); }
.fm-rc-top { display: flex; gap: 10px; align-items: center; } .fm-rc-ic { font-size: 30px; }
.fm-rc-top small { display: block; color: var(--hint); font-size: 11.5px; }
.fm-rc-max { font-size: 12px; font-weight: 900; padding: 3px 9px; border-radius: 99px; background: rgba(82, 196, 107, .2); color: #7ee29a; white-space: nowrap; }
.fm-rc-max.no { background: var(--glass); color: var(--hint); }
.fm-rc-in { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.fm-rc-in span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 10px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(82, 196, 107, .45); }
.fm-rc-in span.no { border-color: rgba(255, 106, 90, .6); } .fm-rc-in i { font-style: normal; font-size: 16px; } .fm-rc-in b { font-size: 13px; }
.fm-rc-in span.no b { color: #ff7a66; }
.fm-bar.lim { height: 14px; } .fm-bar.lim span { line-height: 14px; font-size: 10px; } .fm-bar.lim i { background: linear-gradient(90deg, #ff7a1a, #ffd23f); }
.fm-rc-miss { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--hint); margin: 4px 0; }
.fm-rc-miss span { color: var(--text); } .fm-rc-miss .chip { font-size: 11.5px; }
.fm-rc-act { display: flex; align-items: center; gap: 6px; margin-top: 6px; } .fm-rc-act .fm-go { margin-left: auto; }
.fm-q { min-width: 34px; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.fm-furncard.locked { opacity: .65; }
.fm-furn.electric { width: 70px; } .fm-furn .coil { animation: coil 1.2s ease-in-out infinite alternate; } .fm-furn .led { animation: twinkle 1.6s ease-in-out infinite; }
@keyframes coil { from { opacity: .55; } to { opacity: 1; } }
body.lite .fm-furn .coil, body.lite .fm-furn .led { animation: none; }
.fm-power { border-color: rgba(255, 210, 63, .35); } .fm-power.off { opacity: .85; }
.fm-bar.pw i { background: linear-gradient(90deg, #ffd23f, #fff2a0); } .fm-bar.pw.low i { background: linear-gradient(90deg, #ff5a3a, #ffb23a); }
.fm-combo { position: relative; width: 220px; max-width: 80%; height: 16px; margin-top: 6px; border-radius: 99px; background: rgba(0, 0, 0, .45); overflow: hidden; }
.fm-combo i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #ff7a1a, #ffd23f); transition: width .15s; }
.fm-combo span { position: relative; display: block; text-align: center; font-size: 10px; line-height: 16px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.fm-combo.hot { box-shadow: 0 0 12px rgba(255, 140, 40, .7); }

/* ===================== этап 48: вылазки ===================== */
.fm-trip { padding: 10px 12px; } .fm-trip.on { display: flex; gap: 10px; align-items: center; border-color: rgba(90, 180, 255, .45); }
.fm-trip.done { border-color: #ffd23f; box-shadow: 0 0 14px rgba(255, 210, 63, .3); }
.fm-trip-head { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; } .fm-trip-head em { font-style: normal; color: var(--hint); }
.fm-trip-ic { font-size: 28px; } .fm-trip small { display: block; font-size: 11.5px; color: var(--hint); }
.fm-trip-t { font-variant-numeric: tabular-nums; font-size: 13px; margin-top: 2px; }
.fm-trips { display: grid; gap: 6px; margin-top: 8px; }
.fm-trip-it { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--glass2); }
.fm-trip-it.locked { opacity: .55; } .fm-trip-it > span { font-size: 24px; } .fm-trip-it .grow { flex: 1; min-width: 0; }

/* ===================== этап 49: серный камень, горячая точка, бригада автодобычи ===================== */
.fm-node.ore { position: relative; width: 260px; }
.fm-hot { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; z-index: 2; cursor: pointer;
  background: radial-gradient(circle, #fffef0 0 12%, rgba(255, 240, 150, .95) 22%, rgba(255, 210, 60, .55) 45%, transparent 70%);
  box-shadow: 0 0 18px 6px rgba(255, 220, 90, .55); animation: hotPulse 1s ease-in-out infinite; }
.fm-hot::before, .fm-hot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 3px; margin: -1.5px 0 0 -26px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fffbd0, transparent); }
.fm-hot::after { transform: rotate(90deg); }
.fm-hot.pop { animation: hotPop .35s ease-out, hotPulse 1s .35s ease-in-out infinite; }
@keyframes hotPulse { 50% { transform: scale(.78) rotate(45deg); opacity: .8; } }
@keyframes hotPop { from { transform: scale(0); } to { transform: scale(1); } }
body.lite .fm-hot { animation: none; }
.fm-crew { width: 100%; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.fm-crew small { display: block; font-size: 11.5px; color: #cfe8b8; margin-top: 4px; }
.fm-crew.empty { display: flex; gap: 8px; align-items: center; text-align: left; } .fm-crew.empty > span { font-size: 22px; opacity: .6; }
.fm-crew.empty small { color: var(--hint); } .fm-crew .grow { flex: 1; min-width: 0; }
.fm-crew-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fm-worker { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.fm-worker i { font-style: normal; font-size: 20px; display: inline-block; transform-origin: 50% 90%; } .fm-worker b { font-size: 12px; color: #ffe9b0; }
.fm-worker.work i { animation: workSwing .45s ease-in-out; }
@keyframes workSwing { 30% { transform: rotate(-18deg) translateY(-2px); } 70% { transform: rotate(10deg); } }
.fm-pop.auto { font-size: 14px; color: #a8f0a0; }

/* ===================== этап 50: снаряжение, инвентарь, подвкладки крафта, металл, мастерство ===================== */
.fm-tabs4.t5 { grid-template-columns: repeat(5, 1fr); gap: 4px; } .fm-tabs4.t5 button b { font-size: 11px; }
.fm-nodes.n4 { grid-template-columns: repeat(4, 1fr); } .fm-nodes button.locked { opacity: .5; }
.fm-r i.svg, .fm-cost em i.svg, .fm-rc-in i.svg, .fm-req i.svg, .gcomps i.svg, .btn i.svg { display: inline-flex; width: 18px; height: 18px; vertical-align: -4px; font-style: normal; }
.fm-r i.svg svg, .fm-cost em i.svg svg, .fm-rc-in i.svg svg, .fm-req i.svg svg, .gcomps i.svg svg, .btn i.svg svg { width: 100%; height: 100%; }
.fm-cost em { display: inline-flex; align-items: center; gap: 2px; }
.fm-mast { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; font-size: 12px; }
.fm-mast b { white-space: nowrap; } .fm-mast .fm-bar { flex: 1; min-width: 0; } .fm-mast em { font-style: normal; color: #ffe9b0; font-weight: 800; }
.card .fm-mast + .fm-mast { margin-top: 6px; }
.fm-csubs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0 0 8px; }
.fm-csubs button { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; border: 1px solid var(--line, rgba(255,255,255,.1));
  background: rgba(255,255,255,.04); color: inherit; font: inherit; } .fm-csubs button span { font-size: 18px; } .fm-csubs button b { font-size: 11px; }
.fm-csubs button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.fm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 22%, transparent); }
.fm-rc.gear .gi-w { width: 44px; height: 44px; flex: none; }
.gi-w { display: inline-flex; width: 40px; height: 40px; } .gi-w svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.gi-w.big { width: 84px; height: 84px; flex: none; }
.fm-wb { display: flex; gap: 10px; align-items: center; } .fm-wb .grow { flex: 1; min-width: 0; } .fm-wb small { display: block; color: var(--hint); font-size: 11.5px; }
.fm-wb-ic { position: relative; font-size: 30px; } .fm-wb-ic b { position: absolute; right: -4px; bottom: -2px; font-size: 12px; background: var(--accent); color: #111; border-radius: 99px; padding: 0 5px; }
/* персонаж и слоты */
.gchar { display: flex; gap: 12px; align-items: center; } .gchar .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gdoll { width: 92px; flex: none; } .gdoll svg { width: 100%; height: auto; display: block; }
.gstat { display: flex; gap: 6px; align-items: center; } .gstat > span { width: 20px; text-align: center; } .gstat small { font-size: 11px; color: var(--hint); }
.gstat .fm-bar { height: 14px; } .gstat.good .fm-bar i { background: linear-gradient(90deg, #3aa84f, #8fe36a); }
.gwear { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.gbelt { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.gbag { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.gcell { position: relative; aspect-ratio: 1; border-radius: 8px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s, transform .1s; }
.gcell small { opacity: .35; font-size: 13px; } .gcell.wear { background: rgba(60,90,140,.18); } .gcell.belt { background: rgba(140,90,40,.16); }
.gcell.full { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.gcell .gi-w { width: 82%; height: 82%; pointer-events: none; }
.gcell .gn { position: absolute; right: 2px; bottom: 0; font-size: 10.5px; text-shadow: 0 1px 2px #000; pointer-events: none; }
.gcell.can { border-color: color-mix(in srgb, var(--accent) 60%, transparent); } .gcell.over, .gbag.over { background: color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.gbag.can { outline: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 3px; border-radius: 8px; }
.gcell.dragging { opacity: .35; }
.gcell.sk-rare { box-shadow: inset 0 0 0 1px #4a9aff; } .gcell.sk-epic { box-shadow: inset 0 0 0 1px #b04aff; } .gcell.sk-legend { box-shadow: inset 0 0 0 1px #ffc23a, 0 0 8px rgba(255,194,58,.4); }
.gghost { position: fixed !important; z-index: 9999; width: 56px !important; height: 56px; aspect-ratio: auto; margin: -28px 0 0 -28px; pointer-events: none;
  background: rgba(20,20,24,.9); border: 1px solid var(--accent); box-shadow: 0 8px 20px rgba(0,0,0,.5); transform: scale(1.08); }
.gsheet { display: flex; gap: 12px; align-items: center; } .gst { font-weight: 700; margin: 4px 0; }
.gclash { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: rgba(255,120,40,.15); color: #ffb98a; font-size: 12.5px; }
.gskins { display: flex; flex-wrap: wrap; gap: 6px; }
.gskin { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.3); color: inherit; font: inherit; } .gskin svg { width: 44px; height: 44px; } .gskin small { font-size: 10px; text-align: center; line-height: 1.1; }
.gskin.on { border-color: var(--accent); } .gskin.r-rare { border-color: #4a9aff; } .gskin.r-epic { border-color: #b04aff; } .gskin.r-legend { border-color: #ffc23a; }
.gcomps { display: flex; flex-wrap: wrap; gap: 6px; } .gcomps .fm-r small { font-size: 10.5px; color: var(--hint); margin-left: 2px; }
/* вылазки */
.fm-kit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.3); margin-bottom: 8px; font-size: 12.5px; }
.fm-kit .btn { margin-left: auto; }
.fm-req { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; } .fm-req em { font-style: normal; font-size: 11.5px; padding: 1px 6px; border-radius: 99px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; gap: 2px; }
.fm-req em.no { background: rgba(255,70,50,.22); color: #ffb0a0; } .fm-req em.ok { background: rgba(60,180,90,.2); color: #b8f0c0; }
.fm-risk { font-style: normal; font-weight: 800; } .fm-risk.lo { color: #8fe36a !important; } .fm-risk.mid { color: #ffc23a !important; } .fm-risk.hi { color: #ff6a4a !important; }
.fm-trip > .fm-risk { padding: 4px 8px; border-radius: 99px; background: rgba(0,0,0,.3); }
body.lite .gghost { box-shadow: none; }
.fm-rc.gear { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 8px; }
.fm-rc.gear .fm-rc-top { grid-column: 1 / -1; } .fm-rc.gear .fm-rc-in { margin: 0; } .fm-rc.gear .fm-rc-act { margin: 0; justify-content: flex-end; }
.fm-rc.gear.locked .gi-w { filter: grayscale(.6); }

/* ===================== этап 51: рыбалка, боссы, мирка, перераб, комплекты, лидеры ===================== */
.btn.danger { background: linear-gradient(180deg, #e0503a, #a82a1a); color: #fff; border-color: #ff7a5a; }
.fm-nodes.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; } .fm-nodes.n5 button b { font-size: 11px; } .fm-nodes.n5 button small { font-size: 10px; }
.fm-fishwater { position: relative; width: 100%; border-radius: 14px; overflow: hidden; touch-action: manipulation; }
.fm-fishwater svg { width: 100%; height: auto; display: block; }
.fm-fishwater .bobber { transform-origin: 190px 74px; transition: transform .2s; }
.fm-fishwater[data-st="wait"] .bobber { animation: bob 1.6s ease-in-out infinite; }
.fm-fishwater[data-st="bite"] .bobber { animation: bite .25s ease-in-out infinite; }
.fm-fishwater[data-st="idle"] .ripples, .fm-fishwater[data-st="idle"] .bobber { opacity: .35; }
.fm-fishwater .ripples ellipse { transform-origin: 190px 78px; animation: ripple 2.4s ease-out infinite; }
.fm-fishwater .fishsh path { animation: swim 7s linear infinite; } .fm-fishwater .fishsh path + path { animation-duration: 9s; animation-direction: reverse; }
@keyframes bob { 50% { transform: translateY(3px); } } @keyframes bite { 0%, 100% { transform: translateY(6px) scale(.9); } 50% { transform: translateY(12px) scale(.8); } }
@keyframes ripple { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@keyframes swim { from { transform: translateX(-80px); } to { transform: translateX(360px); } }
.fm-fish-mark { position: absolute; left: 63%; top: 6%; font-size: 34px; color: #ffd23f; text-shadow: 0 0 10px #ff8a1e; animation: hotPulse .4s infinite; }
.fm-fish-btn { margin-top: 10px; } .fm-fish-btn.bite { background: linear-gradient(180deg, #ff8a1e, #e0503a); animation: hotPulse .35s infinite; }
.fm-fishbook { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fm-fb { display: grid; grid-template-columns: 28px 1fr; gap: 0 6px; align-items: center; padding: 6px; border-radius: 10px; background: rgba(0,0,0,.25); opacity: .55; }
.fm-fb.got { opacity: 1; } .fm-fb span { grid-row: span 2; font-size: 22px; text-align: center; } .fm-fb small { font-size: 10.5px; color: var(--hint); }
body.lite .fm-fishwater .fishsh path, body.lite .fm-fishwater .ripples ellipse { animation: none; }
.fm-boss-it { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.fm-boss-it:first-of-type { border-top: 0; } .fm-boss-it .grow { flex: 1; min-width: 0; } .fm-boss-it small { display: block; font-size: 11.5px; color: var(--hint); }
.fm-boss-ic { font-size: 34px; } .fm-boss-it.locked, .fm-boss-it.done { opacity: .6; }
.fm-fight { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.fm-fight-boss { font-size: 64px; line-height: 1; } .fm-fight-boss.hit { animation: bossHit .3s; }
@keyframes bossHit { 30% { transform: translateX(-6px) rotate(-6deg); filter: brightness(1.8); } 60% { transform: translateX(5px) rotate(4deg); } }
.fm-bar.boss i { background: linear-gradient(90deg, #a82a1a, #ff6a4a); } .fm-bar.me i { background: linear-gradient(90deg, #2f9a4f, #8fe36a); }
.fm-bar.boss i, .fm-bar.me i { transition: width .3s; } .fm-fight-ev { min-height: 22px; font-weight: 800; }
.fm-fight-res b.win { color: #8fe36a; font-size: 17px; } .fm-fight-res b.lose { color: #ff6a4a; font-size: 17px; } .fm-fight-res > * { display: block; margin-top: 4px; }
.fm-fight-items { color: #ffc23a; font-weight: 700; }
.fm-sets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fm-set { padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid transparent; opacity: .6; }
.fm-set.part { opacity: .9; } .fm-set.on { opacity: 1; border-color: #8fe36a; background: rgba(60,180,90,.12); }
.fm-set b { display: block; font-size: 12.5px; } .fm-set small { font-size: 11px; color: var(--hint); }
.fm-set-ic { display: flex; gap: 2px; margin-bottom: 2px; } .fm-set-ic .gi-w { width: 24px; height: 24px; } .fm-set-ic .gi-w.off { opacity: .3; filter: grayscale(1); }
.fm-rec-it { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.06); }
.fm-rec-it .grow { flex: 1; min-width: 0; } .fm-rec-it small { display: block; font-size: 11.5px; color: var(--hint); }
.fm-rec-it > i.svg { width: 30px; height: 30px; display: inline-flex; } .fm-rec-it > i.svg svg { width: 100%; height: 100%; } .fm-rec-it .gi-w { width: 34px; height: 34px; }
.fm-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fm-shop-it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.3); color: inherit; font: inherit; text-align: center; } .fm-shop-it b { font-size: 11.5px; line-height: 1.15; }
.fm-shop-it.can { border-color: color-mix(in srgb, var(--accent) 60%, transparent); } .fm-shop-it.out { opacity: .4; }
.fm-shop-pic { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; } .fm-shop-pic i.svg, .fm-shop-pic .gi-w { width: 38px; height: 38px; display: inline-flex; }
.fm-shop-pic i.svg svg { width: 100%; height: 100%; } .fm-shop-pic > i:not(.svg) { font-size: 28px; font-style: normal; }
.fm-shop-price { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; color: #ffe9b0; } .fm-shop-price i.svg { width: 16px; height: 16px; display: inline-flex; }
.fm-shop-price i.svg svg { width: 100%; height: 100%; } .fm-shop-it small { font-size: 10px; color: var(--hint); }
.fm-top-it { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; } .fm-top-it:nth-child(odd) { background: rgba(255,255,255,.03); }
.fm-top-it .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fm-top-it em { font-style: normal; width: 26px; text-align: center; }
.fm-top-it.me { background: color-mix(in srgb, var(--accent) 18%, transparent); } .fm-top-it span { font-weight: 800; }

/* ===================== этап 52: интерфейс фарма в духе Rust ===================== */
.rustui { --rline: rgba(255,255,255,.07); --rred: #cd412b; --rgreen: #6f9a2e; }
.rustui .card { background: linear-gradient(180deg, rgba(40,38,34,.95), rgba(25,24,21,.95)); border: 1px solid var(--rline); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 18px rgba(0,0,0,.35); }
.rustui .card > h3 { text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; color: #e2d6bf; padding-bottom: 7px; margin-bottom: 9px; border-bottom: 1px solid var(--rline); }
.rustui .btn.gold { background: linear-gradient(180deg, #82ad3e, #557a1f); color: #f2f8e4; border-color: #9cc954; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.rustui .btn.gold:disabled { filter: grayscale(.7); opacity: .6; }
.rustui .btn.ghost { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.13); }
.rustui .fm-head { background: linear-gradient(180deg, #2c2a25, #1b1a17); border: 1px solid var(--rline); border-radius: 12px; padding: 12px; }
.rustui.is-night .fm-head { background: radial-gradient(1px 1px at 20% 20%, #fff8, transparent), radial-gradient(1px 1px at 70% 35%, #fff6, transparent),
  radial-gradient(1.5px 1.5px at 85% 12%, #fff9, transparent), linear-gradient(180deg, #1b2131, #15161b); }
.fm-top { display: flex; gap: 10px; align-items: center; } .fm-top .grow { flex: 1; min-width: 0; }
.fm-ring { position: relative; width: 54px; height: 54px; flex: none; } .fm-ring svg { width: 100%; height: 100%; display: block; }
.fm-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 900; margin-top: -5px; }
.fm-ring small { position: absolute; bottom: 9px; left: 0; right: 0; text-align: center; font-size: 9px; color: var(--hint); }
.fm-top-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; } .fm-top-row b { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.fm-mult { font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(255,200,80,.14); color: #ffd27a; font-weight: 800; }
.fm-sky { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.fm-sky.day { background: rgba(255,210,90,.12); color: #ffe2a0; } .fm-sky.night { background: rgba(120,160,255,.16); color: #c4d8ff; }
.fm-top .fm-bar { margin-top: 4px; } .fm-bar.thin { height: 11px; } .fm-bar.thin span { font-size: 9.5px; }
.fm-strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 10px; }
.rslot { position: relative; aspect-ratio: 1; border-radius: 7px; background: linear-gradient(180deg, #36342e, #25241f); border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -3px 5px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center;
  color: inherit; font: inherit; padding: 0; min-width: 0; }
.rslot > i.svg { width: 68%; height: 68%; display: flex; } .rslot > i.svg svg { width: 100%; height: 100%; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.rslot > i:not(.svg) { font-size: 20px; font-style: normal; }
.rslot > b { position: absolute; right: 3px; bottom: 1px; font-size: 10.5px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.rslot.more { flex-direction: column; cursor: pointer; } .rslot.more span { font-size: 15px; line-height: 1; } .rslot.more small { font-size: 9px; color: var(--hint); }
.rslot.more.on { border-color: var(--rred); }
.fm-stock { margin-top: 8px; padding: 8px; border-radius: 9px; background: rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 8px; animation: fmIn .2s ease; }
@keyframes fmIn { from { opacity: 0; transform: translateY(-4px); } }
.fm-stock-t { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--hint); margin-bottom: 4px; }
.fm-stock-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.fm-stock-g .rslot { aspect-ratio: auto; height: 66px; flex-direction: column; justify-content: flex-start; padding-top: 7px; }
.fm-stock-g .rslot > i.svg, .fm-stock-g .rslot > i:not(.svg) { width: 30px; height: 30px; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.fm-stock-g .rslot > b { top: 3px; bottom: auto; } .fm-stock-g .rslot small { font-size: 9.5px; color: var(--hint); margin-top: 3px; text-align: center; line-height: 1.1; padding: 0 2px; }
.rustui .fm-tabs4 { position: sticky; top: 52px; z-index: 6; padding: 5px; background: rgba(18,17,15,.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 12px; border: 1px solid var(--rline); }
.rustui .fm-tabs4 button { border-radius: 8px; background: rgba(255,255,255,.03); border-color: transparent; }
.rustui .fm-tabs4 button.on { background: linear-gradient(180deg, rgba(205,65,43,.38), rgba(205,65,43,.14)); border-color: var(--rred); }
.rustui .fm-csubs button.on, .rustui .fm-nodes button.on { border-color: var(--rred); background: linear-gradient(180deg, rgba(205,65,43,.3), rgba(205,65,43,.1)); }
.rustui .gcell { border-radius: 7px; background: linear-gradient(180deg, #36342e, #25241f); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -3px 5px rgba(0,0,0,.35); }
.rustui .gcell.wear { background: linear-gradient(180deg, #2e3644, #20262f); } .rustui .gcell.belt { background: linear-gradient(180deg, #3a3024, #29221a); }
.rustui .fm-rc { background: rgba(0,0,0,.22); border-radius: 9px; }
/* достижения и ночь */
.fm-achs { display: flex; flex-direction: column; gap: 6px; }
.fm-ach { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 9px; background: rgba(0,0,0,.25); border: 1px solid transparent; }
.fm-ach.ready { border-color: #9cc954; background: rgba(110,160,50,.13); } .fm-ach.done { opacity: .5; }
.fm-ach .grow { flex: 1; min-width: 0; } .fm-ach small { display: block; font-size: 11.5px; color: var(--hint); } .fm-ach .fm-bar { margin-top: 4px; height: 12px; }
.fm-ach-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .fm-ach-r > span { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; }
.fm-ach-r i.svg, .fm-ach-r .gi-w { width: 22px; height: 22px; display: inline-flex; } .fm-ach-r i.svg svg { width: 100%; height: 100%; }
.fm-night { padding: 6px 9px; border-radius: 8px; background: rgba(70,100,180,.2); color: #c4d8ff; font-size: 12px; margin-bottom: 8px; }
.rustui .fm-rc.gear .gi-w, .gsheet .gi-w.big { background: linear-gradient(180deg, #36342e, #25241f); border-radius: 8px; border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -3px 5px rgba(0,0,0,.35); padding: 3px; box-sizing: border-box; }
.rustui .fm-rc.gear .gi-w { width: 54px; height: 54px; }
.rustui .fm-rc.locked { opacity: .82; } .rustui .fm-rc.gear.locked .gi-w { filter: grayscale(.35) brightness(.85); }
.rustui .fm-shop-pic .gi-w, .rustui .fm-rec-it .gi-w { background: linear-gradient(180deg, #36342e, #25241f); border-radius: 7px; padding: 2px; box-sizing: border-box; }

/* ===================== этап 53: палитра и шрифт как в интерфейсе Rust ===================== */
.rustui { --r-text: #e4dccf; --r-mute: #a39b8f; --r-panel: #1f1e1b; --r-panel2: #282622; --r-slot1: #3b3934; --r-slot2: #2b2a26;
  --r-green: #6a8a2e; --r-green2: #87a83c; --r-red: #b8432d; --r-red2: #cd412b; --r-blue: #3b6ea5; --rline: rgba(228,220,207,.08);
  font-family: "Roboto Condensed", "Arial Narrow", "Segoe UI", sans-serif; color: var(--r-text); }
.rustui small, .rustui .muted, .rustui .fm-hint { color: var(--r-mute); }
.rustui .card { background: linear-gradient(180deg, rgba(40,38,34,.96), rgba(28,27,24,.96)); border: 1px solid var(--rline); border-radius: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 6px 14px rgba(0,0,0,.4); }
.rustui .card > h3 { font-weight: 800; letter-spacing: .1em; font-size: 13px; color: var(--r-text); }
.rustui .card > h3 small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.rustui .fm-head { border-radius: 4px; background: linear-gradient(180deg, #2a2824, #1c1b18); }
.rustui .btn { border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.rustui .btn.gold { background: linear-gradient(180deg, var(--r-green2), var(--r-green)); border: 1px solid #9cc04a; color: #eef7d8; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.rustui .btn.gold.shine::after { display: none; }
.rustui .btn.danger { background: linear-gradient(180deg, var(--r-red2), var(--r-red)); border: 1px solid #e0603f; color: #fff1ea; }
.rustui .btn.ghost { background: rgba(228,220,207,.06); border: 1px solid rgba(228,220,207,.14); color: var(--r-text); }
.rustui .chip { border-radius: 3px; }
.rustui .rslot, .rustui .gcell { border-radius: 3px; background: linear-gradient(180deg, var(--r-slot1), var(--r-slot2)); }
.rustui .gcell.wear { background: linear-gradient(180deg, #3a3f46, #2a2e33); } .rustui .gcell.belt { background: linear-gradient(180deg, #3d3528, #2c261d); }
.rustui .rslot > b, .rustui .gcell .gn { font-family: "Roboto Condensed", sans-serif; font-weight: 800; color: #f0e8dc; }
.rustui .fm-tabs4 { border-radius: 4px; background: rgba(24,23,21,.92); }
.rustui .fm-tabs4 button, .rustui .fm-csubs button, .rustui .fm-nodes button { border-radius: 3px; }
.rustui .fm-tabs4 button b, .rustui .fm-csubs button b, .rustui .fm-nodes button b { text-transform: uppercase; letter-spacing: .04em; }
.rustui .fm-tabs4 button.on, .rustui .fm-csubs button.on, .rustui .fm-nodes button.on { background: linear-gradient(180deg, rgba(205,65,43,.42), rgba(205,65,43,.16)); border-color: var(--r-red2); }
.rustui .fm-bar { border-radius: 2px; background: rgba(0,0,0,.45); }
.rustui .fm-bar i { background: linear-gradient(90deg, #87a83c, #a8c94e); }
.rustui .fm-bar.en i { background: linear-gradient(90deg, #2f6aa8, #5aa0e0); } .rustui .fm-bar.xp i { background: linear-gradient(90deg, #c8783a, #e8a050); }
.rustui .fm-bar.boss i { background: linear-gradient(90deg, #a83a24, #e0603f); }
.rustui .fm-bar span { font-family: "Roboto Condensed", sans-serif; font-weight: 700; }
.rustui .fm-ring b { font-family: "Roboto Condensed", sans-serif; }
.rustui .fm-rc, .rustui .fm-ach, .rustui .fm-trip-it, .rustui .fm-item { border-radius: 3px; }
.rustui .fm-rc.gear .gi-w, .rustui .fm-shop-it, .rustui .fm-set, .rustui .fm-stock { border-radius: 3px; }
.rustui .tag.green { background: rgba(106,138,46,.25); color: #c8e08a; }
.rustui .fm-boost { border-radius: 3px; text-transform: uppercase; letter-spacing: .04em; font-family: "Roboto Condensed", sans-serif; }
.rustui .fm-boost { background: linear-gradient(180deg, #3b6ea5, #2a5080); } .rustui .fm-boost.turbo { background: linear-gradient(180deg, #cd412b, #8a2a18); }
.rustui .fm-sky, .rustui .fm-mult { border-radius: 3px; }
.rustui .fm-tip, .rustui .fm-goal, .rustui .fm-banner { background: linear-gradient(180deg, rgba(40,38,34,.95), rgba(30,29,26,.95)); border: 1px solid var(--rline); border-left: 3px solid var(--r-red2); border-radius: 3px; }
.rustui .fm-trip { border-radius: 4px; }

/* ===================== этап 54: дом, события, замок, сопля, мини-игры, вместе, сезон, персонаж ===================== */
.rustui .fm-tabs4.t6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; } .fm-tabs4.t6 button b { font-size: 10px; } .fm-tabs4.t6 button span { font-size: 18px; }
.gdoll { width: 124px; } .gchar .gdoll svg { filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.gcell .gdur { position: absolute; left: 3px; bottom: 2px; height: 3px; border-radius: 2px; background: #87a83c; max-width: calc(100% - 6px); pointer-events: none; }
.gcell .gdur.low { background: #cd412b; }
.fm-bar.dur i { background: linear-gradient(90deg, #87a83c, #a8c94e) !important; } .fm-bar.dur.low i { background: linear-gradient(90deg, #a83a24, #e0603f) !important; }
.gdurbox { margin-top: 10px; } .gmods { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-event, .fm-drop, .fm-game-it, .fm-house-top, .fm-party, .fm-lot { display: flex; gap: 10px; align-items: center; }
.fm-event .grow, .fm-drop .grow, .fm-game-it .grow, .fm-house-top .grow, .fm-party .grow, .fm-lot .grow { flex: 1; min-width: 0; }
.fm-event small, .fm-drop small, .fm-game-it small, .fm-house-top small, .fm-party small, .fm-lot small { display: block; font-size: 11.5px; }
.fm-event-ic, .fm-drop > span { font-size: 26px; } .fm-event.on { border-left-color: #e8a050 !important; background: linear-gradient(90deg, rgba(232,160,80,.16), rgba(30,29,26,.95)) !important; }
.fm-drop.on { border-left-color: #87a83c !important; animation: dropPulse 1.4s ease-in-out infinite; } @keyframes dropPulse { 50% { box-shadow: 0 0 0 2px rgba(135,168,60,.35); } }
.fm-tut-it { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rline); font-size: 13px; } .fm-tut-it .grow { flex: 1; min-width: 0; }
.fm-tut-it.done { opacity: .5; } .fm-tut-it.ready { color: #c8e08a; }
.fm-crate-hist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; } .fm-crate-row { display: flex; gap: 4px; }
.fm-crate-row b { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 16px; font-weight: 800; background: #2b2a26; }
.fm-crate-row b.m2 { background: #4f7a22; } .fm-crate-row b.m1 { background: #a8801c; } .fm-crate-row b.m0 { background: #3a3833; color: #8a847a; }
.fm-code { width: 90px; text-align: center; font-size: 22px; letter-spacing: 8px; padding: 6px; border-radius: 3px; border: 1px solid rgba(228,220,207,.2); background: #1a1917; color: inherit; font-family: "Roboto Condensed", monospace; }
.fm-game-it { padding: 7px 0; border-top: 1px solid var(--rline); } .fm-game-it > span { font-size: 26px; }
.fm-arena { position: relative; height: 260px; border-radius: 4px; background: radial-gradient(circle at 50% 120%, #3a3528, #1a1916); overflow: hidden; touch-action: manipulation; }
.fm-target { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(circle, #fff 0 14%, #cd412b 15% 32%, #fff 33% 50%, #cd412b 51% 68%, #fff 69% 100%); box-shadow: 0 3px 8px rgba(0,0,0,.5); animation: tPop .18s ease-out; }
@keyframes tPop { from { transform: scale(0); } }
.fm-arena-info { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 8px; font-family: "Roboto Condensed", sans-serif; }
.fm-sort-pic { height: 130px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #24231f; margin-bottom: 10px; }
.fm-sort-pic i.svg { width: 96px; height: 96px; display: flex; } .fm-sort-pic i.svg svg { width: 100%; height: 100%; } .fm-sort-pic > i:not(.svg) { font-size: 72px; font-style: normal; }
.fm-sort-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; } .fm-sort-bins .btn { padding: 14px 4px; }
.fm-house-ic { font-size: 40px; } .fm-house-tiers { display: flex; gap: 6px; margin: 8px 0; font-size: 22px; } .fm-house-tiers span { opacity: .3; filter: grayscale(1); } .fm-house-tiers span.on { opacity: 1; filter: none; }
.fm-raidlog { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; } .fm-raidlog .won { color: #b8e08a; } .fm-raidlog .lost { color: #ff9a80; }
.fm-sel, .fm-num { padding: 7px 8px; border-radius: 3px; border: 1px solid rgba(228,220,207,.18); background: #1a1917; color: inherit; font: inherit; min-width: 0; }
.fm-sel { flex: 1; } .fm-num { width: 72px; }
.fm-party, .fm-lot { padding: 7px 0; border-top: 1px solid var(--rline); } .fm-lot .gi-w, .fm-lot > i.svg { width: 38px; height: 38px; display: inline-flex; flex: none; } .fm-lot > i.svg svg { width: 100%; height: 100%; }
.fm-sellform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; } .fm-sellform label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--r-mute); }
.fm-season-xp { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; } .fm-season-xp b { font-size: 28px; font-family: "Roboto Condensed", sans-serif; color: #e8a050; }
.fm-titles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------- этап 55: мир, карта, транспорт, аванпост, колесо, заказы, огород, склад, книга, рейды, админка, Новый год ---------- */
.rustui .fm-tabs4.t7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; } .fm-tabs4.t7 button { padding-left: 0; padding-right: 0; }
.fm-tabs4.t7 button b { font-size: 9.5px; letter-spacing: -.2px; } .fm-tabs4.t7 button span { font-size: 17px; }
.fm-map { position: relative; border-radius: 8px; overflow: hidden; border: 2px solid #1a1916; margin: 6px 0; box-shadow: inset 0 0 30px rgba(0,0,0,.6); }
.fm-map-svg { display: block; width: 100%; height: auto; }
.fm-pin { position: absolute; transform: translate(-50%, -50%); font-size: 16px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.8)); pointer-events: none; transition: left 1s linear, top 1s linear; }
.fm-pin.home { font-size: 18px; } .fm-pin.mon.target { animation: fmPulse 1.2s ease-in-out infinite; }
.fm-pin.stash { pointer-events: auto; background: none; border: 0; padding: 4px; cursor: pointer; animation: fmBob 1.4s ease-in-out infinite; }
.fm-pin.walker { font-size: 20px; z-index: 2; animation: fmBob .6s ease-in-out infinite; } .fm-pin.walker.back { filter: drop-shadow(0 0 4px #e8c15a); }
.fm-path { animation: fmDash 1s linear infinite; }
@keyframes fmDash { to { stroke-dashoffset: -8; } }
@keyframes fmBob { 50% { margin-top: -3px; } }
@keyframes fmPulse { 50% { transform: translate(-50%, -50%) scale(1.3); } }
.fm-map-leg { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; opacity: .8; margin-bottom: 4px; }
.fm-mapcard .fm-trip { margin: 8px 0 0; box-shadow: none; }
.fm-ic.big { font-size: 26px; } .fm-item.on { border-color: #6a8a2e; background: rgba(106,138,46,.12); }
.fm-order { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.06); }
.fm-order:first-of-type { border-top: 0; } .fm-order.can { background: linear-gradient(90deg, rgba(106,138,46,.15), transparent); }
.fm-order small:first-child { opacity: .7; } .fm-order .fm-bar { margin: 4px 0; }
.fm-ex-rates { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.fm-ex-r { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.05); font-size: 10px; }
.fm-ex-r i.svg svg, .fm-ex-r i { width: 16px; height: 16px; font-size: 14px; font-style: normal; }
.fm-ex-r.up b { color: #8fc53a; } .fm-ex-r.down b { color: #e2704f; } .fm-ex-r b { font-weight: 600; opacity: .9; }
.fm-ex-out { color: #e8c15a; white-space: nowrap; }
.fm-wheel { width: min(240px, 70vw); margin: 6px auto; } .fm-wheel-svg { width: 100%; display: block; }
.fm-wheel-svg .wh-rot { transition: transform 3s cubic-bezier(.15,.7,.2,1); transform-origin: 0 0; }
.fm-wheelcard .chip.on { background: var(--c); border-color: var(--c); color: #fff; }
.fm-wheel-res { text-align: center; font-size: 12px; opacity: .8; margin-top: 4px; }
.fm-ny { position: relative; overflow: hidden; background: linear-gradient(160deg, #23324a, #1b2230 60%, #2a1d1d); border-color: #4a6a8a; }
.fm-snow { position: absolute; inset: 0; pointer-events: none; } .fm-snow i { position: absolute; top: -10px; color: #fff; opacity: .7; font-style: normal; font-size: 11px; animation: fmSnow linear infinite; }
@keyframes fmSnow { to { transform: translateY(260px) rotate(180deg); } }
.fm-ny-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; position: relative; }
.fm-ny-gift { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(205,65,43,.25); color: inherit; }
.fm-ny-gift span { font-size: 30px; } .fm-ny-gift.snow { background: rgba(160,200,230,.18); } .fm-ny-gift:disabled { opacity: .5; } .fm-ny-gift small { opacity: .75; font-size: 10px; }
.fm-ny-ban { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; color: inherit; background: linear-gradient(90deg, #2a3a55, #3a2020); border: 1px solid #4a6a8a; }
.fm-ny-ban > span { font-size: 28px; }
.fm-buffs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 2px 8px; }
.fm-plots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0; }
.fm-plot { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 8px; background: linear-gradient(#4a3826, #2e2218); border: 1px solid #5a4430; color: inherit; min-height: 84px; justify-content: center; }
.fm-plot small { font-size: 10px; opacity: .85; } .fm-plot.ripe { border-color: #8fc53a; box-shadow: 0 0 10px rgba(143,197,58,.35) inset; }
.fm-plant { font-size: 28px; transform: scale(calc(.45 + .55 * var(--g, 1))); transition: transform .4s; } .fm-plant.empty { font-size: 20px; opacity: .5; }
.fm-plot.ripe .fm-plant { animation: fmBob 1.2s ease-in-out infinite; }
.fm-plot.add { background: rgba(255,255,255,.04); border-style: dashed; } .fm-plot.add span { font-size: 20px; } .fm-plot.add .fm-cost { font-size: 10px; }
.btn.tiny { padding: 3px 8px; font-size: 11px; min-height: 0; }
.fm-warn { background: rgba(205,65,43,.18); border: 1px solid rgba(205,65,43,.5); border-radius: 8px; padding: 6px 8px; font-size: 12px; margin: 6px 0; }
.fm-store.full { border-color: #cd412b; }
.fm-book-it { border-top: 1px solid rgba(255,255,255,.06); padding: 6px 0; } .fm-book-it:first-of-type { border-top: 0; }
.fm-book-head { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: inherit; text-align: left; padding: 0; }
.fm-book-head .fm-bar { margin-top: 4px; }
.fm-book-list { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; } .fm-book-list > span { opacity: .3; filter: grayscale(1); font-size: 11px; padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.05); }
.fm-book-list > span.got { opacity: 1; filter: none; } .fm-book-list .gi-w { width: 34px; height: 34px; display: inline-block; }
.fm-book-it .btn { margin-top: 4px; margin-right: 6px; }
.fm-top-it.dim { opacity: .5; }
.fm-raid-sheet { display: flex; flex-direction: column; gap: 6px; }
.fm-raid-house { display: flex; gap: 10px; align-items: center; } .fm-raid-house > span { font-size: 36px; }
.fm-raid-sheet > b { text-align: center; font-size: 16px; padding: 6px; border-radius: 8px; background: rgba(255,255,255,.05); } .fm-raid-sheet > b.ok { color: #8fc53a; } .fm-raid-sheet > b.no { color: #e2704f; }
.fm-admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.fm-admin-stats > div { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 8px; background: rgba(255,255,255,.05); }
.fm-admin-stats b { font-size: 16px; } .fm-admin-stats small { font-size: 10px; opacity: .7; }
.fm-admin-sheet .switch { margin: 8px 0; }
.c-farm { font-size: 11px; opacity: .85; margin-top: 4px; }
.fm-order .grow > small, .fm-order .grow > b { display: block; } .fm-order .grow > b { margin: 1px 0 2px; }
.fm-outpost .fm-sellform .fm-sel { min-width: 118px; flex: 1 1 118px; }
.fm-ny-ban .grow > b, .fm-ny-ban .grow > small { display: block; }

/* этап 55: дизайн меню — лента вкладок, быстрые переходы, шапка «Мира» */
.rustui .fm-tabs4.t7 { padding: 4px; gap: 3px; box-shadow: 0 6px 14px rgba(0,0,0,.45); }
.rustui .fm-tabs4.t7 button { padding: 7px 0 6px; transition: background .2s, transform .12s; }
.rustui .fm-tabs4.t7 button:active { transform: scale(.94); }
.rustui .fm-tabs4.t7 button span { filter: grayscale(.55) brightness(.85); transition: filter .2s, transform .2s; }
.rustui .fm-tabs4.t7 button b { color: #a59c8c; }
.rustui .fm-tabs4.t7 button.on span { filter: none; transform: translateY(-1px) scale(1.12); }
.rustui .fm-tabs4.t7 button.on b { color: #fff; }
.rustui .fm-tabs4.t7 button.on::before { content: ""; position: absolute; left: 22%; right: 22%; bottom: 1px; height: 2px; border-radius: 2px; background: #e8c15a; box-shadow: 0 0 6px #e8c15a; }
.rustui .fm-tabs4.t7 button.dot::after { top: 4px; right: 6px; width: 7px; height: 7px; }
.fm-jump { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 10px; padding: 2px 2px 4px; -webkit-overflow-scrolling: touch; }
.fm-jump::-webkit-scrollbar { display: none; }
.fm-jump button { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; color: #e4dccf;
  background: linear-gradient(180deg, rgba(60,56,50,.9), rgba(35,33,30,.9)); border: 1px solid rgba(255,255,255,.09); font-size: 12px; }
.fm-jump button span { font-size: 15px; } .fm-jump button b { font-weight: 600; }
.fm-jump button:active { transform: scale(.95); }
.fm-jump button.dot::after { content: ""; position: absolute; top: 2px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #ff5a3a; box-shadow: 0 0 5px #ff5a3a; }
.rustui .card, .rustui .fm-sub { scroll-margin-top: 128px; }
.rustui .card.flash, .rustui .fm-sub.flash { animation: fmFlash 1.1s ease-out; }
@keyframes fmFlash { 0% { box-shadow: 0 0 0 2px #e8c15a, 0 0 18px rgba(232,193,90,.5); } 100% { box-shadow: 0 0 0 0 transparent; } }
.fm-hero { border-radius: 10px; padding: 12px; margin: 0 0 10px; border: 1px solid #5a4a2a;
  background: radial-gradient(120% 90% at 0% 0%, rgba(232,193,90,.18), transparent 60%), linear-gradient(160deg, #2e2a22, #1c1a16); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.fm-hero-rank { display: flex; gap: 10px; align-items: center; }
.fm-hero-rank > span { font-size: 34px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4030, #1e1b15); border: 2px solid #e8c15a; box-shadow: 0 0 12px rgba(232,193,90,.35); }
.fm-hero-rank small { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #a59c8c; }
.fm-hero-rank b { display: block; font-size: 18px; color: #f2e6c9; margin-bottom: 4px; }
.fm-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.fm-hero-stats > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 7px 4px; border-radius: 8px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.05); }
.fm-hero-stats span { font-size: 20px; } .fm-hero-stats b { font-size: 13px; color: #f2e6c9; } .fm-hero-stats small { font-size: 10px; color: #a59c8c; }
.fm-hero-rank .grow { flex: 1; min-width: 0; } .fm-hero-rank .fm-bar { width: 100%; }

/* ---------- этап 56: гены, схема, засада, ныряние, пропуск, серия, испытания, дом на экране, ночь, живой персонаж ---------- */
.fm-genes { display: inline-flex; gap: 2px; } .fm-genes i { font-style: normal; font-weight: 800; font-size: 11px; width: 16px; height: 18px; display: grid; place-items: center; border-radius: 4px; color: #fff; }
.fm-genes .g-G, .fm-genes .g-Y, .fm-genes .g-H { background: #4f7a2a; } .fm-genes .g-W, .fm-genes .g-X { background: #a8352a; }
.fm-seedlist { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-height: 320px; overflow-y: auto; }
.fm-seed { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid transparent; cursor: pointer; }
.fm-seed.on { border-color: #e8c15a; background: rgba(232,193,90,.12); } .fm-seed.best { box-shadow: inset 3px 0 0 #8fc53a; }
.fm-seed small { margin-left: auto; color: #e8c15a; font-weight: 700; } .fm-seed-ic { font-size: 18px; }
.fm-circuit.ok { border-color: #6a8a2e; }
.fm-chain { display: flex; align-items: center; flex-wrap: wrap; gap: 0; min-height: 58px; padding: 6px; margin: 8px 0; border-radius: 8px; background: #141310; border: 1px dashed #3a362e; }
.fm-part { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 50px; padding: 5px 4px; border-radius: 6px; background: linear-gradient(#3a3832, #24221e); border: 1px solid #4a463e; color: inherit; }
.fm-part span { font-size: 20px; } .fm-part small { font-size: 9px; color: #a59c8c; }
.fm-part.add { min-width: 0; flex: 1 1 22%; } .fm-part.clear { background: rgba(205,65,43,.18); }
.fm-parts { display: flex; flex-wrap: wrap; gap: 4px; }
.fm-wire { width: 14px; height: 3px; background: #555; border-radius: 2px; } .fm-wire.live { background: #e8c15a; box-shadow: 0 0 6px #e8c15a; animation: fmWire 1s linear infinite; }
@keyframes fmWire { 50% { opacity: .5; } }
.fm-ck { font-size: 12px; padding: 5px 8px; border-radius: 6px; margin-bottom: 8px; } .fm-ck.ok { background: rgba(106,138,46,.2); color: #b8e07a; } .fm-ck.no { background: rgba(205,65,43,.15); color: #f0a08a; }
.fm-ambush { position: relative; border-color: #cd412b; background: linear-gradient(160deg, #3a1d18, #1e1a16); animation: fmShake .5s ease-in-out 2; }
.fm-amb-beast { position: absolute; right: 12px; top: 6px; font-size: 44px; animation: fmBob 1s ease-in-out infinite; }
.fm-ambush .fm-bar { margin: 6px 0; }
.fm-amb-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
@keyframes fmShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fm-dive { position: relative; overflow: hidden; background: linear-gradient(180deg, #1e3a4a, #10202a); border-color: #2f5f7a; }
.fm-bubbles i { position: absolute; bottom: -10px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); animation: fmBubble 3.5s ease-in infinite; }
@keyframes fmBubble { to { transform: translateY(-220px); opacity: 0; } }
.fm-pass { background: radial-gradient(100% 80% at 100% 0%, rgba(232,193,90,.15), transparent 60%), linear-gradient(180deg, rgba(40,38,34,.96), rgba(28,27,24,.96)); }
.fm-pass-strip { display: flex; gap: 5px; overflow-x: auto; padding: 8px 2px; scrollbar-width: thin; }
.fm-pass-t { position: relative; flex: 0 0 auto; width: 46px; height: 56px; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: #1b1a17; border: 1px solid #333; color: #777; }
.fm-pass-t b { font-size: 10px; } .fm-pass-t span { font-size: 18px; filter: grayscale(1); opacity: .5; }
.fm-pass-t.open { border-color: #e8c15a; color: #fff; background: linear-gradient(#3a321e, #221d12); animation: fmPulse2 1.6s ease-in-out infinite; } .fm-pass-t.open span { filter: none; opacity: 1; }
.fm-pass-t.got { border-color: #6a8a2e; color: #b8e07a; } .fm-pass-t.got span { filter: none; opacity: .8; }
.fm-pass-t em { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: 10px; color: #8fc53a; }
.fm-pass-t.big { width: 54px; } .fm-pass-t.final { width: 64px; border-width: 2px; background: linear-gradient(#5a3a1e, #2a1a0e); }
@keyframes fmPulse2 { 50% { box-shadow: 0 0 10px rgba(232,193,90,.5); } }
.fm-streak { display: flex; align-items: center; gap: 12px; }
.fm-flame { position: relative; font-size: 40px; animation: fmFlame 1.2s ease-in-out infinite; } .fm-flame b { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); font-size: 14px; color: #fff; text-shadow: 0 1px 3px #000; }
@keyframes fmFlame { 50% { transform: scale(1.08) rotate(-3deg); } }
.fm-streak .grow > b, .fm-streak .grow > small { display: block; }
.fm-streak-days { display: flex; gap: 4px; margin-top: 6px; } .fm-streak-days i { flex: 1; height: 16px; border-radius: 4px; background: #2a2824; font-style: normal; font-size: 10px; text-align: center; }
.fm-streak-days i.on { background: linear-gradient(#ff9a3a, #cd412b); }
.fm-order.done { opacity: .55; }
.fm-ta { width: 100%; box-sizing: border-box; background: #141310; color: inherit; border: 1px solid #3a362e; border-radius: 6px; padding: 6px; font: inherit; font-size: 13px; margin-bottom: 6px; }
.fm-sus { color: #f0a08a; font-size: 10.5px; text-align: right; max-width: 55%; }
.fm-house-art { margin: 0 0 8px; border-radius: 8px; overflow: hidden; border: 1px solid #3a362e; } .fm-house-svg { display: block; width: 100%; height: auto; }
.fm-house-svg .hwin { animation: fmWin 3s ease-in-out infinite; } .fm-house-svg .tled { animation: fmWire .8s linear infinite; }
.fm-house-svg .star { animation: fmWin 2.4s ease-in-out infinite; } .fm-house-svg .hsmoke { animation: fmSmoke 3s ease-out infinite; }
@keyframes fmWin { 50% { opacity: .65; } } @keyframes fmSmoke { from { transform: translateY(4px); opacity: .9; } to { transform: translateY(-10px); opacity: 0; } }
/* ночь: весь фарм темнее, мягкое тёплое свечение у печей */
.rustui.is-night { background: radial-gradient(120% 60% at 50% 0%, rgba(40,55,90,.35), transparent 70%); }
.rustui.is-night .card { background: linear-gradient(180deg, rgba(28,30,38,.96), rgba(18,19,24,.97)); border-color: #2c3040; }
.rustui.is-night .fm-item.can, .rustui.is-night .fm-rc.can { box-shadow: inset 0 0 0 1px rgba(255,190,90,.25); }
.rustui.is-night .flame, .rustui.is-night .flame2 { filter: drop-shadow(0 0 6px #ff8a1e); }
/* живой персонаж: дышит и чуть покачивается */
.gdoll svg { transform-origin: 50% 100%; animation: fmBreath 3.6s ease-in-out infinite; }
@keyframes fmBreath { 0%, 100% { transform: scale(1, 1) rotate(0deg); } 40% { transform: scale(1.012, 1.018) rotate(-.4deg); } 70% { transform: scale(1.004, 1.006) rotate(.3deg); } }

/* этап 56: карточка вещи — шапка, плитки, кнопки в две колонки, скины лентой */
.gs { display: flex; flex-direction: column; gap: 10px; }
.gs-head { display: flex; gap: 12px; align-items: center; }
.gs-art { flex: none; width: 96px; height: 96px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1);
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.08), transparent 65%), linear-gradient(180deg, #34322c, #1d1c19); }
.gs-art svg { width: 84px; height: 84px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.gs-art.r-rare { border-color: #4a9aff; box-shadow: 0 0 14px rgba(74,154,255,.25) inset; } .gs-art.r-epic { border-color: #b04aff; box-shadow: 0 0 14px rgba(176,74,255,.25) inset; }
.gs-art.r-legend { border-color: #ffc23a; box-shadow: 0 0 16px rgba(255,194,58,.3) inset; }
.gs-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.gs-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: #c9bfae; }
.gs-tag.r-rare { background: rgba(74,154,255,.2); color: #9cc8ff; } .gs-tag.r-epic { background: rgba(176,74,255,.2); color: #d4a8ff; } .gs-tag.r-legend { background: rgba(255,194,58,.2); color: #ffd97a; }
.gs-tag.warn { background: rgba(205,65,43,.2); color: #f0a08a; }
.gs-name { display: block; font-size: 20px; line-height: 1.15; color: #f2e6c9; } .gs-skin, .gs-own { display: block; font-size: 12px; color: #a59c8c; margin-top: 2px; }
.gs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .gs-tiles.n3 { grid-template-columns: repeat(3, 1fr); }
.gs-tile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 2px 6px; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.06); min-width: 0; }
.gs-tile span { font-size: 18px; } .gs-tile b { font-size: 15px; color: #f2e6c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gs-tile small { font-size: 9.5px; color: #a59c8c; line-height: 1.1; } .gs-tile.dim { opacity: .4; }
.gs-zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; } .gs-zones i { font-style: normal; font-size: 9.5px; text-align: center; padding: 4px 2px; border-radius: 5px; background: rgba(255,255,255,.04); color: #6f685d; }
.gs-zones i.on { background: rgba(106,138,46,.3); color: #cfe8a0; } .gs-zones small { grid-column: 1 / -1; font-size: 11px; color: #a59c8c; text-align: center; }
.gs-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gs-acts.n1 { grid-template-columns: 1fr; }
.gs-act { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: 12px; color: #e4dccf; font: inherit; min-width: 0;
  background: linear-gradient(180deg, #3a3832, #26241f); border: 1px solid rgba(255,255,255,.1); transition: transform .1s; }
.gs-act:active { transform: scale(.96); } .gs-act span { font-size: 22px; } .gs-act b { font-size: 15px; } .gs-act small { font-size: 10.5px; color: #a59c8c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gs-act.main { background: linear-gradient(180deg, #f4c94f, #d79a1e); color: #2a1d06; border-color: #ffd97a; box-shadow: 0 4px 12px rgba(215,154,30,.3); } .gs-act.main small { color: #5a3e0c; }
.gs-box { padding: 10px; border-radius: 10px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.05); }
.gs-sub { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #c9bfae; margin-bottom: 8px; }
.gs-repair { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gs-skins { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .gs-skins::-webkit-scrollbar { display: none; }
.gs-skins .gskin { position: relative; flex: 0 0 auto; width: 82px; } .gs-skins .gskin svg { width: 52px; height: 52px; }
.gs-skins .gskin em { position: absolute; top: 3px; right: 5px; font-style: normal; color: #8fc53a; font-weight: 800; }
.gs .gclash { margin: 0; }

/* ---------- этап 57: колода карточек на главной, карточка фарма, кнопки и нижнее меню ---------- */
.deck { margin: 0 -16px 6px; position: relative; }
.deck-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.deck-track::-webkit-scrollbar { display: none; }
.deck-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; padding: 0 16px; box-sizing: border-box; min-width: 0; }
.deck .scene { touch-action: pan-x pan-y; }
.deck-hint { display: flex; justify-content: center; gap: 6px; margin: 0 16px 8px; }
.deck-hint span { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--hint); background: var(--glass2); border: 1px solid transparent; cursor: pointer; transition: all .25s; }
.deck-hint span.on { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.deck-dots { display: flex; justify-content: center; gap: 7px; margin: -4px 0 10px; }
.deck-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; background: var(--stroke); transition: width .3s var(--ease), background .3s; }
.deck-dots button.on { width: 24px; background: var(--accent); }
.fcard { min-height: 330px; border-radius: 22px; color: #e9e1d2; }
.fcard.loading, .fc-load { display: grid; place-items: center; min-height: 300px; color: #a59c8c; font-weight: 700; }
.fc-skin { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; border: 2px solid #4a4237;
  background: radial-gradient(120% 70% at 20% 0%, rgba(232,193,90,.16), transparent 55%), repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 2px, transparent 2px 7px), linear-gradient(160deg, #3a352c, #1f1c17 60%, #2a2118); }
.fcard.night .fc-skin { background: radial-gradient(120% 70% at 80% 0%, rgba(90,120,200,.22), transparent 55%), repeating-linear-gradient(115deg, rgba(255,255,255,.015) 0 2px, transparent 2px 7px), linear-gradient(160deg, #23283a, #141722 60%, #1d1a24); }
.fc-plate { position: absolute; inset: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); box-shadow: inset 0 0 30px rgba(0,0,0,.45); }
.fc-rivets i { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9bfae, #5a5246); box-shadow: 0 1px 2px #000; }
.fc-rivets .tl { top: 16px; left: 16px; } .fc-rivets .tr { top: 16px; right: 16px; } .fc-rivets .bl { bottom: 16px; left: 16px; } .fc-rivets .br { bottom: 16px; right: 16px; }
.fc-body { position: relative; padding: 20px 22px 18px; transform: translateZ(30px); display: flex; flex-direction: column; gap: 10px; }
.fc-top { display: flex; justify-content: space-between; } .fc-top .ribbon { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 10px; border-radius: 6px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.fc-top .ribbon.gold { color: #ffd97a; border-color: rgba(255,217,122,.35); }
.fc-main { display: flex; gap: 12px; align-items: center; }
.fc-doll { width: 108px; flex: none; filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)); } .fc-doll svg { width: 100%; height: auto; display: block; animation: fmBreath 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.fc-rank { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.fc-rank small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #a59c8c; } .fc-rank b { font-size: 16px; color: #f2e6c9; }
.fc-ring { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, #1d1b17 78%, transparent 80%), conic-gradient(#ffcf5a calc(var(--p) * 360deg), rgba(255,255,255,.1) 0); }
.fc-ring b { font-size: 18px; line-height: 1; color: #fff; } .fc-ring small { font-size: 9px; color: #a59c8c; }
.fc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.fc-stat { display: flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 8px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.05); }
.fc-stat span { font-size: 14px; } .fc-stat b { font-size: 14px; color: #f2e6c9; } .fc-stat small { font-size: 9.5px; color: #a59c8c; margin-left: auto; }
.fc-gun { margin-top: 6px; font-size: 12px; color: #c9bfae; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; font-size: 11.5px; } .fc-foot span { padding: 5px 8px; border-radius: 7px; background: rgba(0,0,0,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-go { margin: -4px 0 8px; }

/* кнопки: объём, мягкий блик сверху, нажатие «вдавливает» */
.btn { border: 1px solid rgba(255,255,255,.12); text-shadow: 0 1px 1px rgba(0,0,0,.25); letter-spacing: .01em; }
.btn:not(.shine)::after { content: ""; position: absolute; left: 8%; right: 8%; top: 1px; height: 45%; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent); pointer-events: none; }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: 0 2px 6px var(--btnglow), inset 0 2px 4px rgba(0,0,0,.25); }
.btn:disabled { opacity: .55; filter: grayscale(.4); box-shadow: none; }
.btn.ghost { border-color: var(--stroke); text-shadow: none; } .btn.ghost:not(.shine)::after { opacity: .35; }
.btn.gold { border-color: #ffe08a; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.btns.grid2 .btn { min-height: 44px; }
.rustui .btn { min-height: 34px; } .rustui .btn.small { min-height: 30px; }
.rustui .btn:not(.shine)::after { left: 0; right: 0; height: 40%; border-radius: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), transparent); }
.rustui .btn:active { transform: translateY(1px); box-shadow: inset 0 3px 6px rgba(0,0,0,.4); }
.rustui .btn.ghost:hover, .rustui .btn.ghost:focus-visible { border-color: rgba(228,220,207,.3); }

/* нижнее меню: стекло, подсветка активной вкладки сверху, иконка приподнимается */
.tabs { backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-color: rgba(255,255,255,.09);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.tabs button { position: relative; }
.tabs button.on { background: radial-gradient(80% 90% at 50% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 75%); }
.tabs button.on::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.tabs button.on span { filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
.tabs button.on b, .tabs button.on { font-weight: 800; }
.fc-main .grow { min-width: 0; } .fc-doll { width: 96px; }
.fc-stat { min-width: 0; padding: 5px 6px; } .fc-stat small { font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fc-rank b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- этап 58: загрузка, «что ждёт», профессии, питомцы, свой скин, сундук, бункер, поиск, значки вкладок, переходы, графики ---------- */
.splash { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.splash-gear { width: 96px; height: 96px; animation: splashSpin 3.2s linear infinite; filter: drop-shadow(0 6px 12px rgba(0,0,0,.6)); }
@keyframes splashSpin { to { transform: rotate(360deg); } }
.splash-logo { font-family: "Roboto Condensed", system-ui, sans-serif; font-weight: 800; font-size: 44px; letter-spacing: .18em; color: #e4dccf;
  background: linear-gradient(180deg, #f0c99a, #b8642e 55%, #6a3416); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.splash-sub { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #8a8070; }
.splash-bar { width: 180px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 10px; }
.splash-bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, #b8642e, #ffb648); border-radius: inherit; animation: splashBar 1.2s ease-in-out infinite; }
@keyframes splashBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.splash-tip { max-width: 300px; font-size: 13px; color: #b8ad9a; margin-top: 14px; line-height: 1.4; }
.wait-w .wait-list { display: flex; flex-direction: column; gap: 5px; }
.wait-it { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--stroke); color: var(--text); text-align: left; font: inherit; }
.wait-it span { font-size: 20px; } .wait-it b { flex: 1; font-size: 14px; font-weight: 600; } .wait-it i { font-style: normal; color: var(--hint); font-size: 20px; }
.wait-it.hot { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.wait-it.dim { opacity: .65; } .wait-it:active { transform: scale(.98); }
.fm-prof-cur { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; background: rgba(232,193,90,.08); border: 1px solid rgba(232,193,90,.25); margin-bottom: 8px; }
.fm-prof-cur .grow > b, .fm-prof-cur .grow > small { display: block; } .fm-prof-cur .fm-bar { margin-top: 6px; }
.fm-prof-ic { font-size: 34px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4a4030, #1e1b15); border: 2px solid #e8c15a; flex: none; }
.fm-prof-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.fm-prof-it { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: inherit; text-align: left; font: inherit; }
.fm-prof-it span { font-size: 22px; } .fm-prof-it b { font-size: 14px; } .fm-prof-it small { font-size: 10.5px; color: #a59c8c; line-height: 1.25; }
.fm-prof-it.on { border-color: #e8c15a; background: rgba(232,193,90,.12); } .fm-prof-it:disabled:not(.on) { opacity: .45; }
.fm-pet { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); } .fm-pet:first-of-type { border-top: 0; }
.fm-pet .grow > b, .fm-pet .grow > small { display: block; } .fm-pet .fm-bar { margin-top: 5px; }
.fm-pet-ic { position: relative; font-size: 32px; width: 50px; text-align: center; flex: none; } .fm-pet-ic b { position: absolute; right: 0; bottom: -2px; font-size: 10px; background: #e8c15a; color: #2a1d06; border-radius: 99px; padding: 0 5px; }
.fm-pet.on .fm-pet-ic { animation: fmBob 1.4s ease-in-out infinite; } .fm-pet.hungry .fm-pet-ic { filter: grayscale(.8); }
.se { display: flex; flex-direction: column; gap: 8px; } .se-prev { position: relative; margin: 0 auto; }
.se-sw { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; } .se-c { aspect-ratio: 1; border-radius: 8px; border: 2px solid rgba(255,255,255,.15); }
.se-c.on { border-color: #fff; box-shadow: 0 0 0 2px #e8c15a; }
.se-stk { position: absolute; right: 4px; top: 2px; font-style: normal; font-size: 15px; filter: drop-shadow(0 1px 1px #000); pointer-events: none; z-index: 2; }
.gcell { position: relative; } .gcell .se-stk { font-size: 12px; right: 2px; top: 1px; }
.pat-camo::before, .pat-stripes::before, .pat-dots::before, .pat-grid::before, .pat-tiger::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .35; mix-blend-mode: overlay; z-index: 1; }
.pat-camo::before { background: radial-gradient(circle at 20% 30%, var(--pc) 14%, transparent 15%), radial-gradient(circle at 70% 60%, var(--pc) 16%, transparent 17%), radial-gradient(circle at 40% 80%, var(--pc) 12%, transparent 13%); }
.pat-stripes::before { background: repeating-linear-gradient(45deg, var(--pc) 0 5px, transparent 5px 11px); }
.pat-dots::before { background: radial-gradient(var(--pc) 22%, transparent 24%) 0 0 / 10px 10px; }
.pat-grid::before { background: linear-gradient(var(--pc) 1px, transparent 1px) 0 0 / 9px 9px, linear-gradient(90deg, var(--pc) 1px, transparent 1px) 0 0 / 9px 9px; }
.pat-tiger::before { background: repeating-linear-gradient(100deg, transparent 0 7px, var(--pc) 7px 10px, transparent 10px 16px); }
.fm-chest .fm-lock { position: relative; margin: 24px auto 10px; width: fit-content; }
.fm-lock-shackle { position: absolute; left: 50%; top: -22px; width: 70px; height: 34px; transform: translateX(-50%); border: 8px solid #8a8f94; border-bottom: 0; border-radius: 40px 40px 0 0; z-index: -1; }
.fm-lock-body { display: flex; gap: 6px; padding: 12px 12px 8px; border-radius: 12px; background: linear-gradient(180deg, #d4a43a, #8a5a12); border: 2px solid #5a3a08; box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 6px 14px rgba(0,0,0,.4); }
.fm-cyl { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 52px; }
.fm-cyl button { width: 100%; padding: 3px 0; border-radius: 6px; background: rgba(0,0,0,.25); color: #fff3d0; font-size: 12px; border: 0; }
.fm-cyl-n { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, #2a2620, #12100c 50%, #2a2620); border: 1px solid #000; }
.fm-cyl-n b { font-size: 24px; color: #f2e6c9; } .fm-cyl.ok .fm-cyl-n { box-shadow: 0 0 0 2px #8fc53a inset; }
.fm-cyl-h { font-size: 10px; color: #2a1d06; font-weight: 800; } .fm-chest.done { opacity: .7; }
.fm-weekchest { display: flex; gap: 12px; align-items: center; } .fm-weekchest .grow > b, .fm-weekchest .grow > small { display: block; }
.fm-wc-ic { font-size: 34px; } .fm-weekchest.ready { border-color: #e8c15a; box-shadow: 0 0 18px rgba(232,193,90,.25); } .fm-weekchest.ready .fm-wc-ic { animation: fmBob 1s ease-in-out infinite; }
.fm-bunker-art { display: flex; flex-direction: column; align-items: center; font-size: 54px; margin: 4px 0; } .fm-bunker-art small { font-size: 12px; color: #c9bfae; }
.fm-bunker-layers { display: flex; gap: 3px; height: 14px; margin: 6px 0 8px; }
.fm-bunker-layers i { position: relative; border-radius: 3px; background: #5a554d; overflow: hidden; } .fm-bunker-layers i.gone { background: #2a2824; }
.fm-bunker-layers i.cur { background: #3a3630; } .fm-bunker-layers i em { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #cd412b, #e8803a); }
.fm-searchcard { padding: 8px; } .fm-search { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 8px; background: #141310; border: 1px solid #3a362e; color: inherit; font: inherit; font-size: 14px; }
.fm-search-out { display: flex; flex-direction: column; gap: 6px; } .fm-search-out:not(:empty) { margin-top: 8px; }
.fm-found { padding: 8px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); } .fm-found.ok { border-color: rgba(106,138,46,.5); }
.fm-found-top { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; } .fm-found-top .grow > b, .fm-found-top .grow > small { display: block; }
.fm-found .gi-w { width: 40px; height: 40px; } .fm-where { display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: #c9bfae; margin-top: 3px; }
.fm-where i.svg svg { width: 16px; height: 16px; }
.fm-tab-art { display: block; width: 24px; height: 24px; margin: 0 auto; } .fm-tab-art svg { width: 100%; height: 100%; display: block; }
.rustui .fm-tabs4.t7 button .fm-tab-art { filter: grayscale(.6) brightness(.8); transition: filter .2s, transform .2s; }
.rustui .fm-tabs4.t7 button.on .fm-tab-art { filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); transform: translateY(-1px) scale(1.12); }
.fm-slide-fwd { animation: fmSlideF .28s ease-out; } .fm-slide-back { animation: fmSlideB .28s ease-out; }
@keyframes fmSlideF { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes fmSlideB { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
body.lite .fm-slide-fwd, body.lite .fm-slide-back { animation: none; }
.fm-chart { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding: 4px 0; }
.fm-chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; min-width: 0; }
.fm-chart-col > i.all { position: relative; width: 100%; background: rgba(232,193,90,.35); border-radius: 3px 3px 0 0; display: flex; align-items: flex-end; min-height: 2px; }
.fm-chart-col > i.all > i.act { width: 100%; background: #8fc53a; border-radius: 3px 3px 0 0; }
.fm-chart-col small { font-size: 8px; color: #8a8070; margin-top: 2px; white-space: nowrap; }
.fm-chart-leg { display: flex; gap: 12px; font-size: 11px; margin-bottom: 6px; } .fm-chart-leg span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.fm-chart-leg .a::before { background: rgba(232,193,90,.35); } .fm-chart-leg .b::before { background: #8fc53a; }
.fm-use { display: grid; grid-template-columns: 110px 1fr; gap: 6px; align-items: center; font-size: 12px; margin-bottom: 4px; }

/* ---------- этап 59: статистика Rust из Steam ---------- */
.sst-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.sst-top > div, .sst-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--stroke); }
.sst-top span { font-size: 18px; } .sst-top b { font-size: 18px; } .sst-top small, .sst-grid small { font-size: 10px; color: var(--hint); line-height: 1.15; }
.sst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; } .sst-grid span { font-size: 15px; } .sst-grid b { font-size: 14px; }
.sst-leg { display: flex; gap: 12px; align-items: center; font-size: 11px; margin: 10px 0 4px; } .sst-leg small { margin-left: auto; color: var(--hint); }
.sst-leg span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.sst-leg .k::before { background: #8fc53a; } .sst-leg .d::before { background: #cd412b; }
.sst-chart { width: 100%; height: 96px; display: block; color: var(--text); }

/* ---------- этап 61: Rust-раздел (сервера, калькуляторы, Rustle) ---------- */
.rh-srv { padding: 10px 0; border-top: 1px solid var(--stroke); } .rh-srv:first-of-type { border-top: 0; }
.rh-srv-top { display: flex; align-items: center; gap: 8px; } .rh-srv-top b { flex: 1; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.rh-dot { width: 9px; height: 9px; border-radius: 50%; background: #7a7570; flex: none; } .rh-dot.on { background: #8fc53a; box-shadow: 0 0 8px #8fc53a99; }
.rh-bar { height: 5px; border-radius: 3px; background: var(--glass2); margin: 7px 0 6px; overflow: hidden; }
.rh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6a8a2e, #8fc53a); border-radius: 3px; }
.rh-srv-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--hint); }
.rh-wipe.soon { color: #f0a050; font-weight: 700; }
.rh-x, .rh-add { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--glass2); color: var(--text); font-size: 15px; }
.rh-add { background: linear-gradient(180deg, #f07a3a, #c9531c); border-color: transparent; color: #fff; }
.rh-forced { display: flex; align-items: center; gap: 12px; } .rh-big { font-size: 34px; }
.rh-row { display: flex; gap: 8px; } .rh-row .input { flex: 1; min-width: 0; } .rh-row .btn { flex: none; margin: 0; }
.rh-step { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--stroke); }
.rh-step:first-child { border-top: 0; } .rh-step > span { font-size: 14px; }
.rh-step-ctl { display: flex; align-items: center; gap: 4px; }
.rh-step-ctl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--stroke); background: var(--glass2); color: var(--text); font-size: 18px; font-weight: 800; }
.rh-step-ctl button:active { transform: scale(.92); } .rh-step-ctl b { min-width: 38px; text-align: center; font-size: 16px; }
.rh-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.rh-res > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 4px; border-radius: 12px; background: var(--glass2); border: 1px solid var(--stroke); }
.rh-res span { font-size: 20px; } .rh-res b { font-size: 20px; } .rh-res small { font-size: 11px; color: var(--hint); line-height: 1.2; }
.rh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; } .rh-legend small { width: 100%; font-size: 11px; }
.rh-rrow { padding: 8px 0; border-top: 1px solid var(--stroke); } .rh-rrow:first-child { border-top: 0; }
.rh-rrow.ghost .rh-name { opacity: .25; } .rh-name { font-weight: 800; font-size: 14px; margin-bottom: 5px; }
.rh-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rh-cell { display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px; border-radius: 8px; font-size: 11px; font-weight: 700;
  text-align: center; line-height: 1.15; color: #fff; animation: rhflip .35s ease both; }
.rh-cell.ok { background: #5d8a2a; } .rh-cell.no { background: #3a3836; color: #cfc8bf; } .rh-cell.warn { background: #a8692a; }
.rh-cell i { font-style: normal; }
@keyframes rhflip { from { transform: rotateX(90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.rh-done { text-align: center; } .rh-done b { font-size: 18px; display: block; margin-bottom: 4px; }
.rh-done.win { border-color: #6a8a2e; } .rh-done.lose { border-color: #cd412b; }
.rh-share { white-space: pre-wrap; font-size: 13px; background: var(--glass2); border-radius: 10px; padding: 8px; margin: 10px auto; display: inline-block; text-align: left; }

/* ---------- этап 65: друзья и цели ---------- */
.pp-friend { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--stroke); }
.pp-friend:first-of-type { border-top: 0; } .pp-friend b { flex: 1; cursor: pointer; } .pp-friend small { color: #8fc53a; font-size: 11px; }
.pp-dot { width: 9px; height: 9px; border-radius: 50%; background: #6d6862; flex: none; } .pp-dot.on { background: #8fc53a; box-shadow: 0 0 8px #8fc53a99; }
.pp-pick { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 11px 12px; margin-top: 6px; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--glass2); color: var(--text); font: inherit; font-size: 14px; }
.pp-pick span { font-size: 18px; } .pp-pick.on { border-color: #e0672a; background: color-mix(in srgb, #e0672a 18%, transparent); }
.pp-goal { padding: 10px 0; border-top: 1px solid var(--stroke); } .pp-goal:first-child { border-top: 0; }
.pp-goal-top { display: flex; align-items: center; gap: 8px; } .pp-goal-top span { font-size: 18px; } .pp-goal-top b { flex: 1; font-size: 14px; }
.pp-goal-top small { color: var(--hint); font-weight: 700; } .pp-goal.done .rh-bar i { background: linear-gradient(90deg, #e0a030, #f0c050); }
.pp-goal.got { opacity: .65; }

/* ---------- этап 66: вкладка «Игры» ---------- */
.gm-head { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 6px; }
.gm-head > div { display: flex; flex-direction: column; } .gm-big { font-size: 24px; line-height: 1.1; } .gm-head small { font-size: 11px; color: var(--hint); }
.gm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0 0 12px; }
.gm-tile { padding: 12px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); cursor: pointer; transition: transform .15s; }
.gm-tile:active { transform: scale(.97); } .gm-tile.on { border-color: #e0672a; box-shadow: 0 0 0 2px color-mix(in srgb, #e0672a 35%, transparent); }
.gm-name { font-size: 13px; font-weight: 800; margin-bottom: 6px; } .gm-tile b { display: block; font-size: 26px; line-height: 1; }
.gm-tile small { font-size: 11px; color: var(--hint); } .gm-sub { font-size: 11px; color: var(--hint); margin-top: 6px; }
.gm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--stroke); }
.gm-row:first-of-type { border-top: 0; } .gm-row b { flex: 1; cursor: pointer; } .gm-row small { color: var(--hint); font-size: 11px; }
.gm-row strong { min-width: 34px; text-align: right; } .gm-row.me { background: color-mix(in srgb, #e0672a 12%, transparent); border-radius: 10px; padding: 8px; }

/* ---------- этап 67: праздничный наряд поверх аватарки (картинка /acc/<праздник>.png, аватарка = 44% её ширины) ---------- */
.ring .acc { position: absolute; left: 50%; top: 50%; width: calc(100% * 80 / 88 / 0.44); max-width: none; transform: translate(-50%, -50%);
  pointer-events: none; z-index: 3; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); animation: accIn .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes accIn { from { transform: translate(-50%, -62%) scale(.6); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
body.lite .ring .acc { animation: none; }
 
/* ---------- этап 68: праздничная тема (body.hol-<праздник>) и анимация ---------- */
.hol-fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
.hol-top { position: fixed; left: 0; right: 0; top: 0; height: 14px; pointer-events: none; z-index: 60; opacity: .9; }
body.hol-newyear .hol-top { height: 22px; top: -4px;
  background: radial-gradient(circle at 10px 14px, #ff4a4a 0 5px, transparent 6px) 0 0 / 80px 22px repeat-x,
              radial-gradient(circle at 30px 14px, #ffd23f 0 5px, transparent 6px) 0 0 / 80px 22px repeat-x,
              radial-gradient(circle at 50px 14px, #4ad8ff 0 5px, transparent 6px) 0 0 / 80px 22px repeat-x,
              radial-gradient(circle at 70px 14px, #7aff8a 0 5px, transparent 6px) 0 0 / 80px 22px repeat-x,
              radial-gradient(ellipse 42px 10px at 40px 0, transparent 8px, rgba(30, 50, 30, .9) 9px 10px, transparent 11px) 0 0 / 80px 22px repeat-x;
  animation: holTwinkle 1.6s steps(2) infinite; filter: drop-shadow(0 0 4px rgba(255, 220, 120, .7)); }
@keyframes holTwinkle { 50% { filter: drop-shadow(0 0 8px rgba(255, 255, 200, .95)) brightness(1.25); } }
body.hol-valentine { --accent: #ff4a7a; --accent2: #ff9ab8; }
body.hol-valentine .hol-top, body.hol-march8 .hol-top { background: repeating-linear-gradient(90deg, #ff9ab8 0 18px, #ffd0dd 18px 36px, #ff4a7a 36px 54px); height: 4px; }
body.hol-easter .hol-top { background: repeating-linear-gradient(90deg, #ff9ab8 0 22px, #8ad0ff 22px 44px, #a8e07a 44px 66px, #ffd23f 66px 88px); height: 5px; }
body.hol-halloween .hol-top { background: repeating-linear-gradient(90deg, #ff7a1a 0 20px, #2a0a3a 20px 40px); height: 4px; }
body.hol:not(.hol-newyear):not(.hol-valentine):not(.hol-march8):not(.hol-easter):not(.hol-halloween) .hol-top {
  background: repeating-linear-gradient(90deg, #ffd23f 0 14px, #ff6a4a 14px 28px, #4ad8ff 28px 42px, #a87aff 42px 56px); height: 4px; }
body.lite .hol-top { animation: none; }
