:root {
  --red: #C42127;
  --red-dark: #A6171D;
  --cream: #EFE6CE;
  --gold: #e7c873;
  --ink: #1a130d;
  --bg: #151515;
  --bg-soft: #1d1d1d;
  --radius: 30px;
  --font-body: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 48px;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  display: flex;
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  text-align: center;
}

.logo { width: 96px; height: auto; margin-bottom: 8px; }
h1 { font-size: 1.5rem; letter-spacing: .04em; margin: 0 0 18px; text-transform: uppercase; }

.stamps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0 0 16px;
}

.stamps li {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(239, 230, 206, .35);
  border-radius: 50%;
  font-size: .95rem;
  color: rgba(239, 230, 206, .45);
}

/* Filled stamps differ by fill, border style AND a glyph — never by colour alone. */
.stamps li.filled {
  background: var(--red);
  border: 2px solid var(--gold);
  color: var(--cream);
  font-size: 0;
}
.stamps li.filled::after { content: '★'; font-size: 1.3rem; line-height: 1; }

.count { font-size: 1.1rem; margin: 0 0 6px; }
.reward { color: var(--gold); margin: 0 0 20px; }
.notice { background: rgba(231, 200, 115, .12); border-radius: 14px; padding: 12px; margin: 0 0 16px; }

.code-box button, .privacy button {
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  background: var(--red);
  color: var(--cream);
  width: 100%;
  cursor: pointer;
}
.code-box button:active { background: var(--red-dark); }
.code-box button:disabled { opacity: .55; cursor: default; }

#code-output {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  letter-spacing: .22em;
  color: var(--gold);
}

.save-hint { font-size: .9rem; opacity: .75; margin: 22px 0 0; }
.privacy { margin-top: 22px; text-align: left; font-size: .9rem; opacity: .85; }
.privacy summary { cursor: pointer; }
.privacy button.danger { background: transparent; border: 1px solid rgba(239, 230, 206, .4); margin-top: 10px; }

@media (min-width: 520px) { .card { padding: 34px 30px 28px; } }
