/* Spot the AI (/spot/): a card table in site.css's paper and ink, with more color than the rest of the site (the
   founder, 2026-09-15: "more visuals and animations and less text", "life, color and flair"). Slate for what you press,
   sage for a right pick, gold for Hemmingway and the ✦, warm red for a miss. Motion is transform, opacity and a canvas
   (spot.js); all of it sits under prefers-reduced-motion: no-preference, and spot.js skips its own under reduce, so a
   reduced setting shows the end states. */
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --sage: var(--ok);
  --red: var(--warn);
  --stamp-gold: #b3823f;
  --card: #fffdf9;
  --shade: rgba(34, 29, 25, .12);
  --lift: rgba(34, 29, 25, .38);
  --glare: rgba(255, 255, 255, .7);
  --field: .34;
  --grain: .5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --gold: #e2bd85;
    --stamp-gold: #e2bd85;
    --card: #1f1c18;
    --shade: rgba(0, 0, 0, .5);
    --lift: rgba(0, 0, 0, .75);
    --glare: rgba(255, 255, 255, .09);
    --field: .3;
    --grain: .9;
  }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body.spot { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; }

/* ------------------------------------------------------------------ the table: slow color fields behind everything.
   The warm and hot ones come up with a streak (body[data-heat], set by spot.js). */
.fields { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fields i { position: absolute; display: block; border-radius: 50%; }
.fields .f1, .fields .f2, .fields .f3, .fields .f4 { width: 72vmax; height: 72vmax; opacity: var(--field); }
.fields .f1 { left: -26vmax; top: -30vmax; background: radial-gradient(closest-side, var(--acc), transparent); }
.fields .f2 { right: -30vmax; top: -22vmax; background: radial-gradient(closest-side, var(--gold), transparent); opacity: calc(var(--field) * .8); }
.fields .f3 { left: -20vmax; bottom: -34vmax; background: radial-gradient(closest-side, var(--sage), transparent); opacity: calc(var(--field) * .75); }
.fields .f4 { right: -24vmax; bottom: -30vmax; background: radial-gradient(closest-side, #88b2c6, transparent); opacity: calc(var(--field) * .8); }
.fields .warm, .fields .hot { left: 50%; top: -40vmax; width: 110vmax; height: 90vmax; margin-left: -55vmax; opacity: 0; transition: opacity 1.4s ease; }
.fields .warm { background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 70%, transparent), transparent); }
.fields .hot { top: auto; bottom: -50vmax; background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 45%, var(--gold)), transparent); }
body[data-heat="1"] .fields .warm { opacity: .45; }
body[data-heat="2"] .fields .warm { opacity: .7; }
body[data-heat="2"] .fields .hot { opacity: .25; }
body[data-heat="3"] .fields .warm { opacity: .9; }
body[data-heat="3"] .fields .hot { opacity: .45; }
.fields .grain {
  inset: 0;
  border-radius: 0;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .42 0 0 0 0 .33 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ the bar: the name, the ten rounds, score and streak */
.bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 24px;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px 0;
}
.bar .brand { justify-self: start; font-family: var(--serif); font-size: 20px; color: var(--ink); text-decoration: none; }
.bar .brand:hover { text-decoration: underline; }

.pips { display: flex; justify-content: center; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pip {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 16%, transparent);
}
.pip.now { background: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.pip.now::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
}
.pip.hit { background: var(--sage); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent), 0 0 12px color-mix(in srgb, var(--sage) 55%, transparent); }
.pip.miss { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 18%, transparent), 0 0 12px color-mix(in srgb, var(--red) 45%, transparent); }

.status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  white-space: nowrap;
}
.stat { display: inline-flex; align-items: baseline; gap: 7px; }
.stat .label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.roll {
  display: inline-grid;
  min-width: 1.1ch;
  overflow: hidden;
  padding: .06em 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
  text-align: center;
}
.roll > span { grid-area: 1 / 1; }
.streak .mark { align-self: center; color: var(--gold); font-size: 17px; line-height: 1; opacity: .35; transition: opacity .3s, text-shadow .3s; }
.streak.hot .mark { opacity: 1; text-shadow: 0 0 10px color-mix(in srgb, var(--gold) 80%, transparent); }
.streak.hot .roll { color: var(--stamp-gold); }

