/* ==========================================================================
   Z-LINGO STYLES · 04-home-dashboard.css
   Главный дашборд Z-LINGO 2.0 (Навигация, Hero, Промо-бой, Bento Grid)
   ========================================================================== */

/* ==========================================================================
   Z-LINGO 2.0 UI: ГЛАВНЫЙ ДАШБОРД (МАКЕТ 1) + БОЕВАЯ АКАДЕМИЯ (МАКЕТ 2)
   Отрисовка и динамика холста сохранены на 100%!
   ========================================================================== */

.show-mobile-only {
  display: none !important;
}

@media (max-width: 960px) {
  .show-mobile-only {
    display: inline-flex !important;
  }
}

/* --- 1. ГЛАВНЫЙ ЭКРАН-ДАШБОРД (mode-title) --- */
.arcade-title-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  padding: max(12px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom));
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.4) rgba(15, 23, 42, 0.4);
}

.home-shell {
  width: min(1320px, 100%);
  min-height: calc(100dvh - 30px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

/* Верхняя навигационная панель */
.home-navbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 6px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  flex-wrap: nowrap;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-picture {
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 14px rgba(56, 189, 248, 0.36));
  transition: transform 0.16s ease, filter 0.16s ease;
}

.home-brand:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 4px 18px rgba(56, 189, 248, 0.52));
}

.home-brand-rocket {
  font-size: 1.65rem;
  filter: drop-shadow(0 0 10px rgba(251, 146, 60, 0.6));
}

.home-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.home-brand-title {
  font-family: var(--font-logo);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.55);
  line-height: 1.05;
}

.home-brand-sub {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  min-width: 0;
}

.home-nav-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-family: var(--font-ui);
  font-size: 0.89rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.nav-pill-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity 0.16s ease, filter 0.16s ease;
}

.home-nav-pill:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.45);
  border-color: rgba(56, 189, 248, 0.25);
}

.home-nav-pill:hover .nav-pill-svg,
.home-nav-pill.active .nav-pill-svg {
  opacity: 1;
}

.home-nav-pill.active {
  color: #ffffff;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.16), rgba(14, 165, 233, 0.08));
  border-color: transparent;
  box-shadow: none;
}

.home-nav-pill.active .nav-pill-svg {
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.55));
}

.home-nav-pill.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8 0%, #2dd4bf 100%);
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.85), 0 0 22px rgba(56, 189, 248, 0.55);
}

.home-nav-pill.admin-nav-pill {
  padding: 6px 11px;
  font-size: 0.84rem;
  color: #fde68a;
  opacity: 0.85;
}

.home-nav-pill.admin-nav-pill:hover {
  opacity: 1;
  border-color: rgba(251, 191, 36, 0.42);
}

.home-nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.home-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease;
  font-variant-numeric: tabular-nums;
}

.home-stat-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.chip-icon-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.chip-icon-orb svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-stat-chip.streak {
  background: rgba(24, 17, 15, 0.84);
  border: 1.4px solid rgba(251, 146, 60, 0.72);
  color: #f8fafc;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.22);
}

.home-stat-chip.trophy {
  background: rgba(24, 21, 14, 0.84);
  border: 1.4px solid rgba(250, 204, 21, 0.72);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.2);
}

.nav-lang-dropdown {
  position: relative;
}

.nav-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.3px solid rgba(112, 168, 255, 0.34);
  background: rgba(13, 23, 46, 0.86);
  color: #f8fafc;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.nav-lang-trigger:hover {
  border-color: rgba(56, 189, 248, 0.7);
  background: rgba(20, 34, 66, 0.92);
}

.svg-flag-icon {
  width: 19px;
  height: 13px;
  border-radius: 3px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.nav-lang-chevron {
  width: 14px;
  height: 14px;
  color: #94a3b8;
}

.nav-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 312px;
  max-width: calc(100vw - 24px);
  padding: 7px;
  border-radius: 14px;
  background: rgba(9, 17, 36, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.72);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  z-index: 60;
}

@media (max-width: 480px) {
  .nav-lang-menu {
    min-width: 220px;
    grid-template-columns: 1fr;
    max-height: 280px;
    overflow-y: auto;
  }
}

.nav-lang-menu.hidden {
  display: none;
}

.nav-lang-menu .native-lang-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.nav-lang-menu .native-lang-btn:hover {
  background: rgba(30, 41, 59, 0.78);
  color: #ffffff;
}

.nav-lang-menu .native-lang-btn.active {
  background: rgba(14, 165, 233, 0.24);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}

