/* FidL, direction "Ça marche !" : nappe vichy, condiments, autocollants épais. */

:root {
  --cobalt: #1B3FE0;
  --cobalt-deep: #142FA8;
  --encre: #0C1A5B;
  --ketchup: #D21F16;
  --moutarde: #FFC41F;
  --moutarde-deep: #D99A00;
  --cornichon: #0B7A54;
  --mayo: #FFFDF6;
  --assiette: #FFFFFF;
  --sel: #EEF0FA;
  --poivre: #4A5482;
  --bronze: #E5AC78;
  --argent: #D8DEE6;
  --or: #FFC41F;
  --diamant: #0C1A5B;
  --diamant-glow: #8FE9FF;

  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px; --fs-xl: 26px; --fs-2xl: 34px; --fs-3xl: 46px;

  --trait: 2.5px solid var(--encre);
  --ombre: 0 4px 0 var(--encre);
  --ombre-lg: 0 6px 0 var(--encre);
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --ease-rebond: cubic-bezier(.34,1.56,.64,1);
  --vichy-size: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-synthesis: none; }
body {
  margin: 0; min-height: 100vh; background: var(--mayo); color: var(--encre);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.45; -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ketchup); outline-offset: 2px; }
.hidden { display: none !important; }

.vichy {
  background-color: var(--assiette);
  background-image: linear-gradient(90deg, rgba(27,63,224,.55) 50%, transparent 50%), linear-gradient(rgba(27,63,224,.55) 50%, transparent 50%);
  background-size: var(--vichy-size) var(--vichy-size);
}

/* --- Colonne client --- */
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.page { flex: 1; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.card-head + .page, .home-top + .page { padding-top: 18px; }
.page > * { flex-shrink: 0; }
.page.with-tabs { padding-bottom: 116px; }
.page.with-foot { padding-bottom: 104px; }
.hello { font-family: var(--font-display); font-size: var(--fs-xl); }
.eyebrow { font-weight: 800; font-size: var(--fs-xs); letter-spacing: .07em; text-transform: uppercase; color: var(--poivre); }
.sub { font-size: var(--fs-sm); color: var(--poivre); font-weight: 500; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }

/* --- Boutons --- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 10px 18px;
  border: var(--trait); border-radius: var(--r-md); font-family: var(--font-display); font-size: var(--fs-lg); box-shadow: var(--ombre);
  background: var(--moutarde); color: var(--encre); text-decoration: none; transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--encre); }
.btn.ketchup { background: var(--ketchup); color: var(--assiette); }
.btn.cobalt { background: var(--cobalt); color: var(--assiette); }
.btn.blanc { background: var(--assiette); color: var(--encre); }
.btn small { display: block; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-sm); }
.btn.tall { flex-direction: column; gap: 0; min-height: 84px; }
.btn.mini { min-height: 44px; font-size: var(--fs-md); padding: 6px 14px; width: auto; flex: none; white-space: nowrap; }
.lien { background: none; border: 0; min-height: 44px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--encre); }
.back { background: none; border: 0; color: inherit; font-weight: 700; min-height: 44px; padding: 0; text-align: left; text-decoration: none; display: inline-flex; align-items: center; }

/* --- Autocollants --- */
.sticker { background: var(--assiette); border: var(--trait); border-radius: var(--r-lg); box-shadow: var(--ombre); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: var(--fs-sm); }
.input { width: 100%; min-height: 50px; padding: 10px 14px; border: var(--trait); border-radius: var(--r-sm); background: var(--assiette); font-size: var(--fs-md); font-weight: 500; }
.input:focus { outline: 3px solid var(--moutarde); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: var(--trait); border-radius: var(--r-md); overflow: hidden; background: var(--assiette); }
.seg button { border: 0; background: none; min-height: 46px; font-weight: 800; }
.seg button.on { background: var(--encre); color: var(--assiette); }

.ds-tier {
  display: inline-flex; align-items: center; padding: 2px 10px; border: 2px solid var(--encre); border-radius: 999px; font-weight: 800; font-size: var(--fs-xs);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--t-bg); color: var(--t-fg); font-family: var(--font-body);
}
.tier-bronze { --t-bg: var(--bronze); --t-fg: var(--encre); }
.tier-silver { --t-bg: var(--argent); --t-fg: var(--encre); }
.tier-gold { --t-bg: var(--or); --t-fg: var(--encre); }
.tier-diamond { --t-bg: var(--diamant); --t-fg: var(--diamant-glow); }

