/* ── Design tokens ── */
:root {
  --green:    #363921;
  --green-2:  #4a4d2c;
  --olive:    #6b6e3a;
  --olive-2:  #b1b079;
  --terra:    #a4664f;
  --terra-2:  #c98a73;
  --cream:    #f3edcd;
  --cream-2:  #ece3c1;
  --paper:    #fbf6e2;
  --ink:      #1c1d10;
  --ink-soft: #5a5c46;
  --red:      #c0392b;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Base ── */
html, body {
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Stamp grid ── */
muma-stamp-grid,
.stamps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(177,176,121,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stamp.filled { background: var(--terra); border-color: var(--terra); }
.stamp.reward { background: var(--olive-2); border-color: var(--olive-2); }

/* ── Progress bar ── */
.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: rgba(177,176,121,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--terra-2);
  border-radius: 2px;
  transition: width 0.5s ease;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--olive-2);
  white-space: nowrap;
}

/* ── PIN keypad ── */
muma-keypad,
.keypad {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(4, 72px);
  gap: 12px;
}

.key {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.key:active { background: rgba(255,255,255,0.18); transform: scale(0.94); }
.key.empty  { background: transparent; cursor: default; pointer-events: none; }
.key.del    { font-size: 18px; }

/* ── PIN dots ── */
.pin-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--olive-2);
  background: transparent;
  transition: background 0.15s, border-color 0.15s;
}

.pin-dot.filled { background: var(--cream); border-color: var(--cream); }
.pin-dot.error  { background: var(--red);   border-color: var(--red); }

/* ── PIN error message ── */
.pin-error {
  margin-top: 20px;
  font-size: 12px;
  color: var(--red);
  text-align: center;
  min-height: 18px;
  opacity: 0;
  transition: opacity 0.2s;
}

.pin-error.visible { opacity: 1; }
