/* The license moment (moment.js): a gold breakout, about 2.4 s, then still. The same file serves the site
   (/pay/moment.css) and the admin (admin/moment.css); test/license-moment.test.mjs keeps them identical. It takes the
   page's own --ink, --muted, --gold and --gold-soft. Candles 0-0.9 s, line 0.6-1.5 s, badge 1.4 s, sparks 1.6 s,
   words 1.75-2.3 s; nothing of it is drawn before it starts. */
.cm-card { display: grid; gap: 12px; min-width: 0; padding: 16px; border: 1px solid rgba(226, 196, 108, .45); border-radius: 16px;
  background: linear-gradient(160deg, rgba(226, 196, 108, .075), rgba(226, 196, 108, .012) 60%), #0b0d10; color: var(--ink); text-align: left; }
.cm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.cm-what { min-width: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.cm-eur { flex: none; color: var(--gold-soft); font-size: 20px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cm-play, .cm-still { position: relative; overflow: hidden; }
.cm-chart { position: relative; width: 100%; max-height: 230px; aspect-ratio: 34 / 13; border-radius: 12px; overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px) 0 0 / 100% 30px, #08090c; }
.cm-plot { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-candle { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); opacity: 0; }
.cm-wick { stroke-width: 1.4; }
.cm-candle.up .cm-body { fill: #7ee0a3; } .cm-candle.up .cm-wick { stroke: #7ee0a3; }
.cm-candle.down .cm-body { fill: #ff8b86; } .cm-candle.down .cm-wick { stroke: #ff8b86; }
.cm-trend { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 520; stroke-dashoffset: 520; filter: drop-shadow(0 0 6px rgba(226, 196, 108, .55)); }
.cm-glow { fill: #f3dc93; opacity: 0; filter: drop-shadow(0 0 10px #e2c46c); }
.cm-badge { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; transform: scale(0);
  background: radial-gradient(circle at 35% 30%, #f7e3a3, #e2c46c 55%, #a9873a); box-shadow: 0 0 0 0 rgba(226, 196, 108, .5), 0 12px 30px rgba(0, 0, 0, .45); }
.cm-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cm-badge path { fill: none; stroke: #17130a; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; }
.cm-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; background: #f3dc93; transform: rotate(45deg) scale(0); opacity: 0; }
.cm-spark[data-small] { width: 6px; height: 6px; margin: -3px; }
.cm-words { display: grid; gap: 6px; }
.cm-title { margin: 0; color: var(--ink); font-family: var(--display, inherit); font-size: clamp(22px, 3.2vw, 28px); font-weight: 750; line-height: 1.1; letter-spacing: -.03em; opacity: 0; transform: translateY(8px); }
.cm-title em { font-style: normal; color: var(--gold); }
.cm-sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(8px); }
.cm-facts { display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; }
.cm-facts span { padding: 5px 10px; border: 1px solid var(--line-strong, var(--border-strong, rgba(255, 255, 255, .16))); border-radius: 999px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cm-facts b { color: var(--ok, #7ee0a3); font-weight: 650; }
.cm-next { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #f0d584, #e2c46c); color: #17130a; font: inherit; font-size: 14px; font-weight: 750; text-decoration: none; cursor: pointer; opacity: 0; }
.cm-next:hover { background: #f3dc93; }
.cm-play .cm-candle { animation: cm-rise .42s cubic-bezier(.2, .9, .3, 1.15) forwards; animation-delay: calc(var(--i) * 95ms); }
.cm-play .cm-trend { animation: cm-draw .95s cubic-bezier(.6, 0, .2, 1) .6s forwards; }
.cm-play .cm-glow { animation: cm-blink .6s ease-out 1.45s forwards; }
.cm-play .cm-plot { animation: cm-dim .5s ease 1.5s forwards; }
.cm-play .cm-badge { animation: cm-pop .55s cubic-bezier(.2, 1.4, .4, 1) 1.4s forwards, cm-ring 1.4s ease-out 1.85s 2; }
.cm-play .cm-badge path { animation: cm-draw .38s ease-out 1.75s forwards; }
.cm-play .cm-spark { animation: cm-burst .9s cubic-bezier(.1, .8, .3, 1) 1.6s forwards; }
.cm-play .cm-title { animation: cm-up .5s ease 1.75s forwards; }
.cm-play .cm-sub { animation: cm-up .5s ease 1.9s forwards; }
.cm-play .cm-facts { animation: cm-fade .5s ease 2.05s forwards; }
.cm-play .cm-next { animation: cm-fade .5s ease 2.2s forwards; }
@keyframes cm-rise { to { transform: scaleY(1); opacity: 1; } }
@keyframes cm-draw { to { stroke-dashoffset: 0; } }
@keyframes cm-blink { 40% { opacity: 1; r: 9; } to { opacity: 1; r: 5; } }
@keyframes cm-dim { to { opacity: .45; } }
@keyframes cm-pop { to { transform: scale(1); } }
@keyframes cm-ring { from { box-shadow: 0 0 0 0 rgba(226, 196, 108, .55), 0 12px 30px rgba(0, 0, 0, .45); } to { box-shadow: 0 0 0 28px rgba(226, 196, 108, 0), 0 12px 30px rgba(0, 0, 0, .45); } }
@keyframes cm-burst { 0% { opacity: 1; transform: rotate(45deg) translate(0, 0) scale(.4); } 100% { opacity: 0; transform: rotate(45deg) translate(var(--dx), var(--dy)) scale(1); } }
@keyframes cm-up { to { opacity: 1; transform: none; } }
@keyframes cm-fade { to { opacity: 1; } }
/* The finished frame: a payment already paid when the page opened, or Reduced Motion. */
.cm-still .cm-candle { transform: none; opacity: 1; }
.cm-still .cm-trend { stroke-dashoffset: 0; }
.cm-still .cm-plot { opacity: .45; }
.cm-still .cm-glow { opacity: 1; }
.cm-still .cm-badge { transform: none; }
.cm-still .cm-badge path { stroke-dashoffset: 0; }
.cm-still :is(.cm-title, .cm-sub, .cm-facts, .cm-next) { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cm-play *, .cm-play { animation: none !important; }
  .cm-play .cm-candle { transform: none; opacity: 1; }
  .cm-play .cm-trend { stroke-dashoffset: 0; }
  .cm-play .cm-plot { opacity: .45; }
  .cm-play .cm-glow { opacity: 1; }
  .cm-play .cm-badge { transform: none; }
  .cm-play .cm-badge path { stroke-dashoffset: 0; }
  .cm-play :is(.cm-title, .cm-sub, .cm-facts, .cm-next) { opacity: 1; transform: none; }
}
@media (max-width: 520px) { .cm-card { padding: 14px; } .cm-badge { width: 60px; height: 60px; margin: -30px 0 0 -30px; } }
