/* ==========================================================================
   ESTILO RETRÔ WEB 2010 - DRAGON BALL Z ONLINE
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    background-color: #0b0d12;
    /* Aponta diretamente para a pasta public/banner */
    background-image: url('/banner/banner2.jpg'); 
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    color: #e0e0e0;
    font-size: 12px;
    padding: 15px 0;
}

/* CONTAINERS - Aumentado de 1000px para 1280px para parecer um website completo */
#portal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER / BANNER */
#game-header {
    background: linear-gradient(180deg, #1f2b42 0%, #0d131f 100%);
    border: 2px solid #3d5075;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 10px rgba(0,0,0,0.7);
    position: relative;
}

/* LINK "SAIR DO JOGO" NO CANTO DO CABEÇALHO */
.logout-link {
    position: absolute;
    top: 10px;
    right: 14px;
    color: #ff9900;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 0 #000;
}

.logout-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.logo-title {
    color: #ff9900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000, -1px -1px 0 #8b0000;
}

.logo-subtitle {
    color: #aaaaaa;
    font-size: 11px;
    margin-top: 4px;
}

/* CAIXAS ESTILO RETRÔ / FORUM */
.retro-box {
    background: #141923;
    border: 1px solid #2a374e;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    margin-bottom: 15px;
    overflow: hidden;
}

