/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright (c) 2026 UtopiaIA */
/* Elffuss look, 2026-10: the same brass, indigo and serif, on a lighter blue-slate ground, with a slow aurora behind the app
   and modern buttons. It loads after the page's own styles and only re-sets colours, buttons and the aurora: no layout, no
   behaviour. */

:root {
  --bg: #303752;
  --panel: #39415f;
  --surface: 57, 65, 95;
  --line: #4b5578;
  --fg: #f1eff7;
  --mut: #b6bccb;
  --accent: #d9b27a;
  --accent-2: #f0d2a4;
  --ok: #8fd0a0;
  --warn: #e3b968;
  --ease2: cubic-bezier(.16, 1, .3, 1);
}

/* A slow aurora behind the app: teal, violet, magenta and brass. */
body { position: relative; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: -25% -15%; z-index: -1; pointer-events: none; filter: blur(52px); will-change: transform;
  background:
    radial-gradient(38rem 26rem at 10% 6%, rgba(84, 220, 198, .20), transparent 70%),
    radial-gradient(42rem 28rem at 88% 4%, rgba(130, 114, 255, .30), transparent 70%),
    radial-gradient(34rem 24rem at 72% 64%, rgba(231, 121, 207, .12), transparent 70%),
    radial-gradient(40rem 26rem at 16% 80%, rgba(200, 160, 106, .18), transparent 70%);
  animation: aurora 48s ease-in-out infinite alternate;
}
@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

/* Buttons: taller, softer corners, a light relief and a response when pressed. */
.primary, .go, .ghost, .cancel, .swap, .toggle, .row button {
  transition: transform .18s var(--ease2), box-shadow .18s var(--ease2), background-color .15s, border-color .15s, color .15s, filter .15s;
}
.primary:active, .go:active, .ghost:active, .cancel:active, .swap:active, .toggle:active, .row button:active { transform: translateY(1px) scale(.985); }
.primary, .go {
  background: linear-gradient(180deg, #f0d2a4, #d3a96e);
  color: #1b1408;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .25), 0 10px 22px -10px rgba(230, 194, 148, .55);
}
.primary { padding: 16px; }
.primary:hover, .go:hover {
  background: linear-gradient(180deg, #f7dcb4, #dcb57b);
  filter: none;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .25), 0 14px 28px -10px rgba(230, 194, 148, .7);
}
.ghost, .cancel, .swap, .toggle, .row button {
  background: rgba(255, 255, 255, .06);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.ghost:hover, .cancel:hover, .swap:hover, .toggle:hover, .row button:hover {
  background: rgba(255, 255, 255, .12);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.ghost { color: var(--mut); }

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  .primary:hover, .go:hover, .ghost:hover, .cancel:hover, .swap:hover, .toggle:hover, .row button:hover { transform: none; }
  .primary:active, .go:active, .ghost:active, .cancel:active, .swap:active, .toggle:active, .row button:active { transform: none; }
}
