:root {
  --primary: #00ffcc;
  --danger: #ff4757;
  --glass: rgba(255,255,255,0.12);
  --dark: #090a0f;
}

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

body {
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top, #1b2735, var(--dark));
  color: #fff;
}

/* HOME */
#homeScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homeCard {
  background: var(--glass);
  padding: 36px;
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(14px);
}

button {
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(135deg, #00ffcc, #00cc99);
  color: #000;
}

/* GAME OVERLAY */
#gameOverlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.75);
}

.gameCard {
  background: rgba(15,20,30,0.95);
  padding: 16px;
  border-radius: 24px;
  width: 420px;
  max-width: 95%;
}

.topBar {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
}

canvas {
  width: 100%;
  aspect-ratio: 2 / 3;
  margin-top: 12px;
  background-image: url("background.png");
  background-size: cover;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,0.5);
}

.hint {
  font-size: 12px;
  text-align: center;
  margin-top: 8px;
  opacity: 0.75;
}

/* GAME OVER */
#gameOverScreen {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
}

.gameOverCard {
  background: rgba(20,20,30,0.95);
  padding: 28px;
  border-radius: 22px;
  text-align: center;
}

.gameOverCard h2 {
  color: var(--danger);
  margin-bottom: 12px;
}

.finalScore {
  font-size: 26px;
  margin: 10px 0;
}

/* MOBILE */
@media (max-width: 767px) {
  .gameCard {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  canvas {
    border-radius: 0;
  }
}
