:root {
  --bg: #08080a;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ececf1;
  --muted: #8d8d99;
  --accent: #f2f2f5;
  --danger: #ff6b6b;
  --ok: #5fd68a;
  --radius: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }

#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#app { position: relative; z-index: 1; min-height: 100vh; }
.noscript { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ---------- barra ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: background 0.15s, transform 0.1s; font-weight: 600; font-size: 14px; }
.btn:hover { background: var(--card-hover); }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--accent); color: #0a0a0c; border-color: transparent; }
.btn.primary:hover { filter: brightness(0.92); background: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.me { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.me img { width: 28px; height: 28px; border-radius: 50%; }

/* ---------- início ---------- */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px 80px; }
.hero { text-align: center; padding: 28px 0 22px; }
.hero h1 { margin: 0; font-size: clamp(30px, 6vw, 46px); letter-spacing: 0.01em; }
.hero p { margin: 6px 0 0; color: var(--muted); }
.search { display: block; width: min(420px, 100%); margin: 18px auto 0; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); outline: none; }
.search:focus { border-color: rgba(255, 255, 255, 0.28); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 26px; }
.member { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: background 0.15s, transform 0.15s, border-color 0.15s; }
.member:hover { background: var(--card-hover); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); }
.avatar { position: relative; width: 76px; height: 76px; margin-bottom: 8px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1b1b20; }
.check { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #0a0a0c; display: grid; place-items: center; border: 2px solid var(--bg); }
.check svg { width: 12px; height: 12px; }
.member .name { font-weight: 650; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .at { color: var(--muted); font-size: 13px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }
.grid > .empty { grid-column: 1 / -1; }
.empty .btn { margin-top: 16px; }
.footer-cta { display: flex; justify-content: center; margin-top: 40px; }
.toast { max-width: 560px; margin: 8px auto 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.06); text-align: center; }
.toast.error { border-color: rgba(255, 107, 107, 0.4); }

/* ---------- perfil ---------- */
.profile { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 70px 16px 40px; overflow: hidden; isolation: isolate; }
.profile .bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.profile video.bg { width: 100%; height: 100%; object-fit: cover; }
.profile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.78)); }
.profile.embedded { min-height: 520px; border-radius: var(--radius); border: 1px solid var(--line); padding: 30px 16px; }
.pcard { width: min(420px, 100%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.pcard .avatar { width: 112px; height: 112px; }
.pcard .avatar img { border: 3px solid var(--accent); }
.pcard h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.15; }
.pcard .at { color: rgba(255, 255, 255, 0.7); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bio { margin: 4px 0 0; color: rgba(255, 255, 255, 0.9); white-space: pre-wrap; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.links a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); transition: transform 0.15s, background 0.15s; }
.links a:hover { transform: translateY(-2px); background: var(--accent); color: #0a0a0c; }
.links svg { width: 22px; height: 22px; }
.facts { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; }
.fact { padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); text-align: left; }
.fact small { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.fact a { text-decoration: underline; text-underline-offset: 3px; }
.views { color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-top: 4px; }
.pactions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.notice { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 32px)); z-index: 2; }
.back { position: absolute; top: 14px; left: 16px; z-index: 3; }
.top-right { position: absolute; top: 14px; right: 16px; z-index: 3; }

