/* Sunny's mark, shared by the home page and the demo. It is the app's LivCoinsSunnyFace, Sunny in glass (option C,
   Afik 2026-11-30; spec docs/superpowers/specs/2026-11-30-livcoins-sunny-glass-design.md): a glass ball with three warm
   lights flowing inside it, a frost, a highlight and a rim, and a face that acts. She always moves: the lights orbit,
   the glow breathes, her eyes look around and blink (now and then twice). `.is-cheer` makes her glad for 1.6 s: happy
   eyes, an open grin, raised brows and two hops. Reduce Motion: still. The markup is `sunnyMark()` in today.js; the
   home page holds a copy of it. `.is-small` (under 40 px): no glow or brows, a warm rim, the glass fills the box. */
.sunny-mark { position: relative; display: block; width: 100%; height: 100%; }
.sunny-mark > i, .sunny-mark .sg-glass > i { position: absolute; display: block; border-radius: 50%; }
.sunny-mark .sg-glow { inset: -2%; background: radial-gradient(closest-side, rgba(255, 200, 61, .55) 74%, rgba(255, 200, 61, 0)); animation: sg-breathe 3.4s ease-in-out infinite; }
.sunny-mark .sg-glass { inset: 10%; overflow: hidden; isolation: isolate; background: rgba(255, 200, 61, .88); }
.sunny-mark.is-small .sg-glass { inset: 3%; }
.sunny-mark .sg-glass::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .1)); }
/* The three lights: soft discs that orbit the middle (the app's radius, orbit and speed for each). */
.sunny-mark .sg-glass > i { left: 50%; top: 53%; translate: -50% -50%; }
.sunny-mark .sg-l1 { width: 52%; height: 52%; background: radial-gradient(closest-side, #FFC23A 35%, rgba(255, 194, 58, 0)); --o: 23%; animation: sg-orbit 11.4s linear infinite; }
.sunny-mark .sg-l2 { width: 42%; height: 42%; background: radial-gradient(closest-side, #FF8A3D 35%, rgba(255, 138, 61, 0)); --o: 36%; animation: sg-orbit 15.7s linear infinite reverse; animation-delay: -5s; }
.sunny-mark .sg-l3 { width: 33%; height: 33%; background: radial-gradient(closest-side, #FFF0A6 40%, rgba(255, 240, 166, 0)); --o: 27%; animation: sg-orbit 7.85s linear infinite; animation-delay: -4s; }
.sunny-mark.is-small .sg-glass > i { scale: 1.25; }
.sunny-mark .sg-face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sunny-mark .sg-shine { fill: none; stroke: rgba(255, 255, 255, .9); stroke-linecap: round; }
.sunny-mark .sg-dot { fill: rgba(255, 255, 255, .9); }
.sunny-mark .sg-rim { fill: none; stroke: rgba(255, 255, 255, .85); }
.sunny-mark .sg-warm { fill: none; stroke: rgba(229, 154, 47, .8); }
.sunny-mark .sg-eye ellipse { fill: #0B1F24; }
.sunny-mark .sg-glint { fill: #fff; }
.sunny-mark .sg-eye { transform-box: fill-box; transform-origin: center; animation: sg-blink 9.4s linear infinite; }
.sunny-mark .sg-happy, .sunny-mark .sg-brows path { fill: none; stroke: #0B1F24; stroke-linecap: round; }
.sunny-mark :is(.sg-smile, .sg-grin) { fill: #0B1F24; stroke: #0B1F24; stroke-linejoin: round; }
.sunny-mark :is(.sg-happy, .sg-grin) { opacity: 0; }
.sunny-mark :is(.sg-eye, .sg-smile, .sg-happy, .sg-grin, .sg-brows) { transition: opacity .15s ease, translate .2s ease; }
.sunny-mark .sg-look { animation: sg-look 13s ease-in-out infinite; }
@keyframes sg-orbit { from { transform: rotate(0deg) translateX(var(--o)) rotate(0deg); } to { transform: rotate(360deg) translateX(var(--o)) rotate(-360deg); } }
@keyframes sg-breathe { 0%, 100% { opacity: .55; scale: 1; } 50% { opacity: 1; scale: 1.04; } }
/* A blink at 3.1 s, and a double blink at 7.0 s and 7.3 s (each 0.17 s) in a 9.4 s round. */
@keyframes sg-blink {
  0%, 32%, 34%, 73.5%, 75.5%, 76.7%, 78.7%, 100% { transform: scaleY(1); }
  33%, 74.5%, 77.7% { transform: scaleY(.1); }
}
/* Where she looks: a quick move (0.13 s) to each place, then she holds it. */
@keyframes sg-look {
  0%, 18% { transform: translate(0, 0); }
  19%, 37% { transform: translate(2.4px, -1.2px); }
  38%, 55% { transform: translate(-2.2px, .9px); }
  56%, 72% { transform: translate(0, 0); }
  73%, 89% { transform: translate(1.3px, 1.6px); }
  90%, 100% { transform: translate(0, 0); }
}
/* The cheer: happy arcs and an open grin, brows up, two hops with squash and stretch. */
.sunny-mark.is-cheer { animation: sg-hop .46s ease-in-out 2; }
.sunny-mark.is-cheer :is(.sg-eye, .sg-smile) { opacity: 0; }
.sunny-mark.is-cheer :is(.sg-happy, .sg-grin) { opacity: 1; }
.sunny-mark.is-cheer .sg-brows { translate: 0 -3px; }
.sunny-mark.is-cheer .sg-look { animation: none; }
.sunny-mark.is-cheer .sg-glow { opacity: 1; }
@keyframes sg-hop {
  0%, 100% { transform: translateY(0) scale(1.06, .94); }
  50% { transform: translateY(-9%) scale(.95, 1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .sunny-mark, .sunny-mark *, .sunny-mark.is-cheer { animation: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .sunny-mark .sg-glass { background: #FFC83D; }
  .sunny-mark .sg-glow { display: none; }
}
