/* Football Card Hub — Mini App. Цвета бота: тёмно-синий → глубокий зелёный,
   зелёный акцент кнопок, золото кубков. Редкости — как в боте. */
:root {
  --bg: #0a1120;
  --bg-2: #0c1d18;
  --surface: #121c2e;
  --surface-2: #18263c;
  --line: #24344d;
  --text: #e9eff7;
  --muted: #8d9db5;
  --green: #22c55e;
  --green-2: #16a34a;
  --gold: #e5b84f;
  --gold-2: #f6d77a;
  --r-common: #cfd6df;
  --r-uncommon: #3b82f6;
  --r-rare: #a855f7;
  --r-epic: #f59e0b;
  --r-legendary: #facc15;
  --r-goat: #10b981;
  --r-boh: #e5b84f;
  --r-sbc: #14b8a6;
  --r-limited: #60a5fa;
  --r-coach: #22d3ee;
  --r-collection: #eab308;
  --radius: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
/* min-height, не height: иначе липкая шапка «уезжает», когда страница длиннее экрана */
html, body { margin: 0; }
body { min-height: 100%; }
body {
  font: 15px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 80% at 100% 0%, var(--bg-2) 0%, var(--bg) 55%) fixed, var(--bg);
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }

/* ---------- верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(10, 17, 32, .96), rgba(10, 17, 32, .80));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 52, 77, .6);
}
.me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--green), var(--green-2)); color: #052e16;
}
.me-text { min-width: 0; }
.nick { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub { color: var(--muted); font-size: 12.5px; }
.coins {
  flex: none; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: rgba(229, 184, 79, .12); color: var(--gold-2); border: 1px solid rgba(229, 184, 79, .35);
}

.view { padding: 14px 16px calc(28px + var(--safe-bottom)); max-width: 720px; margin: 0 auto; }
.screen { animation: screen-in .32s cubic-bezier(.2, .8, .2, 1) both; }
.screen.back-in { animation-name: screen-back-in; }
@keyframes screen-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes screen-back-in { from { opacity: 0; transform: translateX(-22px); } }

h1 { font-size: 22px; margin: 4px 0 2px; letter-spacing: .2px; }
.lead { color: var(--muted); margin: 0 0 14px; font-size: 13.5px; }
.league { margin: 18px 2px 8px; color: var(--muted); font-size: 12.5px; font-weight: 700;
          text-transform: uppercase; letter-spacing: .8px; }

/* ---------- плитки клубов ---------- */
.clubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.club {
  position: relative; overflow: hidden; border-radius: var(--radius); min-height: 112px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left;
  padding: 0; display: flex; flex-direction: column; justify-content: flex-end;
  animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms);
  transition: transform .15s ease, border-color .2s ease;
}
.club:active { transform: scale(.97); }
/* Обложки клубов светлые (логотип на сером) — приглушаем их под тёмную тему,
   а низ плитки затемняем под текст. */
.club { background: radial-gradient(90% 80% at 50% 30%, #1b2a42 0%, var(--surface) 70%); }
.club .cover { position: absolute; inset: 0; background-size: cover; background-position: center 28%;
               filter: saturate(1.15) contrast(1.1);
               -webkit-mask-image: radial-gradient(circle at 50% 34%, #000 22%, transparent 58%);
               mask-image: radial-gradient(circle at 50% 34%, #000 22%, transparent 58%);
               transform: scale(1.04); transition: transform .4s ease; }
.club:hover .cover { transform: scale(1.09); }
.club::after { content: ""; position: absolute; inset: 0;
               background: linear-gradient(180deg, rgba(10, 17, 32, .05) 0%, rgba(10, 17, 32, .55) 45%, rgba(10, 17, 32, .96) 100%); }
.club .body { position: relative; z-index: 1; padding: 10px 12px 11px; }
.club .name { font-weight: 700; font-size: 14.5px; line-height: 1.2; }
.club .meta { color: var(--muted); font-size: 12px; margin-top: 3px; display: flex; justify-content: space-between; }
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .1); margin-top: 7px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; width: 0;
           background: linear-gradient(90deg, var(--green-2), var(--green));
           transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.club.done .bar > i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.tag { position: absolute; top: 8px; right: 8px; z-index: 1; font-size: 10.5px; font-weight: 800;
       padding: 2px 7px; border-radius: 99px; background: rgba(229, 184, 79, .9); color: #2a1d00; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- экран клуба ---------- */
.club-head { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; }
.back-btn { flex: none; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line);
            background: var(--surface); display: grid; place-items: center; cursor: pointer; font-size: 18px; }
.club-head h1 { margin: 0; font-size: 19px; }
.progress-line { color: var(--muted); font-size: 13px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 12px; border-radius: 99px; font-size: 13px; cursor: pointer;
        background: var(--surface); border: 1px solid var(--line); color: var(--muted);
        transition: all .18s ease; }
.chip.on { background: rgba(34, 197, 94, .14); border-color: rgba(34, 197, 94, .55); color: #bbf7d0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
@media (min-width: 520px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile {
  --rc: var(--r-common);
  position: relative; padding: 0; border: 0; background: none; cursor: pointer; text-align: left;
  animation: rise .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 18ms);
}
.tile .pic {
  position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
  background: linear-gradient(110deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.3s linear infinite;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--rc) 70%, transparent), 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .15s ease;
}
.tile:active .pic { transform: scale(.96); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease; }
.tile img.ok { opacity: 1; }
.tile.miss img { filter: grayscale(1) brightness(.55); }
.tile.miss .pic { box-shadow: 0 0 0 1px var(--line); }
.tile .tname { font-size: 11.5px; margin-top: 5px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.miss .tname { color: var(--muted); }
.badge { position: absolute; z-index: 1; font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 8px; }
.badge.count { top: 5px; right: 5px; background: rgba(10, 17, 32, .82); color: var(--text); }
.badge.lvl { bottom: 5px; left: 5px; background: var(--rc); color: #0a1120; }
.badge.lock { top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 20px; background: none; }
.tile.r-legendary .pic, .tile.r-boh .pic, .tile.r-goat .pic { box-shadow: 0 0 0 1.5px var(--rc), 0 0 14px color-mix(in srgb, var(--rc) 45%, transparent); }
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
@keyframes shimmer { to { background-position: -300% 0; } }

.r-common { --rc: var(--r-common); } .r-uncommon { --rc: var(--r-uncommon); } .r-rare { --rc: var(--r-rare); }
.r-epic { --rc: var(--r-epic); } .r-legendary { --rc: var(--r-legendary); } .r-goat { --rc: var(--r-goat); }
.r-boh { --rc: var(--r-boh); } .r-sbc { --rc: var(--r-sbc); } .r-limited { --rc: var(--r-limited); }
.r-coach { --rc: var(--r-coach); } .r-collection { --rc: var(--r-collection); }

/* ---------- просмотр карты ---------- */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 16, .72); backdrop-filter: blur(8px);
                  animation: fade .25s ease both; }
@keyframes fade { from { opacity: 0; } }
.stage { position: relative; perspective: 1100px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage-hint { color: var(--muted); font-size: 12.5px; animation: fade .6s .5s ease both; }
.card3d {
  /* --rc (цвет редкости) задаёт класс r-*: значение по умолчанию здесь
     перебивало бы его — правило .card3d идёт в файле ниже. */
  --rx: 0deg; --ry: 0deg; --flip: 0deg; --mx: 50%; --my: 50%;
  position: relative; width: min(78vw, 340px); aspect-ratio: 4 / 5; cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform .12s ease-out;
}
.card3d.flipping { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.face {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden;
  box-shadow: 0 0 0 2px var(--rc), 0 22px 50px rgba(0, 0, 0, .55), 0 0 40px color-mix(in srgb, var(--rc) 30%, transparent);
}
.face.front img { width: 100%; height: 100%; object-fit: cover; display: block; }
.face.back {
  transform: rotateY(180deg); padding: 18px 18px 16px; display: flex; flex-direction: column;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--rc) 22%, var(--surface-2)), var(--surface) 70%);
}
.shine {
  position: absolute; inset: 0; border-radius: 18px; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%);
  opacity: .6; transform: translateZ(1px);
}
.card3d.holo .shine {
  mix-blend-mode: color-dodge; opacity: .45;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .6), transparent 40%),
    linear-gradient(115deg, transparent 20%, rgba(255, 220, 120, .35) 40%, rgba(120, 220, 255, .3) 55%, transparent 75%);
  background-size: 100% 100%, 250% 250%;
  background-position: center, var(--mx) var(--my);
}
.card3d.pop { animation: pop .55s cubic-bezier(.2, 1.3, .4, 1) both; }
@keyframes pop { from { transform: scale(.6) rotateY(-25deg); opacity: 0; } }

