/* Stempelapp - join page
 *
 * Direction "card in the center": large, tight system font on warm off-white
 * as on apple.com/wallet, the stamp card as the main actor, which tilts and
 * shines like foil (after the holo card by Konstantin Denerz,
 * codepen.io/konstantindenerz/full/XWPpvpg).
 *
 * Brand fonts of Tresenkarte: Inter for text, Fraunces for titles. Both live
 * in schriften/ and are loaded with font-display: swap, so the page shows up
 * in the system font right away and switches once they have loaded. Defined
 * in one place, in --font-text and --font-display below.
 */

:root {
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --ground: #ece8e1;
  --ground-deep: #e2ddd4;
  --text: #1d1b19;
  --muted: #6e675f;
  --accent: #2e7d5b;
  --error: #b3261e;

  /* Colors of the neutral card before the venue data has loaded: coffee. */
  --card-1: #7a5236;
  --card-2: #2a1a10;
  --card-text: #fbf5ee;

  /* Spring curve, generated as by Jake Archibald (linear-easing-generator).
     Overshoots once slightly and then comes to rest. */
  --spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%,
    0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%,
    1.017 63.9%, 1.001 85.5%, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141210;
    --ground-deep: #1d1a17;
    --text: #f4efe9;
    --muted: #a39a91;
    --accent: #6fcf9f;
    --error: #f2b8b5;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(120% 60% at 50% 0%, var(--ground) 40%, var(--ground-deep) 100%) fixed,
    var(--ground);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  /* Room for the links to imprint and privacy policy below. */
  min-height: calc(100dvh - 44px);
  padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  display: flex;
}

.state {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.state[hidden] { display: none; }

.state.centered {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
}

/* ---------------------------------------------------------------- Loading */

#loading { justify-content: center; align-items: center; }

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid color-mix(in srgb, var(--text) 15%, transparent);
  border-top-color: var(--text);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(1turn); } }

/* ---------------------------------------------------------------- Header */

.title {
  margin: 12px 0 0;
  font-size: clamp(40px, 11.5vw, 64px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.title.small {
  margin-top: 20px;
  font-size: clamp(34px, 9vw, 48px);
}

.title .line { display: block; }

.title .line:nth-child(2) { color: var(--muted); }

.subline {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.subline strong { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- Stage */

.stage {
  position: relative;
  flex: 1;
  min-height: 250px;
  display: grid;
  place-items: center;
  margin: 12px -20px 0;
  perspective: 1100px;
  touch-action: pan-y;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ---------------------------------------------------------------- Card (light version) */

.card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  --gloss: 0;

  position: relative;
  width: min(84vw, 380px);
  aspect-ratio: 1.586;
  border-radius: 22px;
  color: var(--card-text);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}

.card.resting { animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: rotateX(4deg) rotateY(-7deg) translateY(0); }
  50% { transform: rotateX(-3deg) rotateY(6deg) translateY(-6px); }
}

.card-surface {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(140% 90% at 15% 0%, color-mix(in srgb, var(--card-1) 70%, white) 0%, transparent 55%),
    linear-gradient(155deg, var(--card-1), var(--card-2));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.25),
    inset 0 0 0 1px rgb(255 255 255 / 0.08),
    0 1px 1px rgb(0 0 0 / 0.08),
    0 12px 24px -8px rgb(40 20 5 / 0.35),
    0 40px 60px -20px rgb(40 20 5 / 0.45);
}

/* Fine grain, so the surface looks like material rather than a gradient. */
.card-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

/* Foil: rainbow bands that move with the viewing angle. */
.card-foil {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  opacity: calc(0.12 + var(--gloss) * 0.35);
  background:
    repeating-linear-gradient(115deg,
      #ff8a8a 0%, #ffd27a 6%, #9dffb0 12%, #7ad8ff 18%, #c39bff 24%, #ff8a8a 30%);
  background-size: 300% 300%;
  background-position: var(--mx) var(--my);
  transition: opacity 0.4s var(--ease-soft);
}

/* Light spot that follows the finger. */
.card-light {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--gloss);
  background: radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / 0.35), transparent 45%);
  mix-blend-mode: soft-light;
  transition: opacity 0.4s var(--ease-soft);
}

