/* ===================== GAMES — отдельный экран + полировка ===================== */
.game-menu {
  gap: 12px;
}
.game-card {
  background: #101012;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 32px 15px 15px;
  position: relative;
  transition:
    transform 0.15s,
    border-color 0.2s;
}
.game-card:active {
  transform: scale(0.97);
  border-color: rgba(255, 255, 255, 0.18);
}
.game-card .gc-emoji {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #191919;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}
.game-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #55555c;
  border-bottom: 2px solid #55555c;
  transform: translateY(-50%) rotate(-45deg);
}
.gc-nm {
  font-weight: 800;
  font-size: 16px;
}
.gc-sub {
  font-size: 12px;
  color: var(--muted);
}
#gameView:not([hidden]) {
  animation: rise 0.3s ease;
}
.game-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.game-top .title {
  flex: 1;
  font-size: 20px;
  margin: 0;
}
.game-bal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #141416;
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 12px;
  flex: none;
}
.game-bal i {
  width: 15px;
  height: 15px;
}
.bet-row input {
  background: #161618;
  border: 1px solid var(--line);
}
/* ===================== DOGS MONO v2 — working light + dark ===================== */
[hidden] {
  display: none !important;
}
:root {
  --ink: #0a0a0c;
  --muted: #8b8b93;
  --accent: #0a0a0c;
  --accent-2: #26262b;
  --accent-3: #3a3a40;
  --accent-soft: rgba(0, 0, 0, 0.05);
  --glass: #ffffff;
  --glass2: #f6f6f7;
  --line: rgba(0, 0, 0, 0.09);
  --soft: #ededf0;
  --bg: #f3f3f5;
  --card: #ffffff;
  --card2: #f6f6f7;
  --chip: #f0f0f2;
  --tab-bg: #ffffff;
  --btn: #0a0a0c;
  --btn-ink: #ffffff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
body.dark {
  --ink: #fafafa;
  --muted: #7c7c84;
  --accent: #ffffff;
  --accent-2: #e3e3e6;
  --accent-3: #bfbfc6;
  --accent-soft: rgba(255, 255, 255, 0.07);
  --glass: #101012;
  --glass2: #0e0e10;
  --line: rgba(255, 255, 255, 0.07);
  --soft: #161618;
  --bg: #08080a;
  --card: #101012;
  --card2: #0e0e10;
  --chip: #141416;
  --tab-bg: #0d0d0f;
  --btn: #ffffff;
  --btn-ink: #08080a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
body {
  background: var(--bg);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.bgwrap,
.bgwrap .blob,
.bgwrap .paw {
  display: none !important;
  background: none;
}
.glass {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
}
.glass-soft {
  background: var(--card2) !important;
  border: 1px solid var(--line) !important;
}
.catch-btn {
  background: var(--btn);
  color: var(--btn-ink);
}
.catch-btn i {
  color: var(--btn-ink);
}
.mini {
  background: var(--btn);
  color: var(--btn-ink);
}
.mini.on {
  background: var(--btn);
  color: var(--btn-ink);
}
.mini.danger {
  background: var(--chip);
  color: #ff6b6b;
}
.mini.empty {
  background: var(--soft);
  color: var(--muted);
}
.icon-btn,
.icon-btn-sm,
.back-btn {
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--ink);
}
.home-xp-fill,
.xp-fill,
.pxpbar-fill,
.q-fill,
.rfill,
.ebar-fill {
  background: var(--accent);
}
.lh-num {
  background: var(--accent);
  color: var(--btn-ink);
}
.home-ava,
.avatar,
.lb-ava {
  background: var(--chip);
  color: var(--ink);
  border: 1px solid var(--line);
}
.home-ava i,
.avatar i,
.lb-ava i {
  color: var(--ink);
}
.cat-frame {
  background: var(--card);
  border: 1px solid var(--line);
}
.tabbar {
  background: var(--tab-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tab.active {
  color: var(--ink);
}
.tab:not(.active) {
  color: var(--muted);
}
.hstat {
  background: var(--chip);
  border: 1px solid var(--line);
}
.hstat i {
  color: var(--ink);
}
.t-common {
  background: #8a8a92;
}
.streak-chip {
  color: #ff9a3c;
  background: rgba(255, 154, 60, 0.13);
}
.streak-chip i,
.streak-chip svg {
  color: #ff9a3c;
  stroke: #ff9a3c;
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 4px;
}
#settingsModal .info-card {
  max-width: 380px;
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 14px;
}
.set-row .si {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--chip);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.set-row .si i {
  width: 17px;
  height: 17px;
  color: var(--ink);
}
.set-row .sl {
  flex: 1 1 90px;
  min-width: 70px;
  font-weight: 700;
  font-size: 14px;
}
.set-row .seg {
  flex: 0 1 auto;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.seg {
  display: flex;
  gap: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 3px;
  flex: none;
}
.seg button {
  border: none;
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.seg button i {
  width: 15px;
  height: 15px;
}
.seg button.on {
  background: var(--btn);
  color: var(--btn-ink);
}
.seg.seg-icon button {
  padding: 7px 12px;
}
.seg.seg-icon button i {
  width: 16px;
  height: 16px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--line);
}
.game-card:active {
  border-color: var(--accent);
}
.game-card .gc-emoji {
  background: var(--soft);
}
.game-card::after {
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
}
.game-bal {
  background: var(--chip);
  border: 1px solid var(--line);
  color: var(--ink);
}
.bet-row input {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
}
/* ===================== v3 — профиль одно окно, топ-переключатель, настройки на главной ===================== */
.stat-row {
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 4px;
}
.stat-row .stat {
  border-radius: 0 !important;
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.stat-row .stat + .stat {
  border-left: 1px solid var(--line) !important;
}
.top-seg {
  width: 100%;
  margin: 2px 0 14px;
}
.top-seg button {
  flex: 1;
  justify-content: center;
}
#homeSettings {
  margin-left: 2px;
}
/* ===================== GAMES v4 — чистые иконки вместо эмодзи-стикеров ===================== */
.gc-emoji i,
.gc-emoji svg {
  width: 26px;
  height: 26px;
  color: var(--ink);
}
/* ===================== SHOP v5 — медиа подарков + ивент-NFT ===================== */
.gift-emoji.gift-media {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gift-media img,
.gift-media video,
.gift-media lottie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nft-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 10px;
  text-align: center;
}
.nft-media {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 2px;
}
.nft-media img,
.nft-media video,
.nft-media lottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nft-name {
  font-weight: 700;
  font-size: 14px;
}
.nft-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.nft-price {
  font-weight: 800;
  color: var(--accent);
  font-size: 14px;
}
.nft-left {
  font-size: 11px;
  color: var(--muted);
}
.nft-card .mini {
  width: 100%;
  margin-top: 4px;
}
.gi-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.gi-em {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
  overflow: hidden;
}
.gi-em img,
.gi-em video,
.gi-em lottie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gi-row input {
  flex: 1;
  min-width: 0;
  border: none;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  color: var(--ink);
  outline: none;
  font-size: 12px;
}
.ord-emoji img,
.ord-emoji video,
.ord-emoji lottie-player {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
}
/* ===================== FONTS v6 — переключаемый шрифт ===================== */
:root {
  --font:
    "Unbounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}
body[data-font="roboto"] {
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body[data-font="rubik"] {
  --font: "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body[data-font="montserrat"] {
  --font:
    "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body,
button,
input,
select,
textarea,
optgroup {
  font-family: var(--font) !important;
}
#fontSeg {
  flex-wrap: wrap !important;
}
#fontSeg button {
  font-size: 11px;
  padding: 7px 6px;
  flex: 1 1 40% !important;
}
/* ===================== ACCENT v7 — выбор цвета, анимированный фон, цвет валюты ===================== */
:root {
  --brand: #5b76d4;
  --brand2: #8aa0f0;
}
body[data-accent="blue"] {
  --brand: #5b76d4;
  --brand2: #8aa0f0;
}
body[data-accent="purple"] {
  --brand: #9d6bff;
  --brand2: #c79bff;
}
body[data-accent="green"] {
  --brand: #2fbf71;
  --brand2: #74e6a6;
}
body[data-accent="pink"] {
  --brand: #ff5db1;
  --brand2: #ff9ad1;
}
body[data-accent="orange"] {
  --brand: #ff8a3d;
  --brand2: #ffbf85;
}
body[data-accent="teal"] {
  --brand: #23c4d6;
  --brand2: #76e7f1;
}
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 18% 22%, var(--brand) 0%, transparent 62%),
    radial-gradient(42% 42% at 82% 16%, var(--brand2) 0%, transparent 62%),
    radial-gradient(46% 46% at 75% 88%, var(--brand) 0%, transparent 60%),
    radial-gradient(40% 40% at 22% 82%, var(--brand2) 0%, transparent 62%);
  background-size: 200% 200%;
  opacity: 0.42;
  filter: blur(62px) saturate(1.25);
  animation: brandFloat 26s ease-in-out infinite alternate;
  will-change: transform, background-position;
}
body:not(.dark)::before {
  opacity: 0.52;
}
@keyframes brandFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 50%;
  }
  50% {
    transform: translate3d(0, -2.5%, 0) scale(1.1);
    background-position: 100% 50%;
  }
  100% {
    transform: translate3d(0, 2%, 0) scale(1.05);
    background-position: 50% 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
}
svg.lucide-paw-print {
  color: var(--brand) !important;
  stroke: var(--brand) !important;
}
.seg.seg-color {
  flex-wrap: wrap;
  gap: 6px;
}
.seg.seg-color button {
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  transition:
    transform 0.12s ease,
    border-color 0.12s ease;
}
.seg.seg-color button:active {
  transform: scale(0.9);
}
.seg.seg-color button.on {
  border-color: var(--ink);
  transform: scale(1.12);
}
/* ===================== UX v8 — стекло таббара, переходы, свайп ===================== */
.tabbar {
  background: rgba(13, 13, 15, 0.6) !important;
  backdrop-filter: blur(24px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.5) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55) !important;
}
body:not(.dark) .tabbar {
  background: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 10px 30px rgba(40, 55, 90, 0.14) !important;
}
.screen.nav-next {
  animation: navNext 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.screen.nav-prev {
  animation: navPrev 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes navNext {
  from {
    opacity: 0;
    transform: translateX(42px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes navPrev {
  from {
    opacity: 0;
    transform: translateX(-42px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.screen.swiping {
  animation: none !important;
}
/* ===================== v9 — баннер-карусель, статичные градиенты, стоп-мерцание ===================== */
body::before {
  animation: none !important;
  will-change: auto !important;
  background-position: 25% 30% !important;
  opacity: 0.4 !important;
}
body:not(.dark)::before {
  opacity: 0.5 !important;
}
.banner-carousel {
  margin: 2px 0 12px;
}
.banner-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.banner-track::-webkit-scrollbar {
  display: none;
}
.bn-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  min-height: 100px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.bn-media {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
  background: rgba(0, 0, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.bn-media img,
.bn-media video,
.bn-media lottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bn-txt {
  flex: 1;
  min-width: 0;
  color: #fff;
}
.bn-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bn-title i,
.bn-title svg {
  width: 18px;
  height: 18px;
  color: #fff !important;
  stroke: #fff !important;
}
.bn-sub {
  font-size: 12.5px;
  opacity: 0.88;
  margin-top: 3px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bn-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 88% 8%,
    rgba(255, 255, 255, 0.16),
    transparent 55%
  );
  pointer-events: none;
}
.bn-brand {
  background: linear-gradient(120deg, var(--brand), var(--brand2));
}
.bn-event {
  background: linear-gradient(120deg, #241d49, #5b3da0 55%, #21314c);
}
.banner-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
}
.bn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: 0.2s;
}
.bn-dot.on {
  background: var(--accent);
  width: 18px;
  border-radius: 6px;
}
.catch-btn {
  background: linear-gradient(120deg, var(--brand), var(--brand2)) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px -8px var(--brand) !important;
}
.catch-btn i {
  color: #fff !important;
}
.hstat {
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  border: none !important;
  color: #fff !important;
}
.hstat i {
  color: #fff !important;
}
.stat-row {
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  border: none !important;
  box-shadow: 0 8px 22px -10px var(--brand) !important;
}
.stat-row .stat b {
  color: #fff !important;
}
.stat-row .stat span {
  color: rgba(255, 255, 255, 0.82) !important;
}
.stat-row .stat + .stat {
  border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.lvl-badge,
.lh-num {
  background: linear-gradient(135deg, var(--brand), var(--brand2)) !important;
  color: #fff !important;
}
/* ===================== v10 — прозрачный интерфейс, баннер-плейсхолдер, настройки ===================== */
body {
  background: var(--bg) !important;
}
.app {
  position: relative;
  z-index: 1;
}
body::before {
  z-index: 0 !important;
  opacity: 0.42 !important;
  filter: blur(60px) saturate(1.3) !important;
}
body:not(.dark)::before {
  opacity: 0.5 !important;
}
.glass {
  background: rgba(18, 18, 22, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  backdrop-filter: blur(22px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4) !important;
}
.glass-soft {
  background: rgba(16, 16, 20, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(18px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
}
body:not(.dark) .glass {
  background: rgba(255, 255, 255, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
}
body:not(.dark) .glass-soft {
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
}
.cat-frame {
  background: rgba(16, 16, 20, 0.45) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  height: 31vh !important;
  min-height: 172px !important;
}
.game-card {
  backdrop-filter: blur(18px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.3) !important;
}
.settings-list {
  gap: 10px;
}
.set-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
  padding: 14px 15px !important;
}
.set-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.set-head .sl {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
}
.set-row .seg {
  width: 100%;
  flex-wrap: nowrap;
}
.set-row .seg:not(.seg-color) button {
  flex: 1;
  justify-content: center;
  white-space: nowrap;
}
.set-row .seg.seg-color {
  justify-content: space-between;
  padding: 6px 8px;
}
.set-row .seg.seg-color button {
  width: 28px;
  height: 28px;
  min-width: 28px;
}
#fontSeg button {
  font-size: 11px;
  padding: 7px 6px;
}
#settingsModal .info-card {
  max-width: 400px;
  padding: 20px 18px;
}
.banner-carousel {
  margin: 2px 0 10px;
}
.bn-slide {
  flex: 0 0 100% !important;
  scroll-snap-align: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 16/5;
  min-height: 0 !important;
  padding: 0 !important;
  background: var(--soft);
  display: block !important;
}
.bn-slide::after {
  display: none !important;
}
.bn-photo img,
.bn-photo video,
.bn-photo lottie-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bn-empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--brand), var(--brand2)) !important;
}
.bn-empty-txt {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  opacity: 0.92;
  letter-spacing: -0.01em;
}
/* ===================== v11 — компактный профиль + спрей-градиент на кнопках ===================== */
#s-profile .pcard {
  margin-bottom: 8px !important;
}
#s-profile .badges {
  margin: 0 0 8px !important;
}
#s-profile .stat-row {
  margin-bottom: 8px !important;
}
#s-profile .btn-row {
  margin: 0 0 8px !important;
  gap: 8px !important;
}
#s-profile .ref-info {
  margin: 0 0 8px !important;
}
#s-profile .promo-row {
  margin: 0 0 8px !important;
}
#s-profile .section-h {
  margin: 13px 4px 8px !important;
}
.catch-btn,
.wbtn,
body:not(.dark) .wbtn {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='spn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23spn)' opacity='0.5'/%3E%3C/svg%3E"),
    linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%) !important;
  background-size:
    130px 130px,
    cover !important;
  background-repeat: repeat, no-repeat !important;
  background-blend-mode: overlay, normal !important;
  color: #fff !important;
  border: none !important;
}
.catch-btn i,
.wbtn i {
  color: #fff !important;
}
.wbtn,
body:not(.dark) .wbtn {
  box-shadow: 0 8px 24px -10px var(--brand) !important;
}
.wbtn:active,
.catch-btn:active {
  transform: scale(0.97);
}
/* ===================== v12 — сильное размытие таббара + частичный спрей с переходом ===================== */
.tabbar {
  background: rgba(10, 10, 12, 0.82) !important;
  backdrop-filter: blur(36px) saturate(1.7) !important;
  -webkit-backdrop-filter: blur(36px) saturate(1.7) !important;
}
body:not(.dark) .tabbar {
  background: rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 10px 30px rgba(40, 55, 90, 0.16) !important;
}
.tabbar-bg {
  display: block !important;
  height: 120px;
  z-index: 48;
  backdrop-filter: blur(22px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
  -webkit-mask-image: linear-gradient(
    to top,
    #000 40%,
    rgba(0, 0, 0, 0.5) 72%,
    transparent
  );
  mask-image: linear-gradient(
    to top,
    #000 40%,
    rgba(0, 0, 0, 0.5) 72%,
    transparent
  );
}
.catch-btn,
.wbtn,
body:not(.dark) .wbtn {
  background: linear-gradient(
    135deg,
    var(--brand) 0%,
    var(--brand2) 100%
  ) !important;
  background-blend-mode: normal !important;
  color: #fff !important;
  border: none !important;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.catch-btn::before,
.wbtn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='spn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23spn)' opacity='0.6'/%3E%3C/svg%3E"),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0) 58%
    );
  background-size:
    120px 120px,
    100% 100%;
  background-repeat: repeat, no-repeat;
  background-blend-mode: overlay, normal;
  -webkit-mask-image: linear-gradient(
    135deg,
    #000 0%,
    #000 30%,
    transparent 68%
  );
  mask-image: linear-gradient(135deg, #000 0%, #000 30%, transparent 68%);
}
.catch-btn i,
.wbtn i {
  color: #fff !important;
}
.wbtn,
body:not(.dark) .wbtn {
  box-shadow: 0 8px 24px -10px var(--brand) !important;
}
/* ===================== v13 — спрей переходит в чёрный (тёмная) / белый (светлая) ===================== */
.catch-btn,
.wbtn {
  background: #0c0c0e !important;
  background: color-mix(in srgb, var(--brand) 24%, #0c0c0e) !important;
  background-image: none !important;
  color: #fff !important;
  border: none !important;
}
.catch-btn i,
.wbtn i {
  color: #fff !important;
}
body:not(.dark) .catch-btn,
body:not(.dark) .wbtn {
  background: #ffffff !important;
  background: color-mix(in srgb, var(--brand) 16%, #ffffff) !important;
  color: #10121a !important;
}
body:not(.dark) .catch-btn i,
body:not(.dark) .wbtn i {
  color: #10121a !important;
}
.catch-btn::before,
.wbtn::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='spn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23spn)' opacity='0.55'/%3E%3C/svg%3E"),
    linear-gradient(315deg, var(--brand) 0%, var(--brand2) 100%) !important;
  background-size:
    120px 120px,
    100% 100% !important;
  background-repeat: repeat, no-repeat !important;
  background-blend-mode: overlay, normal !important;
  -webkit-mask-image: linear-gradient(
    315deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 12%,
    transparent 100%
  ) !important;
  mask-image: linear-gradient(
    315deg,
    #000 0%,
    rgba(0, 0, 0, 0.92) 12%,
    transparent 100%
  ) !important;
}
/* ===================== v14 — фуллскрин на телефоне + safe-area ===================== */
:root {
  --safe-top: 0px;
}
.app {
  padding-top: calc(14px + var(--safe-top, 0px)) !important;
}
.tabbar-bg {
  height: calc(92px + var(--safe-bottom, 0px));
}
/* ===================== v15 — авто-обновление топа без мерцания ===================== */
body.lb-silent #lbList .lb-row {
  animation: none !important;
}
/* ===================== v16 — логи и анти-чит в админке ===================== */
.log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  margin-bottom: 7px;
}
.log-row .log-t {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  word-break: break-word;
}
.log-row .muted {
  flex: none;
  font-size: 11px;
  white-space: nowrap;
}
#admLogs {
  margin-top: 4px;
}
/* ===================== v17 — обучение при первом входе ===================== */
.onb {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: fadein 0.2s ease;
}
.onb[hidden] {
  display: none;
}
.onb-card {
  width: 100%;
  max-width: 440px;
  margin: 0 10px 10px;
  border-radius: 26px;
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  animation: onbUp 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes onbUp {
  from {
    opacity: 0;
    transform: translateY(48px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.onb-ic {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 26px -10px var(--brand);
  margin-bottom: 18px;
}
.onb-ic i,
.onb-ic svg {
  width: 28px;
  height: 28px;
  color: #fff !important;
  stroke: #fff !important;
}
.onb-step {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.onb-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.onb-text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 22px;
}
.onb-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.onb-dots .d {
  height: 5px;
  flex: 1;
  border-radius: 5px;
  background: var(--soft);
  transition: 0.3s ease;
}
.onb-dots .d.on {
  background: linear-gradient(90deg, var(--brand), var(--brand2));
}
.onb-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.onb-skip {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 4px;
  cursor: pointer;
  white-space: nowrap;
}
.onb-skip:active {
  opacity: 0.6;
}
.onb-next {
  flex: 1;
  width: auto !important;
}
.t-superrare {
  background: linear-gradient(135deg, #17b8a6, #3fe0c8);
}
.cat-fav {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: rgba(20, 26, 40, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: scale(0.8);
  transition: 0.25s;
}
.cat-fav.show {
  opacity: 1;
  transform: scale(1);
}
.cat-fav.on {
  background: rgba(255, 93, 141, 0.92);
}
.cat-fav.on i {
  fill: #fff;
}
.cat-fav:active {
  transform: scale(0.9);
}
.cat-fav i {
  width: 18px;
  height: 18px;
}
.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 14px;
  margin-bottom: 10px;
}
.showcase-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 16px;
}
.showcase-cap {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.showcase-cap i {
  width: 13px;
  height: 13px;
}
.prank {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}
.prank i {
  width: 15px;
  height: 15px;
  color: var(--accent);
}
.coin {
  width: 1.15em;
  height: 1.15em;
  object-fit: contain;
  vertical-align: -0.24em;
  display: inline-block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  flex: none;
}
/* ===================== v18 — Кототека: фикс наезжающих кнопок ===================== */
/* профиль: у отдельных кнопок свои отступы, чтобы не липли друг к другу */
#collectionBtn {
  width: 100% !important;
  flex: none !important;
  margin: 8px 0 !important;
}
#s-profile .btn-row {
  margin: 0 0 8px !important;
}
#s-profile .promo-row {
  margin: 8px 0 !important;
}
#s-profile #adminBtn.admin-entry {
  margin-top: 10px !important;
}
/* кототека: сегменты редкости переносятся в 2 ряда и не наезжают */
#collSeg {
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: 100%;
}
#collSeg button {
  flex: 1 1 28% !important;
  min-width: 0;
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
}
#collMore {
  width: 100% !important;
  flex: none !important;
  margin: 8px 0 18px !important;
}
/* ===================== v19 — NFT-коты: дроп и улучшение ===================== */
#nftBtn {
  width: 100% !important;
  flex: none !important;
  margin: 8px 0 !important;
}
.nft-bal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 10px;
}
.nft-bal b {
  color: var(--accent);
}
.nftc {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 17px;
  overflow: hidden;
  background: var(--card, #101012);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  animation: rise 0.35s ease both;
}
.nftc img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--soft);
}
.nftc.base img {
  filter: none;
}
.nftc .nft-tier {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  background: #777;
}
.nftc .nft-tier.legendary {
  background: #ff9f1c;
}
.nftc .nft-tier.epic {
  background: #9b5cff;
}
.nftc .nft-tier.superrare {
  background: #00a9c7;
}
.nftc .nft-tier.rare {
  background: #3578ff;
}
.nftc .nft-tier.common {
  background: #777;
}
.nftc .nft-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.nftc.legendary {
  border-color: #ffb02e;
  box-shadow: 0 0 16px rgba(255, 176, 46, 0.3);
}
.nftc.epic {
  border-color: #c46bff;
  box-shadow: 0 0 16px rgba(196, 107, 255, 0.22);
}
.nftc.superrare {
  border-color: #55e1ff;
}
.nftc .nft-up {
  margin: 7px;
  padding: 9px;
  border: none;
  border-radius: 11px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  background: var(--btn, #fff);
  color: var(--btn-ink, #08080a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nftc .nft-up:active {
  transform: scale(0.97);
}
.nftc .nft-up.done {
  background: var(--soft);
  color: var(--muted);
}
.nftc .nft-up .coin {
  width: 1em;
  height: 1em;
}
.nft-drop-img {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  object-fit: cover;
  margin: 4px auto;
  border: 2px solid var(--accent);
  display: block;
}
/* ===================== v20 — NFT-маркет + накрутка ===================== */
#nftSeg {
  margin-bottom: 10px;
}
.nftc .nft-sell {
  margin: 0 7px 7px;
  padding: 8px;
  border: none;
  border-radius: 11px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nftc .nft-sell.listed {
  background: rgba(255, 154, 60, 0.16);
  color: #ff9a3c;
  border-color: rgba(255, 154, 60, 0.4);
}
.nftc .nft-sell:active {
  transform: scale(0.97);
}
.nftc .nft-sell i {
  width: 13px;
  height: 13px;
}
.nftc .nft-sell .coin {
  width: 1em;
  height: 1em;
}
.nftc .nft-owner {
  font-size: 10px;
  color: var(--muted);
  padding: 0 8px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.gl select {
  flex: 1;
  min-width: 0;
  border: none;
  background: var(--soft);
  border-radius: 8px;
  padding: 6px;
  color: var(--ink);
  outline: none;
  font-size: 12px;
}
.ap-nft {
  margin-top: 4px;
}
/* ===================== v21 — Кото-Экспедиции ===================== */
.exp-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  margin-bottom: 9px;
  color: var(--ink);
  cursor: pointer;
}
.exp-card:active {
  transform: scale(0.98);
}
.exp-em {
  font-size: 28px;
  line-height: 1;
  flex: none;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  border-radius: 13px;
}
.exp-info {
  flex: 1;
  min-width: 0;
}
.exp-nm {
  font-weight: 800;
  font-size: 15px;
}
.exp-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.exp-mission {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  margin-bottom: 8px;
}
.exp-m-em {
  font-size: 24px;
  flex: none;
}
.exp-m-main {
  flex: 1;
  min-width: 0;
}
.exp-m-main b {
  font-size: 14px;
}
.exp-cd {
  font-weight: 700;
  color: var(--accent);
}
.exp-pick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 6px 0 4px;
  max-height: 44vh;
  overflow-y: auto;
}
.exp-pick {
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--soft);
}
.exp-pick img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.exp-pick.on {
  border-color: var(--accent);
}
.exp-pick-st {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 2px;
}
/* ===================== v22 — Кото-Вселенная (хаб + уровни) ===================== */
.uni-hero {
  padding: 16px;
  margin-bottom: 10px;
  text-align: center;
}
.uni-rank {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.uni-rank-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
}
.uni-rank-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 9px;
  line-height: 1.4;
}
.uni-links {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.uni-links .wbtn {
  flex: 1;
}
.uni-cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px;
  margin-bottom: 9px;
}
.uni-cat-img {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  object-fit: cover;
  flex: none;
  background: var(--soft);
}
.uni-cat-main {
  flex: 1;
  min-width: 0;
}
.uni-cat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.uni-cat-top b {
  font-size: 15px;
}
.uni-id {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.uni-busy {
  font-size: 10px;
  font-weight: 700;
  color: #ff9a3c;
  background: rgba(255, 154, 60, 0.14);
  padding: 2px 7px;
  border-radius: 8px;
}
.uni-xpbar {
  height: 7px;
  border-radius: 7px;
  background: var(--soft);
  overflow: hidden;
  margin: 6px 0 5px;
}
.uni-xpfill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  border-radius: 7px;
  transition: width 0.4s ease;
}
.uni-stats {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.uni-cat-act {
  flex: none;
}
.uni-cat-act .mini {
  white-space: nowrap;
}

/* ================= Settings modal v2 ================= */
#settingsModal .info-card.set-card {
  max-width: 420px;
  padding: 16px 16px 14px;
  align-items: stretch;
  gap: 12px;
  text-align: left;
  animation: setpop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes setpop {
  from {
    transform: translateY(12px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
.set-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.set-top-l {
  display: flex;
  align-items: center;
  gap: 10px;
}
.set-top .info-title {
  font-size: 17px;
}
.set-top-ic {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
}
.set-top-ic i {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.set-x {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
}
.set-x i {
  width: 16px;
  height: 16px;
}
.set-x:active {
  transform: scale(0.92);
}
.set-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.set-group-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
}
#settingsModal .set-row {
  border-radius: 16px;
  gap: 11px !important;
  padding: 13px 14px !important;
}
.set-head {
  gap: 11px;
}
.set-head-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.set-head .sl {
  font-size: 14.5px;
}
.set-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
}
#settingsModal .set-row .si {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
}
#settingsModal .set-row .si i {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
#settingsModal .seg {
  border-radius: 12px;
  padding: 4px;
}
#settingsModal .seg button {
  transition: all 0.15s ease;
}
#settingsModal .seg button:active {
  transform: scale(0.95);
}
#settingsModal .seg button.on {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
#settingsModal .seg.seg-color {
  background: transparent;
  border: none;
  padding: 2px 0 0;
  justify-content: space-between;
}
#settingsModal .seg.seg-color button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: var(--sw);
  border: 2px solid transparent;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
