:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0b0d12;
  color: #f4f6fb;
}

main.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0;
}

p {
  margin: 0;
  opacity: 0.85;
}

.primary-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: #4d7cff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(77, 124, 255, 0.35);
}

.primary-button:hover {
  transform: translateY(-2px);
}

footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

#game-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.back-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  pointer-events: auto;
}

.stick-area {
  position: absolute;
  bottom: 1.25rem;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  touch-action: none;
  pointer-events: auto;
}

.stick-area.left {
  left: 1.25rem;
}

.stick-area.right {
  right: 1.25rem;
}

.stick-thumb {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  .stick-area {
    width: 120px;
    height: 120px;
  }

  .stick-thumb {
    width: 48px;
    height: 48px;
  }
}
