/* Arkon Labs 7.0 — visual "Arkon Noite".
   Carrega por ÚLTIMO em todas as páginas (depois do arena.css / arena-site.css) e muda só a aparência:
   cantos arredondados, cartões de vidro, botões em pílula, fundo com aurora vermelha que se mexe devagar,
   letras Inter e Space Grotesk, modo preto (OLED), cor de destaque, tamanho da letra, compacto e animações.
   As escolhas vêm do js/modo.js (atributos no <html>). Sem estilo inline (a CSP bloqueia): tudo aqui. */

/* ---------- Tokens ---------- */
:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --bg: #07070a;
  --bg-elev: #0d0d12;
  --surface: #121218;
  --surface-2: #1a1a22;
  --surface-3: #23232d;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .15);
  --glass: rgba(22, 22, 30, .62);
  --glass-2: rgba(30, 30, 40, .55);
  --top-bg: rgba(9, 9, 13, .72);
  --rail-bg: rgba(9, 9, 13, .78);
  --radius-lg: 26px;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --pill: 999px;
  --aurora-1: rgba(240, 82, 82, .55);
  --aurora-2: rgba(122, 24, 48, .55);
  --aurora-3: rgba(177, 140, 255, .18);
  --shadow: 0 22px 60px -34px rgba(0, 0, 0, .85);
  --shadow-lg: 0 40px 90px -36px rgba(0, 0, 0, .9);
  --glow: rgba(240, 82, 82, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-modo="claro"] {
  --bg: #f3eff1;
  --bg-elev: #faf8f9;
  --surface: #ffffff;
  --surface-2: #f4f1f3;
  --surface-3: #e9e4e8;
  --glass: rgba(255, 255, 255, .78);
  --glass-2: rgba(255, 255, 255, .9);
  --top-bg: rgba(248, 245, 247, .8);
  --rail-bg: rgba(248, 245, 247, .86);
  --aurora-1: rgba(240, 82, 82, .22);
  --aurora-2: rgba(255, 150, 120, .18);
  --aurora-3: rgba(177, 140, 255, .14);
  --shadow: 0 18px 44px -30px rgba(70, 20, 35, .28);
  --shadow-lg: 0 30px 70px -30px rgba(70, 20, 35, .32);
  --glow: rgba(212, 43, 51, .22);
}
html[data-preto="1"] {
  --bg: #000;
  --bg-elev: #050506;
  --surface: #0a0a0c;
  --surface-2: #111114;
  --surface-3: #18181c;
  --glass: rgba(12, 12, 15, .8);
  --glass-2: rgba(18, 18, 22, .8);
  --top-bg: rgba(0, 0, 0, .82);
  --rail-bg: rgba(0, 0, 0, .9);
  --aurora-1: rgba(240, 82, 82, .32);
  --aurora-2: rgba(90, 16, 34, .4);
}

/* Cor de destaque (a logo continua vermelha). */
html[data-cor="rosa"] { --accent: #ff4d8d; --accent-hi: #ff79a8; --accent-soft: rgba(255, 77, 141, .14); --accent-line: rgba(255, 77, 141, .42); --glow: rgba(255, 77, 141, .32); }
html[data-cor="roxo"] { --accent: #9b6bff; --accent-hi: #b894ff; --accent-soft: rgba(155, 107, 255, .15); --accent-line: rgba(155, 107, 255, .45); --glow: rgba(155, 107, 255, .32); }
html[data-cor="azul"] { --accent: #3d8bff; --accent-hi: #6aa8ff; --accent-soft: rgba(61, 139, 255, .14); --accent-line: rgba(61, 139, 255, .42); --glow: rgba(61, 139, 255, .3); }
html[data-cor="verde"] { --accent: #19b97a; --accent-hi: #3ddc97; --accent-soft: rgba(25, 185, 122, .14); --accent-line: rgba(25, 185, 122, .42); --glow: rgba(25, 185, 122, .3); }
html[data-cor="laranja"] { --accent: #f2830f; --accent-hi: #ffa040; --accent-soft: rgba(242, 131, 15, .14); --accent-line: rgba(242, 131, 15, .42); --glow: rgba(242, 131, 15, .3); }

/* ---------- Base ---------- */
html, body { font-family: var(--font); }
body { background-color: var(--bg); background-image: none; color: var(--text); }
body::after { opacity: .025; }
h1, h2, h3, h4, .display { font-family: var(--display); letter-spacing: -.02em; }
h1 { font-style: normal; font-weight: 700; letter-spacing: -.03em; }
.eyebrow { font-family: var(--font); font-weight: 600; color: var(--accent-hi); }
.eyebrow::before { width: 7px; height: 7px; border-radius: 50%; transform: none; vertical-align: 1px; box-shadow: 0 0 10px var(--accent); }
::selection { background: var(--accent-soft); }
html[data-letra="p"] body { zoom: .92; }
html[data-letra="g"] body { zoom: 1.08; }
html[data-letra="gg"] body { zoom: 1.16; }

/* ---------- Fundo: aurora que se mexe devagar ---------- */
.app-bg { background: none !important; overflow: hidden; }
.app-bg::before, .app-bg::after,
body.noite-site::before {
  content: ''; position: fixed; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(110px);
}
.app-bg::before, body.noite-site::before { width: 900px; height: 900px; top: -480px; right: -260px; background: radial-gradient(circle, var(--aurora-1), transparent 62%); animation: noite-aurora 26s var(--ease) infinite alternate; }
.app-bg::after { width: 1000px; height: 1000px; bottom: -620px; left: -320px; background: radial-gradient(circle, var(--aurora-2), transparent 62%), radial-gradient(circle at 70% 30%, var(--aurora-3), transparent 50%); animation: noite-aurora 34s var(--ease) infinite alternate-reverse; }
html[data-fundo="off"] .app-bg::before, html[data-fundo="off"] .app-bg::after, html[data-fundo="off"] body.noite-site::before { display: none; }
@keyframes noite-aurora { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-120px, 80px, 0) scale(1.15); } }

/* ---------- Cartões de vidro ---------- */
.card { border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.card::after { display: none; }
.card .card { background: var(--glass-2); border-radius: var(--radius-sm); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-modo="claro"] .card { background: var(--glass); }
.plan.featured, .card.featured { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line), 0 20px 60px -30px var(--glow); }
.stat, .notice, .empty-state, .table-wrap, .tabs, .segmented, .palette, .toast, .progress, .hs-bar, .progress span, .hs-bar span { border-radius: var(--radius-sm); }
.stat { background: var(--glass); }
.notice { border-left-width: 1px; }
a.card, button.card, .guide-card, .tile, .radio-card > span { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
a.card:hover, button.card:hover, .guide-card:hover, .tile:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: 0 24px 60px -34px var(--glow); }

/* ---------- Botões em pílula ---------- */
.btn, .btn.sm, .btn.lg { clip-path: none !important; border-radius: var(--pill); font-family: var(--font); font-weight: 600; letter-spacing: 0; transition: transform .2s var(--ease), filter .2s, box-shadow .2s, background .2s; }
.btn { background: var(--surface-2); border-color: var(--line-2); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-hi)); border-color: transparent; box-shadow: 0 10px 30px -10px var(--glow); }
.btn.primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft), inset 0 0 0 2px var(--accent); }
.icon-button, .modo-btn { border-radius: 50%; clip-path: none !important; }

