/* ==========================================================================
   QuizLive — folha de estilo única
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --purple-900: #1d0733;
  --purple-800: #2b0b4d;
  --purple-700: #3a0d6e;
  --purple-600: #46178f;
  --purple-500: #5a21c9;
  --purple-400: #6d3bff;
  --violet-300: #a98bff;
  --lime: #c8f04a;
  --lime-strong: #b6e02f;
  --red: #e21b3c;
  --blue: #1368ce;
  --yellow: #d89e00;
  --green: #26890c;
  --red-soft: #ff5a72;
  --blue-soft: #4d95f5;
  --yellow-soft: #f0b429;
  --green-soft: #4caf3d;

  --paper: #f5f2fb;
  --paper-2: #ece6f7;
  --card: #ffffff;
  --ink: #211533;
  --ink-soft: #4a3f5e;
  --muted: #7b7190;
  --line: #e6dff2;
  --line-strong: #d6cbe8;

  --ok: #1f9d55;
  --warn: #c2410c;
  --danger: #d92638;

  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(33, 21, 51, .06), 0 4px 12px rgba(33, 21, 51, .05);
  --shadow-md: 0 10px 30px rgba(33, 21, 51, .10);
  --shadow-lg: 0 26px 70px rgba(20, 8, 40, .22);
  --ring: 0 0 0 4px rgba(109, 59, 255, .22);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

h1 > svg, h2 > svg, h3 > svg { width: 1em; height: 1em; flex: none; }

/* ---------- botões ---------- */

.btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(33, 21, 51, .12); }
.btn:active { transform: translateY(0) scale(.985); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { --btn-bg: var(--purple-500); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: #4d1ab4; }
.btn--lime { --btn-bg: var(--lime); --btn-fg: #27133f; }
.btn--lime:hover { --btn-bg: var(--lime-strong); }
.btn--dark { --btn-bg: var(--purple-800); --btn-fg: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: inherit; --btn-border: rgba(255, 255, 255, .35); box-shadow: none; }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--ink); --btn-border: var(--line-strong); box-shadow: none; }
.btn--soft { --btn-bg: #f1ebfc; --btn-fg: var(--purple-600); box-shadow: none; }
.btn--danger { --btn-bg: #fdecef; --btn-fg: #b3122b; box-shadow: none; }
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--lg { padding: 16px 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--icon { padding: 0; width: 42px; height: 42px; border-radius: 50%; }
.btn--icon.btn--sm { width: 32px; height: 32px; }
.btn--icon svg { width: 19px; height: 19px; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn--danger:hover { background: #fdecef; color: var(--danger); }

/* ---------- formulários ---------- */

.field { display: grid; gap: 7px; }
.label {
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--ink-soft);
}
.input, .textarea, .select {
  width: 100%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  min-height: 48px;
}
.input::placeholder, .textarea::placeholder { color: #a89fba; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--purple-400); box-shadow: var(--ring);
}
.textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { font-size: 13px; color: var(--danger); font-weight: 600; }
.form-error {
  display: none;
  background: #fdecef; color: #a30f27; border: 1px solid #f6c9d2;
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
}
.form-error.is-visible { display: block; }

.segmented {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  background: var(--paper-2); padding: 5px; border-radius: 14px;
}
.segment {
  border: 0; background: transparent; color: var(--ink-soft);
  padding: 8px 13px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  text-decoration: none;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.segment[aria-pressed="true"], .segment[aria-selected="true"] {
  background: #fff; color: var(--purple-600); box-shadow: 0 2px 8px rgba(33, 21, 51, .12);
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  background: var(--paper-2); color: var(--ink-soft);
}
.badge--live { background: #e7f8ee; color: #0e7a43; }
.badge--done { background: #eee9fb; color: var(--purple-600); }
.badge--draft { background: #fdf2d9; color: #8a5b00; }
.badge--off { background: #f1eef6; color: var(--muted); }

/* ---------- cabeçalho ---------- */

.site-head {
  position: relative;
  z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
}
.site-head--dark { color: #fff; }
.site-head__inner { display: flex; align-items: center; gap: 26px; width: 100%; }
.site-head__inner .nav { margin-left: auto; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 900; font-size: 21px; letter-spacing: -.02em;
}
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 10px; }
.brand__word em { font-style: normal; color: var(--purple-400); }
.site-head--dark .brand__word em { color: var(--lime); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 999px; color: inherit; opacity: .82;
  transition: background-color .15s, opacity .15s;
}
.nav__link:hover { opacity: 1; background: rgba(120, 90, 180, .1); }
.site-head--dark .nav__link:hover { background: rgba(255, 255, 255, .1); }

.user-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 5px 12px 5px 5px;
  font-size: 13.5px; font-weight: 700;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--purple-400), var(--purple-600));
  text-transform: uppercase;
}

/* ---------- páginas ---------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__body { flex: 1; }
.container { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.container--narrow { width: min(880px, calc(100% - 44px)); margin: 0 auto; }

.page--light { background: var(--paper); color: var(--ink); }

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.footer--dark { border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); }

/* ---------- toasts e modal ---------- */

.toasts {
  position: fixed; z-index: 90; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px));
}
.toast {
  background: #23143a; color: #fff;
  border-radius: 14px; padding: 13px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px; font-weight: 600; line-height: 1.35;
  display: flex; gap: 10px; align-items: flex-start;
  animation: toast-in .22s ease both;
}
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--lime); }
.toast--error { background: #5c1420; }
.toast--error svg { color: #ff9aab; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17, 6, 33, .55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center; padding: 20px;
  animation: fade-in .16s ease both;
}
.modal {
  width: min(460px, 100%);
  background: #fff; color: var(--ink);
  border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-lg);
  animation: pop-in .2s ease both;
}
.modal h2 { font-size: 21px; letter-spacing: -.02em; }
.modal p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.modal__choices { display: grid; gap: 12px; margin-top: 20px; }
.choice {
  text-align: left; border: 2px solid var(--line); background: #fff;
  border-radius: 18px; padding: 16px; display: flex; gap: 14px; align-items: center;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--purple-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.choice__icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center; background: var(--paper-2); color: var(--purple-600);
}
.choice__icon svg { width: 22px; height: 22px; }
.choice strong { display: block; font-size: 15.5px; }
.choice span { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- landing ---------- */

.landing {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(109, 59, 255, .55), transparent 60%),
    radial-gradient(900px 600px at 5% 110%, rgba(200, 240, 74, .14), transparent 60%),
    linear-gradient(160deg, #250a44 0%, #180527 60%, #12031f 100%);
  overflow: hidden;
  isolation: isolate;
}
.landing__glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; z-index: -1; }
.landing__glow--one { width: 480px; height: 480px; right: -160px; top: 80px; background: radial-gradient(circle, rgba(109, 59, 255, .5), transparent 65%); }
.landing__glow--two { width: 420px; height: 420px; left: -180px; bottom: 40px; background: radial-gradient(circle, rgba(200, 240, 74, .12), transparent 65%); }

.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
  padding: 48px 0 84px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .07);
  color: #ece4ff;
  border-radius: 999px; padding: 7px 14px 7px 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
}
.eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--lime); color: #2a1445; display: grid; place-items: center; }
.eyebrow svg { width: 13px; height: 13px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 60px);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 900;
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__lead {
  margin-top: 22px; max-width: 46ch;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.55;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__note { margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .55); display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 15px; height: 15px; color: var(--lime); }