#settingsModal .seg.seg-color button::after {
  content: "";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.15s ease;
}
#settingsModal .seg.seg-color button.on {
  border-color: var(--ink);
  transform: scale(1.12);
}
#settingsModal .seg.seg-color button.on::after {
  content: "✓";
  opacity: 1;
}
.set-font-seg button {
  font-size: 12px;
}
.ff-unbounded {
  font-family: "Unbounded", sans-serif;
}
.ff-roboto {
  font-family: "Roboto", sans-serif;
}
.ff-rubik {
  font-family: "Rubik", sans-serif;
}
.ff-montserrat {
  font-family: "Montserrat", sans-serif;
}
#settingsModal .set-row.set-row-btn {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.set-go {
  display: flex;
  align-items: center;
  gap: 3px;
  border: none;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  flex: none;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.set-go i {
  width: 15px;
  height: 15px;
}
.set-go:active {
  transform: scale(0.94);
  filter: brightness(1.1);
}
#settingsModal .set-done {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  background: var(--btn);
  color: var(--btn-ink);
}
#settingsModal .set-done:active {
  transform: scale(0.97);
}

/* ================= Settings: fit mobile ================= */
#settingsModal {
  padding: 14px;
  overflow-y: auto;
}
#settingsModal .info-card.set-card {
  max-height: min(88vh, 88dvh);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
#settingsModal .info-card.set-card::-webkit-scrollbar {
  display: none;
}
@media (max-height: 720px) {
  #settingsModal .info-card.set-card {
    padding: 12px 12px 10px;
    gap: 9px;
  }
  #settingsModal .set-row {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  #settingsModal .set-done {
    padding: 10px;
  }
}

/* ================= Global animations ================= */
.screen:not([hidden]) {
  animation: screenIn 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.info-modal:not([hidden]) .info-card {
  animation: cardPop 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.18);
}
@keyframes cardPop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.tab:active {
  transform: scale(0.9);
}
.tab.active svg,
.tab.active i {
  animation: tabPop 0.3s ease;
}
@keyframes tabPop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: none;
  }
}
.mini:active {
  transform: scale(0.95);
  filter: brightness(1.08);
}
.home-xp-fill,
.pxpbar-fill,
.rfill {
  transition: width 0.45s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .screen:not([hidden]),
  .info-modal:not([hidden]) .info-card,
  .tab.active svg,
  .tab.active i {
    animation: none !important;
  }
}
