:root { color-scheme: light dark; }
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #1f2933;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.gnome-id {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 4px;
}

.gnome-name {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.tagline {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
}

.colorline {
  margin: 0 0 14px 0;
  font-size: 13px;
  color: #374151;
}

.colorline strong { color: #111827; }

.gnome-image {
  width: 100%;
  border-radius: 14px;
  background: #e5e7eb;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 18px;
  text-align: center;
  padding: 8px;
  object-fit: cover;
}

.story {
  font-size: 15px;
  line-height: 1.6;
  color: #111827;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.button-primary {
  background: #2563eb;
  color: #ffffff;
}

.button-secondary {
  background: #111827;
  color: #ffffff;
  opacity: 0.95;
}

.hint {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
}

.footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}

.error {
  text-align: center;
  font-size: 15px;
  color: #b91c1c;
  margin: 40px 0;
}
