:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #2d2f4d 0%, #0f172a 100%);
  color: #f8fafc;
}

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

.game-world {
  position: relative;
  width: min(90vw, 900px);
  height: 420px;
  overflow: hidden;
  border: 4px solid #f8fafc;
  border-radius: 16px;
  background: linear-gradient(180deg, #87ceeb 0%, #cdefff 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.player {
  position: absolute;
  left: 120px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  border: 2px solid #7f1d1d;
  border-radius: 6px;
  bottom: 60px;
}

.obstacle {
  position: absolute;
  right: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #4b5563, #111827);
  border-radius: 5px;
  bottom: 60px;
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60px;
  background: linear-gradient(180deg, #5b8c3a, #3f6f2a);
}

.cloud {
  position: absolute;
  top: 40px;
  width: 90px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  opacity: 0.8;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}

.cloud::before {
  width: 35px;
  height: 35px;
  left: 10px;
  top: -12px;
}

.cloud::after {
  width: 26px;
  height: 26px;
  right: 12px;
  top: -8px;
}

.cloud-one {
  left: 70px;
}

.cloud-two {
  left: 540px;
  top: 90px;
  transform: scale(0.8);
}

.score-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.score {
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(248, 250, 252, 0.3);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
}

.score--top {
  font-size: 0.85rem;
  opacity: 0.95;
}

.message {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(248, 250, 252, 0.3);
  border-radius: 999px;
  font-size: 0.95rem;
}
