/* Tema exclusivo do Terraria (carregado após o style.css) */
body {
    background-color: #0B1310;
}

.topo h1 {
    color: #22C55E;
}

/* Menu lateral mantém a cor da página principal e brilha em Verde Terraria no hover */
.menu-btn:hover {
    background-color: rgba(34, 197, 94, 0.14);
    color: #4ADE80;
    border-color: #22C55E;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.35);
}

.menu-btn.ativo {
    background-color: #151C2C;
    color: #F1F5F9;
    border-color: #334155;
}

.idioma-global {
    border-color: #22C55E;
    background-color: #13241C;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}

.btn-bandeira.ativo {
    background-color: #22C55E;
    color: #0B1310;
}

.busca-box input,
.controle-qtd,
.bloco-notas,
.game-card {
    background-color: #13241C;
    border-color: #1E352B;
}

.busca-box input:focus,
.bloco-notas textarea:focus {
    border-color: #22C55E;
}

.btn-item {
    background-color: #172B22;
    color: #4ADE80;
    border-color: #234234;
}

.btn-item:hover {
    background-color: #22C55E;
    color: #0B1310;
}

.controle-qtd input {
    border-color: #22C55E;
    background-color: #0B1310;
}

/* Ramos da Árvore em Verde Esmeralda e Ouro */
.arvore ul > li::before {
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

.arvore > li > ul > li:first-child::before {
    background: linear-gradient(180deg, #FACC15, #22C55E);
}

.arvore ul > li::after {
    border-left-color: #22C55E;
    border-bottom-color: #22C55E;
    box-shadow: -2px 2px 10px rgba(34, 197, 94, 0.35);
}

.no-item {
    background-color: #13241C;
    border-color: #1E352B;
}

.no-item:hover {
    border-color: #22C55E;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.18);
}

.no-item.raiz {
    border-color: #FACC15;
    background-color: #1B2A1E;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.2);
}

.no-item input[type="checkbox"] {
    accent-color: #22C55E;
}

.qtd {
    color: #4ADE80;
    background-color: rgba(34, 197, 94, 0.15);
}

.tag-estacao {
    font-size: 0.8rem;
    color: #FACC15;
    background-color: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.35);
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: bold;
}

.bloco-notas h3 {
    color: #22C55E;
}

.bloco-notas textarea {
    background-color: #0B1310;
    border-color: #1E352B;
}

/* === ABA CHEFES E PROGRESSÃO === */
.progresso-box {
    background-color: #13241C;
    border: 1px solid #1E352B;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.progresso-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.progresso-barra-fundo {
    width: 100%;
    height: 12px;
    background-color: #0B1310;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #1E352B;
}

.progresso-barra-preenchimento {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #22C55E, #FACC15);
    transition: width 0.3s ease;
}

.fase-titulo {
    font-size: 1.15rem;
    color: #FACC15;
    margin: 22px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #1E352B;
}

.lista-chefes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.card-chefe {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background-color: #13241C;
    border: 2px solid #1E352B;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: border-color 0.2s, opacity 0.2s;
}

.card-chefe:hover {
    border-color: #22C55E;
}

.card-chefe.derrotado {
    border-color: #22C55E;
    opacity: 0.65;
}

.card-chefe.derrotado .chefe-nome {
    text-decoration: line-through;
    color: #4ADE80;
}

.card-chefe input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #22C55E;
    cursor: pointer;
    flex-shrink: 0;
}

.chefe-nome {
    font-weight: bold;
    font-size: 1.05rem;
    color: #F1F5F9;
    display: block;
    margin-bottom: 6px;
}

.chefe-detalhe {
    font-size: 0.86rem;
    color: #94A3B8;
    line-height: 1.45;
}

.chefe-detalhe strong {
    color: #CBD5E1;
}

/* Ícones de o que o chefe libera + Tooltip (PC hover e Celular toque) */
.chefe-drops-linha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chefe-drop-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #0B1310;
    border: 1px solid #1E352B;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.chefe-drop-chip:hover,
.chefe-drop-chip.ativo {
    border-color: #FACC15;
    transform: translateY(-2px);
}

.chefe-drop-chip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chefe-drop-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #0F1A15;
    color: #FACC15;
    border: 1px solid #FACC15;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s;
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.chefe-drop-chip:hover .chefe-drop-tooltip,
.chefe-drop-chip.ativo .chefe-drop-tooltip {
    opacity: 1;
    visibility: visible;
}

/* === ABA GUIA DE NPCS E PILÕES === */
.piloes-resumo {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.pilao-btn {
    background-color: #13241C;
    color: #4ADE80;
    border: 1px solid #1E352B;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.86rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.pilao-btn:hover,
.pilao-btn.ativo {
    background-color: #22C55E;
    color: #0B1310;
    border-color: #22C55E;
}

.lista-npcs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 14px;
}

.card-npc {
    background-color: #13241C;
    border: 1px solid #1E352B;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-npc-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.npc-nome {
    font-size: 1.08rem;
    font-weight: bold;
    color: #F1F5F9;
}

.npc-bioma-tag {
    font-size: 0.78rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: rgba(250, 204, 21, 0.14);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

.npc-linha {
    font-size: 0.86rem;
    color: #94A3B8;
}

.npc-linha strong {
    color: #CBD5E1;
}

/* === ABA ONDE PAREI / MAPA MENTAL === */
.guia-rapido-mapa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: #13241C;
    border: 1px solid #1E352B;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 22px;
}

.guia-pill {
    font-size: 0.85rem;
    font-weight: bold;
    padding: 5px 12px;
    border-radius: 999px;
}

.guia-pill.ouro {
    background: rgba(250, 204, 21, 0.15);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.4);
}

.guia-pill.verde {
    background: rgba(34, 197, 94, 0.15);
    color: #4ADE80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.guia-seta {
    color: #64748B;
    font-weight: bold;
}

.mapa-objetivo-card {
    background-color: #1B2A1E;
    border: 2px solid #FACC15;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(250, 204, 21, 0.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapa-card-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.mapa-tag-agora {
    font-size: 0.82rem;
    font-weight: bold;
    letter-spacing: 0.8px;
    color: #FACC15;
}

.mapa-input-principal {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(250, 204, 21, 0.45);
    background-color: #0B1310;
    color: #F1F5F9;
    font-size: 1.15rem;
    font-weight: bold;
    outline: none;
}

.mapa-input-secundario {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #1E352B;
    background-color: #0B1310;
    color: #CBD5E1;
    font-size: 0.95rem;
    outline: none;
}

.mapa-arvore-card,
.mapa-ideias-card {
    background-color: #13241C;
    border: 1px solid #1E352B;
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.mapa-form-add {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 18px 0;
}

.mapa-form-add input {
    flex: 1;
    min-width: 240px;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #1E352B;
    background-color: #0B1310;
    color: #F1F5F9;
    font-size: 0.96rem;
    outline: none;
}

.mapa-form-add input:focus {
    border-color: #22C55E;
}

.mapa-no-passo {
    cursor: default;
}

.mapa-no-passo:hover {
    transform: none;
}

.mapa-no-passo:has(input:checked)::after {
    display: none;
}

.mapa-concluido {
    border-color: #22C55E !important;
    opacity: 0.68;
}

.mapa-concluido span:not(.qtd) {
    text-decoration: line-through;
}

.mapa-drag-handle {
    cursor: grab;
    touch-action: none;
    user-select: none;
    font-size: 1.3rem;
    color: #64748B;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}

.mapa-drag-handle:hover {
    color: #4ADE80;
    background-color: rgba(34, 197, 94, 0.14);
}

.mapa-drag-handle:active {
    cursor: grabbing;
}

.mapa-item-arrastando {
    opacity: 0.45;
}

.mapa-item-alvo > .mapa-no-passo {
    border-color: #22C55E !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.45);
}

.mapa-sub-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    margin-left: 52px;
}

.mapa-sub-form input {
    flex: 1;
    max-width: 420px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #22C55E;
    background-color: #0B1310;
    color: #F1F5F9;
    font-size: 0.9rem;
    outline: none;
}

.mapa-lista-ideias {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mapa-ideia-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background-color: #0B1310;
    border: 1px solid #1E352B;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.94rem;
}

/* === TIPOGRAFIA ESTILO TERRARIA (Pixelify Sans + Patrick Hand) === */
:root {
    --fonte-terraria-titulo: 'Pixelify Sans', sans-serif;
    --fonte-terraria-corpo: 'Patrick Hand', 'Segoe UI', sans-serif;
    --sombra-pixel: 2px 2px 0 #050D08, -1px -1px 0 #050D08, 1px -1px 0 #050D08, -1px 1px 0 #050D08;
}

body {
    font-family: var(--fonte-terraria-corpo);
    font-size: 1.06rem;
    letter-spacing: 0.25px;
}

button,
input,
textarea,
select {
    font-family: var(--fonte-terraria-corpo);
}

.sidebar-titulo,
.topo h1,
.fase-titulo,
.chefe-nome,
.npc-nome,
.bloco-notas h3,
.mapa-arvore-card h3,
.mapa-ideias-card h3,
.mapa-tag-agora,
.progresso-topo {
    font-family: var(--fonte-terraria-titulo);
    letter-spacing: 0.4px;
}

.sidebar-titulo,
.topo h1,
.fase-titulo {
    text-shadow: var(--sombra-pixel);
}

.topo h1 {
    font-size: 2.05rem;
    font-weight: 700;
}

.topo p {
    font-size: 1.08rem;
}

.menu-btn {
    font-size: 1.05rem;
    letter-spacing: 0.25px;
}

.qtd,
.tag-estacao,
.npc-bioma-tag,
.pilao-btn,
.guia-pill {
    font-family: var(--fonte-terraria-titulo);
    letter-spacing: 0.3px;
}

.chefe-nome,
.npc-nome {
    font-size: 1.15rem;
    text-shadow: 1px 1px 0 #050D08;
}

.chefe-detalhe,
.npc-linha,
.no-item,
.btn-item,
.mapa-ideia-item {
    font-size: 1.05rem;
}

/* Mantém os sprites pixel-art do Terraria nítidos sem borrar */
.no-item img,
.btn-item img,
.chefe-drop-chip img {
    image-rendering: pixelated;
}

@media (max-width: 768px) {
    .topo h1 {
        font-size: 1.55rem;
    }
    .menu-btn {
        font-size: 0.96rem;
    }
}


/* === ÍCONES REAIS DO JOGO NOS TÍTULOS, MENU E PÍLULAS === */
.sidebar-titulo,
.ter-titulo-com-ico,
.ter-sub-com-ico,
.mapa-tag-agora,
.guia-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ter-titulo-com-ico {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ter-ico-sidebar {
    width: 26px;
    height: 26px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.ter-ico-titulo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.ter-ico-menu {
    width: 20px;
    height: 20px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.ter-ico-sub {
    width: 20px;
    height: 20px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.ter-ico-pill {
    width: 18px;
    height: 18px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .ter-ico-titulo {
        width: 24px;
        height: 24px;
    }
    .ter-ico-menu {
        width: 17px;
        height: 17px;
    }
}


/* === ÁRVORE DE ITENS VIVA DO TERRARIA (TRONCO, GALHOS E FOLHAS) === */
#container-arvore {
    padding: 14px 16px 24px 16px;
    border-radius: 16px;
    background: radial-gradient(ellipse at top left, rgba(34, 197, 94, 0.08), transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(124, 71, 38, 0.12), transparent 55%);
}

/* Raiz = Base do Tronco de Madeira Viva com topo de grama do Terraria */
#container-arvore .no-item.raiz {
    background:
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.12) 0px,
            rgba(0, 0, 0, 0.12) 3px,
            transparent 3px,
            transparent 11px
        ),
        linear-gradient(135deg, #6E4124 0%, #4E2B15 55%, #3B1F0F 100%);
    border: 2px solid #9A6037;
    border-top: 4px solid #22C55E;
    border-radius: 10px 10px 14px 14px;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.48),
        inset 0 2px 0 rgba(134, 239, 172, 0.25),
        inset 0 -3px 0 rgba(35, 16, 6, 0.65);
    color: #FEF3C7;
}

#container-arvore .no-item.raiz:hover {
    border-color: #C2824F;
    border-top-color: #4ADE80;
}

/* Tronco principal vertical (1º nível saindo da raiz) */
#container-arvore .arvore > li > ul > li::before {
    width: 10px;
    left: -38px;
    background: linear-gradient(90deg, #3B1F0F 0%, #8C532E 42%, #A6693D 58%, #4A2814 100%);
    border-left: 1px solid #241106;
    border-right: 1px solid #241106;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.45);
    border-radius: 4px;
}

/* Galhos secundários verticais (níveis mais fundos ficam um pouco mais finos) */
#container-arvore .arvore ul ul > li::before {
    width: 6px;
    left: -36px;
    background: linear-gradient(90deg, #4A2814 0%, #8C532E 50%, #593219 100%);
    box-shadow: 1px 0 6px rgba(0, 0, 0, 0.35);
    border-radius: 3px;
}

/* Galho curvo conectando tronco/ramo até cada folha */
#container-arvore .arvore ul > li::after {
    left: -34px;
    width: 35px;
    height: 16px;
    border-left: 5px solid #7D4927;
    border-bottom: 5px solid #7D4927;
    border-bottom-left-radius: 14px;
    box-shadow: -2px 3px 6px rgba(0, 0, 0, 0.35);
}