.home-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.4px solid rgba(112, 168, 255, 0.4);
  background: rgba(13, 23, 46, 0.88);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.avatar-gear-desktop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-user-desktop-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.home-avatar-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.28);
  color: #ffffff;
}

/* 2. Hero-секция (Карточка миссии слева + Живое окно космоса справа!) */
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(19, 32, 64, 0.74) 0%, rgba(9, 17, 38, 0.84) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(112, 168, 255, 0.24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-only-hero-stack {
  display: none;
}

.home-hero-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: var(--font-heading);
  line-height: 1.1;
}

.hero-line-white {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 2.9vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.hero-line-gold {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 2.9vw, 2.75rem);
  font-weight: 800;
  background: linear-gradient(90deg, #fde047 0%, #fb923c 65%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero-subtitle {
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 500;
  color: #cbd5e1;
  max-width: 540px;
  line-height: 1.42;
}

.home-hero-perks {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hero-perk-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.45);
  font-size: 0.95rem;
}

.home-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.hero-green-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(167, 243, 208, 0.9);
  background: linear-gradient(180deg, #34d399 0%, #10b981 55%, #059669 100%);
  color: #022c22;
  font-family: var(--font-ui);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero-green-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.hero-cta-play-icon {
  font-size: 0.92rem;
}

.hero-cta-arrow {
  font-size: 1.25rem;
  line-height: 1;
}

.desktop-mission-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
}

.mission-main-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.mission-kicker {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.01em;
}

.mission-body-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.mission-thumb-art {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(125, 211, 252, 0.36);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.46), 0 0 18px rgba(56, 189, 248, 0.18);
  background: #0f172a;
}

.mission-art-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mission-info-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mission-course-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.55vw, 1.46rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-course-sub {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mission-prog-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
  margin-top: 4px;
}

.mission-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #34d399, #2dd4bf);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.55);
  transition: width 0.35s ease;
}

.mission-prog-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  text-align: end;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.mission-launch-cta {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(167, 243, 208, 0.92);
  background: linear-gradient(180deg, #4ade80 0%, #10b981 58%, #059669 100%);
  color: #022c22;
  font-family: var(--font-ui);
  font-size: 1.04rem;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.mission-launch-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.mission-cta-play {
  position: relative;
  z-index: 1;
  font-size: 0.88rem;
}

.mission-v-divider {
  width: 1px;
  align-self: stretch;
  margin: 12px 0;
  background: linear-gradient(180deg, transparent, rgba(148, 163, 184, 0.24), transparent);
  flex-shrink: 0;
}

.mission-daily-goal {
  width: 124px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.22);
  color: #f8fafc;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.mission-daily-goal:hover {
  background: rgba(30, 41, 59, 0.48);
  border-color: rgba(56, 189, 248, 0.38);
  transform: translateY(-1px);
}

.daily-goal-target-svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.daily-goal-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
}

.daily-goal-target {
  font-size: 1rem;
  font-weight: 500;
  color: #e2e8f0;
  line-height: 1.1;
}

.daily-goal-target strong {
  font-size: 1.32rem;
  font-weight: 800;
  color: #ffffff;
}

.daily-goal-bar {
  width: 86%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
  margin-top: 2px;
}

.daily-goal-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #2dd4bf);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
  transition: width 0.35s ease;
}

.daily-goal-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

/* Правая рамка-монитор ПРОМО-БОЯ (прозрачная середина над живым холстом #gameCanvas!) */
.home-promo-monitor {
  position: relative;
  min-height: 248px;
  border-radius: 22px;
  border: 1.5px solid rgba(112, 168, 255, 0.44);
  background: radial-gradient(120% 62% at 50% 106%, rgba(14, 165, 233, 0.18) 0%, rgba(4, 9, 22, 0.12) 58%, rgba(4, 9, 22, 0.22) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), inset 0 0 26px rgba(56, 189, 248, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-monitor-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 4px;
  pointer-events: none;
}

.promo-hearts {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 2px;
}

.promo-heart-svg {
  width: 16px;
  height: 16px;
  filter: drop-shadow(0 0 7px rgba(251, 113, 133, 0.72));
}

.promo-center-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 72%;
}

.promo-stage-pill {
  padding: 3px 13px;
  border-radius: 999px;
  background: rgba(9, 19, 40, 0.84);
  border: 1px solid rgba(112, 168, 255, 0.42);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.promo-target-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 15px;
  border-radius: 999px;
  background: rgba(11, 17, 36, 0.9);
  border: 1.4px solid rgba(250, 204, 21, 0.74);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.28);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-target-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.promo-target-label {
  color: #fde047;
  font-weight: 700;
}

