/* Senkai Idle — layout "cockpit": menu lateral, páginas no meio, campo da hunt numa janela
   que encaixa na home, vira mini-janela no canto nas outras telas, maximiza ou minimiza.
   As variáveis abaixo também são usadas pelas telas dos sistemas (client/telas/*.css). */

:root {
  --fundo: #0f1424;
  --fundo-2: #0a0e1c;
  --painel: #1a2140;
  --painel-2: #222b52;
  --painel-3: #2b3664;
  --borda: #3a4470;
  --borda-forte: #5a6694;
  --sombra: #05070f;
  --texto: #eef1ff;
  --texto-2: #a7b0d6;
  --texto-3: #6f7aa6;
  --acento: #f2c94c;
  --acento-escuro: #c9931c;
  --acento-2: #ff8a3d;
  --ouro: #f2c94c;
  --ok: #3fb950;
  --perigo: #f85149;
  --vip: #d6b4ff;
  --verde: #5fe0c0;
  --raio: 12px;
  --pixel: "Pixelify Sans", monospace;
  --menu-l: 248px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fundo) repeating-linear-gradient(135deg, #ffffff06 0 2px, transparent 2px 14px);
  color: var(--texto);
  font: 14px/1.45 Rubik, system-ui, sans-serif;
  min-width: 1200px;
}
a { color: var(--acento-2); }
button {
  font: inherit; font-weight: 600; color: var(--texto); cursor: pointer;
  padding: 7px 12px; border-radius: 10px; border: 2px solid var(--borda);
  background: linear-gradient(180deg, var(--painel-3), var(--painel-2));
  box-shadow: inset 0 1px 0 #ffffff14, 0 3px 0 var(--sombra);
  transition: transform .05s, border-color .1s;
}
button:hover:not(:disabled) { border-color: var(--acento); }
button:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff14, 0 1px 0 var(--sombra); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primario {
  color: #2a1c00; border-color: #ffe08a; text-shadow: 0 1px 0 #fff6;
  background: linear-gradient(180deg, #ffd96a, #e9a92a);
  box-shadow: inset 0 2px 0 #ffffff80, 0 3px 0 #7a4b00;
}
button.verde {
  color: #04211a; border-color: #9ff0db;
  background: linear-gradient(180deg, #5fe0c0, #23a688);
  box-shadow: inset 0 2px 0 #ffffff70, 0 3px 0 #0b4d3f;
}
button.destaque {
  color: #fff; border-color: #ffc2ad;
  background: linear-gradient(180deg, var(--acento-2), #e0532f);
  box-shadow: inset 0 2px 0 #ffffff50, 0 3px 0 #6b2a14;
}
button.mini { padding: 3px 9px; font-size: 12px; }
input, select {
  font: inherit; color: var(--texto); background: var(--fundo-2);
  border: 2px solid var(--borda); border-radius: 10px; padding: 7px 10px;
}
input:focus, select:focus { outline: none; border-color: var(--acento); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; margin: 0 0 10px; letter-spacing: .2px; }
h3 { font-size: 16px; color: var(--acento); text-shadow: 0 2px 0 #000a; }
.ico-px { image-rendering: pixelated; vertical-align: middle; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--borda); }
th { color: var(--texto-2); font-weight: 500; }
img { image-rendering: pixelated; }

/* ------------------------------------------------ casca */
.app { display: flex; height: 100vh; }
.menu {
  width: var(--menu-l); flex-shrink: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 14px 12px 10px; overflow: hidden;
  background: linear-gradient(180deg, #161c38, #0f1328);
  border-right: 3px solid var(--sombra); box-shadow: inset -1px 0 0 #ffffff0d, 4px 0 18px #0008;
}
.logo { font: 700 26px var(--pixel); color: var(--ouro); text-shadow: 0 3px 0 #7a4b00, 0 0 14px #f2c94c55; padding: 0 6px; }
.logo span { color: var(--acento-2); }
.logo.grande { font-size: 46px; }
.menu-perfil {
  display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--painel-2), var(--painel)); border: 2px solid var(--borda); box-shadow: 0 4px 0 var(--sombra); cursor: pointer;
}
.menu-perfil:hover, .menu-perfil.sel { border-color: var(--acento); }
.menu-perfil .avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #3a4a86, var(--fundo-2)); border: 2px solid var(--acento); box-shadow: 0 3px 0 #7a4b00; display: grid; place-items: center; }
.menu-perfil .avatar img { width: 44px; height: 44px; }
.menu-perfil b { display: block; font-size: 14px; }
.menu-perfil small { color: var(--texto-2); font-size: 12px; }
.menu nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.menu-secao { margin-bottom: 8px; }
.menu-secao > div:first-child { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-3); padding: 0 8px 4px; }
.menu-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin-bottom: 1px;
  border: 0; border-radius: 10px; background: none; box-shadow: none; color: #c9d0ea; font-size: 13.5px; text-align: left;
}
.menu-item:hover:not(.sel) { background: #ffffff0a; }
.menu-item svg { flex-shrink: 0; }
.menu-item span { flex: 1; }
.menu-item.sel { color: #2a1c00; background: linear-gradient(180deg, #ffd96a, #e9a92a); box-shadow: inset 0 2px 0 #ffffff70, 0 3px 0 #7a4b00; }
.menu-item.sel .selo { background: #7a2508; }
.menu-item .selo { flex: 0; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 8px; background: var(--acento-2); color: #fff; }
.online { color: var(--texto-3); font-size: 12px; padding: 4px 8px 0; }

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topo { height: 76px; flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 0 22px; border-bottom: 3px solid var(--sombra); background: linear-gradient(180deg, #1c2446, #121833); box-shadow: 0 4px 0 #0a0e1c; }
.saudacao h1 { font-size: 23px; margin: 0; }
.saudacao p { margin: 2px 0 0; font-size: 13px; color: var(--texto-2); }
.moedas { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.moeda {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 4px 0 8px; border-radius: 14px;
  background: linear-gradient(180deg, #0f1428, #0a0e1c); border: 2px solid var(--borda); box-shadow: inset 0 2px 6px #000a, 0 2px 0 #ffffff0a;
}
.moeda .ico-px { width: 28px; height: 28px; filter: drop-shadow(0 2px 0 #0008); }
.moeda .val { line-height: 1.1; }
.moeda .val b { font-size: 15px; font-variant-numeric: tabular-nums; }
.moeda .val small { display: block; font-size: 10px; color: var(--texto-2); }
.moeda button { width: 32px; height: 32px; padding: 0; margin-left: 4px; display: grid; place-items: center; }
.boost-ativo { padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #1a0a2a; background: linear-gradient(180deg, #e2c4ff, #b37bf0); border: 2px solid #f1e0ff; }
.badge-vip { background: var(--vip); color: #2a0f4a; font-weight: 700; padding: 1px 7px; border-radius: 8px; font-size: 11px; vertical-align: 1px; }

.conteudo { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 24px; scrollbar-width: thin; }

/* ------------------------------------------------ painéis */
.painel {
  padding: 14px; border-radius: 16px; position: relative;
  background: linear-gradient(180deg, #1e2648, #161c38);
  border: 2px solid var(--borda); box-shadow: inset 0 1px 0 #ffffff14, inset 0 0 0 1px #0008, 0 6px 0 var(--sombra), 0 10px 24px #0006;
}
.painel::before { content: ''; position: absolute; inset: 4px; border-radius: 12px; border: 1px solid #ffffff0a; pointer-events: none; }
.painel h3 { display: flex; align-items: center; gap: 8px; }
.painel h3::before { content: ''; width: 8px; height: 8px; background: var(--acento); transform: rotate(45deg); box-shadow: 0 0 8px var(--acento); flex-shrink: 0; }
.painel-topo h3::before { display: none; }
.painel-topo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.painel-topo h3 { margin: 0; }
.painel-topo a, .painel-topo .link { font-size: 12px; color: var(--acento-2); background: none; border: 0; box-shadow: none; padding: 0; }
.painel.roxo { background: linear-gradient(180deg, #2d1f4a, #1e1533); border-color: #5a4388; }
.painel.roxo h3 { color: var(--vip); }
.painel.roxo h3::before { background: var(--vip); box-shadow: 0 0 8px var(--vip); }

.barra { height: 10px; border-radius: 5px; background: var(--fundo-2); border: 1px solid #000; overflow: hidden; }
.barra > i { display: block; height: 100%; background: linear-gradient(180deg, #5fd36d, #2f9a3f); box-shadow: inset 0 1px 0 #ffffff40; transition: width .2s; }
.barra.xp > i { background: linear-gradient(180deg, #79b8ff, #3a7fd6); }
.barra.acento > i { background: linear-gradient(90deg, var(--acento), var(--acento-escuro)); }
.barra.hp-medio > i { background: linear-gradient(180deg, #f0c24a, #c08a1a); }
.barra.hp-baixo > i { background: linear-gradient(180deg, #ff7a70, #c8322b); }
.rot { display: flex; justify-content: space-between; color: var(--texto-2); font-size: 12px; margin: 5px 0 3px; }

.heroi-card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.retrato { width: 72px; height: 72px; border-radius: 12px; background: radial-gradient(circle at 50% 35%, #3a4a86, #0a0e1c 75%); border: 2px solid var(--borda-forte); box-shadow: 0 3px 0 var(--sombra), inset 0 0 12px #0008; }
.retrato.p { width: 40px; height: 40px; }
.nome { font-weight: 700; font-size: 15px; line-height: 1.25; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.chip { font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #0006; border: 1px solid currentColor; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.stats div { background: var(--fundo-2); border: 1px solid var(--borda); border-radius: 8px; padding: 5px; text-align: center; }
.stats b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.stats span { color: var(--texto-2); font-size: 10px; }
.golpes { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.golpes li { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; padding: 5px 8px; background: var(--fundo-2); border-radius: 8px; border-left: 3px solid; }
.golpes small { color: var(--texto-2); }
.acoes { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.bloqueado { color: var(--texto-2); }
.bloqueado p { margin: 4px 0 10px; }

.itens { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--fundo-2); border-radius: 10px; border: 2px solid var(--borda); cursor: pointer; font-size: 13px; box-shadow: inset 0 2px 4px #0008; }
.item span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.item b { flex-shrink: 0; }
.item.sel { border-color: var(--acento); box-shadow: inset 0 2px 4px #0008, 0 0 0 2px #f2c94c33; }
.item .ico-px { width: 26px; height: 26px; }
.item b { font-variant-numeric: tabular-nums; }
.frag { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.frag div { background: var(--fundo-2); border-radius: 10px; padding: 6px 4px; text-align: center; border: 1px solid var(--borda); border-top: 3px solid; box-shadow: inset 0 2px 4px #0008; }
.frag div .ico-px { width: 20px; height: 20px; display: block; margin: 0 auto 2px; }
.frag b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.frag span { font-size: 11px; color: var(--texto-2); }
.auto-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--borda); font-size: 13px; }
.auto-linha:last-of-type { border-bottom: 0; }
.auto-linha input[type=range] { width: 90px; }
.feed { list-style: none; margin: 0; padding: 0; font-size: 13px; display: flex; flex-direction: column; gap: 4px; max-height: 128px; overflow: hidden; }
.feed li { color: var(--texto-2); }
.feed li b { color: var(--texto); }

/* ------------------------------------------------ home */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.home-esq, .home-dir { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.slot-campo { height: clamp(380px, 54vh, 560px); }
.home-linha { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.passe-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.passe-dias div { aspect-ratio: .85; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; text-align: center; padding: 2px; }
.passe-dias b { font-size: 13px; }
.passe-dias .feito { background: #2b3d2f; color: #9fe0a8; }
.passe-dias .hoje { background: linear-gradient(180deg, #ffe08a, #e9a92a); color: #2a1c00; box-shadow: 0 3px 0 #7a4b00; }
.passe-dias .futuro { background: #241a30; color: #a48cc0; }
.missao { margin-top: 10px; }
.missao .rot { color: var(--texto); font-size: 13px; }
.missao button { margin-top: 6px; }

.chat { display: flex; flex-direction: column; height: 330px; }
.chat-abas { display: flex; gap: 4px; margin-bottom: 8px; }
.chat-abas button { flex: 1; padding: 6px 0; font-size: 12px; }
.chat-abas button.sel { color: #2a1c00; border-color: #ffe08a; background: linear-gradient(180deg, #ffd96a, #e9a92a); }
#chat-lista { list-style: none; margin: 0 0 8px; padding: 0; flex: 1; overflow-y: auto; font-size: 13px; scrollbar-width: thin; }
#chat-lista li { padding: 2px 0; word-break: break-word; }
#chat-lista b { color: var(--acento); }
#chat-lista small { color: var(--texto-3); }
#chat-input { width: 100%; }

/* ------------------------------------------------ janela do campo (encaixada / canto / maximizada / minimizada) */
.janela-campo {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px;
  background: #0b0f12; border: 3px solid var(--borda-forte); box-shadow: 0 0 0 2px #05070f, 0 6px 0 var(--sombra), inset 0 0 0 1px #ffffff10;
}
.janela-campo.dock { width: 100%; height: 100%; }
.janela-campo.pip, .janela-campo.max, .janela-campo.min { position: fixed; z-index: 40; box-shadow: 0 6px 0 var(--sombra), 0 18px 50px #000c; }
.janela-campo.pip { width: 420px; height: 300px; }
.janela-campo.pip.canto-br { right: 18px; bottom: 18px; }
.janela-campo.pip.canto-bl { left: calc(var(--menu-l) + 18px); bottom: 18px; }
.janela-campo.pip.canto-tr { right: 18px; top: 94px; }
.janela-campo.pip.canto-tl { left: calc(var(--menu-l) + 18px); top: 94px; }
.janela-campo.max { inset: 14px; border-color: var(--acento); }
.janela-campo.min { right: 18px; bottom: 18px; width: 340px; height: auto; }
.janela-campo.min .campo-wrap, .janela-campo.min .barra-hunt { display: none; }
.janela-campo:not(.min) .janela-mini { display: none; }
.janela-campo.arrastando { opacity: .85; transition: none; }
.janela-barra { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: linear-gradient(180deg, #232c58, #161c38); border-bottom: 2px solid var(--sombra); box-shadow: inset 0 1px 0 #ffffff14; }
.janela-campo.pip .janela-barra { cursor: grab; }
.barra-hunt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.barra-hunt .titulo { font: 700 15px var(--pixel); color: var(--ouro); text-shadow: 0 2px 0 #000; }
.barra-hunt .sub { font-size: 12px; color: var(--texto-2); overflow: hidden; text-overflow: ellipsis; }
.janela-campo.pip .barra-hunt .sub, .janela-campo.pip .barra-hunt .dir { display: none; }
.barra-hunt .dir { display: flex; gap: 6px; margin-left: auto; }
.barra-hunt .dir button { padding: 5px 10px; font-size: 12px; }
.janela-botoes { display: flex; gap: 4px; flex-shrink: 0; }
.janela-botoes button { width: 32px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 8px; }
.janela-mini { display: flex; align-items: center; gap: 10px; padding: 8px 10px; flex: 1; min-width: 0; }
.janela-mini img { width: 36px; height: 36px; }
.janela-mini .info { flex: 1; min-width: 0; font-size: 12px; }
.janela-mini .info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.campo-wrap { position: relative; flex: 1; min-height: 0; }
#campo { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.campo-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #0d1117cc; text-align: center; padding: 16px; }
.campo-overlay h2 { font-size: 22px; }
.campo-overlay p { color: var(--texto-2); }

/* ------------------------------------------------ páginas */
.pagina-topo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.pagina-topo h2 { margin: 0; font-size: 26px; color: var(--texto); }
.pagina-topo .voltar { padding: 6px 12px; font-size: 13px; }
#modal-corpo { font-size: 14px; }
#modal-corpo .card, .card {
  background: linear-gradient(180deg, #212a52, #181f3d); border: 2px solid var(--borda); border-radius: 14px; padding: 12px;
  box-shadow: inset 0 1px 0 #ffffff12, 0 4px 0 var(--sombra);
}
.card.ativo { border-color: var(--ok); }
.card.reserva { border-color: var(--vip); }
.card .req { color: var(--texto-2); font-size: 12px; margin-top: 6px; }
.filtro { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.grade-herois { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.album { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.album .card { text-align: center; padding: 10px; }
.album img { width: 72px; height: 72px; }
.album .nao-visto img { filter: brightness(0); opacity: .5; }
.album .visto img { filter: grayscale(1); opacity: .8; }
.gacha { display: grid; grid-template-columns: 300px 1fr; gap: 18px; }
.taxas { list-style: none; padding: 0; margin: 8px 0; }
.taxas li { display: flex; justify-content: space-between; padding: 3px 0; }
.resultado { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.resultado .card { text-align: center; animation: surgir .4s both; }
.resultado img { width: 72px; height: 72px; }
@keyframes surgir { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.mundo-titulo { font-size: 18px; color: var(--acento); margin: 6px 0 10px; }
.mundo-titulo.trancado { color: var(--texto-2); opacity: .7; }
.mundo-titulo small { font-family: Rubik, sans-serif; font-size: 12px; color: var(--texto-2); margin-left: 8px; }

/* diálogo (só a escolha do inicial e telas próprias dos sistemas) */
dialog { color: var(--texto); border: 2px solid var(--borda); border-radius: 16px; padding: 0; width: min(980px, 92vw); max-height: 88vh; background: linear-gradient(180deg, #1c2830, #121a1f); box-shadow: 0 24px 70px #000d; }
dialog::backdrop { background: #000b; }
.modal-topo { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 2px solid var(--borda); }
.modal-topo h2 { margin: 0; font-size: 22px; color: var(--acento); }
.x { font-size: 20px; line-height: 1; padding: 2px 10px; }
#dialogo-corpo { padding: 18px; overflow-y: auto; max-height: calc(88vh - 64px); }
.iniciais { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.iniciais .card { text-align: center; cursor: pointer; }
.iniciais .card:hover { border-color: var(--acento); }
.iniciais img { width: 96px; height: 96px; }

/* ------------------------------------------------ atlas (mapa) */
.atlas { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; height: calc(100vh - 76px - 18px - 24px - 58px); min-height: 560px; }
.atlas-mar { position: relative; border-radius: 18px; overflow: hidden; border: 3px solid var(--borda); box-shadow: 0 6px 0 var(--sombra); background: radial-gradient(ellipse at 40% 45%, #2a6fb8 0%, #1d4f8f 45%, #12305e 80%, #0b1f42 100%); }
.atlas-mar.m2 { background: radial-gradient(ellipse at 40% 45%, #6b2a5a 0%, #4a1d4f 45%, #2a1238 80%, #160a22 100%); }
.atlas-grade { position: absolute; inset: 0; opacity: .16; background-image: repeating-linear-gradient(0deg, transparent 0 46px, #8fd3ff 46px 47px), repeating-linear-gradient(90deg, transparent 0 46px, #8fd3ff 46px 47px); }
.atlas-mar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas-abas { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 2; }
.ilha { position: absolute; padding: 0; border: 0; background: none; box-shadow: none; cursor: pointer; }
.ilha:active:not(:disabled) { transform: none; }
.ilha .terra { width: 100%; height: 100%; overflow: hidden; border: 5px solid #ecd9a0; box-shadow: 0 12px 0 #6b4f2a, 0 22px 26px #0008; transition: transform .15s; }
.ilha:hover .terra { transform: translateY(-4px); }
.ilha .terra img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ilha.trancada .terra { border-color: #7d8099; box-shadow: 0 12px 0 #3a3f55, 0 22px 26px #0008; }
.ilha.trancada .terra img { filter: grayscale(.85) brightness(.55); }
.ilha.sel .terra { outline: 4px solid var(--acento); outline-offset: 4px; }
.ilha .placa { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); white-space: nowrap; padding: 5px 13px; border-radius: 999px; border: 2px solid var(--sombra); box-shadow: 0 4px 0 #060a14; background: #2f8a3f; font: 700 14px var(--pixel); color: #fff; }
.ilha .placa small { font: 600 12px Rubik, sans-serif; color: #fff3c4; margin-left: 6px; }
.ilha.trancada .placa { background: #4a5578; }
.ilha.atual .placa { background: #c8871a; }
.ilha .cadeado, .ilha .aqui { position: absolute; left: 50%; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; }
.ilha .cadeado { top: 40%; width: 48px; height: 48px; background: #1b2440; border: 3px solid #8ea0cc; box-shadow: 0 4px 0 #060a14; }
.ilha .aqui { top: -6px; width: 58px; height: 58px; background: #fff3c4; border: 4px solid var(--ouro); box-shadow: 0 0 0 6px #f5c54255, 0 6px 0 #7a4b00; overflow: hidden; }
.ilha .aqui img { width: 100%; height: 100%; }
.atlas-legenda { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 16px; padding: 10px 14px; border-radius: 12px; background: #0b1020c8; border: 2px solid #2c3a62; font-size: 12px; color: #c9d3f0; }
.atlas-legenda i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.atlas-painel { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.atlas-banner { position: relative; height: 168px; flex-shrink: 0; border-radius: 16px; overflow: hidden; border: 3px solid var(--borda); box-shadow: 0 5px 0 var(--sombra); }
.atlas-banner img { width: 100%; height: 100%; object-fit: cover; }
.atlas-banner div { position: absolute; inset: auto 0 0 0; padding: 14px 16px 12px; background: linear-gradient(0deg, #080c18ee, #080c1800); }
.atlas-banner b { display: block; font: 700 28px var(--pixel); text-shadow: 0 3px 0 #000; }
.atlas-banner small { color: #c9d3f0; }
.atlas-hunt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: linear-gradient(180deg, #1f2c35, #18232a); border: 2px solid var(--borda); box-shadow: 0 4px 0 var(--sombra); }
.atlas-hunt.atual { border-color: var(--ouro); }
.atlas-hunt .nv { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; background: var(--fundo-2); border: 2px solid var(--borda); display: grid; place-items: center; font: 700 16px var(--pixel); color: var(--ouro); }
.atlas-hunt .info { flex: 1; min-width: 0; }
.atlas-hunt .info b { font-size: 15px; }
.mini-retratos { display: flex; gap: 2px; margin-top: 4px; flex-wrap: wrap; }
.mini-retratos img { width: 28px; height: 28px; }

/* ------------------------------------------------ loja */
.abas { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.abas button.sel { color: #2a1c00; border-color: #ffe08a; background: linear-gradient(180deg, #ffd96a, #e9a92a); box-shadow: inset 0 2px 0 #ffffff70, 0 3px 0 #7a4b00; }
.oferta { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(120deg, #4a2412, #2a1530 70%); border: 3px solid var(--acento-2); box-shadow: 0 6px 0 var(--sombra); }
.oferta .selo-desc { font: 700 26px var(--pixel); color: #fff; background: var(--acento-2); border-radius: 14px; padding: 10px 14px; box-shadow: 0 4px 0 #6b2a14; transform: rotate(-4deg); }
.oferta h3 { color: #ffd2c2; font-size: 20px; margin-bottom: 4px; }
.oferta p { margin: 0; color: #f0d8cc; }
.oferta .precos { margin-left: auto; text-align: right; }
.oferta s { color: #c8a89a; }
.oferta .preco { font: 700 24px Rubik, sans-serif; color: #fff; }
.loja-cat { margin: 18px 0 10px; }
.loja-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.produto { display: flex; flex-direction: column; gap: 6px; }
.produto .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a4a86, #0a0e1c); border: 2px solid var(--borda-forte); box-shadow: inset 0 0 12px #0008, 0 3px 0 var(--sombra); }
.produto .ico .ico-px { width: 40px; height: 40px; filter: drop-shadow(0 2px 0 #0008); }
.produto b { font-size: 15px; }
.produto p { margin: 0; color: var(--texto-2); font-size: 13px; flex: 1; }
.produto .comprar { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.produto .comprar select { flex: 1; }
.produto .preco { font-weight: 700; font-variant-numeric: tabular-nums; }
.loja { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.loja .card { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* ------------------------------------------------ perfil */
.perfil-cabeca { display: flex; gap: 20px; align-items: center; padding: 20px; border-radius: 20px; margin-bottom: 16px; background: linear-gradient(120deg, #3a2a12, #1a2140 60%); border: 3px solid var(--borda-forte); box-shadow: 0 6px 0 var(--sombra); }
.perfil-cabeca .avatar { width: 112px; height: 112px; border-radius: 22px; background: radial-gradient(circle at 50% 35%, #3a4a86, #0a0e1c); border: 4px solid var(--acento); display: grid; place-items: center; box-shadow: 0 5px 0 #7a4b00; }
.perfil-cabeca .avatar img { width: 100px; height: 100px; }
.perfil-cabeca h2 { font-size: 30px; margin: 0; }
.perfil-cabeca .linha { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.perfil-cabeca .tag { padding: 3px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; background: var(--fundo-2); border: 1px solid var(--borda); }
.perfil-xp { width: 360px; }
.perfil-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.perfil-grade .card b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.perfil-grade .card span { color: var(--texto-2); font-size: 12px; }
.perfil-duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }

/* ------------------------------------------------ login */
.tela-login { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #2a3568, var(--fundo) 70%); }
.login-caixa { width: 440px; text-align: center; display: grid; gap: 14px; padding: 28px; border-radius: 22px; background: linear-gradient(180deg, #1e2648, #141a31); border: 3px solid var(--borda-forte); box-shadow: 0 8px 0 var(--sombra), 0 20px 60px #000a; }
.login-caixa p { color: var(--texto-2); margin: 0; }
.login-caixa form { display: flex; gap: 8px; }
.login-caixa input { flex: 1; }
.login-caixa small { color: var(--texto-2); }
.login-caixa .login-form { flex-direction: column; }
.login-caixa .login-form h3 { margin: 0; }
.login-abas { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.login-abas button.sel { border-color: var(--acento); color: var(--acento); }
.login-sociais { display: grid; gap: 8px; margin-top: 12px; }
.login-ou { color: var(--texto-2); font-size: 12px; }
.botao-social { display: block; padding: 9px 10px; border-radius: 10px; border: 2px solid var(--borda); background: var(--painel-2); color: var(--texto); text-decoration: none; font-weight: 600; }
.botao-social.google:hover { border-color: #4285f4; }
.botao-social.discord:hover { border-color: #5865f2; }
.login-convidado { flex-direction: column; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--borda); }
.login-convidado > div { display: flex; gap: 8px; }
.login-rodape { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--texto-2); }

/* ------------------------------------------------ premium (conta.mjs) */
.premium-status { display: grid; gap: 4px; padding: 12px 14px; border: 2px solid var(--borda); border-radius: var(--raio); background: var(--painel-2); }
.premium-status small, .premium-filtro small { color: var(--texto-2); }
.premium-aviso { color: var(--acento-2); }
.premium-filtro { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.premium-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.premium-produto { display: grid; gap: 6px; align-content: start; }
.premium-produto small { color: var(--texto-2); }
.premium-produto.vip { border-color: var(--vip); }
.premium-produto .preco { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.premium-produto .acoes { margin: 0; }
.premium-conta { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--borda); }

/* ------------------------------------------------ toasts */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; display: grid; gap: 8px; z-index: 60; }
.toast { background: linear-gradient(180deg, #222b52, #181f3d); border: 2px solid var(--borda-forte); border-left: 5px solid var(--acento); padding: 10px 14px; border-radius: 10px; max-width: 460px; box-shadow: 0 6px 20px #000a; animation: surgir .2s both; font-weight: 500; }
.toast.erro { border-color: #7a2a2a; border-left-color: var(--perigo); background: linear-gradient(180deg, #3a1e26, #241319); }
.toast small { display: block; color: var(--texto-2); font-weight: 400; margin-top: 2px; }

/* ícones pixel dentro de cards da loja de ouro e de botões */
.loja .card .ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #3a4a86, #0a0e1c); border: 2px solid var(--borda-forte); box-shadow: inset 0 0 12px #0008; }
button .ico-px { margin-right: 4px; vertical-align: -4px; }
.feed .ico-px, .passe-dias .ico-px { vertical-align: -3px; margin-right: 2px; }
.perfil-grade .card b .ico-px { vertical-align: -4px; }

/* ------------------------------------------------ invocar e álbum */
.gacha2 { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; }
.gacha-altar { text-align: center; }
.gacha-pergaminho { display: grid; place-items: center; height: 120px; background: radial-gradient(circle, #f2c94c33, transparent 70%); animation: flutuar 3s ease-in-out infinite; }
@keyframes flutuar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.resultado { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.invocado { text-align: center; position: relative; perspective: 600px; }
.invocado img { width: 80px; height: 80px; }
.invocado .verso { display: none; }
.invocado.forte .frente { animation: brilho 1.6s ease-in-out infinite; }
@keyframes brilho { 0%, 100% { filter: drop-shadow(0 0 4px var(--cor)); } 50% { filter: drop-shadow(0 0 14px var(--cor)); } }
.revelacao { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.revelacao .invocado { min-height: 190px; }
.revelacao .invocado.virar .frente { animation: virarFrente .6s both; animation-delay: calc(var(--atraso) + .3s); }
.revelacao .invocado.virar .verso { display: grid; place-items: center; position: absolute; inset: 0; animation: virarVerso .6s both; animation-delay: calc(var(--atraso) + .3s); background: linear-gradient(180deg, #2a1e46, #1d1533); }
@keyframes virarVerso { 0% { transform: rotateY(0); opacity: 1; } 50% { transform: rotateY(90deg); opacity: 1; } 51%, 100% { opacity: 0; transform: rotateY(90deg); } }
@keyframes virarFrente { 0%, 50% { transform: rotateY(-90deg); opacity: 0; } 51% { opacity: 1; } 100% { transform: rotateY(0); opacity: 1; } }
.album-cap { margin-bottom: 18px; }
.album-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; margin-bottom: 10px; border-radius: 14px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 999px #0c0a18b8, 0 4px 0 var(--sombra); border: 2px solid var(--borda-forte); }
.album-banner b { display: block; font: 700 20px var(--pixel); color: #fff; text-shadow: 0 2px 0 #000; }
.album-banner small { color: #d8ccb0; }
.figurinha { text-align: center; padding: 10px 6px; }
.figurinha img { width: 72px; height: 72px; }
.figurinha.tem { box-shadow: inset 0 0 0 2px var(--cor); }
.figurinha.visto img { filter: grayscale(1) brightness(.7); }
.figurinha.nao-visto img { filter: brightness(0) opacity(.6); }
.figurinha.nao-visto .chips { visibility: hidden; }

/* vitrine da tela de login */
.tela-login { background: radial-gradient(circle at 50% 30%, #2a3568cc, var(--fundo) 70%), url("assets/regioes/konoha.png") center / cover; }
.login-herois { display: flex; justify-content: center; gap: 2px; margin: -6px 0 -4px; }
.login-herois img { width: 48px; height: 48px; animation: flutuar 2.4s ease-in-out infinite; }
.login-herois img:nth-child(2n) { animation-delay: .4s; }
.login-herois img:nth-child(3n) { animation-delay: .8s; }
.login-caixa { width: 480px; }
.login-caixa > * { min-width: 0; }
.login-convidado > div { flex-wrap: wrap; }
.login-convidado > div > input { min-width: 180px; }
.tela-login::before { content: ''; position: absolute; inset: -40px; background: url("assets/regioes/konoha.png") center / cover; filter: blur(14px) brightness(.45); z-index: -1; }
.tela-login { background: var(--fundo); overflow: hidden; }

/* slot do campo com a janela fora (canto/minimizada): some a altura fixa e fica só um atalho */
.slot-campo.vazio { height: auto; }
#slot-vazio:empty { display: none; }
.slot-aviso { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 2px dashed var(--borda); border-radius: 12px; color: var(--texto-2); }
.slot-aviso p { margin: 0; }

/* splash de carregamento (client/splash.mjs) */
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #3b5bd6; opacity: 1; transition: opacity .45s ease; }
.splash.saindo { opacity: 0; pointer-events: none; }
.splash-caixa { width: min(640px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 12px 12px; }
.splash-arte { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #1a1428; }
.splash-arte img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.splash-arte .logo { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); text-shadow: 0 3px 0 #7a4b00, 0 0 18px #000, 0 0 6px #000; }
.splash .barra { width: 100%; height: 18px; }
.splash b { font: 700 22px Rubik, sans-serif; color: var(--texto); }
.splash small { color: var(--texto-2); font-size: 12px; margin-top: -4px; }
.splash-arte::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, transparent, #0008); pointer-events: none; }
.splash-arte .logo { z-index: 1; }

/* janela do campo fechada + botão flutuante para reabrir */
.janela-campo.fechado { display: none; }
#janela-reabrir { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 6px; }

/* campo de senha com botão de mostrar/ocultar */
.campo-senha { position: relative; }
.campo-senha input { width: 100%; padding-right: 44px; }
.campo-senha .olho { position: absolute; z-index: 2; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; min-height: 30px; padding: 0; border: 0; border-image: none; background: none; box-shadow: none; color: #e0cfa6; }
.campo-senha .olho:hover { color: #fff; filter: none; }
.campo-senha .olho .olho-fechado { display: none; }
.campo-senha.vendo .olho .olho-aberto { display: none; }
.campo-senha.vendo .olho .olho-fechado { display: initial; }
.campo-senha .olho:active, .campo-senha .olho:active:not(:disabled) { transform: translateY(-50%); border-image: none; }
