:root {
  --bg-deep: #0a0e1a;
  --bg-card: #141b2d;
  --accent: #00d4ff;
  --accent-2: #ff3366;
  --accent-3: #ffd000;
  --accent-4: #7c3aed;
  --text: #e8ecf4;
  --text-muted: #8b9bb8;
  --blue-team: #3b82f6;
  --red-team: #ef4444;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.stars {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, #fff8, transparent),
    radial-gradient(2px 2px at 60% 70%, #fff6, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff4, transparent),
    radial-gradient(1px 1px at 80% 10%, #fff5, transparent),
    radial-gradient(2px 2px at 90% 60%, #00d4ff33, transparent),
    linear-gradient(180deg, #0a0e1a 0%, #12182a 50%, #0d1220 100%);
  z-index: -2;
  pointer-events: none;
}

.accent {
  color: var(--accent);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, env(safe-area-inset-top));
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.35);
}

.logo-text {
  font-family: 'Bangers', cursive;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent-2), #ff6b35);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(255, 51, 102, 0.4);
}

.nav-rustore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #0077ff !important;
  box-shadow: 0 4px 16px rgba(0, 119, 255, 0.45);
}

.nav-rustore-icon {
  flex-shrink: 0;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin: -6px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.burger span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 6rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 50%, rgba(0, 212, 255, 0.12), transparent),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255, 51, 102, 0.1), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 119, 255, 0.15);
  border: 1px solid rgba(0, 119, 255, 0.45);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: #5eb3ff;
}

.platform-rustore-icon {
  flex-shrink: 0;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #4ade80;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: 'Bangers', cursive;
  line-height: 0.95;
  margin-bottom: 1rem;
}

.hero-title .line1 {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--text);
  text-shadow: 3px 3px 0 var(--accent-4);
}

.hero-title .line2 {
  display: block;
  font-size: clamp(3rem, 8vw, 5.5rem);
  background: linear-gradient(135deg, var(--accent-3), #ff9500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title em {
  font-style: normal;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-3), #ff9500);
  color: #1a1000;
  box-shadow: 0 6px 24px rgba(255, 208, 0, 0.35);
}

.btn-rustore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0077ff, #005ecc);
  color: #fff;
  box-shadow: 0 6px 24px rgba(0, 119, 255, 0.4);
}

.btn-rustore img {
  flex-shrink: 0;
}

.btn-telegram {
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: #fff;
  box-shadow: 0 6px 24px rgba(42, 171, 238, 0.35);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent);
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Hero avatar */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar {
  width: min(420px, 92vw);
  height: auto;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 212, 255, 0.15);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.feature-card a {
  color: var(--accent);
  font-weight: 700;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Modes */
.modes {
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.06), transparent);
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.mode-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  position: relative;
}

.mode-showdown { border-left-color: var(--accent-2); }
.mode-ball { border-left-color: var(--accent-3); }
.mode-bounty { border-left-color: #22c55e; }

.mode-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent-2);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.mode-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.mode-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Reviews */
.reviews {
  background: linear-gradient(180deg, transparent, rgba(0, 119, 255, 0.05), transparent);
}

.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reviews-rating-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.reviews-rating-value {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  line-height: 1;
  color: var(--accent-3);
}

.reviews-count {
  color: var(--text-muted);
  font-size: 0.95rem;
  width: 100%;
}

.reviews-stars,
.review-stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 1.1rem;
  line-height: 1;
}

.star-full {
  color: var(--accent-3);
}

.star-empty {
  color: rgba(255, 255, 255, 0.2);
}

.reviews-all-link {
  color: #5eb3ff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

.reviews-all-link:hover {
  color: var(--accent);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.review-author {
  display: block;
  font-size: 1rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.reviews-loading,
.reviews-error,
.reviews-stale {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reviews-error a,
.reviews-stale {
  color: var(--accent);
}

.reviews-stale {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* Download */
.download-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.15));
  border-radius: 24px;
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.download-avatar {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.25);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-rustore {
  background: #0d1f33;
  border: 2px solid rgba(0, 119, 255, 0.5);
}

.store-rustore:hover {
  box-shadow: 0 8px 28px rgba(0, 119, 255, 0.35);
}

.store-telegram {
  background: #0d1f33;
  border: 2px solid rgba(42, 171, 238, 0.5);
}

.store-telegram:hover {
  box-shadow: 0 8px 28px rgba(42, 171, 238, 0.35);
}

.store-logo-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.store-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1rem;
  background: #0077ff;
  color: #fff;
}

.store-logo.tg {
  background: #2aabee;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.store-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.store-btn strong {
  font-size: 1.2rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.65;
  margin-top: 0.5rem;
  max-width: 360px;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Mobile download bar */
.mobile-bar {
  display: none;
}

/* Mobile & tablet */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
  }

  .logo-text {
    font-size: 1.45rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 5.5rem 1rem 2rem;
    min-height: auto;
    gap: 1.25rem;
  }

  .hero-sub {
    max-width: none;
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-sub,
  .hero-stats {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 1.25rem;
    min-height: 48px;
  }

  .hero-stats {
    justify-content: center;
    gap: 1.5rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-avatar {
    width: min(280px, 85vw);
  }

  .hero-title .line1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-title .line2 {
    font-size: clamp(2.5rem, 11vw, 4rem);
  }

  .online-badge,
  .platform-badge {
    font-size: 0.8rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-lead {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 0.25rem;
  }

  .features-grid,
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .reviews-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .reviews-rating-value {
    font-size: 2.5rem;
  }

  .review-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .download-box {
    padding: 2rem 1.25rem;
    margin: 0 0.25rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .store-btn {
    width: 100%;
    min-height: 56px;
    padding: 0.75rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-disclaimer {
    max-width: none;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: rgba(10, 14, 26, 0.98);
    padding: calc(4.5rem + env(safe-area-inset-top)) 1.25rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
    overflow-y: auto;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.15rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav .nav-cta,
  .nav .nav-rustore {
    margin-top: 0.5rem;
    justify-content: center;
    border-bottom: none;
    border-radius: 12px;
    padding: 1rem;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
  }

  .nav-overlay.visible {
    display: block;
  }

  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
  }

  .mobile-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
  }

  .mobile-bar-rustore {
    background: linear-gradient(135deg, #0077ff, #005ecc);
    box-shadow: 0 4px 16px rgba(0, 119, 255, 0.35);
  }
}

@media (max-width: 380px) {
  .hero-title .line2 {
    font-size: 2.35rem;
  }

  .logo-text {
    font-size: 1.25rem;
  }

  .logo-img {
    width: 36px;
    height: 36px;
  }
}