.promo-target-word {
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-weapon-cycle {
  pointer-events: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.55);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.promo-weapon-cycle:hover {
  transform: scale(1.1);
  border-color: var(--accent-emerald);
}

.promo-horizon-glow {
  height: 18px;
  width: 100%;
  background: radial-gradient(65% 100% at 50% 100%, rgba(56, 189, 248, 0.28), transparent 80%);
  pointer-events: none;
}

/* 3. Полоса 3 шагов и старый футер — скрыты на новом десктопе (показываются на <= 768px в 08-mobile.css) */
.home-how-section,
.home-bottom-features {
  display: none;
}

.home-steps-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 14px;
  background: rgba(9, 16, 35, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.28);
  flex-wrap: wrap;
}

.home-step-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: #ffffff;
}

.step-num.step-1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.step-num.step-2 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.step-num.step-3 { background: linear-gradient(135deg, #10b981, #059669); }

.step-chevron {
  color: rgba(148, 163, 184, 0.55);
  font-size: 1.2rem;
  font-weight: 800;
}

/* 4. Трёхколоночная Bento-сетка */
.home-bento-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 292px;
  gap: 16px;
  align-items: stretch;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.bento-card {
  border-radius: 22px;
  padding: 15px 16px;
  background: linear-gradient(155deg, rgba(16, 28, 56, 0.76) 0%, rgba(8, 15, 34, 0.86) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(112, 168, 255, 0.24);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.bento-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.bento-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bento-title-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Левая колонка: Изучаемый язык и Уровень */
.home-lang-card {
  position: relative;
  z-index: 5;
  gap: 12px;
}

.home-lang-card.dropdown-open {
  z-index: 35;
}

.target-lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.4px solid rgba(112, 168, 255, 0.34);
  background: rgba(10, 19, 38, 0.88);
  color: #f8fafc;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lang-dropdown-trigger:hover {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
}

.lang-dropdown-val {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.lang-dropdown-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lang-dropdown-caret {
  width: 15px;
  height: 15px;
  color: #94a3b8;
  flex-shrink: 0;
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 290px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 13px;
  background: rgba(8, 16, 36, 0.97);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.72);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 45;
  scrollbar-width: thin;
}

.lang-dropdown-menu.hidden {
  display: none;
}

.home-lang-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.home-lang-row:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(30, 41, 59, 0.85);
  color: #ffffff;
}

.home-lang-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.home-lang-flag {
  display: inline-flex;
  align-items: center;
}

.home-lang-check {
  opacity: 0;
  color: #4ade80;
  font-weight: 900;
  transition: opacity 0.14s ease;
}

.home-lang-row.active {
  border-color: rgba(52, 211, 153, 0.72);
  background: linear-gradient(90deg, rgba(22, 163, 74, 0.25), rgba(15, 23, 42, 0.88));
  color: #ffffff;
}

.home-lang-row.active .home-lang-check {
  opacity: 1;
}

.home-level-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-level-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #94a3b8;
}

.home-level-pills {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.home-level-pill {
  padding: 8px 4px;
  border-radius: 10px;
  border: 1.4px solid rgba(112, 168, 255, 0.26);
  background: rgba(12, 22, 46, 0.82);
  color: #cbd5e1;
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.home-level-pill:hover {
  border-color: rgba(56, 189, 248, 0.65);
  color: #ffffff;
}

.home-level-pill.course-hint {
  border-color: rgba(52, 211, 153, 0.72);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.22);
}

.home-level-pill.active {
  border-color: #34d399;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.3), rgba(6, 78, 59, 0.65));
  color: #ffffff;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.35);
}

.home-theme-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.home-theme-dropdown {
  position: relative;
}

.home-theme-trigger {
  padding: 8px 11px;
  font-size: 0.86rem;
}

.home-theme-trigger-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-theme-mini-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-theme-menu {
  min-width: 282px;
  right: auto;
  inset-inline-start: 0;
  max-height: 300px;
}

.home-theme-row {
  gap: 8px;
  padding: 7px 9px;
  font-size: 0.83rem;
}

.home-theme-row-main {
  min-width: 0;
  flex: 1 1 auto;
}

.home-theme-row-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
}

.home-theme-row-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-theme-row-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.home-theme-row-meta {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 1px 6px;
}

.home-more-langs-btn {
  margin-top: auto;
  width: 100%;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(14, 28, 56, 0.72);
  color: #cbd5e1;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.14s ease;
}

.home-more-langs-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(20, 40, 78, 0.88);
  color: #ffffff;
}

