* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom, #ba0f0f 0%, #730303 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  touch-action: none;
}

#gameContainer {
  position: relative;
  width: 100%;
  max-width: 375px;
  height: 100vh;
  max-height: 667px;
  background: #ffffff;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border-radius: 5px;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, #ba0f0f 0%, #730303 100%);
  z-index: 10;
}

.screen-title {
  font-size: 28px;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 15px;
  text-align: center;
  padding: 0 20px;
}

.screen-subtitle {
  font-size: 16px;
  color: #ffd700;
  margin-bottom: 20px;
  text-align: center;
  padding: 0 20px;
}

.game-button {
  padding: 15px 40px;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(to bottom, #c41e3a 0%, #a01729 100%);
  border: 3px solid #fff;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  touch-action: manipulation;
  margin: 5px;
}

.game-button:active {
  transform: scale(0.95);
}

.instructions {
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 0 30px;
  margin-top: 15px;
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.gift-message {
  background: rgba(255, 215, 0, 0.2);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 20px;
  margin: 20px;
  color: #fff;
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
}

.score-display {
  font-size: 24px;
  color: #ffd700;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.result-grid {
  display: flex;
  gap: 10px;
  margin: 15px 0;
}

.result-item {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 2px solid #fff;
}

.result-goal {
  background: #4caf50;
}

.result-save {
  background: #f44336;
}