/* --- Plaques de niveau --- */
.plaque { border: var(--trait); border-radius: var(--r-lg); box-shadow: var(--ombre); padding: 14px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.p-bronze { background: repeating-linear-gradient(95deg, #E9BC8F 0 6px, #E2AE7C 6px 9px); }
.p-silver { background: repeating-linear-gradient(90deg, #E4E9EF 0 2px, #D3DAE3 2px 4px); }
.p-gold { background: linear-gradient(90deg, #FFCF4D, #FFEFB8, #FFCF4D, #FFEFB8, #FFCF4D); background-size: 200% 100%; animation: foil 6s linear infinite; }
.p-diamond { background: conic-gradient(from 210deg at 70% 30%, #0C1A5B, #17307F, #0C1A5B, #1B3FE0, #0C1A5B); color: var(--assiette); }
.p-diamond .eyebrow { color: var(--diamant-glow); }
.count { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1; }
.count small { font-size: var(--fs-lg); }

/* --- Tampons --- */
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.plate { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; }
.plate.vide { background: var(--assiette); border: 2px dashed var(--encre); color: var(--poivre); font-weight: 800; font-size: var(--fs-sm); }
.plate.cadeau { background: var(--moutarde); border: var(--trait); font-size: 20px; }
.plate svg { width: 100%; height: 100%; display: block; }
.plate.suivant { animation: nudge 1.6s ease-in-out infinite; }
.mini-stamps { display: flex; gap: 5px; }
.mini-stamps i { flex: 1; aspect-ratio: 1; max-width: 26px; border-radius: 50%; border: 2px solid var(--encre); background: var(--assiette); }
.mini-stamps i.on { background: var(--resto, var(--cobalt)); }
.mini-stamps i.gift { background: var(--moutarde); }
.track { height: 14px; border: 2px solid var(--encre); border-radius: 999px; background: var(--assiette); overflow: hidden; }
.track i { display: block; height: 100%; background: var(--cornichon); border-right: 2px solid var(--encre); transition: width .9s var(--ease-rebond); }

/* --- Série --- */
.flame { width: 26px; height: 26px; flex: none; transform-origin: 50% 90%; }
.flame path { fill: var(--ketchup); }
.flame .inner { fill: var(--moutarde); }
.s-ok .flame { animation: flicker 1.8s ease-in-out infinite; }
.s-risk .flame { animation: flicker .9s ease-in-out infinite; }
.s-lost .flame path, .s-none .flame path { fill: #B9BFD6; }
.streak { display: flex; align-items: center; gap: 10px; min-width: 0; }
.streak b { font-weight: 800; display: block; line-height: 1.2; }
.streak span { font-size: var(--fs-sm); color: var(--poivre); display: block; line-height: 1.25; }
.s-risk.streak span { color: var(--ketchup); font-weight: 700; }
.weeks { display: flex; gap: 6px; }
.weeks i { flex: 1; height: 12px; border: 2px solid var(--encre); border-radius: 4px; background: var(--assiette); }
.weeks i.on { background: var(--ketchup); }
.weeks i.now { background: var(--moutarde); animation: nudge 1.4s ease-in-out infinite; }

/* --- Portefeuille --- */
.hero-top { padding: 10px 14px; margin: -16px -16px 0; background: var(--resto); color: var(--assiette); border-bottom: var(--trait); border-radius: 19px 19px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 800; }
.hero-reward { font-family: var(--font-display); font-size: var(--fs-2xl); line-height: 1.05; }
.card-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--assiette); border: var(--trait); border-radius: var(--r-md); box-shadow: var(--ombre); padding: 10px 12px; text-align: left; width: 100%; min-height: 72px; }
.card-row:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
.dot { width: 46px; height: 46px; border-radius: 50%; border: var(--trait); background: var(--resto); color: var(--assiette); display: grid; place-items: center; font-family: var(--font-display); font-size: var(--fs-lg); }
.card-row b { display: block; font-weight: 800; line-height: 1.2; }
.card-row .sub { display: block; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); font-weight: 600; color: var(--encre); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--encre); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.stats b { display: block; font-family: var(--font-display); font-size: var(--fs-lg); font-weight: 400; }
.stats span { font-size: var(--fs-xs); color: var(--poivre); font-weight: 600; }

/* --- Barre d'onglets --- */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--assiette); border-top: var(--trait); padding: 6px 8px calc(10px + env(safe-area-inset-bottom, 0px)); }
.tabs-in { max-width: 480px; margin: 0 auto; display: grid; grid-template-columns: 1fr 86px 1fr; align-items: end; }
.tab { background: none; border: 0; min-height: 52px; font-weight: 700; font-size: var(--fs-xs); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--poivre); border-radius: var(--r-sm); }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--ketchup); }
.tab.qr { margin-top: -26px; width: 74px; height: 74px; justify-self: center; background: var(--moutarde); border: var(--trait); border-radius: 50%; box-shadow: var(--ombre); color: var(--encre); font-family: var(--font-display); font-size: var(--fs-sm); }
.tab.qr:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--encre); }
.foot { position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--assiette); border-top: var(--trait); }
.foot-in { max-width: 448px; margin: 0 auto; }