.box-header {
    background: linear-gradient(180deg, #2c3a52 0%, #172131 100%);
    border-bottom: 1px solid #2a374e;
    color: #ffcc00;
    font-weight: bold;
    font-size: 11px;
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-content {
    padding: 12px;
}

/* LAYOUT TRÊS COLUNAS (esquerda: perfil | centro: conteúdo | direita: menu) */
#game-layout {
    display: grid;
    grid-template-columns: 240px 1fr 220px;
    gap: 12px;
    min-height: 1500px; /* colunas compridas, mesmo com pouco conteúdo */
}

/* MENU DE NAVEGAÇÃO NA COLUNA DA DIREITA */
.flex-column-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    width: 100%;
    background: linear-gradient(180deg, #2a3952 0%, #151f2e 100%);
    border: 1px solid #3d5075;
    color: #ffffff;
    padding: 10px 8px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    text-shadow: 1px 1px 0 #000;
    text-align: left;
    font-size: 11px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: linear-gradient(180deg, #384d6e 0%, #1f2d42 100%);
}

.nav-btn.active {
    background: linear-gradient(180deg, #cc6600 0%, #803300 100%);
    border-color: #ff9933;
    color: #fff;
}

/* BOTÕES RETRÔ */
.retro-btn {
    background: linear-gradient(180deg, #3b4e6d 0%, #1f2b3e 100%);
    border: 1px solid #4f6890;
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.retro-btn:hover {
    background: linear-gradient(180deg, #485f85 0%, #283750 100%);
}

.btn-success {
    background: linear-gradient(180deg, #2e7d32 0%, #1b4d20 100%);
    border-color: #4caf50;
}

.btn-danger {
    background: linear-gradient(180deg, #c62828 0%, #7f1d1d 100%);
    border-color: #ef5350;
}

.btn-gold {
    /* antes era amarelo: agora usa a mesma cor padrão dos outros botões */
    background: linear-gradient(180deg, #3b4e6d 0%, #1f2b3e 100%);
    border-color: #4f6890;
    color: #fff;
}

.btn-gold:hover:not(:disabled) {
    background: linear-gradient(180deg, #485f85 0%, #283750 100%);
}

.full-width {
    width: 100%;
}

/* PERFIL DO PERSONAGEM (PAINEL ESQUERDO) */
.avatar-container {
    text-align: center;
    margin-bottom: 12px;
}

#player-avatar {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border: 2px solid #3d5075;
    border-radius: 4px;
    background-color: #000;
}

.avatar-upload-btn {
    display: block;
    margin: 6px auto 0;
    width: 110px;
    background: #1f2b3e;
    border: 1px solid #3d5075;
    color: #ccc;
    font-size: 10px;
    padding: 3px 0;
    cursor: pointer;
    border-radius: 2px;
    text-align: center;
}

.avatar-upload-btn:hover {
    background: #2a3952;
    color: #fff;
}

.player-info-table {
    background: #0d121a;
    border: 1px solid #212c3d;
    padding: 8px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    border-bottom: 1px dashed #1a2433;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #88a0c0;
}

.info-val {
    color: #fff;
    font-weight: bold;
}

/* BARRAS DE STATUS */
.status-bars {
    margin-top: 8px;
}

.bar-label {
    font-size: 10px;
    color: #aaa;
    margin-top: 6px;
    margin-bottom: 2px;
}

.bar-outer {
    background: #000;
    border: 1px solid #333;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
}

.bar-inner {
    height: 100%;
    transition: width 0.3s ease;
}

.bar-hp { background: linear-gradient(180deg, #e53935 0%, #8e0000 100%); }
.bar-ki { background: linear-gradient(180deg, #1e88e5 0%, #0d47a1 100%); }
.bar-stamina { background: linear-gradient(180deg, #fb8c00 0%, #ef6c00 100%); }

/* PAINEL DE DISTRIBUIÇÃO DE ATRIBUTOS (ESTILO 2010) */
.stats-panel-box {
    background: #0d121a;
    border: 1px solid #212c3d;
    padding: 12px;
    margin-top: 12px;
    border-radius: 4px;
}

.pts-available {
    font-size: 13px;
    color: #ffcc00;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #212c3d;
}

.stat-distrib-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 8px;
}

.stat-distrib-row label {
    flex: 1;
    color: #d1d5db;
}

.stat-input {
    width: 60px;
    background: #080b10;
    border: 1px solid #212c3d;
    color: #ff9900;
    padding: 4px;
    text-align: center;
    font-weight: bold;
}

/* DIÁRIO DE SATAN CITY */
.news-container {
    background: #0d121a;
    border: 1px solid #212c3d;
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
}

.diary-banner-area img {
    width: 100%;
    height: auto;
    border: 1px solid #3d5075;
    border-radius: 2px;
    margin-bottom: 10px;
}

.diary-title {
    color: #ff9900;
    text-align: center;
    margin-bottom: 8px;
}

.diary-text {
    color: #ccc;
    line-height: 1.4;
    font-size: 11px;
}

.news-date {
    color: #6688aa;
    font-size: 10px;
    margin-bottom: 4px;
}

/* TELA DE CHAT & ONLINE */
.chat-container-layout {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 12px;
    margin-top: 10px;
}

.chat-box {
    background: #080b10;
    border: 1px solid #1f2b3e;
    height: 280px;
    overflow-y: auto;
    padding: 6px;
    font-size: 11px;
    margin-bottom: 6px;
}

.chat-header-title {
    color: #ffcc00;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 4px;
}

.chat-input-group {
    display: flex;
    gap: 4px;
}

.chat-input-group input {
    flex: 1;
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #fff;
    padding: 4px;
    font-size: 11px;
}

.private-target-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.private-target-group label {
    color: #aaa;
    font-size: 10px;
}

.private-target-group input {
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #ffcc00;
    padding: 3px 6px;
    font-size: 11px;
    flex: 1;
}

.retro-list {
    list-style: none;
    background: #080b10;
    border: 1px solid #1f2b3e;
    overflow-y: auto;
    padding: 4px;
}

.retro-list li {
    padding: 3px 4px;
    color: #76ff03;
    font-size: 11px;
    border-bottom: 1px solid #141923;
}

/* ARENA DE BATALHA */
.battle-screen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0f18;
    border: 1px solid #212c3d;
    padding: 15px;
    margin-bottom: 10px;
}

.fighter-box {
    flex: 0 0 200px;
    text-align: center;
}

.fighter-face {
    width: 150px;
    height: 150px;
    margin: 0 auto 8px;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
}

.fighter-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fighter-box h5 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-bottom: 4px;
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
}

.fighter-box .bar-label {
    text-align: left;
}

.vs-badge {
    font-size: 20px;
    font-weight: bold;
    color: #ff3300;
}

.battle-log-box {
    background: #000;
    border: 1px solid #333;
    height: 80px;
    overflow-y: auto;
    padding: 6px;
    color: #cfd8e3; /* cor padrão; cada tipo de linha tem a sua abaixo */
    font-family: monospace;
    font-size: 11px;
    margin-bottom: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* CORES DO LOG DE COMBATE (uma por tipo de mensagem) */
.log-start         { color: #9aa5b8; }                      /* início da batalha */
.log-player-attack { color: #4fc3f7; }                      /* ataque do jogador */
.log-npc-attack    { color: #ff5252; }                      /* ataque do oponente */
.log-victory       { color: #ffd700; font-weight: bold; }   /* vitória */
.log-reward        { color: #76ff03; }                      /* EXP e Zeni ganhos */
.log-levelup       { color: #ff9900; font-weight: bold; }   /* subiu de nível */
.log-defeat        { color: #b388ff; font-weight: bold; }   /* derrota */

/* LISTA DE OPONENTES DO PVE (5 POR LINHA) */
.opponents-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.opponent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 4px;
    padding: 8px;
    text-align: center;
}

.opponent-card:hover {
    border-color: #ff9900;
}

.opponent-face {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.opponent-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opponent-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-word;
}

.opponent-level {
    color: #ffcc00;
    font-size: 11px;
    margin: 4px 0 8px;
}

.opponent-card .retro-btn {
    width: 100%;
    margin-top: auto;
}

/* DESCRIÇÃO DOS ATRIBUTOS (página Status) */
.stat-hint {
    color: #88a0c0;
    font-size: 10px;
}

/* LINK "CONFIGURAR CONTA" NO PERFIL */
.account-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: #ff9900;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
    text-shadow: 1px 1px 0 #000;
}

.account-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* TÍTULOS DE SEÇÃO (equipamento / inventário) */
.section-title {
    margin: 20px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #212c3d;
    color: #ffcc00;
    font-size: 12px;
}

.inventory-subtitle {
    margin: 10px 0 6px;
    color: #88a0c0;
    font-size: 11px;
    font-weight: bold;
}

.empty-note {
    color: #6b7a90;
    font-size: 11px;
}

/* SLOT DO SET EQUIPADO */
.equip-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 96px;
    padding: 10px;
    background: #0d121a;
    border: 1px dashed #3d5075;
    border-radius: 4px;
}

.equip-slot.empty {
    justify-content: center;
    color: #6b7a90;
    font-size: 11px;
}

.equip-slot .set-face {
    flex: 0 0 76px;
    width: 76px;
}

.equip-info {
    flex: 1;
}

.equip-info .retro-btn {
    margin-top: 6px;
}

/* CARDS DE SET (inventário e shop) */
.set-face {
    aspect-ratio: 1 / 1;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
}

.set-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.set-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    padding: 8px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 4px;
    text-align: center;
}

.set-card:hover {
    border-color: #ff9900;
}

.set-card.equipped {
    border-color: #76ff03;
}

.set-card.locked .set-face {
    filter: none;
}

.set-card .set-face {
    width: 100%;
    margin-bottom: 6px;
}

.set-name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
    word-break: break-word;
}

.set-level {
    margin-top: 4px;
    color: #ffcc00;
    font-size: 11px;
}

.set-bonus {
    margin: 4px 0;
    color: #76ff03;
    font-size: 10px;
    line-height: 1.3;
}

.set-price {
    margin-bottom: 6px;
    color: #ffd54f;
    font-size: 11px;
    font-weight: bold;
}

.set-card .retro-btn {
    width: 100%;
    margin-top: auto;
}

.retro-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* INVENTÁRIO: sets (4 por linha) e consumíveis (lista) */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.inventory-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 3px;
}

.item-name {
    color: #fff;
    font-weight: bold;
}

.item-face {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
}

.item-face img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-text {
    flex: 1;
    min-width: 0;
}

.item-desc {
    color: #88a0c0;
    font-size: 10px;
}

/* SHOP SETS: 4 sets por linha, o restante desce na vertical */
.shop-zeni {
    margin-top: 6px;
    color: #ffd54f;
}

.equip-info .set-name {
    justify-content: flex-start;
    min-height: 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* CONFIGURAR CONTA */
.account-email {
    margin-top: 8px;
    color: #88a0c0;
}

.account-form {
    max-width: 420px;
    margin-top: 14px;
    padding: 12px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 4px;
}

.account-form h4 {
    margin-bottom: 10px;
    color: #ffcc00;
}

.form-msg {
    margin-top: 8px;
    font-weight: bold;
}

.form-msg.ok {
    color: #76ff03;
}

.form-msg.error {
    color: #ff5252;
}

/* PVP */
.pvp-status {
    min-height: 16px;
    margin: 6px 0;
    color: #ffcc00;
}

.turn-info {
    margin: 8px 0;
    text-align: center;
    color: #ffcc00;
    font-weight: bold;
}

.turn-info.waiting {
    color: #9aa5b8;
}

/* FORMULÁRIOS */
.form-group {
    margin-bottom: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 3px;
    color: #aaa;
}

.form-group input, .form-group select {
    width: 100%;
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #fff;
    padding: 6px;
}

.error-msg {
    color: #ff5252;
    margin-bottom: 8px;
    font-weight: bold;
}

.toggle-text {
    margin-top: 10px;
    font-size: 11px;
}

.toggle-text a {
    color: #ff9900;
}

/* ==========================================================================
   BANNER NO TOPO DE TODAS AS PÁGINAS  (public/bannepags/<nome-da-página>.jpg)
   ========================================================================== */
.page-banner {
    position: relative;
    width: 100%;
    height: 130px;
    margin-bottom: 12px;
    background: #0a0f18;
    border: 1px solid #2a374e;
    border-radius: 3px;
    overflow: hidden;
}

.page-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    color: #3d5075;
    font-size: 11px;
    border: 1px dashed #2a374e;
}

/* LISTAS PADRÃO DO SITE (habilidades, alvos, salas, ranking) — uma abaixo da outra */
.site-list {
    list-style: none;
    background: #080b10;
    border: 1px solid #1f2b3e;
    max-height: 260px;
    overflow-y: auto;
}

.site-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-bottom: 1px solid #141923;
    color: #e0e0e0;
    font-size: 11px;
    cursor: pointer;
}

.site-list li:last-child { border-bottom: none; }
.site-list li:hover { background: #172131; color: #ffcc00; }
.site-list li.selected { background: #7a3b00; color: #fff; }
.site-list li.disabled { color: #5d6a80; cursor: not-allowed; background: transparent; }
.site-list li.disabled:hover { background: transparent; color: #5d6a80; }
.site-list .li-meta { color: #88a0c0; font-size: 10px; white-space: nowrap; }
.site-list li.disabled .li-meta { color: #4a566b; }

.list-title {
    margin: 8px 0 4px;
    color: #ffcc00;
    font-size: 11px;
    font-weight: bold;
}

.lock-msg {
    min-height: 0;
    margin: 6px 0;
    color: #ff9900;
    font-weight: bold;
}

/* MENU: contador embaixo do nome do botão */
.nav-count {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: normal;
    color: #ffd54f;
}

/* AVISOS RÁPIDOS (toast) */
#toast-container {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 320px;
}

.toast {
    padding: 8px 12px;
    background: #172131;
    border: 1px solid #3d5075;
    border-left: 4px solid #4fc3f7;
    border-radius: 3px;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.toast.success { border-left-color: #76ff03; }
.toast.error { border-left-color: #ff5252; }

/* CAIXAS DE PÁGINA (casa, trabalho) */
.panel-box {
    margin-top: 12px;
    padding: 12px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 4px;
}

.panel-box h4 {
    margin-bottom: 8px;
    color: #ffcc00;
}

.panel-box .retro-btn { margin-top: 8px; }
.panel-box select {
    width: 160px;
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #fff;
    padding: 6px;
}

/* CASA */
.house-image-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 240px;
    margin: 0 auto 10px;
    background: #0a0f18;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
}

.house-image-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.house-img-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    text-align: center;
    color: #3d5075;
    font-size: 11px;
}

#tab-casa h3 { text-align: center; color: #ffcc00; }
.house-level { text-align: center; color: #88a0c0; margin-bottom: 4px; }

.rest-summary { margin: 8px 0; }
.rest-title { margin: 6px 0; color: #ffcc00; }

/* RANKING */
.ranking-menu { max-height: none; max-width: 320px; }
.ranking-list {
    list-style: none;
    margin-top: 8px;
}

.ranking-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 10px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 3px;
    margin-bottom: 4px;
}

.ranking-list li.me { border-color: #ff9900; }
.ranking-list .rk-pos { width: 34px; color: #ffcc00; font-weight: bold; }
.ranking-list .rk-name { flex: 1; color: #fff; font-weight: bold; }
.ranking-list .rk-race { color: #88a0c0; font-size: 10px; }
.ranking-list .rk-value { color: #76ff03; font-weight: bold; }

/* PLATAFORMA CELESTE */
.rooms-list { max-height: none; }
.rooms-list li { padding: 10px 12px; font-size: 12px; }
.rooms-list li .li-meta { font-size: 11px; }

.plat-room-title {
    margin-bottom: 8px;
    color: #ffcc00;
    font-size: 13px;
}

.plat-self {
    display: flex;
    gap: 14px;
    padding: 12px;
    background: #0a0f18;
    border: 1px solid #212c3d;
    border-radius: 4px;
}

.plat-self-face {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
}

.plat-self-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plat-self-info { flex: 1; min-width: 0; }
.plat-self-info h5 { color: #fff; font-size: 14px; margin-bottom: 2px; }
.plat-form { color: #88a0c0; margin-bottom: 4px; }
.plat-form strong { color: #ff9900; }
.plat-timers { margin-top: 8px; color: #aaa; line-height: 1.6; }
.plat-timers strong { color: #ffcc00; }

.plat-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.plat-actions { display: flex; gap: 8px; margin-top: 10px; }

.plat-line {
    margin: 16px 0 6px;
    border: none;
    border-top: 2px solid #3d5075;
}

/* demais jogadores: 4 por linha, o restante desce */
.plat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.plat-card {
    min-width: 0;
    padding: 8px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 4px;
    text-align: center;
}

.plat-card.target { border-color: #ff9900; }

.plat-card-face {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.plat-card-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plat-card-name { color: #fff; font-weight: bold; font-size: 11px; word-break: break-word; }
.plat-card .bar-label { text-align: left; }
.plat-card-form { margin-top: 4px; color: #ff9900; font-size: 10px; }

.log-attack { color: #ffb74d; }
.log-info { color: #9aa5b8; }

.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.item-controls .stat-input { width: 70px; }
/* MESTRE KAME */
#tab-kame h3 { color: #ffcc00; margin-bottom: 6px; }
.kame-next { margin: 4px 0 8px; padding: 10px; background: #080b10; border: 1px solid #1f2b3e; border-radius: 3px; }
.kame-next .kn-name { color: #fff; font-size: 14px; font-weight: bold; }
.kame-next .kn-meta { margin-top: 4px; color: #88a0c0; font-size: 11px; }
.kame-skills li.learned { color: #76ff03; cursor: default; }
.kame-skills li.learned:hover { background: transparent; color: #76ff03; }
.kame-skills li.next { color: #ffcc00; cursor: default; }
.kame-skills li.locked-skill { color: #5d6a80; cursor: default; }
.kame-skills li.locked-skill:hover { background: transparent; color: #5d6a80; }
.kame-skills { max-height: 420px; }
/* GUILD */
#tab-guild h3 { color: #ffcc00; margin-bottom: 6px; }
.guild-head .guild-name { color: #ffcc00; font-size: 18px; font-weight: bold; margin-bottom: 4px; }
.guild-head .guild-meta { color: #d1d5db; margin-bottom: 4px; }
.guild-head .guild-meta strong { color: #ff9900; }
.guild-head-actions { display: flex; gap: 8px; margin-top: 6px; }
.guild-members { max-height: 520px; }
.guild-members li { flex-wrap: wrap; }
.guild-member-main { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 140px; }
.guild-member-name { color: #fff; font-weight: bold; }
.guild-actions { display: flex; align-items: center; gap: 6px; }
.guild-actions .retro-btn { margin-top: 0; padding: 3px 8px; }
.guild-online-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4a566b; }
.guild-online-dot.on { background: #76ff03; box-shadow: 0 0 4px #76ff03; }
.guild-role { font-size: 10px; font-weight: bold; color: #88a0c0; }
.guild-role.role-master { color: #ffd54f; }
.guild-role.role-general { color: #ff9900; }
.guild-role.role-sergeant { color: #4fc3f7; }
.guild-role-select { background: #0d121a; border: 1px solid #212c3d; color: #fff; padding: 3px; font-size: 10px; }

/* SCOUTER */
.scouter-toolbar { display: flex; gap: 6px; margin: 8px 0; }
.scouter-toolbar input {
    flex: 1;
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #fff;
    padding: 6px;
    font-size: 11px;
}
.scouter-toolbar select {
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #fff;
    padding: 6px;
    font-size: 11px;
}
.scouter-list { list-style: none; margin-top: 6px; }
.scouter-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 6px 10px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 3px;
    margin-bottom: 4px;
}
.scouter-list li.me { border-color: #ff9900; }
.scouter-list li.scouter-empty { justify-content: center; color: #88a0c0; }
.scouter-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.scouter-dot.on { background: #76ff03; box-shadow: 0 0 4px #76ff03; }
.scouter-dot.off { background: #5d6a80; }
.scouter-name { color: #fff; font-weight: bold; min-width: 110px; }
.scouter-info { flex: 1; color: #88a0c0; font-size: 10px; }
.scouter-status { font-size: 10px; font-weight: bold; }
.scouter-status.on { color: #76ff03; }
.scouter-status.off { color: #7d8aa1; }

.scouter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 12px;
}
.scouter-box { width: 460px; max-width: 100%; max-height: 90vh; display: flex; flex-direction: column; }
.scouter-box .box-content { overflow-y: auto; }
.scouter-header { display: flex; justify-content: space-between; align-items: center; }
.scouter-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; }
.scouter-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.scouter-face { width: 84px; height: 84px; object-fit: cover; border: 2px solid #4f6890; background: #000; }
.scouter-head-info { display: flex; flex-direction: column; gap: 3px; }
.scouter-title { color: #ffcc00; font-size: 15px; font-weight: bold; }
.scouter-sub { color: #88a0c0; font-size: 11px; }
.scouter-section {
    margin: 14px 0 6px;
    padding-bottom: 3px;
    border-bottom: 1px solid #212c3d;
    color: #ffcc00;
    font-size: 11px;
    font-weight: bold;
}
.scouter-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 11px; }
.scouter-label { color: #88a0c0; }
.scouter-value { color: #fff; text-align: right; }
.scouter-equip { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.scouter-set-img { width: 64px; height: 64px; object-fit: cover; border: 1px solid #4f6890; background: #000; }
.scouter-equip-info { display: flex; flex-direction: column; gap: 3px; }
.scouter-equip-info .scouter-value { text-align: left; }
.scouter-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.scouter-skill { padding: 2px 6px; font-size: 10px; border-radius: 3px; border: 1px solid #212c3d; }
.scouter-skill.learned { background: #1b4d20; color: #c8ffc8; border-color: #4caf50; }
.scouter-skill.locked { background: #0d121a; color: #5d6a80; }

/* ==========================================================================
   BANCO
   ========================================================================== */
#tab-bank h3, #tab-boss h3 { color: #ffcc00; margin-bottom: 6px; }
.bank-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #141923; color: #d1d5db; }
.bank-row:last-child { border-bottom: none; }
.bank-row strong { color: #ff9900; }
.bank-row .bank-balance { color: #76ff03; font-size: 15px; }
.bank-ops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bank-ops input {
    width: 100%;
    background: #0d121a;
    border: 1px solid #212c3d;
    color: #fff;
    padding: 7px;
    margin-bottom: 4px;
}
.bank-btns { display: flex; gap: 6px; }
.bank-btns .retro-btn { margin-top: 4px; }

/* ==========================================================================
   EVOLUÇÃO DA GUILD
   ========================================================================== */
.bar-gold { background: linear-gradient(180deg, #ffd54f 0%, #ff8f00 100%); }
.guild-evo-main { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.guild-evo-img {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    background: #000;
    border: 2px solid #3d5075;
    border-radius: 4px;
    overflow: hidden;
}
.guild-evo-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guild-evo-info { flex: 1; min-width: 220px; }
.guild-evo-level { color: #ffcc00; font-size: 15px; font-weight: bold; }
.guild-evo-level strong { color: #ff9900; }
.guild-evo-bonus { color: #76ff03; margin: 2px 0 6px; font-size: 11px; }
.guild-evo-deposit { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guild-evo-deposit .chat-input-group { margin: 0; }
.guild-evo-deposit input { min-width: 0; }

/* ==========================================================================
   BOSS FIGHTER
   ========================================================================== */
.boss-notice {
    margin: 8px 0 12px;
    padding: 10px 12px;
    text-align: center;
    background: #1a0f0f;
    border: 1px solid #5a2222;
    border-radius: 4px;
    color: #ffcc00;
    font-weight: bold;
    line-height: 1.5;
}
.boss-notice.open { background: #3a0d0d; border-color: #ff3300; color: #fff; animation: boss-pulse 1s infinite alternate; }
.boss-notice.fight { background: #22101a; border-color: #b388ff; }
@keyframes boss-pulse { from { box-shadow: 0 0 4px #ff3300; } to { box-shadow: 0 0 14px #ff3300; } }

.boss-card {
    max-width: 240px;
    margin: 0 auto 12px;
    padding: 12px;
    text-align: center;
    background: #0a0f18;
    border: 1px solid #212c3d;
    border-radius: 4px;
}
.boss-face { width: 180px; height: 180px; border-color: #ff3300; box-shadow: 0 0 10px rgba(255, 51, 0, 0.5); }
.boss-card h5 { color: #fff; font-size: 15px; margin-bottom: 2px; }
.boss-level { color: #ffcc00; margin-bottom: 4px; }
.boss-level strong { color: #ff9900; }
.boss-card .bar-label { text-align: left; }
.boss-join-btn { width: 100%; margin-top: 12px; font-size: 14px; padding: 9px; }

.boss-divider { border: none; border-top: 2px solid #3d5075; margin: 14px 0 6px; }
.boss-others-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.boss-other {
    padding: 5px;
    text-align: center;
    background: #0a0f18;
    border: 1px solid #212c3d;
    border-radius: 4px;
}
.boss-other.dead { opacity: 0.45; filter: grayscale(1); }
.boss-other-face { width: 100%; aspect-ratio: 1 / 1; background: #000; border: 1px solid #3d5075; overflow: hidden; margin-bottom: 4px; }
.boss-other-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.boss-other-name { color: #fff; font-size: 10px; font-weight: bold; word-break: break-word; }
.boss-other-meta { color: #88a0c0; font-size: 9px; }
.boss-other .bar-outer { height: 7px; margin-top: 3px; }
.boss-log { height: 170px; }
#boss-arena { scroll-margin-top: 10px; }
#pve-arena { scroll-margin-top: 10px; }
.boss-result-line { color: #d1d5db; margin: 3px 0; }
.boss-result-line strong { color: #ffcc00; }
/* ==========================================================================
   CHAT PRIVADO EM JANELAS (estilo rede social) E CHAT DA GUILD
   ========================================================================== */
#pm-dock {
    position: fixed;
    right: 350px;
    bottom: 0;
    z-index: 900;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 8px;
    max-width: calc(100vw - 370px);
    pointer-events: none;
}
.pm-window {
    pointer-events: auto;
    width: 260px;
    display: flex;
    flex-direction: column;
    background: #141923;
    border: 1px solid #3d5075;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.6);
}
.pm-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: linear-gradient(180deg, #cc6600 0%, #803300 100%);
    border-radius: 5px 5px 0 0;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 1px 1px 0 #000;
}
.pm-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-head-btns button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    padding: 0 4px;
}
.pm-head-btns button:hover { color: #ffcc00; }
.pm-body {
    height: 220px;
    overflow-y: auto;
    padding: 6px;
    background: #080b10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.pm-msg {
    max-width: 85%;
    padding: 4px 8px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.3;
    word-break: break-word;
}
.pm-msg.mine { align-self: flex-end; background: #1565c0; color: #fff; border-bottom-right-radius: 2px; }
.pm-msg.theirs { align-self: flex-start; background: #263247; color: #e0e0e0; border-bottom-left-radius: 2px; }
.pm-foot { display: flex; gap: 4px; padding: 6px; background: #0d121a; }
.pm-foot input {
    flex: 1;
    min-width: 0;
    background: #080b10;
    border: 1px solid #212c3d;
    border-radius: 10px;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
}
.pm-foot .retro-btn { padding: 4px 8px; }
.pm-window.minimized .pm-body,
.pm-window.minimized .pm-foot { display: none; }
.pm-window.unread .pm-head { background: linear-gradient(180deg, #e53935 0%, #8e0000 100%); animation: boss-pulse 1s infinite alternate; }

.guild-chat-box { height: 200px; }
.gchat-meta { color: #6b7a90; font-size: 10px; }
.gchat-author { color: #4fc3f7; }
.gchat-author.me { color: #ff9900; }

/* DIÁRIO: matador do boss e últimas vitórias PvP */
.diary-pvp-list { list-style: none; }
.diary-pvp-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #1a2433; color: #ccc; font-size: 11px; }
.diary-pvp-list li:last-child { border-bottom: none; }
.diary-pvp-list strong { color: #76ff03; }
.diary-pvp-date { color: #6688aa; font-size: 10px; white-space: nowrap; }
.diary-pvp-empty { color: #6b7a90; justify-content: center !important; }

/* ==========================================================================
   ARENA TODOS x TODOS e MEDALHAS
   ========================================================================== */
#tab-arena h3 { color: #ffcc00; margin-bottom: 6px; }
#arena-room { scroll-margin-top: 10px; }
.arena-signup-info { color: #fff; margin-bottom: 8px; }
.arena-signup-info strong { color: #ffcc00; }
.arena-signup-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.plat-card.dead { opacity: 0.45; filter: grayscale(1); }

.medals-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; }
.medal-box {
    min-width: 92px;
    padding: 8px 10px;
    background: #0d121a;
    border: 1px solid #212c3d;
    border-radius: 4px;
    text-align: center;
    color: #fff;
}
.medal-box .medal-icon { display: block; font-size: 26px; line-height: 1.2; }
.medal-box .medal-count { font-weight: bold; font-size: 15px; }
.medal-box.gold { border-color: #ffcc00; }
.medal-box.silver { border-color: #c0c8d4; }
.medal-box.bronze { border-color: #cd7f32; }
.medal-box.empty { opacity: 0.45; }

/* ==========================================================================
   RECUPERAR CONTA, TERMOS, DENÚNCIA, CONTAS BANIDAS E MESTRE KAIOH
   ========================================================================== */
.bans-link { right: 120px; }

.field-hint {
    display: block;
    margin-top: 3px;
    color: #88a0c0;
    font-size: 10px;
}

.terms-check { margin: 4px 0 10px; font-size: 12px; }
.terms-check label { display: flex; gap: 6px; align-items: center; cursor: pointer; color: #ccd7ea; }
.terms-check a { color: #ff9900; font-weight: bold; }

.terms-box { width: 600px; }
.terms-text { font-size: 11px; line-height: 1.55; color: #d0dcf0; }
.terms-text h4 { margin: 14px 0 4px; padding-bottom: 3px; border-bottom: 1px solid #212c3d; color: #ffcc00; font-size: 12px; }
.terms-text ul { margin: 4px 0 4px 18px; }
.terms-text li { margin-bottom: 4px; }

.recover-result {
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #3d5075;
    background: #0d131f;
    color: #76ff03;
    font-size: 12px;
    word-break: break-all;
}

.report-overlay { z-index: 1100; }
.report-box { width: 380px; }
.report-options { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.report-options label { display: flex; gap: 6px; align-items: center; cursor: pointer; color: #ccd7ea; font-size: 12px; }
#report-other { width: 100%; background: #0d121a; border: 1px solid #212c3d; color: #fff; padding: 6px; margin-bottom: 8px; }
.report-actions { display: flex; gap: 8px; margin-top: 6px; }
.scouter-report-actions { margin-top: 16px; text-align: center; }

.kaioh-info {
    margin: 8px 0;
    padding: 8px 10px;
    border-left: 3px solid #ffcc00;
    background: #172131;
    color: #ffcc00;
    font-weight: bold;
}

.bans-list li { display: flex; justify-content: space-between; gap: 12px; cursor: default; }
.bans-list li:hover { background: transparent; color: inherit; }
.bans-name { color: #fff; font-weight: bold; min-width: 110px; }
.bans-reason { flex: 1; color: #ff9900; }
.bans-time { color: #88a0c0; font-size: 10px; white-space: nowrap; }

.plat-key { margin: 10px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.plat-key-code { color: #ffcc00; font-size: 20px; letter-spacing: 4px; font-family: monospace; }
.plat-key input { width: 120px; text-transform: uppercase; background: #0d121a; border: 1px solid #212c3d; color: #fff; padding: 6px; text-align: center; font-weight: bold; }
.plat-key .field-hint { flex-basis: 100%; margin: 0; }

/* ==========================================================================
   TELA DE CARREGAMENTO
   ========================================================================== */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: #0b0d12;
    transition: opacity 0.4s ease;
}
#page-loader.hide { opacity: 0; pointer-events: none; }
.loader-title {
    color: #ff9900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 38px;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 2px 2px 0px #000, -1px -1px 0 #8b0000;
}
.loader-spinner {
    width: 58px;
    height: 58px;
    border: 6px solid #212c3d;
    border-top-color: #ff9900;
    border-radius: 50%;
    animation: loader-spin 0.9s linear infinite;
}
.loader-text { color: #88a0c0; font-size: 12px; }
@keyframes loader-spin { to { transform: rotate(360deg); } }

/* ESFERAS DO DRAGÃO */
.dragon-btn { display: block; width: 100%; margin-top: 10px; }
.dragon-balls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 10px 0; }
.dball {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-size: 11px;
    color: #b00000;
    text-shadow: 0 0 2px #fff3;
    background: radial-gradient(circle at 35% 30%, #ffe28a 0%, #ff9900 55%, #c25a00 100%);
    border: 2px solid #8a3d00;
    box-shadow: 0 0 10px #ff990088;
}
.dball.missing { background: #151b27; border: 2px dashed #2a374e; box-shadow: none; color: #3a4a66; }

.shenlong-box { text-align: center; margin-top: 8px; }
.shenlong-photo {
    width: 260px;
    height: 260px;
    max-width: 100%;
    margin: 0 auto 12px;
    border: 1px solid #2a374e;
    background: #0d121a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.shenlong-photo img { width: 100%; height: 100%; object-fit: cover; }
.shenlong-ph { padding: 12px; color: #55688a; font-size: 11px; }

.shenlong-wishes { margin-top: 10px; text-align: left; }
.wish-title { color: #ffcc00; font-weight: bold; margin-bottom: 6px; text-align: center; }
.wish-option {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    text-align: left;
    background: #172131;
    border: 1px solid #3d5075;
    color: #fff;
    cursor: pointer;
}
.wish-option:hover:not(:disabled) { border-color: #ff9900; background: #1d2a40; }
.wish-option:disabled { opacity: 0.55; cursor: not-allowed; }
.wish-option strong { display: block; color: #ffcc00; margin-bottom: 3px; }
.wish-option span { display: block; font-size: 11px; color: #c9d4e8; }
.wish-option .wish-reason { color: #ff7777; margin-top: 4px; font-weight: bold; }

/* CONVERSAS SALVAS */
#pm-convos li { display: flex; justify-content: space-between; gap: 6px; cursor: pointer; }
.pm-badge { background: #cc2222; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 10px; font-weight: bold; }

/* ==========================================================================
   ATALHOS DA COLUNA ESQUERDA + PEÇAS DO CELULAR (escondidas no PC)
   ========================================================================== */
.left-quick { margin-top: 10px; }
#mobile-bar, #mobile-backdrop, .mobile-menu-close, .mobile-extra { display: none; }

/* ==========================================================================
   LAYOUT PARA CELULAR / TELA PEQUENA
   Só vale em telas de até 900px de largura: o layout do PC não é tocado.
   Mesma aparência (cores, caixas, botões), mas em coluna única, com menu em gaveta.
   ========================================================================== */
@media (max-width: 900px) {
    html, body { overflow-x: hidden; }
    body {
        font-size: 13px;
        padding: 0 0 calc(24px + env(safe-area-inset-bottom));
        background-attachment: scroll;
    }
    body.menu-open { overflow: hidden; }
    #portal-container { padding: 0 8px; }

    /* cabeçalho compacto */
    #game-header { padding: 10px 8px; margin: 8px 0; }
    #game-header .logo-title { font-size: 22px; letter-spacing: 1px; }
    .logo-subtitle { display: none; }
    .logout-link { position: static; display: inline-block; margin: 6px 8px 0; font-size: 12px; }

    /* barra fixa no topo: menu + página atual + HP/KI/STAMINA sempre à vista */
    #mobile-bar {
        display: flex;
        align-items: center;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 2000;
        margin: 0 0 8px;
        padding: 8px;
        background: linear-gradient(180deg, #1f2b42 0%, #0d131f 100%);
        border: 2px solid #3d5075;
        border-radius: 6px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.7);
    }
    .mobile-menu-btn {
        flex: 0 0 auto;
        padding: 11px 12px;
        background: linear-gradient(180deg, #ffb340 0%, #c46a00 100%);
        border: 1px solid #8a4a00;
        border-radius: 4px;
        color: #fff;
        font-weight: bold;
        font-size: 13px;
        text-shadow: 1px 1px 0 #000;
        cursor: pointer;
    }
    .mobile-hud { flex: 1; min-width: 0; }
    .mobile-hud-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 11px; font-weight: bold; }
    #m-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ff9900; }
    #m-info { white-space: nowrap; color: #ffcc00; }
    .mobile-bars { display: grid; gap: 3px; }
    .mobile-bars .bar-outer { height: 6px; margin: 0; }
    .mobile-bars .bar-inner { height: 100%; }

    /* coluna única: conteúdo primeiro, perfil depois; o menu vira gaveta */
    #game-layout { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
    #center-panel { order: 1; min-width: 0; }
    #left-panel { order: 2; }
    #left-panel .left-links { display: none; } /* ficam no fim da gaveta */
    .box-content { padding: 10px; }

    #right-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(88vw, 360px);
        z-index: 3000;
        overflow-y: auto;
        border-radius: 0 8px 8px 0;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.8);
    }
    body.menu-open #right-panel { transform: translateX(0); }
    #mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 2900;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    body.menu-open #mobile-backdrop { opacity: 1; pointer-events: auto; }
    #right-panel .box-header { position: relative; }
    .mobile-menu-close {
        display: block;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: #2a1111;
        border: 1px solid #8b0000;
        border-radius: 4px;
        color: #fff;
        font-size: 13px;
        cursor: pointer;
    }
    #right-panel .flex-column-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .mobile-extra { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 8px; margin-top: 4px; border-top: 1px solid #2a374e; }
    #right-panel .nav-btn { min-height: 46px; padding: 10px 8px; font-size: 12px; }
    #right-panel .nav-count { display: block; font-size: 10px; font-weight: normal; }

    /* toque: botões maiores e campos sem o "zoom" automático do iPhone */
    input, select, textarea { font-size: 16px; }
    .retro-btn { min-height: 40px; }

    /* grades que ficam apertadas em tela pequena */
    .opponents-grid { grid-template-columns: repeat(3, 1fr); }
    .inventory-grid, .shop-grid, .plat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plat-lists, .bank-ops, .guild-evo-deposit, .chat-container-layout { grid-template-columns: 1fr; }

    /* tamanhos fixos do PC reduzidos */
    #player-avatar, .avatar-upload-btn { width: 90px; }
    #player-avatar { height: 90px; }
    .page-banner { height: 90px; }
    .house-image-box { height: 180px; }
    .fighter-face, .plat-self-face { width: 110px; height: 110px; }
    /* tela de combate: os dois lutadores dividem a largura igualmente e ficam centralizados */
    .battle-screen { justify-content: center; gap: 4px; padding: 10px 6px; }
    .fighter-box { flex: 1 1 0; min-width: 0; max-width: 170px; }
    .battle-screen .fighter-face { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 120px; }
    .fighter-box h5 { font-size: 12px; }
    .vs-badge { flex: 0 0 auto; font-size: 16px; }
    .boss-face { width: 140px; height: 140px; }
    .guild-evo-img { width: 120px; height: 120px; }
    .guild-evo-info, .guild-member-main, .scouter-name, .bans-name { min-width: 0; }
    .panel-box select { width: 100%; }
    .chat-box { height: 46vh; max-height: 320px; }
    .site-list .li-meta { white-space: normal; }
    #center-panel img { max-width: 100%; }

    /* janelinhas de conversa, avisos e quadros ocupam a largura da tela */
    #pm-dock { right: 0; left: 0; max-width: 100vw; padding: 0 6px; }
    .pm-window { width: min(260px, 88vw); }
    #toast-container { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); max-width: none; }
    .scouter-overlay { padding: 8px; }
    .scouter-box, .terms-box, .report-box { width: 100%; }
}

/* ==========================================================================
   LINKS DA CONTA (coluna esquerda) E RODAPÉ
   ========================================================================== */
.left-links { margin-top: 6px; padding-top: 4px; border-top: 1px solid #212c3d; }
.left-links .account-link { margin-top: 12px; }
.logout-btn { color: #ff5252; }
.logout-btn:hover { color: #ff8a80; }

#game-footer {
    margin: 14px 0 6px;
    padding: 16px 18px;
    text-align: center;
    background: linear-gradient(180deg, #0d131f 0%, #1f2b42 100%);
    border: 2px solid #3d5075;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.7);
    color: #88a0c0;
    font-size: 11px;
    line-height: 1.6;
}
#game-footer .footer-title {
    margin-bottom: 6px;
    color: #ff9900;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px #000, -1px -1px 0 #8b0000;
}
#game-footer a { color: #ff9900; font-weight: bold; text-decoration: none; }
#game-footer a:hover { color: #ffcc00; text-decoration: underline; }

#game-footer .footer-online { margin: 8px 0; color: #ffcc00; font-size: 13px; font-weight: bold; }
#game-footer .footer-online #online-now { color: #76ff03; }

.toast { cursor: pointer; }