/* ------------------------------------------------------------------ the views */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px 40px;
}
.plain { text-align: center; }
.view.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 0 56px;
  text-align: center;
}
.view.center h1, .view.center h2 {
  margin: 0;
  font-size: clamp(48px, 11vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.view.center .line {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--body);
  font-size: 18px;
}
.button.big { min-height: 52px; margin-top: 30px; padding: 0 34px; border-radius: 999px; font-size: 17px; box-shadow: 0 10px 26px -14px color-mix(in srgb, var(--acc) 90%, transparent); }
.again { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.again .home-link { font-size: 15px; }

.mark-slot { width: 108px; height: 108px; margin: 0 auto 10px; color: var(--ink); }
.mark-slot svg, .swim svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mark-slot:empty { display: none; }

/* the deck on the start screen: two cards face down, the ✦ on their backs */
.deck { position: relative; width: 170px; height: 118px; margin: 30px auto 0; }
.back {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 78px;
  height: 108px;
  margin-left: -39px;
  border-radius: 11px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 10px),
    linear-gradient(150deg, #6d98ae, #3c6680 55%, #2f5569);
  box-shadow: inset 0 0 0 4px rgba(253, 252, 250, .92), inset 0 0 0 5px rgba(216, 171, 105, .9), 0 12px 24px -12px var(--lift);
}
.back::after {
  content: "✦";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f3dcb4;
  font-size: 28px;
  text-shadow: 0 0 12px rgba(216, 171, 105, .9);
}
.back.b1 { translate: -22px 0; rotate: -10deg; }
.back.b2 { translate: 22px 0; rotate: 8deg; }

/* ------------------------------------------------------------------ a round: the brief, the label, the pair */
.play { display: flex; flex-direction: column; }
.brief {
  position: relative;
  max-width: 820px;
  padding: 14px 20px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--raise) 82%, transparent);
  box-shadow: 0 1px 1px var(--shade);
}
.kind {
  display: inline-block;
  margin: 0 0 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--acc-soft);
  color: var(--acc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.kind.k-message { background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); }
.kind.k-note { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--stamp-gold); }
.ask {
  max-height: 7.8em;
  margin: 0;
  padding-right: 6px;
  overflow-y: auto;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-overflow-scrolling: touch;
}
.question {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0 28px;   /* room above the cards for a stamp on their top edge */
  color: var(--muted);
  font: 600 13px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.question::before, .question::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, transparent, var(--line)); }
.question::after { background: linear-gradient(to left, transparent, var(--line)); }
.question:focus { outline: none; }

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: clamp(280px, 52vh, 500px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 1px var(--shade), 0 16px 34px -22px var(--lift);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* the tilt is on only while the pointer is over a card: a card at rest has no 3D transform, so its text stays sharp */
.card.tilt { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.face {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 6px 6px 22px;
  border-radius: inherit;
  overflow: hidden;
}
/* the glare that follows the pointer while you choose */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), var(--glare), transparent 55%);
  opacity: 0;
  pointer-events: none;
}
.card.tilt::before { opacity: .5; }
/* the ring: slate on focus, sage for the person, red for a card that fooled you */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border: 2px solid var(--ring, var(--acc));
  border-radius: inherit;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ring, var(--acc)) 18%, transparent), 0 22px 60px -18px color-mix(in srgb, var(--ring, var(--acc)) 70%, transparent);
  opacity: 0;
  pointer-events: none;
}
.card:focus { outline: none; }
.card:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding-right: 16px;
}
.card .letter { color: var(--acc); font-family: var(--serif); font-size: 28px; line-height: 1; }
.card .tag {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.card .tag.person { background: color-mix(in srgb, var(--sage) 16%, transparent); color: var(--sage); }
.card .tag.ai { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--stamp-gold); }
.card .text {
  flex: 1;
  min-height: 0;
  margin-top: 8px;
  padding: 0 16px 16px 0;
  overflow-y: auto;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-overflow-scrolling: touch;
}
/* more below: the text fades out at the bottom edge until it's scrolled to the end */
.card .text.more, .ask.more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}

/* only where there's a real hover, so a tapped card on a phone doesn't keep the ring */
@media (hover: hover) {
  .play.picking .card:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
  .play.picking .card:hover::after { opacity: .5; box-shadow: none; }
}
.play.revealed .card { cursor: default; }
.play.revealed .question { opacity: .35; }