/* --- En-tête de carte --- */
.card-head { background: var(--resto, var(--cobalt)); color: var(--assiette); border-bottom: var(--trait); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-head h2 { font-size: var(--fs-xl); }

/* --- Pavé PIN --- */
.pin-dots { display: flex; justify-content: center; gap: 10px; }
.pin-dots i { width: 22px; height: 22px; border-radius: 50%; border: var(--trait); background: var(--assiette); transition: transform .12s var(--ease-rebond); }
.pin-dots i.on { background: var(--ketchup); transform: scale(1.15); }
.pin-error { color: var(--ketchup); font-weight: 700; font-size: var(--fs-sm); min-height: 20px; text-align: center; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { min-height: 60px; border: var(--trait); border-radius: var(--r-md); background: var(--assiette); box-shadow: 0 3px 0 var(--encre); font-family: var(--font-display); font-size: var(--fs-xl); }
.key:active { transform: translateY(3px); box-shadow: none; }
.key.ok { background: var(--cornichon); color: var(--assiette); }
.key.ok:disabled { background: var(--sel); color: var(--poivre); cursor: not-allowed; }

/* --- Feuille basse --- */
.veil { position: fixed; inset: 0; z-index: 40; background: rgba(12,26,91,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; background: var(--assiette); border: var(--trait); border-bottom: 0; border-radius: 26px 26px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; max-height: 92vh; overflow-y: auto; animation: rise .28s var(--ease-rebond); }
.sheet h3 { font-size: var(--fs-xl); }
.qr-box { width: min(240px, 100%); margin: 0 auto; padding: 10px; border: var(--trait); border-radius: var(--r-md); background: var(--assiette); box-shadow: var(--ombre); }
.qr-box img { width: 100%; display: block; }

/* --- Moments de gain --- */
.moment { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 12px; padding: calc(24px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px)); text-align: center; animation: fade .18s ease-out; overflow: hidden; }
.moment .card-up { background: var(--assiette); color: var(--encre); border: var(--trait); border-radius: var(--r-lg); box-shadow: var(--ombre-lg); padding: 18px 16px; width: 100%; max-width: 448px; display: flex; flex-direction: column; gap: 10px; align-items: center; position: relative; z-index: 6; }
.moment h2 { font-size: var(--fs-2xl); }
.big-plate { width: 190px; height: 190px; position: relative; border-radius: 50%; background: var(--assiette); border: var(--trait); display: grid; place-items: center; box-shadow: var(--ombre-lg); }
.big-plate::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; border: 2px solid var(--sel); }
.drop { width: 132px; height: 132px; animation: drop .55s cubic-bezier(.5,0,.75,0) both; position: relative; z-index: 1; }
.ring { position: absolute; inset: 20px; border-radius: 50%; border: 5px solid var(--resto, var(--ketchup)); opacity: 0; animation: ring .6s .5s ease-out both; }
.gain { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--cornichon); animation: pop .4s .55s var(--ease-rebond) both; }
.medal { width: 170px; height: 170px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--encre); box-shadow: var(--ombre-lg); font-family: var(--font-display); font-size: var(--fs-xl); animation: flipin .8s var(--ease-rebond) both; background: var(--t-bg); color: var(--t-fg); }
.body-thud { animation: thud .35s ease-out; }
.wheel-wrap { position: relative; width: min(280px, 78vw); aspect-ratio: 1; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; border-radius: 50%; border: 3px solid var(--encre); box-shadow: var(--ombre-lg); background: var(--assiette); }
.wheel-pin { position: absolute; top: -8px; left: 50%; margin-left: -14px; width: 28px; height: 34px; z-index: 2; }
.lots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.lots span { font-size: var(--fs-xs); font-weight: 700; padding: 2px 8px; border: 2px solid var(--encre); border-radius: 999px; background: var(--assiette); }
.win { background: var(--moutarde); border: var(--trait); border-radius: var(--r-md); padding: 8px 12px; font-weight: 700; }

