/* Buttons, Chips, Dialoge, Formulare, Tooltip, Toast */

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 40px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-pill);
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:hover { --btn-border: var(--ink-muted); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; transform: none; }

.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-border: var(--ink);
}
.btn--primary:hover { --btn-bg: color-mix(in srgb, var(--ink) 86%, var(--paper)); --btn-border: var(--btn-bg); }

.btn--large { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-md); }

.btn--danger { --btn-fg: var(--danger); --btn-border: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn--danger:hover { --btn-border: var(--danger); }
.btn--danger.btn--primary { --btn-bg: var(--danger); --btn-fg: var(--paper); --btn-border: var(--danger); }

.btn--small { min-height: 32px; padding: 0 var(--sp-4); font-size: var(--fs-xs); }

.link-btn {
  background: none;
  border: 0;
  padding: var(--sp-1) var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  border-radius: 4px;
}
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }
.link-btn--danger:hover { color: var(--danger); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: none;
  color: var(--ink-muted);
}
.icon-btn:hover { color: var(--ink); border-color: var(--rule); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Chips ---------- */

.chip-group { display: flex; flex-wrap: wrap; gap: var(--sp-2); justify-content: center; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 34px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink-muted); }
.chip[aria-checked="true"], .chip[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-raised);
}
.chip--subject[aria-checked="true"], .chip--subject[aria-pressed="true"] {
  border-color: var(--c);
  box-shadow: inset 0 0 0 1px var(--c);
}
.chip--add { padding: 0 var(--sp-3); }
.chip--quiet { border-style: dashed; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}

/* ---------- Formulare ---------- */

.input, .select, .textarea {
  min-height: 40px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-input);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  color: var(--ink);
  font-size: var(--fs-sm);
  transition: border-color var(--dur-fast) ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline-offset: 1px; border-color: var(--brass); }
.input--num { width: 84px; text-align: right; }
.input--date { width: 160px; }
.textarea { width: 100%; min-height: 110px; resize: vertical; line-height: 1.5; font-size: var(--fs-md); }
.select { padding-right: var(--sp-6); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

.unit { font-size: var(--fs-sm); color: var(--ink-muted); margin-left: var(--sp-2); }

/* Schalter (Checkbox) */
.switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 40px;
  height: 24px;
  flex: none;
  margin: 0;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: var(--paper-raised);
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) ease;
}
.switch:checked { background: var(--ink); border-color: var(--ink); }
.switch:checked::after { transform: translateX(16px); background: var(--paper); }
.switch:disabled { opacity: 0.4; cursor: default; }

/* Segmentierte Auswahl (Radio als Pillen) */
.pills { display: inline-flex; gap: var(--sp-1); flex-wrap: wrap; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--ink-muted);
  cursor: pointer;
}
.pills input:checked + span { color: var(--ink); border-color: var(--ink); background: var(--paper-raised); }
.pills input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.pills input:disabled + span { opacity: 0.4; cursor: default; }

/* Farbwahl aus der Palette */
.color-picker { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-4) var(--sp-6); }
.swatches { display: grid; grid-template-columns: repeat(5, 28px); gap: var(--sp-2); }
.color-picker__side { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.color-picker__name { font-size: var(--fs-sm); color: var(--ink-muted); }
.color-preview {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 132px;
  height: 116px;
  padding-bottom: 8px;
}
.swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--paper-raised);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--rule);
  padding: 0;
}
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); }

.color-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--c);
  box-shadow: 0 0 0 1px var(--rule);
  padding: 0;
}

.stepper { display: inline-flex; align-items: center; gap: var(--sp-2); }
.stepper output { min-width: 4.5ch; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--fs-sm); }

.drag-handle {
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink-muted);
  cursor: grab;
  border-radius: 4px;
}
.drag-handle svg { width: 12px; height: 16px; }

/* ---------- Dialog ---------- */

.dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-dialog);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
  overflow: auto;
}
.dialog[open] { animation: dialog-in 280ms var(--ease-out); }
.dialog.is-closing { animation: dialog-out 160ms ease forwards; }
.dialog::backdrop { background: var(--backdrop); animation: fade-in 200ms ease; }
.dialog.is-closing::backdrop { animation: fade-out 160ms ease forwards; }
.dialog--wide { width: min(620px, calc(100vw - 32px)); }

@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(6px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.dialog__body { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.dialog__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.dialog__text { color: var(--ink-muted); font-size: var(--fs-sm); }
.dialog__text + .dialog__text { margin-top: var(--sp-2); }
.dialog__content { margin-top: var(--sp-4); }
.dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5) var(--sp-5);
  flex-wrap: wrap;
}
.dialog__actions .spacer { flex: 1; }

.char-count { text-align: right; font-size: var(--fs-xs); color: var(--ink-muted); margin-top: var(--sp-1); font-variant-numeric: tabular-nums; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); }
.kv dt { color: var(--ink-muted); }

.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); align-items: center; }
kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 8px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  text-align: center;
  background: var(--paper);
}

/* Level-Aufstieg */
.levelup { text-align: center; padding-top: var(--sp-3); }
.dialog--levelup { overflow: hidden; }
.dialog__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.levelup__eyebrow { font-size: var(--fs-sm); color: var(--brass); }
.levelup__title { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 420; margin: var(--sp-1) 0 var(--sp-4); }
.levelup__preview {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 3px;
  height: 120px;
  margin: var(--sp-4) auto var(--sp-3);
  padding-bottom: 8px;
  position: relative;
  width: 220px;
}
.levelup__preview::after, .color-preview::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--wood-edge) 0 2px, var(--wood) 2px, var(--wood-dark));
  box-shadow: var(--shadow-board);
}
.levelup__unlock { font-weight: 500; }
.levelup__hint { color: var(--ink-muted); font-size: var(--fs-sm); }

/* Detaildialog */
.book-detail { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: start; }
.book-detail__visual { display: flex; gap: 0; align-items: flex-end; }
.endpaper {
  width: 64px;
  height: 140px;
  border-radius: 0 3px 3px 0;
  background:
    radial-gradient(ellipse 40% 18% at 30% 20%, color-mix(in srgb, var(--c) 70%, #fff) 0 40%, transparent 41%),
    radial-gradient(ellipse 30% 14% at 70% 45%, color-mix(in srgb, var(--brass) 60%, #fff) 0 45%, transparent 46%),
    radial-gradient(ellipse 45% 16% at 40% 72%, color-mix(in srgb, var(--c) 50%, #fff) 0 40%, transparent 41%),
    repeating-radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--c) 85%, #000) 0 3px, color-mix(in srgb, var(--c) 55%, #fff) 3px 6px, color-mix(in srgb, var(--brass) 70%, var(--c)) 6px 8px);
  box-shadow: inset 2px 0 4px rgb(0 0 0 / .25);
}

/* ---------- Tooltip ---------- */

.tooltip {
  position: fixed;
  z-index: 60;
  max-width: 260px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-input);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-xs);
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 6px 20px -8px rgb(0 0 0 / .5);
  animation: fade-in 120ms ease;
}
.tooltip strong { font-weight: 600; display: block; }
.tooltip .muted { color: color-mix(in srgb, var(--paper) 70%, var(--ink)); }

/* ---------- Toast ---------- */

.toasts {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: var(--sp-5);
  transform: translateX(-50%);
  display: grid;
  gap: var(--sp-2);
  justify-items: center;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4) var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-sm);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / .5);
  animation: toast-in 240ms var(--ease-out);
}
.toast.is-leaving { animation: fade-out 200ms ease forwards; }
.toast--error { background: var(--danger); }
.toast button {
  background: none;
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
  color: var(--paper);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
}
.toast button:hover { border-color: var(--paper); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Effekt-Ebene (Belohnung) ---------- */

.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.fx-layer .book { position: fixed; margin: 0; transform-origin: top left; }

.reward-msg {
  position: fixed;
  z-index: 55;
  transform: translateX(-50%);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-pill);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-dialog);
  text-align: center;
  font-size: var(--fs-sm);
  white-space: nowrap;
  animation: reward-in 420ms var(--ease-out) both;
  cursor: pointer;
}
.reward-msg strong { font-family: var(--font-serif); font-weight: 500; font-size: var(--fs-md); color: var(--ink); }
.reward-msg .line2 { color: var(--brass); font-size: var(--fs-xs); margin-top: 2px; }
.reward-msg.is-leaving { animation: fade-out 220ms ease forwards; }
@keyframes reward-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Streak-Detail ---------- */

