/* style.css — UI minimaliste et sombre. */

:root {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0f14;
  color: #e8e8e8;
  font-family: system-ui, -apple-system, sans-serif;
}

main {
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #9aa0a6;
  margin: 0 0 1rem;
}

canvas {
  image-rendering: pixelated;
  border: 1px solid #333;
  border-radius: 6px;
  width: 800px;
  height: 600px;
  max-width: 90vw;
  height: auto;
  aspect-ratio: 4 / 3;
  cursor: crosshair; /* signale la zone interactive du soleil */
  touch-action: none; /* pour que le glisser marche aussi au doigt */
}

.hint {
  color: #8a8f98;
  font-size: 0.85rem;
  margin: 0.7rem 0 1.2rem;
}

.panel {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: #16161f;
  border: 1px solid #262633;
  border-radius: 12px;
  padding: 1rem 1.2rem;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #c8ccd4;
}

.control input[type="range"] {
  width: 100%;
  accent-color: #f6b73c; /* jaune soleil */
}

.stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9aa0a6;
  font-variant-numeric: tabular-nums;
}

.stats b,
.control b {
  color: #f0f0f4;
}