#container-arvore .arvore ul ul > li::after {
    border-left-width: 4px;
    border-bottom-width: 4px;
    border-left-color: #945A32;
    border-bottom-color: #945A32;
}

/* Itens filhos = Folhas estilizadas do Terraria */
#container-arvore .no-item:not(.raiz) {
    background:
        linear-gradient(135deg, rgba(74, 222, 128, 0.14) 0%, transparent 45%),
        linear-gradient(145deg, #174D2E 0%, #103521 58%, #0B2416 100%);
    border: 1.5px solid #22C55E;
    border-radius: 4px 24px 4px 24px;
    padding: 10px 18px 10px 14px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(134, 239, 172, 0.25),
        inset 0 -2px 0 rgba(6, 20, 12, 0.55);
    transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

#container-arvore .no-item:not(.raiz):hover {
    border-color: #4ADE80;
    box-shadow:
        0 0 14px rgba(34, 197, 94, 0.38),
        inset 0 1px 0 rgba(187, 247, 208, 0.35);
    transform: translateX(3px);
}

/* Folha concluída ganha tom dourado suave */
#container-arvore .no-item:not(.raiz):has(input:checked) {
    background: linear-gradient(145deg, #2D3B18 0%, #1C2711 100%);
    border-color: #FACC15;
    opacity: 0.78;
}

