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

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(135deg, #1e1e2f, #000);
  overflow: hidden;
  color: #fff;
  height: 100vh;
}

.overlay {
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}

.app {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #ffcc00;
  text-shadow: 1px 1px 3px #000;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

button {
  background: linear-gradient(to right, #ff9800, #ffc107);
  border: none;
  padding: 1rem;
  border-radius: 20px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

#backButton {
  margin-top: 2rem;
  background: #444;
  display: none;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}

#answer {
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem 2rem;
  border-radius: 16px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
  box-shadow: 0 0 15px #ffc107;
  z-index: 2;
  display: none;
}