.streak-detail__big { font-family: var(--font-serif); font-size: var(--fs-lg); }
.streak-detail__big strong { font-size: var(--fs-xl); font-weight: 450; color: var(--brass); margin-right: 4px; font-variant-numeric: tabular-nums; }
.streak-detail__sub { color: var(--ink-muted); font-size: var(--fs-sm); margin-top: 2px; }

.streak-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin: var(--sp-4) 0;
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.streak-facts div { display: flex; flex-direction: column; }
.streak-facts dt { order: 2; font-size: var(--fs-xs); color: var(--ink-muted); }
.streak-facts dd { order: 1; font-family: var(--font-serif); font-size: var(--fs-lg); line-height: 1.2; font-variant-numeric: tabular-nums; }

.scal { --cell: 34px; }
.scal__body { max-height: calc((var(--cell) + 4px) * 7); overflow-y: auto; }
.scal__row { display: grid; grid-template-columns: 40px repeat(7, var(--cell)); gap: 4px; align-items: center; margin-bottom: 4px; }
.scal__head span { font-size: var(--fs-xs); color: var(--ink-muted); text-align: center; }
.scal__month { font-size: var(--fs-xs); color: var(--ink-muted); }

.sday {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--cell);
  height: var(--cell);
  border-radius: 6px;
  border: 1px solid var(--rule);
  font-size: var(--fs-xs);
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.sday svg { position: absolute; right: 3px; bottom: 3px; width: 10px; height: 10px; }
.sday--future { border-style: dashed; opacity: .5; }
.sday--today { box-shadow: inset 0 0 0 1px var(--ink); }
.sday--counted { background: var(--brass); border-color: var(--brass); color: #1F1A12; font-weight: 600; }
.sday--past { background: color-mix(in srgb, var(--brass) 22%, transparent); border-color: transparent; }
.sday--protected, .sday--ahead { border-color: var(--brass); color: var(--brass); background: color-mix(in srgb, var(--brass) 10%, transparent); }
.sday--ahead { border-style: dashed; opacity: 1; }
.sday--bookmark { border-color: var(--ink-muted); color: var(--ink); }
.sday--bookmark svg { color: var(--danger); }
.sday--pending { border-style: dashed; border-color: var(--brass); }

.scal__legend { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--ink-muted); }
.scal__legend li { display: inline-flex; align-items: center; gap: 6px; }
.scal__legend .sday { --cell: 16px; width: 16px; height: 16px; border-radius: 4px; }
.scal__legend .sday svg { position: static; width: 9px; height: 9px; }

.streak-detail__note { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: var(--sp-2); }
.streak-detail__rules { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: var(--sp-4); line-height: 1.55; }