/* Quantidade destacada como broto dourado dentro da folha */
#container-arvore .no-item:not(.raiz) .qtd {
    background-color: rgba(250, 204, 21, 0.16);
    color: #FDE047;
    border: 1px solid rgba(250, 204, 21, 0.35);
}

@media (max-width: 768px) {
    #container-arvore {
        padding: 10px 8px 18px 8px;
    }
    #container-arvore .arvore > li > ul > li::before {
        width: 7px;
        left: -20px;
    }
    #container-arvore .arvore ul ul > li::before {
        width: 5px;
        left: -19px;
    }
    #container-arvore .arvore ul > li::after {
        left: -17px;
        width: 19px;
        height: 12px;
        border-left-width: 4px;
        border-bottom-width: 4px;
        border-bottom-left-radius: 10px;
    }
    #container-arvore .no-item:not(.raiz) {
        border-radius: 4px 18px 4px 18px;
        padding: 8px 12px;
    }
}


/* === SPRITE SHEETS E IMAGENS REAIS DOS CHEFES (TERRARIA 1.4.5) === */
.ter-sprite {
    display: inline-block;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    flex-shrink: 0;
    vertical-align: middle;
}

.chefe-avatar-box {
    min-width: 52px;
    height: 52px;
    padding: 4px;
    border-radius: 12px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, #09140E 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(134, 239, 172, 0.2), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.card-chefe.derrotado .chefe-avatar-box {
    border-color: rgba(250, 204, 21, 0.45);
    filter: grayscale(0.35);
}