/* ---------- Abas, etiquetas, campos e ícones ---------- */
.tab, .seg, .area-tab, .area-link { border-radius: var(--pill); font-family: var(--font); }
.tabs, .segmented { padding: 4px; }
.seg.active, .tab.active { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px var(--glow); }
.pill, .chip, .tag, .badge { border-radius: var(--pill); }
input, textarea, select { border-radius: var(--radius-xs); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent-line); }
.tile-icon, .stat-icon, .you-icon, .next-icon, .app-banner-icon, .rail-ga, .group-avatar, .wizard-dot, .rent-step-dot, .rpg-lv, .rpg-start-num, .cfg-preset, .rpg-section { clip-path: none !important; }
.tile-icon, .stat-icon, .you-icon, .next-icon, .app-banner-icon { border-radius: 14px; }
.rail-ga, .group-avatar { border-radius: 16px; }
.wizard-dot, .rent-step-dot, .rpg-start-num { border-radius: 50%; }
.rpg-section, .cfg-preset { border-radius: var(--radius-sm); }
.rpg-lv { border-radius: 18px; }

/* ---------- Topo, coluna e barra do celular ---------- */
.topbar { background: var(--top-bg); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); }
.areas, .ask-bar { clip-path: none !important; border-radius: var(--pill); background: var(--glass); border: 1px solid var(--line); }
.area-link.active { background: var(--accent-soft); color: var(--accent-hi); }
.ask-bar:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent-line); }
.sidebar { background: var(--rail-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.nav-item { border-radius: 14px; }
.nav-item.active { background: var(--accent-soft); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.bottom-nav { background: var(--top-bg); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
@media (max-width: 860px) {
  .bottom-nav { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
  .bottom-nav .active, .bottom-nav a.active { color: var(--accent-hi); }
}

/* ---------- Janelas e avisos ---------- */
dialog#modal { border-radius: var(--radius-lg); background: var(--surface); }
@media (min-width: 768px) { dialog#modal.drawer { border-radius: var(--radius-lg) 0 0 var(--radius-lg); } }
.palette { background: var(--surface); }
.toast { border-radius: var(--pill); box-shadow: var(--shadow-lg); }

/* ---------- Site público (boas-vindas, termos, RPG público, admin) ---------- */
.modo-btn { border-radius: 50%; }
.step::before, .plan .tag, .plan-icon, .lp-hero, .lp-num, .lp-hex, .lp-chat, .lp-chat-av { clip-path: none !important; }
.lp-hero { border-radius: 32px; }
.plan .tag { border-radius: var(--pill); }
.plan-icon, .lp-hex { border-radius: 16px; }
.lp-num, .lp-chat-av { border-radius: 50%; }
.lp-chat { border-radius: 26px; }
.plan { border-radius: var(--radius); }

/* ---------- Compacto ---------- */
html[data-compacto="on"] .card { padding: 14px 16px; }
html[data-compacto="on"] .grid, html[data-compacto="on"] .stack { gap: 10px; }
html[data-compacto="on"] .btn { min-height: 38px; }

/* ---------- Aba Aparência (Minha conta) ---------- */
.ap-temas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-tema { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: 14px; }
.ap-tema input { position: absolute; opacity: 0; pointer-events: none; }
.ap-tema:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ap-tema:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-pv { height: 82px; border-radius: 12px; display: grid; grid-template-columns: 20px 1fr; gap: 6px; padding: 8px; }
.ap-pv i, .ap-pv b { display: block; border-radius: 5px; }
.ap-pv span { display: flex; flex-direction: column; gap: 5px; }
.ap-pv b { height: 12px; }
.ap-pv b:first-child { width: 55%; background: #f05252 !important; }
.ap-pv.escuro { background: #0b0b10; } .ap-pv.escuro i, .ap-pv.escuro b { background: #1e1e28; }
.ap-pv.claro { background: #f1edef; } .ap-pv.claro i, .ap-pv.claro b { background: #fff; }
.ap-pv.preto { background: #000; } .ap-pv.preto i, .ap-pv.preto b { background: #141416; }
.ap-pv.auto { background: linear-gradient(90deg, #0b0b10 50%, #f1edef 50%); } .ap-pv.auto i, .ap-pv.auto b { background: #777; }
.ap-linha { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ap-linha:last-child { border-bottom: 0; }
.ap-linha > div:first-child { flex: 1; min-width: 200px; }
.ap-linha strong { display: block; font-size: 15px; }
.ap-cores { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-cor { position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 3px solid transparent; }
.ap-cor input { position: absolute; opacity: 0; pointer-events: none; }
.ap-cor:has(input:checked) { border-color: var(--text); }
.ap-cor:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-cor.vermelho { background: #f05252; } .ap-cor.rosa { background: #ff4d8d; } .ap-cor.roxo { background: #9b6bff; }
.ap-cor.azul { background: #3d8bff; } .ap-cor.verde { background: #19b97a; } .ap-cor.laranja { background: #f2830f; }
.ap-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.ap-seg label { position: relative; padding: 7px 14px; border-radius: var(--pill); font-size: 14px; color: var(--muted); cursor: pointer; }
.ap-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ap-seg label:has(input:checked) { background: var(--accent); color: #fff; }
.ap-seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-prev { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .ap-temas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Animações ---------- */
@keyframes noite-entra { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes noite-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.02); } 100% { transform: scale(1); } }
html[data-anim="todas"] #page.noite-entra > *,
html[data-anim="poucas"] #page.noite-entra > * { animation: noite-entra .5s var(--ease) both; }
html[data-anim="todas"] #page.noite-entra > *:nth-child(2) { animation-delay: .05s; }
html[data-anim="todas"] #page.noite-entra > *:nth-child(3) { animation-delay: .1s; }
html[data-anim="todas"] #page.noite-entra > *:nth-child(4) { animation-delay: .15s; }
html[data-anim="todas"] #page.noite-entra > *:nth-child(n+5) { animation-delay: .2s; }
html[data-anim="todas"] .noite-cascata > * { animation: noite-entra .45s var(--ease) both; }
html[data-anim="todas"] .noite-cascata > *:nth-child(2) { animation-delay: .04s; }
html[data-anim="todas"] .noite-cascata > *:nth-child(3) { animation-delay: .08s; }
html[data-anim="todas"] .noite-cascata > *:nth-child(4) { animation-delay: .12s; }
html[data-anim="todas"] .noite-cascata > *:nth-child(n+5) { animation-delay: .16s; }
html[data-anim="todas"] .toast { animation: noite-pop .35s var(--ease); }
html[data-anim="poucas"] .app-bg::before, html[data-anim="poucas"] .app-bg::after, html[data-anim="poucas"] body.noite-site::before { animation: none; }
html[data-anim="off"] *, html[data-anim="off"] *::before, html[data-anim="off"] *::after { animation: none !important; transition: none !important; }
.noite-confete { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.ap-linha small { display: block; margin-top: 2px; }

/* ---------- Ajustes das páginas públicas (sem itálico, botões em pílula) ---------- */
html .btn, html .btn.large, html .btn.sm, html .btn.lg { border-radius: var(--pill) !important; clip-path: none !important; }
.section-head h2, .plan h3, .cta h2, .lp-hero h1, .lp-hero h1 em, .lp-title, .lp-role h3, .lp-easy b, .lp-rpg h3 { font-style: normal !important; letter-spacing: -.03em; }
.lp-hero h1 em { color: var(--accent-hi); background: linear-gradient(90deg, var(--accent), var(--accent-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero { background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow-lg); }
.lp-hero::before, .lp-hero::after { display: none; }
.site-header, .lp-header, header.top { -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }

/* ===== 7.1 (Etapa 2): perfil turbinado, conquistas, novidades e status ===== */
/* Cor do perfil (escolhida pelo dono do perfil) */
.profile-card { --pc: #f05252; --pc2: #ff7a6e; }
.profile-card.perfil-cor-rosa { --pc: #ff4d8d; --pc2: #ff9cc0; }
.profile-card.perfil-cor-roxo { --pc: #9b6bff; --pc2: #c9a8ff; }
.profile-card.perfil-cor-azul { --pc: #3d8bff; --pc2: #8cc2ff; }
.profile-card.perfil-cor-verde { --pc: #19b97a; --pc2: #7be8b9; }
.profile-card.perfil-cor-laranja { --pc: #f2830f; --pc2: #ffc06e; }
.profile-card[class*="perfil-cor-"] { border-color: color-mix(in srgb, var(--pc) 35%, var(--line)); }
.profile-card[class*="perfil-cor-"] .profile-cover:not(.tem-capa) { background: linear-gradient(120deg, color-mix(in srgb, var(--pc) 70%, transparent), rgba(20, 20, 30, .4)), url('/assets/banner.webp') center 35% / cover; }
.profile-card[class*="perfil-cor-"] .pill.accent { color: var(--pc2); background: color-mix(in srgb, var(--pc) 16%, transparent); border-color: color-mix(in srgb, var(--pc) 40%, transparent); }
.profile-cover { position: relative; overflow: hidden; height: 170px; }
.profile-cover.tem-capa { background: #111; }
.profile-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nf-status-frase { margin: 4px 0 6px; font-weight: 600; color: var(--pc2, var(--accent-hi)); }
.nf-interesses { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.nf-perfil-emblemas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.nf-mini-emblema { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--pc, var(--accent)) 16%, transparent); color: var(--pc2, var(--accent-hi)); border: 1px solid color-mix(in srgb, var(--pc, var(--accent)) 35%, transparent); }
.nf-mini-emblema .ico { width: 17px; height: 17px; }

/* Molduras do avatar */
.nf-frame { position: relative; display: inline-grid; place-items: center; padding: 4px; border-radius: 30px; flex: none; background: var(--line); }
.nf-frame > .avatar { box-shadow: 0 0 0 3px var(--surface, #0d0d12) !important; }
.nf-frame-vermelha { background: #f05252; }
.nf-frame-neon { background: linear-gradient(135deg, #3df5ff, #b18cff); box-shadow: 0 0 18px rgba(61, 245, 255, .45); }
.nf-frame-ouro { background: linear-gradient(135deg, #fff3b0, #e6a923 45%, #a86d06 70%, #ffe27a); box-shadow: 0 0 16px rgba(255, 196, 64, .45); }
.nf-frame-fogo { background: linear-gradient(0deg, #ff3b1f, #ff8a00, #ffd34d); box-shadow: 0 0 20px rgba(255, 98, 0, .55); }
.nf-frame-arcoiris { background: conic-gradient(#ff4d4d, #ffb547, #f8ff5c, #3ddc97, #5aa9ff, #b18cff, #ff4d8d, #ff4d4d); animation: nf-gira 6s linear infinite; }
.nf-frame-arcoiris > .avatar { animation: nf-gira 6s linear infinite reverse; }
@keyframes nf-gira { to { transform: rotate(360deg); } }
.profile-main .nf-frame { margin-bottom: 0; }

/* Cartão Personalizar */
.nf-capa-edit { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.nf-capa-edit img, .nf-capa-vazia { width: 240px; max-width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.nf-capa-vazia { display: grid; place-items: center; color: var(--muted); background: var(--glass-2); font-size: 13px; }
.nf-frames { display: flex; gap: 10px; flex-wrap: wrap; }
.nf-frame-opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 10px 8px; width: 92px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-2); cursor: pointer; text-align: center; }
.nf-frame-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nf-frame-opt small { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.nf-frame-opt .ico { width: 11px; height: 11px; vertical-align: -1px; }
.nf-frame-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.nf-frame-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.nf-frame-opt.locked { opacity: .5; cursor: not-allowed; }
.nf-frame-pv .avatar { width: 44px; height: 44px; font-size: 15px; border-radius: 14px; }
.nf-frame-pv .nf-frame { padding: 3px; border-radius: 17px; }

/* Conquistas */
.nf-nivel { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 22px; margin-bottom: 16px; }
.nf-hex { width: 104px; height: 116px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--accent-hi), var(--accent) 55%, #5a1a2a); box-shadow: 0 0 30px var(--glow); }
.nf-hex span { font: 700 40px/1 'Space Grotesk', Inter, sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.nf-nivel-info h2 { margin: 2px 0 4px; }
.nf-barra { height: 12px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line); overflow: hidden; margin: 10px 0 8px; }
.nf-barra i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); box-shadow: 0 0 14px var(--glow); transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.nf-nivel-stats { display: grid; gap: 8px; min-width: 150px; }
.nf-nivel-stats .stat { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.nf-nivel-stats .stat strong { font-size: 22px; }
.nf-nivel-stats .stat small { color: var(--muted); }
.nf-estrada { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.nf-parada { flex: 0 0 170px; scroll-snap-align: start; display: grid; gap: 6px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line); background: var(--glass-2); font-size: 13.5px; position: relative; }
.nf-parada .ico { position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; color: var(--muted); }
.nf-parada.ok { border-style: solid; border-color: var(--accent-line); background: var(--accent-soft); }
.nf-parada.ok .ico { color: var(--green, #3ddc97); }
.nf-parada-n { font: 700 13px/1 Inter, sans-serif; text-transform: uppercase; color: var(--muted); }
.nf-parada-n::before { content: 'Nível '; }
.nf-emblemas { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.nf-emblema { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); }
.nf-emblema small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.nf-emblema-ic { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-2); color: var(--muted); border: 1px solid var(--line); }
.nf-emblema-ic .ico { width: 24px; height: 24px; }
.nf-emblema.ok .nf-emblema-ic { background: radial-gradient(circle at 30% 30%, var(--accent-hi), var(--accent)); color: #fff; border-color: transparent; box-shadow: 0 0 20px var(--glow); }
.nf-emblema:not(.ok) { opacity: .72; }
.nf-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.nf-pos { width: 22px; text-align: center; color: var(--muted); }

/* Status do bot */
.nf-status-card { margin-bottom: 16px; }
.nf-status { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; margin-bottom: 14px; }
.nf-status .dot { width: 12px; height: 12px; flex: none; }
.nf-status strong { display: block; font-size: 17px; }
.nf-status small { color: var(--muted); }
.nf-status.ok { background: rgba(25, 185, 122, .1); border: 1px solid rgba(25, 185, 122, .3); }
.nf-status.off { background: rgba(240, 82, 82, .1); border: 1px solid rgba(240, 82, 82, .35); }
.nf-uptime-top { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; }
.nf-dias { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 34px; }
.nf-dias i { border-radius: 4px; background: var(--glass-2); border: 1px solid var(--line); }
.nf-dias i.ok { background: #19b97a; border-color: transparent; }
.nf-dias i.meio { background: #f2b33d; border-color: transparent; }
.nf-dias i.ruim { background: #f05252; border-color: transparent; }
.nf-quedas-box { margin-top: 12px; }
.nf-quedas-box summary { cursor: pointer; color: var(--muted); font-size: 14px; }

/* Novidades */
.nf-escrever { margin-bottom: 14px; padding: 16px 18px; }
.nf-escrever summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.nf-escrever form { margin-top: 14px; }
.nf-timeline { display: grid; gap: 14px; position: relative; margin-top: 14px; }
.nf-news { padding: 18px 20px; }
.nf-news.fixada { border-color: var(--accent-line); }
.nf-news-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nf-news-head small { margin-left: auto; }
.nf-news h3 { margin: 10px 0 6px; }
.nf-news-body { white-space: pre-line; color: var(--text-2, var(--text)); margin: 0 0 10px; }
.pill.nf-kind-novo { color: #8de6c3; background: rgba(25, 185, 122, .14); }
.pill.nf-kind-melhoria { color: #9cc4ff; background: rgba(61, 139, 255, .14); }
.pill.nf-kind-correcao { color: #ffd38a; background: rgba(242, 179, 61, .14); }
.pill.nf-kind-aviso { color: #ffaba6; background: rgba(240, 82, 82, .14); }
html[data-modo="claro"] .pill.nf-kind-novo { color: #0d7a50; } html[data-modo="claro"] .pill.nf-kind-melhoria { color: #1f5fc4; }
html[data-modo="claro"] .pill.nf-kind-correcao { color: #8a5a00; } html[data-modo="claro"] .pill.nf-kind-aviso { color: #b42323; }
.nf-reacoes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.nf-reacao { display: inline-flex; gap: 6px; align-items: center; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass-2); color: var(--text); cursor: pointer; font: inherit; font-size: 14px; transition: transform .15s, border-color .15s; }
.nf-reacao:hover { transform: translateY(-1px); }
.nf-reacao.on { border-color: var(--accent); background: var(--accent-soft); }
.nf-reacao b { font-weight: 600; font-size: 13px; }

@media (max-width: 760px) {
  .nf-nivel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .nf-nivel-stats { grid-template-columns: repeat(3, 1fr); width: 100%; min-width: 0; }
  .nf-nivel-stats .stat { flex-direction: column; align-items: center; gap: 2px; padding: 8px; }
  .nf-hex { width: 88px; height: 98px; } .nf-hex span { font-size: 34px; }
  .nf-emblemas { grid-template-columns: repeat(2, 1fr); }
  .nf-dias { gap: 2px; height: 28px; }
  .nf-news-head small { margin-left: 0; width: 100%; }
  .profile-cover { height: 120px; }
}
.card-head h3:has(> .ico) { display: flex; align-items: center; gap: 8px; }
.card-head h3 > .ico { width: 19px; height: 19px; color: var(--accent-hi); }
/* Perfil: a foto fica em cima da capa e as informações embaixo dela */
.profile-card .profile-main { align-items: flex-start; }
.profile-card .profile-info { padding-top: 52px; flex: 1 1 260px; min-width: 0; }
.profile-card .profile-action { align-self: flex-end; }
@media (max-width: 760px) { .profile-card .profile-info { padding-top: 0; flex-basis: 100%; } .profile-card .profile-action { align-self: auto; } }

/* ===== 7.2 (Etapa 3): Rádio Arkon e pedidos de música ===== */
.radio-bar { position: fixed; z-index: 90; right: 16px; bottom: 16px; width: min(400px, calc(100vw - 32px)); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 20px; background: var(--top-bg, var(--glass)); border: 1px solid var(--line); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.radio-bar[hidden] { display: none; }
.rb-capa { width: 42px; height: 42px; flex: none; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(140deg, var(--accent), var(--accent-hi)); }
.rb-info { flex: 1; min-width: 0; display: grid; color: var(--text); text-decoration: none; }
.rb-info strong, .rb-info small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-info strong { font-size: 14px; }
.rb-info small { color: var(--muted); font-size: 12px; }
.rb-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass-2); color: var(--text); cursor: pointer; }
.rb-btn .ico { width: 17px; height: 17px; }
.rb-btn.on { color: #ff4d6d; border-color: rgba(255, 77, 109, .5); }
.rb-btn.on .ico { fill: currentColor; }
.rb-play { background: var(--accent); border-color: transparent; color: #fff; }
.rb-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.rb-eq i { width: 4px; height: 6px; border-radius: 2px; background: #fff; }
.rb-eq.on i { animation: rb-eq 0.9s ease-in-out infinite; }
.rb-eq.on i:nth-child(2) { animation-delay: .2s; } .rb-eq.on i:nth-child(3) { animation-delay: .45s; }
.musica-tocando .rb-eq i { background: var(--accent-hi); }
@keyframes rb-eq { 0%, 100% { height: 5px; } 50% { height: 18px; } }
body.com-radio #page { padding-bottom: 90px; }
@media (max-width: 760px) {
  .radio-bar { left: 12px; right: 12px; width: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  body.com-radio #page { padding-bottom: 170px; }
}

.radio-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 24px; margin: 16px 0; overflow: hidden; }
.radio-disco { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #1a1a22 0 18%, transparent 19%), repeating-radial-gradient(circle, #0c0c11 0 3px, #17171f 3px 6px); border: 6px solid var(--accent); box-shadow: 0 0 40px var(--glow); }
.radio-disco span { font-size: 42px; }
.radio-disco.gira { animation: nf-gira 8s linear infinite; }
.radio-agora h2 { margin: 6px 0 2px; font-size: clamp(22px, 3vw, 30px); }
.radio-agora .eyebrow { display: flex; align-items: center; gap: 6px; }
.radio-tempo { display: flex; align-items: center; gap: 10px; margin: 14px 0; }
.radio-tempo .nf-barra { flex: 1; margin: 0; height: 8px; }
.radio-tempo small { color: var(--muted); font-variant-numeric: tabular-nums; }
.radio-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.radio-vol { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.radio-vol input { width: 110px; accent-color: var(--accent); }
.radio-seguir { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.radio-estacoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.radio-estacao { display: grid; justify-items: start; gap: 4px; padding: 16px; text-align: left; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); color: var(--text); cursor: pointer; font: inherit; transition: transform .15s, border-color .15s; }
.radio-estacao:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.radio-estacao.on { border-color: var(--accent); background: var(--accent-soft); }
.radio-estacao.vazia { opacity: .55; cursor: not-allowed; }
.radio-estacao small { color: var(--muted); font-size: 12.5px; }
.radio-emoji { font-size: 30px; line-height: 1; margin-bottom: 4px; }
.radio-gerenciar { padding: 16px 18px; margin-top: 16px; }
.radio-gerenciar > summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.radio-gerenciar .notice { margin-top: 14px; }
.radio-nova { margin: 14px 0; }
.radio-adm-estacao { margin-top: 12px; }
.radio-adm-estacao form { margin-top: 12px; }

.musica-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 14px; }
.musica-grid > div:empty { display: none; }
.musica-grid section.card { margin-bottom: 16px; }
.musica-busca { display: flex; gap: 8px; margin-top: 10px; }
.musica-busca input { flex: 1; min-width: 0; }
.musica-resultados { display: grid; gap: 8px; margin-top: 14px; }
.musica-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-2); }
.musica-item img, .musica-sem-capa { width: 72px; height: 48px; flex: none; object-fit: cover; border-radius: 10px; background: var(--glass); display: grid; place-items: center; color: var(--muted); }
.musica-txt { flex: 1; min-width: 0; display: grid; }
.musica-txt strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.musica-tocando { display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.musica-tocando > span:last-child { display: grid; }
.musica-regras { padding: 16px 18px; }
.musica-regras > summary { cursor: pointer; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.musica-regras form { margin-top: 12px; }
@media (max-width: 760px) {
  .radio-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .radio-disco { width: 120px; height: 120px; }
  .radio-ctrl, .radio-seguir { justify-content: center; }
  .radio-tempo { width: 100%; }
  .musica-item { flex-wrap: wrap; }
  .musica-txt { flex-basis: calc(100% - 90px); }
  .musica-item .btn, .musica-item .pill { margin-left: auto; }
}

/* ---------- 7.3 (Etapa 4): simulador, eventos e página do grupo ---------- */
.sim-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 14px; }
.sim-phone { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.sim-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--glass-2); }
.sim-top > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.sim-top small { color: var(--muted); font-size: 12px; }
.sim-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.sim-as { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.sim-as select { padding: 6px 8px; border-radius: 10px; font-size: 13px; }
.sim-chat { display: flex; flex-direction: column; gap: 8px; padding: 14px; min-height: 320px; max-height: 460px; overflow-y: auto; background: radial-gradient(circle at 20% 0, var(--accent-soft), transparent 60%), var(--surface-2); }
.sim-msg { max-width: 86%; padding: 8px 11px 6px; border-radius: 14px; font-size: 14px; line-height: 1.45; position: relative; }
.sim-msg p { margin: 0; overflow-wrap: anywhere; }
.sim-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 4px; }
.sim-msg.eu { align-self: flex-end; background: var(--accent); color: #fff; border-top-right-radius: 4px; }
.sim-nome { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent); margin-bottom: 2px; }
.sim-hora { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.sim-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.sim-form input { flex: 1; min-width: 0; }
.sim-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
.sim-chips .pill, .sim-cats .pill { cursor: pointer; border: 1px solid var(--line); }
.sim-side { display: flex; flex-direction: column; gap: 12px; }
.sim-busca { width: 100%; }
.sim-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-lista { display: grid; gap: 6px; max-height: 520px; overflow-y: auto; padding-right: 2px; }
.sim-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass-2); }
.sim-item-main { flex: 1; min-width: 0; display: grid; text-align: left; gap: 2px; padding: 9px 12px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.sim-item-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-item-main:hover strong { color: var(--accent); }
.sim-item .icon-button { flex: none; margin-right: 4px; }
.icon-button.on { color: #f6b93b; }

.ev-tipos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.ev-tipo { display: grid; justify-items: start; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.ev-tipo .ico { color: var(--accent); }
.ev-tipo small { color: var(--muted); font-size: 12.5px; }
.ev-tipo:hover { transform: translateY(-1px); border-color: var(--line-2); }
.ev-tipo.on { border-color: var(--accent-line); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ev-grid > div > .card, .ev-grid > div > .notice { margin-bottom: 16px; }
.sim-chat.ev-prev-chat { min-height: 0; max-height: none; border-radius: 14px; }
.ev-prev-chat .sim-msg { max-width: 100%; }
.ev-q { display: grid; gap: 8px; padding: 12px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--glass-2); }
.ev-q-head { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.ev-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-opt { display: flex; align-items: center; gap: 6px; }
.ev-opt input[type="radio"] { flex: none; accent-color: var(--accent); width: 18px; height: 18px; }
.ev-opt b { flex: none; width: 14px; color: var(--muted); }
.ev-opt input:not([type="radio"]) { flex: 1; min-width: 0; }

.gp-hero { position: relative; padding: 26px; overflow: hidden; background: radial-gradient(circle at 0 0, var(--accent-soft), transparent 55%), var(--glass); }
.gp-selo { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(25, 185, 122, .15); color: #3ddc97; border: 1px solid rgba(25, 185, 122, .4); margin-bottom: 14px; }
.gp-topo { display: flex; gap: 20px; align-items: center; }
.gp-topo h1 { margin: 0 0 4px; font-family: var(--display); font-size: clamp(24px, 4vw, 34px); line-height: 1.1; overflow-wrap: anywhere; }
.gp-topo p { margin: 0; }
.gp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.gp-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.gp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 20px; }
.gp-stats .stat { display: grid; grid-template-columns: 1fr; grid-template-areas: none; gap: 2px; padding: 12px 14px; }
.gp-stats .stat strong { grid-area: auto; font-size: 22px; }
.gp-stats .stat small { color: var(--muted); font-size: 12.5px; }
.gp-sorteio { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 16px 18px; border-color: var(--accent-line); background: var(--accent-soft); }
.gp-sorteio > .ico { width: 28px; height: 28px; color: var(--accent); flex: none; }
.gp-sorteio > div { display: grid; gap: 2px; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.gp-podio { display: flex; justify-content: center; align-items: flex-end; gap: 12px; padding-top: 6px; }
.gp-pos { display: grid; justify-items: center; gap: 4px; text-align: center; flex: 1; min-width: 0; }
.gp-pos strong { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-degrau { display: grid; place-items: center; width: 100%; margin-top: 4px; border-radius: 12px 12px 0 0; font-family: var(--display); font-weight: 700; background: var(--surface-3); color: var(--muted); }
.gp-pos.p1 .gp-degrau { height: 64px; background: linear-gradient(180deg, rgba(246, 185, 59, .35), rgba(246, 185, 59, .08)); color: #f6b93b; }
.gp-pos.p2 .gp-degrau { height: 46px; }
.gp-pos.p3 .gp-degrau { height: 32px; }
.gp-grid > .card { margin: 0; }
.gp-regras { white-space: pre-line; margin: 0; line-height: 1.6; }
.gp-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.gp-cta > div { display: grid; gap: 2px; }
html[data-modo="claro"] .gp-selo { color: #0d7a50; }

@media (max-width: 900px) {
  .sim-grid, .ev-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ev-tipos { grid-template-columns: 1fr; }
  .ev-tipo { grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
  .ev-tipo small { grid-column: 2; }
  .ev-opts { grid-template-columns: 1fr; }
  .sim-top { flex-wrap: wrap; }
  .sim-as { width: 100%; }
  .sim-as select { flex: 1; }
  .sim-chat { min-height: 260px; max-height: 380px; }
  .gp-hero { padding: 18px; }
  .gp-topo { flex-direction: column; text-align: center; }
  .gp-tags, .gp-acoes { justify-content: center; }
}

/* ---------- 7.5 (Etapa 6): RPG novo ---------- */
:root { --gold: #f6b93b; --gold-soft: rgba(246, 185, 59, .14); --gold-line: rgba(246, 185, 59, .45); }
.btn.gold { background: linear-gradient(180deg, #ffd166, #f6b93b); color: #2a1a00; border-color: transparent; font-weight: 700; }
.btn.gold:hover { filter: brightness(1.06); }
.pill.gold { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); display: inline-flex; align-items: center; gap: 6px; }
html[data-modo="claro"] .pill.gold { color: #8a5a00; }

.rpg-hud { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; }
.rh-me { display: flex; align-items: center; gap: 14px; flex: 1 1 360px; min-width: 0; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); }
.rh-hex { position: relative; flex: none; width: 74px; height: 80px; display: grid; place-items: center; font-size: 34px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, var(--accent), #5a1020); }
.rh-hex b { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px; font-size: 11px; background: var(--gold); color: #2a1a00; white-space: nowrap; }
.rh-info { flex: 1; min-width: 0; display: grid; gap: 5px; }
.rh-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rh-name strong { font-family: var(--display); font-size: 19px; }
.rh-class { padding: 2px 10px; border-radius: 999px; font-size: 12.5px; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.rh-bar { position: relative; height: 16px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.rh-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; }
.rh-bar.hp i { background: linear-gradient(90deg, #b91c3a, #f05252); }
.rh-bar.en i { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.rh-bar.xp i { background: linear-gradient(90deg, #c88a12, #f6b93b); }
.rh-bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 700; line-height: 16px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.rh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-chip { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 700; }
.rh-chip .ico { color: var(--gold); }
.rh-chip.gem .ico { color: #b18cff; }

.rm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.rm-mapa { padding: 10px; overflow: hidden; }
.rm-svg { display: block; width: 100%; height: auto; border-radius: 16px; }
.rm-bg { fill: #0a0a12; }
.rm-gridline { fill: none; stroke: rgba(255, 255, 255, .04); stroke-width: 1; }
html[data-modo="claro"] .rm-bg { fill: #1b1622; }
.rm-reg { cursor: pointer; outline: none; }
.rm-reg polygon { stroke-width: 2; fill-opacity: .2; transition: fill-opacity .2s; }
.rm-reg:hover polygon, .rm-reg:focus-visible polygon { fill-opacity: .34; }
.rm-reg.sel polygon { fill-opacity: .4; stroke-width: 4; }
.rm-reg text { font: 700 17px var(--display); letter-spacing: .14em; pointer-events: none; }
.rm-reg .rm-lock { font: 600 13px var(--font); letter-spacing: 0; fill: #9a9aa8; }
.rm-reg .rm-pin { font-size: 22px; letter-spacing: 0; }
.rm-reg.locked polygon { fill-opacity: .07; stroke-dasharray: 6 6; }
.rm-reg.locked text:not(.rm-lock) { opacity: .45; }
.rm-you circle { fill: #2563eb; stroke: #fff; stroke-width: 3; }
.rm-you text { font-size: 16px; letter-spacing: 0; }
.r-vila polygon { fill: #f6b93b; stroke: #f6b93b; } .r-vila text { fill: #f6b93b; }
.r-floresta polygon { fill: #22c55e; stroke: #22c55e; } .r-floresta text { fill: #4ade80; }
.r-costa polygon { fill: #38bdf8; stroke: #38bdf8; } .r-costa text { fill: #7dd3fc; }
.r-montanhas polygon { fill: #a78bfa; stroke: #a78bfa; } .r-montanhas text { fill: #c4b5fd; }
.r-deserto polygon { fill: #fb923c; stroke: #fb923c; } .r-deserto text { fill: #fdba74; }
.r-pantano polygon { fill: #14b8a6; stroke: #14b8a6; } .r-pantano text { fill: #5eead4; }
.r-vulcao polygon { fill: #ef4444; stroke: #ef4444; } .r-vulcao text { fill: #f87171; }
.r-geladas polygon { fill: #e0f2fe; stroke: #bae6fd; } .r-geladas text { fill: #e0f2fe; }
.rm-dica { margin: 8px 6px 2px; }
.rm-col { display: grid; gap: 16px; }
.rm-col > .card { margin: 0; }
.rm-mons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rm-mons span { padding: 4px 9px; border-radius: 999px; background: var(--surface-3); font-size: 12.5px; }
.rm-dg { margin-top: 6px; font-size: 14px; }
.rm-mis { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.rm-mis:last-child { border-bottom: 0; }
.rm-mis > div { display: grid; }
.rm-mis.done strong { color: var(--gold); }
.rm-track { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.rm-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.rm-acoes { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.rm-acao { position: relative; display: grid; justify-items: center; gap: 4px; width: 104px; padding: 16px 8px 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: inherit; font: inherit; font-size: 13.5px; cursor: pointer; transition: transform .15s, border-color .15s; }
.rm-acao small { position: absolute; top: 6px; left: 9px; font-size: 10.5px; color: var(--muted); }
.rm-acao .ico { width: 24px; height: 24px; }
.rm-acao:hover { transform: translateY(-2px); border-color: var(--line-2); }
.rm-acao.main { border-color: var(--accent-line); background: radial-gradient(circle at 50% 0, var(--accent-soft), transparent 70%), var(--glass); box-shadow: 0 0 24px -6px var(--glow); }

.rf-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; margin: 16px 0; }
.rf-grid > .card { margin: 0; }
.rf-attrs h3, .rf-mochila h3 { font-size: 14px; letter-spacing: .12em; color: var(--gold); display: flex; align-items: center; gap: 8px; }
.rf-radar { width: 100%; max-width: 280px; display: block; margin: 6px auto; }
.rf-ring { fill: none; stroke: var(--line-2); }
.rf-val { fill: rgba(240, 82, 82, .32); stroke: var(--accent); stroke-width: 2.5; }
.rf-radar text { fill: var(--muted); font: 600 12px var(--font); }
.rf-attr { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rf-attr span { flex: 1; min-width: 0; }
.rf-plus { width: 30px; height: 30px; color: var(--gold); border: 1px solid var(--gold-line); }
.rf-pts { color: var(--gold); margin-top: 10px; }
.rf-centro { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px; gap: 12px; align-items: center; min-height: 420px; }
.rf-col { display: grid; gap: 10px; }
.rf-slot { display: grid; justify-items: center; gap: 2px; padding: 10px 4px 6px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); text-align: center; }
.rf-slot-ic { font-size: 22px; line-height: 1.2; }
.rf-slot small { font-size: 11px; color: var(--muted); }
.rf-slot.vazio { opacity: .55; border-style: dashed; }
.rf-slot.r-incomum { border-color: rgba(74, 222, 128, .6); }
.rf-slot.r-raro { border-color: rgba(96, 165, 250, .7); }
.rf-slot.r-epico { border-color: rgba(167, 139, 250, .8); box-shadow: 0 0 14px -4px rgba(167, 139, 250, .6); }
.rf-slot.r-lendario, .rf-slot.r-mitico { border-color: var(--gold); box-shadow: 0 0 16px -4px rgba(246, 185, 59, .7); }
.rf-heroi { display: grid; justify-items: center; gap: 8px; text-align: center; }
.rf-avatar { width: min(240px, 100%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(240, 82, 82, .35), rgba(90, 16, 32, .5) 60%, transparent 72%); box-shadow: 0 0 0 3px rgba(240, 82, 82, .55), 0 0 60px -10px var(--glow); }
.rf-avatar span { font-size: clamp(64px, 10vw, 110px); }
.rf-poder { font-family: var(--display); font-size: 20px; }
.rf-poder b { color: var(--gold); }
.rf-grade { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.rf-cell { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); color: inherit; font: inherit; cursor: pointer; padding: 0; }
.rf-cell span { font-size: 22px; }
.rf-cell small { position: absolute; right: 4px; bottom: 2px; font-size: 10px; color: var(--muted); }
.rf-cell.vazio { cursor: default; opacity: .5; }
.rf-cell.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.rf-detalhe { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-soft); }

.ra-inicio .ra-convite { display: flex; gap: 16px; align-items: center; }
.ra-orb { flex: none; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(240, 82, 82, .45), rgba(90, 16, 32, .6)); color: #fff; box-shadow: 0 0 30px -6px var(--glow); }
.ra-orb .ico { width: 32px; height: 32px; }
.ra-fim { display: grid; gap: 2px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-3); }
.ra-fim.won { background: var(--gold-soft); border: 1px solid var(--gold-line); }
.ra-fim.won strong { color: var(--gold); }
.ra-fim.lost { background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ra-palco { position: relative; margin: 10px 0 20px; padding: 18px; border-radius: 26px; background: radial-gradient(ellipse at 50% 40%, rgba(240, 82, 82, .22), transparent 60%), linear-gradient(180deg, rgba(20, 8, 12, .7), rgba(60, 12, 24, .5)); border: 1px solid var(--line); }
.ra-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ra-rodada { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold); font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.ra-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.ra-grid > .card { margin: 0; position: relative; }
.ra-equipe h3, .ra-log-card h3 { font-size: 13px; letter-spacing: .14em; color: var(--gold); display: flex; align-items: center; gap: 8px; text-transform: uppercase; }
.ra-membro { display: grid; gap: 6px; margin-top: 8px; }
.ra-hp { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ra-hp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #b91c3a, #f05252); border-radius: 999px; transition: width .4s; }
.ra-hp.me i { background: linear-gradient(90deg, #16a34a, #4ade80); }
.ra-hp.foe { height: 24px; border-radius: 6px; }
.ra-hp.foe span { position: relative; display: block; text-align: center; font-weight: 700; font-size: 13px; line-height: 24px; color: #fff; }
.ra-inimigo { display: grid; gap: 12px; justify-items: center; }
.ra-nome { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ra-nome strong { font-family: var(--display); font-size: 24px; letter-spacing: .02em; }
.ra-inimigo .ra-hp { width: 100%; }
.ra-orbe { position: relative; width: min(280px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #1a0a10 55%, transparent 72%); box-shadow: 0 0 80px -10px var(--glow), inset 0 0 40px rgba(240, 82, 82, .35); }
.ra-orbe span { font-size: clamp(80px, 14vw, 130px); }
.ra-orbe.hit span { animation: raHit .45s; }
@keyframes raHit { 20% { transform: translateX(-10px) scale(.95); filter: brightness(2); } 60% { transform: translateX(8px); } }
.ra-num { position: absolute; top: 18%; right: -6%; font: 800 clamp(26px, 4vw, 40px) var(--display); color: #ffd166; text-shadow: 0 0 20px rgba(255, 140, 60, .8); animation: raNum 1.2s ease-out forwards; white-space: nowrap; }
.ra-num.crit { color: #ff5d5d; }
@keyframes raNum { from { transform: translateY(10px) scale(.7); opacity: 0; } 25% { transform: translateY(0) scale(1.1); opacity: 1; } to { transform: translateY(-30px); opacity: 0; } }
.ra-dano.me { position: absolute; top: 10px; right: 14px; font: 800 22px var(--display); color: #ff5d5d; animation: raNum 1.2s ease-out forwards; }
.ra-log { max-height: 260px; overflow-y: auto; display: grid; gap: 2px; }
.ra-log p { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ra-log p.me { color: var(--gold); }
.ra-log p.foe { color: #ff8a8a; }
.ra-log p.crit { font-weight: 700; }
.ra-log p.sys { color: var(--muted); }
.ra-acoes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding: 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--glass); }
.ra-acao { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); color: inherit; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.ra-acao strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.ra-acao small { color: var(--muted); }
.ra-acao:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--accent-line); }
.ra-acao.especial { border-color: var(--accent); box-shadow: 0 0 22px -8px var(--glow); }
.ra-acao:disabled { opacity: .45; cursor: not-allowed; }
.ra-fugir { text-align: center; margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .ra-orbe.hit span, .ra-num, .ra-dano.me { animation: none; } }

.rp-topo { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 340px); gap: 22px; align-items: center; padding: 24px 26px; background: radial-gradient(ellipse at 100% 0, rgba(246, 185, 59, .18), transparent 60%), var(--glass); }
.rp-t { font: 800 clamp(56px, 8vw, 96px)/1 var(--display); color: var(--gold); text-shadow: 0 0 40px rgba(246, 185, 59, .35); }
.rp-tx h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 40px); margin: 8px 0 4px; }
.rp-nivel { display: grid; gap: 10px; justify-items: end; text-align: right; }
.rp-nivel > strong { font: 800 clamp(34px, 4vw, 50px)/1 var(--display); }
.rp-xp { position: relative; width: 100%; height: 16px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.rp-xp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #c88a12, #f6b93b); }
.rp-xp span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 700; line-height: 16px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.rp-trilha { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 18px; }
.rp-rotulos { display: grid; grid-template-rows: 30px 130px 130px; gap: 10px; align-items: center; font-weight: 700; letter-spacing: .14em; font-size: 13px; color: var(--muted); }
.rp-rotulos span:first-child { grid-row: 2; }
.rp-rotulos .gold-t { grid-row: 3; color: var(--gold); }
.rp-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.rp-col { flex: none; width: 128px; display: grid; grid-template-rows: 30px 130px 130px; gap: 10px; scroll-snap-align: start; }
.rp-col > b { text-align: center; color: var(--muted); align-self: center; }
.rp-col.atual > b { color: var(--gold); }
.rp-cell { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass-2); color: inherit; font: inherit; text-align: center; }
.rp-cell .ico { width: 26px; height: 26px; }
.rp-cell small { font-size: 12px; color: var(--text-2, inherit); }
.rp-cell.ok { border-color: rgba(52, 211, 153, .6); background: rgba(16, 185, 129, .1); }
.rp-ok { position: absolute; top: 6px; right: 8px; color: #34d399; }
.rp-ok .ico { width: 14px; height: 14px; }
.rp-cell.pronto { border-color: var(--gold); box-shadow: 0 0 22px -6px rgba(246, 185, 59, .7); cursor: pointer; }
.rp-cell.pronto:hover { transform: translateY(-2px); }
.rp-cell.futuro { opacity: .7; }
.rp-cell.premium { background: linear-gradient(180deg, rgba(246, 185, 59, .08), transparent); }
.rp-cell.premium .ico, .rp-cell.premium small { color: #caa25a; }
.rp-cell.trancado { opacity: .45; }

@media (max-width: 1100px) {
  .rf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rf-centro { grid-column: 1 / -1; grid-row: 1; }
  .ra-grid { grid-template-columns: minmax(0, 1fr); }
  .ra-inimigo { grid-row: 1; }
}
@media (max-width: 900px) {
  .rm-grid { grid-template-columns: minmax(0, 1fr); }
  .rp-topo { grid-template-columns: auto minmax(0, 1fr); }
  .rp-nivel { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
}
@media (max-width: 680px) {
  .rf-grid { grid-template-columns: minmax(0, 1fr); }
  .rf-centro { grid-template-columns: 66px minmax(0, 1fr) 66px; min-height: 0; gap: 8px; }
  .rf-avatar span { font-size: 64px; }
  .ra-acoes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ra-acao { padding: 12px; }
  .rm-acao { width: calc(33.3% - 8px); padding: 14px 4px 10px; }
  .rp-trilha { grid-template-columns: 74px minmax(0, 1fr); padding: 12px; }
  .rp-rotulos { font-size: 11px; letter-spacing: .06em; grid-template-rows: 30px 110px 110px; }
  .rp-col { width: 104px; grid-template-rows: 30px 110px 110px; }
  .rh-hex { width: 60px; height: 66px; font-size: 26px; }
  .ra-palco { padding: 12px; }
}
.rp-dica { margin: 10px 0 18px; }
html[data-modo="claro"] .rp-xp span { color: #3a2a06; text-shadow: none; }
.rp-tx .pill { white-space: normal; max-width: 100%; }
@media (max-width: 560px) { .rp-topo { padding: 20px 18px; gap: 14px; } .rp-t { font-size: 48px; } }