.card.chosen { scale: .975; opacity: .85; }
.card.win { --ring: var(--sage); translate: 0 -8px; }
.card.win::after, .card.missed::after, .card.fooled::after { opacity: 1; }
.card.win .face { background: linear-gradient(to bottom, color-mix(in srgb, var(--sage) 10%, transparent), transparent 55%); }
.card.missed { --ring: var(--sage); translate: 0 -6px; }
.card.fooled { --ring: var(--red); }
.card.fooled::after { box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 14%, transparent); }
.card.fooled .face { background: linear-gradient(to bottom, color-mix(in srgb, var(--gold) 12%, transparent), transparent 55%); }
.card.other { opacity: .74; }

/* the stamp: what the picked card was, pressed onto its top edge, clear of the text */
.stamp {
  position: absolute;
  top: -12px;
  right: 18px;
  z-index: 3;
  padding: 9px 16px 7px;
  border: 3px solid currentColor;
  border-radius: 10px;
  outline: 1.5px solid currentColor;
  outline-offset: -8px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  font: 700 26px/1 var(--serif);
  letter-spacing: .09em;
  text-transform: uppercase;
  white-space: nowrap;
  rotate: -7deg;
  pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 0 0 0 2.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 0 0 0 2.45'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}
.stamp.person { color: var(--sage); }
.stamp.ai { color: var(--stamp-gold); }

/* after the pick: Next (the verdict is for screen readers, and the one visible line is the error's) */
.after {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  min-height: 84px;
  margin-top: 14px;
  padding: 16px 0;
}
.verdict { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.play.failed .verdict { position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal; color: var(--red); font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.after .button { min-width: 140px; min-height: 50px; border-radius: 999px; font-size: 16px; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--acc) 90%, transparent); }
#next::after { content: "→"; content: "→" / ""; display: inline-block; margin-left: 2px; }

/* ------------------------------------------------------------------ the end: the score, the ten again, the line */
.view.center .total { display: flex; align-items: baseline; justify-content: center; gap: 14px; }
.total .big {
  font-size: clamp(96px, 22vw, 168px);
  line-height: .95;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  background: linear-gradient(170deg, #f3dcb4, var(--gold) 45%, #a9763f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 22px color-mix(in srgb, var(--gold) 35%, transparent));
}
.total .of { color: var(--muted); font-size: clamp(24px, 5vw, 34px); }
.pips.end { gap: 11px; margin: 26px 0 0; }
.pips.end .pip { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ the layers over everything: the red flash, the
   mark's pass, the sparks */
.flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 110px 16px color-mix(in srgb, var(--red) 55%, transparent), inset 0 0 0 3px color-mix(in srgb, var(--red) 55%, transparent);
}
.swim { position: fixed; inset: 0; z-index: 45; overflow: hidden; pointer-events: none; }
.swim .rider { color: var(--ink); position: absolute; left: 0; top: 0; width: 150px; height: 150px; will-change: transform, opacity; }
.fx { position: fixed; inset: 0; z-index: 50; width: 100%; height: 100%; pointer-events: none; }

/* ------------------------------------------------------------------ narrow screens: the cards one above the other */
@media (max-width: 720px) {
  .bar { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 18px 0; gap: 12px 16px; }
  .bar .brand { font-size: 18px; }
  .bar .pips { grid-column: 1 / -1; order: 3; gap: 7px; }
  .bar .pip { width: 12px; height: 12px; }
  .status { gap: 16px; }
  .roll { font-size: 22px; }
  .stage { padding: 14px 18px 0; }
  .view.center .line { font-size: 17px; }
  .mark-slot { width: 88px; height: 88px; }
  .brief { padding: 12px 16px; }
  .ask { max-height: 6.4em; font-size: 15px; }
  .question { margin: 18px 0 22px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .card { height: auto; max-height: 48vh; max-height: 48svh; }
  .face { padding: 12px 4px 4px 18px; }
  .card .letter { font-size: 24px; }
  .card .text { font-size: 16px; line-height: 1.6; padding-bottom: 12px; }
  .card.win { translate: 0 -4px; }
  .card.missed { translate: 0 -3px; }
  .stamp { top: -10px; right: 12px; padding: 7px 12px 5px; font-size: 21px; outline-offset: -7px; }
  .after {
    min-height: 0;
    margin: 10px -18px 0;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }
  /* once there's an answer (or the error), Next stays on screen at the bottom */
  .play.revealed .after, .play.failed .after {
    position: sticky;
    bottom: 0;
    z-index: 5;
    min-height: 74px;
    background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--paper) 92%, transparent) 30%);
  }
  .play.failed .after { flex-direction: column; }
  .play.failed .verdict { font-size: 17px; text-align: center; }
  .after .button { min-width: 160px; }
  .swim .rider { width: 112px; height: 112px; }
}