.hero__panel { position: relative; }
.join-box {
  position: relative;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px);
}
.join-box__label { font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.join-box h2 { font-size: 24px; letter-spacing: -.02em; margin-top: 8px; }
.join-box p { color: rgba(255, 255, 255, .65); font-size: 14px; margin-top: 6px; line-height: 1.45; }
.pin-input {
  width: 100%; margin-top: 18px;
  background: rgba(0, 0, 0, .25);
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 16px;
  color: #fff;
  font-size: 30px; font-weight: 900; letter-spacing: .32em; text-align: center;
  padding: 12px 8px 12px 16px;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.pin-input::placeholder { color: rgba(255, 255, 255, .25); letter-spacing: .2em; }
.pin-input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200, 240, 74, .18); }
.join-box .btn { margin-top: 12px; }
.join-box__foot { margin-top: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .5); text-align: center; }

.tile-strip { display: flex; gap: 10px; margin-top: 26px; }
.mini-tile {
  flex: 1; height: 54px; border-radius: 14px; display: grid; place-items: center;
  transform: rotate(-2deg);
}
.mini-tile:nth-child(2) { transform: rotate(1.5deg) translateY(4px); }
.mini-tile:nth-child(3) { transform: rotate(-1deg) translateY(-2px); }
.mini-tile:nth-child(4) { transform: rotate(2deg) translateY(3px); }
.mini-tile svg { width: 24px; height: 24px; color: rgba(255, 255, 255, .9); }
.mini-tile--red { background: var(--red); }
.mini-tile--blue { background: var(--blue); }
.mini-tile--yellow { background: var(--yellow); }
.mini-tile--green { background: var(--green); }

.features { padding: 12px 0 36px; }
.section-kicker { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.features h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; margin-top: 10px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px;
}
.feature {
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .045);
  border-radius: 22px; padding: 22px;
}
.feature__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: var(--lime);
}
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { margin-top: 16px; font-size: 16.5px; letter-spacing: -.01em; }
.feature p { margin-top: 7px; color: rgba(255, 255, 255, .62); font-size: 14px; line-height: 1.5; }

.landing__bottom { padding: 30px 0 70px; }
.cta-band {
  border-radius: 28px; padding: 40px;
  background: linear-gradient(120deg, var(--purple-500), var(--purple-400) 60%, #8b5bff);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: 0 30px 70px rgba(90, 33, 201, .35);
}
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; max-width: 20ch; }
.cta-band p { margin-top: 8px; color: rgba(255, 255, 255, .8); font-size: 14.5px; }

/* ---------- autenticação ---------- */

.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--paper);
}
.auth__art {
  position: relative; overflow: hidden; color: #fff; padding: 44px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(800px 500px at 20% 10%, rgba(109, 59, 255, .6), transparent 60%),
    linear-gradient(155deg, #2b0b4d, #160425 70%);
}
.auth__art .brand { color: #fff; }
.auth__art .brand__word em { color: var(--lime); }
.auth__art-body { position: relative; z-index: 1; }
.auth__art h2 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.02; letter-spacing: -.035em; max-width: 16ch; }
.auth__art p { color: rgba(255, 255, 255, .68); margin-top: 16px; max-width: 40ch; line-height: 1.55; }
.auth__art .tile-strip { max-width: 380px; margin-top: 40px; }
.auth__art .shape-cloud { position: absolute; inset: 0; opacity: .16; pointer-events: none; }
.auth__art .shape-cloud svg { position: absolute; color: #fff; }
.auth__art-foot { font-size: 13px; color: rgba(255, 255, 255, .45); position: relative; z-index: 1; }

.auth__cardWrap { display: grid; place-items: center; padding: 40px 24px; }
.auth__card { width: min(430px, 100%); }
.auth__tabs { display: inline-flex; background: var(--paper-2); border-radius: 14px; padding: 5px; margin-bottom: 26px; }
.auth__tabs .segment { padding: 9px 20px; }
.auth__card h1 { font-size: 30px; letter-spacing: -.03em; }
.auth__card .sub { color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.auth__form { margin-top: 26px; display: grid; gap: 16px; }
.auth__form .btn { margin-top: 6px; }
.auth__switch { margin-top: 20px; font-size: 14px; color: var(--muted); text-align: center; }
.auth__switch a { color: var(--purple-500); font-weight: 800; text-decoration: none; }
.auth__back { display: flex; width: fit-content; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); text-decoration: none; margin-bottom: 22px; }
.auth__back svg { width: 16px; height: 16px; }

/* ---------- dashboard ---------- */

.dash { padding: 18px 0 0; }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 20px 0 26px; }
.dash__head h1 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; }
.dash__head .sub { color: var(--muted); margin-top: 7px; font-size: 15px; }
.dash__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 34px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat__label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-size: 30px; font-weight: 900; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 20px; letter-spacing: -.02em; }
.section-head .link { font-size: 13.5px; font-weight: 800; color: var(--purple-500); text-decoration: none; }

