/* Save the date Léa & Noam : même papeterie que le faire-part « Sauge, lin et or », en version courte */
:root {
  --night: oklch(0.21 0.025 135);
  --sage-deep: oklch(0.31 0.036 135);
  --sage-deeper: oklch(0.255 0.03 135);
  --paper: oklch(0.975 0.01 85);
  --paper-2: oklch(0.95 0.016 82);
  --paper-3: oklch(0.925 0.02 82);
  --ink: oklch(0.3 0.03 70);
  --ink-soft: oklch(0.5 0.03 75);
  --ink-sage: oklch(0.32 0.045 138);
  --sage: oklch(0.42 0.05 135);
  --gold: oklch(0.73 0.08 80);
  --gold-deep: oklch(0.6 0.08 75);
  --gold-light: oklch(0.86 0.065 85);
  --on-dark: oklch(0.95 0.02 85);
  --on-dark-soft: oklch(0.82 0.03 100);
  --display: "Cormorant Garamond", Garamond, serif;
  --script: "Pinyon Script", cursive;
  --ui: "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --col-w: min(100vw, 480px);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .36 0 0 0 0 .24 0 0 0 .07 0'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .03' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .44 0 0 0 0 .3 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .9 0 0 0 0 .95 0 0 0 0 .85 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  --leaves: url("leaves.png");
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; top: 0; left: 0; margin: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fond sauge aux ombres de feuillage autour de la colonne, sur grand écran */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    var(--leaves) 0 0 / 512px auto repeat,
    radial-gradient(110% 80% at 50% 28%, oklch(0.27 0.03 132), oklch(0.17 0.022 135));
  background-blend-mode: multiply, normal;
}
.col {
  position: relative;
  width: var(--col-w);
  margin-inline: auto;
  min-height: 100svh;
  background: var(--paper);
  overflow-x: hidden;
  overflow-x: clip;
}
@media (min-width: 600px) {
  .intro { box-shadow: 0 0 0 1px oklch(0.15 0.02 135 / 0.5), 0 30px 80px oklch(0.1 0.02 135 / 0.55); }
  .col { box-shadow: 0 0 0 1px oklch(0.15 0.02 135 / 0.5), 0 30px 80px oklch(0.1 0.02 135 / 0.55); }
}

/* ==========================================================================
   Ouverture : petite enveloppe au cachet de cire
   ========================================================================== */
.intro {
  --ew: min(330px, calc(var(--col-w) * 0.84));
  --eh: calc(var(--ew) * 0.66);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 20;
  width: var(--col-w);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.intro.is-open { cursor: default; }
/* fond à part : il s'efface avant la carte, qui se pose alors sur la vraie page */
.intro-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    var(--leaves) -60px -40px / 512px auto repeat,
    radial-gradient(90% 60% at 50% 46%, oklch(0.3 0.035 132), oklch(0.18 0.022 135));
  background-blend-mode: multiply, normal;
}
.intro { isolation: isolate; }
.intro-kicker {
  margin: 0 0 34px;
  font-family: var(--ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(0.8 0.07 82);
}

.env {
  position: relative;
  width: var(--ew);
  height: var(--eh);
}
.env > * { position: absolute; }
.env svg { display: block; width: 100%; height: 100%; overflow: visible; }
.env-back {
  inset: 0;
  z-index: 1;
  border-radius: 3px;
  box-shadow: 0 2px 3px oklch(0.1 0.02 135 / 0.35), 0 26px 40px -14px oklch(0.08 0.02 135 / 0.7);
}
.env-card {
  left: 4.5%;
  right: 4.5%;
  top: 4%;
  bottom: 7%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: var(--grain), linear-gradient(180deg, oklch(0.99 0.006 85), oklch(0.965 0.012 84));
  box-shadow: 0 1px 2px oklch(0.2 0.02 100 / 0.2), 0 10px 22px -12px oklch(0.15 0.02 100 / 0.45);
  text-align: center;
}
.env-card-frame { position: absolute; inset: 7px; border: 1px solid color-mix(in oklch, var(--gold) 80%, transparent); pointer-events: none; }
.env-card-frame::after { content: ""; position: absolute; inset: 3px; border: 0.5px solid color-mix(in oklch, var(--gold) 60%, transparent); }
.env-card-sprig { width: 34%; height: auto; margin-bottom: 2px; }
.env-card-title {
  font-family: var(--script);
  font-size: calc(var(--ew) * 0.135);
  line-height: 1.12;
  color: var(--ink-sage);
}
.env-card-names {
  margin-top: 2px;
  font-family: var(--display);
  font-size: calc(var(--ew) * 0.054);
  font-weight: 500;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}
.env-card-names i { font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gold-deep); padding-right: 0.2em; }