/* ------------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .fields .f1 { animation: drift-a 34s ease-in-out infinite alternate; }
  .fields .f2 { animation: drift-b 41s ease-in-out infinite alternate; }
  .fields .f3 { animation: drift-c 38s ease-in-out infinite alternate; }
  .fields .f4 { animation: drift-a 46s ease-in-out -12s infinite alternate-reverse; }
  .fields .warm { animation: breathe 7s ease-in-out infinite alternate; }

  .card {
    transition: transform .3s var(--ease), translate .55s var(--spring), scale .25s var(--ease), opacity .35s ease,
      border-color .2s, box-shadow .3s;
  }
  .card::before, .card::after { transition: opacity .3s ease; }
  .play.picking .card:active { scale: .97; transition-duration: .3s, .55s, .08s, .35s, .2s, .3s; }
  .pip.now::after { animation: pulse 1.5s ease-out infinite; }
  .pip.pop { animation: pip-pop .5s var(--spring); }
  .streak.hot .mark { animation: twinkle 2.4s ease-in-out infinite; }
  .stamp.land { animation: stamp-in .42s cubic-bezier(.3, 1.3, .5, 1) backwards; }
  .card .tag:not([hidden]) { animation: tag-in .35s var(--spring) .2s backwards; }
  .after .button.in { animation: rise-in .38s var(--spring) .12s backwards; }
  #next:hover::after { animation: nudge .6s ease-in-out infinite; }
  .flash.on { animation: flash .8s ease-out; }

  .view.center.in > :not(.mark-slot):not(.deck) { animation: rise-in .6s var(--ease) backwards; }
  .view.center.in > :nth-child(3) { animation-delay: .08s; }
  .view.center.in > :nth-child(4) { animation-delay: .16s; }
  .view.center.in > :nth-child(5) { animation-delay: .24s; }
  .view.center.in .deck .back { animation: deal-back .7s var(--spring) .2s backwards; }
  .view.center.in .deck .b2 { animation-delay: .3s; }
  .deck .back { transition: translate .35s var(--spring), rotate .35s var(--spring); }
  #view-start:has(#start:hover) .deck .b1 { translate: -34px -6px; rotate: -16deg; }
  #view-start:has(#start:hover) .deck .b2 { translate: 34px -6px; rotate: 14deg; }
  .view.in .pips.end .pip { animation: pip-pop .5s var(--spring) var(--d, 0s) backwards; }
}
@keyframes drift-a { to { transform: translate(9vw, 7vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vw, 10vh) scale(.92); } }
@keyframes drift-c { to { transform: translate(7vw, -8vh) scale(1.15); } }
@keyframes breathe { to { transform: scale(1.08); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes pip-pop { 0% { transform: scale(.3); } 60% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes twinkle { 50% { transform: scale(1.25) rotate(18deg); } }
@keyframes stamp-in {
  0% { opacity: 0; scale: 2.6; rotate: -26deg; }
  55% { opacity: 1; scale: .93; rotate: -5deg; }
  100% { scale: 1; rotate: -7deg; }
}
@keyframes tag-in { from { opacity: 0; transform: translateY(-6px) scale(.8); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes flash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
@keyframes deal-back { from { opacity: 0; transform: translateY(50px) rotate(20deg) scale(.8); } }

/* both pages are reachable from every public page of the site */
.legal { display: flex; justify-content: center; gap: 22px; padding: 0 24px 28px; font-size: 13px; }
.legal a { color: var(--muted); text-decoration: none; }
.legal a:hover { color: var(--ink); opacity: 1; }
