﻿/* CS Rabbits — home landing + dashboard (index.html only) */

:root {
  --home-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --home-font-display: 'Unbounded', var(--home-font-body);

  --home-bg-deep: #0f131a;
  --home-bg-base: #151a24;
  --home-surface: rgba(255, 255, 255, 0.06);
  --home-surface-hover: rgba(255, 255, 255, 0.09);
  --home-border: rgba(255, 255, 255, 0.11);
  --home-border-glow: rgba(124, 58, 237, 0.35);

  --home-text: #eef0f6;
  --home-muted: #9aa3b8;
  --home-purple: #7c3aed;
  --home-cyan: #22d3ee;
  --home-gold: #f59e0b;
  --home-mint: #34d399;
  --home-orange: #f97316;
  --home-red: #ef4444;

  --home-easy: #34d399;
  --home-medium: #22d3ee;
  --home-hard: #f97316;
  --home-elite: #a78bfa;

  --home-radius-sm: 8px;
  --home-radius-md: 12px;
  --home-radius-lg: 16px;
  --home-radius-xl: 24px;

  --home-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --home-shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

  --home-container: 1280px;
  --home-banner-h: 0px;
  --home-header-h: 64px;
  --home-section-gap: 80px;
  --home-section-gap-sm: 48px;

  --home-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* в”Ђв”Ђ Ambient background в”Ђв”Ђ */
.home-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-ambient__mesh {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(124, 58, 237, 0.14), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 45% 35% at 60% 80%, rgba(245, 158, 11, 0.07), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(124, 58, 237, 0.08), transparent 45%);
  animation: home-mesh-drift 20s ease-in-out infinite alternate;
}

.home-ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

@keyframes home-mesh-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.05); }
}

/* в”Ђв”Ђ Preview banner в”Ђв”Ђ */


/* ── Header (index / preview-style) ── */
body.is-home header.home-header {
  display: block;
  flex-direction: unset;
  align-items: stretch;
  top: 0;
  margin-top: 0;
  min-height: var(--home-header-h);
  height: auto;
  box-shadow: none;
}

body.is-guest .site-nav {
  display: none !important;
}

body.is-logged-in .home-nav.guest-nav {
  display: none !important;
}

body.is-logged-in .site-nav {
  display: none;
}

body.is-guest .xp-chip {
  display: none;
}

body.is-logged-in .guest-free-tag,
body.is-logged-in .home-header__free-tag {
  display: none !important;
}

.home-header {
  position: sticky;
  top: var(--home-banner-h);
  z-index: 100;
  min-height: var(--home-header-h);
  height: auto;
  margin-top: var(--home-banner-h);
  background: var(--header-bg, rgba(7, 8, 13, 0.82));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--header-border, var(--home-border));
}

.home-header__inner {
  max-width: var(--home-container);
  margin: 0 auto;
  min-height: var(--home-header-h);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Сброс стилей site-chrome для навигации внутри home-header */
.home-header .header-nav,
.home-header .site-nav {
  padding: 0;
  max-width: none;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.home-header .header-nav::-webkit-scrollbar,
.home-header .site-nav::-webkit-scrollbar {
  display: none;
}

.home-header .header-nav a,
.home-header .header-nav .nav-link,
.home-header .site-nav a,
.home-header .site-nav .nav-link {
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-header .header-nav a:hover,
.home-header .header-nav .nav-link:hover,
.home-header .site-nav a:hover,
.home-header .site-nav .nav-link:hover {
  border-color: transparent;
  transform: none;
}

.home-header .header-nav a.nav-active,
.home-header .header-nav .nav-link.nav-active,
.home-header .site-nav a.nav-active,
.home-header .site-nav .nav-link.nav-active {
  border: none;
  background: rgba(34, 211, 238, 0.1);
  color: var(--home-cyan);
}

.home-header .header-nav .btn-outline,
.home-header #openSetupModal {
  border: 1px solid var(--home-border);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--home-muted);
  padding: 7px 12px;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.home-header .header-nav .btn-outline:hover,
.home-header #openSetupModal:hover {
  color: var(--home-text);
  border-color: var(--home-muted);
  transform: none;
}

.home-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--home-text);
  flex-shrink: 0;
}

