:root {
  color-scheme: light;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.4;
  background-color: #1e2a3a;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  background: linear-gradient(160deg, #4facfe 0%, #00f2fe 100%);
}

.game-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 420px;
}

#game-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #8be1f7;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.restart-btn {
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #ff715b;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  visibility: hidden;
  opacity: 0;
}

.restart-btn.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 16px 26px rgba(255, 113, 91, 0.4);
}

.restart-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .game-wrapper {
    gap: 12px;
  }

  .restart-btn {
    width: 100%;
    max-width: 320px;
    font-size: 0.95rem;
  }
}