/* Центральная карточка: Популярные курсы */
.quickstart-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.quickstart-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.courses-all-link {
  background: none;
  border: none;
  color: #7dd3fc;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.courses-all-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* Сетка из 4 карточек курсов */
.quickstart-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  flex: 1 1 auto;
}

.qs-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 13px 12px;
  border-radius: 16px;
  border: 1.4px solid rgba(112, 168, 255, 0.24);
  background: linear-gradient(165deg, rgba(16, 29, 60, 0.78) 0%, rgba(9, 17, 36, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  text-align: start;
  color: #f8fafc;
  font-family: var(--font-ui);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.qs-course-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.68);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

.qs-course-card.active {
  border-color: #34d399;
  background: linear-gradient(165deg, rgba(13, 46, 56, 0.86) 0%, rgba(8, 22, 38, 0.94) 100%);
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.28), inset 0 0 18px rgba(45, 212, 191, 0.12);
}

.qs-card-icon-wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.qs-svg-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  overflow: hidden;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.48));
}

.qs-card-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.qs-card-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.48em;
}

.qs-card-meta-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.qs-card-meta {
  font-size: 0.74rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qs-art-play {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #4ade80, #10b981);
  color: #022c22;
  font-size: 0.68rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.qs-course-card.active .qs-art-play,
.qs-course-card:hover .qs-art-play {
  opacity: 1;
  transform: scale(1);
}

.qs-card-prog-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.qs-prog-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.qs-prog-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ade80, #2dd4bf);
}

.qs-prog-text {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Правая колонка Дашборда: Мой прогресс + Топ игроков */
.home-right-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-progress-card,
.home-leaderboard-card {
  flex: 1;
}

.card-link-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.14s ease, transform 0.14s ease;
}

.card-link-btn:hover {
  color: var(--accent-cyan);
  transform: translateX(2px);
}

.progress-ring-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: auto 0;
}

.donut-ring-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.donut-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.28));
}

.donut-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 8;
}

.donut-fg {
  fill: none;
  stroke: url(#zlingoRingGrad);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.donut-percent-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.progress-metrics-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.prog-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.prog-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-mini-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.prog-metric-val {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Мини-список Топ-3 игроков */
.mini-leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-leader-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(10, 19, 38, 0.74);
  border: 1px solid rgba(112, 168, 255, 0.16);
  font-size: 0.84rem;
}

.mini-leader-row.is-you {
  border-color: rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.16);
}

.mini-leader-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.leader-crown-svg {
  width: 16px;
  height: 14px;
  flex-shrink: 0;
}

.leader-avatar-svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.leader-name {
  font-weight: 600;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.leader-score {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* 4Б. Нижняя панель быстрого фильтра по темам (только ПК) */
.desktop-topics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(16, 28, 56, 0.76) 0%, rgba(8, 15, 34, 0.86) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(112, 168, 255, 0.24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.desktop-topics-heading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.desktop-topics-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.desktop-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.4px solid rgba(112, 168, 255, 0.28);
  background: rgba(11, 20, 42, 0.82);
  color: #e2e8f0;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.desktop-topic-chip:hover {
  border-color: rgba(56, 189, 248, 0.7);
  color: #ffffff;
  transform: translateY(-1px);
}

.desktop-topic-chip.active {
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.22));
  color: #ffffff;
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.32), inset 0 0 10px rgba(52, 211, 153, 0.16);
}

