/* visual das páginas de atividade (complementa o javascript.css) */

/* painel do formulário */
.atv {
    max-width: 480px;
    margin: 0 auto;
    padding: 30px 28px 26px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--borda);
    border-radius: 24px;
    animation: subir 0.6s cubic-bezier(.2, .8, .3, 1) 0.35s backwards;
}
.atv.largo { max-width: 680px; }
.atv:has(.passos) { padding: 0; background: none; border: 0; }

/* campos */
.campo { margin-bottom: 18px; }
.form-label {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texto-suave);
}
.form-control, .form-select {
    padding: 12px 18px;
    color: var(--texto);
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--borda);
    border-radius: 16px;
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.form-control:hover, .form-select:hover { border-color: rgba(255, 255, 255, 0.35); }
.form-control:focus, .form-select:focus {
    color: var(--texto);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--texto);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), var(--brilho);
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
}
.form-select option { color: #000; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* opções (radio) em formato de pílula */
.form-check { display: inline-block; position: relative; margin: 0 8px 8px 0; padding: 0; }
.form-check-input { position: absolute; opacity: 0; margin: 0; }
.form-check-label {
    display: inline-block;
    padding: 8px 20px;
    cursor: pointer;
    border: 1px solid var(--borda);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.form-check-label:hover { background: rgba(255, 255, 255, 0.12); }
.form-check-input:checked + .form-check-label { background: #fff; color: #0b0b0b; font-weight: 600; box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.form-check-input:focus-visible + .form-check-label { outline: 2px solid #fff; outline-offset: 3px; }

/* botões da atividade */
.atv .botoes { margin-top: 26px; padding-top: 26px; gap: 12px; }
.atv .botoes .btn { min-width: 150px; flex: 1 1 150px; animation: none; box-shadow: 0 0 25px rgba(255, 255, 255, 0.12); }
.atv .botoes button.btn { background: #fff; color: #0b0b0b; font-weight: 600; }
.atv .botoes button.btn:hover, .atv .botoes button.btn:focus-visible { background: #fff; color: #0b0b0b; box-shadow: 0 0 30px rgba(255, 255, 255, 0.45); }
.atv .botoes a.btn { background: transparent; }

/* resultado */
.resultado { margin-top: 22px; line-height: 1.6; text-align: center; font-size: 1.05rem; }
.resultado:not(:empty) {
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--borda);
    border-radius: 20px;
    box-shadow: var(--brilho);
}
.resultado > * { animation: entrar 0.4s cubic-bezier(.2, .8, .3, 1) backwards; }
.resultado > :nth-child(2) { animation-delay: 0.08s; }
.resultado > :nth-child(3) { animation-delay: 0.16s; }
.resultado p { margin: 0 0 6px; }
.resultado > :last-child { margin-bottom: 0; }
.resultado b { font-weight: 700; }
.resultado .aviso { color: #ffb4b4; }
.grande { font-size: 4.5rem; line-height: 1.2; animation: pular 0.5s cubic-bezier(.3, 1.6, .5, 1) backwards; }

/* tabelas */
.table {
    --bs-table-color: var(--texto);
    --bs-table-bg: transparent;
    margin: 22px 0 0;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--borda);
    border-radius: 18px;
    overflow: hidden;
    animation: entrar 0.4s cubic-bezier(.2, .8, .3, 1) backwards;
}
.table > :not(caption) > * > * {
    padding: 12px 18px;
    background-color: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--borda);
    word-break: break-word;
}
.table thead th { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texto-suave); background-color: rgba(255, 255, 255, 0.09); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table td:last-child, .table th:last-child { text-align: right; }

/* jokenpô */
.opcoes { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.opcao {
    width: 120px; height: 120px;
    font-size: 3.2rem; line-height: 1;
    color: var(--texto);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--borda);
    border-radius: var(--raio);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.opcao small { display: block; margin-top: 8px; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-suave); }
.opcao:hover, .opcao:focus-visible { transform: translateY(-4px) scale(1.04); background: rgba(255, 255, 255, 0.13); box-shadow: var(--brilho); }
.opcao:active { transform: scale(0.96); }

/* roteiro (programa) */
.passos { max-width: 680px; margin: 0 auto; text-align: left; }
.passos h4 { margin: 28px 0 14px; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.02em; }
.passos h4:first-child { margin-top: 0; }
.passos ol { padding: 0; margin: 0; list-style: none; counter-reset: passo; }
.passos li {
    counter-increment: passo;
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 10px; padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--borda);
    border-radius: 16px;
    transition: background-color 0.2s, transform 0.2s;
}
.passos li:hover { background: rgba(255, 255, 255, 0.09); transform: translateX(4px); }
.passos li::before {
    content: counter(passo);
    flex: none; display: grid; place-items: center;
    width: 32px; height: 32px;
    font-size: 0.85rem; font-weight: 700;
    background: #fff; color: #0b0b0b; border-radius: 50%;
}

@keyframes entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pular { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 575px) {
    .atv { padding: 24px 18px 20px; }
    .opcao { width: 96px; height: 96px; font-size: 2.6rem; }
    .atv .botoes .btn { width: auto; }
}