body {
    margin: 0;
    color: #f7f8fa;
    background: radial-gradient(ellipse at top right, #162536, #080b10 65%);
    color-scheme: dark;
    font-family: system-ui, sans-serif;
}
.desafio-pagina {
    box-sizing: border-box;
    width: min(100%, 1080px);
    min-height: 100vh;
    margin: auto;
    padding: clamp(18px, 5vw, 56px);
}
.desafio-marca img { display: block; width: min(200px, 62vw); }
.desafio-etiqueta {
    margin: 32px 0 6px;
    color: #2ab8e6;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.desafio-pagina h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.desafio-pagina h2 { margin: 0 0 12px; font-size: 1.1rem; }
.desafio-descricao {
    color: #e2e6ec;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.desafio-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.desafio-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid #303843;
    border-radius: 16px;
    background: #10151d;
}
.desafio-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    border-radius: 10px;
    background: #050609;
}
.desafio-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.desafio-botao {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #3b4859;
    border-radius: 9px;
    background: #161c26;
    color: #f7f8fa;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.desafio-botao:hover, .desafio-botao:focus-visible { border-color: #2ab8e6; }
.desafio-primario { background: #ffcf18; color: #080b10; border-color: #ffcf18; }
.desafio-secundario { color: #a8b0bc; }
.desafio-mensagem { color: #ffe36d; }
.desafio-formulario { margin-top: 16px; }
.desafio-formulario label { display: block; margin: 10px 0 6px; font-weight: 600; }
.desafio-formulario textarea, .desafio-formulario select, .desafio-formulario input:not([type="submit"]) {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #3b4859;
    border-radius: 8px;
    background: #080b10;
    color: inherit;
    font: inherit;
}
@media (max-width: 620px) {
    .desafio-videos { grid-template-columns: minmax(0, 1fr); }
    .desafio-acoes > .desafio-botao { flex: 1 1 auto; }
}

.desafio-modal {
    box-sizing: border-box;
    width: min(680px, calc(100% - 32px));
    max-height: 85vh;
    overflow: auto;
    color: inherit;
}
.desafio-modal::backdrop { background: rgba(0, 0, 0, .75); }
.desafio-modal-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.desafio-modal-cabecalho h2 { margin: 0; }
.desafio-modal .desafio-mensagem:empty { display: none; }
.desafio-resposta { margin-top: 12px; background: #161c26; }
.desafio-resposta .desafio-descricao { margin: 0 0 12px; }
.desafio-resposta video { max-height: 320px; margin-bottom: 12px; }

.desafio-modal.desafio-formulario { margin: auto; }