@media (max-width: 768px) {
    .chefe-avatar-box {
        min-width: 44px;
        height: 44px;
    }
}


/* === RETRATOS DOS NPCS (TERRARIA 1.4.5) === */
.npc-titulo-com-ico {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.npc-avatar-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.16) 0%, #09140E 100%);
    border: 1.5px solid rgba(34, 197, 94, 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}


/* === NOVAS ABAS: BUILDS, POÇÕES/PREFIXOS E BRILHO (SHIMMER) === */
.build-grid,
.ter-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.shimmer-par-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.96rem;
}

@media (max-width: 768px) {
    .build-grid,
    .ter-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* === DESIGN SYSTEM GAME COMPANION CENTER — TERRARIA === */

/* Botão Retirar / Ver explicações em Planejamentos e Notas */
.guia-pills-grupo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.guia-acoes-dir {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.btn-toggle-exp {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.72);
    color: #CBD5E1;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.btn-toggle-exp:hover {
    border-color: #4ADE80;
    color: #F8FAFC;
    background: rgba(34, 197, 94, 0.14);
}

#aba-ondeparei.ocultar-explicacoes .mapa-explicacao {
    display: none !important;
}

/* Padrão global de Checkbox Dark em todo o Terraria */
input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 7px;
    border: 2px solid #475569;
    background: #0B1210;
    box-shadow: none;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
    flex-shrink: 0;
    margin: 0;
}

input[type="checkbox"]:hover {
    border-color: #FACC15;
    box-shadow: 0 0 8px rgba(250, 204, 21, 0.28);
    transform: scale(1.06);
}

input[type="checkbox"]:checked {
    border-color: #22C55E;
    background: #22C55E;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.35);
}

input[type="checkbox"]:checked::after {
    content: "";
    width: 6px;
    height: 11px;
    border: solid #04130D;
    border-width: 0 3px 3px 0;
    transform: rotate(42deg) translate(-1px, -1px);
    display: block;
}

/* Scrollbar dark fina nos modais do Terraria */
.modal-dica {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}

.modal-dica::-webkit-scrollbar {
    width: 8px;
}

.modal-dica::-webkit-scrollbar-track {
    background: rgba(11, 15, 25, 0.55);
    border-radius: 0 14px 14px 0;
}

