:root {
  color-scheme: dark;
  color: #f8f9ff;
  background: #090c17;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
* {
  box-sizing: border-box;
}
html, body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #1b2a4a 0%, #080b13 55%, #05070b 100%);
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.screen {
  width: min(480px, 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.hidden {
  display: none;
}
.splash-screen {
  justify-content: center;
}
.splash-card {
  background: rgba(14, 20, 38, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.splash-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: 0.16em;
}
.splash-card p {
  margin: 0 0 22px;
  color: #9db1e1;
}
.progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4f87ff, #7ff3ff);
  transition: width 0.25s ease;
}
#progressText {
  display: block;
  margin-top: 14px;
  color: #cfd9ff;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.page-title {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fa8ff;
}
.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.install-btn {
  background: linear-gradient(135deg, #2f65ff, #64d6ff);
  color: #08112c;
}
.game-area {
  display: grid;
  gap: 18px;
  padding-bottom: 32px;
}
.hero {
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
}
.hero p {
  margin: 12px auto 0;
  max-width: 90%;
  color: #b2c3f2;
}
.balance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.balance-label {
  font-size: 0.95rem;
  color: #8da4ff;
}
.balance-value {
  margin-top: 10px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.click-btn {
  width: 100%;
  background: linear-gradient(135deg, #ffa25a, #ff6d86);
  color: #fff;
}
.hint {
  margin: 0;
  font-size: 0.95rem;
  color: #bbc7f5;
  text-align: center;
  max-width: 95%;
  margin-inline: auto;
}
@media (min-width: 600px) {
  .screen {
    min-height: 100vh;
    padding: 30px;
  }
  .topbar {
    padding: 28px 0;
  }
}
