:root {
  color-scheme: light;
  --ink: #1b1916;
  --dust: #ede6d8;
  --accent: #d0702a;
  --accent-dark: #7c3a13;
  --hill: #3d332a;
  --rock: #705a4a;
  --sky: #f3e8d0;
  font-family: "Palatino", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #f6edd9 0%, #e3d5bc 55%, #cdbfa6 100%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  width: min(980px, 92vw);
  margin: 0 auto;
  padding: 32px 0 16px;
  display: grid;
  gap: 20px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  color: var(--accent-dark);
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
}

.subtitle {
  margin: 0;
  max-width: 40ch;
  font-size: 1rem;
}

.meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.seed {
  font-size: 0.9rem;
}

.share {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.95rem;
}

.weather {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
}

.stat {
  display: grid;
  gap: 6px;
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  font-weight: 600;
}

.bar {
  height: 10px;
  background: #fff;
  border-radius: 999px;
  border: 1px solid var(--accent-dark);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f5b36f, #d0702a);
  transition: width 0.2s ease;
}

.stage {
  background: var(--dust);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
  display: grid;
  gap: 10px;
  justify-items: center;
}

canvas {
  width: 100%;
  max-width: 920px;
  height: auto;
  border-radius: 12px;
  background: var(--sky);
}

.touch-hint {
  font-size: 0.9rem;
  color: var(--accent-dark);
}

.footer {
  margin-top: auto;
  text-align: center;
  padding: 24px 16px 32px;
  font-size: 0.95rem;
  color: var(--accent-dark);
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
  }

  .meta {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar-fill {
    transition: none;
  }
}
