* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #14141b;
    color: #e6e6ee;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.topo {
    background: #1c1c26;
    border-bottom: 2px solid #7c5cff;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.marca { display: flex; align-items: center; gap: 14px; }
.marca-icone { font-size: 30px; }
.marca h1 { font-size: 21px; color: #fff; }
.marca p { font-size: 12px; color: #8f8fa6; }
.placar {
    background: #262633;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #b9b9cc;
}

.conteudo {
    flex: 1;
    display: grid;
    grid-template-columns: 250px 1fr 320px;
    gap: 1px;
    background: #23232f;
    overflow: hidden;
}

.lista-desafios, .painel-resultado, .area-central {
    background: #14141b;
    padding: 18px;
    overflow-y: auto;
}
.lista-desafios h2, .painel-resultado h2 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8f8fa6;
    margin-bottom: 14px;
}
#lista { list-style: none; }
#lista li {
    padding: 11px 13px;
    margin-bottom: 7px;
    background: #1c1c26;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: background .15s;
}
#lista li:hover { background: #262633; }
#lista li.ativo { background: #262633; border-left-color: #7c5cff; }
#lista li.resolvido { border-left-color: #35c47a; }
#lista li .marca-ok { color: #35c47a; margin-right: 6px; }

.area-central { display: flex; flex-direction: column; gap: 14px; }
.enunciado { background: #1c1c26; padding: 18px; border-radius: 10px; }
.enunciado-cabecalho { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.enunciado h2 { font-size: 18px; color: #fff; }
.nivel {
    font-size: 10px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 10px;
    background: #35354a;
    color: #b9b9cc;
    letter-spacing: .5px;
}
.enunciado p { font-size: 14px; color: #c4c4d4; line-height: 1.6; }
.exemplo {
    margin-top: 12px;
    background: #101018;
    padding: 11px 14px;
    border-radius: 7px;
    font-family: 'Consolas', monospace;
    font-size: 12.5px;
    color: #8fd8a8;
    white-space: pre-wrap;
}

.editor-caixa {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1c1c26;
    border-radius: 10px;
    overflow: hidden;
    min-height: 300px;
}
.editor-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 14px;
    background: #23232f;
}
.editor-titulo { font-family: monospace; font-size: 12.5px; color: #8f8fa6; }
.editor-acoes { display: flex; gap: 8px; }
#editor { flex: 1; }

.botao {
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.botao-principal { background: #7c5cff; color: #fff; }
.botao-principal:hover { background: #6a4ae0; }
.botao-secundario { background: #35354a; color: #c4c4d4; }
.botao-secundario:hover { background: #40405a; }

.resultado-vazio { font-size: 13px; color: #6e6e85; line-height: 1.6; }
.teste {
    background: #1c1c26;
    border-radius: 8px;
    padding: 11px 13px;
    margin-bottom: 9px;
    font-size: 12.5px;
    border-left: 3px solid #35c47a;
}
.teste.falhou { border-left-color: #ff5f6d; }
.teste-topo { font-weight: 600; margin-bottom: 7px; color: #fff; }
.teste-linha { font-family: 'Consolas', monospace; color: #a0a0b8; margin: 3px 0; }
.teste-linha b { color: #e6e6ee; font-weight: 600; }
.aviso {
    background: #3a2020;
    border-left: 3px solid #ff5f6d;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #ffc9cd;
    line-height: 1.5;
}
.sucesso-total {
    background: #16321f;
    border-left: 3px solid #35c47a;
    padding: 14px;
    border-radius: 8px;
    color: #9ae8b8;
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 600;
}