/* Shared by the public pages (home, privacy): design tokens, links, the top bar and the footer. */
:root {
  --accent: #FF4D82;
  --accent-soft: #FF7AA8;
  --accent-ink: #2A0A1C;
  --bg: #0B090A;
  --panel: #141113;
  --line: #2B2529;
  --line-2: #3A3237;
  --line-3: #4A4046;
  --text: #F4EFF1;
  --muted: #B3A9AE;
  --dim: #8F858A;
  --font-display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --font-body: 'Geist', 'Inter', system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, Menlo, monospace;
}

a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-soft); }
a.q { color: var(--muted); }
a.q:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

/* top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-in { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.topbar-logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text); }
.topbar-logo:hover { color: var(--text); }
.topbar-logo img { width: 30px; height: 30px; display: block; }
.topbar-logo span { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.topbar-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.topbar-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
.topbar-links a:hover, .topbar-links a.on { color: var(--text); }
.topbar-links button { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--muted); cursor: pointer; }
.topbar-links button:hover { color: var(--text); }
.topbar-links a.topbar-cta { box-sizing: border-box; padding: 0 18px; border: 1px solid var(--line-3); border-radius: 8px; color: var(--text); font-weight: 600; transition: filter .15s ease, border-color .15s ease; }
.topbar-links a.topbar-cta:hover { filter: brightness(1.1); border-color: var(--muted); }

/* Language: BR | EN beside the button. The one being read is marked and is not a link; the other leads to the same
   page in that language (each language has addresses of its own, see /en in server/index.js). */
.topbar-end { display: flex; align-items: center; gap: 10px; }
.lang { flex: none; box-sizing: border-box; display: inline-flex; align-items: center; gap: 2px; height: 44px; padding: 3px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; }
.topbar-links .lang > * { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 0; height: 100%; padding: 0 10px; border: 1px solid transparent; border-radius: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em; line-height: 1; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease, filter .15s ease; }
.topbar-links .lang > .on { border-color: var(--accent); background: #1B171A; color: var(--text); }
.topbar-links .lang > a:hover { color: var(--muted); filter: brightness(1.25); }
.topbar-links .lang > a:active { transform: translateY(1px) scale(.96); }

/* footer */
.foot { margin-top: auto; border-top: 1px solid var(--line); }
.foot-in { box-sizing: border-box; max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; font-size: 13.5px; color: var(--dim); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.foot-brand img { width: 20px; height: 20px; display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

/* Pressing a button, as in the dashboard: it sinks and springs back, a wave spreads from the point that was pressed
   (noted by press.js in --lo-x / --lo-y) and it flashes with a pink edge. Filled and coloured buttons use their own text
   colour for the wave and the flash. Not switched off by "reduce motion": it is a small answer to the person's own press. */
a.btn, button.btn, .topbar-links a.topbar-cta { position: relative; overflow: hidden; transition: filter .15s ease, transform .3s cubic-bezier(.2, 1.7, .4, 1), border-color .45s ease-out; }
a.btn:not(:disabled):active, button.btn:not(:disabled):active, .topbar-links a.topbar-cta:not(:disabled):active { transform: translateY(1px) scale(.94); filter: brightness(.86); border-color: var(--accent); transition: transform .05s ease-out, filter .05s ease-out; }
a.btn > *, button.btn > *, .topbar-links a.topbar-cta > *, a.btn svg, button.btn svg, .topbar-links a.topbar-cta svg, a.btn img, button.btn img, .topbar-links a.topbar-cta img { position: relative; z-index: 1; } /* the label and the icons stay above the wave and the flash */
a.btn::before, button.btn::before, .topbar-links a.topbar-cta::before, a.btn::after, button.btn::after, .topbar-links a.topbar-cta::after { content: ""; position: absolute; pointer-events: none; opacity: 0; background: var(--accent); }
a.btn::before, button.btn::before, .topbar-links a.topbar-cta::before { inset: 0; transition: opacity .45s ease-out; } /* the flash */
a.btn::after, button.btn::after, .topbar-links a.topbar-cta::after { left: var(--lo-x, 50%); top: var(--lo-y, 50%); width: 1200px; height: 1200px; margin: -600px 0 0 -600px; border-radius: 50%; transform: scale(1); transition: transform .7s linear, opacity .7s ease-in; } /* the wave */
a.btn:not(:disabled):active::before, button.btn:not(:disabled):active::before, .topbar-links a.topbar-cta:not(:disabled):active::before { opacity: .32; transition: none; }
a.btn:not(:disabled):active::after, button.btn:not(:disabled):active::after, .topbar-links a.topbar-cta:not(:disabled):active::after { opacity: .4; transform: scale(0); transition: none; }
a.btn:not(.ghost)::before, a.btn:not(.ghost)::after, button.btn:not(.ghost)::before, button.btn:not(.ghost)::after, a.btn.danger::before, a.btn.danger::after, button.btn.danger::before, button.btn.danger::after,
.topbar-links a.topbar-cta.fill::before, .topbar-links a.topbar-cta.fill::after { background: currentColor; }

/* The options that are picked (streamer or moderator, card or Pix) answer a press the same way as the buttons. The picked
   one is filled, so it uses its own text colour for the wave and the flash. */
label.role-opt, label.pl-opt { overflow: hidden; transition: background .15s ease, border-color .45s ease-out, color .15s ease, filter .15s ease, transform .3s cubic-bezier(.2, 1.7, .4, 1); }
label.role-opt:active, label.pl-opt:active { transform: translateY(1px) scale(.94); filter: brightness(.86); border-color: var(--accent); transition: transform .05s ease-out, filter .05s ease-out; }
label.role-opt > span, label.pl-opt > span, label.role-opt > svg, label.pl-opt > svg, label.role-opt > img, label.pl-opt > img, label.role-opt > i, label.pl-opt > i, label.role-opt svg, label.pl-opt svg, label.role-opt img, label.pl-opt img { position: relative; z-index: 1; } /* not the hidden radio, which stays out of the way */
label.role-opt::before, label.pl-opt::before, label.role-opt::after, label.pl-opt::after { content: ""; position: absolute; pointer-events: none; opacity: 0; background: var(--accent); }
label.role-opt::before, label.pl-opt::before { inset: 0; transition: opacity .45s ease-out; }
label.role-opt::after, label.pl-opt::after { left: var(--lo-x, 50%); top: var(--lo-y, 50%); width: 1200px; height: 1200px; margin: -600px 0 0 -600px; border-radius: 50%; transform: scale(1); transition: transform .7s linear, opacity .7s ease-in; }
label.role-opt:active::before, label.pl-opt:active::before { opacity: .32; transition: none; }
label.role-opt:active::after, label.pl-opt:active::after { opacity: .4; transform: scale(0); transition: none; }
label.role-opt.on::before, label.pl-opt.on::before, label.role-opt.on::after, label.pl-opt.on::after { background: currentColor; }
