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

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  font-family: -apple-system, system-ui, sans-serif;
  overflow-x: hidden;
  padding-top: 40px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 400px;
}

h1 {
  color: white;
  font-size: 24px;
  letter-spacing: 1px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.game-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: #87ceeb;
  border-radius: 16px;
  border: 4px solid #334155;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hud {
  display: flex;
  justify-content: space-between;
  width: 100%;
  color: white;
  font-weight: 800;
}

.score-tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

#startBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f59e0b;
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 8px 0 #b45309;
  z-index: 10;
}

#startBtn:active {
  transform: translate(-50%, -46%);
  box-shadow: 0 4px 0 #b45309;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 280px;
}

.modal h2 {
  color: #1e293b;
  margin-bottom: 10px;
}
.modal p {
  font-size: 18px;
  margin-bottom: 5px;
}

.retry-btn {
  margin-top: 20px;
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 10px;
  font-weight: bold;
  width: 100%;
}

.info-panel {
  width: 100%;
  max-width: 400px;
  margin: 30px auto 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  backdrop-filter: blur(8px);
}

.info-panel h2 {
  color: white;
  font-size: 18px;
  margin-bottom: 12px;
}

.info-panel h3 {
  color: #e2e8f0;
  font-size: 15px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.info-panel ul {
  list-style: none;
  padding-left: 0;
}

.info-panel li {
  padding: 3px 0;
}

.info-panel li::before {
  content: '• ';
  color: #64748b;
}
