/*
  LooksArena: a clean white page.

  Everything is white and nothing has a border, a divider or a frame, except the recipe panel
  (decided on 2026-11-24). The two images sit directly on the white page, as large as the
  window allows. Controls are told from the page by a very light fill. Beside the images the
  recipe is drawn as a LooksMaker panel, which voters know, with the hairline border it has in
  the application. No progress and no instructions on screen. Desktop only.

  There is no top bar (decided on 2026-11-24): the name, the help and the language switch are
  a small badge at the top left, above the recipe, so the images have the height of the window.
  One question per pair is the headline above the two images, and a click on an image answers it.

  There is one look, with no dark theme, on purpose: every voter judges against the same
  surround. The panel (.lm-*) uses LooksMaker's own colors.
*/

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --soft: #f6f7f9;
  --ink: #15181d;
  --muted: #5d6673;
  --line: #e8eaee;
  --line-strong: #d5d9e0;
  --tape: #f2c230;
  --tape-ink: #1b1600;
  --marker: #d3262f;
  --stage: #ffffff;
  --on-stage: #15181d;
  --focus: #1f5bff;
  --g-fid: #2457e6;
  --g-con: #7a3fe0;
  --g-img: #d42a62;
  --g-back: #0b8c7c;
  --g-drw: #b0600a;
  --g-oth: #5e6672;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Inter", "Segoe UI", system-ui, sans-serif;
  --rail: clamp(280px, 23vw, 380px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  min-width: 1024px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.45;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
img { user-select: none; -webkit-user-drag: none; }

#app { min-height: 100%; display: flex; flex-direction: column; padding-inline: 16px; }
#app[data-screen="pair"] { height: 100%; min-height: 600px; }

/* ---------- the badge at the top left: name, set, help, language ---------- */

.top { display: flex; padding-top: 10px; }
.badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; flex: none; background: var(--soft); border-radius: 999px; padding: 4px 5px 4px 13px; }
.brand { font-family: var(--display); font-weight: 750; font-size: 16px; letter-spacing: -0.015em; white-space: nowrap; }
.brand-set { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 12px; color: var(--muted); }