/* --- Confettis, toast --- */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti-piece { position: absolute; top: -16px; animation: confettiFall linear forwards; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 90; background: var(--encre); color: var(--assiette); padding: 10px 18px; border-radius: var(--r-md); font-weight: 700; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; }
.toast.ok { background: var(--cornichon); }
.stamp-shockwave { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--moutarde); animation: ring .6s ease-out forwards; pointer-events: none; }

.tampon-perso { width: 120px; height: 120px; display: block; }
.happy { animation: hop 1.6s ease-in-out infinite; transform-origin: 50% 100%; }

/* --- Commerçant et admin : le passe, tout en cobalt ---
   Ces pages sont écrites pour un fond sombre : on y garde leurs noms de variables. */
body.passe {
  background: var(--cobalt); color: var(--assiette);
  --fg: #FFFFFF; --fg-secondary: rgba(255,255,255,.8); --fg-muted: rgba(255,255,255,.7); --fg-dim: rgba(255,255,255,.55);
  --bg-void: var(--encre); --bg-deep: var(--encre); --bg-surface: var(--cobalt-deep); --bg-raised: var(--cobalt-deep); --bg-elevated: var(--encre);
  --pink: var(--moutarde); --pink-glow: rgba(255,196,31,.3); --pink-soft: rgba(255,196,31,.12);
  --gold: var(--moutarde); --gold-glow: rgba(255,196,31,.3); --gold-soft: rgba(255,196,31,.12);
  --mint: #7CF5C4; --mint-glow: rgba(124,245,196,.3); --mint-soft: rgba(124,245,196,.12);
  --gradient-header: var(--encre); --gradient-cta: var(--moutarde); --gradient-gold: var(--moutarde); --gradient-mint: #7CF5C4; --gradient-card: var(--cobalt-deep);
  --shadow-pink: var(--ombre); --shadow-gold: var(--ombre); --ease-out: cubic-bezier(.16,1,.3,1); --ease-bounce: var(--ease-rebond);
  --border: rgba(255,255,255,.14); --border-hover: rgba(255,255,255,.28);
  --tint: rgba(255,255,255,.06); --line: rgba(255,255,255,.12);
  --toggle-off: rgba(255,255,255,.28);
}
body.passe .card, body.passe .stat-pill, body.passe .stat, body.passe .customer-panel { border: var(--trait); box-shadow: var(--ombre); }
body.passe .btn { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-md); border: var(--trait); box-shadow: 0 3px 0 var(--encre); }
body.passe .btn:active { transform: translateY(3px); box-shadow: none; }
body.passe .btn-primary, body.passe .btn-gold, body.passe .btn-stamp { background: var(--moutarde); color: var(--encre); }
body.passe .btn-stamp { font-size: var(--fs-xl); min-height: 96px; animation: none; }
body.passe .btn-success { background: #7CF5C4; color: var(--encre); }
body.passe .btn-danger { background: var(--ketchup); color: var(--assiette); }
body.passe .btn-outline { background: var(--assiette); color: var(--encre); }
body.passe .topbar-logo, body.passe .header-logo, body.passe .login-logo { font-weight: 400; letter-spacing: 0; }
body.passe .bottom-nav { background: var(--encre); border: var(--trait); box-shadow: var(--ombre); }
body.passe .bottom-nav button { color: rgba(255,255,255,.75); }
body.passe .bottom-nav svg { stroke: rgba(255,255,255,.75); }
body.passe .bottom-nav button.on { color: var(--moutarde); background: rgba(255,196,31,.14); }
body.passe .bottom-nav button.on svg { stroke: var(--moutarde); }
body.passe input, body.passe select, body.passe textarea { background: var(--encre); border-color: rgba(255,255,255,.35); color: var(--assiette); }
body.passe input::placeholder, body.passe textarea::placeholder { color: rgba(255,255,255,.6); }
body.passe select option { background: var(--encre); }
body.passe .toast { background: var(--encre); color: var(--assiette); }
body.passe .toast.ok { background: #7CF5C4; color: var(--encre); }

/* --- Commerçant : variante claire, même famille que le client --- */
body.clair {
  background: var(--mayo); color: var(--encre);
  --fg: var(--encre); --fg-secondary: #2B376E; --fg-muted: var(--poivre); --fg-dim: #5E678F;
  --bg-void: var(--assiette); --bg-deep: var(--assiette); --bg-surface: var(--assiette); --bg-raised: var(--assiette); --bg-elevated: var(--sel);
  --pink: var(--ketchup); --pink-glow: rgba(210,31,22,.18); --pink-soft: rgba(210,31,22,.08);
  --gold: #8A5A00; --gold-glow: transparent; --gold-soft: rgba(255,196,31,.2);
  --mint: var(--cornichon); --mint-glow: transparent; --mint-soft: rgba(11,122,84,.1);
  --gradient-header: var(--assiette); --gradient-card: var(--assiette);
  --border: rgba(12,26,91,.16); --border-hover: rgba(12,26,91,.3);
  --tint: var(--sel); --line: rgba(12,26,91,.16);
  --toggle-off: #B9BFD6;
}
body.passe .toggle-bg { box-shadow: inset 0 0 0 2px var(--fg); }
body.passe .toggle-knob { box-shadow: 0 0 0 2px var(--fg); }
body.clair .topbar { border-bottom: var(--trait); color: var(--encre); }
body.clair .topbar-logo { color: var(--ketchup); }
body.clair .topbar-logo span { color: var(--encre); text-shadow: none; }
body.clair .topbar button { background: var(--assiette); color: var(--encre); border: var(--trait); }
body.clair .stat-pill .v, body.clair .stat .v { color: var(--encre); text-shadow: none; }
body.clair .customer-header { background: var(--ketchup); color: var(--assiette); border-bottom: var(--trait); }
body.clair .customer-header .visits, body.clair .customer-header .pts-label { color: rgba(255,255,255,.9); }
body.clair .customer-header .pts { color: var(--assiette); text-shadow: none; }
body.clair .bottom-nav { background: var(--assiette); }
body.clair .bottom-nav button { color: var(--poivre); }
body.clair .bottom-nav svg { stroke: var(--poivre); }
body.clair .bottom-nav button.on { color: var(--encre); background: var(--moutarde); }
body.clair .bottom-nav button.on svg { stroke: var(--encre); }
body.clair input, body.clair select, body.clair textarea { background: var(--assiette); border: 2px solid var(--encre); color: var(--encre); }
body.clair input::placeholder, body.clair textarea::placeholder { color: var(--fg-dim); }
body.clair select option { background: var(--assiette); }
body.clair .scanner-mode button { color: var(--encre); border-color: var(--encre); background: var(--assiette); }
body.clair .scanner-mode button.on { background: var(--encre); color: var(--assiette); }
body.clair .btn-outline { border: var(--trait); }

@keyframes foil { to { background-position: -200% 0; } }
@keyframes confettiFall { to { transform: translateY(110vh) rotate(var(--rot, 720deg)); } }
@keyframes thud { 0%,100% { transform: translateY(0); } 30% { transform: translateY(5px) rotate(.4deg); } 60% { transform: translateY(-2px) rotate(-.3deg); } }
@keyframes flicker { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.1,1.16) rotate(3deg); } }
@keyframes nudge { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { 0% { transform: translateY(-420px) rotate(-16deg) scale(1.5); } 90% { transform: translateY(0) rotate(4deg) scale(1.1); } 100% { transform: rotate(-6deg) scale(1); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes flipin { from { transform: rotateY(180deg) scale(.5); opacity: 0; } to { transform: rotateY(0) scale(1); opacity: 1; } }
@keyframes hop { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes glow { 0%,100% { transform: none; } }
@keyframes stampLand { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.4); } 100% { transform: scale(1); opacity: 1; } }
@keyframes shockwave { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(2.5); opacity: 0; } }

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