/* =========================================================
   CAMINHO DOS MONSTROS
   Visual compacto - padrão novo projeto
   ========================================================= */

body.page-caminho {
    visibility: hidden;
    background: #09090b;
    color: #e4e4e7;
    margin: 0;
    min-height: 100vh;
}

body.page-caminho.ready {
    visibility: visible;
}

.caminho-main {
    max-width: 700px;
    margin: 0 auto;
    padding: 15px 15px 105px;
    box-sizing: border-box;
}

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

.caminho-eyebrow {
    color: #71717a;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.caminho-title {
    margin: 0;
    color: #facc15;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
}

.caminho-description {
    margin: 5px 0 0;
    color: #71717a;
    font-size: 11px;
    line-height: 1.35;
}

.caminho-player-info {
    min-width: 60px;
    padding: 7px 9px;
    text-align: center;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 9px;
    flex-shrink: 0;
}

.caminho-player-info span {
    display: block;
    color: #71717a;
    font-size: 8px;
    text-transform: uppercase;
}

.caminho-player-info strong {
    display: block;
    color: #facc15;
    font-size: 16px;
    margin-top: 2px;
}

.caminho-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.notice-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    font-size: 17px;
    flex-shrink: 0;
}

.caminho-notice strong {
    color: #f4f4f5;
    font-size: 12px;
}

.caminho-notice p {
    margin: 2px 0 0;
    color: #71717a;
    font-size: 10px;
    line-height: 1.3;
}

/* =========================================================
   GRID
   ========================================================= */

.path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

/* =========================================================
   CARD
   ========================================================= */

.path-monster-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 10px;
    cursor: pointer;
    transition:
        transform .12s ease,
        border-color .12s ease,
        background .12s ease;
}

.path-monster-card:active {
    transform: scale(.985);
}

.path-monster-card:hover:not(.locked):not(.cooldown) {
    border-color: #facc15;
}

.path-monster-card.locked {
    opacity: .72;
    cursor: not-allowed;
}

.path-monster-card.cooldown {
    border-color: #7f1d1d;
}

/* =========================================================
   REQUISITO
   Sempre aparece no card
   ========================================================= */

.monster-requirement-top {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 4px;
    text-align: center;
    background: #183b29;
    border-bottom: 1px solid #28583c;
    color: #22c55e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.path-monster-card.locked .monster-requirement-top {
    color: #71717a;
    background: #18181b;
    border-bottom-color: #27272a;
}

/* =========================================================
   IMAGEM
   ========================================================= */

.monster-image-wrap {
    position: relative;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 5px 4px;
    box-sizing: border-box;
    background: #101012;
}

.monster-image {
    display: block;
    width: 82px;
    height: 82px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 3px;
    filter: drop-shadow(0 4px 7px rgba(0,0,0,.55));
}

.monster-level {
    position: absolute;
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 9px;
    background: rgba(24,24,27,.95);
    border: 1px solid #52525b;
    color: #facc15;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   CONTEÚDO
   ========================================================= */

.monster-content {
    min-width: 0;
}

.monster-name {
    margin: 8px 5px 4px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f4f4f5;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.monster-description {
    min-height: 30px;
    margin: 0 8px 7px;
    color: #8b8b93;
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
}

/* =========================================================
   ESTATÍSTICAS
   ========================================================= */

.monster-stats {
    padding: 7px 9px;
    background: #09090b;
    border-top: 1px solid #27272a;
}

.monster-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    min-height: 19px;
    color: #a1a1aa;
    font-size: 11px;
    line-height: 1.25;
}

.monster-stat span {
    white-space: nowrap;
}

.monster-stat strong {
    color: #f4f4f5;
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

/* =========================================================
   VIDA
   ========================================================= */

.monster-hp {
    padding: 6px 9px 8px;
}

.monster-hp-label {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    margin-bottom: 4px;
    color: #71717a;
    font-size: 9px;
}

.monster-hp-track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: #27272a;
    border-radius: 5px;
}

.monster-hp-fill {
    height: 100%;
    background: #22c55e;
    border-radius: inherit;
    transition: width .2s ease;
}

/* =========================================================
   BLOQUEIO
   ========================================================= */

.monster-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 27px;
    padding: 5px 7px;
    box-sizing: border-box;
    background: #18181b;
    border-top: 1px solid #27272a;
    color: #71717a;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.lock-icon {
    font-size: 13px;
    flex-shrink: 0;
}

.monster-requirement {
    padding: 5px 7px;
    color: #22c55e;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}

/* =========================================================
   COOLDOWN
   ========================================================= */

.monster-cooldown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 6px 5px;
    background: rgba(127,29,29,.12);
    border-top: 1px solid #7f1d1d;
    color: #a1a1aa;
    font-size: 9px;
    text-align: center;
}

.monster-cooldown strong {
    color: #ef4444;
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   BOTÃO
   ========================================================= */

.monster-enter {
    width: calc(100% - 14px);
    min-height: 29px;
    margin: 0 7px 7px;
    border: 1px solid #facc15;
    border-radius: 7px;
    background: #18181b;
    color: #facc15;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.monster-enter:active {
    transform: scale(.98);
}

/* =========================================================
   LOADING / ERRO
   ========================================================= */

.path-loader,
.path-loading {
    grid-column: 1 / -1;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #71717a;
    font-size: 11px;
}

.loader-spinner,
.path-loading-spinner {
    width: 13px;
    height: 13px;
    border: 2px solid #27272a;
    border-top-color: #facc15;
    border-radius: 50%;
    animation: caminhoSpin .8s linear infinite;
}

@keyframes caminhoSpin {
    to {
        transform: rotate(360deg);
    }
}

.path-error {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
    color: #ef4444;
    background: #111113;
    border: 1px solid #27272a;
    border-radius: 10px;
}

.path-error strong,
.path-error span {
    display: block;
}

.path-error span {
    margin-top: 5px;
    color: #71717a;
    font-size: 11px;
}

.path-error button {
    margin-top: 12px;
    padding: 7px 12px;
    border: 1px solid #facc15;
    border-radius: 7px;
    background: #18181b;
    color: #facc15;
    font-weight: 700;
}

/* =========================================================
   VOLTAR
   ========================================================= */

.back-home {
    display: block;
    margin: 18px auto 0;
    width: fit-content;
    color: #71717a;
    text-decoration: none;
    font-size: 11px;
}

.back-home span {
    margin-right: 4px;
    color: #facc15;
}

/* =========================================================
   TELAS MAIORES
   ========================================================= */

@media (min-width: 520px) {
    .path-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .monster-image-wrap {
        height: 100px;
    }

    .monster-image {
        width: 88px;
        height: 88px;
    }
}
