/* Shared by the website and the app (keep website/css/feel.css and Modly/wwwroot/css/feel.css identical).
   1. The ambient background: faint dots, two slow glows, and dots that light up around the mouse.
   2. The "done" press: an action button flips to "✓ <what happened>" while the toast says it in full. */

.amb { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg, #0E1016); }
.amb-orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.amb-orb.a { width: 520px; height: 520px; background: #00E5A9; opacity: .14; top: -200px; right: -140px; animation: amb-a 26s ease-in-out infinite alternate; }
.amb-orb.b { width: 480px; height: 480px; background: #7C6CFF; opacity: .12; bottom: -220px; left: -120px; animation: amb-b 32s ease-in-out infinite alternate; }
@keyframes amb-a { to { transform: translate(-240px, 180px); } }
@keyframes amb-b { to { transform: translate(260px, -140px); } }
.amb-dots, .amb-lit { position: absolute; inset: 0; background-size: 24px 24px; }
.amb-dots { background-image: radial-gradient(#262B39 1px, transparent 1.3px); }
.amb-lit {
  background-image: radial-gradient(#00E5A9 1.2px, transparent 1.6px); opacity: 0; transition: opacity .5s;
  -webkit-mask: radial-gradient(180px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
  mask: radial-gradient(180px circle at var(--mx, -999px) var(--my, -999px), #000, transparent);
}
.amb.on .amb-lit { opacity: .8; }
.amb.paused .amb-orb { animation-play-state: paused; }

/* The press: an overlay with the button's own look slides up over its label. */
.feel-done { overflow: hidden; }
.feel-done.feel-rel { position: relative; }
.feel-flip {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: inherit; color: inherit; border-radius: inherit; font: inherit; white-space: nowrap;
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2, 1.2, .4, 1); pointer-events: none;
}
.feel-done.show .feel-flip { transform: none; }
.feel-flip.bad { color: #FF7AA8; }

/* Toast extras: an icon dot and a bar that runs down until it closes. */
.feel-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; background: #10261F; color: #00E5A9; }
.feel-dot.bad { background: #3A1424; color: #FF7AA8; }
.feel-dot.info { background: #14283A; color: #7CC4FF; }
.feel-bar { position: absolute; bottom: 0; right: 0; height: 2px; width: 100%; background: #00E5A9; animation: feel-bar var(--feel-ms, 2800ms) linear forwards; }
.feel-bar.bad { background: #FF7AA8; }
.feel-bar.info { background: #7CC4FF; }
@keyframes feel-bar { to { width: 0; } }

@media (prefers-reduced-motion: reduce) {
  .amb-orb { animation: none; }
  .amb-lit { display: none; }
  .feel-flip { transition: none; }
}