.home-logo__img {
  width: 32px;
  height: 32px;
}

.home-logo__text {
  font-family: var(--home-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
  justify-content: center;
  align-items: center;
}

.home-nav__link {
  padding: 8px 14px;
  border-radius: var(--home-radius-sm);
  color: var(--home-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s var(--home-ease), background 0.25s var(--home-ease);
}

.home-nav__link:hover {
  color: var(--home-text);
  background: var(--home-surface);
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.home-header__actions .btn-primary,
.home-header__actions #loginSteam {
  padding: 9px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.home-header__actions .xp-chip {
  padding: 6px 12px;
  font-size: 11px;
}

.home-header__free-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--home-mint);
  letter-spacing: 0.02em;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--home-radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.3s var(--home-ease), box-shadow 0.3s var(--home-ease), background 0.3s var(--home-ease), border-color 0.3s var(--home-ease), color 0.3s var(--home-ease);
}

.home-btn--primary {
  background: linear-gradient(135deg, var(--home-purple), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.home-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45);
}

.home-btn--outline {
  background: transparent;
  color: var(--home-text);
  border: 1px solid var(--home-border);
}

.home-btn--outline:hover {
  border-color: var(--home-cyan);
  color: var(--home-cyan);
  transform: translateY(-2px);
}

.home-btn--gold {
  background: linear-gradient(135deg, var(--home-gold), #d97706);
  color: #1a1200;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.home-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.4);
}

.home-btn--demo {
  pointer-events: none;
  opacity: 0.85;
  position: relative;
}

.home-btn--sm {
  padding: 7px 14px;
  font-size: 12px;
}

.home-btn--lg {
  padding: 14px 32px;
  font-size: 15px;
}

.home-btn--demo::after {
  content: 'РґРµРјРѕ';
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--home-cyan);
  color: #0a1628;
}

/* Layout */
.home-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

main.home-main {
  display: flex;
  flex-direction: column;
  gap: var(--home-section-gap);
  padding: 48px 0 var(--home-section-gap);
}

.home-container {
  max-width: var(--home-container);
  margin: 0 auto;
  padding: 0 24px;
}

.home-section {
  padding: 0;
  scroll-margin-top: calc(var(--home-banner-h) + var(--home-header-h) + 16px);
}

/* Scroll reveal — landing only */
#guestLanding .home-reveal:not(.home-reveal--instant) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--home-ease), transform 0.7s var(--home-ease);
}

#guestLanding .home-reveal.is-visible,
#guestLanding .home-reveal--instant {
  opacity: 1;
  transform: translateY(0);
}

.home-reveal--delay-1 { transition-delay: 0.1s; }
.home-reveal--delay-2 { transition-delay: 0.2s; }
.home-reveal--delay-3 { transition-delay: 0.3s; }

/* Above-the-fold: no scroll wait */
#guestLanding .home-reveal--instant {
  opacity: 1;
  transform: none;
}

.dashboard-main {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.home-hero__content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--home-cyan);
  margin-bottom: 20px;
}

.home-hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-mint);
  animation: home-pulse-dot 2s ease-in-out infinite;
}

