:root {
  --green: #2f7d32;
  --green-dark: #1f5c24;
  --cream: #f7fff7;
  --card: #ffffff;
  --text: #1d2a1f;
  --muted: #66736a;
  --border: #dbe8dd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--cream);
  color: var(--text);
}

header {
  background: var(--green);
  color: white;
  padding: 18px;
  text-align: center;
}

main {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input, textarea, select, button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}

button {
  background: var(--green);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

button.secondary {
  background: #eef6ef;
  color: var(--green-dark);
}

button.danger {
  background: #9b1c1c;
}

a {
  color: inherit;
  font-weight: 700;
}

.small {
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.submission img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.hidden { display: none; }

nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

nav button {
  width: auto;
  padding: 8px 12px;
}

h1, h2, h3 { margin-top: 0; }

label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-weight: 700;
}

.bonus {
  background: #fff7d6;
  border: 1px solid #ecd36b;
  border-radius: 12px;
  padding: 8px;
  font-weight: 700;
}

.quest-card {
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}

.quest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}