.card-content {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transform: translateZ(30px);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.card-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.card-logo img { width: 100%; height: 100%; object-fit: cover; }

.card-kind {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.stamps {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 62%;
  gap: 9px;
}

.stamp-field {
  aspect-ratio: 1;
  border-radius: 50%;
  /* Embossed: shadow inside at the top, light inside at the bottom. */
  background: rgb(0 0 0 / 0.16);
  box-shadow:
    inset 0 2px 3px rgb(0 0 0 / 0.35),
    inset 0 -1px 0 rgb(255 255 255 / 0.12);
  display: grid;
  place-items: center;
}

.stamp-field.filled {
  background: var(--card-text);
  color: var(--card-2);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.3);
}

.stamp-field svg { width: 58%; height: 58%; }

/* The field for the first stamp pulses gently. */
.stamp-field.next {
  box-shadow:
    inset 0 2px 3px rgb(0 0 0 / 0.35),
    0 0 0 0 rgb(255 255 255 / 0.5);
  animation: pulse 2.4s var(--ease-soft) infinite;
}

@keyframes pulse {
  0% { box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.75), inset 0 2px 3px rgb(0 0 0 / 0.35), 0 0 0 0 rgb(255 255 255 / 0.45); }
  70%, 100% { box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.75), inset 0 2px 3px rgb(0 0 0 / 0.35), 0 0 0 8px rgb(255 255 255 / 0); }
}

.card-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  letter-spacing: -0.005em;
}

.card-foot span:first-child { opacity: 0.75; }
.card-foot span:last-child { font-weight: 600; }

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

/* The official badges from Apple and Google. They must not be altered, so
   the button only carries the image and moves as a whole. */
.badge {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0 auto;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.5s var(--spring), opacity 0.3s;
}

.badge { max-width: 100%; }

/* Both equally wide. The aspect ratios of Apple and Google differ slightly,
   neither may be squeezed. */
.badge img { display: block; width: 190px; height: auto; }

.badge:active { transform: scale(0.96); transition-duration: 0.1s; }

.badge:disabled { opacity: 0.55; cursor: default; }

.badge[hidden] { display: none; }

.badge:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
  border-radius: 14px;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.link-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
}