@keyframes home-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.home-hero__title {
  font-family: var(--home-font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.home-hero__title-accent {
  background: linear-gradient(135deg, var(--home-gold), var(--home-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero__subtitle {
  font-size: 16px;
  color: var(--home-muted);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 24px;
}

.home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.home-hero__cta .btn-gold,
.home-hero__cta .btn-outline {
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--home-font-body);
  border-radius: var(--home-radius-sm);
  line-height: 1.2;
  min-height: 44px;
  transition: transform 0.25s var(--home-ease), box-shadow 0.25s var(--home-ease),
    border-color 0.25s var(--home-ease), color 0.25s var(--home-ease), background 0.25s var(--home-ease);
}

.home-hero__cta .btn-outline {
  color: var(--home-text);
  border: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.04);
}

.home-hero__cta .btn-outline:hover {
  color: var(--home-cyan);
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
}

.home-hero__trust {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--home-radius-md);
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  max-width: 420px;
}

.home-hero__trust li {
  font-size: 13px;
  color: var(--home-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.home-hero__trust li::before {
  content: '\2713';
  color: var(--home-mint);
  font-weight: 700;
  font-size: 11px;
}

.home-hero__trust-item--telegram::before {
  display: none;
}

.home-hero__trust-item--telegram .telegram-logo-img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: block;
}

.home-hero__stats {
  margin-top: 28px;
  padding-top: 4px;
}

.home-hero__visual {
  position: relative;
  min-width: 0;
}

.home-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  background: linear-gradient(135deg, #1c2230 0%, #221a38 50%, #152030 100%);
  border: 1px solid var(--home-border);
}

.home-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 60%
  );
  animation: home-shimmer 3s ease-in-out infinite;
}

@keyframes home-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.home-placeholder__label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 1;
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-placeholder__icon {
  font-size: 40px;
  opacity: 0.5;
}

.home-hero__placeholder {
  aspect-ratio: 16 / 10;
  box-shadow: var(--home-shadow-card), var(--home-shadow-glow);
}

.home-hero__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: home-float-glow 6s ease-in-out infinite alternate;
}

.home-hero__glow--1 {
  top: -40px;
  right: -20px;
  background: rgba(124, 58, 237, 0.4);
}

.home-hero__glow--2 {
  bottom: -30px;
  left: 20px;
  background: rgba(34, 211, 238, 0.25);
  animation-delay: -3s;
}

@keyframes home-float-glow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, -15px); }
}

/* в”Ђв”Ђ Stats в”Ђв”Ђ */
.home-stats {
  padding: 0;
}

.home-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.home-stat {
  padding: 28px 24px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--home-radius-md);
  background: var(--home-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--home-border);
  text-align: center;
  transition: transform 0.35s var(--home-ease), border-color 0.35s var(--home-ease);
}

.home-stat:hover {
  transform: translateY(-4px);
  border-color: var(--home-border-glow);
}

.home-stat__value {
  font-family: var(--home-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 8px;
  line-height: 1.1;
}

.home-stat__value--gold { color: var(--home-gold); }
.home-stat__value--cyan { color: var(--home-cyan); }
.home-stat__value--purple { color: var(--home-purple); }

.home-stat__label {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.45;
}

/* в”Ђв”Ђ Section headings в”Ђв”Ђ */
.home-section-head {
  margin-bottom: 28px;
}

.home-section-head__title {
  font-family: var(--home-font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-section-head__sub {
  font-size: 14px;
  color: var(--home-muted);
  margin-top: 4px;
}

/* в”Ђв”Ђ Glass card base в”Ђв”Ђ */
.home-card {
  border-radius: var(--home-radius-md);
  background: var(--home-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--home-border);
  transition: transform 0.35s var(--home-ease), box-shadow 0.35s var(--home-ease), border-color 0.35s var(--home-ease);
}

.home-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: var(--home-shadow-card);
}

/* Features */
.home-features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.home-feature {
  padding: 24px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-feature__icon {
  font-size: 32px;
  margin-bottom: 14px;
}

.home-feature__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}

.home-feature__desc {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.55;
  flex: 1;
}

/* Challenge preview */
.home-challenges-preview .home-daily-scroll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-challenges-preview .home-weekly {
  margin-top: 20px;
}

/* в”Ђв”Ђ Profile sidebar в”Ђв”Ђ */
.home-profile {
  padding: 20px;
  position: sticky;
  top: calc(var(--home-banner-h) + var(--home-header-h) + 16px);
}

.home-profile__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--home-radius-md);
  margin: 0 auto 12px;
  aspect-ratio: 1;
}