.quiz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.quiz-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.quiz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quiz-card__cover {
  height: 128px; position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--purple-500), #8b5bff 55%, #b08bff);
  display: grid; place-items: center;
}
.quiz-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.quiz-card__cover svg { width: 46px; height: 46px; color: rgba(255, 255, 255, .85); }
.quiz-card__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(20, 6, 36, .35));
}
.quiz-card__body { padding: 17px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.quiz-card__title { font-size: 16.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.quiz-card__meta { color: var(--muted); font-size: 13px; }
.quiz-card__actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.quiz-card__actions .btn--primary { flex: 1; }

.empty {
  border: 2px dashed var(--line-strong); border-radius: 24px; padding: 46px 24px;
  text-align: center; background: #fff;
}
.empty__art { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.empty__art span {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  transform: rotate(-4deg);
}
.empty__art span:nth-child(2) { transform: rotate(3deg) translateY(-6px); }
.empty__art span:nth-child(3) { transform: rotate(-2deg); }
.empty__art svg { width: 26px; height: 26px; }
.empty h3 { font-size: 21px; letter-spacing: -.02em; }
.empty p { color: var(--muted); margin: 8px auto 0; max-width: 42ch; line-height: 1.5; font-size: 14.5px; }
.empty__actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.games { margin-top: 46px; }
.games__table { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.games__row {
  display: grid; grid-template-columns: 1fr 130px 100px 120px 120px;
  gap: 14px; align-items: center; padding: 15px 20px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.games__row:last-child { border-bottom: 0; }
.games__row--head { background: #faf8fd; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.games__title { font-weight: 700; display: flex; align-items: center; gap: 10px; min-width: 0; }
.games__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.games__pin { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }

/* ---------- editor ---------- */

.editor { padding: 16px 0 90px; }
.editor__top {
  position: sticky; top: 0; z-index: 15; background: rgba(245, 242, 251, .9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.editor__top-inner { display: flex; align-items: center; gap: 18px; padding: 14px 0; }
.editor__title-input {
  border: 0; background: transparent; font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  padding: 8px 10px; border-radius: 10px; min-width: 0; flex: 1; max-width: 520px;
}
.editor__title-input:hover { background: rgba(255, 255, 255, .7); }
.editor__title-input:focus { outline: none; background: #fff; box-shadow: var(--ring); }
.save-state { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.save-state .dot { width: 8px; height: 8px; border-radius: 50%; background: #c9bdd9; }
.save-state.is-dirty .dot { background: var(--warn); }
.save-state.is-dirty { color: var(--warn); }
.editor__top-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; }

.editor__body { display: grid; grid-template-columns: 330px 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.editor__aside { display: grid; gap: 16px; position: sticky; top: 86px; }

.cover-drop {
  position: relative; border-radius: 18px; overflow: hidden; min-height: 132px;
  background: linear-gradient(125deg, var(--purple-500), #8b5bff);
  display: grid; place-items: center; color: rgba(255, 255, 255, .9);
  border: 2px dashed rgba(255, 255, 255, .35); cursor: pointer;
}
.cover-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-drop__hint { position: relative; z-index: 1; display: grid; place-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .4); }
.cover-drop__hint svg { width: 24px; height: 24px; }
.cover-drop__clear {
  position: absolute; z-index: 2; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .45); color: #fff; display: grid; place-items: center;
}
.cover-drop__clear svg { width: 15px; height: 15px; }

.qlist { display: grid; gap: 8px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.qlist__item {
  display: flex; gap: 10px; align-items: center; text-align: left;
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.qlist__item:hover { border-color: var(--line-strong); }
.qlist__item.is-active { border-color: var(--purple-400); box-shadow: 0 0 0 3px rgba(109, 59, 255, .13); }
.qlist__num {
  width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--paper-2); color: var(--purple-600); font-weight: 900; font-size: 12.5px;
}
.qlist__item.is-active .qlist__num { background: var(--purple-500); color: #fff; }
.qlist__text { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qlist__tools { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.qlist__item:hover .qlist__tools, .qlist__item:focus-within .qlist__tools { opacity: 1; }
.qlist__tools .icon-btn { width: 26px; height: 26px; border-radius: 7px; }
.qlist__tools svg { width: 14px; height: 14px; }

.editor__main { display: grid; gap: 18px; }
.question-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow-sm); }
.question-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.question-card__head h2 { font-size: 16px; letter-spacing: -.01em; }
.question-card__head .kicker { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }

.image-drop {
  position: relative; border: 2px dashed var(--line-strong); border-radius: 16px;
  background: #fbf9fe; min-height: 110px; display: grid; place-items: center; cursor: pointer;
  overflow: hidden; transition: border-color .15s, background-color .15s;
}
.image-drop:hover { border-color: var(--purple-400); background: #f7f3ff; }
.image-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.image-drop__hint { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 700; }
.image-drop__hint svg { width: 20px; height: 20px; }
.image-drop.has-image .image-drop__hint { color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); background: rgba(0, 0, 0, .3); padding: 6px 12px; border-radius: 999px; }

.opt-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.opt-row__shape {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.opt-row__shape svg { width: 19px; height: 19px; }
.opt-row__input { flex: 1; }
.opt-row__correct {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  border: 2px solid var(--line-strong); background: #fff; color: var(--muted);
  display: grid; place-items: center; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.opt-row__correct svg { width: 19px; height: 19px; opacity: .28; transition: opacity .15s; }
.opt-row__correct:hover svg { opacity: .6; }
.opt-row__correct[aria-pressed="true"] svg { opacity: 1; }
.opt-row__correct[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.04); }
.opt-row__correct:hover { border-color: var(--ok); color: var(--ok); }
.opt-row__correct[aria-pressed="true"]:hover { color: #fff; }
.add-opt { margin-top: 12px; }

.editor__aside .aside-block { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.editor__aside h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- jogo (base) ---------- */

.game {
  min-height: 100vh; min-height: 100dvh; color: #fff; position: relative; overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(109, 59, 255, .5), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(200, 240, 74, .10), transparent 55%),
    linear-gradient(165deg, #2b0b4d, #170427 65%, #12031f);
  display: flex; flex-direction: column;
}
.game::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.game__inner { position: relative; z-index: 1; width: min(1240px, calc(100% - 36px)); margin: 0 auto; flex: 1; display: flex; flex-direction: column; }

.game-top { display: flex; align-items: center; gap: 16px; padding: 16px 0; }
.game-top__quiz { min-width: 0; }
.game-top__quiz strong { display: block; font-size: 14px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-top__quiz span { display: block; font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.game-top__pin {
  margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end;
}
.pin-pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, .65);
}
.pin-pill strong { color: #fff; font-size: 15px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

.game-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 12px 0 26px; }

.q-head { display: flex; align-items: center; gap: 22px; justify-content: center; text-align: center; flex-direction: column; }
.q-counter { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.q-text {
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.14; letter-spacing: -.025em; font-weight: 900;
  max-width: 22ch; text-wrap: balance; margin: 0 auto;
}
.q-image {
  margin: 18px auto 0; max-height: 26vh; border-radius: 18px; object-fit: contain;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .15);
}

.timer {
  --size: 92px;
  width: var(--size); height: var(--size); flex: none; position: relative; display: grid; place-items: center;
}
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer__track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 8; }
.timer__bar { fill: none; stroke: var(--lime); stroke-width: 8; stroke-linecap: round; transition: stroke .2s; }
.timer.is-low .timer__bar { stroke: #ff6b6b; }
.timer__value { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.timer.is-low .timer__value { color: #ff8b8b; }

.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.answer {
  position: relative; overflow: hidden;
  border: 0; border-radius: 16px; color: #fff; text-align: left;
  min-height: 108px; padding: 20px 22px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 800; font-size: clamp(16px, 1.7vw, 21px); line-height: 1.2;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
  transition: transform .12s ease, filter .15s, opacity .2s;
}
.answer:hover { filter: brightness(1.06); }
.answer:active { transform: scale(.985); }
.answer__shape { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; opacity: .34; pointer-events: none; }
.answer__shape svg { width: 100%; height: 100%; }
.answer__text { position: relative; z-index: 1; }
.answer__count {
  position: relative; z-index: 1; margin-left: auto; font-size: 15px; font-weight: 900;
  background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 5px 12px; font-variant-numeric: tabular-nums;
}
.answer--red { background: var(--red); }
.answer--blue { background: var(--blue); }
.answer--yellow { background: #b07700; }
.answer--green { background: var(--green); }
.answer.is-picked { outline: 4px solid #fff; outline-offset: -4px; }
.answer.is-correct { outline: 5px solid var(--lime); outline-offset: -5px; }
.answer.is-dim { opacity: .7; filter: saturate(.7); }
.answer.is-locked { pointer-events: none; }
.answer.is-correct .answer__check { display: grid; }
.answer__check {
  display: none; position: absolute; z-index: 2; right: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #21330a; place-items: center;
}
.answer__check svg { width: 18px; height: 18px; }

.answers-wrap { position: relative; }

.host-question-layout { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: start; }
.host-question-main { min-width: 0; }
.timer-col { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 4px; }
.timer-col .q-counter { text-align: center; }

.answered-line { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 22px; color: rgba(255, 255, 255, .6); font-size: 13.5px; font-weight: 700; }
.answered-line .bar { width: 180px; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.answered-line .bar span { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .3s ease; }

.game-actions { display: flex; justify-content: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* lobby */

.lobby { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 20px 0 10px; }
.lobby__label { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.lobby__pin {
  font-size: clamp(58px, 10vw, 128px); font-weight: 900; letter-spacing: .16em;
  font-variant-numeric: tabular-nums; line-height: 1; margin: 12px 0 4px; padding-left: .16em;
  background: linear-gradient(180deg, #fff, #d9cbff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lobby__joinUrl { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .65); font-size: 14px; }
.lobby__joinUrl strong { color: #fff; }
.lobby__players { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 820px; margin: 30px auto 0; min-height: 46px; }
.player-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; padding: 8px 15px 8px 8px; font-weight: 700; font-size: 14px;
  animation: pop-in .25s ease both;
}
.player-chip .avatar { width: 26px; height: 26px; font-size: 11px; }
.player-chip__team { width: 9px; height: 9px; border-radius: 50%; }
.lobby__empty { color: rgba(255, 255, 255, .45); font-size: 14px; margin-top: 26px; }

.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(860px, 100%); margin: 28px auto 0; }
.team-card {
  border-radius: 16px; padding: 14px; text-align: left;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
  border-top: 4px solid var(--team-color, #fff);
}
.team-card__name { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; }
.team-card__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--team-color); }
.team-card__count { font-size: 24px; font-weight: 900; margin-top: 6px; font-variant-numeric: tabular-nums; }
.team-card__count small { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .5); margin-left: 4px; }

/* reveal */

.reveal-layout { display: grid; grid-template-columns: 1.35fr .9fr; gap: 24px; align-items: start; margin-top: 12px; }
.reveal-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: 22px; }
.reveal-panel h2 { font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; }
.reveal-panel h2 svg { width: 19px; height: 19px; color: var(--lime); }
.reveal-panel .sub { color: rgba(255, 255, 255, .55); font-size: 13px; margin-top: 4px; }

.bars { display: grid; gap: 10px; margin-top: 18px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row__shape { width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; }
.bar-row__shape svg { width: 16px; height: 16px; }
.bar-row__body { flex: 1; min-width: 0; }
.bar-row__label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.bar-row__label .n { color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.bar-row__track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.bar-row__fill { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar-row.is-correct .bar-row__label { color: var(--lime); }

.leaderboard { display: grid; gap: 4px; margin-top: 14px; }
.lb-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px;
  font-size: 14px; font-weight: 700;
}
.lb-row:nth-child(odd) { background: rgba(255, 255, 255, .05); }
.lb-row.is-me { background: rgba(200, 240, 74, .16); outline: 1px solid rgba(200, 240, 74, .5); }
.lb-rank { width: 22px; text-align: center; color: rgba(255, 255, 255, .5); font-weight: 900; font-variant-numeric: tabular-nums; }
.lb-row:nth-child(1) .lb-rank { color: #ffd75e; }
.lb-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); }
.lb-team-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.team-standings { display: grid; gap: 8px; margin-top: 14px; }
.team-standing { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.team-standing__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.team-standing__bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.team-standing__bar span { display: block; height: 100%; border-radius: 999px; }
.team-standing__score { width: 62px; text-align: right; font-variant-numeric: tabular-nums; }

.result-hero { text-align: center; margin-bottom: 18px; }
.result-hero__badge {
  display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  margin-bottom: 12px; animation: pop-in .3s cubic-bezier(.2, 1.4, .4, 1) both;
}
.result-hero__badge svg { width: 42px; height: 42px; }
.result-hero__badge--ok { background: rgba(200, 240, 74, .2); color: var(--lime); box-shadow: 0 0 0 10px rgba(200, 240, 74, .06); }
.result-hero__badge--no { background: rgba(226, 27, 60, .22); color: #ff8fa0; box-shadow: 0 0 0 10px rgba(226, 27, 60, .06); }
.result-hero h1 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -.03em; }
.result-hero .points { color: var(--lime); }
.result-hero p { color: rgba(255, 255, 255, .65); margin-top: 8px; font-size: 15px; }

/* pódio */

.podium-wrap { text-align: center; display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 20px 0; }
.podium-wrap h1 { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -.04em; }
.podium-wrap h1 svg { width: 44px; height: 44px; }
.podium-wrap .sub { color: rgba(255, 255, 255, .6); margin-top: 8px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 46px auto 0; width: min(760px, 100%); }
.podium__place { flex: 1 1 0; min-width: 0; max-width: 210px; display: flex; flex-direction: column; align-items: center; }
.podium__name { font-weight: 800; font-size: 15px; margin-bottom: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__score { font-size: 13px; color: rgba(255, 255, 255, .6); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.podium__bar {
  width: 100%; flex: 0 0 auto; border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 14px; font-size: 34px; font-weight: 900;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-bottom: 0;
  animation: rise .55s cubic-bezier(.2, .9, .3, 1) both;
}
.podium__place--1 .podium__bar { height: 190px; background: linear-gradient(180deg, rgba(255, 215, 94, .35), rgba(255, 215, 94, .08)); border-color: rgba(255, 215, 94, .5); color: #ffd75e; }
.podium__place--2 .podium__bar { height: 145px; background: linear-gradient(180deg, rgba(214, 221, 255, .3), rgba(214, 221, 255, .06)); color: #d6ddff; }
.podium__place--3 .podium__bar { height: 112px; background: linear-gradient(180deg, rgba(255, 179, 130, .28), rgba(255, 179, 130, .06)); color: #ffb382; }
.podium__place--1 .podium__name { font-size: 18px; }
.podium__team { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .55); margin-bottom: 8px; }
.podium__team i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

/* ---------- entrada do jogador ---------- */

.join-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.join-screen__bg { position: absolute; inset: 0; z-index: 0; }
.join-card {
  position: relative; z-index: 1; width: min(430px, 100%);
  background: #fff; color: var(--ink); border-radius: 26px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.join-card__kicker { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--purple-500); }
.join-card h1 { font-size: 26px; letter-spacing: -.03em; margin-top: 6px; line-height: 1.1; }
.join-card .sub { color: var(--muted); margin-top: 8px; font-size: 14px; line-height: 1.45; }
.join-card form { margin-top: 22px; display: grid; gap: 16px; }
.join-card .input { text-align: left; }
.team-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.team-pill {
  border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 10px 4px 8px;
  display: grid; justify-items: center; gap: 5px; font-size: 11.5px; font-weight: 800; color: var(--ink-soft);
  transition: border-color .15s, background-color .15s, transform .15s;
}
.team-pill i { width: 20px; height: 20px; border-radius: 7px; display: block; }
.team-pill[aria-pressed="true"] { border-color: var(--team-color); background: color-mix(in srgb, var(--team-color) 10%, white); transform: translateY(-1px); }
.join-card__foot { margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; }
.join-card__foot a { color: var(--purple-500); font-weight: 700; text-decoration: none; }

.waiting-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; padding: 24px; }
.waiting-card { max-width: 460px; }
.waiting-card .avatar { width: 72px; height: 72px; font-size: 24px; margin: 0 auto 18px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08); }
.waiting-card h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -.03em; }
.waiting-card p { color: rgba(255, 255, 255, .65); margin-top: 10px; line-height: 1.5; }
.waiting-card .pulse-row { display: inline-flex; gap: 6px; margin-top: 26px; }
.waiting-card .pulse-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); opacity: .3; animation: pulse 1.2s infinite; }
.waiting-card .pulse-row i:nth-child(2) { animation-delay: .15s; }
.waiting-card .pulse-row i:nth-child(3) { animation-delay: .3s; }

.player-screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.player-hud {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .65);
}
.player-hud .badge { background: rgba(255, 255, 255, .1); color: #fff; }
.player-hud__score { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 900; color: #fff; font-size: 15px; }
.player-body { flex: 1; display: flex; flex-direction: column; padding: 0 16px 20px; width: min(720px, 100%); margin: 0 auto; }
.player-question { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 8px 0 14px; }
.player-question .q-text { font-size: clamp(22px, 5vw, 32px); }
.player-question .q-image { max-height: 22vh; margin-top: 14px; }
.player-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.player-answers .answer { min-height: 96px; padding: 16px; font-size: 16px; }
.player-answers .answer__shape { width: 40px; height: 40px; right: 12px; }
.player-bar { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .12); overflow: hidden; margin: 10px 0 16px; }
.player-bar span { display: block; height: 100%; background: var(--lime); border-radius: 999px; transition: width .2s linear; }
.player-bar.is-low span { background: #ff6b6b; }

.player-status { text-align: center; padding: 26px 0; }
.player-status h2 { font-size: 22px; letter-spacing: -.02em; }
.player-status p { color: rgba(255, 255, 255, .65); margin-top: 8px; font-size: 14px; }

.player-result { text-align: center; padding: 10px 0 18px; }
.player-result .result-hero__badge { width: 70px; height: 70px; }
.player-result .result-hero__badge svg { width: 34px; height: 34px; }
.player-result h1 { font-size: clamp(24px, 6vw, 34px); }

.you-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 20px; padding: 16px; margin-top: 18px;
}
.you-card__row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 7px 0; }
.you-card__row + .you-card__row { border-top: 1px solid rgba(255, 255, 255, .08); }
.you-card__row span { color: rgba(255, 255, 255, .6); }
.you-card__row strong { font-variant-numeric: tabular-nums; }

/* ---------- relatório ---------- */

.report { padding: 22px 0 80px; }
.report__top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.report__top .grow { min-width: 0; }
.report__title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.report__meta { color: var(--muted); font-size: 13.5px; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.report__meta span { display: inline-flex; align-items: center; gap: 6px; }
.report__meta svg { width: 15px; height: 15px; flex: none; }
.report__actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

.report__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-card__label { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat-card__value { font-size: 28px; font-weight: 900; letter-spacing: -.03em; margin-top: 7px; font-variant-numeric: tabular-nums; }
.stat-card__hint { font-size: 12px; color: var(--muted); margin-top: 3px; }

.report__section { margin-top: 34px; }
.report__section h2 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.report__section h2 svg { width: 20px; height: 20px; color: var(--purple-500); }

.qreport {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px;
  box-shadow: var(--shadow-sm); margin-bottom: 12px;
}
.qreport__head { display: flex; align-items: flex-start; gap: 14px; }
.qreport__num {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: var(--purple-500); color: #fff; font-weight: 900; font-size: 14px;
}
.qreport__title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; line-height: 1.3; }
.qreport__sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.qreport__correct { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 700; }
.qreport__correct svg { width: 14px; height: 14px; }
.qreport__acc { margin-left: auto; text-align: right; flex: none; }
.qreport__acc strong { font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.qreport__acc span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.qreport__bars { display: grid; gap: 8px; margin-top: 16px; }
.qbar { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.qbar__shape { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.qbar__shape svg { width: 13px; height: 13px; }
.qbar__text { width: 34%; min-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.qbar__track { flex: 1; height: 9px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.qbar__fill { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.qbar__n { width: 66px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.qbar.is-correct .qbar__text { color: var(--ok); font-weight: 800; }
.qbar__flag { font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th {
  text-align: left; padding: 12px 16px; background: #faf8fd;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .rank { font-weight: 900; color: var(--muted); width: 54px; }
.table .rank--1 { color: #b8860b; }
.table .rank--2 { color: #77809b; }
.table .rank--3 { color: #b06b3a; }
.player-cell { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.player-cell .avatar { width: 26px; height: 26px; font-size: 10.5px; }
.team-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-soft); }
.team-tag i { width: 8px; height: 8px; border-radius: 50%; }

.team-summary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.team-sum { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; border-top: 4px solid var(--team-color); }
.team-sum__name { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.team-sum__score { font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin-top: 6px; }
.team-sum__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- estados vazios / carregamento ---------- */

.loading { display: grid; place-items: center; min-height: 45vh; color: var(--muted); gap: 14px; }
.loading--dark { color: rgba(255, 255, 255, .6); }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.fatal { text-align: center; padding: 60px 24px; }
.fatal svg { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--purple-500); }
.fatal h1 { font-size: 26px; letter-spacing: -.02em; }
.fatal p { color: var(--muted); margin-top: 10px; max-width: 46ch; margin-inline: auto; line-height: 1.5; }

/* ---------- animações ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes rise { from { transform: scaleY(.2); transform-origin: bottom; opacity: 0; } to { transform: scaleY(1); transform-origin: bottom; opacity: 1; } }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }
.shake { animation: shake .45s both; }

/* ---------- responsivo ---------- */

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 30px 0 56px; }
  .hero__panel { max-width: 520px; }
  .feature-grid { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { min-height: 260px; padding: 30px; }
  .auth__art .tile-strip, .auth__art p { display: none; }
  .editor__body { grid-template-columns: 1fr; }
  .editor__aside { position: static; grid-row: 2; }
  .qlist { max-height: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .reveal-layout { grid-template-columns: 1fr; }
  .stat-row, .report__stats { grid-template-columns: repeat(2, 1fr); }
  .games__row { grid-template-columns: 1fr 110px 90px 110px; }
  .games__row > :nth-child(4) { display: none; }
}

@media (max-width: 860px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .host-question-layout { grid-template-columns: 1fr; }
  .timer-col { flex-direction: row; justify-content: center; padding: 0; }
  .timer { --size: 64px; }
  .timer__value { font-size: 22px; }
  .q-text { max-width: 24ch; }
  .answer { min-height: 92px; padding: 16px; }
  .answer__shape { width: 40px; height: 40px; }
  .podium { gap: 8px; }
  .podium__place--1 .podium__bar { height: 150px; }
  .podium__place--2 .podium__bar { height: 118px; }
  .podium__place--3 .podium__bar { height: 92px; }
  .dash__head { margin-top: 8px; }
}

@media (max-width: 640px) {
  .container, .container--narrow, .game__inner { width: calc(100% - 28px); }
  .site-head { padding: 14px 0; }
  .site-head__inner { gap: 10px; }
  .nav { gap: 2px; }
  .nav__link { padding: 8px 10px; font-size: 13px; }
  [data-nav-quizzes] { display: none; }
  .user-pill { padding: 4px 9px 4px 4px; font-size: 13px; }
  .user-pill .avatar { width: 26px; height: 26px; }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero { padding-top: 18px; }
  .join-box { padding: 20px; }
  .cta-band { padding: 26px; }
  .stat-row, .report__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat, .stat-card { padding: 14px; }
  .stat__value, .stat-card__value { font-size: 24px; }
  .quiz-grid { grid-template-columns: 1fr; }
  .games__row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .games__row > :nth-child(2), .games__row > :nth-child(3), .games__row > :nth-child(4) { display: none; }
  .games__title span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .games .section-head .muted { display: none; }
  .editor__aside .cover-drop, .editor__aside .aside-block:last-child { display: none; }
  .auth__art { display: none; }
  .auth__cardWrap { padding: 24px 18px 40px; }
  .editor__top-inner { flex-wrap: wrap; gap: 10px; }
  .editor__title-input { font-size: 17px; flex-basis: 100%; order: 2; }
  .editor__top-actions { order: 3; width: 100%; }
  .editor__top-actions .btn { flex: 1; }
  .question-card { padding: 16px; }
  .meta-grid { grid-template-columns: 1fr; }
  .answer-grid { gap: 9px; margin-top: 20px; }
  .answer { min-height: 78px; padding: 12px 14px; font-size: 15px; border-radius: 13px; }
  .answer__shape { width: 32px; height: 32px; right: 9px; opacity: .28; }
  .player-answers { gap: 8px; }
  .player-answers .answer { min-height: 88px; font-size: 15px; }
  .lobby__pin { font-size: clamp(50px, 16vw, 82px); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .game-top { gap: 10px; flex-wrap: wrap; }
  .game-top__pin { margin-left: 0; width: 100%; justify-content: space-between; }
  .podium { flex-direction: row; }
  .podium__name { font-size: 13px; }
  .podium__score { font-size: 11.5px; }
  .report__actions { margin-left: 0; width: 100%; }
  .qreport__acc { display: none; }
  .qbar__text { width: 40%; }
  .modal { padding: 20px; }
  .toasts { left: 14px; right: 14px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media print {
  body { background: #fff; }
  .site-head, .report__actions, .footer, .toasts { display: none !important; }
  .report { padding: 0; }
  .qreport, .table-wrap, .stat-card, .team-sum { box-shadow: none; break-inside: avoid; }
  .report__section { break-inside: avoid; }
}

/* ==========================================================================
   Novos estilos: Avatares, QR Code, Social Auth, Verificação e Termos
   ========================================================================== */

.player-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,.22);
  user-select: none;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.player-avatar:hover {
  transform: scale(1.08);
}
.player-avatar__char {
  line-height: 1;
}
.player-avatar__acc {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.65em;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
  pointer-events: none;
}

/* Social Login */
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: all .16s ease;
}
.social-btn:hover {
  background: var(--paper);
  border-color: #bfa8e6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.social-btn svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.social-btn--google {
  border-color: #e2e8f0;
}
.social-btn--facebook {
  color: #1877f2;
}
.social-btn--facebook:hover {
  background: rgba(24, 119, 242, 0.06);
}
.social-btn--microsoft:hover {
  background: rgba(0, 164, 239, 0.06);
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  padding: 0 12px;
}

/* Código de Verificação SMS / E-mail */
.verification-card {
  text-align: center;
}
.code-inputs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}
.code-digit {
  width: 44px;
  height: 54px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: monospace;
  border-radius: 12px;
  border: 2px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.code-digit:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(109, 59, 255, 0.2);
}
.demo-code-banner {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #166534;
  margin: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}
.demo-code-badge {
  font-family: monospace;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;
  background: #dcfce7;
  padding: 4px 8px;
  border-radius: 6px;
  color: #14532d;
}

/* Host QR Code Card */
.host-qr-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 12px 18px;
  color: #fff;
  transition: all .2s ease;
  margin-top: 14px;
}
.host-qr-card:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.host-qr-img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  background: #fff;
  padding: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform .2s ease;
  display: block;
}
.host-qr-img:hover {
  transform: scale(1.06);
}
.host-qr-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.host-qr-text strong {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.host-qr-text span {
  font-size: 12px;
  opacity: 0.88;
}

/* Customizador de Avatar */
.avatar-customizer {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.avatar-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: var(--paper);
  border-radius: 18px;
  border: 1px solid var(--line);
  gap: 8px;
}
.avatar-tabs {
  display: flex;
  gap: 6px;
  background: var(--paper-2);
  padding: 4px;
  border-radius: 12px;
}
.avatar-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all .14s ease;
}
.avatar-tab-btn.is-active {
  background: #fff;
  color: var(--purple-700);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}
.avatar-pick-item {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  transition: all .16s ease;
}
.avatar-pick-item:hover {
  transform: scale(1.08);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.avatar-pick-item.is-selected {
  border-color: var(--purple-500);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 59, 255, 0.25);
}
.color-picker-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 0;
}
.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .14s ease;
}
.color-swatch:hover {
  transform: scale(1.15);
}
.color-swatch.is-selected {
  border-color: #fff;
  box-shadow: 0 0 0 3px var(--purple-500);
}

/* Modal de Termos */
.modal--lg {
  max-width: 680px;
  width: 95%;
}
.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.modal__header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}
.terms-content {
  max-height: 55vh;
  overflow-y: auto;
  padding-right: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.terms-content h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 6px 0;
  color: var(--ink);
}
.terms-content ul {
  padding-left: 20px;
  margin: 6px 0 12px 0;
}
.terms-content li {
  margin-bottom: 4px;
}
.terms-callout {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 10px 14px;
  border-radius: 6px;
  color: #92400e;
  font-size: 13px;
  margin-bottom: 14px;
}
.terms-checkbox-wrap {
  margin: 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.terms-checkbox-wrap input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--purple-500);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==========================================================================
   PIX Contribuição Voluntária Permanente
   ========================================================================== */

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}
.pulse-heart {
  display: inline-block;
  animation: pulseHeart 2s infinite ease-in-out;
  transform-origin: center;
}

/* Dock Fixo em Todas as Telas */
.pix-dock {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  font-family: inherit;
  transition: all .24s cubic-bezier(0.16, 1, 0.3, 1);
}

.pix-dock.is-highlighted .pix-dock-card {
  box-shadow: 0 0 0 4px #32bcad, 0 16px 48px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
}

/* Pílula Minimizado */
.pix-dock-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #18092c;
  color: #fff;
  border: 1.5px solid #32bcad;
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.pix-dock-pill:hover {
  transform: translateY(-2px);
  background: #240e42;
  box-shadow: 0 8px 24px rgba(50, 188, 173, 0.3);
}
.pix-dock-pill__text {
  letter-spacing: -0.01em;
}
.pix-dock-pill__qr-icon {
  display: inline-flex;
  align-items: center;
  color: #32bcad;
}

/* Card Aberto */
.pix-dock-card {
  width: 295px;
  max-width: calc(100vw - 32px);
  background: #150826;
  border: 1.5px solid rgba(50, 188, 173, 0.5);
  border-radius: 18px;
  padding: 14px 16px;
  color: #fff;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.55);
  animation: pixCardSlideUp .22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pixCardSlideUp {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.pix-dock-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.pix-dock-card__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #fff;
}
.pix-dock-card__btn-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}
.pix-dock-card__btn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pix-dock-card__msg {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px 0;
}
.pix-dock-card__msg strong {
  color: #a3e635;
}

.pix-dock-card__qr-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.pix-dock-card__qr-box {
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pix-dock-card__qr-box img {
  display: block;
  width: 96px;
  height: 96px;
}
.pix-dock-card__key-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.pix-badge-cpf {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #32bcad;
}
.pix-dock-card__cpf {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}
.pix-dock-card__sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
}

.pix-dock-card__actions {
  display: flex;
  flex-direction: column;
}

/* Banner de Suporte para Rodapé e Telas Internas */
.pix-support-banner {
  background: rgba(24, 9, 44, 0.7);
  border: 1.5px solid rgba(50, 188, 173, 0.35);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  margin: 24px 0;
}
.pix-support-banner--dark {
  background: rgba(15, 5, 28, 0.85);
}
.pix-support-banner--compact {
  padding: 12px 16px;
  gap: 14px;
}
.pix-support-banner__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pix-support-banner__qr img {
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  display: block;
}
.pix-qr-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #32bcad;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pix-support-banner__info {
  flex: 1;
  min-width: 0;
}
.pix-support-banner__tag {
  font-size: 14px;
  font-weight: 700;
  color: #a3e635;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pix-support-banner__text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 12px 0;
}
.pix-support-banner__text strong {
  color: #fff;
}
.pix-support-banner__keys {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.pix-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pix-key-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}
.pix-key-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: #32bcad;
  background: rgba(50, 188, 173, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
}
.pix-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

@media (max-width: 640px) {
  .pix-dock {
    bottom: 12px;
    left: 12px;
  }
  .pix-dock-card {
    width: calc(100vw - 24px);
  }
  .pix-support-banner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .pix-support-banner__keys {
    flex-direction: column;
    justify-content: center;
  }
  .pix-support-banner__tag {
    justify-content: center;
  }
}