.fine-print {
  margin: 4px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.link-button {
  appearance: none;
  border: 0;
  background: none;
  padding: 8px;
  margin-top: 18px;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.error {
  margin: 4px 0 0;
  text-align: center;
  color: var(--error);
  font-size: 15px;
}

#captcha:empty { display: none; }

/* ---------------------------------------------------------------- Check mark */

.check {
  width: 76px;
  height: 76px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.check circle { stroke-dasharray: 183; stroke-dashoffset: 183; }
.check path { stroke-dasharray: 40; stroke-dashoffset: 40; }

#done:not([hidden]) .check circle { animation: draw 0.7s var(--ease-soft) forwards; }
#done:not([hidden]) .check path { animation: draw 0.45s 0.45s var(--ease-soft) forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------------------------------------------------------- Entrance */

.entering > * {
  opacity: 0;
  transform: translateY(14px);
  animation: appear 0.9s var(--ease-soft) forwards;
}

.entering > *:nth-child(2) { animation-delay: 0.06s; }
.entering > *:nth-child(3) { animation-delay: 0.12s; }
.entering > *:nth-child(4) { animation-delay: 0.18s; }
.entering > *:nth-child(5) { animation-delay: 0.26s; }

@keyframes appear { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card.resting { animation: none; }
}

@media (min-width: 700px) {
  main { padding-top: 56px; }
}

/* The card springs back to rest, but not while it follows the finger. */
.card:not(.resting):not(.following) { transition: transform 0.9s var(--spring); }

/* Preview without Supabase: say clearly that nothing happens here. */
body.preview::after {
  content: "Vorschau. Es wird kein Pass angelegt.";
  position: fixed;
  left: 50%;
  top: max(10px, env(safe-area-inset-top));
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}

body.preview main { padding-top: max(52px, calc(env(safe-area-inset-top) + 42px)); }

/* ---------------------------------------------------------------- Legal */

.legal-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-footer { height: 44px; align-items: flex-start; }

main.legal-text {
  display: block;
  min-height: 0;
  padding-bottom: 48px;
  font-size: 16px;
  line-height: 1.6;
}

.legal-text h2 {
  margin: 32px 0 6px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.legal-text p { margin: 0 0 12px; max-width: 62ch; }

.legal-text p.muted { color: var(--muted); }

.legal-text p.small { font-size: 14px; margin-top: 28px; }

.legal-text a { color: var(--text); text-underline-offset: 3px; }

.legal-text .back {
  display: inline-block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.legal-text .back::before { content: "\2039\00a0"; }

.legal-text .legal-links { justify-content: flex-start; margin-top: 36px; }

/* ================================================================ Appearance
 *
 * As soon as the venue data is there, appearance.js sets design, corners and
 * colors on <html>. Until then the neutral look above applies. The values
 * match the app, see docs/DESIGN.md.
 */

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/schriften/Fraunces-Italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/schriften/Fraunces-Italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/schriften/Fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/schriften/Fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/schriften/Inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/schriften/Inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[data-design] {
  --ground-deep: color-mix(in srgb, var(--ground) 88%, var(--text));
  --muted: color-mix(in srgb, var(--text) 64%, var(--ground));
  --accent: var(--ink);
  color-scheme: light;
}

html[data-design][data-light="no"] { color-scheme: dark; }

html[data-design] body {
  background: var(--ground);
  isolation: isolate;
}

.stamp-field svg { width: 74%; height: 74%; overflow: visible; }

.motif-stamp {
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--stamp-image) center / contain no-repeat;
  mask: var(--stamp-image) center / contain no-repeat;
}

/* The custom stamp brings its own edge. */
.stamp-field:has(.motif-stamp) { border-color: transparent !important; }

.motif-logo {
  width: 78%;
  height: 78%;
  border-radius: 50%;
  object-fit: cover;
}

.card-logo svg { width: 82%; height: 82%; }

/* ---------------------------------------------------------------- A ink pad */

/* Paper grain over the whole page. */
html[data-design="ink_pad"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .18  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
}

html[data-design="ink_pad"][data-light="no"] body::before {
  mix-blend-mode: screen;
  opacity: 0.35;
}

html[data-design="ink_pad"] .title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

html[data-design="ink_pad"] .title .line:nth-child(2) { color: var(--ink); }

html[data-design="ink_pad"] .card {
  color: var(--text);
  border-radius: 16px;
}

html[data-design="ink_pad"][data-square-corners="yes"] .card { border-radius: 5px; }

html[data-design="ink_pad"] .card-surface {
  background: var(--card-paper);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent),
    0 1px 1px rgb(0 0 0 / 0.06),
    0 14px 24px -12px rgb(40 25 10 / 0.35),
    0 36px 50px -26px rgb(40 25 10 / 0.4);
}

html[data-design="ink_pad"] .card-surface::before {
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* Paper does not shine like foil, only a little light from the finger. */
html[data-design="ink_pad"] .card-foil { display: none; }
html[data-design="ink_pad"] .card-light {
  opacity: calc(var(--gloss) * 0.5);
  mix-blend-mode: overlay;
}

html[data-design="ink_pad"] .card-kind { color: var(--ink); opacity: 1; }

html[data-design="ink_pad"] .card-name { font-family: var(--font-display); font-weight: 600; }

html[data-design="ink_pad"] .card-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-design="ink_pad"] .card-logo.with-motif {
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
  transform: rotate(-8deg);
}

html[data-design="ink_pad"] .stamp-field {
  --hole: var(--card-paper);
  background: none;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px dashed color-mix(in srgb, var(--text) 32%, transparent);
}

html[data-design="ink_pad"] .stamp-field svg { transform: rotate(-8deg); }

html[data-design="ink_pad"] .stamp-field.filled {
  border: 2px solid var(--ink);
}

html[data-design="ink_pad"] .stamp-field.next {
  border-color: var(--ink);
  animation: pulse-ink 2.4s var(--ease-soft) infinite;
}

html[data-design="ink_pad"] .stamp-field.next > * { opacity: 0.2; }

@keyframes pulse-ink {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 40%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 0%, transparent); }
}

html[data-design="ink_pad"] .motif-initials { font-family: var(--font-display); font-weight: 600; }

/* ---------------------------------------------------------------- B glass */

/* Soft blots in the venue color that drift slowly. */
html[data-design="glass"] body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 18%, color-mix(in srgb, var(--ink) 42%, transparent), transparent 70%),
    radial-gradient(42% 36% at 82% 52%, color-mix(in srgb, var(--ink) 28%, transparent), transparent 70%),
    radial-gradient(36% 30% at 30% 88%, color-mix(in srgb, var(--ink) 22%, transparent), transparent 70%);
  filter: blur(24px);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  to { transform: translate(4%, -3%) rotate(8deg) scale(1.06); }
}

html[data-design="glass"] .card {
  color: var(--on-ink);
  border-radius: 24px;
}

html[data-design="glass"][data-square-corners="yes"] .card { border-radius: 10px; }

html[data-design="glass"] .card-surface {
  background:
    radial-gradient(140% 90% at 15% 0%, color-mix(in srgb, var(--ink) 60%, white) 0%, transparent 55%),
    linear-gradient(155deg, var(--ink), color-mix(in srgb, var(--ink) 62%, black));
}

html[data-design="glass"] .card-logo.with-motif { color: var(--on-ink); border-radius: 50%; }

html[data-design="glass"] .stamp-field.filled {
  --hole: var(--on-ink);
  background: var(--on-ink);
  color: var(--ink);
}

html[data-design="glass"] .stamp-field.next { color: var(--on-ink); }
html[data-design="glass"] .stamp-field.next > * { opacity: 0.3; }

html[data-design="glass"] .motif-initials { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  html[data-design="glass"] body::before { animation: none; }
}