.home-profile__name {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.home-profile__rank {
  text-align: center;
  font-size: 12px;
  color: var(--home-muted);
  margin-bottom: 16px;
}

.home-profile__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-profile__stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.home-profile__stat-label { color: var(--home-muted); }
.home-profile__stat-value { font-weight: 600; }
.home-profile__stat-value--gold { color: var(--home-gold); }

.home-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.home-badge--success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--home-mint);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.home-badge--streak {
  background: rgba(249, 115, 22, 0.15);
  color: var(--home-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* в”Ђв”Ђ Challenge cards в”Ђв”Ђ */
.home-challenges-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-daily-scroll {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-challenge-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.home-stat--compact {
  padding: 20px 16px;
  min-height: 0;
}

.home-stat--compact .home-stat__value {
  font-size: 28px;
}

/* Features — single panel */
.home-features-panel {
  padding: 8px 0;
}

.home-features-panel:hover {
  transform: none;
}

.home-features-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.home-feature-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 22px;
  border-bottom: 1px solid var(--home-border);
}

.home-features-panel__grid .home-feature-row:nth-last-child(-n+2) {
  border-bottom: none;
}

.home-feature-row__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.home-feature-row__icon--telegram {
  width: 24px;
  height: 24px;
  margin-top: 0;
  object-fit: contain;
  display: block;
}

.home-feature-row__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-feature-row__desc {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.45;
}

/* Bonuses — compact list */
.home-perks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: var(--home-radius-md);
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  overflow: hidden;
}

.home-perks__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--home-border);
}

.home-perks__item:last-child {
  border-bottom: none;
}

.home-perks__icon {
  font-size: 22px;
  line-height: 1;
}

.home-perks__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-perks__title {
  font-size: 14px;
  font-weight: 700;
}

.home-perks__desc {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.4;
}

.home-perks__price {
  font-size: 12px;
  font-weight: 700;
  color: var(--home-gold);
  white-space: nowrap;
}

/* Challenge preview (no hover lock) */
.home-challenge-card--preview {
  opacity: 0.92;
}

.home-challenge-card__lock {
  display: none !important;
}

.home-challenge-card__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.home-challenge-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--home-radius-sm);
  flex-shrink: 0;
}

.home-challenge-card__info { flex: 1; min-width: 0; }

.home-difficulty {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.home-difficulty--easy { background: rgba(52, 211, 153, 0.15); color: var(--home-easy); }
.home-difficulty--medium { background: rgba(34, 211, 238, 0.15); color: var(--home-medium); }
.home-difficulty--hard { background: rgba(249, 115, 22, 0.15); color: var(--home-hard); }
.home-difficulty--elite { background: rgba(167, 139, 250, 0.15); color: var(--home-elite); }

.home-challenge-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.home-challenge-card__reward {
  font-size: 12px;
  color: var(--home-gold);
  font-weight: 600;
}

.home-progress {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.home-progress__bar {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--home-purple), var(--home-cyan));
  transition: width 1s var(--home-ease);
}

.home-challenge-card__progress-text {
  font-size: 11px;
  color: var(--home-muted);
  display: flex;
  justify-content: space-between;
}

/* в”Ђв”Ђ Weekly featured в”Ђв”Ђ */
.home-weekly {
  padding: 24px;
  position: relative;
  overflow: hidden;
  animation: home-pulse-glow 4s ease-in-out infinite;
}

@keyframes home-pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.15), inset 0 0 30px rgba(124, 58, 237, 0.03); }
  50% { box-shadow: 0 0 50px rgba(124, 58, 237, 0.25), inset 0 0 40px rgba(124, 58, 237, 0.05); }
}