.env-front { inset: 0; z-index: 3; pointer-events: none; }
.env-flap-pos {
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--eh) * 0.586);
  z-index: 4;
  perspective: 900px;
}
.env.is-flap-under .env-flap-pos { z-index: 1; }
.env-flap {
  position: absolute;
  inset: 0;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
}
.env-flap-face {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.env-flap-face--in { transform: rotateX(180deg); }
.env-seal {
  left: 50%;
  top: calc(var(--eh) * 0.535);
  z-index: 5;
  width: calc(var(--ew) * 0.23);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
}
.env-seal svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 3px 3px oklch(0.2 0.03 135 / 0.38)); }
.crumb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 5px;
  margin: -2.5px 0 0 -3.5px;
  border-radius: 45% 55% 50% 40%;
  background: oklch(0.52 0.05 135);
  box-shadow: inset 1px 1px 0 oklch(0.7 0.05 130 / 0.7);
  pointer-events: none;
}

/* invitation à toucher : une ligne en italique et un filet d'or qui respire */
.intro-hint {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 40px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.intro.is-open .intro-hint { opacity: 0; }
.intro-hint-text {
  margin: 0;
  font: italic 500 1.1rem/1.2 var(--display);
  letter-spacing: 0.02em;
  color: oklch(0.86 0.06 84);
  opacity: 0;
  translate: 0 4px;
  animation: hint-in 1.6s var(--ease) 0.9s forwards;
}
.intro-hint-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.8 0.08 82) 30% 70%, transparent);
  opacity: 0;
  scale: 0 1;
  animation: line-in 1.8s var(--ease) 1.3s forwards, line-breathe 3.6s ease-in-out 3.1s infinite;
}
@keyframes hint-in { to { opacity: 1; translate: 0 0; } }
@keyframes line-in { to { opacity: 1; scale: 1 1; } }
@keyframes line-breathe {
  0%, 100% { opacity: 1; scale: 1 1; }
  50% { opacity: 0.45; scale: 0.55 1; }
}
/* l'enveloppe respire doucement en attendant le toucher */
.env { animation: env-float 5.5s ease-in-out infinite; }
.intro.is-open .env { animation: none; }
@keyframes env-float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-5px) rotate(0.4deg); }
}

/* ==========================================================================
   La carte
   ========================================================================== */
