@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --bg: #0f141a;
  --card: #131a23;
  --soft: #1c2633;
  --text: #e8f0ff;
  --muted: #b2c2d9;
  --planet: #4caf7d;
  --people: #4da3ff;
  --profit: #f2c14f;
  --danger: #f07a63;
  --radius: 14px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(76, 175, 125, 0.2), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(77, 163, 255, 0.2), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(242, 193, 79, 0.15), transparent 35%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 80px),
    var(--bg);
  background-size: auto, auto, auto, auto, auto, auto;
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat;
  background-position: 20% 20%, 80% 30%, 50% 80%, center, center, center;
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 24px;
}

.game-shell {
  width: min(960px, 100%);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 24px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(120deg, rgba(76, 175, 125, 0.15), rgba(77, 163, 255, 0.1));
  border-radius: var(--radius);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero__text h1 {
  margin: 4px 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.01em;
}

.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}

.tagline {
  margin: 6px 0 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.hero__badge {
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: right;
  min-width: 130px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lang-switch {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-switch select {
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

.audio-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 10px;
  border-radius: 10px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toggle input {
  accent-color: var(--planet);
  width: 16px;
  height: 16px;
}

.toggle__label {
  color: var(--text);
}

.hero__badge span {
  display: block;
  font-weight: 700;
  font-size: 1rem;
}

.hero__badge small {
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  align-items: stretch;
}

.stats-visual {
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  max-height: 220px;
}

.stats-column {
  display: grid;
  gap: 10px;
}

.stat {
  background: var(--soft);
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__label {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  color: var(--muted);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot--planet {
  background: var(--planet);
}

.dot--people {
  background: var(--people);
}

.dot--profit {
  background: var(--profit);
}

.stat__bar {
  grid-column: 1 / -1;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.stat__fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.4s ease;
}

.stat__fill--planet {
  background: linear-gradient(90deg, #3f8b68, #5fd49b);
}

.stat__fill--people {
  background: linear-gradient(90deg, #3b74ff, #6ed6ff);
}

.stat__fill--profit {
  background: linear-gradient(90deg, #d9a738, #ffd56a);
}

.stat__value {
  font-weight: 700;
  color: var(--text);
  margin-left: 6px;
}

.scene {
  background: var(--soft);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  display: grid;
  gap: 14px;
}

.scene h2 {
  margin: 0;
  font-size: 1.4rem;
}

.scene__text {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.options {
  display: grid;
  gap: 10px;
}

.option-btn {
  text-align: left;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s ease, border 0.2s ease, background 0.2s ease;
}

.option-btn:hover,
.option-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.option-btn:active {
  transform: translateY(0);
}

.feedback {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.funding {
  margin-top: 8px;
  background: var(--soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-items: center;
}

.funding__logos {
  display: flex;
  justify-content: flex-start;
}

.funding__logos img {
  max-width: 480px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.35));
}

.funding__text {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
}

.funding__text p {
  margin: 6px 0;
}

@media (max-width: 720px) {
  body {
    padding: 12px;
  }

  .game-shell {
    padding: 18px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero__badge {
    text-align: left;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    max-height: 180px;
  }

  .funding__logos img {
    max-width: 280px;
  }
}