.modal-dica::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.34);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.modal-dica::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 222, 128, 0.65);
    border: 2px solid transparent;
    background-clip: content-box;
}

/* === ESCALA CONFORTÁVEL EXCLUSIVA PC (>= 769px — SEM MEXER NO MOBILE) === */
@media (min-width: 769px) {
    body {
        font-size: 1.06rem;
    }

    .sidebar {
        width: 280px;
        padding: 30px 20px;
    }

    .conteudo-principal {
        max-width: 1440px;
        margin: 0 auto;
        padding: 34px 40px;
    }

    .ter-ico-menu {
        width: 26px;
        height: 26px;
    }

    .ter-ico-titulo {
        width: 56px;
        height: 56px;
    }

    .ter-ico-sub {
        width: 34px;
        height: 34px;
    }

    .topo h1 {
        font-size: 2.3rem;
    }

    .topo p {
        font-size: 1.05rem;
    }

    .menu-btn {
        font-size: 1.02rem;
        padding: 12px 14px;
    }

    .modal-dica {
        max-width: 640px;
        padding: 30px 32px;
    }

    .modal-cabecalho img {
        width: 64px;
        height: 64px;
    }

    .modal-cabecalho h3 {
        font-size: 1.5rem;
    }

    .modal-desc {
        font-size: 1.06rem;
        line-height: 1.6;
    }
}

/* === OPÇÃO A: ÁRVORE MÍSTICA DARK (TERRARIA) — RAMOS FINOS ORGÂNICOS + BROTOS LUMINOSOS === */
#container-arvore {
    background:
        radial-gradient(ellipse at 25% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 90%, rgba(52, 211, 153, 0.05) 0%, transparent 50%),
        #07100C !important;
    border: 1px solid rgba(74, 222, 128, 0.16) !important;
    border-radius: 16px;
    padding: 24px 22px 28px !important;
}

/* Ramo principal vertical fino em madeira escura nobre */
#container-arvore .arvore > li > ul > li::before {
    width: 3px !important;
    left: -34px !important;
    background: linear-gradient(180deg, #6B442A 0%, #8C5B38 50%, #4E301D 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 0 8px rgba(140, 91, 56, 0.25) !important;
}

/* Ramos secundários mais delicados */
#container-arvore .arvore ul ul > li::before {
    width: 2.5px !important;
    left: -34px !important;
    background: linear-gradient(180deg, #5C3A23 0%, #825333 50%, #462B1A 100%) !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}

/* Galho curvo orgânico conectando o ramo ao card */
#container-arvore .arvore ul > li::after {
    left: -34px !important;
    width: 34px !important;
    height: 22px !important;
    border-left: 3px solid #7D5031 !important;
    border-bottom: 3px solid #7D5031 !important;
    border-bottom-left-radius: 22px !important;
    box-shadow: none !important;
}

#container-arvore .arvore ul ul > li::after {
    border-left-width: 2.5px !important;
    border-bottom-width: 2.5px !important;
    border-left-color: #784D30 !important;
    border-bottom-color: #784D30 !important;
}

/* Brotinho / folhinha luminosa verde-esmeralda nascendo no ramo */
#container-arvore .arvore ul > li {
    position: relative;
}

#container-arvore .ramo-broto {
    position: absolute;
    left: -37px;
    top: 26px;
    width: 9px;
    height: 9px;
    border-radius: 0 100% 0 100%;
    background: radial-gradient(circle at 35% 35%, #DCFCE7 0%, #4ADE80 55%, #16A34A 100%);
    box-shadow: 0 0 9px rgba(74, 222, 128, 0.85), 0 0 16px rgba(34, 197, 94, 0.45);
    transform: rotate(-18deg);
    pointer-events: none;
    z-index: 2;
}

#container-arvore .arvore ul > li:nth-child(even) > .ramo-broto {
    left: -31px;
    top: 32px;
    transform: rotate(62deg) scale(0.9);
}

/* Card Raiz (Copa iluminada — sem textura cartum de madeira nem borda de grama) */
#container-arvore .no-item.raiz {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(52, 211, 153, 0.22) 0%, transparent 62%),
        linear-gradient(180deg, #10241C 0%, #0A1511 100%) !important;
    border: 1.5px solid rgba(110, 231, 183, 0.45) !important;
    border-top: 2px solid rgba(110, 231, 183, 0.78) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    box-shadow:
        0 -2px 24px rgba(16, 185, 129, 0.2),
        0 10px 28px rgba(0, 0, 0, 0.5) !important;
    gap: 14px;
}