.cover {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(14px, env(safe-area-inset-top)) 14px 16px;
  background:
    var(--leaves) 30px -30px / 520px auto repeat,
    var(--grain),
    radial-gradient(120% 70% at 50% 18%, oklch(0.985 0.008 85), oklch(0.955 0.015 82));
  background-blend-mode: soft-light, normal, normal;
}
.cover-in {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(56px, 9svh, 84px) 16px clamp(30px, 11svh, 120px);
  text-align: center;
}
/* fenêtre en arche, double filet d'or */
.arch,
.arch-in { position: absolute; pointer-events: none; }
.arch {
  inset: 0;
  border: 1px solid color-mix(in oklch, var(--gold) 85%, transparent);
  border-radius: 50% 50% 3px 3px / 150px 150px 3px 3px;
}
.arch-in {
  inset: 5px;
  border: 0.5px solid color-mix(in oklch, var(--gold) 75%, transparent);
  border-radius: 50% 50% 2px 2px / 145px 145px 2px 2px;
}
.cover-sprig { width: 116px; height: 24px; }
.cover-sprig svg, .credit-sprig svg, .env-card-sprig svg { display: block; width: 100%; height: auto; overflow: visible; }
.cover-kicker {
  margin: 14px 0 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.cover-title {
  margin: 4px 0 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.5rem, 16vw, 4.4rem);
  line-height: 1.12;
  color: var(--ink-sage);
  text-shadow: 0 1px 0 oklch(1 0 0 / 0.8);
}
.cover-names {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  padding-left: 0.22em;
}
.cover-names i { font-style: italic; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--gold-deep); padding-right: 0.2em; }
.cover-sub {
  margin: 4px 0 24px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* le grattage du faire-part, posé dans l'arche */
.std-scratch { margin: clamp(20px, 5svh, 44px) auto auto; max-width: 340px; z-index: 2; }
.std-scratch .scratch__card { padding-top: 40px; padding-bottom: 28px; }
.std-scratch .scratch__cal { display: none; }
.std-scratch .scratch__date { font-size: 1.12rem; }
.std-scratch .scratch__foot { margin-top: 18px; min-height: 58px; }

/* eucalyptus et olivier au pied de l'arche */
.cover-euca {
  position: absolute;
  bottom: 6px;
  z-index: 1;
  width: 118px;
  height: 168px;
  pointer-events: none;
}
.cover-euca--l { left: 6px; }
.cover-euca--r { right: 6px; scale: -1 1; }
.cover-euca svg { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 6% 98%; }

/* entrée de la carte, une fois l'enveloppe ouverte */
.std [data-in] { opacity: 0; }
.std.is-shown [data-in] { animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--d, 0) * 1s); }
.std.is-shown .cover-euca svg { animation: grow 1.8s var(--ease) both; animation-delay: 0.5s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes grow {
  from { opacity: 0; transform: scale(0.82) rotate(-4deg); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Après la révélation : sauge profonde, compte à rebours, lieu
   ========================================================================== */
.after {
  position: relative;
  padding: 78px 22px 70px;
  background: var(--grain-dark), radial-gradient(120% 60% at 50% 0%, oklch(0.3 0.035 135), var(--sage-deeper) 70%);
  color: var(--on-dark);
  text-align: center;
  scroll-margin-top: 0;
}
/* bord festonné, comme une dentelle de papier */
.scallop {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 20px;
  background:
    radial-gradient(circle at 50% 4px, var(--sage-deeper) 1.5px, transparent 1.9px) 0 0 / 20px 12px repeat-x,
    radial-gradient(circle at 50% 0, oklch(0.955 0.015 82) 9.5px, transparent 10px) 0 0 / 20px 12px repeat-x,
    radial-gradient(circle, oklch(0.8 0.07 82 / 0.75) 0.9px, transparent 1.3px) 0 15px / 7px 4px repeat-x;
}
.kicker {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(0.8 0.07 82);
}
.after-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}
.after-title em { font-style: italic; color: oklch(0.86 0.07 84); }

[data-rise] { opacity: 0; transform: translateY(16px); }
.after.is-in [data-rise] { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }

.count { margin-top: 30px; display: grid; justify-items: center; gap: 22px; }
.count-medal {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 176px;
  aspect-ratio: 1;
}
.count-ring { position: absolute; inset: 0; }
.count-ring svg { display: block; width: 100%; height: 100%; overflow: visible; }
.count-ring .m-scallop { fill: none; stroke: oklch(0.8 0.07 82 / 0.9); stroke-width: 0.7; }
.count-ring .m-ring { fill: oklch(0.29 0.034 135); stroke: oklch(0.8 0.07 82 / 0.85); stroke-width: 0.5; }
.count-ring .m-dots { fill: none; stroke: oklch(0.8 0.07 82 / 0.7); stroke-width: 0.9; stroke-linecap: round; stroke-dasharray: 0 2.6; }
.count-unit {
  position: relative;
  margin-top: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(0.8 0.07 82);
  padding-left: 0.3em;
}
.odo {
  position: relative;
  display: inline-flex;
  height: 1em;
  overflow: hidden;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--on-dark);
}
.odo--big { font-size: 3.6rem; height: 1.04em; }
.odo .dg { display: block; height: 1em; overflow: hidden; }
.odo--big .dg { height: 1.04em; }
.odo .strip { display: block; will-change: transform; }
.odo .strip i { display: block; height: 1em; font-style: normal; text-align: center; }
.odo--big .strip i { height: 1.04em; }
.count-row { display: flex; align-items: center; gap: 18px; }
.count-cell { display: grid; justify-items: center; gap: 6px; min-width: 58px; }
.count-cell small { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-dark-soft); }
.count-dot { width: 4px; height: 4px; rotate: 45deg; background: oklch(0.8 0.07 82 / 0.8); margin-bottom: 16px; }