.home-weekly__inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.home-weekly__visual {
  width: 120px;
  height: 80px;
  border-radius: var(--home-radius-sm);
  flex-shrink: 0;
}

.home-weekly__content { flex: 1; }

.home-weekly__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--home-elite);
  margin-bottom: 8px;
}

.home-weekly__title {
  font-family: var(--home-font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.home-weekly__desc {
  font-size: 13px;
  color: var(--home-muted);
  margin-bottom: 12px;
}

.home-weekly__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.home-weekly__timer {
  color: var(--home-cyan);
  font-weight: 600;
}

.home-weekly__reward {
  color: var(--home-gold);
  font-weight: 600;
}

/* Acquisition blocks */
.home-acquire__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.home-acquire-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.home-acquire-card--highlight {
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.06);
}

.home-acquire-card__icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.home-acquire-card__icon--telegram {
  font-size: 0;
  line-height: 0;
}

.home-acquire-card__icon--telegram .telegram-logo-img {
  width: 36px;
  height: 36px;
  display: block;
}

.home-acquire-card__title {
  font-family: var(--home-font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.home-acquire-card__desc {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.55;
  flex: 1;
}

.home-acquire-card__mock {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}

.home-acquire-card__mock-url {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--home-radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--home-border);
  font-size: 12px;
  color: var(--home-muted);
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-acquire-card__visual {
  margin-top: 16px;
  aspect-ratio: 16 / 9;
  border-radius: var(--home-radius-sm);
}

.home-leaderboard-empty {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-leaderboard-empty__slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--home-radius-sm);
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.35);
}

.home-leaderboard-empty__slot--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--home-border);
  opacity: 0.6;
}

.home-leaderboard-empty__rank {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: var(--home-gold);
  flex-shrink: 0;
}

.home-leaderboard-empty__slot--ghost .home-leaderboard-empty__rank {
  background: rgba(255, 255, 255, 0.06);
  color: var(--home-muted);
}

.home-leaderboard-empty__text {
  font-size: 13px;
  font-weight: 600;
  color: var(--home-gold);
}

.home-leaderboard-empty__slot--ghost .home-leaderboard-empty__text {
  color: var(--home-muted);
  font-weight: 500;
}

/* в”Ђв”Ђ Shop в”Ђв”Ђ */
.home-shop {
  padding: 0;
}

.home-shop__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.home-shop-card {
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.home-shop-card__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--home-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.home-shop-card__icon-wrap--purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.2);
}

.home-shop-card__icon-wrap--cyan {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.2);
}

.home-shop__grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.home-shop-card__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.home-shop-card__desc {
  font-size: 13px;
  color: var(--home-muted);
  margin-bottom: 12px;
}

.home-shop-card__price {
  font-family: var(--home-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--home-gold);
}

/* Final CTA banner */
.home-cta-banner__inner {
  position: relative;
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--home-radius-xl);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.3);
  overflow: hidden;
}

.home-cta-banner__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.25), transparent 70%);
  pointer-events: none;
  animation: home-float-glow 8s ease-in-out infinite alternate;
}

.home-cta-banner__title {
  position: relative;
  font-family: var(--home-font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.home-cta-banner__sub {
  position: relative;
  font-size: 15px;
  color: var(--home-muted);
  margin-bottom: 24px;
}

.home-cta-banner__note {
  position: relative;
  margin-top: 14px;
  font-size: 12px;
  color: var(--home-muted);
}

.home-cta-banner__note--telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.home-cta-banner__note--telegram .telegram-logo-img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.telegram-logo-img {
  object-fit: contain;
  display: block;
}

/* How it works */
.home-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-step {
  padding: 24px;
  text-align: center;
}

.home-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--home-font-display);
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--home-purple), var(--home-cyan));
  color: #fff;
}

.home-step__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--home-radius-sm);
  margin-bottom: 16px;
}

.home-step__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.home-step__desc {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.55;
}

