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

html,
body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f9fbff;
  background: #02030a;
  overflow-x: hidden;
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
}

.bg-video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -2;
  object-fit: cover;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(113, 196, 255, 0.35), transparent 55%),
              radial-gradient(circle at bottom, rgba(184, 115, 255, 0.3), transparent 60%),
              rgba(0, 0, 12, 0.90);
  backdrop-filter: blur(6px);
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 7vw;
  background: linear-gradient(to bottom, rgba(0, 4, 15, 0.95), rgba(0, 4, 15, 0.4));
  border-bottom: 1px solid rgba(148, 202, 255, 0.25);
  backdrop-filter: blur(14px);
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Orbitron', system-ui;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.logo-icon {
  font-size: 22px;
}

.logo-text {
  font-size: 14px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: #d7e7ff;
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #57c3ff, #e2a6ff);
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s ease-out, border-color 0.15s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at 0% 0%, #dff6ff, #a4d3ff 30%, #6aa8ff 60%, #3b6afc 100%);
  color: #020312;
  box-shadow: 0 0 20px rgba(120, 190, 255, 0.65);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 26px rgba(120, 190, 255, 0.95);
}

.btn-ghost {
  background: rgba(7, 16, 40, 0.7);
  color: #e0ebff;
  border-color: rgba(129, 189, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(24, 46, 92, 0.9);
  transform: translateY(-1px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  align-items: center;
  gap: 40px;
  padding: 64px 7vw 40px;
}

.hero-content h1 {
  font-family: 'Orbitron', system-ui;
  font-size: clamp(38px, 4vw, 52px);
  line-height: 1.08;
  text-transform: uppercase;
}

.hero-sub {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #d0e6ff;
}

.hero-text {
  margin-top: 20px;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.6;
  color: #d7e3ff;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  border-radius: 999px;
  border: 1px solid rgba(123, 193, 255, 0.6);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(7, 21, 71, 0.9), rgba(19, 35, 94, 0.85));
}

.hero-character {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 380px;
  width: 100%;
}

.character-glow {
  position: absolute;
  width: 68%;
  height: 68%;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 0%, rgba(118, 206, 255, 0.9), transparent 70%),
              radial-gradient(circle at 50% 100%, rgba(187, 132, 255, 0.8), transparent 75%);
  filter: blur(28px);
  opacity: 0.9;
}

.hero-video {
  position: relative;
  max-width: 380px;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  filter: drop-shadow(0 0 35px rgba(141, 209, 255, 0.9));
  transform-origin: center bottom;
  animation: float 5s ease-in-out infinite;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 22px;
  cursor: pointer;
  transition: opacity 0.3s ease-out;
  z-index: 10;
  transform-origin: center bottom;
  animation: float 5s ease-in-out infinite;
}

.play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.play-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #81c3ff, #f6f0ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #020312;
  box-shadow: 0 0 20px rgba(120, 190, 255, 0.8);
}

.play-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.section {
  padding: 40px 7vw;
}

.section-header {
  text-align: left;
  margin-bottom: 26px;
}

.section-header h2 {
  font-family: 'Orbitron', system-ui;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-header p {
  margin-top: 8px;
  color: #c7d9ff;
  font-size: 14px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-3 .stat-card:nth-child(4) {
  grid-column: span 3;
}

.card {
  padding: 20px 18px;
  border-radius: 18px;
}

.glass {
  background: radial-gradient(circle at top left, rgba(115, 196, 255, 0.28), transparent 55%),
              radial-gradient(circle at bottom right, rgba(140, 93, 255, 0.22), transparent 60%),
              rgba(4, 10, 37, 0.88);
  border: 1px solid rgba(131, 191, 255, 0.35);
  box-shadow:
    0 18px 45px rgba(1, 5, 26, 0.9),
    0 0 0 1px rgba(56, 100, 156, 0.35);
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  color: #d2e4ff;
  line-height: 1.6;
}

.stat-card {
  position: relative;
}

.stat-card::after {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(144, 216, 255, 0.9), transparent 70%);
  opacity: 0.4;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5, 14, 40, 0.9);
  border: 1px solid rgba(102, 166, 245, 0.45);
}

.step-index {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #81c3ff, #f6f0ff);
  color: #050819;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.steps-list h3 {
  font-size: 15px;
  margin-bottom: 2px;
}

.steps-list p {
  font-size: 13px;
  color: #cedeff;
}

.howto-cta {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.disclaimer {
  font-size: 11px;
  color: #9fb3dd;
}

.challenges-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 18px;
}

.challenge-list {
  margin-top: 10px;
  padding-left: 18px;
}

.challenge-list li {
  font-size: 14px;
  color: #d8e6ff;
  margin-bottom: 6px;
}

.challenge-interactive {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.game-stats {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: rgba(5, 14, 40, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(102, 166, 245, 0.45);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  color: #a7b9e4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.game-visual {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(118, 206, 255, 0.15), transparent 70%);
  border-radius: 12px;
  overflow: hidden;
}

.basket-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.basket-image {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 15px rgba(141, 209, 255, 0.6));
  animation: basketFloat 3s ease-in-out infinite;
}

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

.thunder-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.flying-thunder {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 5;
}

.game-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.game-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.game-button:active {
  transform: scale(0.95);
}

.button-thunder {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.game-button.clicking {
  animation: buttonPulse 0.1s ease-out;
}

@keyframes buttonPulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes thunderFly {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(var(--mid-x), var(--mid-y)) rotate(180deg) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translate(var(--end-x), var(--end-y)) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

.timer-warning {
  color: #ff6b6b !important;
  animation: timerBlink 0.5s ease-in-out infinite alternate;
}

@keyframes timerBlink {
  0% { opacity: 1; }
  100% { opacity: 0.6; }
}

.basket-shake {
  animation: basketShake 0.2s ease-in-out;
}

@keyframes basketShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.challenge-status {
  font-size: 13px;
  color: #c9defc;
}

.secret-cta {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(158, 204, 255, 0.7);
  display: none;
  gap: 8px;
  align-items: center;
}

.secret-cta p {
  font-size: 13px;
  margin-bottom: 4px;
}

.footer {
  margin-top: 30px;
  padding: 16px 7vw 26px;
  font-size: 11px;
  color: #94a9db;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(76, 119, 175, 0.55);
  background: radial-gradient(circle at top, rgba(48, 97, 166, 0.35), rgba(4, 8, 28, 0.96));
}

.footer a {
  color: #bfd7ff;
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 42px;
  }

  .hero-character {
    order: -1;
  }

  .hero-content {
    text-align: left;
  }

  .grid-2,
  .grid-3,
  .challenges-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 .stat-card:nth-child(4) {
    grid-column: auto;
  }

  .top-nav {
    gap: 10px;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding-inline: 16px;
  }

  .hero {
    padding-inline: 16px;
  }

  .footer {
    padding-inline: 16px;
    flex-direction: column;
    gap: 6px;
  }
}