/* Level-Detail */
.level-detail__title { font-family: var(--font-serif); font-size: var(--fs-xl); font-weight: 420; line-height: 1.1; color: var(--brass); }
.level-detail__bar { height: 6px; margin-top: var(--sp-4); background: var(--rule); border-radius: 999px; overflow: hidden; }
.level-detail__bar i { display: block; height: 100%; background: var(--brass); border-radius: inherit; }
.level-detail__xp { display: flex; justify-content: space-between; margin-top: 6px; font-size: var(--fs-xs); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.level-detail__xp strong { font-family: var(--font-serif); font-size: var(--fs-md); font-weight: 500; color: var(--ink); }
.level-detail__togo { margin-top: var(--sp-2); font-size: var(--fs-sm); }

.level-next {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin: var(--sp-4) 0 var(--sp-2);
  padding: var(--sp-3) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.level-next .levelup__preview { margin: 0; flex: none; width: 180px; height: 116px; }
.level-next__label { font-size: var(--fs-xs); color: var(--ink-muted); }
.level-next__name { font-family: var(--font-serif); font-size: var(--fs-md); font-weight: 500; margin-top: 2px; }
.level-next__hint { font-size: var(--fs-sm); color: var(--ink-muted); margin-top: 2px; }

.level-detail__h { font-size: var(--fs-sm); font-weight: 600; margin: var(--sp-5) 0 var(--sp-2); }

.lvl-list { list-style: none; margin: 0; padding: 0; }
.lvl-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 9.5rem) minmax(0, 1fr) auto 18px;
  gap: var(--sp-3);
  align-items: center;
  padding: 7px var(--sp-2);
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-sm);
}
.lvl-row:last-child { border-bottom: 0; }
.lvl-row__num { font-family: var(--font-serif); color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; }
.lvl-row__title { font-family: var(--font-serif); font-size: var(--fs-md); }
.lvl-row__unlock { color: var(--ink-muted); }
.lvl-row__xp { color: var(--ink-muted); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.lvl-row__state { display: inline-flex; width: 16px; height: 16px; }
.lvl-row__state svg { width: 100%; height: 100%; }
.lvl-row--done .lvl-row__state { color: var(--brass); }
.lvl-row--locked .lvl-row__title,
.lvl-row--locked .lvl-row__num { color: var(--ink-muted); }
.lvl-row--locked .lvl-row__state { color: var(--rule); }
.lvl-row--current {
  background: color-mix(in srgb, var(--brass) 14%, transparent);
  border-radius: 8px;
  border-bottom-color: transparent;
}
.lvl-row--current .lvl-row__num,
.lvl-row--current .lvl-row__title { color: var(--ink); font-weight: 500; }
.lvl-row--current .lvl-row__unlock { color: var(--ink); }

.level-rules { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.level-rules li { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 5px var(--sp-2); }
.level-rules strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.level-detail__note { font-size: var(--fs-xs); color: var(--ink-muted); margin-top: var(--sp-3); line-height: 1.55; }

@media (max-width: 560px) {
  .level-next { flex-direction: column; align-items: flex-start; }
  .lvl-row { grid-template-columns: 24px 1fr auto 16px; }
  .lvl-row__unlock { grid-column: 2 / 4; grid-row: 2; font-size: var(--fs-xs); }
}

/* Stempel */
.stamps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: var(--sp-5) var(--sp-3);
}
.stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: var(--sp-2) var(--sp-1);
  border-radius: var(--r-input);
  outline-offset: 2px;
}
.stamp-svg { width: 76px; height: 76px; margin-bottom: var(--sp-2); color: var(--rule); overflow: visible; }
.stamp-svg circle, .stamp-svg path, .stamp-svg rect { fill: none; stroke: currentColor; }
.stamp-svg__ring { stroke-width: 2; }
.stamp-svg__ticks { stroke-width: 2.6; stroke-dasharray: .9 2.6; }
.stamp-svg__inner { stroke-width: .8; }
.stamp-svg__icon { stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stamp-svg .stamp-svg__dot { fill: currentColor; stroke: none; }
.stamp-svg text { fill: currentColor; text-anchor: middle; font-variant-numeric: lining-nums; }
.stamp-svg__big { font-family: var(--font-serif); font-weight: 500; }
.stamp-svg__small { font-family: var(--font-sans); font-size: 8.5px; font-weight: 500; }
.stamp:not(.is-earned) .stamp-svg { color: var(--ink-muted); opacity: .45; }
.stamp:not(.is-earned) .stamp-svg__ring { stroke-dasharray: 3 3; }
.stamp.is-earned .stamp-svg { color: var(--brass); }
.stamp.is-earned .stamp-svg__ring { fill: color-mix(in srgb, var(--brass) 9%, transparent); }
.stamp__label { font-size: var(--fs-sm); line-height: 1.3; }
.stamp:not(.is-earned) .stamp__label { color: var(--ink-muted); }
.stamp__meta { font-size: var(--fs-xs); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
#stempel-title { scroll-margin-top: 96px; }
#stempel-title:focus { outline: none; }
