/* =====================================================================
   Whoami — estilo da interface (HUD de jogo, sofisticado e escuro)
   ===================================================================== */
:root {
  --bg: #0d0e18;
  --bg2: #151726;
  --panel: rgba(20, 21, 36, 0.86);
  --panel-solid: #171a2b;
  --panel2: rgba(34, 36, 58, 0.9);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --text: #eef0fb;
  --muted: #9aa0bf;
  --dim: #6b7090;
  --gold: #ffd166;
  --gold2: #f4a93b;
  --teal: #4fd1c5;
  --pink: #ff6fae;
  --red: #ff4d6d;
  --green: #48bb78;
  --violet: #8c7bff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255, 255, 255, 0.04) inset;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); overflow: hidden; }
body { -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; color: inherit; }
a { color: var(--teal); }
::selection { background: rgba(255, 209, 102, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Botões ---------- */
.btn {
  appearance: none; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  padding: 9px 16px; border-radius: 11px; font-weight: 800; font-size: 14px; cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); transition: transform .08s, filter .15s, background .15s;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-accent { background: linear-gradient(180deg, #ffd978, var(--gold2)); color: #2a1a00; border-color: #ffe39a; box-shadow: 0 3px 0 #b8741c; }
.btn-teal { background: linear-gradient(180deg, #6ee7db, #2fb3a7); color: #04201d; border-color: #9af2ea; box-shadow: 0 3px 0 #1f7c74; }
.btn-danger { background: linear-gradient(180deg, #ff7a91, #e23a59); color: #fff; border-color: #ff9cad; box-shadow: 0 3px 0 #9b1f37; }
.btn-ghost { background: transparent; box-shadow: none; border-color: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 22px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; justify-content: center; }
.icon-btn { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 17px; }
kbd, .kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 5px; background: #2a2d47; border: 1px solid #3c4066; border-bottom-width: 3px;
  font: 800 11px var(--font); color: #dfe3ff;
}

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 800; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.input, .select, textarea.input {
  background: rgba(8, 9, 18, 0.6); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 13px;
  font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.15); }
.select { appearance: none; cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.err { color: #ff8fa3; font-size: 13px; font-weight: 700; min-height: 18px; }

/* ---------- Seletor segmentado ---------- */
.seg { display: inline-flex; background: rgba(8, 9, 18, 0.55); border: 1px solid var(--line2); border-radius: 11px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 8px; font-weight: 800; font-size: 13px; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--panel2); color: var(--text); box-shadow: 0 0 0 1px var(--line2) inset, 0 2px 0 rgba(0,0,0,.3); }
.seg button:hover:not(.on) { color: var(--text); }

.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; font-size: 14px; user-select: none; }
.toggle input { display: none; }
.toggle .sw { width: 42px; height: 24px; border-radius: 99px; background: #2a2d47; position: relative; transition: background .15s; border: 1px solid var(--line2); flex: none; }
.toggle .sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c7cbe6; transition: transform .18s, background .18s; }
.toggle input:checked + .sw { background: #2c8f86; }
.toggle input:checked + .sw::after { transform: translateX(18px); background: #fff; }

/* ---------- Telas cheias (login, celular, carregando) ---------- */
.screen {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; overflow: auto;
  background:
    radial-gradient(1100px 600px at 15% 10%, rgba(140, 123, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 90%, rgba(79, 209, 197, 0.14), transparent 60%),
    radial-gradient(700px 500px at 80% 10%, rgba(255, 209, 102, 0.10), transparent 60%),
    var(--bg);
}
.screen-grid { position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--pink) 60%, var(--violet)); color: #1a1030; box-shadow: 0 6px 20px rgba(255, 111, 174, 0.35); }
.auth-card { position: relative; width: min(440px, 100%); background: var(--panel); border: 1px solid var(--line2); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.auth-card h1 { font-family: var(--display); font-size: 30px; margin: 18px 0 4px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.demo-badge { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: #1a1030; background: var(--gold); padding: 4px 10px; border-radius: 99px; }
.loading { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--muted); font-weight: 700; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Escritório ---------- */
#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: default; }
.hud { position: fixed; pointer-events: none; z-index: 10; }
.hud > * { pointer-events: auto; }
.hud-top { top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.chip {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); display: flex; align-items: center; gap: 10px;
}
.hud-brand .brand-mark { width: 34px; height: 34px; font-size: 15px; border-radius: 10px; }
.hud-brand .t1 { font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1; }
.hud-brand .t2 { font-size: 11.5px; color: var(--muted); font-weight: 700; margin-top: 3px; }
.stage-pill { font-size: 10.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #1d1405; background: var(--gold); padding: 2px 7px; border-radius: 6px; }
.clock { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .03em; }
.clock-sub { font-size: 11px; color: var(--muted); font-weight: 700; }
.roster { display: flex; gap: 4px; }
.roster-item { position: relative; width: 36px; height: 36px; border-radius: 11px; background: #22253c; border: 2px solid transparent; overflow: visible; cursor: pointer; }
.roster-item img { width: 100%; height: 100%; border-radius: 9px; display: block; }
.roster-item .dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--panel-solid); }
.roster-item .live { position: absolute; left: -4px; top: -6px; font-size: 9px; font-weight: 900; color: #fff; background: var(--red); border-radius: 5px; padding: 0 4px; }
.roster-item.offline { opacity: .35; filter: grayscale(1); }
.status-btn { font-weight: 800; font-size: 13px; }

.hud-bottom-left { left: 14px; bottom: 14px; width: min(380px, calc(100vw - 28px)); }
.hud-bottom-right { right: 14px; bottom: 14px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hud-bottom-center { left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }

.keys { display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 520px; justify-content: flex-end; font-size: 12px; color: var(--muted); font-weight: 700; }
.keys span { display: inline-flex; align-items: center; gap: 5px; }

.action-bar { display: flex; gap: 8px; }
.action-bar .btn:not(.btn-accent):not(.btn-teal) { background: var(--panel); backdrop-filter: blur(10px); }

/* chat */
.chat { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(10px); overflow: hidden; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 8px 14px; font-weight: 900; font-size: 13px; border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; }
.chat-log { max-height: 210px; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.chat.collapsed .chat-log { display: none; }
.chat-msg { line-height: 1.35; word-wrap: break-word; }
.chat-msg .who { font-weight: 900; margin-right: 6px; }
.chat-msg .when { color: var(--dim); font-size: 11px; margin-left: 6px; }
.chat-msg.sys { color: var(--muted); font-style: italic; font-size: 12.5px; }
.chat-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-input .input { padding: 8px 11px; font-size: 14px; }
.unread { background: var(--red); color: #fff; font-size: 11px; font-weight: 900; border-radius: 99px; padding: 1px 7px; }

/* toasts */
.toasts { position: fixed; top: 96px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 13px; padding: 10px 14px; font-weight: 800; font-size: 14px; box-shadow: var(--shadow);
  transform: translateY(-14px) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.2,1.4,.4,1), opacity .2s; }
.toast.in { transform: none; opacity: 1; }
.toast-icon { font-size: 18px; }
.toast-ok { border-color: rgba(72, 187, 120, .6); }
.toast-warn { border-color: rgba(255, 209, 102, .6); }
.toast-err { border-color: rgba(255, 77, 109, .7); }

/* modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(5, 6, 14, 0.55); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; opacity: 0; transition: opacity .18s; padding: 20px; }
.modal-backdrop.in { opacity: 1; }
.modal { background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; transform: translateY(10px) scale(.98); transition: transform .22s cubic-bezier(.2,1.3,.4,1); }
.modal-backdrop.in .modal { transform: none; }
.modal-wide { width: min(980px, 100%); }
.modal-full { padding: 0; background: rgba(5, 6, 14, 0.82); }
.modal-fullbox { width: 100vw; height: 100vh; max-height: none; border-radius: 0; border: 0; background: #0b0c15; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.modal-head h2 { font-family: var(--display); font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-body { padding: 4px 20px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.section-title { font-size: 12px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 10px; }

/* painel "em construção" */
.locked { text-align: center; padding: 34px 26px 28px; }
.locked .big { font-size: 56px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
.locked h2 { font-family: var(--display); margin: 10px 0 6px; font-size: 26px; }
.locked p { color: var(--muted); margin: 0 auto 18px; max-width: 360px; line-height: 1.5; }
.phase-tag { display: inline-block; font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 99px; background: rgba(140,123,255,.18); color: #c3b9ff; border: 1px solid rgba(140,123,255,.4); }

/* roda radial */
.radial { position: fixed; z-index: 60; width: 340px; height: 340px; transform: translate(-50%, -50%); pointer-events: none; }
.radial-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(18,19,32,.92) 30%, rgba(18,19,32,.86) 31%, rgba(18,19,32,.86) 68%, transparent 69%); box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: pop .16s cubic-bezier(.2,1.5,.4,1); }
.radial-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 96px; text-align: center; font-weight: 900; font-size: 12px; color: var(--muted); }
.radial-center .k { margin-bottom: 4px; }
.radial-item { position: absolute; width: 96px; margin-left: -48px; margin-top: -22px; text-align: center; padding: 8px 6px; border-radius: 12px; font-weight: 900; font-size: 13px; transition: transform .1s, background .1s, color .1s; color: #d7dbf5; }
.radial-item .ico { font-size: 22px; display: block; margin-bottom: 1px; }
.radial-item.on { background: var(--gold); color: #24180a; transform: scale(1.12); box-shadow: 0 6px 18px rgba(255, 209, 102, .4); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* minimapa + placar */
.overlay-center { position: fixed; inset: 0; display: grid; place-items: center; z-index: 40; pointer-events: none; }
.overlay-center > * { pointer-events: auto; }
.scoreboard { width: min(760px, calc(100vw - 40px)); background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; animation: pop .15s ease-out; }
.scoreboard h3 { margin: 0; padding: 16px 20px; font-family: var(--display); font-size: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.sb-row { display: grid; grid-template-columns: 52px 1.4fr 1fr 1.2fr .8fr .8fr; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.sb-row.head { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding-top: 8px; padding-bottom: 8px; }
.sb-row img { width: 42px; height: 42px; border-radius: 12px; background: #22253c; }
.sb-row .name { font-weight: 900; font-size: 15px; }
.sb-row.off { opacity: .45; }
.minimap { background: var(--panel-solid); border: 1px solid var(--line2); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; animation: pop .15s ease-out; }
.minimap canvas { display: block; border-radius: 12px; cursor: pointer; }
.minimap .mm-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-family: var(--display); font-size: 18px; }

/* criador de personagem */
.creator { display: grid; grid-template-columns: 360px 1fr; min-height: 560px; }
.creator-stage { background: radial-gradient(circle at 50% 60%, #2f3360, #15172a 70%); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; position: relative; }
.creator-stage canvas { width: 300px; height: 360px; }
.creator-stage .rot { display: flex; gap: 8px; }
.creator-panel { padding: 18px 22px; display: flex; flex-direction: column; min-width: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab { border: 1px solid var(--line2); background: transparent; padding: 7px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; color: var(--muted); }
.tab.on { background: var(--gold); color: #24180a; border-color: var(--gold); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.opt { border: 1px solid var(--line2); background: rgba(8,9,18,.45); border-radius: 12px; padding: 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--muted); transition: transform .1s, border-color .1s; }
.opt img { width: 64px; height: 64px; }
.opt:hover { transform: translateY(-2px); border-color: var(--line2); color: var(--text); }
.opt.on { border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 2px rgba(255, 209, 102, .35); background: rgba(255, 209, 102, .07); }
.swatches { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sw-c { width: 30px; height: 30px; border-radius: 9px; border: 2px solid rgba(255,255,255,.12); cursor: pointer; transition: transform .1s; }
.sw-c:hover { transform: scale(1.1); }
.sw-c.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 209, 102, .6); }
.sw-custom { width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.creator-scroll { overflow-y: auto; flex: 1; padding-right: 4px; max-height: 470px; }

/* sala de projeção */
.proj { display: flex; flex-direction: column; height: 100vh; }
.proj-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 12px; background: #10111c; }
.proj-top h2 { margin: 0; font-family: var(--display); font-size: 20px; display: flex; align-items: center; gap: 10px; }
.proj-grid { flex: 1; display: grid; gap: 10px; padding: 10px; min-height: 0; }
.proj-grid.n1 { grid-template-columns: 1fr; }
.proj-grid.n2 { grid-template-columns: 1fr 1fr; }
.proj-grid.focus { grid-template-columns: 1fr 260px; }
.proj-grid.focus .tile.mini { align-self: start; aspect-ratio: 16/10; height: auto; }
.tile { position: relative; background: #05060b; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-height: 0; min-width: 0; }
.tile.self { border-color: rgba(255, 77, 109, .5); }
.tile-viewport { position: absolute; inset: 0; overflow: hidden; cursor: grab; }
.tile-viewport.dragging { cursor: grabbing; }
.tile-viewport.drawing { cursor: crosshair; }
.tile-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tile-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tile-stage canvas.anno { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tile-bar { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.tile-bar > * { pointer-events: auto; }
.tile-name { background: rgba(10, 10, 18, .78); border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; font-weight: 900; font-size: 13px; display: flex; gap: 8px; align-items: center; backdrop-filter: blur(6px); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,77,109,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,77,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); } }
.tile-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tile-tools .btn { background: rgba(10, 10, 18, .78); backdrop-filter: blur(6px); box-shadow: none; }
.tile-tools .btn.on { background: var(--gold); color: #24180a; }
.tile-stats { position: absolute; left: 10px; bottom: 10px; background: rgba(10,10,18,.72); border: 1px solid var(--line); border-radius: 9px; padding: 4px 9px; font-size: 11.5px; font-weight: 800; color: #c9cdea; font-variant-numeric: tabular-nums; pointer-events: none; }
.tile-zoom { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 4px; align-items: center; background: rgba(10,10,18,.78); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.tile-zoom span { font-size: 12px; font-weight: 900; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }
.tile-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-weight: 700; padding: 20px; }
.tile-empty .big { font-size: 44px; margin-bottom: 6px; }
.anno-tools { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 4px; background: rgba(10,10,18,.85); border: 1px solid var(--line2); border-radius: 12px; padding: 4px; backdrop-filter: blur(6px); }
.anno-tools .btn { box-shadow: none; }
.anno-tools .btn.on { background: var(--gold); color: #24180a; }
.proj-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); }
.proj-empty .big { font-size: 64px; }
.proj-empty h3 { font-family: var(--display); color: var(--text); font-size: 24px; margin: 10px 0 6px; }
.self-panel { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.watchers { display: flex; gap: 4px; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.watchers img { width: 24px; height: 24px; border-radius: 7px; background: #22253c; }

/* configuração de compartilhamento */
.share-grid { display: grid; gap: 16px; }
.share-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.share-row .lbl { font-weight: 900; font-size: 14px; }
.share-row .lbl small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; margin-top: 2px; }
.est { background: rgba(79, 209, 197, .08); border: 1px solid rgba(79, 209, 197, .3); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #bff3ee; font-weight: 700; }
.warnbox { background: rgba(255, 209, 102, .08); border: 1px solid rgba(255, 209, 102, .35); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #ffe7ad; font-weight: 700; line-height: 1.45; }

/* configurações */
.settings-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.settings-row:last-child { border-bottom: 0; }
.settings-row input[type="range"] { width: 180px; accent-color: var(--gold); }
.phrase-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.admin-row img { width: 36px; height: 36px; border-radius: 10px; background: #22253c; }
.admin-row .grow { flex: 1; }

/* cartão de perfil */
.profile-card { text-align: center; padding: 24px; }
.profile-card img { width: 120px; height: 120px; border-radius: 26px; background: radial-gradient(circle at 50% 70%, #2f3360, #15172a); }
.profile-card h2 { font-family: var(--display); margin: 12px 0 4px; }

.mobile-block { text-align: center; max-width: 420px; }
.mobile-block .big { font-size: 64px; }
.mobile-block h1 { font-family: var(--display); }
.mobile-block p { color: var(--muted); line-height: 1.5; }

.banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 30; background: rgba(255, 209, 102, .12); border: 1px solid rgba(255, 209, 102, .4); color: #ffe7ad; padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 800; }

.fade-in { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Quadros de Brainstorm (Fase 2) ---------- */
.board { display: flex; flex-direction: column; height: 100vh; }
.board-body { flex: 1; display: flex; min-height: 0; }
.board-tools { width: 64px; background: #10111c; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; overflow-y: auto; }
.board-tool { width: 48px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 18px; line-height: 1; flex: none; }
.board-tool small { font-size: 9px; font-weight: 900; color: var(--dim); }
.board-tool:hover { background: rgba(255,255,255,.06); }
.board-tool.on { background: var(--gold); color: #24180a; }
.board-tool.on small { color: #6b4a10; }
.board-stage { position: relative; flex: 1; min-width: 0; overflow: hidden; background: #f7f5ef; }
.board-canvas { position: absolute; inset: 0; display: block; touch-action: none; }
.board-text { position: absolute; z-index: 3; margin: 0; padding: 0; border: 0; outline: 1.5px dashed rgba(108,92,231,.6); outline-offset: 4px; background: transparent; resize: none; overflow: hidden; white-space: pre; }
.board-text.note { white-space: pre-wrap; outline: none; }
.board-props { position: absolute; left: 14px; top: 14px; z-index: 4; background: rgba(23,26,43,.94); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; max-width: 280px; }
.bp-row { display: flex; flex-direction: column; gap: 5px; }
.bp-label { font-size: 10.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bp-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.bp-sw { width: 24px; height: 24px; border-radius: 7px; border: 2px solid rgba(255,255,255,.15); cursor: pointer; padding: 0; }
.bp-sw.none { background: repeating-linear-gradient(45deg, #fff 0 4px, #e6e3ee 4px 8px) !important; }
.bp-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.bp-btn { border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--text); font-weight: 800; font-size: 12px; padding: 5px 9px; border-radius: 8px; cursor: pointer; }
.bp-btn.on { background: var(--gold); color: #24180a; border-color: var(--gold); }
.bp-btn.danger:hover { background: var(--red); }
.board-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 4; display: flex; align-items: center; gap: 2px; background: rgba(23,26,43,.94); border: 1px solid var(--line2); border-radius: 12px; padding: 3px; box-shadow: var(--shadow); }
.board-zoom span:not(.sep) { min-width: 46px; text-align: center; font-weight: 900; font-size: 12px; font-variant-numeric: tabular-nums; }
.board-zoom .sep { width: 1px; height: 20px; background: var(--line2); margin: 0 4px; }
.board-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; font-size: 12px; font-weight: 700; color: rgba(40,34,60,.55); pointer-events: none; white-space: nowrap; }
.board-name-btn { background: none; border: 0; color: var(--text); font: 600 19px var(--display); cursor: pointer; padding: 2px 4px; border-radius: 8px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-name-btn:hover { background: rgba(255,255,255,.06); }
.board-status { font-size: 12px; font-weight: 800; color: var(--green); white-space: nowrap; }
.board-status.temp { color: var(--gold); }
.board-status.err { color: var(--red); }
.board-peers { display: flex; gap: 4px; align-items: center; }
.board-peers img { width: 30px; height: 30px; border-radius: 9px; background: #22253c; border: 2px solid transparent; }
.board-new { background: rgba(8,9,18,.4); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.board-card { display: flex; align-items: center; gap: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 6px 4px 4px; }
.board-card:hover { border-color: var(--line2); }
.board-card-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; background: none; border: 0; color: var(--text); text-align: left; cursor: pointer; padding: 8px; border-radius: 10px; }
.bc-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: #f7f5ef; flex: none; }
.bc-info { flex: 1; min-width: 0; }
.bc-name { font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-people { display: flex; gap: 2px; }
.bc-people img { width: 26px; height: 26px; border-radius: 8px; background: #22253c; border: 2px solid transparent; }

/* ---------- Fase 3: Missões + Agenda ---------- */
.clock-next { margin-top: 4px; border: 1px solid rgba(140,123,255,.45); background: rgba(140,123,255,.14); color: #d8d2ff; font: 800 11px var(--font); padding: 3px 9px; border-radius: 99px; cursor: pointer; max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clock-next.live { border-color: rgba(255,77,109,.6); background: rgba(255,77,109,.16); color: #ffd0d9; animation: pulse 1.6s infinite; }
.plan .proj-top { flex-wrap: wrap; }
.mb-filters { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mb-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 800 12.5px var(--font); padding: 5px 11px; border-radius: 99px; cursor: pointer; }
.mb-chip img { width: 20px; height: 20px; border-radius: 6px; background: #22253c; }
.mb-chip.on { background: var(--gold); color: #24180a; border-color: var(--gold); }
.mb-search { width: 220px; padding: 7px 11px; font-size: 13.5px; }
.mb-board { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 14px; min-height: 0; }
.mb-col { background: #12131f; border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; min-height: 0; }
.mb-col-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 10px; font: 600 17px var(--display); }
.mb-count { font: 900 12px var(--font); background: rgba(255,255,255,.08); padding: 2px 9px; border-radius: 99px; color: var(--muted); }
.mb-col-todo .mb-col-head span:first-child { color: #ffb4a2; }
.mb-col-doing .mb-col-head span:first-child { color: #7ee8dc; }
.mb-col-done .mb-col-head span:first-child { color: #9ae6b4; }
.mb-list { flex: 1; overflow-y: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; border-radius: 0 0 18px 18px; transition: background .15s; min-height: 80px; }
.mb-list.over { background: rgba(255,209,102,.05); }
.mb-card { position: relative; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--pc, var(--teal)); border-radius: 12px; padding: 10px 12px; cursor: grab; transition: transform .12s, box-shadow .12s, border-color .12s; }
.mb-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.35); border-color: var(--line2); border-left-color: var(--pc); }
.mb-card.dragging { opacity: .35; }
.mb-card.done { opacity: .65; }
.mb-card.done .mb-card-title { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.mb-card-title { font-weight: 800; font-size: 14.5px; line-height: 1.35; word-break: break-word; }
.mb-card-meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mb-tag { font-size: 11.5px; font-weight: 800; color: var(--muted); background: rgba(255,255,255,.05); padding: 2px 7px; border-radius: 7px; }
.mb-tag.due.late { color: #ff8fa3; background: rgba(255,77,109,.14); }
.mb-tag.due.today { color: #ffd166; background: rgba(255,209,102,.13); }
.mb-tag.due.soon { color: #fbd38d; }
.mb-av { width: 26px; height: 26px; border-radius: 8px; background: #22253c; border: 2px solid transparent; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--dim); }
.mb-drop { height: 4px; border-radius: 4px; background: var(--gold); box-shadow: 0 0 12px rgba(255,209,102,.6); flex: none; }
.mb-empty { color: var(--dim); font-size: 13px; font-weight: 700; text-align: center; padding: 18px 8px; border: 1px dashed var(--line2); border-radius: 12px; }
.mb-quick-wrap { padding: 0 12px 12px; }
.mb-quick { padding: 9px 12px; font-size: 13.5px; }
.mb-people { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-person { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line2); background: rgba(8,9,18,.45); color: var(--text); font: 800 13px var(--font); padding: 4px 10px 4px 4px; border-radius: 10px; cursor: pointer; min-height: 38px; }
.mb-person img { width: 28px; height: 28px; border-radius: 8px; background: #22253c; }
.mb-person.on { border-color: var(--c, var(--gold)); box-shadow: 0 0 0 2px var(--c, var(--gold)); }
.mb-days { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.mb-day { border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 800 12px var(--font); padding: 5px 9px; border-radius: 8px; cursor: pointer; text-transform: capitalize; }
.mb-day.on { background: var(--teal); color: #04201d; border-color: var(--teal); }
textarea.input { resize: vertical; font-size: 14px; }

.celebrate { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; place-items: center; transition: opacity .5s; }
.celebrate.out { opacity: 0; }
.celebrate i { position: absolute; top: 55%; width: 9px; height: 14px; border-radius: 2px; animation: confetti 1.6s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes confetti { 0% { transform: translate(0,0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 520px)) rotate(var(--r)); opacity: 0; } }
.celebrate-card { background: var(--panel-solid); border: 1px solid rgba(255,209,102,.5); border-radius: 22px; padding: 22px 34px; text-align: center; box-shadow: 0 20px 70px rgba(0,0,0,.55), 0 0 60px rgba(255,209,102,.25); animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.celebrate-card .big { font-size: 54px; }
.celebrate-card .t1 { font: 700 28px var(--display); color: var(--gold); }
.celebrate-card .t2 { font-weight: 800; margin-top: 4px; max-width: 360px; }
.celebrate-card .t3 { margin-top: 8px; font-weight: 900; color: var(--teal); }
.celebrate-card .t3.late { color: var(--muted); }

.ag-label { font: 600 18px var(--display); margin-left: 6px; }
.ag-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 14px 14px; }
.ag-week { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #12131f; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.ag-week-head, .ag-allday { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ag-dayhead { padding: 10px 6px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.ag-dayhead span { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ag-dayhead b { font: 600 20px var(--display); }
.ag-dayhead.weekend b { color: var(--muted); }
.ag-dayhead.today b { background: var(--gold); color: #24180a; border-radius: 10px; padding: 0 8px; align-self: center; }
.ag-gutter { font-size: 10px; color: var(--dim); font-weight: 800; }
.ag-allday-label { padding: 6px; white-space: pre-line; line-height: 1.2; text-align: right; }
.ag-allday-cell { border-left: 1px solid var(--line); padding: 4px; display: flex; flex-direction: column; gap: 3px; min-height: 34px; max-height: 110px; overflow-y: auto; }
.ag-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.ag-grid { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); position: relative; }
.ag-hour { font-size: 10.5px; font-weight: 800; color: var(--dim); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.ag-col { position: relative; border-left: 1px solid var(--line); cursor: copy; }
.ag-col.today { background: rgba(255,209,102,.035); }
.ag-slot { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(255,255,255,.05); }
.ag-slot:hover { background: rgba(140,123,255,.07); }
.ag-event { position: absolute; z-index: 2; background: color-mix(in srgb, var(--ec) 28%, #171a2b); border: 1px solid color-mix(in srgb, var(--ec) 70%, transparent); border-left: 4px solid var(--ec); border-radius: 9px; padding: 3px 7px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; font-size: 12px; transition: filter .12s; }
.ag-event:hover { filter: brightness(1.2); z-index: 3; }
.ag-event b { font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-event span { color: var(--muted); font-weight: 700; font-size: 11px; white-space: nowrap; }
.ag-now { position: absolute; left: -4px; right: 0; height: 2px; background: var(--red); z-index: 4; pointer-events: none; }
.ag-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.ag-due-line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--pc); z-index: 1; pointer-events: none; }
.ag-due-line span { position: absolute; right: 4px; top: -16px; font-size: 10.5px; font-weight: 900; color: var(--pc); background: #12131f; padding: 0 4px; border-radius: 4px; max-width: 90%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ag-chip, .ag-mission { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; font: 800 11.5px var(--font); padding: 3px 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-chip { background: color-mix(in srgb, var(--ec) 30%, #171a2b); color: var(--text); border-left: 3px solid var(--ec); }
.ag-mission { background: rgba(255,255,255,.05); color: var(--text); border-left: 3px solid var(--pc); }
.ag-mission.late { background: rgba(255,77,109,.15); color: #ffb3c1; }
.ag-mission.done { opacity: .55; text-decoration: line-through; }
.ag-month { flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 0; }
.ag-mhead { background: #12131f; text-align: center; padding: 8px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ag-mcell { background: #12131f; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-height: 0; overflow: hidden; cursor: copy; }
.ag-mcell:hover { background: #171a2b; }
.ag-mcell.other { background: #0e0f19; }
.ag-mcell.other .ag-mday { color: var(--dim); }
.ag-mday { font: 600 14px var(--display); }
.ag-mcell.today .ag-mday { background: var(--gold); color: #24180a; border-radius: 8px; padding: 0 7px; align-self: flex-start; }
.ag-more { border: 0; background: none; color: var(--teal); font: 900 11px var(--font); text-align: left; cursor: pointer; padding: 1px 4px; }

/* ---------- Fase 4: progresso ---------- */
.hud-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; pointer-events: none; }
.hud-left > * { pointer-events: auto; }
.prog-chip { padding: 6px 8px; gap: 6px; }
.prog-chip button { border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.prog-lv { display: flex; align-items: center; gap: 9px; padding: 2px 6px 2px 2px !important; border-radius: 10px; }
.prog-lv:hover, .prog-coins:hover, .prog-chest:hover, .prog-btn:hover { background: rgba(255,255,255,.06) !important; }
.lv-badge { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 8px; background: linear-gradient(180deg, #ffe08a, #f4a93b); color: #2a1a00; font: 900 12px var(--font); box-shadow: 0 2px 0 #b8741c; }
.lv-badge.big { min-width: 44px; height: 40px; font-size: 20px; border-radius: 12px; }
.prog-mid { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 130px; }
.prog-name { font-weight: 900; font-size: 12.5px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prog-xp { font-size: 10.5px; color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.xpbar { position: relative; width: 100%; height: 7px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.xpbar i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: linear-gradient(90deg, #8c7bff, #4fd1c5); transition: width .5s; }
.xpbar.big { height: 12px; }
.prog-coins { font: 900 13px var(--font) !important; padding: 6px 8px !important; border-radius: 10px; color: #ffe08a !important; white-space: nowrap; }
.prog-chest, .prog-btn { position: relative; font-size: 18px !important; padding: 4px 7px !important; border-radius: 10px; }
.prog-chest.has { animation: wiggle 1.4s infinite; }
.prog-chest .badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; font: 900 10px var(--font); border-radius: 99px; padding: 1px 6px; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

.ach-pop { position: fixed; right: 16px; top: 90px; z-index: 130; display: flex; gap: 14px; align-items: center; background: linear-gradient(135deg, #2a2140, #171a2b); border: 1px solid rgba(255,209,102,.55); border-radius: 16px; padding: 14px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(255,209,102,.18); transform: translateX(120%); transition: transform .45s cubic-bezier(.2,1.3,.4,1); max-width: 380px; }
.ach-pop.in { transform: none; }
.ach-ico { font-size: 40px; filter: drop-shadow(0 4px 10px rgba(255,209,102,.5)); }
.ach-k { font: 900 10.5px var(--font); letter-spacing: .1em; color: var(--gold); }
.ach-n { font: 700 19px var(--display); }
.ach-d { font-size: 12.5px; color: var(--muted); font-weight: 700; }

.move-scene { position: fixed; inset: 0; z-index: 140; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(circle, rgba(30,24,60,.96), rgba(5,6,14,.98)); opacity: 0; transition: opacity .6s; text-align: center; }
.move-scene.in { opacity: 1; }
.move-scene.out { opacity: 0; }
.move-truck { font-size: 70px; animation: truck 3s ease-in-out; }
@keyframes truck { 0% { transform: translateX(-60vw); } 45% { transform: translateX(0); } 100% { transform: translateX(0); } }
.move-k { font: 900 14px var(--font); letter-spacing: .2em; color: var(--gold); }
.move-n { font: 700 46px var(--display); }
.move-d { color: var(--muted); font-weight: 700; max-width: 520px; }
.move-s { margin-top: 10px; font-size: 12px; color: var(--dim); font-weight: 800; }

.chest-stage { min-height: 260px; display: grid; place-items: center; }
.chest { font-size: 110px; }
.chest.shake { animation: shake .12s infinite; filter: drop-shadow(0 0 30px rgba(255,209,102,.6)); }
@keyframes shake { 0% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.06); } 100% { transform: rotate(-4deg) scale(1); } }
.chest-reveal { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px; animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
.reveal-glow { position: absolute; inset: -30px; background: radial-gradient(circle, color-mix(in srgb, var(--rc) 45%, transparent), transparent 65%); z-index: -1; animation: spin 6s linear infinite; }
.chest-reveal.r-lendario .reveal-glow, .chest-reveal.r-epico .reveal-glow { background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--rc) 60%, transparent), transparent, color-mix(in srgb, var(--rc) 60%, transparent), transparent); border-radius: 50%; }
.reveal-r { font: 900 12px var(--font); letter-spacing: .2em; color: var(--rc); }
.reveal-n { font: 700 26px var(--display); }
.reveal-k { color: var(--muted); font-weight: 800; font-size: 13px; }
.reveal-dup { color: var(--gold); font-weight: 900; }
.chest-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.chest-pick { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); font: 800 13px var(--font); padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.chest-pick:hover { border-color: var(--gold); }
.chest-mini { font-size: 20px; }
.it-emoji { line-height: 1; display: grid; place-items: center; height: 100%; }

.hub-body { min-height: 420px; }
.pf-head { display: flex; gap: 18px; align-items: center; }
.pf-head img { width: 96px; height: 96px; border-radius: 22px; background: radial-gradient(circle at 50% 70%, #2f3360, #15172a); }
.pf-name { font: 700 24px var(--display); }
.pf-title { color: var(--gold); font-weight: 900; margin: 2px 0 10px; }
.pf-lv { display: flex; gap: 12px; align-items: center; }
.pf-trophies { display: flex; gap: 8px; margin-top: 12px; }
.pf-trophy { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255,209,102,.1); border: 1px solid rgba(255,209,102,.35); }
.pf-trophy.empty { color: var(--dim); background: transparent; border-style: dashed; border-color: var(--line2); font-size: 16px; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.pf-stat { background: rgba(8,9,18,.45); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-stat b { font: 700 20px var(--display); }
.pf-stat span { font-size: 12px; color: var(--muted); font-weight: 800; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 8px; }
.ach { display: flex; gap: 12px; align-items: flex-start; background: rgba(8,9,18,.4); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; opacity: .62; }
.ach.ok { opacity: 1; border-color: rgba(255,209,102,.4); background: linear-gradient(135deg, rgba(255,209,102,.07), rgba(8,9,18,.4)); }
.ach-icon { font-size: 28px; width: 38px; text-align: center; filter: grayscale(1); }
.ach.ok .ach-icon { filter: none; }
.ach-name { font-weight: 900; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.ach-team { font: 900 9px var(--font); letter-spacing: .08em; background: rgba(79,209,197,.15); color: var(--teal); padding: 1px 5px; border-radius: 5px; }
.ach-prog { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: 11px; font-weight: 800; color: var(--muted); }
.ach-rew { font-size: 11.5px; color: #ffe08a; font-weight: 800; margin-top: 4px; }
.ach-fav { border: 0; background: none; font-size: 18px; cursor: pointer; filter: grayscale(1) opacity(.4); }
.ach-fav.on { filter: none; }
.it-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.it-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--line2); border-bottom: 3px solid var(--rc); background: rgba(8,9,18,.45); color: var(--text); border-radius: 12px; padding: 10px 6px 8px; cursor: pointer; font: inherit; min-height: 132px; }
.it-card > canvas, .it-card > .it-emoji { height: 54px; }
.it-card:hover { transform: translateY(-2px); }
.it-card.locked { opacity: .45; cursor: default; filter: grayscale(.8); }
.it-card.locked:hover { transform: none; }
.it-card.eq { box-shadow: 0 0 0 2px var(--gold); }
.it-card.shop { cursor: default; }
.it-card.owned { opacity: .6; }
.it-name { font-weight: 900; font-size: 12.5px; text-align: center; }
.it-r { font-size: 10.5px; font-weight: 900; color: var(--rc); text-transform: uppercase; letter-spacing: .06em; }
.it-eq { font: 900 9.5px var(--font); color: var(--gold); letter-spacing: .08em; }
.shop-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: rgba(255,209,102,.07); border: 1px solid rgba(255,209,102,.3); border-radius: 14px; padding: 12px 16px; }
.shop-coins { font: 700 28px var(--display); color: #ffe08a; }
.office-prog { display: flex; gap: 16px; align-items: center; background: rgba(8,9,18,.45); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.op-icon { font-size: 52px; }
.contrib { display: grid; grid-template-columns: 32px 120px 44px 1fr 110px; gap: 10px; align-items: center; padding: 6px 0; }
.contrib img { width: 32px; height: 32px; border-radius: 9px; background: #22253c; }
.c-name { font-weight: 900; }
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rm-step { background: rgba(8,9,18,.4); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; opacity: .55; }
.rm-step.done { opacity: 1; border-color: rgba(104,211,145,.4); }
.rm-step.cur { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,209,102,.3); }
.rm-ico { font-size: 30px; }
.rm-n { font-weight: 900; margin: 4px 0 2px; }
.rm-d { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.rules { display: grid; gap: 6px; }
.rule { display: flex; justify-content: space-between; gap: 16px; padding: 9px 12px; background: rgba(8,9,18,.4); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.rule span { color: var(--muted); font-weight: 700; text-align: right; }

/* ---------- Jogo de bandeiras ---------- */
.fg { display: flex; flex-direction: column; height: 100vh; background: radial-gradient(900px 500px at 50% 0%, rgba(140,123,255,.15), transparent), #0b0c15; }
.fg-lobby { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 30px; text-align: center; }
.fg-lobby h3 { font: 700 30px var(--display); margin: 6px 0; }
.fg-big { font-size: 64px; }
.fg-modes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fg-mode { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text); padding: 12px 18px; border-radius: 14px; cursor: pointer; min-width: 180px; font: inherit; }
.fg-mode b { font: 700 18px var(--display); }
.fg-mode span { font-size: 12px; color: var(--muted); font-weight: 700; }
.fg-mode.on { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,209,102,.35); }
.fg-mode:disabled { cursor: default; }
.fg-players { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.fg-player { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px 6px 6px; font-weight: 900; }
.fg-player img { width: 40px; height: 40px; border-radius: 10px; background: #22253c; }
.fg-game { flex: 1; display: grid; grid-template-columns: 1fr 280px; gap: 16px; padding: 16px; min-height: 0; }
.fg-main { display: flex; flex-direction: column; align-items: center; gap: 12px; min-height: 0; overflow-y: auto; }
.fg-round { font: 700 18px var(--display); display: flex; gap: 14px; align-items: center; }
.fg-secs { font: 900 16px var(--font); color: var(--gold); font-variant-numeric: tabular-nums; }
.fg-timer { width: min(640px, 100%); height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.fg-timer i { display: block; height: 100%; background: linear-gradient(90deg, #4fd1c5, #8c7bff); border-radius: 99px; transition: width .1s linear; }
.fg-timer i.low { background: linear-gradient(90deg, #ff4d6d, #f6ad55); }
.fg-flag { width: min(520px, 90%); aspect-ratio: 3 / 2; display: grid; place-items: center; background: rgba(255,255,255,.03); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.fg-flag img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.fg-noimg { color: var(--muted); font-weight: 800; }
.fg-hint { font: 700 24px var(--display); letter-spacing: .12em; color: var(--gold); min-height: 30px; white-space: pre; }
.fg-input { width: min(520px, 100%); font-size: 20px; text-align: center; padding: 14px; }
.fg-result { font: 700 20px var(--display); padding: 6px 16px; border-radius: 12px; animation: pop .3s ease-out; }
.fg-result.win { background: rgba(72,187,120,.15); color: #9ae6b4; }
.fg-result.reveal { background: rgba(255,77,109,.12); color: #ffb3c1; }
.fg-feed { display: flex; flex-direction: column; gap: 4px; align-items: center; min-height: 40px; }
.fg-f { font-size: 14px; font-weight: 800; }
.fg-f.wrong s { color: #ff8fa3; text-decoration-thickness: 2px; }
.fg-f.win { color: #9ae6b4; }
.fg-side { background: #12131f; border: 1px solid var(--line); border-radius: 18px; padding: 16px; overflow-y: auto; }
.fg-score { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fg-score img { width: 32px; height: 32px; border-radius: 9px; background: #22253c; }
.fg-pos { width: 24px; font-weight: 900; color: var(--muted); }
.fg-name { flex: 1; font-weight: 900; }
.fg-score b { font: 700 20px var(--display); }
.fg-end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.fg-end h3 { font: 700 34px var(--display); margin: 0 0 24px; }
.fg-podium { display: flex; align-items: flex-end; gap: 14px; }
.fg-pod { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fg-pod img { width: 72px; height: 72px; border-radius: 18px; background: #22253c; }
.fg-pname { font-weight: 900; }
.fg-pscore { color: var(--muted); font-weight: 800; font-size: 13px; }
.fg-block { width: 120px; display: grid; place-items: center; font-size: 34px; border-radius: 14px 14px 0 0; background: linear-gradient(180deg, #2f3360, #1b1d33); }
.fg-pod.p1 .fg-block { height: 130px; background: linear-gradient(180deg, #ffe08a, #b8860b); }
.fg-pod.p2 .fg-block { height: 95px; background: linear-gradient(180deg, #e2e8f0, #8a94a6); }
.fg-pod.p3 .fg-block { height: 70px; background: linear-gradient(180deg, #f6ad55, #9c4221); }
.chest-all { width: 100%; text-align: center; }

/* =====================================================================
   Whoami — menu do botão direito, minimizar HUD, maquete
   ===================================================================== */
.brand-mark { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; letter-spacing: -1px; }

.mini-btn { appearance: none; border: 1px solid var(--line2); background: rgba(255,255,255,.06); color: var(--muted); width: 22px; height: 20px; border-radius: 7px; font-weight: 900; font-size: 12px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.mini-btn:hover { background: rgba(255,255,255,.14); color: var(--text); }
.keys { position: relative; padding-right: 40px; max-width: 580px; }
.keys .mini-btn { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); }
.hud-pill { cursor: pointer; font-weight: 900; font-size: 13px; padding: 8px 14px; gap: 8px; color: var(--text); border: 1px solid var(--line2); }
.hud-pill:hover { border-color: var(--gold); }

.ctxmenu { position: fixed; z-index: 90; display: flex; flex-direction: column; gap: 5px; min-width: 210px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.45)); }
.ctxmenu.out { opacity: 0; transform: scale(.96); transition: opacity .12s, transform .12s; }
.ctx-title { display: flex; align-items: center; gap: 8px; align-self: flex-start; padding: 5px 12px 5px 6px; margin-bottom: 2px; border-radius: 99px; background: #0f1020; border: 2px solid var(--c, var(--gold)); color: var(--c, var(--gold)); font-family: var(--display); font-weight: 700; font-size: 13px; animation: ctxIn .18s cubic-bezier(.2,1.4,.4,1) both; }
.ctx-title img { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); }
.ctx-title:not(:has(img)) { padding-left: 12px; }
.ctx-item { appearance: none; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; padding: 7px 14px 7px 7px; border-radius: 14px; border: 2px solid #2a2350; color: #fff; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  background: linear-gradient(180deg, #8c7bff 0%, #6a55f0 55%, #5a46d6 100%); box-shadow: 0 3px 0 #2a2350, inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 1px 0 rgba(0,0,0,.3);
  animation: ctxIn .22s cubic-bezier(.2,1.4,.4,1) both; transition: transform .08s, filter .08s; }
.ctx-item:hover { filter: brightness(1.12); transform: translateX(3px); }
.ctx-item:active { transform: translate(3px, 2px); box-shadow: 0 1px 0 #2a2350, inset 0 1px 0 rgba(255,255,255,.35); }
.ctx-item:disabled { filter: grayscale(.8) brightness(.7); cursor: default; }
.ctx-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: rgba(15,10,40,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.15); flex: none; }
.ctx-label { flex: 1; white-space: nowrap; }
.ctx-hint { font-family: var(--font); font-size: 11px; font-weight: 900; background: rgba(15,10,40,.4); border-radius: 6px; padding: 2px 6px; color: rgba(255,255,255,.8); text-shadow: none; }
.ctx-gold { background: linear-gradient(180deg, #ffd166 0%, #f4a93b 60%, #e08e1b 100%); border-color: #5a3500; box-shadow: 0 3px 0 #5a3500, inset 0 1px 0 rgba(255,255,255,.5); color: #2b1600; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.ctx-gold .ctx-hint { color: #2b1600; background: rgba(90,53,0,.2); }
.ctx-teal { background: linear-gradient(180deg, #5fe3d6 0%, #2fb7aa 60%, #20968b 100%); border-color: #0b3f3a; box-shadow: 0 3px 0 #0b3f3a, inset 0 1px 0 rgba(255,255,255,.45); }
.ctx-pink { background: linear-gradient(180deg, #ff8fc0 0%, #ff5c9d 60%, #e03f80 100%); border-color: #5a0f31; box-shadow: 0 3px 0 #5a0f31, inset 0 1px 0 rgba(255,255,255,.45); }
@keyframes ctxIn { from { opacity: 0; transform: translateY(-6px) scale(.9); } to { opacity: 1; transform: none; } }

.evo-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.evo-tab { appearance: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(8,9,18,.45); color: var(--text); opacity: .7; transition: opacity .15s, border-color .15s, transform .15s; }
.evo-tab:hover { opacity: 1; transform: translateY(-1px); }
.evo-tab.done { opacity: .9; }
.evo-tab.on { opacity: 1; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,209,102,.3); background: rgba(255,209,102,.08); }
.evo-ico { font-size: 22px; }
.evo-name { font-weight: 900; font-size: 13px; }
.evo-xp { font-size: 11px; color: var(--muted); font-weight: 700; }
.evo-tab.cur .evo-xp { color: var(--gold); }
.evo-main { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.evo-view { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: #12131c; }
.evo-canvas { display: block; width: 100%; height: auto; }
.evo-canvas.locked { filter: saturate(.85); }
.evo-lock { position: absolute; top: 10px; left: 10px; background: rgba(10,10,20,.75); border: 1px solid var(--line2); border-radius: 99px; padding: 4px 10px; font-weight: 900; font-size: 12px; }
.evo-title { font-family: var(--display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.evo-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.evo-ok { font-weight: 900; color: var(--green); }
.evo-modal { width: min(1180px, 100%); }
@media (max-width: 900px) { .evo-main { grid-template-columns: 1fr; } }