.back h2 { margin: 0 0 4px; font-size: 19px; line-height: 1.15; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px;
        font-size: 12px; font-weight: 800; background: var(--rc); color: #0a1120; align-self: flex-start; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0 8px; }
.stat { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-radius: 10px; padding: 7px 4px; text-align: center; }
.stat b { display: block; font-size: 16px; }
.stat span { color: var(--muted); font-size: 10.5px; }
.back .row { color: var(--muted); font-size: 13px; margin: 3px 0; }
.back .row b { color: var(--text); font-weight: 600; }
.back .desc { margin-top: auto; color: var(--muted); font-size: 12.5px; line-height: 1.35;
              display: -webkit-box; -webkit-line-clamp: 5; min-height: 0; -webkit-box-orient: vertical; overflow: hidden; }
.missing-note { margin-top: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px;
                background: rgba(255, 255, 255, .05); color: var(--muted); }

.loader { display: grid; place-items: center; padding: 60px 0; }
.loader i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--green);
            animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { color: #fecaca; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35);
         padding: 12px 14px; border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ================= ПАК ================= */
.pack-banner {
  position: relative; overflow: hidden; border-radius: 18px; margin: 4px 0 6px; padding: 16px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(120deg, #11331f 0%, #0f2a3a 55%, #2a2410 100%);
  border: 1px solid rgba(229, 184, 79, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.pack-banner::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(246, 215, 122, .18) 80%, transparent 90%);
  animation: sweep 6s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.pack-mini {
  position: relative; flex: none; width: 54px; height: 70px; border-radius: 10px;
  background: linear-gradient(160deg, var(--green) 0%, #0f5132 55%, #0b2e1f 100%);
  box-shadow: 0 0 0 2px rgba(246, 215, 122, .7), 0 6px 18px rgba(0, 0, 0, .4);
  display: grid; place-items: center; font-weight: 900; color: var(--gold-2); font-size: 15px;
}
.pack-banner.ready .pack-mini { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.pack-info { position: relative; flex: 1; min-width: 0; }
.pack-info b { display: block; font-size: 16px; }
.pack-info span { color: var(--muted); font-size: 12.5px; }
.btn {
  position: relative; flex: none; border: 0; cursor: pointer; border-radius: 12px; padding: 10px 14px;
  font-weight: 800; font-size: 14px; color: #052e16;
  background: linear-gradient(180deg, #4ade80, var(--green));
  box-shadow: 0 6px 16px rgba(34, 197, 94, .35); transition: transform .12s ease;
}
.btn:active { transform: scale(.95); }
.btn.gold { color: #2a1d00; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px rgba(229, 184, 79, .35); }
.btn.ghost { color: var(--text); background: var(--surface-2); box-shadow: none; border: 1px solid var(--line); }
.btn[disabled] { opacity: .5; }

.packview {
  position: fixed; inset: 0; z-index: 30; overflow: hidden;
  background: radial-gradient(100% 70% at 50% 35%, #12301f 0%, #08101c 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(16px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
  animation: fade .3s ease both;
}
.packview[hidden] { display: none !important; }   /* классы сцен (vz-tview, deal-fx…) задают display — скрытие сильнее */
.pv-title { position: absolute; top: calc(18px + var(--safe-top)); left: 0; right: 0; text-align: center;
            color: var(--muted); font-size: 13px; letter-spacing: .5px; }
.rays { position: absolute; width: 160vmax; height: 160vmax; pointer-events: none; opacity: 0;
        background: repeating-conic-gradient(from 0deg, rgba(246, 215, 122, .10) 0 6deg, transparent 6deg 18deg);
        animation: spin 30s linear infinite; transition: opacity .6s ease; }
.packview.charging .rays, .packview.revealing .rays { opacity: 1; }

/* сам пак */
.bigpack {
  position: relative; width: min(56vw, 230px); aspect-ratio: 3 / 4.2; cursor: pointer;
  border-radius: 22px; transform-style: preserve-3d;
  background: linear-gradient(160deg, #34d27a 0%, #128048 40%, #0a3a24 75%, #072318 100%);
  box-shadow: 0 0 0 3px rgba(246, 215, 122, .85), 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(34, 197, 94, .25);
  display: grid; place-items: center; animation: float 3s ease-in-out infinite;
}
.bigpack::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%) 0 0 / 250% 100%;
  animation: foil 2.8s ease-in-out infinite; mix-blend-mode: overlay;
}
.bigpack::after {
  content: ""; position: absolute; top: 12%; left: 8%; right: 8%; border-top: 2px dashed rgba(246, 215, 122, .6);
}
.bigpack .logo { text-align: center; color: var(--gold-2); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.bigpack .logo b { display: block; font-size: 44px; font-weight: 900; letter-spacing: 2px; }
.bigpack .logo span { font-size: 12px; letter-spacing: 3px; color: #d1fae5; opacity: .85; }
@keyframes float { 50% { transform: translateY(-10px) rotateZ(-1.5deg); } }
@keyframes foil { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
.packview.charging .bigpack { animation: shake .09s linear infinite; }
.packview.charging .bigpack.hard { animation-duration: .055s;
  box-shadow: 0 0 0 3px #fff6d0, 0 0 90px rgba(246, 215, 122, .7); }
@keyframes shake {
  0% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 2px) rotate(-2deg); }
  50% { transform: translate(3px, -2px) rotate(2deg); } 75% { transform: translate(-2px, -1px) rotate(-1deg); }
}
.flash { position: absolute; inset: 0; pointer-events: none; background: #fff8dc; opacity: 0; }
.flash.go { animation: flash .7s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }
.pv-hint { margin-top: 22px; color: var(--muted); font-size: 13.5px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* карты из пака: 3 сверху, 2 снизу по центру */
.pv-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px 10px; width: min(100%, 420px); }
.pv-cards .pc { grid-column: span 2; }
.pv-cards .pc:nth-child(4) { grid-column: 2 / span 2; }
.pv-cards .pc:nth-child(5) { grid-column: 4 / span 2; }
.pc { --rc: var(--r-common); position: relative; aspect-ratio: 4 / 5; perspective: 900px; cursor: pointer;
      animation: deal .6s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i) * 110ms); }
@keyframes deal { from { opacity: 0; transform: translateY(140px) scale(.3) rotate(-20deg); } }
.pc .in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, 1.4, .5, 1); }
.pc.open .in { transform: rotateY(180deg); }
.pc .side { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; }
.pc .cover-side {
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 215, 122, .25) 0 18%, transparent 19%),
    repeating-linear-gradient(45deg, #0f3b27 0 8px, #0c3121 8px 16px);
  box-shadow: 0 0 0 2px rgba(246, 215, 122, .7), 0 10px 22px rgba(0, 0, 0, .45);
  display: grid; place-items: center; color: var(--gold-2); font-weight: 900; font-size: 18px;
}
.pc.rare-hint .cover-side { animation: aura 1.1s ease-in-out infinite; }
@keyframes aura { 50% { box-shadow: 0 0 0 2px var(--rc), 0 0 26px 6px color-mix(in srgb, var(--rc) 70%, transparent); } }
.pc .face-side { transform: rotateY(180deg); background: var(--surface);
                 box-shadow: 0 0 0 2px var(--rc), 0 0 22px color-mix(in srgb, var(--rc) 45%, transparent); }
.pc .face-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc .ribbon { position: absolute; top: 7px; left: -26px; transform: rotate(-35deg); z-index: 2;
              background: var(--green); color: #052e16; font-size: 9.5px; font-weight: 900;
              padding: 2px 28px; letter-spacing: 1px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.pc .cap { position: absolute; left: 0; right: 0; bottom: -18px; text-align: center; font-size: 11px;
           white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .3s .4s ease; }
.pc.open .cap { opacity: 1; }
.spark { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; pointer-events: none;
         background: var(--rc); box-shadow: 0 0 10px var(--rc); z-index: 3;
         animation: spark .9s cubic-bezier(.1, .8, .3, 1) forwards; }
@keyframes spark { to { transform: translate(var(--sx), var(--sy)) scale(.2); opacity: 0; } }
.pv-actions { display: flex; gap: 10px; margin-top: 38px; min-height: 44px; }
.pv-actions .btn { min-width: 140px; }

/* уведомления */
.toasts { position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--safe-bottom)); z-index: 40;
          display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 14px; border-radius: 14px; font-size: 13.5px;
         background: rgba(18, 28, 46, .96); border: 1px solid rgba(229, 184, 79, .45);
         box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: toast-in .4s cubic-bezier(.2, 1.2, .4, 1) both; }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ================= НИЖНЯЯ ПАНЕЛЬ ================= */
.view { padding-bottom: calc(84px + var(--safe-bottom)); }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 8;
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 12px calc(8px + var(--safe-bottom));
  background: linear-gradient(0deg, rgba(10, 17, 32, .98), rgba(10, 17, 32, .86));
  backdrop-filter: blur(10px); border-top: 1px solid rgba(36, 52, 77, .7);
}
.tab {
  flex: 1; max-width: 220px; border: 0; background: none; cursor: pointer; border-radius: 12px;
  padding: 7px 4px; color: var(--muted); font-size: 12px; font-weight: 700;
  display: flex; flex-direction: column; align-items: center; gap: 2px; transition: all .2s ease;
}
.tab i { font-style: normal; font-size: 20px; line-height: 1; transition: transform .25s cubic-bezier(.2, 1.4, .4, 1); }
.tab.on { color: #bbf7d0; background: rgba(34, 197, 94, .12); }
.tab.on i { transform: translateY(-2px) scale(1.12); }

/* ================= СОСТАВ ================= */
.sq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.sq-head h1 { margin: 0; }
.power {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 12px;
  background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .45);
}
.power b { font-size: 20px; color: #bbf7d0; font-variant-numeric: tabular-nums; }
.power span { color: var(--muted); font-size: 11.5px; }
.delta { position: fixed; z-index: 25; pointer-events: none; font-weight: 900; font-size: 18px;
         animation: delta 1.3s ease-out forwards; }
.delta.up { color: #4ade80; } .delta.down { color: #f87171; }
@keyframes delta { from { opacity: 0; transform: translateY(6px); } 15% { opacity: 1; } to { opacity: 0; transform: translateY(-34px); } }

.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: none; cursor: pointer; padding: 8px 6px; border-radius: 9px;
              color: var(--muted); font-weight: 700; font-size: 13px; transition: all .2s ease; }
.seg button.on { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.sq-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.tool { flex: 1; min-width: 0; text-align: left; cursor: pointer; border-radius: 12px; padding: 9px 11px;
        background: var(--surface); border: 1px solid var(--line); }
.tool small { display: block; color: var(--muted); font-size: 11px; }
.tool b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool[disabled] { opacity: .45; }

.pitch {
  position: relative; width: 100%; aspect-ratio: 1 / 1.2; border-radius: 18px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 9%, transparent 9% 18%),
    radial-gradient(120% 90% at 50% 50%, #1f7a43 0%, #145a31 60%, #0e4426 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 14px 34px rgba(0, 0, 0, .45);
  touch-action: none;
}
.pitch .ln { position: absolute; border: 2px solid rgba(255, 255, 255, .28); pointer-events: none; }
.pitch .mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch .circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box-t { left: 25%; right: 25%; top: -2px; height: 13%; }
.pitch .box-b { left: 25%; right: 25%; bottom: -2px; height: 13%; }

.slot {
  --rc: var(--r-common);
  position: absolute; width: 16.5%; transform: translate(-50%, -50%); cursor: pointer;
  transition: left .35s cubic-bezier(.2, .9, .3, 1), top .35s cubic-bezier(.2, .9, .3, 1);
  -webkit-user-select: none; user-select: none;
}
.slot .sc { position: relative; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden;
            box-shadow: 0 0 0 1.5px var(--rc), 0 6px 14px rgba(0, 0, 0, .45); background: var(--surface); }
.slot .sc img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.slot .lv { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); z-index: 1;
            font-size: 9.5px; font-weight: 900; padding: 1px 6px; border-radius: 7px; white-space: nowrap;
            background: #0a1120; color: var(--gold-2); border: 1px solid rgba(246, 215, 122, .5); }
.slot .lv.x { color: #4ade80; border-color: rgba(74, 222, 128, .6); }
.slot.free .sc { box-shadow: none; background: rgba(10, 17, 32, .35); border: 1.5px dashed rgba(255, 255, 255, .45);
                  display: grid; place-items: center; text-align: center; }
.slot.free .sc span { font-size: 10px; font-weight: 800; color: rgba(255, 255, 255, .85); line-height: 1.25; }
.slot.free .sc span b { display: block; font-size: 18px; font-weight: 400; }
.slot.pop .sc { animation: slotpop .45s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes slotpop { 0% { transform: scale(.6); } 60% { transform: scale(1.1); } }
.slot.dragging { opacity: .25; }
.slot.target .sc { box-shadow: 0 0 0 2.5px #fff, 0 0 18px rgba(255, 255, 255, .6); }
.drag-ghost { position: fixed; z-index: 26; pointer-events: none; width: 70px; transform: translate(-50%, -60%) rotate(-4deg) scale(1.1);
         filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.drag-ghost .sc { aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; box-shadow: 0 0 0 2px var(--rc); }
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coach-spot { position: absolute; left: 8px; top: 8px; z-index: 2; display: flex; align-items: center; gap: 6px;
              padding: 4px 9px 4px 5px; border-radius: 99px; font-size: 11px; font-weight: 800; cursor: pointer;
              background: rgba(10, 17, 32, .7); border: 1px solid rgba(246, 215, 122, .55); color: var(--gold-2); }
.sq-hint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; }

/* ================= НИЖНИЙ ЛИСТ ================= */
.sheet-wrap { position: fixed; inset: 0; z-index: 28; }
.sheet-wrap[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(4, 8, 16, .6); animation: fade .2s ease both; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 78vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line);
  padding: 8px 14px calc(14px + var(--safe-bottom)); animation: sheet-up .32s cubic-bezier(.2, .9, .3, 1) both;
  max-width: 720px; margin: 0 auto;
}
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 9px; background: var(--line); margin: 2px auto 10px; }
.sheet h3 { margin: 0 0 2px; font-size: 17px; }
.sheet .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.sheet .list { overflow-y: auto; margin: 0 -4px; padding: 0 4px; -webkit-overflow-scrolling: touch; }
.row { --rc: var(--r-common); display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
       padding: 7px; border-radius: 12px; border: 1px solid transparent; background: none; margin-bottom: 4px;
       animation: rise .3s ease both; animation-delay: calc(var(--i, 0) * 15ms); }
.row:active { background: var(--surface-2); }
.row .th { flex: none; width: 42px; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--rc); background: var(--surface-2); }
.row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row .meta { flex: 1; min-width: 0; }
.row .meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta span { color: var(--muted); font-size: 11.5px; }
.row .pw { flex: none; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.row .pw small { display: block; color: var(--muted); font-weight: 600; font-size: 10.5px; }
.row.locked { opacity: .45; }
.row.current { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .08); }
.sheet .actions { display: flex; gap: 8px; margin-top: 10px; }
.sheet .actions .btn { flex: 1; }
.warn { color: #fde68a; font-size: 12.5px; margin: -4px 0 10px; }

/* ================= МАТЧ ================= */
.div-hero { display: flex; gap: 14px; align-items: center; margin: 2px 0 14px; }
.div-badge { flex: none; width: 78px; aspect-ratio: 1; border-radius: 22px; display: grid; place-content: center; text-align: center;
             background: linear-gradient(160deg, var(--green) 0%, #0f5132 60%, #0b2e1f 100%);
             box-shadow: inset 0 0 0 2px rgba(246, 215, 122, .55), 0 10px 26px rgba(34, 197, 94, .25); }
.div-badge small { font-size: 10px; color: #bbf7d0; text-transform: uppercase; letter-spacing: .6px; }
.div-badge b { font-size: 34px; line-height: 1; color: var(--gold-2); }
.div-info { flex: 1; min-width: 0; }
.div-info h1 { margin: 0; }
.div-info .sub { color: var(--muted); font-size: 12.5px; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.m-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.m-stats small { display: block; color: var(--muted); font-size: 11px; }
.m-stats b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.m-stats em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); }
.m-rewards { color: var(--muted); font-size: 12px; text-align: center; margin: 4px 0 16px; }
.m-play .btn.big { width: 100%; padding: 16px; font-size: 16px; border-radius: 16px; }

.matchview {
  position: fixed; inset: 0; z-index: 30; overflow: hidden;
  background: radial-gradient(100% 70% at 50% 35%, #12301f 0%, #08101c 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: calc(16px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
  animation: fade .3s ease both;
}
.matchview[hidden] { display: none; }
.matchview .pv-title.static { position: static; }
.matchview .error { max-width: 360px; }
.mv-search { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.radar { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.radar b { font-size: 40px; animation: bounce .7s ease-in-out infinite alternate; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(34, 197, 94, .6);
           animation: ping 1.8s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .6s; } .radar i:nth-child(3) { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
@keyframes bounce { to { transform: translateY(-10px) rotate(25deg); } }

.mv-vs { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; }
.mv-vs .team { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.mv-vs .team.me { animation: slide-l .5s cubic-bezier(.2, .9, .3, 1) both; }
.mv-vs .team.opp { animation: slide-r .5s cubic-bezier(.2, .9, .3, 1) both; }
.mv-vs .crest { width: 74px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 22px;
                background: var(--surface-2); box-shadow: 0 0 0 2px var(--green), 0 10px 24px rgba(0, 0, 0, .45); }
.mv-vs .opp .crest { box-shadow: 0 0 0 2px #f87171, 0 10px 24px rgba(0, 0, 0, .45); }
.mv-vs b { font-size: 14px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-vs span { font-weight: 900; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.mv-vs small { color: var(--muted); font-size: 11px; }
.mv-vs .vs { font-size: 30px; font-weight: 900; color: var(--gold-2); font-style: italic;
             animation: vs-in .6s .25s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 0 20px rgba(246, 215, 122, .5); }
@keyframes slide-l { from { opacity: 0; transform: translateX(-60px); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(60px); } }
@keyframes vs-in { from { opacity: 0; transform: scale(2.4); } }
.lineup { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 360px; }
.lineup .lt { --rc: var(--r-common); width: 40px; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
              box-shadow: 0 0 0 1.5px var(--rc); animation: rise .3s ease both; animation-delay: calc(.5s + var(--i) * 50ms); }
.lineup .lt img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mv-note { position: relative; color: var(--muted); font-size: 12.5px; text-align: center; }

.scoreboard { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; padding: 10px 12px; border-radius: 16px;
              background: rgba(10, 17, 32, .8); border: 1px solid var(--line); }
.sb-team { flex: 1; min-width: 0; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-team:last-child { text-align: right; }
.sb-score { display: flex; align-items: center; gap: 6px; font-size: 34px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sb-score i { font-style: normal; color: var(--muted); }
.sb-score b.pop { animation: score-pop .5s cubic-bezier(.2, 1.6, .4, 1); color: var(--gold-2); }
@keyframes score-pop { 0% { transform: scale(2); } }
.clock { font-size: 15px; font-weight: 800; color: #bbf7d0; font-variant-numeric: tabular-nums; min-height: 20px; }
.mini-pitch { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1.5; border-radius: 14px; overflow: hidden;
              background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 10%, transparent 10% 20%),
                          radial-gradient(120% 90% at 50% 50%, #1f7a43 0%, #145a31 60%, #0e4426 100%);
              box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.mini-pitch .ln { position: absolute; border: 2px solid rgba(255, 255, 255, .28); }
.mini-pitch .mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.mini-pitch .circle { left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.ball { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%);
        background: radial-gradient(circle at 35% 35%, #fff, #cbd5e1); box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
        transition: left .25s linear, top .25s linear; }
.matchview.goal-me .mini-pitch { animation: goal-flash-me .9s ease; }
.matchview.goal-opp .mini-pitch { animation: goal-flash-opp .9s ease; }
@keyframes goal-flash-me { 30% { box-shadow: inset 0 0 0 4px #4ade80, 0 0 40px rgba(74, 222, 128, .6); } }
@keyframes goal-flash-opp { 30% { box-shadow: inset 0 0 0 4px #f87171, 0 0 40px rgba(248, 113, 113, .5); } }
.feed { width: 100%; max-width: 420px; height: 96px; overflow: hidden; display: flex; flex-direction: column; gap: 4px; }
.feed .ev { padding: 6px 10px; border-radius: 10px; font-size: 13px; animation: rise .3s ease both;
            background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .35); }
.feed .ev.opp { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .35); }
.feed .ev b { color: var(--muted); margin-right: 4px; }
.matchview .pv-actions { position: relative; margin-top: 8px; }

.matchview.final .rays { opacity: 0; }
.matchview.final.won .rays { opacity: 1; }
.fin-title { position: relative; font-size: 40px; font-weight: 900; letter-spacing: 1px; animation: vs-in .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.won .fin-title { color: var(--gold-2); text-shadow: 0 0 30px rgba(246, 215, 122, .55); }
.lost .fin-title { color: #fca5a5; }
.fin-score { position: relative; font-size: 56px; font-weight: 900; font-variant-numeric: tabular-nums; animation: rise .4s .15s ease both; }
.fin-vs { position: relative; color: var(--muted); font-size: 13px; }
.fin-rewards { position: relative; display: flex; gap: 10px; }
.fin-rewards span { padding: 8px 14px; border-radius: 12px; font-weight: 900; background: rgba(229, 184, 79, .14);
                    border: 1px solid rgba(229, 184, 79, .4); color: var(--gold-2);
                    animation: rise .35s ease both; animation-delay: calc(.45s + var(--i) * 120ms); }
.fin-series { position: relative; color: var(--muted); font-size: 12.5px; }
.season-card { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: center; max-width: 360px;
               padding: 12px 14px; border-radius: 14px; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .45);
               animation: rise .4s .6s ease both; }
.season-card small { color: var(--muted); }

/* ================= РУЧНОЙ МАТЧ ================= */
.m-play { display: flex; flex-direction: column; gap: 8px; }
.manualview {
  position: fixed; inset: 0; z-index: 30; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 50% 20%, #10261b 0%, #070d18 65%);
  animation: fade .3s ease both; -webkit-user-select: none; user-select: none;
}
.manualview[hidden] { display: none; }
/* кинополосы */
.manualview .lb { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 6; transition: height .55s cubic-bezier(.6, 0, .2, 1); pointer-events: none; }
.manualview .lb.top { top: 0; } .manualview .lb.bot { bottom: 0; }
.manualview.cine .lb { height: 9vh; }
.mm-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
            padding: 10px 14px calc(14px + var(--safe-bottom)); }
.mm-err { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 360px; }

/* табло сверху */
.mm-hud { position: relative; z-index: 7; padding: calc(8px + var(--safe-top)) 12px 6px; display: flex; flex-direction: column; gap: 6px;
          background: linear-gradient(180deg, rgba(4, 8, 16, .95), rgba(4, 8, 16, 0)); }
.mm-hud[hidden] { display: none; }
.mm-sb { display: flex; align-items: center; justify-content: center; gap: 8px; padding-right: 34px; padding-left: 34px; }
.mm-sb .nm { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-sb .nm.me { text-align: right; color: #bbf7d0; } .mm-sb .nm.opp { color: #fecaca; }
.mm-sb b { min-width: 30px; text-align: center; font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums;
           background: rgba(255, 255, 255, .06); border-radius: 8px; padding: 0 4px; }
.mm-sb b.pop { animation: score-pop .55s cubic-bezier(.2, 1.6, .4, 1); color: var(--gold-2); }
.mm-sb i { font-style: normal; color: var(--muted); font-weight: 900; }
.snd { position: absolute; right: 10px; top: calc(8px + var(--safe-top)); width: 30px; height: 30px; border-radius: 50%;
       border: 1px solid var(--line); background: rgba(255, 255, 255, .06); font-size: 14px; cursor: pointer; }
.mm-pips { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.pip { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-style: normal;
       border: 2px solid rgba(255, 255, 255, .2); transition: all .3s ease; }
.pip.me { border-color: rgba(74, 222, 128, .7); } .pip.opp { border-color: rgba(248, 113, 113, .7); }
.pip.miss { opacity: .35; } .pip.scored.me { background: rgba(74, 222, 128, .3); } .pip.scored.opp { background: rgba(248, 113, 113, .3); }
.pip.now { transform: scale(1.25); box-shadow: 0 0 0 3px rgba(246, 215, 122, .45); animation: pip-now 1s ease-in-out infinite alternate; }
@keyframes pip-now { to { box-shadow: 0 0 0 5px rgba(246, 215, 122, .15); } }
.pen-row { display: flex; align-items: center; justify-content: center; gap: 5px; }
.pen-row span { width: 18px; font-weight: 900; text-align: right; margin-right: 4px; }
.pp { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.pp.in { background: #4ade80; border-color: #4ade80; } .pp.out { background: #ef4444; border-color: #ef4444; }
.pp.now { border-color: var(--gold-2); animation: pip-now 1s ease-in-out infinite alternate; }

/* вступление */
.mi { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.mi.out { animation: mi-out .38s ease forwards; }
@keyframes mi-out { to { opacity: 0; transform: scale(1.15); filter: blur(6px); } }
.mi-title { display: flex; gap: 10px; font-size: 34px; font-weight: 900; letter-spacing: 3px; font-style: italic; }
.mi-title span { background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
                 animation: slam .7s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 0 18px rgba(246, 215, 122, .45)); }
.mi-title span:last-child { animation-delay: .18s; }
@keyframes slam { from { opacity: 0; transform: scale(3) translateY(-10px); filter: blur(10px); } }
.mi-teams { display: flex; align-items: baseline; gap: 10px; font-size: 18px; animation: rise .5s .5s ease both; }
.mi-teams .me { color: #bbf7d0; } .mi-teams .opp { color: #fecaca; } .mi-teams i { color: var(--muted); font-size: 13px; }
.mi-lines { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.mi-row { display: flex; align-items: center; gap: 8px; animation: rise .4s ease both; animation-delay: calc(.8s + var(--i) * .15s); }
.mi-row .v { width: 62px; font-weight: 900; font-variant-numeric: tabular-nums; font-size: 14px; }
.mi-row .v.me { text-align: right; color: #bbf7d0; } .mi-row .v.opp { text-align: left; color: #fecaca; }
.tug { position: relative; flex: 1; height: 22px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.tug .l, .tug .r { position: absolute; top: 0; bottom: 0; width: 50%; transition: width 1.1s cubic-bezier(.3, 1.2, .4, 1); }
.tug .l { left: 0; background: linear-gradient(90deg, #15803d, #4ade80); }
.tug .r { right: 0; background: linear-gradient(270deg, #b91c1c, #f87171); }
.mi-row .tug .l { animation: tug-l 1.2s ease both; animation-delay: calc(1s + var(--i) * .15s); }
.mi-row .tug .r { animation: tug-r 1.2s ease both; animation-delay: calc(1s + var(--i) * .15s); }
@keyframes tug-l { from { width: 50%; } to { width: var(--s); } }
@keyframes tug-r { from { width: 50%; } to { width: calc(100% - var(--s)); } }
.tug em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800;
          text-shadow: 0 1px 3px rgba(0, 0, 0, .8); letter-spacing: .4px; }
.mi-row.key .tug { box-shadow: 0 0 0 2px rgba(246, 215, 122, .6); }
.mi-split { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 52px; }
.mi-pips { display: flex; gap: 6px; }
.mi-pips .pip { opacity: 0; transform: scale(0); }
.mi.split .mi-pips .pip { animation: pip-in .45s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes pip-in { 0% { opacity: 1; transform: translateY(-30px) scale(0); } to { opacity: 1; transform: none; } }
.mi-att { display: flex; gap: 16px; font-size: 13px; opacity: 0; }
.mi.split .mi-att { opacity: 1; animation: rise .4s .8s ease both; }
.mi-att .me { color: #bbf7d0; } .mi-att .opp { color: #fecaca; }
.mi-note { color: var(--muted); font-size: 12px; line-height: 1.45; }
.mi .lineup { animation: rise .4s .6s ease both; }

/* заставка атаки */
.cut { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.cut-tag { font-size: 13px; font-weight: 900; letter-spacing: 2px; padding: 5px 12px; border-radius: 99px; animation: slam .5s ease both; }
.cut.atk .cut-tag { background: rgba(34, 197, 94, .15); color: #bbf7d0; border: 1px solid rgba(74, 222, 128, .5); }
.cut.dfn .cut-tag { background: rgba(239, 68, 68, .14); color: #fecaca; border: 1px solid rgba(248, 113, 113, .5); }
.portrait { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.portrait .pf { width: 128px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--surface-2);
                box-shadow: 0 0 0 2px var(--gold), 0 18px 40px rgba(0, 0, 0, .6); animation: portrait-in .7s cubic-bezier(.2, .9, .3, 1) both; }
.cut.dfn .portrait .pf { box-shadow: 0 0 0 2px #22d3ee, 0 18px 40px rgba(0, 0, 0, .6); }
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; animation: kenburns 4s ease-out both; }
.portrait .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 48px; }
@keyframes portrait-in { from { opacity: 0; transform: translateX(-80px) rotate(-8deg) scale(.8); } }
@keyframes kenburns { from { transform: scale(1.25) translateY(6%); } to { transform: scale(1); } }
.portrait .pname { font-size: 18px; font-weight: 900; animation: rise .4s .3s ease both; }
.portrait .prole { color: var(--muted); font-size: 12px; animation: rise .4s .4s ease both; }
.cut-line { min-height: 40px; font-size: 14px; line-height: 1.4; color: #e2e8f0; max-width: 340px; }
.cut-chance { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05);
              border: 1px solid var(--line); animation: rise .4s .5s ease both; text-align: left; }
.gauge { position: relative; width: 72px; height: 72px; flex: none; }
.gauge b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: rgba(255, 255, 255, .1); }
.ring .val { stroke-linecap: round; filter: drop-shadow(0 0 6px currentColor); }
.ring.me .val { stroke: #4ade80; color: #4ade80; } .ring.opp .val { stroke: #f87171; color: #f87171; }
.cc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-text b { font-size: 14px; } .cc-text span { font-size: 12px; color: var(--gold-2); } .cc-text small { font-size: 11px; color: var(--muted); }
.duel { width: 170px; max-width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(270deg, #b91c1c, #f87171); overflow: hidden; }
.duel i { display: block; height: 100%; width: var(--s); background: linear-gradient(90deg, #15803d, #4ade80); }
.cut.dfn .duel { background: linear-gradient(270deg, #15803d, #4ade80); } .cut.dfn .duel i { background: linear-gradient(90deg, #b91c1c, #f87171); }
.tap-hint { color: var(--muted); font-size: 11px; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* сцена: ворота в перспективе */
.scene { position: relative; width: 100%; max-width: 440px; aspect-ratio: 3 / 3.7; max-height: 100%; border-radius: 18px; overflow: hidden;
         background: #08101c; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); opacity: 0; transform: scale(1.12);
         transition: opacity .45s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.scene.in { opacity: 1; transform: scale(1); }
.scene.windup { transform: scale(1.04); transition: transform .4s ease; }
.scene.slowmo { transform: scale(1.09); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.scene.shake { animation: shake .5s ease; }
@keyframes shake { 15% { translate: -6px 3px; } 30% { translate: 5px -4px; } 45% { translate: -4px 2px; } 60% { translate: 3px -1px; } 80% { translate: -1px 1px; } }
.crowd { position: absolute; left: 0; right: 0; top: 0; height: 43%;
         background: radial-gradient(circle at 10% 30%, rgba(255, 255, 255, .5) 0 1px, transparent 2px) 0 0 / 14px 11px,
                     radial-gradient(circle at 60% 70%, rgba(255, 230, 160, .35) 0 1px, transparent 2px) 0 0 / 17px 13px,
                     linear-gradient(180deg, #0b1324, #13233a 70%, #0f3a24); }
.goal-me .crowd, .saved.dfn .crowd { animation: crowd 1.2s ease; }
@keyframes crowd { 20% { filter: brightness(2.2) saturate(1.4); } }
.flood { position: absolute; top: -20%; width: 60%; height: 70%; pointer-events: none; opacity: .5;
         background: radial-gradient(closest-side, rgba(255, 255, 240, .35), transparent); }
.flood.l { left: -20%; } .flood.r { right: -20%; }
.grass { position: absolute; left: 0; right: 0; top: 41%; bottom: 0; overflow: hidden;
         background: repeating-linear-gradient(180deg, #1c7a40 0 9%, #186b38 9% 18%); }
.grass::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 80% at 50% 0%, transparent 40%, rgba(0, 0, 0, .45)); }
.grass .box6 { position: absolute; left: 4%; right: 4%; top: 0; height: 30%; border: 2px solid rgba(255, 255, 255, .55); border-top: 0;
               transform: perspective(300px) rotateX(35deg); transform-origin: top; }
.grass .arc { position: absolute; left: 30%; right: 30%; top: 62%; height: 14%; border: 2px solid rgba(255, 255, 255, .4); border-radius: 50% 50% 0 0 / 100% 100% 0 0; border-bottom: 0; }
.grass .spot { position: absolute; left: 50%; top: 72%; width: 10px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .8); transform: translateX(-50%); }
.goal { position: absolute; left: 4%; width: 92%; top: 12%; aspect-ratio: 300 / 120; }
.goal-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); overflow: visible; }
.goal-svg .net { transform-origin: 50% 40%; transform-box: fill-box; }
.goal-svg .net.bulge { animation: bulge .7s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bulge { 30% { transform: scale(1.06, 1.1) translateY(-3%); } 60% { transform: scale(.98); } }
.keeper { position: absolute; left: 50%; bottom: 0; height: 80%; aspect-ratio: 80 / 100; transform: translateX(-50%); transform-origin: 50% 90%;
          animation: keeper-idle 1.1s ease-in-out infinite alternate; z-index: 1; }
.keeper.dive { animation: none; }
.keeper svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.kit-opp { --kit: #dc2626; --glove: #fde047; } .kit-me { --kit: #16a34a; --glove: #f8fafc; }
@keyframes keeper-idle { from { translate: -6px 0; } to { translate: 6px 0; } }
.kp-arm { transform-origin: 40px 34px; transform-box: view-box; animation: arms 1.1s ease-in-out infinite alternate; }
@keyframes arms { to { transform: rotate(-6deg); } }
.keeper.dive .kp-arm { animation: none; }
.keeper.dl .kp-arm.l, .keeper.dr .kp-arm.r { transform: rotate(0deg) scale(1.15); }
.zones { position: absolute; left: 4%; right: 4%; top: 10%; bottom: 1%; display: grid; grid-template-columns: repeat(3, 1fr);
         grid-template-rows: repeat(3, 1fr); gap: 3px; z-index: 2; transition: opacity .25s ease; }
.pen .zones { grid-template-rows: 1fr; }
.zones.gone { opacity: 0; pointer-events: none; }
.zone { position: relative; border: 0; border-radius: 6px; cursor: pointer; background: rgba(255, 255, 255, .06);
        box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); animation: zone-in .35s ease both; animation-delay: calc(.35s + var(--i) * 45ms); }
.zone span { position: absolute; inset: 30%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .5); opacity: 0; transition: opacity .2s; }
.scene:not(.locked) .zone:hover span, .scene:not(.locked) .zone:active span { opacity: 1; }
.scene.atk .zone, .scene.pen-atk .zone { box-shadow: inset 0 0 0 1.5px rgba(246, 215, 122, .65); }
.scene.dfn .zone, .scene.pen-dfn .zone { box-shadow: inset 0 0 0 1.5px rgba(34, 211, 238, .65); }
.zone:active { background: rgba(255, 255, 255, .2); }
.zone.picked { background: rgba(246, 215, 122, .3); }
@keyframes zone-in { from { opacity: 0; transform: scale(.6); } }
.zones.reveal .zone { animation: none; opacity: .85; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.zones.reveal.r-atk .zone.hot { background: rgba(74, 222, 128, .38); box-shadow: inset 0 0 0 1.5px #4ade80; }
.zones.reveal.r-dfn .zone.hot { background: rgba(248, 113, 113, .38); box-shadow: inset 0 0 0 1.5px #f87171; }
.zones.reveal .zone.picked { outline: 2px dashed #fff; outline-offset: -4px; }
.zones.reveal { pointer-events: none; animation: fade .4s ease both; }
.zone-legend { position: absolute; left: 0; right: 0; bottom: -20px; text-align: center; font-size: 10.5px; color: rgba(255, 255, 255, .8); }
.ball { position: absolute; left: 50%; top: 79%; width: 12%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 3; }
.ball svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .4)); }
.ball.trail { pointer-events: none; z-index: 2; filter: blur(1px); }
.ball-shadow { position: absolute; left: 50%; top: 83%; width: 11%; height: 2.4%; border-radius: 50%; background: rgba(0, 0, 0, .45);
               transform: translate(-50%, -50%); filter: blur(2px); }
.scene.windup .ball { animation: windup .42s ease; }
@keyframes windup { 60% { transform: translate(-50%, -50%) scale(1.12, .88); } }
.sc-chance { position: absolute; right: 10px; top: 10px; z-index: 4; width: 64px; display: flex; flex-direction: column; align-items: center; }
.sc-chance svg { width: 52px; height: 52px; }
.sc-chance .val { stroke-dasharray: var(--d, 0) 100; }
.sc-chance b { position: absolute; top: 0; width: 52px; height: 52px; display: grid; place-items: center; font-size: 13px; font-weight: 900; }
.sc-chance small { font-size: 9.5px; color: rgba(255, 255, 255, .8); text-align: center; text-shadow: 0 1px 2px #000; }
.sc-names { position: absolute; left: 10px; top: 12px; z-index: 4; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px;
            background: rgba(4, 8, 16, .65); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-prompt { position: absolute; left: 0; right: 0; bottom: 4%; z-index: 4; text-align: center; font-weight: 800; font-size: 14px;
             text-shadow: 0 2px 6px #000; animation: blink 1.6s ease-in-out infinite; }
.scene.locked .sc-prompt { opacity: 0; animation: none; }
.bigtext { position: absolute; left: 0; right: 0; top: 47%; z-index: 5; display: flex; justify-content: center; pointer-events: none;
           font-size: 52px; font-weight: 900; font-style: italic; letter-spacing: 2px; opacity: 0; }
.bigtext.show { opacity: 1; }
.bigtext span { display: inline-block; animation: letter .6s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--i) * 55ms); }
.bigtext.gold span { background: linear-gradient(180deg, #fff 10%, var(--gold-2) 55%, var(--gold)); -webkit-background-clip: text; background-clip: text;
                     color: transparent; filter: drop-shadow(0 0 16px rgba(246, 215, 122, .7)) drop-shadow(0 3px 0 #7c5a12); }
.bigtext.green span { color: #4ade80; text-shadow: 0 0 22px rgba(74, 222, 128, .8), 0 3px 0 #14532d; }
.bigtext.red span { color: #f87171; text-shadow: 0 0 18px rgba(248, 113, 113, .6), 0 3px 0 #7f1d1d; }
@keyframes letter { from { opacity: 0; transform: translateY(40px) scale(2.2) rotate(-12deg); filter: blur(4px); } }
.sub-line { position: absolute; left: 10px; right: 10px; top: 63%; z-index: 5; text-align: center; font-size: 14px; font-weight: 800;
            text-shadow: 0 2px 6px #000; animation: rise .4s .35s ease both; }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .75; } to { opacity: 0; } }
.vignette { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .5s ease;
            background: radial-gradient(ellipse at 50% 45%, transparent 52%, rgba(0, 0, 0, .7) 100%); }
.scene.slowmo .vignette { opacity: 1; }
.scene.goal-opp .vignette { opacity: 1; background: radial-gradient(ellipse at 50% 45%, transparent 48%, rgba(127, 29, 29, .6) 100%); }
.confetti { position: absolute; z-index: 5; width: 7px; height: 11px; border-radius: 2px; pointer-events: none; }
.spk { position: absolute; z-index: 5; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; }
.sc-next { position: absolute; left: 0; right: 0; bottom: 3%; z-index: 6; display: flex; justify-content: center; animation: rise .35s .2s ease both; }
.sc-next .btn { min-width: 200px; }

/* пенальти */
.pen-intro { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; max-width: 360px; }
.pi-score { font-size: 46px; font-weight: 900; color: var(--muted); animation: rise .4s ease both; }
.pi-title { display: flex; flex-direction: column; font-size: 38px; font-weight: 900; font-style: italic; line-height: 1; }
.pi-title span { color: var(--gold-2); text-shadow: 0 0 24px rgba(246, 215, 122, .55); animation: slam .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.pi-title span:last-child { animation-delay: .2s; }

/* итог */
.mm-final { position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px;
            text-align: center; max-height: 100%; overflow-y: auto; padding: calc(10px + var(--safe-top)) 0 4px; }
.mm-final .rays { opacity: 0; position: fixed; left: 50%; top: 30%; transform: translate(-50%, -50%); }
.won .mm-final .rays { opacity: 1; }
.won .mm-final .fin-title { color: var(--gold-2); text-shadow: 0 0 30px rgba(246, 215, 122, .55); }
.lost .mm-final .fin-title { color: #fca5a5; }
.mm-final .fin-title { font-size: 32px; }
.mf-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; animation: rise .4s .3s ease both; }
.mf-stats > div { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; }
.mf-stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.mf-stats small { font-size: 10px; color: var(--muted); }
.mf-reel { position: relative; width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.mf-reel .ev { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px;
               background: rgba(255, 255, 255, .04); border: 1px solid transparent; animation: rise .3s ease both; animation-delay: calc(.4s + var(--i) * 60ms); }
.mf-reel .ev.me.g { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); }
.mf-reel .ev.opp.g { background: rgba(248, 113, 113, .1); border-color: rgba(248, 113, 113, .3); }
.mf-reel .ev b { color: var(--muted); width: 26px; flex: none; }
.mf-reel .ev em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 11px; }
@media (max-height: 640px) { .portrait .pf { width: 96px; } .mi-title { font-size: 28px; } .cut { gap: 8px; } }

/* ================= ПРОФИЛЬ ================= */
.pf-hero { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.pf-ava { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
          font-size: 26px; font-weight: 900; color: var(--gold-2);
          background: linear-gradient(160deg, var(--green) 0%, #0f5132 60%, #0b2e1f 100%);
          box-shadow: 0 0 0 3px rgba(246, 215, 122, .55), 0 10px 26px rgba(0, 0, 0, .45); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.pf-ava img { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .4s ease both; }
.pf-id { min-width: 0; flex: 1; }
.pf-id h1 { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; color: var(--muted); font-size: 12px; }
.pf-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.pf-badge.admin { background: rgba(246, 215, 122, .15); color: var(--gold-2); border: 1px solid rgba(246, 215, 122, .45); }
.pf-badge.vip { background: rgba(168, 85, 247, .15); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, .5); }
.pf-bio { margin-top: 6px; font-size: 13px; color: #cbd5e1; line-height: 1.35; overflow-wrap: anywhere; }

.vault-banner { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 16px;
                background: linear-gradient(135deg, rgba(229, 184, 79, .18), rgba(34, 197, 94, .1)); border: 1px solid rgba(229, 184, 79, .5);
                box-shadow: 0 0 24px rgba(229, 184, 79, .18); animation: rise .4s ease both; overflow: visible; }
.vb-gift { font-size: 32px; animation: gift 1.6s ease-in-out infinite; }
@keyframes gift { 0%, 100% { transform: rotate(0) scale(1); } 10% { transform: rotate(-12deg) scale(1.1); } 20% { transform: rotate(10deg) scale(1.1); } 30% { transform: rotate(0) scale(1); } }
.vault-banner.open .vb-gift { animation: gift-open .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes gift-open { to { transform: scale(1.8) rotate(-20deg); opacity: 0; } }
.vb-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vb-info b { font-size: 14px; } .vb-info span { font-size: 12.5px; color: var(--gold-2); }
.vault-banner .btn { flex: none; padding: 10px 14px; }

.pf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pf-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0;
           animation: rise .35s ease both; }
.pf-stat:nth-child(2) { animation-delay: .04s; } .pf-stat:nth-child(3) { animation-delay: .08s; }
.pf-stat:nth-child(4) { animation-delay: .12s; } .pf-stat:nth-child(5) { animation-delay: .16s; } .pf-stat:nth-child(6) { animation-delay: .2s; }
.pf-stat b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stat small { display: block; color: var(--muted); font-size: 11.5px; }
.pf-stat em { display: block; font-style: normal; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.pf-top { margin: 10px 0 16px; font-size: 13px; color: var(--muted); }
.pf-top b { color: var(--text); }

.profile h2 { font-size: 16px; margin: 0 0 8px; }
.trophies { margin-bottom: 18px; }
.tr-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.tr-row::-webkit-scrollbar { display: none; }
.trophy { flex: none; width: 92px; padding: 10px 6px; border-radius: 14px; text-align: center; background: var(--surface);
          border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px;
          animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; animation-delay: calc(var(--i) * 70ms); }
.trophy i { font-style: normal; font-size: 28px; filter: drop-shadow(0 4px 8px rgba(229, 184, 79, .4)); }
.trophy b { font-size: 15px; color: var(--gold-2); }
.trophy small { font-size: 10.5px; color: var(--muted); line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.trophy.gold { border-color: rgba(246, 215, 122, .6); background: linear-gradient(160deg, rgba(246, 215, 122, .16), var(--surface)); }
.tr-empty { color: var(--muted); font-size: 12.5px; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); text-align: center; }

.ach-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ach-head h2 { margin: 0; }
.ach-head span { font-size: 12.5px; color: var(--muted); }
.gauge.sm { width: 58px; height: 58px; }
.gauge.sm b { font-size: 14px; }
.ach-tiers { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.ach-tiers::-webkit-scrollbar { display: none; }
.ach-tiers .chip em { font-style: normal; color: var(--muted); font-size: 11px; margin-left: 2px; }
.ach-filter { margin-bottom: 10px; }
.ach-list { display: flex; flex-direction: column; gap: 8px; }
.ach { display: flex; gap: 12px; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
       animation: rise .3s ease both; animation-delay: calc(var(--i) * 30ms); }
.ach .ai { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px;
           background: rgba(255, 255, 255, .05); filter: grayscale(.7); opacity: .8; }
.ach .am { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach .am b { font-size: 14px; } .ach .am > span { font-size: 12px; color: #cbd5e1; line-height: 1.3; }
.abar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 4px; }
.abar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, var(--green-2), var(--green));
          animation: abar 1s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.15s + var(--i) * 30ms); }
@keyframes abar { from { width: 0; } }
.af { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.af em { font-style: normal; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #bbf7d0; }
.af small { font-size: 11px; color: var(--muted); }
.ach.near { border-color: rgba(229, 184, 79, .55); box-shadow: 0 0 16px rgba(229, 184, 79, .12); }
.ach.near .abar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.ach.near .af em { color: var(--gold-2); }
.ach.done { border-color: rgba(34, 197, 94, .4); background: linear-gradient(160deg, rgba(34, 197, 94, .1), var(--surface)); }
.ach.done .ai { filter: none; opacity: 1; background: rgba(246, 215, 122, .14); box-shadow: 0 0 14px rgba(246, 215, 122, .35); }
.ach.done .abar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.tabbar .tab { font-size: 11px; }

/* хранилище: много карт сразу */
.packview.vgrid { justify-content: flex-start; gap: 12px; overflow-y: auto; }
.vg-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; animation: slam .6s ease both; }
.vg-head b { font-size: 30px; font-weight: 900; color: var(--gold-2); text-shadow: 0 0 22px rgba(246, 215, 122, .5); }
.vg-head span { font-size: 12.5px; color: var(--muted); }
.vg-rar { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 4px; }
.vg-rar i { --rc: var(--r-common); font-style: normal; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 99px;
            border: 1px solid var(--rc); background: rgba(255, 255, 255, .04); }
.vg-grid { position: relative; width: 100%; max-width: 440px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.vg-card { --rc: var(--r-common); position: relative; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden; background: var(--surface-2);
           box-shadow: 0 0 0 1.5px var(--rc); animation: deal .45s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(.3s + var(--i) * 35ms); }
.vg-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-card .ribbon { position: absolute; top: 4px; left: -20px; transform: rotate(-35deg); z-index: 2; background: var(--green);
                   color: #052e16; font-size: 6.5px; font-weight: 900; padding: 1px 20px; letter-spacing: .5px; }
.vgrid .pv-actions { position: sticky; bottom: 0; padding: 8px 0 4px; margin-top: 4px; }

/* ================= ИНВЕНТАРЬ ================= */
.inv { margin: 4px 0 18px; }
.fx-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.fx { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; font-size: 12.5px;
      background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); animation: rise .3s ease both; animation-delay: calc(var(--i) * 50ms); }
.fx i { font-style: normal; font-size: 18px; animation: fx-pulse 1.6s ease-in-out infinite; }
@keyframes fx-pulse { 50% { transform: scale(1.18); filter: drop-shadow(0 0 6px rgba(74, 222, 128, .8)); } }
.boost-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.boost { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 14px; min-width: 0;
         background: var(--surface); border: 1px solid var(--line); animation: rise .3s ease both; animation-delay: calc(var(--i) * 40ms);
         transition: transform .2s ease, opacity .3s ease; }
.boost.apply { border-color: rgba(229, 184, 79, .45); }
.boost .bz { position: relative; font-size: 30px; line-height: 1.1; width: fit-content; }
.boost .bz em { position: absolute; right: -26px; top: 2px; font-style: normal; font-size: 11px; font-weight: 900; color: var(--gold-2);
                background: rgba(10, 17, 32, .9); border: 1px solid rgba(229, 184, 79, .5); border-radius: 99px; padding: 1px 6px; }
.boost b { font-size: 13px; line-height: 1.2; }
.boost span { font-size: 11px; color: var(--muted); line-height: 1.3; flex: 1; }
.boost small { font-size: 10.5px; color: #94a3b8; font-style: italic; }
.boost .btn { padding: 7px 10px; font-size: 12.5px; margin-top: 2px; }
.boost.using { transform: scale(.96); }
.boost.used { animation: boost-used .6s ease both; }
@keyframes boost-used { 30% { transform: scale(1.06); box-shadow: 0 0 26px rgba(246, 215, 122, .6); } }
.boost-fly { position: fixed; z-index: 40; pointer-events: none; font-size: 34px; transform: translate(-50%, -50%);
             animation: boost-fly 1.05s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes boost-fly { 0% { transform: translate(-50%, -50%) scale(1); } 40% { transform: translate(-50%, -140%) scale(1.9); opacity: 1; }
                       100% { transform: translate(-50%, -260%) scale(.6); opacity: 0; } }
.m-boosts { display: flex; flex-direction: column; gap: 6px; margin: -6px 0 12px; }
.m-boost { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer; padding: 9px 12px;
           border-radius: 14px; background: linear-gradient(135deg, rgba(229, 184, 79, .14), rgba(34, 197, 94, .08));
           border: 1px solid rgba(229, 184, 79, .45); animation: rise .3s ease both; animation-delay: calc(var(--i) * 60ms); }
.m-boost i { font-style: normal; font-size: 24px; }
.m-boost span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-boost b { font-size: 13.5px; } .m-boost small { font-size: 11px; color: var(--muted); }
.m-boost em { font-style: normal; font-weight: 900; color: var(--gold-2); font-size: 12px; }
.m-boost:active { transform: scale(.98); }

/* ================= МАСТЕРСКАЯ ================= */
.tabbar .tab { font-size: 10.5px; padding-left: 2px; padding-right: 2px; }
.ws-seg { margin: 6px 0 12px; }
.forge { position: relative; padding: 14px 12px 12px; border-radius: 18px; margin-bottom: 12px; text-align: center;
         background: radial-gradient(120% 90% at 50% 0%, rgba(229, 184, 79, .16), var(--surface) 70%); border: 1px solid rgba(229, 184, 79, .35); }
.forge.full { box-shadow: 0 0 26px rgba(229, 184, 79, .35); animation: forge-glow 1.6s ease-in-out infinite alternate; }
@keyframes forge-glow { to { box-shadow: 0 0 40px rgba(229, 184, 79, .55); } }
.f-slots { display: flex; justify-content: center; gap: 7px; }
.f-slot { --rc: rgba(255, 255, 255, .25); width: 17%; max-width: 62px; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden;
          display: grid; place-items: center; border: 1.5px dashed rgba(255, 255, 255, .25); color: var(--muted); font-weight: 800; }
.f-slot.on { border: 0; box-shadow: 0 0 0 1.5px var(--rc), 0 6px 14px rgba(0, 0, 0, .4); cursor: pointer;
             animation: slotpop .4s cubic-bezier(.2, 1.4, .4, 1) both; }
.f-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.f-arrow { margin: 10px 0; font-size: 13px; font-weight: 800; color: var(--gold-2); }
.f-actions { display: flex; gap: 8px; }
.f-actions .btn { flex: 1; padding: 10px 8px; font-size: 13px; }
.ws-rar { padding-bottom: 8px; }
.chip.r-common, .chip.r-uncommon, .chip.r-rare, .chip.r-epic, .chip.r-legendary, .chip.r-boh { --rc: inherit; }
.ws-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ws-card { --rc: var(--r-common); position: relative; border-radius: 9px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 5.6;
           background: var(--surface); box-shadow: 0 0 0 1.5px var(--rc); animation: rise .3s ease both; animation-delay: calc(var(--i) * 15ms); }
.ws-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.ws-card span { display: block; font-size: 9.5px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; }
.ws-card em { position: absolute; right: 3px; top: 3px; font-style: normal; font-size: 10px; font-weight: 900; padding: 0 5px; border-radius: 6px;
              background: rgba(4, 8, 16, .8); color: #fff; }
.ws-card .used { position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
                 font-size: 11px; background: var(--gold); color: #2a1d00; animation: slotpop .35s cubic-bezier(.2, 1.4, .4, 1); }
.ws-card .sq { position: absolute; left: 3px; bottom: 18px; font-style: normal; font-size: 11px; }
.ws-card.picked { box-shadow: 0 0 0 2px var(--gold-2), 0 0 14px rgba(246, 215, 122, .5); }
.ws-card.spent { opacity: .35; }
.ws-card:active { transform: scale(.95); }

/* анимация крафта */
.packview.forging, .packview.forged { gap: 14px; }
.forge-ring { position: relative; width: 240px; height: 240px; animation: spin 2.4s linear infinite; }
.fr-card { --rc: var(--r-common); position: absolute; left: 50%; top: 50%; width: 64px; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden;
           box-shadow: 0 0 0 1.5px var(--rc), 0 0 16px var(--rc);
           transform: translate(-50%, -50%) rotate(var(--a)) translateY(-92px) rotate(calc(-1 * var(--a)));
           transition: transform .5s cubic-bezier(.6, 0, .9, .4), opacity .5s ease; }
.fr-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-core { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; border-radius: 50%; transform: translate(-50%, -50%);
           background: radial-gradient(circle, #fff, var(--gold-2) 40%, transparent 70%); animation: core 0.5s ease-in-out infinite alternate; }
@keyframes core { to { transform: translate(-50%, -50%) scale(1.5); } }
.packview.merge .forge-ring { animation-duration: .5s; }
.packview.merge .fr-card { transform: translate(-50%, -50%) scale(.2); opacity: 0; }
.packview.merge .fr-core { animation: none; transform: translate(-50%, -50%) scale(5); transition: transform .5s ease; }
.forged-card { --rc: var(--r-common); position: relative; width: 190px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
               box-shadow: 0 0 0 2px var(--rc), 0 0 40px var(--rc); animation: forged-in .8s cubic-bezier(.2, 1.3, .4, 1) both; }
.forged-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes forged-in { from { transform: scale(.2) rotateY(180deg); opacity: 0; filter: brightness(3); } }
.forged-name { position: relative; font-size: 19px; font-weight: 900; text-align: center; animation: rise .4s .4s ease both; }

/* продажа */
.cart-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 10px;
            border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.cart-bar.on { border-color: rgba(229, 184, 79, .55); box-shadow: 0 0 18px rgba(229, 184, 79, .2); }
.cart-bar > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-bar b { font-size: 13.5px; } .cart-bar span { font-size: 12px; color: var(--gold-2); }
.cart-bar .btn { padding: 8px 10px; font-size: 12.5px; }
.sell-list { display: flex; flex-direction: column; gap: 6px; }
.sell-row, .lvl-row { --rc: var(--r-common); display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 12px;
                      background: var(--surface); border: 1px solid var(--line); animation: rise .3s ease both; animation-delay: calc(var(--i) * 20ms); }
.sell-row.on { border-color: rgba(229, 184, 79, .5); background: linear-gradient(90deg, rgba(229, 184, 79, .1), var(--surface)); }
.sell-row .th, .lvl-row .th { position: relative; flex: none; width: 44px; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden;
                              box-shadow: 0 0 0 1.5px var(--rc); background: var(--surface-2); }
.sell-row .th img, .lvl-row .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sell-row .meta, .lvl-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sell-row .meta b, .lvl-row .meta b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sell-row .meta span, .lvl-row .meta span { font-size: 11px; color: var(--muted); }
.stepper { flex: none; display: flex; align-items: center; gap: 6px; }
.stepper button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
                  font-size: 17px; font-weight: 900; cursor: pointer; }
.stepper button[disabled] { opacity: .3; }
.stepper b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.coin-rain { position: fixed; inset: 0; z-index: 45; pointer-events: none; overflow: hidden; }
.coin-rain i { position: absolute; top: -40px; font-style: normal; animation: coin-fall 1.5s cubic-bezier(.3, .1, .6, 1) forwards; }
@keyframes coin-fall { to { transform: translateY(110vh) rotate(540deg); } }

/* прокачка */
.lv-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; }
.lv-boost b { color: var(--gold-2); }
.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); }
.toggle input { display: none; }
.toggle span { width: 36px; height: 20px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); position: relative; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #94a3b8; transition: transform .2s; }
.toggle input:checked + span { background: rgba(34, 197, 94, .35); }
.toggle input:checked + span::after { transform: translateX(16px); background: #4ade80; }
.lvl-row .lvb { position: absolute; right: 2px; bottom: 2px; min-width: 16px; height: 16px; border-radius: 6px; font-size: 10px; font-weight: 900;
                display: grid; place-items: center; background: #0a1120; color: var(--gold-2); border: 1px solid rgba(246, 215, 122, .5); }
.lvl-row .lvb.up { animation: lv-up .7s cubic-bezier(.2, 1.6, .4, 1); color: #4ade80; border-color: #4ade80; }
@keyframes lv-up { 0% { transform: translateY(14px) scale(.4); } 60% { transform: translateY(-4px) scale(1.6); } }
.lvl-row .abar { margin-top: 2px; }
.lvl-row.ready { border-color: rgba(34, 197, 94, .45); }
.lvl-row.charging { animation: charge .5s ease-in-out infinite alternate; }
@keyframes charge { to { box-shadow: 0 0 18px rgba(74, 222, 128, .5); } }
.lvl-row.leveled { border-color: #4ade80; box-shadow: 0 0 22px rgba(74, 222, 128, .45); }
.lvl-btns { flex: none; display: flex; gap: 6px; }
.lvl-btns .btn { padding: 8px 10px; font-size: 12.5px; }

/* ================= MOTION / СОВРЕМЕННЫЙ ВИД ================= */
:root {
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --glass: rgba(14, 22, 38, .72);
  --hair: rgba(255, 255, 255, .06);
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Unbounded", "Manrope", -apple-system, sans-serif;
}
body { font-family: var(--font); letter-spacing: -.005em; }
h1, h2, .fin-title, .mi-title, .pi-title, .bigtext, .fin-score, .sb-score, .div-badge b, .forged-name,
.vg-head b, .mm-sb b, .power b, .pf-stat b, .m-stats b, .mf-stats b, .coins span, .vs, .gauge b {
  font-family: var(--font-display); letter-spacing: -.01em;
}
h1 { font-weight: 700; font-size: 21px; }
h2 { font-weight: 700; }
.pf-stat b, .m-stats b, .mf-stats b { font-weight: 700; }

/* живой фон: медленно плывущие пятна цвета бота */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(70px); opacity: .32; }
.ambient i:nth-child(1) { background: #0f5132; left: -25vmax; top: -20vmax; animation: drift1 26s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { background: #1e3a8a; right: -30vmax; top: 20vh; opacity: .22; animation: drift2 32s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { background: #a16207; left: 10vw; bottom: -45vmax; opacity: .14; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -10vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(14vw, -12vh) scale(1.1); } }
body { background: var(--bg); }

/* шапка: стекло, сжимается при прокрутке */
.topbar { background: linear-gradient(180deg, rgba(10, 17, 32, .82), rgba(10, 17, 32, .55));
          backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
          border-bottom: 1px solid var(--hair); transition: padding .3s var(--out), box-shadow .3s ease; }
.topbar.scrolled { padding-top: calc(6px + var(--safe-top)); padding-bottom: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.topbar .avatar { transition: transform .3s var(--out); box-shadow: 0 0 0 2px rgba(246, 215, 122, .35); }
.topbar.scrolled .avatar { transform: scale(.86); }
.coins { transition: transform .3s var(--spring); }
.coins.pulse { animation: coin-pulse .6s var(--spring); }
@keyframes coin-pulse { 30% { transform: scale(1.16); box-shadow: 0 0 22px rgba(246, 215, 122, .55); } }
.coin-delta { position: fixed; z-index: 60; transform: translateX(-50%); font-family: var(--font-display); font-weight: 700;
              font-size: 13px; pointer-events: none; animation: coin-delta 1.2s var(--out) forwards; }
.coin-delta.up { color: #4ade80; } .coin-delta.down { color: #f87171; }
@keyframes coin-delta { from { opacity: 0; transform: translate(-50%, -6px); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, 18px); } }

/* нижняя панель: стекло + переезжающая пилюля */
.tabbar { background: rgba(8, 13, 24, .72); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
          border-top: 1px solid var(--hair); }
.tab-ink { position: absolute; left: 0; top: 8px; height: calc(100% - 16px - var(--safe-bottom)); border-radius: 14px; pointer-events: none;
           background: linear-gradient(180deg, rgba(34, 197, 94, .2), rgba(34, 197, 94, .08));
           box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .35), 0 6px 20px rgba(34, 197, 94, .18); opacity: 0;
           transition: transform .45s var(--spring), width .45s var(--spring), opacity .3s ease; }
.tab-ink.ready { opacity: 1; }
.tab { position: relative; z-index: 1; }
.tab.on { background: none; }
.tab.bump i { animation: tab-bump .5s var(--spring); }
@keyframes tab-bump { 40% { transform: translateY(-5px) scale(1.25) rotate(-6deg); } }

/* переходы экранов: с направлением, с лёгким размытием */
.screen { animation: screen-in .42s var(--out) both; }
@keyframes screen-in { from { opacity: 0; transform: translateX(26px) scale(.985); filter: blur(4px); } }
@keyframes screen-back-in { from { opacity: 0; transform: translateX(-26px) scale(.985); filter: blur(4px); } }
.view[data-dir="back"] > .screen { animation-name: screen-back-in; }

/* скелетоны вместо крутилки */
.skel { padding-top: 4px; }
.sk { border-radius: 12px; background: linear-gradient(110deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%) 0 0 / 300% 100%;
      animation: shimmer 1.2s linear infinite; }
.sk-title { height: 26px; width: 46%; margin: 4px 0 10px; }
.sk-line { height: 14px; width: 70%; margin-bottom: 16px; }
.sk-banner { height: 84px; margin-bottom: 16px; border-radius: 18px; }
.sk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sk-card { height: 112px; border-radius: 16px; }
.skel .sk:nth-child(n) { animation-delay: calc(var(--d, 0) * 80ms); }

/* отклик нажатия: пружина + волна */
.btn, .chip, .tool, .m-boost, .club, .row, .boost, .seg button, .tab, .stepper button, .pf-stat, .ach, .sell-row, .lvl-row {
  transition: transform .45s var(--spring), background-color .2s ease, border-color .2s ease, box-shadow .25s ease, opacity .2s ease;
}
.btn:active, .chip:active, .tool:active, .m-boost:active, .seg button:active, .stepper button:active { transform: scale(.94); transition-duration: .08s; }
.club:active, .row:active, .boost:active { transform: scale(.97); transition-duration: .08s; }
.rp-host { overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255, 255, 255, .28);
          transform: scale(0); opacity: .8; animation: ripple .6s var(--out) forwards; }
.btn.gold .ripple, .btn:not(.ghost) .ripple { background: rgba(255, 255, 255, .45); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* золотые кнопки — пробегающий блик */
.btn.gold { overflow: hidden; }
.btn.gold:not([disabled])::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%) 160% 0 / 260% 100% no-repeat;
  animation: btn-shine 3.8s ease-in-out infinite; }
@keyframes btn-shine { 0%, 62% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.btn { box-shadow: 0 6px 18px rgba(34, 197, 94, .28), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn.gold { box-shadow: 0 6px 18px rgba(229, 184, 79, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); background: rgba(24, 38, 60, .8); border-color: var(--hair); }

/* поверхности: тонкая верхняя кромка света */
.pf-stat, .m-stats > div, .tool, .boost, .ach, .sell-row, .lvl-row, .trophy, .seg, .cart-bar, .forge, .vault-banner,
.pack-banner, .scoreboard, .row, .chip { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }

/* наклон карт за пальцем + блик */
.tile .pic, .ws-card, .vg-card, .forged-card, .trophy, .lineup .lt, .portrait .pf {
  transform: perspective(600px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform .5s var(--spring); will-change: transform;
}
.tilting { transition: transform .08s linear !important; }
.tilting::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .35), transparent 45%);
  mix-blend-mode: overlay; }
.tile:active .pic { transform: perspective(600px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(.96); }

/* голография на редких картах в сетках */
.tile.r-legendary .pic::after, .tile.r-boh .pic::after, .tile.r-goat .pic::after, .tile.r-collection .pic::after,
.ws-card.r-epic::after, .vg-card.r-legendary::after, .vg-card.r-boh::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 160, .55) 42%, rgba(120, 220, 255, .45) 50%, rgba(255, 140, 220, .4) 58%, transparent 70%) 150% 0 / 300% 100% no-repeat;
  animation: holo-sweep 4.2s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 120ms);
}
@keyframes holo-sweep { 0%, 55% { background-position: 150% 0; } 100% { background-position: -60% 0; } }

/* появление при прокрутке: пока не видно — ждём */
.io { animation-play-state: paused !important; }

/* уведомления — над нижней панелью, с полосой времени */
.toasts { bottom: calc(86px + var(--safe-bottom)); }
.toast { position: relative; overflow: hidden; background: rgba(14, 22, 38, .9); backdrop-filter: blur(14px);
         -webkit-backdrop-filter: blur(14px); border-color: rgba(229, 184, 79, .4); animation: toast-in .55s var(--spring) both; }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform-origin: left;
                background: linear-gradient(90deg, var(--gold), var(--gold-2)); animation: toast-time 5.2s linear forwards; }
@keyframes toast-time { to { transform: scaleX(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.92); filter: blur(4px); } }

/* лист снизу: размытая подложка, следует за пальцем */
.sheet-bg { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: var(--fade, 1); }
.sheet { background: linear-gradient(180deg, rgba(24, 38, 60, .96), rgba(18, 28, 46, .98)); border-top-color: var(--hair);
         animation: sheet-up .45s var(--spring) both; touch-action: pan-y; }
.sheet .grab { width: 44px; height: 5px; background: rgba(255, 255, 255, .22); cursor: grab; }

/* чипы, сегменты, бары — мягче */
.chip.on { box-shadow: 0 0 0 1px rgba(74, 222, 128, .4), 0 4px 14px rgba(34, 197, 94, .18); }
.seg button.on { background: linear-gradient(180deg, rgba(34, 197, 94, .22), rgba(34, 197, 94, .1)); color: #dcfce7;
                 box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .35); }
.bar > i, .abar i { position: relative; overflow: hidden; }
.bar > i::after, .abar i::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent) -100% 0 / 50% 100% no-repeat;
  animation: bar-glint 2.8s ease-in-out infinite 1s; }
@keyframes bar-glint { to { background-position: 250% 0; } }

/* заголовок экрана — лёгкий въезд по буквам не нужен, хватит градиента */
.screen > h1, .sq-head h1, .div-info h1, .pf-id h1 {
  background: linear-gradient(180deg, #fff 30%, #c7d2e2); -webkit-background-clip: text; background-clip: text; color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ambient { display: none; }
}

.trophy, .lineup .lt, .portrait .pf { position: relative; }

/* ================= КУБКИ ================= */
.m-mode { margin: 0 0 14px; }
.mi-cup { font-size: 13px; font-weight: 800; color: var(--gold-2); animation: rise .4s .4s ease both; }

/* шкала фаз дня */
.phase-strip { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 0; padding: 12px; margin: 6px 0 14px; border-radius: 16px;
               background: rgba(255, 255, 255, .03); border: 1px solid var(--hair); }
.phase-strip.open { flex-direction: column; gap: 2px; border-color: rgba(246, 215, 122, .4); }
.phase-strip.open span { font-size: 12px; color: var(--muted); }
.phase-strip.compact { padding: 8px 10px; margin: 0 0 12px; }
.ph { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 84px; text-align: center;
      animation: rise .35s ease both; animation-delay: calc(var(--i) * 80ms); }
.ph i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); background: var(--bg); }
.ph b { font-size: 12px; } .ph small { font-size: 10.5px; color: var(--muted); }
.ph.done i { background: var(--green); border-color: var(--green); }
.ph.done b { color: var(--muted); }
.ph.now i { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 0 0 4px rgba(246, 215, 122, .2); animation: ph-pulse 1.4s ease-in-out infinite; }
.ph.now b { color: var(--gold-2); }
@keyframes ph-pulse { 50% { box-shadow: 0 0 0 8px rgba(246, 215, 122, 0); } }
.ph-line { flex: 1; min-width: 12px; height: 2px; margin-top: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .08)); }
.ph-left { width: 100%; text-align: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.ph-left span { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.phase-strip.compact .ph-left { margin-top: 4px; }

/* карточки кубков */
.cup-list { display: flex; flex-direction: column; gap: 10px; }
.cup-card { --tint: rgba(246, 215, 122, .18); position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
            padding: 14px 12px; border-radius: 18px; cursor: pointer; overflow: hidden; border: 1px solid var(--hair);
            background: radial-gradient(120% 140% at 0% 0%, var(--tint), transparent 55%), var(--surface);
            animation: rise .4s ease both; animation-delay: calc(var(--i) * 70ms); }
.cup-card.rw-boh { --tint: rgba(229, 184, 79, .3); border-color: rgba(229, 184, 79, .4); }
.cup-card.rw-legendary_pack { --tint: rgba(168, 85, 247, .22); }
.cup-card.club { --tint: rgba(34, 197, 94, .22); }
.cup-card:active { transform: scale(.98); }
.cc-trophy { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
             background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); animation: trophy-bob 3s ease-in-out infinite;
             animation-delay: calc(var(--i) * 300ms); }
@keyframes trophy-bob { 50% { transform: translateY(-3px) rotate(-4deg); } }
.cc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-body b { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; }
.cc-body span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-body em { font-style: normal; font-size: 12px; color: var(--gold-2); }
.cc-chip { flex: none; display: flex; flex-direction: column; align-items: center; padding: 5px 9px; border-radius: 10px; font-size: 11.5px;
           font-weight: 800; background: rgba(255, 255, 255, .07); color: var(--text); text-align: center; }
.cc-chip small { font-size: 10px; font-weight: 600; color: var(--muted); }
.cc-chip.ok { background: rgba(34, 197, 94, .15); color: #bbf7d0; }
.cc-chip.go { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d00; animation: go-pulse 1.6s ease-in-out infinite; }
.cc-chip.go small { color: #5a4210; }
@keyframes go-pulse { 50% { box-shadow: 0 0 18px rgba(246, 215, 122, .55); } }
.cc-chip.out { background: rgba(239, 68, 68, .14); color: #fecaca; }
.cc-chip.gold { background: rgba(246, 215, 122, .18); color: var(--gold-2); }
.cc-chip.wait { color: var(--muted); }

/* экран кубка */
.cup-hero { --tint: rgba(246, 215, 122, .2); position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 12px; margin-bottom: 12px;
            border-radius: 20px; overflow: hidden; border: 1px solid var(--hair);
            background: radial-gradient(120% 160% at 100% 0%, var(--tint), transparent 60%), var(--surface); }
.cup-hero.rw-boh { --tint: rgba(229, 184, 79, .35); }
.cup-hero.rw-legendary_pack { --tint: rgba(168, 85, 247, .25); }
.cup-hero .back-btn { position: absolute; left: 8px; top: 8px; width: 30px; height: 30px; font-size: 20px; z-index: 1; }
.ch-trophy { flex: none; width: 72px; height: 72px; margin-left: 30px; display: grid; place-items: center; font-size: 46px;
             filter: drop-shadow(0 8px 18px rgba(246, 215, 122, .45)); animation: trophy-bob 3s ease-in-out infinite; }
.ch-trophy.stamp { animation: stamp .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stamp { from { transform: scale(2.2) rotate(-14deg); opacity: 0; } }
.ch-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ch-info h1 { margin: 0; font-size: 18px; }
.ch-info span { font-size: 12.5px; color: #cbd5e1; }
.ch-info em { font-style: normal; font-size: 12.5px; color: var(--gold-2); font-weight: 700; }
.cup-screen.champ .cup-hero { box-shadow: 0 0 40px rgba(246, 215, 122, .35); border-color: rgba(246, 215, 122, .55); }
.cup-body { display: flex; flex-direction: column; gap: 10px; }
.cup-build-head { display: flex; gap: 8px; align-items: stretch; }
.cup-build-head .tool { flex: 1; }
.cup-build-head .power { flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 0; }
.cup-pitch { aspect-ratio: 1 / 1.15; }
.cup-actions { display: flex; gap: 8px; }
.cup-actions .btn { flex: 1; }
.cup-body > .btn.big, .cup-match .btn.big { width: 100%; padding: 15px; font-size: 15px; border-radius: 16px; }
.cup-club-chosen { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; padding: 8px 12px;
                   border-radius: 12px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); }
.cup-hint { font-size: 13px; line-height: 1.45; color: #cbd5e1; padding: 6px 2px 4px; }
.cup-state { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 22px 14px; border-radius: 18px;
             background: var(--surface); border: 1px solid var(--hair); animation: rise .4s ease both; }
.cup-state i { font-style: normal; font-size: 40px; }
.cup-state b { font-family: var(--font-display); font-size: 16px; }
.cup-state span { font-size: 12.5px; color: var(--muted); }
.cup-state.champion { border-color: rgba(246, 215, 122, .6); background: radial-gradient(100% 100% at 50% 0%, rgba(246, 215, 122, .2), var(--surface)); }
.cup-state.champion i { animation: trophy-bob 2s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(246, 215, 122, .7)); }
.cup-state.eliminated { opacity: .9; }
.locked-squad { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); }
.ls-head { font-size: 13px; color: var(--muted); margin-bottom: 8px; } .ls-head b { color: var(--text); }
.locked-squad .lineup { justify-content: flex-start; max-width: none; }
.cup-match { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; border-radius: 20px; text-align: center;
             background: radial-gradient(120% 100% at 50% 0%, rgba(34, 197, 94, .18), var(--surface) 70%); border: 1px solid rgba(74, 222, 128, .35);
             animation: rise .4s ease both; }
.cm-stage { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #bbf7d0; }
.cm-vs { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 17px; }
.cm-vs i { font-style: italic; color: var(--gold-2); font-size: 20px; animation: vs-in .6s .2s cubic-bezier(.2, 1.6, .4, 1) both; }
.cm-vs b { max-width: 130px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-power { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cup-rewards { margin-top: 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); font-size: 12.5px; }
.cup-rewards summary { cursor: pointer; font-weight: 800; list-style: none; }
.cup-rewards summary::-webkit-details-marker { display: none; }
.cup-rewards div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--hair); animation: rise .3s ease both; }
.cup-rewards div:first-of-type { margin-top: 8px; }
.cup-rewards span { color: var(--muted); text-align: right; }

/* выбор клуба */
.club-pick { display: flex; flex-direction: column; gap: 10px; }
.cp-head { display: flex; flex-direction: column; gap: 2px; } .cp-head b { font-size: 15px; } .cp-head span { font-size: 12px; color: var(--muted); }
.cp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cp-club { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 14px; cursor: pointer;
           background: var(--surface); border: 1px solid var(--hair); animation: rise .3s ease both; animation-delay: calc(var(--i) * 25ms); }
.cp-club span { font-size: 10px; text-align: center; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.cp-logo { width: 46px; height: 46px; border-radius: 50%; background-size: 160%; background-position: center 30%;
           box-shadow: 0 0 0 2px rgba(34, 197, 94, .45); }
.cp-club.taken { opacity: .35; } .cp-club.taken .cp-logo { filter: grayscale(1); box-shadow: none; }
.cp-club em { position: absolute; top: 4px; right: 4px; font-style: normal; font-size: 9px; color: #fecaca; }
.cp-club:not(.taken):active { transform: scale(.94); }

/* итог кубкового матча */
.cup-fin { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 14px;
           border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--hair); max-width: 360px; animation: rise .4s .5s ease both; }
.cup-fin b { font-size: 14px; } .cup-fin span { font-size: 12.5px; color: var(--muted); } .cup-fin small { font-size: 12px; color: var(--gold-2); }
.cup-fin.champ { border-color: rgba(246, 215, 122, .6); box-shadow: 0 0 26px rgba(246, 215, 122, .35); }

/* сетка */
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.br-col { flex: none; width: 168px; display: flex; flex-direction: column; scroll-snap-align: start; animation: rise .4s ease both;
          animation-delay: calc(var(--c, 0) * 90ms); }
.br-stage { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 8px; text-align: center; }
.br-matches { flex: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.br-match { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair);
            animation: rise .3s ease both; animation-delay: calc(var(--c, 0) * 90ms + var(--i) * 30ms); }
.br-match::after { content: ""; position: absolute; right: -15px; top: 50%; width: 14px; height: 1px; background: rgba(255, 255, 255, .15); }
.br-match.mine { border-color: rgba(74, 222, 128, .6); box-shadow: 0 0 16px rgba(34, 197, 94, .25); }
.br-team { display: flex; justify-content: space-between; gap: 6px; padding: 6px 9px; font-size: 12px; }
.br-team + .br-team { border-top: 1px solid var(--hair); }
.br-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-team b { font-variant-numeric: tabular-nums; }
.br-team.win { font-weight: 800; background: rgba(34, 197, 94, .1); }
.br-team.lose { color: var(--muted); }
.br-team.me span { color: #bbf7d0; }
.br-team.bye span { color: var(--muted); font-style: italic; }
.br-cup { width: 90px; align-items: center; }
.br-trophy { flex: 1; display: grid; place-items: center; font-size: 46px; filter: drop-shadow(0 0 18px rgba(246, 215, 122, .6));
             animation: trophy-bob 3s ease-in-out infinite; }

/* ================= ЗАДАНИЯ И ПРОПУСК ================= */
.top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.q-btn { position: relative; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--hair); cursor: pointer;
         background: rgba(255, 255, 255, .06); font-size: 18px; display: grid; place-items: center; }
.q-btn.has { animation: q-wiggle 3.2s ease-in-out infinite; border-color: rgba(246, 215, 122, .5); }
@keyframes q-wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-14deg); } 94% { transform: rotate(12deg); } 97% { transform: rotate(-6deg); } }
.q-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
           background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 900; display: grid; place-items: center;
           box-shadow: 0 0 0 2px var(--bg); animation: slotpop .4s var(--spring); }
.q-badge[hidden] { display: none; }

.questview { position: fixed; inset: 0; z-index: 24; overflow-y: auto; padding: calc(10px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));
             background: radial-gradient(120% 70% at 50% 0%, #102a1d 0%, var(--bg) 60%); animation: qv-in .4s var(--out) both; }
.questview[hidden] { display: none; }
@keyframes qv-in { from { opacity: 0; transform: translateY(24px); } }
.qv-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.qv-head h1 { margin: 0; flex: 1; }
.q-streak { padding: 5px 11px; border-radius: 99px; font-weight: 900; font-size: 13px; background: rgba(255, 255, 255, .06); color: var(--muted);
            border: 1px solid var(--hair); }
.q-streak.on { color: #fdba74; border-color: rgba(251, 146, 60, .55); background: rgba(251, 146, 60, .12); animation: flame 1.6s ease-in-out infinite; }
@keyframes flame { 50% { box-shadow: 0 0 16px rgba(251, 146, 60, .45); } }
.q-seg { margin-bottom: 14px; }
.q-seg button { position: relative; }
.q-seg button i { font-style: normal; display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px;
                  border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 900; vertical-align: 1px; }
.qv-body { display: flex; flex-direction: column; gap: 12px; }
.q-list { display: flex; flex-direction: column; gap: 8px; }
.q-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair);
          animation: rise .35s ease both; animation-delay: calc(var(--i) * 60ms); transition: transform .4s var(--spring); }
.q-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .05); }
.q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.q-main b { font-size: 14px; } .q-main span { font-size: 12px; color: #cbd5e1; line-height: 1.3; }
.q-rw { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.q-rw b { font-family: var(--font-display); font-size: 15px; color: var(--gold-2); } .q-rw small { font-size: 10px; }
.q-rw em { font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-card.ready { border-color: rgba(246, 215, 122, .55); background: linear-gradient(135deg, rgba(246, 215, 122, .12), var(--surface));
                box-shadow: 0 0 18px rgba(246, 215, 122, .15); }
.q-card.ready .q-ic { animation: trophy-bob 2s ease-in-out infinite; }
.q-card.claimed { opacity: .6; } .q-card.claimed .q-rw { color: #4ade80; font-size: 20px; font-weight: 900; }
.q-card.claimed .abar i { background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.q-card.pop-claim, .bp-node.pop-claim { animation: pop-claim .6s var(--spring) forwards; }
@keyframes pop-claim { 40% { transform: scale(1.04); box-shadow: 0 0 26px rgba(246, 215, 122, .5); } 100% { opacity: .6; } }
.q-bonus { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--surface); border: 1px dashed rgba(255, 255, 255, .15); }
.q-bonus > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.q-bonus b { font-size: 14px; } .q-bonus span { font-size: 12.5px; color: var(--gold-2); } .q-bonus small { font-size: 11px; color: var(--muted); }
.q-bonus.ready { border-style: solid; border-color: rgba(246, 215, 122, .6); box-shadow: 0 0 22px rgba(246, 215, 122, .25); }
.q-bonus.claimed { opacity: .65; }
.q-bonus .q-ic { font-size: 26px; }
.q-claim { width: 100%; padding: 15px; font-size: 15px; border-radius: 16px; }

/* карта недели */
.wk-hero { --rc: var(--r-goat); display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px;
           background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--rc) 25%, transparent), var(--surface) 65%); border: 1px solid var(--hair); }
.wk-card { position: relative; flex: none; width: 110px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
           box-shadow: 0 0 0 2px var(--rc), 0 12px 28px rgba(0, 0, 0, .5); animation: portrait-in .7s var(--out) both; }
.wk-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wk-card::after { content: ""; position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .5;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 160, .55) 42%, rgba(120, 220, 255, .45) 50%, transparent 66%) 150% 0 / 300% 100% no-repeat;
  animation: holo-sweep 3.6s ease-in-out infinite; }
.wk-card:not(.got) img { filter: saturate(.8); }
.wk-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wk-info small { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.wk-info b { font-family: var(--font-display); font-size: 17px; }
.wk-info span { font-size: 12.5px; color: #cbd5e1; }
.wk-left { margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--gold-2); }

/* боевой пропуск */
.bp-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; border: 1px solid var(--hair);
           background: radial-gradient(120% 140% at 0% 0%, rgba(168, 85, 247, .22), var(--surface) 65%); }
.bp-level { flex: none; width: 76px; height: 76px; border-radius: 22px; display: grid; place-content: center; text-align: center;
            background: linear-gradient(160deg, #7c3aed, #3b0764); box-shadow: inset 0 0 0 2px rgba(216, 180, 254, .5), 0 10px 26px rgba(124, 58, 237, .35); }
.bp-level small { font-size: 9.5px; color: #e9d5ff; text-transform: uppercase; }
.bp-level b { font-family: var(--font-display); font-size: 30px; line-height: 1; color: #fff; }
.bp-level em { font-style: normal; font-size: 10px; color: #e9d5ff; }
.bp-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bp-info b { font-size: 14px; } .bp-info span { font-size: 12px; color: var(--muted); }
.bp-info .bar > i { background: linear-gradient(90deg, #7c3aed, #c084fc); }
.bp-vip { color: #e9d5ff; font-size: 11px; }
.bp-track { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 14px; scroll-snap-type: x proximity; }
.bp-node { flex: none; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: center;
           animation: rise .35s ease both; animation-delay: calc(var(--i) * 30ms); position: relative; }
.bp-node::before { content: ""; position: absolute; top: 20px; left: -10px; width: 10px; height: 3px; background: rgba(255, 255, 255, .12); }
.bp-node.reached::before { background: #a855f7; }
.bp-dot { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px;
          background: var(--surface); border: 2px solid rgba(255, 255, 255, .15); color: var(--muted); }
.bp-node.reached .bp-dot { border-color: #a855f7; color: #fff; background: rgba(168, 85, 247, .25); }
.bp-node.reached:not(.claimed) .bp-dot { box-shadow: 0 0 16px rgba(246, 215, 122, .55); border-color: var(--gold-2); animation: go-pulse 1.6s ease-in-out infinite; }
.bp-node.claimed .bp-dot { background: #a855f7; color: #fff; }
.bp-node.now .bp-dot { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(168, 85, 247, .3); }
.bp-rw { width: 100%; padding: 6px; border-radius: 10px; background: var(--surface); border: 1px solid var(--hair); text-align: center;
         font-size: 10.5px; line-height: 1.25; min-height: 52px; display: flex; flex-direction: column; gap: 3px; }
.bp-rw em { font-style: normal; color: #e9d5ff; }
.bp-node:not(.reached) .bp-rw { opacity: .6; }

/* ================= СООБЩЕСТВО: РЕЙТИНГ, ДРУЗЬЯ, ОБМЕНЫ ================= */
.socialview { background: radial-gradient(120% 70% at 50% 0%, #0f2236 0%, var(--bg) 60%); }
.socialview > * { animation: sv-in .35s var(--out) both; }
.socialview[data-dir="back"] > * { animation-name: sv-back; }
@keyframes sv-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes sv-back { from { opacity: 0; transform: translateX(-22px); } }
.s-seg { margin-bottom: 14px; }
.s-seg button { white-space: nowrap; font-size: 13px; }
.s-seg button i { font-style: normal; display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 4px; padding: 0 4px;
                  border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 900; vertical-align: 1px; }
.s-seg button i[hidden] { display: none; }
.sv-body { display: flex; flex-direction: column; gap: 10px; }
.s-h { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 8px 0 2px; }
.s-h i { font-style: normal; font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: var(--muted); }
.s-h.dim { color: var(--muted); }
.s-wide { width: 100%; padding: 14px; border-radius: 14px; margin-top: 4px; }
.s-ava { --h: 140; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px;
         color: #fff; background: linear-gradient(140deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 40) 55% 26%));
         box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12); }
.s-ava.lg { width: 58px; height: 58px; font-size: 18px; }

/* шапка: две кнопки рядом */
#sbtn.has { animation: q-wiggle 3.2s 1.6s ease-in-out infinite; border-color: rgba(96, 165, 250, .55); }

/* профиль: вход в сообщество */
.pf-social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.pfs { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 4px; border-radius: 14px; cursor: pointer;
       border: 1px solid var(--line); background: linear-gradient(160deg, rgba(96, 165, 250, .1), var(--surface)); animation: rise .35s ease both; }
.pfs:nth-child(2) { animation-delay: .05s; background: linear-gradient(160deg, rgba(246, 215, 122, .12), var(--surface)); }
.pfs:nth-child(3) { animation-delay: .1s; background: linear-gradient(160deg, rgba(34, 197, 94, .1), var(--surface)); }
.pfs i { font-style: normal; font-size: 22px; }
.pfs b { font-size: 13.5px; } .pfs small { font-size: 10.5px; color: var(--muted); }
.pfs em { position: absolute; top: 6px; right: 8px; font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
          background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 900; display: grid; place-items: center; animation: slotpop .4s var(--spring); }
.pfs:active { transform: scale(.96); }

/* рейтинг */
.rk-season { font-size: 12.5px; color: var(--muted); text-align: center; }
.rk-season b { color: var(--text); }
.rk-podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 8px; padding: 18px 2px 0; }
.rk-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; cursor: pointer;
          animation: rise .5s var(--out) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.rk-col.p1 { animation-delay: .05s; }
.rk-nick { max-width: 100%; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-pts { font-family: var(--font-display); font-size: 12px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.rk-crown { position: absolute; top: -20px; font-size: 22px; animation: crown 2.4s ease-in-out infinite; z-index: 1; }
@keyframes crown { 50% { transform: translateY(-4px) rotate(-6deg); } }
.rk-col .s-ava.lg { box-shadow: 0 0 0 3px var(--pc), 0 8px 22px rgba(0, 0, 0, .45); }
.rk-col.p1 { --pc: #facc15; } .rk-col.p2 { --pc: #cbd5e1; } .rk-col.p3 { --pc: #d97706; }
.rk-col.p1 .s-ava.lg { width: 70px; height: 70px; font-size: 21px; animation: p1-glow 2.6s ease-in-out infinite; }
@keyframes p1-glow { 50% { box-shadow: 0 0 0 3px var(--pc), 0 0 26px rgba(250, 204, 21, .55); } }
.rk-bar { width: 100%; height: 0; margin-top: 6px; border-radius: 12px 12px 4px 4px; display: grid; place-items: start center; overflow: hidden;
          background: linear-gradient(180deg, color-mix(in srgb, var(--pc) 45%, transparent), color-mix(in srgb, var(--pc) 8%, var(--surface)));
          border: 1px solid color-mix(in srgb, var(--pc) 45%, transparent); border-bottom: 0;
          transition: height .9s var(--spring); transition-delay: calc(var(--i) * 120ms + 200ms); }
.rk-bar em { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 26px; padding-top: 6px; color: var(--pc);
             text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.rk-col.p1 .rk-bar.up { height: 96px; } .rk-col.p2 .rk-bar.up { height: 70px; } .rk-col.p3 .rk-bar.up { height: 52px; }
.rk-col.me .rk-nick { color: #86efac; }
.rk-me { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; border: 1px solid rgba(34, 197, 94, .4);
         background: linear-gradient(135deg, rgba(34, 197, 94, .14), var(--surface) 70%); animation: rise .45s .35s ease both; }
.rk-me-pos { flex: none; min-width: 74px; padding: 0 4px; text-align: center; display: flex; flex-direction: column; }
.rk-me-pos small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.rk-me-pos b { font-family: var(--font-display); font-size: 24px; line-height: 1.1; color: #86efac; }
.rk-me-pos em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.rk-me-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rk-me-pts { font-size: 13px; color: var(--muted); } .rk-me-pts b { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.rk-me-main > span { font-size: 12px; color: var(--gold-2); }
.rk-bd { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.rk-bd i { font-style: normal; font-size: 10.5px; padding: 2px 7px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: #cbd5e1; }
.rk-bd i b { color: var(--text); }
.rk-list { display: flex; flex-direction: column; gap: 6px; }
.rk-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair);
          cursor: pointer; animation: rise .3s ease both; animation-delay: calc(var(--i) * 25ms); }
.rk-row em { flex: none; width: 30px; text-align: center; font-style: normal; font-weight: 900; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rk-row b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-row span { flex: none; font-family: var(--font-display); font-size: 12.5px; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.rk-row.me { border-color: rgba(34, 197, 94, .5); background: linear-gradient(90deg, rgba(34, 197, 94, .14), var(--surface)); }
.rk-row:active, .fr-row:active { transform: scale(.98); }

/* друзья */
.fr-add { display: flex; gap: 8px; }
.fr-add input { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface);
                color: var(--text); font: inherit; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.fr-add input:focus { border-color: rgba(34, 197, 94, .6); box-shadow: 0 0 0 3px rgba(34, 197, 94, .15); }
.fr-add .btn { flex: none; }
.fr-list { display: flex; flex-direction: column; gap: 6px; }
.fr-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair);
          cursor: pointer; animation: rise .3s ease both; animation-delay: calc(var(--i) * 35ms);
          transition: transform .35s var(--spring), opacity .35s ease, background .3s ease; }
.fr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fr-main b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-main span { font-size: 11.5px; color: var(--muted); }
.fr-go { flex: none; color: var(--muted); font-size: 20px; padding: 0 4px; }
.fr-act { flex: none; display: flex; gap: 6px; }
.fr-act .btn { width: 40px; height: 36px; padding: 0; border-radius: 11px; }
.fr-row.fr-yes { background: rgba(34, 197, 94, .2); transform: scale(1.03); }
.fr-row.fr-no { opacity: 0; transform: translateX(-30px); }

/* обмены */
.td-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 18px; background: var(--surface);
           border: 1px solid var(--line); animation: rise .35s ease both; animation-delay: calc(var(--i) * 60ms);
           transition: transform .4s var(--spring), opacity .35s ease; }
.td-card.received { border-color: rgba(246, 215, 122, .5); background: linear-gradient(160deg, rgba(246, 215, 122, .1), var(--surface) 55%); }
.td-head { display: flex; align-items: center; gap: 8px; }
.td-head b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.td-head small { flex: none; font-size: 11px; color: var(--muted); }
.td-role { flex: none; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.td-card.received .td-role { background: rgba(246, 215, 122, .18); color: var(--gold-2); }
.td-side small { font-size: 11px; color: var(--muted); }
.td-side.get small { color: #86efac; }
.td-strip { display: flex; gap: 5px; margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.td-th { --rc: var(--r-common); position: relative; flex: none; width: 44px; aspect-ratio: 4 / 5; border-radius: 7px; overflow: hidden;
         box-shadow: 0 0 0 1.5px var(--rc); animation: slotpop .4s var(--spring) both; animation-delay: calc(var(--i) * 40ms + 120ms); }
.td-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.td-th em { position: absolute; right: 2px; bottom: 2px; font-style: normal; font-size: 9.5px; font-weight: 900; padding: 0 4px; border-radius: 5px; background: rgba(0, 0, 0, .7); }
.td-more { flex: none; width: 44px; display: grid; place-items: center; border-radius: 7px; background: rgba(255, 255, 255, .06); font-size: 12px; font-weight: 800; color: var(--muted); }
.td-swap { align-self: center; font-size: 16px; color: var(--muted); margin: -4px 0; animation: swap-bob 2s ease-in-out infinite; }
@keyframes swap-bob { 50% { transform: translateY(2px) rotate(180deg); } }
.td-btns { display: flex; gap: 8px; margin-top: 4px; }
.td-btns .btn { flex: 1; }
.td-card.td-wait { opacity: .7; pointer-events: none; }
.td-card.td-done { transform: scale(1.03); box-shadow: 0 0 0 2px var(--gold-2), 0 0 30px rgba(246, 215, 122, .45); }
.td-card.td-gone { opacity: 0; transform: translateX(40px) scale(.96); }

/* профиль игрока */
.pl-friend { flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 10px; border-radius: 99px; color: #86efac;
             background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .4); }
.pl-hero .pf-ava { animation: slotpop .5s var(--spring) both; }
.pl-acts { display: flex; gap: 8px; margin: 0 0 12px; animation: rise .35s .1s ease both; }
.pl-acts .btn { flex: 1; padding: 12px 8px; }
.pl-acts .pl-more { flex: none; width: 46px; }
.pl-rel.self { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.pitch.ro { aspect-ratio: 1 / 1.05; touch-action: auto; margin-bottom: 8px; }
.pitch.ro .slot { animation: slotpop .45s var(--spring) both; animation-delay: calc(var(--i) * 45ms + 200ms); }
.btn.danger { color: #fff; background: linear-gradient(180deg, #f87171, #dc2626); box-shadow: 0 6px 16px rgba(220, 38, 38, .35); }
.sheet-note { color: var(--muted); font-size: 13px; margin: 6px 0 14px; }
.sheet-btns { display: flex; gap: 8px; }
.sheet-btns .btn { flex: 1; padding: 13px; }

/* конструктор сделки */
.deal-title { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 12px; }
.deal-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px;
                border: 2px solid var(--line); color: var(--muted); transition: all .3s var(--spring); }
.deal-steps i.on { border-color: var(--gold-2); color: #2a1d00; background: var(--gold-2); transform: scale(1.12); box-shadow: 0 0 14px rgba(246, 215, 122, .5); }
.deal-steps i.done { border-color: var(--green); background: var(--green); color: #052e16; }
.deal-steps b { width: 26px; height: 2px; background: var(--line); }
.deal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.deal-head b { font-size: 16px; } .deal-head span { font-size: 11.5px; color: var(--muted); }
.deal-tray { position: sticky; top: -10px; z-index: 3; display: flex; gap: 6px; align-items: center; min-height: 64px; padding: 8px; margin-bottom: 8px;
             overflow-x: auto; scrollbar-width: none; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .15);
             background: rgba(10, 17, 32, .85); backdrop-filter: blur(12px); transition: border-color .3s ease; }
.deal-tray.on { border-style: solid; border-color: rgba(246, 215, 122, .45); }
.dt-empty { width: 100%; text-align: center; font-size: 12px; color: var(--muted); }
.dt-card { --rc: var(--r-common); position: relative; flex: none; width: 38px; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 6px; overflow: hidden;
           cursor: pointer; box-shadow: 0 0 0 1.5px var(--rc); animation: slotpop .35s var(--spring) both; background: none; }
.dt-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dt-card em { position: absolute; right: 1px; bottom: 1px; font-style: normal; font-size: 9px; font-weight: 900; padding: 0 3px; border-radius: 4px; background: rgba(0, 0, 0, .75); color: #fff; }
.deal-filter input { width: 100%; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
                     color: var(--text); font: inherit; font-size: 14px; outline: none; margin-bottom: 8px; }
.deal-filter input:focus { border-color: rgba(246, 215, 122, .5); }
.deal-bar { position: sticky; bottom: calc(-24px - var(--safe-bottom)); z-index: 3; display: flex; align-items: center; gap: 10px; margin: 12px -16px 0;
            padding: 12px 16px calc(14px + var(--safe-bottom)); background: rgba(10, 17, 32, .9); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); }
.deal-bar > div { flex: 1; display: flex; flex-direction: column; } .deal-bar b { font-size: 14px; } .deal-bar span { font-size: 11px; color: var(--muted); }
.deal-bar .btn { padding: 12px 18px; }
.deal-fly { position: fixed; z-index: 45; border-radius: 8px; pointer-events: none; object-fit: cover;
            transition: transform .5s cubic-bezier(.5, -0.2, .3, 1), opacity .5s ease; }
.deal-review { display: flex; flex-direction: column; gap: 8px; }
.dr-side { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); animation: rise .35s ease both; }
.dr-side:last-child { animation-delay: .12s; border-color: rgba(34, 197, 94, .4); }
.deal-review.gift .dr-side { border-color: rgba(246, 215, 122, .45); }
.dr-side small { font-size: 12px; font-weight: 800; color: var(--muted); }
.dr-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.dr-card { --rc: var(--r-common); position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1.5px var(--rc); background: var(--surface-2);
           animation: slotpop .4s var(--spring) both; animation-delay: calc(var(--i) * 45ms + 150ms); }
.dr-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.dr-card em { position: absolute; right: 3px; top: 3px; font-style: normal; font-size: 10px; font-weight: 900; padding: 0 4px; border-radius: 5px; background: rgba(0, 0, 0, .7); }
.dr-card span { display: block; font-size: 9.5px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #cbd5e1; }
.dr-mid { align-self: center; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; margin: -18px 0; z-index: 1;
          background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); animation: swap-bob 2s ease-in-out infinite; }
.deal-warn { padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.35; color: #fde68a;
             background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); animation: rise .35s .2s ease both; }

/* сцены «обмен» и «подарок» */
.packview.deal-fx .rays { opacity: 1; }
.packview.deal-fx { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.swap-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; height: 220px; }
.sw-col { position: relative; width: 96px; height: 130px; }
.sw-card { --rc: var(--r-common); position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px var(--rc), 0 10px 26px rgba(0, 0, 0, .5);
           transform: translateX(calc(var(--i) * 5px)) rotate(calc(var(--i) * 4deg - 6deg)); }
.sw-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-col.l .sw-card { animation: sw-left 1.6s cubic-bezier(.6, 0, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
.sw-col.r .sw-card { animation: sw-right 1.6s cubic-bezier(.6, 0, .2, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes sw-left { 0% { opacity: 0; translate: -60px 0; } 20% { opacity: 1; translate: 0 0; }
                     55% { translate: 94px -34px; scale: .8; } 100% { translate: 188px 0; scale: 1; } }
@keyframes sw-right { 0% { opacity: 0; translate: 60px 0; } 20% { opacity: 1; translate: 0 0; }
                      55% { translate: -94px 34px; scale: .8; } 100% { translate: -188px 0; scale: 1; } }
.sw-core { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 28px;
           background: radial-gradient(circle, rgba(246, 215, 122, .35), transparent 70%); animation: sw-core 1.6s ease both; }
@keyframes sw-core { 0%, 40% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.35); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.gift-box { position: relative; width: 150px; height: 170px; display: grid; place-items: end center; }
.gb-body { width: 120px; height: 92px; border-radius: 10px; background: linear-gradient(180deg, #ef4444, #b91c1c);
           box-shadow: inset 0 0 0 0 transparent, 0 14px 30px rgba(0, 0, 0, .5); position: relative; animation: gb-drop .6s var(--spring) both; }
.gb-body::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%); background: var(--gold-2); }
.gb-lid { position: absolute; left: 50%; bottom: 88px; width: 134px; height: 28px; margin-left: -67px; border-radius: 8px; z-index: 2;
          background: linear-gradient(180deg, #f87171, #dc2626); animation: gb-lid 1.4s .3s cubic-bezier(.5, 0, .2, 1) both; }
.gb-lid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%); background: var(--gold-2); }
.gb-lid::after { content: "🎀"; position: absolute; left: 50%; top: -24px; transform: translateX(-50%); font-size: 30px; }
@keyframes gb-drop { from { transform: translateY(-80px) scale(.6); opacity: 0; } }
@keyframes gb-lid { 0%, 25% { transform: none; } 60% { transform: translate(-30px, -70px) rotate(-28deg); } 100% { transform: translate(-60px, 40px) rotate(-60deg); opacity: 0; } }
.gb-card { --rc: var(--r-common); position: absolute; left: 50%; bottom: 40px; width: 62px; aspect-ratio: 4 / 5; margin-left: -31px; border-radius: 8px; overflow: hidden;
           box-shadow: 0 0 0 2px var(--rc), 0 8px 20px rgba(0, 0, 0, .5); z-index: 1; opacity: 0;
           animation: gb-fly 1s cubic-bezier(.2, .9, .3, 1.2) both; animation-delay: calc(.75s + var(--i) * 110ms); }
.gb-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes gb-fly { from { opacity: 0; transform: translateY(30px) scale(.4); }
                    to { opacity: 1; transform: translate(calc((var(--i) - (var(--n) - 1) / 2) * 46px), -120px) rotate(calc((var(--i) - (var(--n) - 1) / 2) * 9deg)); } }
.packview.deal-fx .pv-title { animation: rise .45s 1.1s ease both; }
.packview.deal-fx .mv-note { animation: rise .45s 1.25s ease both; text-align: center; padding: 0 24px; }
.packview.deal-fx .pv-actions { animation: rise .35s ease both; }
@media (prefers-reduced-motion: reduce) {
  .sw-card, .gb-card, .gb-lid, .gb-body, .sw-core, .rk-bar { animation: none !important; transition: none !important; }
  .gb-card { opacity: 1; }
}

/* ================= КАРТОЧКА И ТУГРИКИ ================= */
.single-banner { padding: 11px 14px; margin-top: 0; border-color: rgba(96, 165, 250, .35);
                 background: linear-gradient(120deg, #0f2236 0%, #13203a 55%, #1c1636 100%); }
.single-banner::before { background: conic-gradient(from 0deg, transparent 0 70%, rgba(147, 197, 253, .16) 80%, transparent 90%); animation-duration: 8s; }
.single-banner .pack-info b { font-size: 14.5px; }
.sb-card { position: relative; flex: none; width: 40px; height: 52px; border-radius: 8px; display: grid; place-items: center;
           background: linear-gradient(160deg, #3b82f6, #1e3a8a); box-shadow: 0 0 0 2px rgba(147, 197, 253, .6), 0 6px 14px rgba(0, 0, 0, .4); }
.sb-card i { font-style: normal; font-family: var(--font-display); font-weight: 800; color: #dbeafe; font-size: 18px; }
.single-banner.ready .sb-card { animation: sb-flip 3.2s ease-in-out infinite; }
@keyframes sb-flip { 0%, 70%, 100% { transform: rotateY(0); } 80% { transform: rotateY(180deg) scale(1.08); } 90% { transform: rotateY(360deg); } }

/* падение карточки */
.packview.single-drop { perspective: 1000px; }
.drop-card { position: relative; width: 150px; aspect-ratio: 4 / 5; border-radius: 14px; transform-style: preserve-3d;
             animation: dc-fall 1.1s cubic-bezier(.3, 1.25, .5, 1) both, dc-spin 1.1s linear both; }
.dc-in { position: absolute; inset: 0; border-radius: 14px; display: grid; place-content: center; text-align: center; gap: 2px;
         background: linear-gradient(160deg, var(--green) 0%, #0f5132 55%, #0b2e1f 100%);
         box-shadow: 0 0 0 3px rgba(246, 215, 122, .7), 0 20px 40px rgba(0, 0, 0, .55); }
.dc-in b { font-family: var(--font-display); font-size: 34px; color: var(--gold-2); }
.dc-in span { font-size: 10px; letter-spacing: 2px; color: #bbf7d0; }
@keyframes dc-fall { from { transform: translateY(-75vh) rotate(-25deg) scale(.6); } }
@keyframes dc-spin { from { rotate: y 900deg; } }
.drop-shadow { width: 120px; height: 14px; margin-top: -6px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .55), transparent 70%);
               animation: ds-in 1.1s ease both; }
@keyframes ds-in { from { transform: scale(.2); opacity: 0; } }
.packview.single-drop.landed .drop-card { animation: dc-hum .12s linear infinite; }
.packview.single-drop.landed .dc-in { transition: box-shadow .4s ease; }
.packview.glow-2 .dc-in { box-shadow: 0 0 0 3px var(--r-rare), 0 0 40px var(--r-rare); }
.packview.glow-3 .dc-in { box-shadow: 0 0 0 3px var(--r-epic), 0 0 55px var(--r-epic); }
.packview.glow-4 .dc-in { box-shadow: 0 0 0 3px var(--r-legendary), 0 0 80px var(--r-legendary); }
@keyframes dc-hum { 50% { transform: translate(1px, -1px) rotate(.6deg); } }
.packview.single-drop.landed .rays { opacity: 1; }
.packview.solo .pv-cards { grid-template-columns: 1fr; width: min(62vw, 250px); }
.packview.solo .pv-cards .pc { grid-column: auto; }
.packview.solo .pc .cap { font-size: 13.5px; bottom: -24px; }

/* тугрик в инвентаре */
.boost.tugrik { border-color: rgba(246, 215, 122, .5); background: linear-gradient(160deg, rgba(246, 215, 122, .12), var(--surface)); }
.boost.tugrik .bz { animation: trophy-bob 2.4s ease-in-out infinite; }
/* выбор карты за тугрик */
.tg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tg-head > div:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tg-head b { font-size: 16px; } .tg-head span { font-size: 12px; color: var(--muted); }
.tg-head em { font-style: normal; font-weight: 900; color: var(--gold-2); }
.tg-coin { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
           background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold) 60%, #8a6a14); box-shadow: 0 0 0 2px var(--rc), 0 6px 18px rgba(229, 184, 79, .4);
           animation: tg-spin 4s ease-in-out infinite; }
@keyframes tg-spin { 0%, 80%, 100% { transform: rotateY(0); } 90% { transform: rotateY(360deg); } }
.tg-q { width: 100%; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
        color: var(--text); font: inherit; font-size: 14px; outline: none; margin-bottom: 10px; }
.tg-clubs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 52vh; overflow-y: auto; }
.tg-club { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 11px; border-radius: 12px; cursor: pointer; text-align: left;
           border: 1px solid var(--line); background: var(--surface); animation: rise .3s ease both; animation-delay: calc(var(--i) * 18ms); }
.tg-club span { font-size: 13px; font-weight: 700; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-club em { font-style: normal; font-size: 11px; color: #86efac; } .tg-club small { font-size: 11px; color: var(--muted); }
.tg-club:active { transform: scale(.97); }
.tg-back { border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; padding: 4px 0 10px; cursor: pointer; }
.tg-grid { max-height: 56vh; overflow-y: auto; padding: 2px; }
.ws-card em.tg-new { background: rgba(34, 197, 94, .85); color: #052e16; }
.tg-pick { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-bottom: 14px; }
.tg-big { --rc: var(--r-common); width: 160px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; margin-bottom: 8px;
          box-shadow: 0 0 0 2px var(--rc), 0 0 30px color-mix(in srgb, var(--rc) 50%, transparent); animation: slotpop .45s var(--spring) both; }
.tg-big img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-pick b { font-size: 16px; } .tg-pick span { font-size: 12.5px; color: var(--muted); }
.tg-pick em { font-style: normal; font-size: 12.5px; color: var(--muted); } .tg-pick em.fresh { color: #86efac; font-weight: 800; }
.tg-coin-fly { position: absolute; left: 50%; top: 18%; font-size: 44px; z-index: 3; pointer-events: none; animation: tg-fly 1s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes tg-fly { 0% { transform: translate(-50%, -40px) scale(.6) rotateY(0); opacity: 0; } 30% { opacity: 1; }
                    100% { transform: translate(-50%, 190px) scale(.2) rotateY(720deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drop-card, .tg-coin-fly, .tg-coin, .sb-card { animation: none !important; } }

/* ================= SBC ================= */
.ws-seg button { font-size: 12.5px; padding: 8px 2px; white-space: nowrap; }
.sbc-res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 14px;
           background: rgba(96, 165, 250, .1); border: 1px solid rgba(96, 165, 250, .35); font-size: 12.5px; }
.sbc-res span { flex: 1; } .sbc-res .btn { padding: 8px 10px; font-size: 12.5px; }
.sbc-list { display: flex; flex-direction: column; gap: 8px; }
.sbc-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; cursor: pointer; text-align: left; color: inherit;
            border: 1px solid rgba(20, 184, 166, .35); background: linear-gradient(135deg, rgba(20, 184, 166, .12), var(--surface) 60%);
            animation: rise .35s ease both; animation-delay: calc(var(--i) * 60ms); }
.sbc-item:active { transform: scale(.98); }
.sbc-art { position: relative; flex: none; width: 62px; aspect-ratio: 4 / 5; border-radius: 9px; overflow: hidden; display: grid; place-items: center;
           background: var(--surface-2); box-shadow: 0 0 0 2px var(--r-sbc), 0 6px 16px rgba(0, 0, 0, .4); font-size: 28px; }
.sbc-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sbc-art em { position: absolute; right: 3px; bottom: 3px; font-style: normal; font-size: 11px; font-weight: 900; min-width: 18px; height: 18px;
              border-radius: 99px; display: grid; place-items: center; background: var(--r-sbc); color: #042f2e; }
.sbc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sbc-meta b { font-size: 14.5px; } .sbc-meta span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbc-meta small { font-size: 12px; color: #5eead4; font-weight: 700; }
.sbc-pips { display: flex; gap: 3px; }
.sbc-pips i { flex: 1; max-width: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.sbc-pips i.on { background: linear-gradient(90deg, #14b8a6, #5eead4); box-shadow: 0 0 6px rgba(94, 234, 212, .5);
                 animation: pip-in .4s var(--spring) both; animation-delay: calc(var(--i) * 50ms + 150ms); }
@keyframes pip-in { from { transform: scaleX(0); } }
.sbc-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.sbc-card { position: relative; flex: none; width: 104px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
            font-size: 44px; background: var(--surface-2); box-shadow: 0 0 0 2px var(--r-sbc), 0 0 26px rgba(20, 184, 166, .45);
            animation: portrait-in .6s var(--out) both; }
.sbc-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sbc-card::after { content: ""; position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .45; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(94, 234, 212, .6) 45%, rgba(147, 197, 253, .45) 52%, transparent 66%) 150% 0 / 300% 100% no-repeat;
  animation: holo-sweep 3.4s ease-in-out infinite; }
.sbc-hinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sbc-hinfo small { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: #5eead4; }
.sbc-hinfo b { font-family: var(--font-display); font-size: 17px; }
.sbc-hinfo span { font-size: 13px; color: var(--muted); } .sbc-hinfo em { font-style: normal; color: #5eead4; font-weight: 800; }
.sbc-desc { font-size: 12.5px; color: #cbd5e1; line-height: 1.4; margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.sbc-reqs .chip em { font-style: normal; font-size: 11px; opacity: .75; margin-left: 2px; }
.sbc-reqs .chip.full { border-color: rgba(94, 234, 212, .55); color: #99f6e4; }
.sbc-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.sbc-sub .btn { padding: 7px 11px; font-size: 12.5px; }
.sbc-pitch { touch-action: auto; }
.sbc-pitch .slot { cursor: pointer; animation: slotpop .4s var(--spring) both; animation-delay: calc(var(--i) * 35ms); }
.sbc-pitch .slot.locked::after { content: "🔒"; position: absolute; right: -6px; top: -8px; font-size: 13px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.sbc-bar { margin-top: 10px; }
.sbc-sh { font-size: 17px; margin: 4px 0 10px; } .sbc-sh small { font-size: 12px; color: var(--muted); font-weight: 600; }
.sbc-cur { display: flex; gap: 8px; margin-bottom: 10px; } .sbc-cur .btn { flex: 1; padding: 10px 8px; font-size: 13px; }
.sbc-cands { max-height: 55vh; overflow-y: auto; }
.sbc-cands .lvl-btns { display: flex; gap: 6px; } .sbc-cands .lvl-btns .btn { padding: 8px 10px; font-size: 12.5px; }

/* сборка: карты горят и стягиваются в SBC-карту */
.packview.sbc-burn { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.packview.sbc-burn .rays { opacity: .6; }
.burn-stage { position: relative; width: 300px; height: 300px; }
.burn-card { --rc: var(--r-common); position: absolute; left: 50%; top: 50%; width: 46px; aspect-ratio: 4 / 5; margin: -29px 0 0 -23px; border-radius: 6px;
             overflow: hidden; box-shadow: 0 0 0 1.5px var(--rc); transform: rotate(var(--a)) translateY(-120px) rotate(calc(-1 * var(--a)));
             animation: burn-in .5s var(--out) both, burn-suck 1.5s .6s cubic-bezier(.6, 0, .4, 1) forwards;
             animation-delay: calc(var(--i) * 25ms), calc(.6s + var(--i) * 30ms); }
.burn-card img { width: 100%; height: 100%; object-fit: cover; display: block; animation: burn-fire 1.5s .6s ease-in forwards; }
@keyframes burn-in { from { opacity: 0; transform: rotate(var(--a)) translateY(-40px) rotate(calc(-1 * var(--a))) scale(.4); } }
@keyframes burn-suck { 60% { filter: brightness(1.6); } 100% { transform: rotate(calc(var(--a) + 200deg)) translateY(0) scale(.2); opacity: 0; } }
@keyframes burn-fire { 40% { filter: sepia(1) saturate(4) hue-rotate(-20deg) brightness(1.3); } 100% { filter: brightness(3) blur(2px); } }
.burn-core { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%;
             background: radial-gradient(circle, #fff, #5eead4 35%, rgba(20, 184, 166, 0) 70%); animation: core-grow 2.1s ease-in forwards; }
@keyframes core-grow { 0% { transform: scale(.2); opacity: .3; } 85% { transform: scale(3.4); opacity: 1; } 100% { transform: scale(5); opacity: .9; } }
.packview.sbc-done .forged-card { --rc: var(--r-sbc); animation: sbc-land .7s var(--spring) both; }
@keyframes sbc-land { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.sbc-lv { position: absolute; right: 6px; bottom: 6px; min-width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center;
          font-family: var(--font-display); font-weight: 800; font-size: 15px; background: var(--r-sbc); color: #042f2e;
          box-shadow: 0 0 16px rgba(94, 234, 212, .8); animation: slotpop .5s .5s var(--spring) both; }
.sbc-stats { display: flex; gap: 8px; margin-top: 8px; animation: rise .4s .4s ease both; }
.sbc-stats div { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); text-align: center; display: flex; flex-direction: column; }
.sbc-stats small { font-size: 10.5px; color: var(--muted); } .sbc-stats b { font-family: var(--font-display); font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .burn-card, .burn-card img, .burn-core { animation: none !important; } }

/* ================= «ВЫЗОВ» ================= */
.m-mode button { white-space: nowrap; font-size: 13px; }
.vz-hero { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; margin-bottom: 10px;
           background: linear-gradient(130deg, rgba(239, 68, 68, .22), rgba(245, 158, 11, .12) 55%, var(--surface));
           border: 1px solid rgba(251, 146, 60, .45); animation: rise .4s ease both; }
.vz-flame { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 30px;
            background: radial-gradient(circle at 50% 70%, rgba(251, 146, 60, .5), transparent 70%); animation: flame 1.6s ease-in-out infinite; }
.vz-hinfo { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vz-hinfo b { font-family: var(--font-display); font-size: 16px; }
.vz-hinfo span { font-size: 12.5px; color: #fed7aa; } .vz-hinfo em { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--gold-2); }
.vz-train { display: flex; flex-direction: column; gap: 6px; }
.vz-tr { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 14px; background: var(--surface);
         border: 1px solid var(--hair); animation: rise .3s ease both; animation-delay: calc(var(--i) * 60ms); }
.vz-tr.go { border-color: rgba(34, 197, 94, .55); background: linear-gradient(90deg, rgba(34, 197, 94, .12), var(--surface)); }
.vz-tr.done { border-color: rgba(246, 215, 122, .5); }
.vz-tri { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255, 255, 255, .05); }
.vz-trm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vz-trm b { font-size: 13.5px; } .vz-trm b small { color: var(--muted); font-weight: 600; } .vz-trm span { font-size: 12px; color: var(--muted); }
.vz-tr .btn { padding: 8px 12px; } .vz-tr > em { font-style: normal; font-weight: 900; color: var(--gold-2); }
.vz-match { display: flex; flex-direction: column; gap: 10px; padding: 14px; margin: 12px 0 4px; border-radius: 18px; background: var(--surface);
            border: 1px solid var(--line); text-align: center; }
.vz-match > div { display: flex; flex-direction: column; gap: 2px; } .vz-match b { font-size: 15px; } .vz-match span { font-size: 12.5px; color: var(--muted); }
.vz-match.go { border-color: rgba(246, 215, 122, .55); box-shadow: 0 0 22px rgba(246, 215, 122, .15); }
.vz-match .btn.big { width: 100%; padding: 15px; font-size: 16px; border-radius: 16px; }
.vz-tip { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--muted); font-family: var(--font); }
.vz-pitch { aspect-ratio: 1 / 1.1; touch-action: auto; margin-bottom: 6px; }
.vz-p { position: absolute; width: 17%; transform: translate(-50%, -50%); cursor: pointer; animation: slotpop .45s var(--spring) both;
        animation-delay: calc(var(--i) * 40ms + 100ms); }
.vz-c { position: relative; aspect-ratio: 4 / 5; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 1px; padding: 3px; overflow: hidden; color: #fff; text-align: center;
        background-color: var(--c, #9ca3af);
        background-image: linear-gradient(165deg, color-mix(in srgb, var(--c, #9ca3af) 85%, #fff 10%), color-mix(in srgb, var(--c, #9ca3af) 55%, #000));
        box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7), 0 6px 14px rgba(0, 0, 0, .45); }
.vz-c::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, .35); }
.vz-c b { font-size: 10px; font-weight: 900; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .45); }
.vz-c span { font-size: 9px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-c em { font-style: normal; font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 1; }
.vz-p .vz-c::before { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p); background: #fff; z-index: 1; }
.vz-bon { position: absolute; top: -7px; right: -8px; font-style: normal; font-size: 9.5px; font-weight: 900; padding: 1px 5px; border-radius: 99px;
          background: #22c55e; color: #052e16; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.vz-p.up .vz-c { animation: vz-up .6s var(--spring); }
@keyframes vz-up { 40% { transform: scale(1.25); filter: brightness(1.6); } }
.vz-legend { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 10.5px; color: var(--muted); margin-bottom: 10px; }
.vz-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--c); margin-right: 4px; vertical-align: -1px; }
.vz-up { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.vz-c.big { flex: none; width: 84px; } .vz-c.big b { font-size: 13px; } .vz-c.big span { font-size: 10px; } .vz-c.big em { font-size: 24px; }
.vz-upi { display: flex; flex-direction: column; gap: 3px; } .vz-upi b { font-size: 16px; } .vz-upi span { font-size: 12.5px; color: var(--muted); }
.vz-upi em { font-style: normal; font-size: 13px; color: #86efac; font-weight: 800; }
.vz-tab { display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; margin-bottom: 6px; }
.vz-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface); font-size: 13px;
          animation: rise .25s ease both; animation-delay: calc(var(--i) * 20ms); }
.vz-row em { width: 26px; text-align: center; font-style: normal; font-weight: 900; color: var(--muted); }
.vz-row b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-row span { font-size: 11px; color: var(--muted); } .vz-row i { font-style: normal; font-weight: 900; min-width: 26px; text-align: right; color: var(--gold-2); }
.vz-row.in { border-left: 3px solid rgba(34, 197, 94, .7); } .vz-row.me { background: rgba(34, 197, 94, .14); }
.vz-round { margin-bottom: 8px; } .vz-round small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.vz-tie { padding: 7px 10px; border-radius: 10px; background: var(--surface); font-size: 12.5px; margin-bottom: 4px; }
.vz-tie.mine { border: 1px solid rgba(246, 215, 122, .55); }
.vz-champ { text-align: center; font-weight: 900; color: var(--gold-2); margin: 6px 0 10px; }
.vz-rew { display: flex; flex-direction: column; gap: 4px; }
.vz-rew div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--surface); font-size: 12px; }
.vz-rew b { font-weight: 700; } .vz-rew span { color: var(--gold-2); text-align: right; }

/* тренировка */
.packview.vz-tview { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 12px;
                     padding: calc(14px + var(--safe-top)) 16px calc(20px + var(--safe-bottom)); }
.packview.vz-tview > * { flex: none; }
.packview.vz-tview { overflow-y: auto; }
.vz-thead { display: flex; align-items: baseline; gap: 10px; } .vz-thead b { font-family: var(--font-display); font-size: 18px; flex: 1; }
.vz-thead span { font-size: 12px; color: var(--muted); } .vz-thead em { font-style: normal; font-weight: 900; color: #86efac; }
.vz-dots { display: flex; gap: 4px; } .vz-dots i { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.vz-dots i.done { background: #22c55e; } .vz-dots i.now { background: var(--gold-2); animation: go-pulse 1.4s ease-in-out infinite; }
.vz-scene { position: relative; height: 120px; border-radius: 18px; overflow: hidden;
            background: radial-gradient(120% 90% at 50% 100%, #1f7a43 0%, #145a31 60%, #0e4426 100%);
            box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2); }
.vz-scene::before { content: ""; position: absolute; left: 30%; right: 30%; top: 10px; height: 52px; border: 3px solid rgba(255, 255, 255, .8);
                    border-bottom: 0; border-radius: 4px 4px 0 0; }
.l-mid .vz-scene::before { display: none; }
.vz-ball { position: absolute; left: 50%; bottom: 10px; font-size: 30px; transform: translateX(-50%); transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.vz-scene.hit .vz-ball { transform: translate(-50%, -62px) scale(.7) rotate(540deg); }
.l-def .vz-scene.hit .vz-ball { transform: translate(-50%, -40px) scale(1.2); }
.l-mid .vz-scene.hit .vz-ball { transform: translate(110px, -30px) scale(.8) rotate(360deg); }
.vz-scene.miss .vz-ball { transform: translate(90px, -70px) scale(.6) rotate(-300deg); opacity: .3; }
.vz-fx { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 30px;
         color: #fff; text-shadow: 0 4px 18px rgba(0, 0, 0, .6); opacity: 0; transform: scale(.6); pointer-events: none; }
.vz-fx.go { animation: vz-fx .7s var(--spring) forwards; }
@keyframes vz-fx { to { opacity: 1; transform: scale(1); } }
.vz-q { text-align: center; display: flex; flex-direction: column; gap: 6px; padding: 6px 0; }
.vz-q small { font-size: 11.5px; color: var(--muted); }
.vz-q b { font-family: var(--font-display); font-size: 26px; letter-spacing: .5px; animation: rise .35s ease both; }
.vz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vz-o { padding: 16px 4px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
        font: inherit; font-family: var(--font-display); font-size: 20px; font-weight: 700; animation: slotpop .35s var(--spring) both;
        animation-delay: calc(var(--i) * 30ms); transition: background .2s, border-color .2s, transform .15s; }
.vz-o:active { transform: scale(.94); }
.vz-o.ok { background: rgba(34, 197, 94, .3); border-color: #22c55e; }
.vz-o.bad { background: rgba(239, 68, 68, .3); border-color: #ef4444; animation: vz-shake .4s ease; }
@keyframes vz-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.vz-result { margin: auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.vz-result .gauge { width: 120px; height: 120px; } .vz-result .gauge b { font-size: 26px; }

/* ================= КОСМЕТИКА 08.10.2026 ================= */
/* подпись под ником — одной строкой; кнопки шапки компактнее */
.top-r { gap: 6px; }
.topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
.me { gap: 8px; }
.coins { padding: 6px 10px; font-size: 13.5px; }
.sub { font-size: 12px; }
.q-btn { width: 34px; height: 34px; font-size: 17px; }
.sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* пак и карточка — две плитки рядом, первый экран не съеден */
#pack-slot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
#pack-slot:empty { display: none; }
#pack-slot .pack-banner { flex-direction: column; align-items: stretch; gap: 8px; margin: 0; padding: 12px; min-width: 0; }
#pack-slot .pack-banner > .pack-mini, #pack-slot .pack-banner > .sb-card { width: 38px; height: 48px; font-size: 13px; }
#pack-slot .pack-info b { font-size: 14px; line-height: 1.2; }
#pack-slot .pack-info b em { font-style: normal; display: block; font-family: var(--font-display); font-size: 15px; color: var(--gold-2);
                             font-variant-numeric: tabular-nums; margin-top: 2px; }
#pack-slot .single-banner .pack-info b em { color: #93c5fd; }
#pack-slot .pack-info span { display: block; font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
#pack-slot .pack-banner .btn { width: 100%; padding: 9px 8px; font-size: 13.5px; }
#pack-slot .pack-banner:not(:has(.btn)) .pack-info { margin-top: auto; }
/* название клуба читается и на светлой обложке */
.club .body::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160%; z-index: -1; pointer-events: none;
                      background: linear-gradient(180deg, transparent, rgba(8, 13, 25, .82) 55%); }
.club .name { text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }

/* инвентарь — компактные плитки */
.boost-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; }
button.boost { font: inherit; color: inherit; cursor: pointer; text-align: center; align-items: center; justify-content: flex-start;
               gap: 4px; padding: 10px 6px 9px; background: var(--surface); border: 1px solid var(--line); }
button.boost:active { transform: scale(.95); }
.boost .bz { font-size: 28px; margin: 0 auto; }
.boost .bn { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 10.5px; font-weight: 900; color: var(--gold-2);
             padding: 1px 6px; border-radius: 99px; background: rgba(0, 0, 0, .35); }
.boost b { font-size: 11.5px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.boost .b-go { position: absolute; top: 8px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
               box-shadow: 0 0 8px #22c55e; animation: go-pulse 1.6s ease-in-out infinite; }
.boost.tugrik .b-go { background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
.bs-head { display: flex; gap: 12px; align-items: center; margin: 2px 0 6px; }
.bs-ic { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 32px; background: rgba(255, 255, 255, .06); }
.bs-head b { display: block; font-size: 16px; } .bs-head span { font-size: 12px; color: var(--muted); }
/* аватарка в шапке */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ================= РЫНОК И «ИСПЫТАЙ УДАЧУ» ================= */
.mkt-seg { margin-bottom: 10px; }
.mkt-seg button { white-space: nowrap; font-size: 12.5px; }
.mkt-head { display: flex; gap: 8px; margin-bottom: 8px; }
.mkt-head > div { flex: 1; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mkt-head small { display: block; font-size: 10.5px; color: var(--muted); }
.mkt-head b { font-family: var(--font-display); font-size: 15px; font-variant-numeric: tabular-nums; }
.mkt-leg { padding: 8px 12px; border-radius: 12px; font-size: 12.5px; color: var(--muted); background: rgba(255, 255, 255, .04); margin-bottom: 4px; }
.mkt-leg.on { color: #fde68a; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .4); animation: go-pulse 2s ease-in-out infinite; }
.sell-row .btn { flex: none; padding: 8px 10px; font-size: 12.5px; white-space: nowrap; }
.mkt-bought { opacity: .55; } .mkt-done { flex: none; font-style: normal; font-size: 11.5px; color: #86efac; font-weight: 800; }
.luck-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 14px; border-radius: 20px;
             background: radial-gradient(120% 90% at 50% 0%, rgba(168, 85, 247, .25), var(--surface) 65%); border: 1px solid rgba(168, 85, 247, .45); }
.luck-card > b { font-family: var(--font-display); font-size: 19px; } .luck-card > span { font-size: 13px; color: #cbd5e1; }
.luck-ic { font-size: 44px; animation: trophy-bob 2.2s ease-in-out infinite; filter: drop-shadow(0 6px 18px rgba(168, 85, 247, .6)); }
.luck-stats { display: flex; gap: 10px; margin: 4px 0; } .luck-stats div { padding: 6px 14px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.luck-stats small { display: block; font-size: 10.5px; color: var(--muted); } .luck-stats b { font-size: 15px; }
.luck-warn { color: #fca5a5; font-size: 12px; }
.luck-card.pending { border-color: rgba(246, 215, 122, .6); }
.luck-row { display: flex; gap: 10px; justify-content: center; width: min(100%, 420px); margin-top: 30px; }
.luck-c { --rc: var(--r-common); position: relative; flex: 1; max-width: 120px; aspect-ratio: 4 / 5.8; padding: 0; border: 0; background: none; color: inherit;
          font: inherit; cursor: pointer; perspective: 900px; animation: rise .45s var(--out) both; animation-delay: calc(var(--i) * 90ms);
          transition: transform .5s var(--spring), opacity .45s ease, filter .45s ease; }
.luck-c .in { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 4 / 5; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.luck-c.open .in { transform: rotateY(180deg); }
.luck-c .side { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; backface-visibility: hidden; }
.luck-c .cover-side { display: grid; place-items: center; font-size: 34px; background: linear-gradient(160deg, #7c3aed, #3b0764);
                      box-shadow: inset 0 0 0 2px rgba(216, 180, 254, .6), 0 10px 24px rgba(0, 0, 0, .5); }
.luck-c .face-side { transform: rotateY(180deg); box-shadow: 0 0 0 2px var(--rc), 0 0 24px color-mix(in srgb, var(--rc) 50%, transparent); }
.luck-c .face-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.luck-c > span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 11px; font-weight: 700; line-height: 1.2; opacity: 0; transition: opacity .3s ease .4s;
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.luck-c.open > span { opacity: 1; }
.luck-c.open:active { transform: scale(.96); }
.luck-c.chosen { transform: translateY(-14px) scale(1.12); z-index: 2; }
.luck-c.gone { opacity: 0; transform: translateY(30px) scale(.8) rotate(-6deg); filter: blur(2px) grayscale(1); pointer-events: none; }

/* ================= МЯЧ: ОБЪЁМ ================= */
/* мяч ручного матча — только в сцене (раньше правило .ball было общим и
   перебивало мячик быстрого матча) */
.scene .ball { width: 12%; height: auto; aspect-ratio: 1; background: none; box-shadow: none; transition: none;
               filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.scene .ball svg { filter: none; }
.ball-skin { position: absolute; inset: 0; border-radius: 50%; }
.ball-skin svg { width: 100%; height: 100%; display: block; }
.ball-light { position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .45) 11%, rgba(255, 255, 255, 0) 30%),
    radial-gradient(circle at 36% 32%, rgba(2, 6, 23, 0) 48%, rgba(2, 6, 23, .28) 72%, rgba(2, 6, 23, .62) 100%);
  box-shadow: inset -3px -5px 8px rgba(2, 6, 23, .35), inset 2px 3px 5px rgba(255, 255, 255, .35); }
.ball.trail .ball-light { display: none; }
/* мячик быстрого матча (мини-поле): тоже объёмный */
.mini-pitch .ball { width: 16px; height: 16px; top: 50%; left: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff 0 14%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 54% 56%, #111827 0 17%, rgba(17, 24, 39, 0) 19%),
    radial-gradient(circle at 18% 70%, #111827 0 10%, rgba(17, 24, 39, 0) 12%),
    radial-gradient(circle at 84% 34%, #111827 0 9%, rgba(17, 24, 39, 0) 11%),
    radial-gradient(circle at 36% 32%, #f8fafc 0 40%, #cbd5e1 75%, #64748b 100%);
  box-shadow: inset -2px -3px 4px rgba(2, 6, 23, .4), 0 3px 6px rgba(0, 0, 0, .5); }

/* ================= МАГАЗИН ПАКОВ И БУСТОВ ================= */
.shop-tokbtn { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 14px;
  padding: 0 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.shop-packs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.shop-pack { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sp-a, #1e293b), var(--surface) 70%); border: 1px solid var(--sp-b, var(--line));
  animation: rise .35s calc(var(--i, 0) * 60ms) both; }
.shop-pack.p-legendary_pack { --sp-a: rgba(229, 184, 79, .28); --sp-b: rgba(229, 184, 79, .45); }
.shop-pack.p-epic_pack { --sp-a: rgba(249, 115, 22, .24); --sp-b: rgba(249, 115, 22, .4); }
.shop-pack.p-star_pack { --sp-a: rgba(168, 85, 247, .24); --sp-b: rgba(168, 85, 247, .4); }
.shop-pack .sp-ic { width: 46px; height: 58px; flex: none; display: grid; place-items: center; font-size: 24px; border-radius: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 14px rgba(0, 0, 0, .35); }
.shop-pack .sp-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.shop-pack .sp-meta b { font-size: 14px; }
.shop-pack .sp-meta span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.shop-pack .sp-meta i { font-style: normal; font-size: 11px; color: var(--gold-2); }
.shop-pack.out, .shop-bst.out { opacity: .55; }
.sb-ic { display: grid; place-items: center; font-size: 22px; background: var(--surface-2); }
.shop-bst .meta span + span { color: var(--gold-2); }
.btn.arm { background: linear-gradient(180deg, #f87171, #dc2626); color: #fff; box-shadow: 0 6px 16px rgba(220, 38, 38, .35); }

/* ================= ДИВИЗИОН: НАГРАДЫ И СОПЕРНИКИ ================= */
.div-links { display: flex; gap: 8px; margin: -2px 0 10px; }
.div-links button { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 12px;
  padding: 9px 6px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.div-links button:active { transform: scale(.97); }
.dr-list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.dr-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); animation: rise .3s calc(var(--i, 0) * 50ms) both; }
.dr-row .dr-ic { font-size: 20px; line-height: 1.2; }
.dr-row .dr-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dr-row .dr-meta b { font-size: 13px; }
.dr-row .dr-meta span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.dr-row.k-champion { border-color: rgba(229, 184, 79, .45); background: linear-gradient(135deg, rgba(229, 184, 79, .16), var(--surface) 70%); }
.dr-row.k-promote { border-color: rgba(34, 197, 94, .35); }
.dr-row.k-demote { border-color: rgba(248, 113, 113, .3); }
.dv-me { margin: 8px 0; }

/* ================= НАСТРОЙКИ ПРОФИЛЯ ================= */
.pf-gear { flex: none; align-self: flex-start; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 18px; cursor: pointer; display: grid; place-items: center; }
.pf-gear:active { transform: scale(.94) rotate(30deg); }
.st-ava { display: flex; align-items: center; gap: 14px; margin: 10px 0 14px; }
.pf-ava.sm { width: 64px; height: 64px; font-size: 20px; }
.pf-ava.loading { opacity: .5; animation: stpulse 1s ease-in-out infinite alternate; }
@keyframes stpulse { to { opacity: .9; } }
.st-pick { cursor: pointer; }
.st-form { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.st-form label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; justify-content: space-between; }
.st-form label em { font-style: normal; font-weight: 400; font-variant-numeric: tabular-nums; }
.st-line { display: flex; gap: 8px; }
.st-form input, .st-form textarea { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-size: 15px; resize: none; }
.st-form input:focus, .st-form textarea:focus { outline: none; border-color: var(--gold); }
.st-form small { font-size: 11.5px; color: var(--muted); }
.st-form small.bad { color: #f87171; }

/* ================= ЯЧЕЙКИ СИЛЫ ================= */
.pf-cells { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(56, 189, 248, .35); background: linear-gradient(135deg, rgba(56, 189, 248, .16), var(--surface) 70%); color: var(--text); font: inherit; text-align: left; }
.pf-cells i { font-style: normal; font-size: 20px; }
.pf-cells b { font-size: 14px; }
.pf-cells span { flex: 1; font-size: 12px; color: var(--muted); }
.pf-cells em { font-style: normal; color: var(--muted); font-size: 20px; }
.cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 10px 0 14px; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 6px 4px; border-radius: 12px;
  background: var(--surface); border: 1px dashed var(--line); animation: rise .3s calc(var(--i, 0) * 50ms) both; min-width: 0; }
.cell.on { border: 1px solid rgba(56, 189, 248, .55); box-shadow: 0 0 14px rgba(56, 189, 248, .2); }
.cell img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.cell b { font-size: 10px; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell small, .cell span { font-size: 9.5px; color: var(--muted); line-height: 1.2; }
.cell span { color: #7dd3fc; }
.cell .btn { padding: 4px 6px; font-size: 10px; min-height: 0; }
.cell-empty { width: 100%; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 8px; font-size: 16px; color: var(--muted);
  background: rgba(255, 255, 255, .03); }

/* ================= VIP ================= */
.pf-cells.vip { border-color: rgba(229, 184, 79, .4); background: linear-gradient(135deg, rgba(229, 184, 79, .16), var(--surface) 70%); }
.vip-note { padding: 9px 12px; border-radius: 12px; background: rgba(56, 189, 248, .1); border: 1px solid rgba(56, 189, 248, .3); font-size: 12.5px; margin: 8px 0; }
.vip-benefits { white-space: pre-line; font-size: 12.5px; line-height: 1.5; color: var(--muted); padding: 10px 12px; margin: 8px 0 10px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.vip-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.vip-prod { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; animation: rise .3s calc(var(--i, 0) * 60ms) both;
  border: 1px solid rgba(229, 184, 79, .35); background: linear-gradient(135deg, rgba(229, 184, 79, .14), var(--surface) 70%); }
.vip-prod.beta { border-color: rgba(56, 189, 248, .4); background: linear-gradient(135deg, rgba(56, 189, 248, .14), var(--surface) 70%); }
.vip-prod .vp-ic { font-size: 24px; }
.vip-prod .vp-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vip-prod .vp-meta b { font-size: 13.5px; }
.vip-prod .vp-meta span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.vip-prod .btn { flex: none; }

/* ================= РОЗЫГРЫШИ И ПРИЗЫ ================= */
.pf-cells.raf { border-color: rgba(168, 85, 247, .38); background: linear-gradient(135deg, rgba(168, 85, 247, .15), var(--surface) 70%); }
.raf-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; margin: 8px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.raf-card b { font-size: 14px; }
.raf-card span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.raf-acts { display: flex; gap: 8px; margin-top: 4px; }
.raf-acts .btn { flex: 1; }

.pf-links { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.pf-links .pf-cells { flex-direction: column; align-items: flex-start; gap: 1px; margin: 0; padding: 10px; min-width: 0; }
.pf-links .pf-cells em { display: none; }
.pf-links .pf-cells b { font-size: 13px; }
.pf-links .pf-cells span { flex: none; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ================= ЭНЕРГОСБЕРЕЖЕНИЕ (09.10.2026: «телефон греется») =================
   Замер на главном экране без касаний: 37 анимаций крутились вечно, на экране
   клуба — 70. Главная печка — три пятна фона 70vmax с blur(70px), которые
   плыли ПОД стеклом шапки и вкладок: стекло (backdrop-filter) пересчитывалось
   каждый кадр. Плюс анимации background-position (перерисовка, не GPU-слой):
   блик полосок, голография карт, мерцание заглушки под УЖЕ загруженной картинкой. */

/* фон — те же пятна, но неподвижные и без размытия (мягкость даёт градиент) */
.ambient i { filter: none !important; animation: none !important; opacity: 1 !important; }
.ambient i:nth-child(1) { background: radial-gradient(closest-side, rgba(15, 81, 50, .34), rgba(15, 81, 50, 0)); }
.ambient i:nth-child(2) { background: radial-gradient(closest-side, rgba(30, 58, 138, .24), rgba(30, 58, 138, 0)); }
.ambient i:nth-child(3) { background: radial-gradient(closest-side, rgba(161, 98, 7, .16), rgba(161, 98, 7, 0)); }

/* стекло легче: без saturate, меньше радиус */
.topbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabbar { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* декоративные блики — несколько проходов при появлении, а не вечно */
.bar > i::after, .abar i::after { animation-iteration-count: 1; }
.btn.gold:not([disabled])::after { animation-iteration-count: 2; }
.tile.r-legendary .pic::after, .tile.r-boh .pic::after, .tile.r-goat .pic::after, .tile.r-collection .pic::after,
.ws-card.r-epic::after, .vg-card.r-legendary::after, .vg-card.r-boh::after { animation-iteration-count: 2; }

/* заглушка мерцает, только пока картинка грузится */
.tile .pic.ld { animation: none; background: var(--surface); }

/* слой GPU — только карте под пальцем, а не каждой из сотен в сетке */
.tile .pic, .ws-card, .vg-card, .forged-card, .trophy, .lineup .lt, .portrait .pf { will-change: auto; }
.tilting { will-change: transform; }

/* без касаний 8 с — всё, что крутится на экране, замирает (motion.js ставит body.idle);
   первое касание или прокрутка — оживает. Слои пака/матча не трогаем: там действие. */
body.idle #view *, body.idle #view *::before, body.idle #view *::after,
body.idle .topbar *, body.idle .tabbar * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  #view *, #view *::before, #view *::after { animation-iteration-count: 1 !important; }
}

/* ================= МАГАЗИН: РАЗДЕЛЫ, ПЕРЕХОД ИЗ ИНВЕНТАРЯ ================= */
.shop-tabs { margin: 2px 0 6px; }
.inv-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inv-shop { flex: none; border: 1px solid rgba(229, 184, 79, .45); background: rgba(229, 184, 79, .12); color: var(--gold-2);
  border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.st-snd { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; margin-bottom: 10px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.st-toggle { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 999px;
  padding: 6px 14px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; min-width: 64px; }
.st-toggle.on { background: rgba(34, 197, 94, .18); border-color: rgba(74, 222, 128, .5); color: #bbf7d0; }

/* ================= ПРИГЛАСИТЬ ДРУГА · ЯЗЫК · СПРАВКА ================= */
.ref-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin: 10px 0 4px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(34, 197, 94, .35); background: linear-gradient(135deg, rgba(34, 197, 94, .14), var(--surface) 70%); }
.ref-ic { font-size: 22px; line-height: 1.2; }
.ref-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ref-main b { font-size: 14px; }
.ref-main span { font-size: 12px; color: var(--muted); line-height: 1.35; }
.ref-link { display: block; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 12px; word-break: break-all;
  user-select: all; -webkit-user-select: all; }
.ref-acts { display: flex; gap: 8px; margin-top: 2px; }
.ref-acts .btn { flex: 1; }
.ref-card.open { cursor: default; }
.st-langs { display: flex; gap: 6px; }
.st-help { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; margin-bottom: 10px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13.5px;
  font-weight: 600; cursor: pointer; text-align: left; }
.st-help em { font-style: normal; color: var(--muted); }
.help-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.help-it { border-radius: 12px; background: var(--surface); border: 1px solid var(--line); padding: 0 12px; }
.help-it summary { padding: 11px 0; font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.help-it summary::-webkit-details-marker { display: none; }
.help-it[open] summary { color: var(--gold-2); }
.help-it p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); white-space: pre-line; }

/* ================= ОБЛЕГЧЁННЫЙ РЕЖИМ (html.lite) =================
   Слабый/старый телефон, старый Telegram, медленная сеть — решает <head> в
   index.html или игрок (Профиль → ⚙️). Всё то же самое, но без «дорогого»:
   стекла (backdrop-filter), размытий, вечных и декоративных анимаций, бликов,
   теней с большим радиусом, 3D-наклона; картинки — лёгкие миниатюры (?s=mini). */
html.lite .ambient, html.lite .rays, html.lite .tilting::before { display: none !important; }
html.lite *, html.lite *::before, html.lite *::after {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  animation-iteration-count: 1 !important; text-shadow: none !important;
}
html.lite .topbar, html.lite .tabbar { background: #0b1322 !important; }
html.lite .toast, html.lite .sheet, html.lite .modal-backdrop, html.lite .sheet-bg { background-color: #0e1626 !important; }
html.lite .modal-backdrop, html.lite .sheet-bg { background-color: rgba(4, 8, 16, .82) !important; }
/* декоративные слои */
html.lite .btn.gold::after, html.lite .bar > i::after, html.lite .abar i::after, html.lite .pack-banner::before,
html.lite .tile .pic::after, html.lite .ws-card::after, html.lite .vg-card::after, html.lite .card3d .shine { display: none !important; }
/* входы экранов и списков — короче и без размытия */
html.lite .screen, html.lite .toast, html.lite [style*="--i"] { animation-duration: .18s !important; animation-delay: 0s !important; }
html.lite .screen { animation-name: lite-in !important; }
html.lite .toast { animation-name: lite-in !important; }
@keyframes lite-in { from { opacity: 0; } }
/* тени: большие размытия заменяем контуром */
html.lite .btn, html.lite .btn.gold, html.lite .tile .pic, html.lite .sell-row, html.lite .club, html.lite .pf-stat,
html.lite .shop-pack, html.lite .vip-prod, html.lite .pack-banner, html.lite .forge { box-shadow: none !important; }
html.lite .tile .pic { box-shadow: 0 0 0 1.5px var(--rc) !important; }
html.lite .tile .pic, html.lite .ws-card, html.lite .vg-card, html.lite .forged-card, html.lite .trophy, html.lite .lineup .lt,
html.lite .portrait .pf { transform: none !important; will-change: auto !important; }
html.lite .tile .pic { animation: none !important; background: var(--surface) !important; }
html.lite .scene .ball { filter: none !important; }
/* старый Telegram без системной «Назад» — своя кнопка */
#appback { position: fixed; z-index: 90; left: 10px; top: calc(10px + var(--safe-top, 0px)); width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: #111a2b; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
#appback[hidden] { display: none; }
/* старый движок: экран-объяснение вместо белого */
.old-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 24px; color: #e5edf7; background: #0a1120; font: 15px/1.5 -apple-system, Roboto, sans-serif; }
.old-screen .old-ic { font-size: 54px; margin-bottom: 12px; }
.old-screen b { font-size: 18px; margin-bottom: 8px; }
.old-screen p { color: #94a3b8; margin: 4px 0 10px; max-width: 340px; }
.old-screen .btn { margin-top: 10px; padding: 12px 22px; border-radius: 14px; border: 0; background: #22c55e; color: #04130a; font-weight: 700; font-size: 15px; }
/* без aspect-ratio (iOS < 15, старый Chrome): квадрат мяча и карточки — через отступ */
@supports not (aspect-ratio: 1) {
  .scene .ball { height: 0 !important; padding-bottom: 12%; }
  .tile .pic { height: 0; padding-bottom: 125%; }
  .tile .pic img { position: absolute; inset: 0; top: 0; left: 0; width: 100%; height: 100%; }
}
.st-lite small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 2px; }
/* крутилка загрузки должна крутиться и в облегчённом режиме — иначе выглядит как зависание */
html.lite .loader i, html.lite .loader i::before, html.lite .loader i::after { animation-iteration-count: infinite !important; }

/* ================= ОБУЧЕНИЕ ================= */
.tutview { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center;
  padding: 12px 12px calc(12px + var(--safe-bottom, 0px)); background: rgba(4, 8, 16, .78); }
.tutview[hidden] { display: none !important; }
.tut-card { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; border-radius: 22px; padding: 14px 16px 16px;
  background: linear-gradient(180deg, #13213a, #0c1526); border: 1px solid rgba(246, 215, 122, .3); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: rise .35s var(--spring, ease) both; }
.tut-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tut-coach { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: none;
  background: rgba(246, 215, 122, .14); border: 1px solid rgba(246, 215, 122, .35); }
.tut-dots { flex: 1; display: flex; gap: 4px; }
.tut-dots i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.tut-dots i.done { background: #22c55e; } .tut-dots i.now { background: var(--gold-2); }
.tut-x { flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 14px; cursor: pointer; }
.tut-body h2 { font-size: 18px; margin: 4px 0 8px; }
.tut-body p { font-size: 14px; line-height: 1.5; color: #cbd5e1; margin: 0 0 10px; }
.tut-rar { font-size: 13px !important; padding: 8px 10px; border-radius: 12px; background: var(--surface); }
.tut-gifts { margin: 6px 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tut-gifts li { font-size: 13.5px; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.tut-boh, .tut-lv { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.tut-boh img, .tut-lv img { width: 64px; border-radius: 10px; box-shadow: 0 0 0 2px var(--gold-2); }
.tut-boh span, .tut-lv span { font-weight: 700; font-size: 14px; }
.tut-in { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 15px; margin-bottom: 8px; }
.tut-in:focus { outline: none; border-color: var(--gold); }
.tut-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.tut-pill { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(76px + var(--safe-bottom, 0px));
  border: 1px solid rgba(246, 215, 122, .55); background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d00;
  border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(229, 184, 79, .4); white-space: nowrap; }
.tut-pill[hidden] { display: none; }
.pf-cells.tut { border-color: rgba(246, 215, 122, .5); background: linear-gradient(135deg, rgba(246, 215, 122, .2), var(--surface) 70%); }

/* ================= СОСТАВ: ЗАБЛОКИРОВАННЫЕ ПОСЛЕ 1 ДИВА ================= */
.sq-locked-tg { width: 100%; margin: 8px 0 4px; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.row.locked { opacity: .55; filter: grayscale(.6); }
.sheet .sub.wrap { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }

/* ================= ВЫЗОВ: ПРОГРЕСС УРОВНЯ ЦВЕТОМ ================= */
/* цвет карты — редкость (меняется после 10 ур.); 10 делений внизу — уровень цветом следующей редкости */
.vz-c { padding-bottom: 9px; }
.vz-c::after { display: none; }
.vz-p .vz-c::before, .vz-c.big::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 3px; height: 4px; width: auto; z-index: 1;
  border-radius: 2px; background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1.5px), rgba(0, 0, 0, .55) calc(10% - 1.5px) 10%),
    linear-gradient(90deg, var(--n, #facc15) 0 var(--f, 0%), rgba(0, 0, 0, .45) var(--f, 0%)); }
.vz-c.big::before { height: 6px; bottom: 5px; }
.vz-legend-hint { text-align: center; font-size: 10.5px; color: var(--muted); margin: -4px 0 10px; }

/* ================= МЕТКИ ВКЛАДОК · «В ДРУЗЬЯ» ПОСЛЕ МАТЧА ================= */
.tab-dot { position: absolute; top: 6px; left: calc(50% + 9px); width: 9px; height: 9px; border-radius: 50%; z-index: 2;
  background: #f59e0b; box-shadow: 0 0 0 2px #0b1322; animation: tabdot 1.8s ease-in-out infinite; pointer-events: none; }
.tab-dot[hidden] { display: none; }
@keyframes tabdot { 50% { transform: scale(1.35); box-shadow: 0 0 0 2px #0b1322, 0 0 10px rgba(245, 158, 11, .8); } }
.fr-offer { display: block; width: 100%; max-width: 340px; margin: 10px auto 2px; padding: 11px 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid rgba(96, 165, 250, .5); background: rgba(59, 130, 246, .16); color: #dbeafe; font: inherit; font-size: 14px; font-weight: 700; }
.fr-offer.done { cursor: default; border-color: var(--line); background: var(--surface); color: var(--muted); font-weight: 600; text-align: center; }
/* 10.10.2026: у .vz-c стояло своё --c: #9ca3af — оно перебивало цвет редкости с .vz-p,
   и на поле все карты были серыми (в боте — цветные). Цвет теперь берётся от .vz-p. */

/* ================= ВРАТАРЬ ================= */
.kit-opp { --kit2: #7f1d1d; } .kit-me { --kit2: #14532d; }
/* руки вращаются от плеч, а не от середины туловища */
.kp-arm.l { transform-origin: 27px 30px; } .kp-arm.r { transform-origin: 53px 30px; }
@keyframes arms { to { transform: rotate(-7deg); } }
html.lite .keeper svg { filter: none; }

/* ================= ФИЛЬТРЫ АВТОСБОРА И ПРОКАЧКИ ================= */
.lv-filters { padding-bottom: 6px; }
.lv-filters .chip { white-space: nowrap; }
.af-rows { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.af-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13.5px; }
.af-row span { color: var(--muted); font-weight: 600; min-width: 92px; }
.af-row b { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.af-row i { font-style: normal; color: var(--muted); font-size: 18px; }
.af-row.on { border-color: rgba(246, 215, 122, .55); background: rgba(246, 215, 122, .08); }
.af-mode { margin: 4px 0 8px; }
.af-count { text-align: center; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.af-count b { color: var(--text); font-size: 16px; }
.af-count.zero b { color: #f87171; }
.af-acts { display: flex; gap: 8px; margin-top: 8px; }
.af-acts .btn { flex: 1; }
.af-search { margin: 6px 0 8px; }
.af-list { display: flex; flex-direction: column; gap: 5px; max-height: 52vh; overflow-y: auto; margin-bottom: 8px; }
.af-val { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 13.5px; }
.af-val[hidden] { display: none; }
.af-val span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-val em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.af-val.on { border-color: rgba(34, 197, 94, .55); background: rgba(34, 197, 94, .12); }

.sq-clear { width: 100%; margin-top: 10px; }

/* ---------------------------------------------------------------- Главная */
.home { padding-top: 4px; }
.home-hero { position: relative; border-radius: 22px; padding: 14px 14px 14px; margin-bottom: 12px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 197, 94, .28) 0%, rgba(34, 197, 94, 0) 60%), linear-gradient(160deg, #15263f, #0f1b2e);
  border: 1px solid rgba(34, 197, 94, .35); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.home-hero.calm { background: linear-gradient(160deg, #15233a, #0f1a2c); border-color: var(--line); }
.hh-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 700; font-size: 17px; }
.hh-top em { font-style: normal; font-weight: 600; font-size: 12px; color: var(--gold-2); background: rgba(229, 184, 79, .12);
  border: 1px solid rgba(229, 184, 79, .3); padding: 3px 9px; border-radius: 99px; }
.hh-go { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 12px 14px; font: inherit; }
.hh-go[data-main] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1405; border-color: transparent;
  box-shadow: 0 6px 18px rgba(229, 184, 79, .3); }
.hh-go i { font-style: normal; font-size: 28px; line-height: 1; }
.hh-go div { flex: 1; min-width: 0; }
.hh-go b { display: block; font-size: 17px; }
.hh-go span { display: block; font-size: 12.5px; opacity: .75; }
.hh-go em { font-style: normal; font-size: 26px; opacity: .6; }
.hh-go:active, .ht:active, .home-bot:active { transform: scale(.97); }
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.ht { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer;
  min-height: 92px; padding: 12px 12px 10px; border-radius: 16px; color: var(--text); font: inherit;
  background: linear-gradient(165deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  transition: transform .15s ease, border-color .2s ease; animation: ht-in .45s both; animation-delay: calc(var(--i, 0) * 35ms); }
.ht i { font-style: normal; font-size: 26px; line-height: 1.1; margin-bottom: 6px; }
.ht b { font-size: 15px; }
.ht span:not(.ht-dot):not(.ht-badge) { font-size: 11.5px; color: var(--muted); }
.ht-dot { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.ht-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: 11px; font-weight: 700; background: #ef4444; color: #fff; }
.home-bot { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: 14px; cursor: pointer;
  color: var(--muted); font: inherit; background: transparent; border: 1px dashed var(--line); }
.home-bot em { font-style: normal; font-size: 20px; }
@keyframes ht-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.lite .ht { animation: none; }
@media (prefers-reduced-motion: reduce) { .ht { animation: none; } }