/* Cards Filhos (Verde-floresta noturno refinado) */
#container-arvore .no-item:not(.raiz) {
    background: linear-gradient(180deg, #0E1C16 0%, #09130F 100%) !important;
    border: 1px solid rgba(74, 222, 128, 0.22) !important;
    border-radius: 10px !important;
    padding: 11px 18px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
    gap: 12px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

#container-arvore .no-item:not(.raiz):hover {
    border-color: rgba(74, 222, 128, 0.52) !important;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.16) !important;
}

/* Mini-quadro escuro envolvendo o sprite sem vazar sprites vizinhos */
#container-arvore .icone-arvore-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 14, 11, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}

#container-arvore .icone-arvore {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    display: block;
    flex-shrink: 0;
}

/* Quantidade limpa e legível */
#container-arvore .qtd {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    padding: 3px 9px !important;
    border-radius: 7px !important;
    background: rgba(15, 23, 42, 0.78) !important;
    border: 1px solid rgba(74, 222, 128, 0.32) !important;
    color: #86EFAC !important;
}

/* Selo da Estação em Bronze-Âmbar super nítido (sem fonte pixelada borrada) */
#container-arvore .tag-estacao {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: #FDE68A !important;
    background: linear-gradient(180deg, rgba(133, 82, 26, 0.38), rgba(92, 54, 16, 0.42)) !important;
    border: 1px solid rgba(217, 155, 67, 0.55) !important;
    border-radius: 999px !important;
    padding: 4px 13px !important;
    margin-left: auto;
}

@media (min-width: 769px) {
    #container-arvore .no-item {
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        font-size: 1.05rem;
        font-weight: 600;
        color: #F1F5F9;
        min-width: 440px;
    }

    #container-arvore .no-item.raiz {
        font-size: 1.2rem;
        font-weight: 700;
        min-width: 500px;
    }

    #container-arvore .tag-estacao {
        font-size: 0.88rem !important;
        padding: 5px 15px !important;
    }
}

@media (max-width: 768px) {
    #container-arvore {
        padding: 12px 10px 18px !important;
    }

    #container-arvore .arvore > li > ul > li::before,
    #container-arvore .arvore ul ul > li::before {
        width: 2.5px !important;
        left: -18px !important;
    }

    #container-arvore .arvore ul > li::after {
        left: -18px !important;
        width: 18px !important;
        height: 16px !important;
        border-left-width: 2.5px !important;
        border-bottom-width: 2.5px !important;
        border-bottom-left-radius: 14px !important;
    }

    #container-arvore .ramo-broto {
        left: -21px;
        top: 20px;
        width: 7px;
        height: 7px;
    }

    #container-arvore .arvore ul > li:nth-child(even) > .ramo-broto {
        left: -16px;
        top: 24px;
    }
}

/* === VISÃO GERAL + TUTORIAL RECOLHÍVEL DE CLASSES (TERRARIA) === */
.ter-ico-card {
    width: 44px;
    height: 44px;
    object-fit: contain;
    image-rendering: pixelated;
}

.ter-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-tutorial-ter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1.5px solid rgba(74, 222, 128, 0.55);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(11, 20, 16, 0.94));
    color: #DCFCE7;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.14);
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.14s ease;
}

.btn-tutorial-ter:hover {
    border-color: #4ADE80;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(11, 20, 16, 0.98));
    transform: translateY(-1px);
}

.btn-tutorial-ter.ativo {
    border-color: rgba(250, 204, 21, 0.65);
    background: rgba(250, 204, 21, 0.14);
    color: #FEF08A;
}

.btn-tut-ico-ter {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
}

.ter-tutorial-box {
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(10, 20, 16, 0.82);
    border: 1px solid rgba(74, 222, 128, 0.35);
}

.ter-tutorial-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ter-tutorial-selo {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(74, 222, 128, 0.42);
    color: #86EFAC;
}

.btn-fechar-tutorial-ter {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid rgba(244, 63, 94, 0.45);
    background: rgba(244, 63, 94, 0.12);
    color: #FDA4AF;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

.btn-fechar-tutorial-ter:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #FFFFFF;
}

.ter-tut-regra-ouro {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.35);
    color: #FEF08A;
    font-size: 0.94rem;
    line-height: 1.45;
}

.ter-classes-tut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.ter-cls-tut-card {
    background: #09130F;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 3px solid var(--cor-cls, #4ADE80);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ter-cls-tut-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ter-cls-tut-ico {
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.ter-cls-tut-head h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #F8FAFC;
}