.venue { margin: 46px auto 0; display: grid; justify-items: center; }
.venue-arch {
  display: block;
  width: min(272px, 76%);
  aspect-ratio: 0.86;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  border: 1px solid oklch(0.8 0.07 82 / 0.9);
  box-shadow: 0 0 0 5px var(--sage-deeper), 0 0 0 5.5px oklch(0.8 0.07 82 / 0.7), 0 24px 40px -18px oklch(0.08 0.02 135 / 0.8);
  background: oklch(0.97 0.01 85);
}
.venue-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; scale: 1.22; }
.venue figcaption { display: grid; gap: 4px; margin-top: 22px; }
.venue-name { font-family: var(--display); font-style: italic; font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.venue-place { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: oklch(0.8 0.07 82); padding-left: 0.32em; }

.actions { margin-top: 44px; display: grid; justify-items: center; }
.follow { display: flex; align-items: center; gap: 12px; margin: 38px 0 0; }
.follow-text { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: oklch(0.8 0.07 82); padding-left: 0.3em; }
.follow-line { position: relative; width: 38px; height: 1px; background: oklch(0.8 0.07 82 / 0.6); }
.follow-line::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; rotate: 45deg; border: 1px solid oklch(0.8 0.07 82 / 0.8); }
.follow-line:first-child::after { left: -6px; }
.follow-line:last-child::after { right: -6px; }
.follow-note { margin: 10px 0 0; max-width: 26ch; font-family: var(--display); font-style: italic; font-size: 1.1rem; line-height: 1.35; color: var(--on-dark-soft); text-wrap: balance; }

/* ==========================================================================
   Boutons de papeterie : coins échancrés, double filet d'or
   ========================================================================== */
