/* ===== AVISO INICIAL (#start-notice, js/ui/StartNotice.js) =====
   No estilo da tela de aviso do Nintendo Wii: branco com listras cinza bem finas, "⚠ AVISO" centralizado,
   fonte arredondada, blocos como os canais do menu, barra cinza curva embaixo, botões em pílula com brilho
   azul. Entra e sai em fade. Fica acima de todas as telas. */
.start-notice {
    --wii-blue: #34beed;
    --wii-blue-dark: #1592c4;
    --wii-text: #4a4a4a;
    --wii-gray: #c8c8c8;
    --wii-dock: #e9e9e9;

    position: fixed;
    inset: 0;
    z-index: 25000;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    background-image: repeating-linear-gradient(180deg, #ffffff 0 3px, #f3f3f3 3px 4px);
    color: var(--wii-text);
    font-family: 'M PLUS Rounded 1c', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    user-select: text;
    animation: notice-fade-in 0.8s ease-out both;
}

.start-notice.is-leaving {
    animation: notice-fade-out 0.45s ease-in both;
    pointer-events: none;
}

@keyframes notice-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notice-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

.start-notice__scroll {
    flex: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 40px 24px 24px;
}

.start-notice__card {
    width: 100%;
    max-width: 820px;
    margin: auto 0;
    outline: none;
    animation: notice-rise 0.9s 0.15s ease-out both;
}

@keyframes notice-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.start-notice__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    font-family: inherit;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-align: center;
    color: #2b2b2b;
}

.start-notice__warn {
    font-size: 40px;
    line-height: 1;
}

.start-notice__rule {
    height: 2px;
    margin: 18px 0 20px;
    border: 0;
    background: linear-gradient(90deg, transparent, var(--wii-gray) 12%, var(--wii-gray) 88%, transparent);
}

.start-notice__lead,
.start-notice__note {
    margin: 0 0 20px;
}

/* Aviso de celular/tablet (StartNotice.isMobileDevice) */
.start-notice__device {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 2px solid #f0b400;
    border-radius: 16px;
    background: #fff8dc;
    text-align: left;
}

.start-notice__device[hidden] { display: none; }

.start-notice__device-icon { flex: none; font-size: 28px; line-height: 1; }

.start-notice__device p { margin: 0; }

.start-notice strong {
    font-weight: 800;
    color: #2b2b2b;
}

/* Blocos como os canais do menu do Wii */
.start-notice__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 22px;
}

.start-notice__tile {
    padding: 14px 12px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #f4f4f4);
    border: 3px solid #d9d9d9;
    border-radius: 18px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
}

.start-notice__tile dt {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wii-blue-dark);
}

.start-notice__tile dd {
    margin: 4px 0 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #2b2b2b;
}

.start-notice__inst {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.start-notice__logo {
    flex: none;
    width: 58px;
    height: auto;
}

.start-notice__research {
    margin: 0 0 6px;
    font-size: 15px;
}

/* A fonte arredondada não tem itálico: o título da dissertação vai entre aspas */
.start-notice__research cite {
    font-style: normal;
}

.start-notice__research cite::before { content: '“'; }
.start-notice__research cite::after { content: '”'; }

.start-notice__inst-lines {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #7a7a7a;
}

.start-notice__privacy {
    margin: 16px 0 0;
    font-size: 13px;
    color: #7a7a7a;
}

/* Barra cinza de baixo, com a borda de cima em arco (menu do Wii) */
.start-notice__dock {
    position: relative;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 18px max(24px, calc((100% - 820px) / 2)) 16px;
    background: var(--wii-dock);
}

.start-notice__dock::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -22px;
    height: 44px;
    background: var(--wii-dock);
    border-top: 3px solid #d2d2d2;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    pointer-events: none;
}

.start-notice__dock > * {
    position: relative;
}

.start-notice__actions {
    display: flex;
    gap: 14px;
}

.start-notice__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    min-width: 150px;
    padding: 8px 26px;
    background: linear-gradient(180deg, #ffffff, #ececec);
    border: 3px solid #bdbdbd;
    border-radius: 18px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.08);
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    color: #7a7a7a;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, transform 0.1s;
}

.start-notice__btn--accept {
    color: var(--wii-blue-dark);
}

/* Cursor em cima: a borda acende em azul, como no menu do Wii */
.start-notice__btn:hover,
.start-notice__btn:focus-visible {
    outline: none;
    border-color: var(--wii-blue);
    color: var(--wii-blue-dark);
    box-shadow: 0 0 0 3px rgba(52, 190, 237, 0.25), 0 0 16px rgba(52, 190, 237, 0.55);
}

.start-notice__btn:active {
    transform: scale(0.97);
}

.start-notice__hint {
    margin: 0;
    font-size: 12px;
    text-align: right;
    color: #8a8a8a;
}

@media (prefers-reduced-motion: reduce) {
    .start-notice,
    .start-notice.is-leaving,
    .start-notice__card {
        animation: none;
    }
}

@media (max-width: 700px) {
    .start-notice {
        font-size: 16px;
    }

    .start-notice__scroll {
        padding: 24px 16px 20px;
    }

    .start-notice__title {
        flex-direction: column;
        font-size: 21px;
        gap: 6px;
    }

    .start-notice__warn {
        font-size: 28px;
    }

    .start-notice__facts {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .start-notice__tile {
        padding: 10px 12px;
    }

    .start-notice__logo {
        width: 44px;
    }

    .start-notice__dock {
        align-items: stretch;
        padding: 16px 16px 14px;
        text-align: center;
    }

    .start-notice__dock::before {
        top: -14px;
        height: 28px;
    }

    .start-notice__actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .start-notice__btn {
        width: 100%;
    }

    .start-notice__hint {
        text-align: center;
    }
}
