:root {
  --bg: #f7f7f7;
  --ground: #666;
  --dino: #222;
  --obstacle: #333;
  --accent: #ff3b30;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-wrap {
  width: 900px;
  max-width: 95vw;
  background: linear-gradient(#fff, #f1f1f1);
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

canvas {
  display: block;
  background: linear-gradient(#87ceeb, #cde9ff);
  border-radius: 6px;
  width: 100%;
  height: 200px;
  touch-action: manipulation;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 12px;
}

.left {
  font-size: 14px;
  color: #333;
}

.right {
  font-size: 14px;
  color: #333;
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

small.hint {
  color: #666;
}
#startBtn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 40px;
  font-size: 22px;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.25);
  transition: background 0.3s, transform 0.2s;
}

#startBtn:hover {
  background: #45a049;
  transform: translate(-50%, -50%) scale(1.05);
}

#startBtn:active {
  background: #3d8b40;
  transform: translate(-50%, -50%) scale(0.98);
}