/* в”Ђв”Ђ Footer в”Ђв”Ђ */
.home-footer {
  border-top: 1px solid var(--home-border);
  padding: 40px 0 48px;
  margin-top: var(--home-section-gap-sm);
  background: rgba(255, 255, 255, 0.03);
}

.home-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.home-footer__copy {
  font-size: 13px;
  color: var(--home-muted);
}

.home-footer__links {
  display: flex;
  gap: 20px;
}

.home-footer__link {
  font-size: 13px;
  color: var(--home-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.home-footer__link:hover { color: var(--home-cyan); }

.home-footer__link--accent {
  color: var(--home-gold);
  font-weight: 600;
}

/* в”Ђв”Ђ Placeholder sizes в”Ђв”Ђ */
.home-ph-sm { width: 48px; height: 48px; }
.home-ph-md { width: 72px; height: 72px; }

/* в”Ђв”Ђ Responsive в”Ђв”Ђ */
@media (max-width: 1024px) {
  .home-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-acquire__grid {
    grid-template-columns: 1fr;
  }

  .home-challenges-preview .home-daily-scroll {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-shop__grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --home-section-gap: 56px;
    --home-section-gap-sm: 36px;
  }

  main.home-main {
    gap: var(--home-section-gap);
    padding: 32px 0 var(--home-section-gap-sm);
  }

  .home-container {
    padding: 0 var(--page-gutter, 16px);
  }

  .home-header__inner {
    padding-left: var(--page-gutter, 16px);
    padding-right: var(--page-gutter, 16px);
  }

  .home-header__actions #guestArea #loginSteam {
    display: none;
  }

  .home-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .home-hero__visual { order: -1; }

  .home-hero__trust {
    max-width: none;
  }

  .home-stats__grid {
    grid-template-columns: 1fr;
  }

  .home-features__grid {
    grid-template-columns: 1fr;
  }

  .home-challenges-preview .home-daily-scroll,
  .home-daily-scroll {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow-x: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }

  .home-challenges-preview .home-daily-scroll .home-challenge-card,
  .home-daily-scroll .home-challenge-card {
    min-width: 0;
    width: 100%;
    scroll-snap-align: unset;
    flex-shrink: 1;
  }

  .home-features-panel__grid {
    grid-template-columns: 1fr;
  }

  .home-perks__item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .home-perks__price {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .home-weekly__inner {
    flex-direction: column;
    text-align: center;
  }

  .home-weekly__visual {
    width: 100%;
    height: 100px;
  }

  .home-weekly__meta {
    justify-content: center;
  }

  .home-shop__grid,
  .home-steps__grid {
    grid-template-columns: 1fr;
  }

  .home-header__inner {
    padding: 10px var(--page-gutter, 16px);
    gap: 10px;
  }

  .home-header__actions {
    gap: 8px;
  }

  .home-header__actions .btn-primary,
  .home-header__actions #loginSteam {
    padding: 8px 12px;
    font-size: 12px;
  }

  .home-logo__text { display: none; }

  .home-header__free-tag { display: none; }

  .home-cta-banner__inner {
    padding: 40px 20px;
  }
}

@media (max-width: 390px) {
  .home-hero__title { font-size: 26px; }
  .home-hero__subtitle { font-size: 14px; }
  .home-section-head__title { font-size: 20px; }
  .home-stat__value { font-size: 36px; }
  .home-container { padding: 0 var(--page-gutter, 12px); }
  .home-hero__cta { flex-direction: column; align-items: stretch; }
  .home-hero__cta .btn-gold,
  .home-hero__cta .btn-outline { width: 100%; text-align: center; }
  body.is-guest #msg.banner { margin: 12px 12px 0; }
  body.is-logged-in .wrap { padding: 16px var(--page-gutter, 12px) 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .home-ambient__mesh,
  .home-placeholder::after,
  .home-hero__glow,
  .home-hero__badge-dot,
  .home-weekly,
  .home-cta-banner__glow {
    animation: none;
  }

  .home-challenge-card__lock {
    transition: none;
  }

  #guestLanding .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-btn:hover,
  .home-card:hover,
  .home-stat:hover {
    transform: none;
  }
}

/* Guest landing full width */
body.is-guest .wrap {
  max-width: none;
  padding: 0;
}

body.is-guest #msg.banner {
  max-width: var(--home-container);
  margin: 16px auto 0;
  padding-left: 16px;
  padding-right: 16px;
}
#guestLanding { display: none; }
body.is-guest #guestLanding { display: block !important; }
body.is-logged-in #guestLanding { display: none !important; }
body.is-guest #appContent { display: none !important; }
body.is-logged-in #appContent { display: block; }
body.is-guest .guest-nav { display: none; }
body.is-logged-in .guest-nav { display: none; }
body.is-guest .guest-free-tag,
body.is-guest .home-header__free-tag { display: inline-flex; }

/* === Images === */
.home-img-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--home-radius-lg);
  border: 1px solid var(--home-border);
  background: linear-gradient(135deg, #1c2230, #221a38);
}
.home-img-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-img-cover--logo img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 46%;
  object-fit: contain;
}
.home-img-cover--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero__placeholder.home-img-cover { aspect-ratio: 16 / 10; }
.home-img-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 8, 13, 0.15), rgba(124, 58, 237, 0.12));
  pointer-events: none;
}

