:root {
  --bg: #0d1117;
  --bg-accent: #161b22;
  --text: #e6edf3;
  --muted: #9da7b3;
  --accent: #f2d6b3;
  --accent-2: #6387a6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #161b22 0%, #0d1117 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Page-level flex centering */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
  text-align: center;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 .star {
  color: var(--accent);
}

.subtitle {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted);
}

/* Live demo button */
.live-demo {
  display: inline-block;
  margin: 0 0 2rem;
  padding: 0.65rem 1.4rem;
  background: var(--accent);
  color: #1a1200;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.live-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 214, 179, 0.3);
}

/* Canvas centering + responsive scaling */
#canvas-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#canvas-container canvas,
canvas {
  display: block;
  max-width: min(90vw, 80vh);
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* Landing page cards */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 2.5rem;
  background: var(--bg-accent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.option:hover {
  transform: translateY(-4px);
  border-color: var(--accent-2);
}

.emoji {
  font-size: 72px;
  line-height: 1;
}

.description {
  font-size: 1.1rem;
}

.description a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.description a:hover {
  text-decoration: underline;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}