.ter-cls-tut-perfil {
    font-size: 0.8rem;
    color: var(--cor-cls, #4ADE80);
    font-weight: 600;
}

.ter-cls-tut-card p {
    margin: 0;
    font-size: 0.92rem;
    color: #CBD5E1;
    line-height: 1.48;
}

.ter-cls-tut-card p strong {
    color: #F8FAFC;
}

/* === VISÃO GERAL TERRARIA: CARDS GRANDES IGUAIS AOS DO NO MAN'S SKY (PC >= 769px) === */
@media (min-width: 769px) {
    #aba-inicio .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 22px;
    }

    #aba-inicio .game-card {
        padding: 26px 24px;
        border-radius: 14px;
    }

    #aba-inicio .ter-ico-card {
        width: 54px;
        height: 54px;
    }

    #aba-inicio .game-card h3 {
        font-size: 1.24rem;
        margin-bottom: 10px;
        color: #F8FAFC;
    }

    #aba-inicio .game-card p {
        font-size: 1.02rem;
        line-height: 1.55;
    }

    #aba-inicio .game-card .badge {
        font-size: 0.9rem;
        padding: 6px 14px;
    }
}

/* === ÁRVORE REVERSA (BOTTOM-UP CRAFTING) === */
.reversa-wrap {
    max-width: 1120px;
}
.reversa-sugestoes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 18px;
}
.reversa-sug-label {
    font-size: 0.85rem;
    color: #94A3B8;
    font-weight: 600;
    margin-right: 4px;
}
.reversa-sug-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(14, 24, 18, 0.92);
    border: 1px solid rgba(74, 222, 128, 0.24);
    color: #E2E8F0;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}
.reversa-sug-btn:hover {
    border-color: rgba(52, 211, 153, 0.42);
    background: rgba(52, 211, 153, 0.14);
    transform: translateY(-1px);
}
.reversa-sug-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.reversa-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: rgba(14, 24, 18, 0.92);
    border: 1px solid rgba(74, 222, 128, 0.24);
}
.reversa-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.reversa-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(52, 211, 153, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.42);
    color: #34D399;
}
.reversa-stat-pill.final {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.45);
    color: #6EE7B7;
}
.reversa-controles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.reversa-filtro-input {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(2, 6, 23, 0.65);
    color: #F8FAFC;
    font-size: 0.88rem;
    min-width: 210px;
}
.reversa-filtro-input:focus {
    outline: none;
    border-color: #34D399;
}
.reversa-check-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.86rem;
    color: #CBD5E1;
    cursor: pointer;
    user-select: none;
}
.reversa-btn-acao {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.42);
    background: rgba(22, 101, 52, 0.28);
    color: #E2E8F0;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, border-color 0.14s ease;
}
.reversa-btn-acao:hover {
    background: rgba(34, 197, 94, 0.26);
    border-color: #34D399;
    color: #FFFFFF;
}
.reversa-btn-expandir {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(30, 41, 59, 0.72);
    color: #E2E8F0;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.14s ease, border-color 0.14s ease;
}
.reversa-btn-expandir:hover {
    border-color: #34D399;
    color: #FFFFFF;
}
.reversa-badge-usa {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #FCD34D;
    white-space: nowrap;
}
.reversa-badge-final {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.45);
    color: #6EE7B7;
    white-space: nowrap;
}
.reversa-badge-busca {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(52, 211, 153, 0.14);
    color: #34D399;
    white-space: nowrap;
}
.reversa-badge-busca.vazio {
    background: rgba(100, 116, 139, 0.18);
    color: #94A3B8;
}
.reversa-vazio-card {
    padding: 24px 20px;
    border-radius: 14px;
    background: rgba(14, 24, 18, 0.92);
    border: 1px dashed rgba(74, 222, 128, 0.24);
    text-align: center;
    color: #94A3B8;
}
.reversa-vazio-card h3 {
    color: #F1F5F9;
    margin: 0 0 8px;
    font-size: 1.05rem;
}
.reversa-vazio-card p {
    margin: 0 0 14px;
    font-size: 0.92rem;
}
.reversa-paginacao {
    margin-top: 12px;
    padding-left: 28px;
}
.reversa-no-flex {
    cursor: default !important;
    flex-wrap: wrap;
    gap: 10px !important;
}
.reversa-no-nome {
    font-weight: 700;
    color: #F8FAFC;
}
.reversa-no-acoes {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}
@media (min-width: 769px) {
    .reversa-sug-btn {
        font-size: 0.92rem;
        padding: 8px 14px;
    }
    .reversa-sug-btn img {
        width: 24px;
        height: 24px;
    }
    .reversa-stat-pill {
        font-size: 0.92rem;
        padding: 6px 13px;
    }
    .reversa-filtro-input {
        font-size: 0.94rem;
        min-width: 240px;
        padding: 8px 14px;
    }
    .reversa-btn-acao {
        font-size: 0.86rem;
        padding: 6px 13px;
    }
    .reversa-btn-expandir {
        font-size: 0.84rem;
        padding: 5px 12px;
    }
    .reversa-badge-usa,
    .reversa-badge-final {
        font-size: 0.84rem;
    }
}