.topic-chip-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Адаптация для компактных ноутбуков и планшетов (769px–1180px) */
@media (max-width: 1180px) and (min-width: 769px) {
  .brand-logo-img {
    height: 40px;
  }

  .home-nav-pill {
    padding: 6px 8px;
    font-size: 0.82rem;
    gap: 4px;
  }

  .nav-pill-svg {
    width: 15px;
    height: 15px;
  }

  .home-stat-chip {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .nav-lang-trigger {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .home-bento-grid {
    grid-template-columns: 204px minmax(0, 1fr) 256px;
    gap: 12px;
  }

  .mission-thumb-art {
    width: 106px;
    height: 106px;
  }

  .mission-daily-goal {
    width: 108px;
  }

  .desktop-topic-chip {
    padding: 7px 12px;
    font-size: 0.82rem;
  }
}

@media (max-width: 960px) and (min-width: 769px) {
  .home-nav-pill {
    padding: 6px 6px;
    font-size: 0.78rem;
  }

  .nav-pill-svg {
    display: none;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .home-hero-grid {
    grid-template-columns: 1fr;
  }

  .home-bento-grid {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .home-right-stack {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .quickstart-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[dir="rtl"] .dir-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

/* Компактная подстройка для ноутбуков с небольшой высотой окна браузера (<= 790px) */
@media (max-height: 790px) and (min-width: 769px) {
  .arcade-title-screen {
    padding: 8px 18px 10px;
  }

  .home-shell {
    min-height: calc(100dvh - 18px);
    gap: 10px;
  }

  body.mode-title .home-dashboard-view {
    gap: 10px;
  }

  .brand-logo-img {
    height: 42px;
  }

  .home-hero-copy {
    padding: 15px 18px;
  }

  .mission-thumb-art {
    width: 114px;
    height: 114px;
  }

  .mission-launch-cta {
    padding: 10px 18px;
    font-size: 0.98rem;
  }

  .home-promo-monitor {
    min-height: 214px;
  }

  .bento-card {
    padding: 12px 14px;
    gap: 8px;
  }

  .qs-card-icon-wrap {
    height: 52px;
    margin-bottom: 6px;
  }

  .qs-svg-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .qs-course-card {
    padding: 11px 11px 10px;
  }

  .desktop-topics-bar {
    padding: 8px 14px;
  }

  .desktop-topic-chip {
    padding: 6px 13px;
    font-size: 0.84rem;
  }
}

/* ==========================================================================
   FSRS-5 ПИЛЛ-КНОПКА, ПРАВОВОЙ ФУТЕР И GDPR COOKIE BANNER
   ========================================================================== */
.home-fsrs-pill {
  margin-top: 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(14, 165, 233, 0.14));
  color: #ecfdf5;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.home-fsrs-pill:hover {
  transform: translateY(-1px);
  border-color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.22));
}

.home-fsrs-pill.hidden {
  display: none !important;
}

.home-legal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 14px 4px;
  font-size: 0.76rem;
  color: #94a3b8;
}

.home-legal-link,
.home-legal-link-btn {
  background: transparent;
  border: none;
  padding: 2px 4px;
  color: #94a3b8;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.home-legal-link:hover,
.home-legal-link-btn:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.home-legal-sep {
  color: rgba(148, 163, 184, 0.45);
  user-select: none;
}

.cookie-consent-banner {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  margin: 0 auto;
  max-width: 980px;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(9, 17, 36, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.cookie-consent-banner.hidden {
  display: none !important;
}

.cookie-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 800;
  color: #f8fafc;
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 9px 14px;
  border-radius: 11px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.cookie-btn-neutral {
  background: rgba(30, 58, 108, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #f1f5f9;
}

.cookie-btn-neutral:hover {
  background: rgba(56, 189, 248, 0.24);
  border-color: #7dd3fc;
  transform: translateY(-1px);
}

.cookie-btn-link {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.cookie-btn-link:hover {
  border-color: #94a3b8;
  color: #ffffff;
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: 72px;
    flex-direction: column;
    align-items: stretch;
    padding: 13px 14px;
    gap: 10px;
  }

  .cookie-banner-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-banner-actions .cookie-btn {
    min-width: 0;
    white-space: normal;
    text-align: center;
    padding: 9px 10px;
  }

  .cookie-banner-actions .cookie-btn-link {
    grid-column: 1 / -1;
  }

  .home-legal-footer {
    padding-bottom: 14px;
  }
}

/* ==========================================================================
   КНОПКА АККАУНТА GOOGLE (GMAIL) В ВЕРХНЕЙ ПАНЕЛИ
   ========================================================================== */
.home-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.4px solid rgba(56, 189, 248, 0.42);
  background: rgba(13, 23, 46, 0.9);
  color: #f1f5f9;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.home-auth-pill:hover,
.home-auth-pill.active {
  border-color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.home-auth-pill.is-signed-in {
  border-color: rgba(52, 211, 153, 0.58);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(14, 165, 233, 0.2));
}

.home-auth-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.74rem;
  overflow: hidden;
  flex-shrink: 0;
}

.home-auth-g-svg {
  width: 14px;
  height: 14px;
  display: block;
}

.home-auth-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1140px) and (min-width: 769px) {
  .home-auth-label {
    display: none;
  }

  .home-auth-pill {
    padding: 0;
    width: 34px;
    height: 34px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .home-auth-pill {
    padding: 5px 10px;
    font-size: 0.78rem;
  }
}

@media (max-width: 460px) {
  .home-auth-label {
    display: none;
  }

  .home-auth-pill {
    padding: 6px;
    width: 36px;
    height: 36px;
    justify-content: center;
  }
}

