/*
 * Maciez do site inteiro (17/11/2026, Pedro: "o Linktree tem uma maciez muito grande,
 * replica isso para todo o bobsgg"). Carregado primeiro em todas as páginas.
 *
 * O que o Linktree faz e aqui também:
 * - uma curva de mola nos movimentos (passa um tiquinho do ponto e volta);
 * - cores mudando rápido e suave (75–150 ms);
 * - tudo que se aperta afunda um pouco e volta com a mola;
 * - janelas sobem com uma curva longa e macia;
 * - texto com suavização.
 *
 * As regras usam :where() (peso zero): o CSS de cada página continua mandando.
 * "scale" e "translate" são propriedades próprias, então somam com o "transform"
 * que o elemento já tiver, sem quebrar nada.
 */
:root {
  /* A mola do Linktree (Link Sans/LinkContainer --ease-spring). */
  --soft-spring: cubic-bezier(.34, 1.4, .64, 1);
  --soft-out: cubic-bezier(.23, 1, .32, 1);
  --soft-std: cubic-bezier(.4, 0, .2, 1);
  --soft-sheet: cubic-bezier(.32, .72, 0, 1);
  --soft-fast: .15s;
  --soft-move: .45s;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root { --soft-spring: linear(0, .001, .005 1.5%, .022 3%, .089 6.5%, .186 10.3%, .508 20.1%, .786 28.8%, .932 36.3%, 1.001 42.5%, 1.025 48.8%, 1.022 55%, 1.008 61.3%, .996 67.5%, .993 73.8%, .996 80%, 1.001 86.3%, 1); }
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }

/* Everything one presses: colours change softly, and it sinks a little and springs back. */
:where(button, .btn, a.btn, [role="button"], [role="tab"], summary, .chip, .st-chip, .st-tile, .st-stab, .st-icon-opt, .st-tool, .gs-tab, .pg-corner, .pg-made, .pg-sh-item, .pg-sh-buttons a, .pg-cta) {
  transition: scale var(--soft-move) var(--soft-spring), translate var(--soft-move) var(--soft-spring), background-color var(--soft-fast) var(--soft-std), border-color var(--soft-fast) var(--soft-std),
    color var(--soft-fast) var(--soft-std), box-shadow .25s var(--soft-out), opacity .2s var(--soft-std), filter .2s var(--soft-std);
}
:where(button, .btn, a.btn, [role="button"], [role="tab"], .chip, .st-chip, .st-tile, .st-stab, .st-icon-opt, .st-tool, .gs-tab, .pg-corner, .pg-made, .pg-sh-item, .pg-sh-buttons a, .pg-cta):not(:disabled, [aria-disabled="true"]):active {
  scale: .97; transition-duration: .08s, .08s, var(--soft-fast), var(--soft-fast), var(--soft-fast), .25s, .2s, .2s;
}
/* Links and fields: colours and the focus ring come in softly too. */
:where(a, input, select, textarea) { transition: color var(--soft-fast) var(--soft-std), background-color var(--soft-fast) var(--soft-std), border-color var(--soft-fast) var(--soft-std), box-shadow .2s var(--soft-out), outline-offset .2s var(--soft-out); }
:where(input[type="checkbox"], input[type="radio"]):active { scale: .9; }

/* Windows (dialogs) rise with a long soft curve; the back darkens softly. */
@keyframes soft-up { from { opacity: 0; translate: 0 24px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes soft-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes soft-pop { from { opacity: 0; scale: .96; } to { opacity: 1; scale: 1; } }
:where(dialog[open]) { animation: soft-up .5s var(--soft-sheet) backwards; }
:where(dialog[open])::backdrop { animation: soft-fade .3s var(--soft-std) both; }
/* Menus, toasts and popovers pop in. */
:where([role="menu"], [role="listbox"], [role="status"]:not(:empty), .toast, .pg-toast:not([hidden])) { animation: soft-pop .25s var(--soft-out) both; }
/* A new page comes in gently. */
:where(main) { animation: soft-fade .35s var(--soft-std) backwards; }
/* A view of the member area (member.js navigate) rises in a little. */
@keyframes soft-rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
.soft-enter { animation: soft-rise .45s var(--soft-out) backwards; }
/* Pictures appear softly when they load late. */
:where(img) { transition: opacity .3s var(--soft-std); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  :where(*) { scale: none !important; translate: none !important; }
  .soft-enter, :where(dialog[open], dialog[open]::backdrop, main, [role="menu"], [role="listbox"], [role="status"], .toast, .pg-toast) { animation: none !important; }
}