.lang { display: flex; gap: 1px; flex: none; }
.lang button { border: 0; background: none; padding: 3px 6px; border-radius: 999px; font-weight: 600; font-size: 11px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.help { border: 0; background: var(--bg); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.help { font-family: var(--display); font-weight: 700; font-size: 13px; }

.help-wrap { position: relative; display: flex; flex: none; }
.help-pop { position: absolute; z-index: 20; left: 0; top: 34px; width: 340px; background: var(--panel); border: 0; border-radius: 12px; padding: 14px 16px 6px; box-shadow: 0 2px 8px rgba(21, 24, 29, 0.06), 0 16px 40px rgba(21, 24, 29, 0.12); font-size: 13px; }
.help-pop p { margin: 0 0 8px; }

/* ---------- buttons ---------- */

.primary { border: 0; background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.primary.big { padding: 13px 24px; font-size: 16px; }
.primary:disabled { opacity: 0.35; }
.ghost { border: 0; background: var(--soft); padding: 9px 16px; border-radius: 8px; font-weight: 600; }
.ghost.small { padding: 4px 10px; font-size: 13px; }
.ghost:disabled { opacity: 0.4; }
.link { border: 0; background: none; padding: 0; color: inherit; text-decoration: underline; font-weight: 600; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- sign-in, intro, thank you, messages ---------- */

.sheet { flex: 1; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 48px; max-width: 1280px; }
.sheet-single { grid-template-columns: minmax(0, 640px); }
.sheet h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.03; letter-spacing: -0.025em; margin: 0 0 18px; text-wrap: balance; }
.sheet h1.wordmark { font-size: clamp(64px, 8vw, 116px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.92; margin-bottom: 22px; }
.lead { margin: 0 0 26px; color: var(--muted); font-size: 17px; max-width: 58ch; }
.hello { margin: 0 0 10px; font-weight: 600; }
.notice { margin: 0 0 18px; padding: 10px 14px; background: #fdeeee; border-radius: 8px; font-weight: 600; max-width: 58ch; }
.fine { margin: 22px 0 0; color: var(--muted); font-size: 13px; max-width: 58ch; }
.loading { flex: 1; display: grid; place-items: center; color: var(--muted); }

.field { margin-bottom: 22px; }
.field-label { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.choice { border: 0; background: var(--soft); padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; text-align: left; }
.choice[aria-checked="true"] { background: var(--tape); color: var(--tape-ink); }
.start-row { display: flex; align-items: center; gap: 18px; }
.length { color: var(--muted); font-variant-numeric: tabular-nums; }

.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; max-width: 460px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding-bottom: 18px; }
.steps li::before { content: counter(step); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--tape); color: var(--tape-ink); font: 800 20px/1 var(--display); }
.steps b { display: block; font-family: var(--display); font-weight: 650; font-size: 18px; margin-bottom: 2px; }
.steps span { color: var(--muted); }

.dev-form { display: grid; gap: 12px; max-width: 360px; }
.dev-form label { display: grid; gap: 5px; font-weight: 600; font-size: 13px; }
.dev-form input { padding: 10px 12px; border: 0; border-radius: 8px; background: var(--soft); }
.dev-form .primary { justify-self: start; }
.dev-note { margin: 0; color: var(--muted); font-size: 13px; }

/* the booth on the sign-in screen: the grey stage with two empty frames */
.booth { background: var(--soft); border-radius: 12px; padding: 34px; display: flex; gap: 22px; justify-content: center; align-items: center; aspect-ratio: 4 / 3; max-width: 620px; position: relative; }
.booth-card { width: min(42%, 230px); aspect-ratio: 3 / 4; background: #ffffff; border-radius: 4px; position: relative; box-shadow: 0 8px 24px rgba(21, 24, 29, 0.06); }
.booth-card:first-child { transform: rotate(-1.5deg); }
.booth-card:last-child { transform: rotate(1deg); }
.booth-card .letter { position: absolute; top: 8px; left: 8px; }

.stats { display: flex; gap: 40px; margin: 6px 0 30px; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 750 44px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stats dt { font-size: 13px; color: var(--muted); margin-top: 4px; }
.unsaved { background: #fdeeee; border-radius: 10px; padding: 16px 18px; margin-bottom: 26px; }
.unsaved h2 { font-family: var(--display); font-size: 18px; margin: 0 0 6px; }
.unsaved p { margin: 0 0 12px; color: var(--muted); }
.code { width: 100%; resize: vertical; padding: 10px; border: 0; border-radius: 8px; background: var(--soft); font: 12px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; margin-bottom: 12px; }

/* ---------- the pair screen ---------- */

.work { flex: 1; min-height: 0; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); gap: 14px; padding-block: 10px; position: relative; }
/* The badge stays put and only the recipe scrolls, so the help can open over the stage. */
.rail { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rail-scroll { flex: 1; min-height: 0; width: 100%; overflow: auto; scrollbar-width: thin; }

/* ---------- the recipe, drawn as a LooksMaker panel (fixed colors, both themes) ---------- */

.lm-board { background: #ffffff; color: #2a2a3e; border: 1px solid #e5e7eb; border-radius: 16px; padding: 14px 14px 0; font-family: var(--text); overflow: hidden; }
.lm-title { font: 700 14px/1.3 var(--text); margin: 0 0 12px; }
.lm-faces-label { font: 600 10.5px/1 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: #9ca3af; margin-bottom: 7px; }
.lm-pills { display: flex; gap: 8px; margin-bottom: 12px; }
.lm-pill { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid #d1d5db; background: #ffffff; color: #6b7280; font: 500 13px/1 var(--text); display: flex; align-items: center; justify-content: center; gap: 8px; }
.lm-pill-on { background: rgba(10, 80, 202, 0.1); border: 1.5px solid #0a50ca; color: #0a50ca; font-weight: 600; }
.lm-check { width: 16px; height: 16px; border-radius: 50%; background: #0a50ca; position: relative; flex: none; }
.lm-check::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 7px; border: solid #ffffff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

.lm-slots { position: relative; width: 100%; }
.lm-slot { position: absolute; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #f9fafb; cursor: zoom-in; display: block; }
.lm-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lm-slot-empty { border: 1.5px dashed #d1d5db; cursor: default; }
.lm-slot:focus-visible { outline: 2px solid #0a50ca; outline-offset: 1px; }
.lm-chip { position: absolute; left: 4px; top: 4px; max-width: calc(100% - 8px); background: #000000; color: #ffffff; border-radius: 6px; padding: 3px 8px 3px 6px; font: 600 10.5px/1.35 var(--text); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-chip-icon { flex: none; width: 10px; height: 10px; background: #ffffff; -webkit-mask: url("/icons/tag.svg") center / contain no-repeat; mask: url("/icons/tag.svg") center / contain no-repeat; }

.lm-section { border-top: 1px solid #e5e7eb; margin-top: 14px; padding-top: 9px; }
.lm-label { font: 600 12px/1.3 var(--text); color: #6b7280; margin-bottom: 8px; }
.lm-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.lm-swatches i { width: 36px; height: 36px; border-radius: 8px; border: 1px solid #d1d5db; }
.lm-none { font-size: 13px; color: #9ca3af; }
.lm-prompt { background: #fef9f3; margin: 14px -14px 0; padding: 10px 14px 16px; }
.lm-prompt-label { font: 400 12px/1.3 var(--text); color: #6b7280; margin-bottom: 6px; }
.lm-prompt-box { background: #f9fafb; border: 1px solid #d1d5db; border-radius: 8px; padding: 9px 11px; font: 400 14px/1.4 var(--text); color: #2a2a3e; min-height: 50px; overflow-wrap: anywhere; }
.lm-prompt-empty { color: #9ca3af; }

/* ---------- the stage ---------- */

.stage { min-width: 0; min-height: 0; overflow: hidden; background: var(--stage); color: var(--on-stage); display: flex; flex-direction: column; position: relative; }
/* The question, above the images that answer it. Its height puts the images level with the recipe panel. */
.q-text { flex: none; margin: 0 0 10px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 31px; line-height: 37px; letter-spacing: -0.02em; text-wrap: balance; }
.pair { --vw: 300px; flex: 1; min-height: 0; display: flex; justify-content: center; align-items: flex-start; gap: 14px; position: relative; }
.side { width: var(--vw); flex: none; position: relative; display: flex; flex-direction: column; gap: 8px; }
/* A click on an image chooses it. While a problem is being marked, the click points at the place. */
.vp { width: 100%; position: relative; overflow: hidden; border-radius: 4px; background: var(--bg); cursor: pointer; }
.vp.zoomed { cursor: grab; }
.pair.marking .vp { cursor: crosshair; }
.cv { position: absolute; inset: 0; transform-origin: 0 0; --inv: 1; }
.cv img { width: 100%; height: 100%; max-width: none; display: block; pointer-events: none; }

.tagrow { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 6px; pointer-events: none; }
.letter { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; background: #0e0e0e; color: #fff; font: 800 20px var(--display); }
.stamps { display: flex; gap: 5px; }
/* The letter lights up for the image under the pointer, the answer being pointed at, and the image chosen. */
.side.pointed .letter, .side.chosen .letter, .pair:not(.marking) .vp:hover .letter { background: var(--tape); color: var(--tape-ink); }

/* The answer, stamped where it landed: a tick on the chosen image, "=" or "×" between the two. */
.stamp { min-width: 30px; height: 30px; padding: 0 7px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; background: var(--tape); color: var(--tape-ink); font: 800 18px/1 var(--display); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.tick { width: 8px; height: 14px; border: solid currentColor; border-width: 0 2.8px 2.8px 0; transform: translateY(-2px) rotate(45deg); }
.seam { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }

.pin { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; border: 2px solid #fff; display: grid; place-items: center; font: 700 12px/1 var(--text); color: #fff; background: var(--g-oth); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45); transform: scale(var(--inv)); pointer-events: none; }
.pin-ghost { background: rgba(255, 255, 255, 0.35); border-style: dashed; }
[data-group="fid"] { background: var(--g-fid); }
[data-group="con"] { background: var(--g-con); }
[data-group="img"] { background: var(--g-img); }
[data-group="back"] { background: var(--g-back); }
[data-group="drw"] { background: var(--g-drw); }
[data-group="oth"] { background: var(--g-oth); }
[data-group="tape"] { background: var(--tape); }

.marks { display: flex; gap: 6px; align-items: center; height: 30px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--soft); color: var(--ink); border-radius: 999px; padding: 3px 4px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.chip em { font: 700 11px/1 var(--text); font-style: normal; color: #fff; min-width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--g-oth); }
.chip button { border: 0; background: none; color: var(--muted); width: 20px; height: 20px; border-radius: 50%; line-height: 1; font-size: 15px; padding: 0; }
.chip button:hover { background: var(--line); color: var(--ink); }
.add { flex: none; border: 0; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.add:disabled { opacity: 0.5; }
/* marking: the line under the image says what the next click does */
.mark-hint { flex: none; background: var(--tape); color: var(--tape-ink); border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.add-cancel { padding: 3px 9px; font-size: 15px; line-height: 1.2; }

.coach, .toast { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); border-radius: 999px; white-space: nowrap; }
/* lives in the dock, so it never covers an image */
.zoom-pill { border-radius: 999px; background: var(--ink); color: var(--bg); padding: 3px 3px 3px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.zoom-pill button { border: 0; background: var(--bg); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 600; }
.coach, .toast { top: calc(var(--image-bottom, 400px) - 52px); }
.coach { background: rgba(0, 0, 0, 0.78); color: #fff; padding: 8px 16px; font-size: 13px; font-weight: 500; pointer-events: none; }
.toast { background: var(--tape); color: var(--tape-ink); padding: 8px 18px; font: 700 15px/1.2 var(--display); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); pointer-events: none; opacity: 0; }
.stage-error { position: absolute; z-index: 4; left: 50%; top: 14px; transform: translateX(-50%); background: var(--panel); box-shadow: 0 2px 8px rgba(21, 24, 29, 0.06), 0 12px 32px rgba(21, 24, 29, 0.14); color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 600; display: flex; gap: 10px; align-items: center; }

.pop { position: absolute; z-index: 5; width: 250px; overflow: auto; background: var(--panel); color: var(--ink); border: 0; border-radius: 10px; padding: 8px; box-shadow: 0 2px 8px rgba(21, 24, 29, 0.06), 0 16px 40px rgba(21, 24, 29, 0.14); }
.pop h4 { margin: 10px 6px 2px; font: 600 12px var(--text); color: var(--muted); display: flex; align-items: center; gap: 6px; }
.pop h4:first-child { margin-top: 2px; }
.pop h4 i { width: 9px; height: 9px; border-radius: 50%; }
.pop .tag { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 6px 8px; border-radius: 6px; font-size: 13px; }
.pop .tag:hover, .pop .tag:focus-visible { background: var(--soft); }
.pop :focus-visible { outline-color: var(--focus); }

.lightbox { position: absolute; inset: 10px 0 10px calc(var(--rail) + 14px); z-index: 6; background: var(--stage); border-radius: 12px; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: calc(100% - 30px); border-radius: 4px; box-shadow: none; grid-area: 1 / 1; }
.lightbox-label { grid-area: 1 / 1; align-self: end; color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- the dock: the four answers, the note, back and next, in one row ---------- */

.dock { display: flex; gap: 10px; align-items: stretch; padding-block: 4px 14px; position: relative; }
/* The answers never shrink below their words; the note gives way first. */
.seg-group { flex: 1 0 auto; display: flex; gap: 8px; }
.opt { flex: 1 1 0; min-width: max-content; border: 0; background: var(--soft); padding: 14px 18px; border-radius: 10px; font-weight: 650; font-size: 16px; white-space: nowrap; }
.opt[aria-pressed="true"] { background: var(--tape); color: var(--tape-ink); }
.note { flex: 0 1 260px; min-width: 110px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--soft); font-size: 14px; }
.zoom-pill { flex: none; align-self: center; }
.status { flex: none; align-self: center; font-size: 12px; color: var(--muted); line-height: 1.3; }
.status:empty { display: none; }
/* A save that failed is said above the dock, under the recipe, where it covers no image and no mark. */
.status[data-state="failed"] { position: absolute; z-index: 7; left: 0; bottom: calc(100% + 8px); width: var(--rail); background: #fdeeee; color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: 13px; }
.status-failed { font-weight: 600; }
.dock .ghost, .dock .primary { flex: none; border-radius: 10px; padding-inline: 22px; }

/* ---------- the thank you: pins and buttons, once ---------- */

.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 30; }
.confetti i { position: absolute; top: -24px; width: 14px; height: 14px; border-radius: 50%; opacity: 0; }
.confetti i[data-shape="button"] { width: 18px; height: 18px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  background-image: radial-gradient(circle at 36% 50%, rgba(0, 0, 0, 0.55) 0 1.6px, transparent 1.9px), radial-gradient(circle at 64% 50%, rgba(0, 0, 0, 0.55) 0 1.6px, transparent 1.9px); }

/* ---------- motion ----------
   Everything here answers something the voter did (a new pair, an answer, a mark) or happens
   once (the thank you). Both images always move alike. Nothing delays an answer: input works
   while an effect plays. */

@media (prefers-reduced-motion: no-preference) {
  .opt, .primary, .choice, .letter { transition: background-color 0.12s, color 0.12s; }

  /* a new pair: the two images slide onto the stage together */
  .stage.arrive .side { animation: arrive 0.34s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  .stage.arrive-forward .side { --from: 34px; }
  .stage.arrive-back .side { --from: -34px; }
  .rail .lm-board { animation: settle 0.3s ease-out backwards; }

  .stamp-new { animation: stamp 0.26s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
  .pin-new { animation: pin-drop 0.34s cubic-bezier(0.3, 1.4, 0.5, 1) backwards; }
  .next.lit { animation: lit 0.7s ease-out; }
  .toast { animation: toast 2.6s ease-in-out forwards; }
  .coach { animation: settle 0.4s ease-out 0.5s backwards; }
  .zoom-pill:not([hidden]), .pop, .help-pop:not([hidden]) { animation: settle 0.14s ease-out backwards; }
  .confetti i { animation-name: fall; animation-timing-function: cubic-bezier(0.3, 0.2, 0.6, 1); animation-fill-mode: forwards; }

  @keyframes arrive { from { opacity: 0; translate: var(--from, 0) 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes settle { from { opacity: 0; translate: 0 6px; } }
  @keyframes stamp { from { opacity: 0; scale: 2.1; rotate: -14deg; } }
  @keyframes pin-drop { from { opacity: 0; translate: 0 -22px; } 70% { opacity: 1; translate: 0 2px; } to { translate: 0 0; } }
  @keyframes lit { from { box-shadow: 0 0 0 0 var(--tape); } to { box-shadow: 0 0 0 12px transparent; } }
  @keyframes toast { 0% { opacity: 0; translate: 0 10px; } 12%, 78% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 6px; } }
  @keyframes fall { 0% { opacity: 1; translate: 0 0; rotate: 0deg; } 85% { opacity: 1; } 100% { opacity: 0; translate: var(--drift, 0) 108vh; rotate: var(--spin, 180deg); } }
}

@media (prefers-reduced-motion: reduce) {
  .toast { opacity: 1; }
  .confetti { display: none; }
}