/* fundos prontos */
.bg-noite { background: radial-gradient(circle at 20% 10%, #1c1c26, #08080a 60%); }
.bg-asfalto { background: linear-gradient(160deg, #1b1b1f, #0b0b0d 55%, #232329); }
.bg-neon { background: radial-gradient(circle at 80% 15%, #5b2cff 0%, transparent 45%), radial-gradient(circle at 15% 90%, #00c2ff 0%, transparent 40%), #070711; }
.bg-brasa { background: radial-gradient(circle at 50% 100%, #ff4d1c 0%, #5a1208 35%, #0a0505 75%); }
.bg-aurora { background: radial-gradient(circle at 10% 20%, #00ffa3 0%, transparent 40%), radial-gradient(circle at 90% 70%, #6a5cff 0%, transparent 45%), #05080a; }
.bg-violeta { background: linear-gradient(135deg, #2a0f4a, #0b0614 60%, #43135f); }

/* ---------- editor / admin ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 20px; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 20px; align-items: start; }
@media (max-width: 900px) { .editor { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > label, .field > .label { font-weight: 650; font-size: 13px; }
.field small { color: var(--muted); }
.field input[type="text"], .field input[type="url"], .field textarea, .field select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255, 255, 255, 0.3); }
.field.bad input, .field.bad textarea { border-color: var(--danger); }
.field .errmsg { color: var(--danger); font-size: 13px; }
.row { display: flex; gap: 8px; align-items: center; }
.row > * { min-width: 0; }
.prefix { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.prefix span { padding: 0 0 0 12px; color: var(--muted); white-space: nowrap; font-size: 13px; }
.prefix input { border: 0 !important; background: transparent !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { width: 56px; height: 38px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.chip.on { border-color: var(--accent); }
.status { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); }
.status.ok { border-color: rgba(95, 214, 138, 0.4); }
.status.warn { border-color: rgba(255, 200, 80, 0.4); }
.status.bad { border-color: rgba(255, 107, 107, 0.45); }
.admin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.admin-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); flex-wrap: wrap; }
.admin-item img { width: 44px; height: 44px; border-radius: 50%; }
.admin-item .grow { flex: 1; min-width: 160px; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--line); }
.tag.pending { color: #ffd166; border-color: rgba(255, 209, 102, 0.4); }
.tag.approved { color: var(--ok); border-color: rgba(95, 214, 138, 0.4); }
.tag.rejected { color: var(--danger); border-color: rgba(255, 107, 107, 0.4); }
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.78); display: grid; place-items: center; padding: 20px; overflow: auto; }
.modal .box { width: min(460px, 100%); }
.hint { color: var(--muted); font-size: 13px; }

/* ---------- extras ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.badge.alt { background: rgba(0, 0, 0, 0.35); text-transform: none; letter-spacing: 0; font-weight: 600; }
.presence { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 13px; }
.presence .dot { width: 9px; height: 9px; border-radius: 50%; background: #747f8d; }
.presence.st-online .dot { background: #43b581; }
.presence.st-idle .dot { background: #faa61a; }
.presence.st-dnd .dot { background: #f04747; }
.pextra { width: 100%; color: rgba(255, 255, 255, 0.8); }
.embed { width: 100%; border: 0; border-radius: 12px; background: rgba(0, 0, 0, 0.4); }
.srow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.srow:first-of-type { border-top: 0; }
.srow span { color: var(--muted); }
.srow code { flex: 1; text-align: right; font-size: 12px; overflow-wrap: anywhere; color: var(--text); }
.clips { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.clip { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.clip:hover { background: rgba(255, 255, 255, 0.12); }
.fact a.clip { text-decoration: none; }
.clip img { width: 88px; height: 50px; object-fit: cover; border-radius: 8px; }
.clipicon { width: 88px; height: 50px; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, 0.4); }
.filters { justify-content: center; margin-top: 14px; }
.tagbtn { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 13px; }
.tagbtn:hover { background: var(--card-hover); }
.tagbtn.on { background: var(--accent); color: #0a0a0c; border-color: transparent; font-weight: 700; }
.sect { margin: 34px 0 0; font-size: 20px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-weight: 400; font-size: 14px; }
.check-row input { margin-top: 3px; }
.check-row small { color: var(--muted); }
.row.spaced { margin-bottom: 8px; flex-wrap: wrap; }
.row.spaced select { flex: 0 0 130px; }
.row.spaced input { flex: 1 1 140px; }
.clicks { color: var(--muted); }
.badgepick { position: relative; }
.badgepick summary { list-style: none; cursor: pointer; }
.badgepick summary::-webkit-details-marker { display: none; }
.badgelist { position: absolute; right: 0; top: 36px; z-index: 5; min-width: 200px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #131317; }
.member .views { margin-top: 2px; font-size: 12px; }

/* ---------- texto formatado, jogos e setup ---------- */
.bio code, .fact code { background: rgba(0, 0, 0, 0.45); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.spoiler { background: #1b1b20; color: transparent; border-radius: 4px; padding: 0 3px; cursor: pointer; user-select: none; }
.spoiler.open { background: rgba(255, 255, 255, 0.12); color: inherit; user-select: text; }
.fmtbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.fmtbtn { min-width: 34px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 700; }
.fmtbtn:hover { background: var(--card-hover); }
.srow.withpic { align-items: center; justify-content: flex-start; gap: 12px; }
.gearpic { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; padding: 4px; flex: 0 0 auto; }
.gearinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; }
.gearinfo b, .gearinfo a { overflow-wrap: anywhere; }
.srow a.gear { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-align: right; }
.fact.games { background: transparent; border: 0; padding: 0; }
.fact.games > small { margin-bottom: 8px; }
.gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gamecard { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.12); }
.gamecard .cover { width: 56px; height: 78px; flex: 0 0 auto; border-radius: 8px; object-fit: cover; background: #1b1b20; }
.gamecard.big .cover { width: 76px; height: 106px; }
.gamecard .nocover { display: grid; place-items: center; font-size: 22px; }
.ginfo { display: flex; flex-direction: column; gap: 4px; min-width: 0; text-align: left; align-items: flex-start; }
.ginfo strong { overflow-wrap: anywhere; }
.gwhy { color: rgba(255, 255, 255, 0.78); font-size: 13px; }
.gtag { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.08); }
.gamepicker { position: relative; margin-top: 8px; }
.gamelist { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; max-height: 340px; overflow: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: #131317; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.gameopt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.gameopt:hover { background: var(--card-hover); }
.gameopt img, .gameopt .nocover { width: 34px; height: 48px; border-radius: 6px; object-fit: cover; background: #1b1b20; display: grid; place-items: center; }
.gamerow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.gamerow .gamecard { flex: 1 1 240px; }
.gamectl { display: flex; flex-direction: column; gap: 8px; flex: 1 1 180px; }
.gamectl input, .tagsel { width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); }

.senslist { display: flex; flex-direction: column; gap: 8px; }
.gamecard .cover.sm { width: 40px; height: 56px; }
.sensline { color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.mirarow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.mirarow code { font-size: 12px; overflow-wrap: anywhere; }
.edpi { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