.barra-saves-global { border-color: #22C55E; background-color: #13241C; box-shadow: 0 4px 20px rgba(34, 197, 94, 0.22); }

.save-onboard-card { border-color: #22C55E; box-shadow: 0 24px 60px rgba(0,0,0,0.75), 0 0 32px rgba(34, 197, 94, 0.24); }

/* === BUILDS POR CLASSE: LAYOUT EXPLICATIVO COM ÍCONES REAIS SEM POLUIÇÃO === */
.ter-build-head-ico {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.ter-build-ico-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(74, 222, 128, 0.22);
    flex-shrink: 0;
    overflow: hidden;
}
.ter-build-lista {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 10px;
}
.ter-build-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 11px;
    border-radius: 10px;
    background: rgba(9, 17, 13, 0.72);
    border: 1px solid rgba(74, 222, 128, 0.16);
    flex-wrap: wrap;
}
.ter-build-item-esq {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    color: #F1F5F9;
}
.ter-build-armadura-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(9, 17, 13, 0.72);
    border: 1px solid rgba(74, 222, 128, 0.2);
    color: #E2E8F0;
    font-weight: 600;
}
.ter-build-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 9px;
}
.ter-build-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(9, 17, 13, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #E2E8F0;
    font-size: 0.86rem;
    font-weight: 600;
}
.ter-build-chip.clicavel {
    cursor: pointer;
    border-color: rgba(74, 222, 128, 0.35);
    transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}
.ter-build-chip.clicavel:hover {
    border-color: #4ADE80;
    background: rgba(22, 101, 52, 0.28);
    color: #FFFFFF;
    transform: translateY(-1px);
}
.ter-build-chip .ter-build-ico-wrap {
    width: 22px;
    height: 22px;
}
.ter-build-dica-card {
    border-color: rgba(250, 204, 21, 0.42) !important;
}
.ter-build-resumo {
    margin: 8px 0 4px;
    font-size: 0.94rem;
    line-height: 1.5;
    color: #CBD5E1;
}

/* === ALINHAMENTO DO BOTÃO DE TUTORIAL DE CLASSES À ESQUERDA + BOX DO ÍCONE RANGER === */
.ter-builds-header-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
}
.ter-cls-tut-ico-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: hidden;
}

/* === ESCALA TIPOGRÁFICA GLOBAL NO PC (>= 769px) — TODAS AS ABAS DE TERRARIA === */
@media (min-width: 769px) {
    body {
        font-size: 17px;
    }
    .sidebar .menu-btn {
        font-size: 1rem;
    }
    .topo p {
        font-size: 1.08rem;
        line-height: 1.55;
    }
    .game-card h3 {
        font-size: 1.28rem;
    }
    .game-card p {
        font-size: 1.02rem;
        line-height: 1.55;
    }
    .game-card .badge {
        font-size: 0.94rem;
    }
    .pilao-btn {
        font-size: 0.98rem;
        padding: 9px 16px;
    }
    .npc-nome,
    .chefe-nome {
        font-size: 1.18rem !important;
    }
    .fase-titulo {
        font-size: 1.32rem;
    }
    .npc-linha,
    .chefe-desc,
    .ter-build-resumo,
    .ter-cls-tut-card p {
        font-size: 1.02rem;
        line-height: 1.56;
    }
    .ter-cls-tut-head h4 {
        font-size: 1.16rem;
    }
    .ter-cls-tut-perfil {
        font-size: 0.92rem;
    }
    .ter-build-item-esq,
    .ter-build-armadura-box {
        font-size: 1.03rem;
    }
    .ter-build-chip {
        font-size: 0.95rem;
        padding: 7px 13px;
    }
    .npc-bioma-tag,
    .btn-mini {
        font-size: 0.9rem;
    }
    .busca-box input,
    .mapa-input-principal,
    .mapa-input-contexto,
    .mapa-input-passo {
        font-size: 1.04rem;
    }
    .arvore .no-item,
    .reversa-no-nome {
        font-size: 1.05rem;
    }
    .tag-estacao {
        font-size: 0.92rem;
    }
}

#resultados-busca-reversa .item-resultado {
    background: linear-gradient(135deg, rgba(12, 24, 18, 0.94), rgba(18, 34, 24, 0.9));
    border-color: rgba(74, 222, 128, 0.26);
}
#resultados-busca-reversa .item-resultado:hover {
    border-color: #4ADE80;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(12, 26, 18, 0.96));
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.22);
}