/* Live leaderboard on landing */
.home-lb-live {
  border-radius: var(--home-radius-md);
  background: var(--home-surface);
  border: 1px solid var(--home-border);
  overflow: hidden;
}
.home-lb-live .lb-header {
  padding: 14px 18px;
  font-family: var(--home-font-display);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid var(--home-border);
}
.home-lb-live .lb-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--home-border);
  transition: background 0.2s;
}
.home-lb-live .lb-row:last-child { border-bottom: none; }
.home-lb-live .lb-row:hover { background: var(--home-surface-hover); }
.home-lb-live .lb-rank {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.home-lb-live .lb-rank.top1 { background: rgba(245,158,11,0.2); color: var(--home-gold); }
.home-lb-live .lb-rank.top2 { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.home-lb-live .lb-rank.top3 { background: rgba(205,127,50,0.15); color: #cd7f32; }
.home-lb-live .lb-name { flex: 1; font-size: 14px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.home-lb-live .lb-xp { font-size: 13px; font-weight: 700; color: var(--home-gold); }

/* === Logged-in dashboard restyle === */
body.is-logged-in .wrap { max-width: var(--home-container); padding: 24px 24px 64px; }
body.is-logged-in .section-head h2 {
  font-family: var(--home-font-display);
  font-size: 18px;
  font-weight: 700;
}
body.is-logged-in .challenge-grid .card {
  background: #1c2333;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--home-radius-md);
  transition: transform 0.35s var(--home-ease), box-shadow 0.35s var(--home-ease), border-color 0.35s;
}
body.is-logged-in .challenge-grid .card:hover:not(.done) {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: var(--home-shadow-card);
}
body.is-logged-in .challenge-grid .card.claimable {
  animation: home-pulse-glow 4s ease-in-out infinite;
  border-color: rgba(245, 158, 11, 0.4);
}
body.is-logged-in .weekly-prizes-block {
  border-radius: var(--home-radius-md);
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.25);
}
body.is-logged-in .home-sidebar-card,
body.is-logged-in .telegram-banner {
  border-radius: var(--home-radius-md);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.is-logged-in .profile {
  border-radius: var(--home-radius-md);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 20px;
}
body.is-logged-in .leaderboard .lb-row {
  border-radius: var(--home-radius-sm);
  transition: background 0.2s;
}
body.is-logged-in .leaderboard .lb-row:hover {
  background: var(--home-surface-hover);
}
@media (max-width: 959px) {
  body.is-logged-in .home-header__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  body.is-logged-in .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