.tag-btn {
  --r: 9px;   /* rayon des échancrures */
  --i: 5px;   /* retrait du filet intérieur */
  --bg: var(--paper);
  --fg: var(--ink-sage);
  --line: var(--gold-deep);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 250px;
  min-height: 58px;
  padding: 0 32px;
  border: 0;
  background: none;
  color: var(--fg);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease);
}
.tag-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 100% 100% / 51% 51% no-repeat;
  mask:
    radial-gradient(circle at 0 0, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 0 0 / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 100% 0 / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 0 100% / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--r), #000 calc(var(--r) + 0.5px)) 100% 100% / 51% 51% no-repeat;
}
/* filet intérieur, échancré lui aussi à chaque coin */
.tag-btn-frame {
  --ri: 6px;
  position: absolute;
  inset: var(--i);
  z-index: -1;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, #0000 var(--ri), var(--line) calc(var(--ri) + 0.1px), var(--line) calc(var(--ri) + 1px), #0000 calc(var(--ri) + 1.2px)) 0 0 / 50% 50% no-repeat border-box,
    radial-gradient(circle at 100% 0, #0000 var(--ri), var(--line) calc(var(--ri) + 0.1px), var(--line) calc(var(--ri) + 1px), #0000 calc(var(--ri) + 1.2px)) 100% 0 / 50% 50% no-repeat border-box,
    radial-gradient(circle at 0 100%, #0000 var(--ri), var(--line) calc(var(--ri) + 0.1px), var(--line) calc(var(--ri) + 1px), #0000 calc(var(--ri) + 1.2px)) 0 100% / 50% 50% no-repeat border-box,
    radial-gradient(circle at 100% 100%, #0000 var(--ri), var(--line) calc(var(--ri) + 0.1px), var(--line) calc(var(--ri) + 1px), #0000 calc(var(--ri) + 1.2px)) 100% 100% / 50% 50% no-repeat border-box;
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 0 0 / 50.5% 50.5% no-repeat border-box,
    radial-gradient(circle at 100% 0, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 100% 0 / 50.5% 50.5% no-repeat border-box,
    radial-gradient(circle at 0 100%, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 0 100% / 50.5% 50.5% no-repeat border-box,
    radial-gradient(circle at 100% 100%, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 100% 100% / 50.5% 50.5% no-repeat border-box;
  mask:
    radial-gradient(circle at 0 0, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 0 0 / 50.5% 50.5% no-repeat border-box,
    radial-gradient(circle at 100% 0, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 100% 0 / 50.5% 50.5% no-repeat border-box,
    radial-gradient(circle at 0 100%, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 0 100% / 50.5% 50.5% no-repeat border-box,
    radial-gradient(circle at 100% 100%, #0000 var(--ri), #000 calc(var(--ri) + 0.1px)) 100% 100% / 50.5% 50.5% no-repeat border-box;
  pointer-events: none;
}
.tag-btn-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--line); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.tag-btn-icon .fill { fill: var(--line); stroke: none; }
.tag-btn:active { transform: scale(0.97); }
.tag-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.tag-btn--light { filter: drop-shadow(0 12px 16px oklch(0.08 0.02 135 / 0.45)); }
.tag-btn--dark { --bg: var(--sage-deep); --fg: var(--on-dark); --line: oklch(0.8 0.07 82 / 0.9); filter: drop-shadow(0 12px 18px oklch(0.3 0.04 100 / 0.3)); }
@media (hover: hover) {
  .tag-btn:hover { transform: translateY(-2px); }
  .tag-btn--dark:hover { --bg: oklch(0.35 0.04 135); }
}
.tag-btn.is-done .tag-btn-icon path.fill { fill: var(--gold); }

/* ==========================================================================
   Crédit
   ========================================================================== */
.credit {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 56px 24px max(40px, env(safe-area-inset-bottom));
  background: var(--grain), linear-gradient(180deg, oklch(0.965 0.013 83), oklch(0.945 0.017 80));
  text-align: center;
}
.credit-sprig { width: 120px; }
.credit-text { margin: 18px 0 26px; max-width: 24ch; font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.25; color: var(--ink); text-wrap: balance; }
.replay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.12rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.replay span { border-bottom: 1px solid color-mix(in oklch, var(--gold) 55%, transparent); padding-bottom: 1px; }
.replay svg { width: 17px; height: 17px; fill: none; stroke: var(--gold-deep); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.replay:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.credit-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 0;
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.credit-sign img { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .env, .intro-hint-text, .intro-hint-line { animation: none; }
  .std [data-in] { opacity: 1; }
  .std.is-shown [data-in], .std.is-shown .cover-euca svg { animation: none; }
  [data-rise] { transform: none; }
  .after.is-in [data-rise] { transition: opacity 0.6s ease; }
  .odo .strip { transition: none !important; }
}
