* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(
            circle at top right,
            rgba(143, 88, 255, 0.10),
            transparent 32%
        ),
        var(--bg);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-height: 100dvh;
    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

input {
    min-width: 0;
}

#app {
    width: 100%;
    min-height: 100dvh;
}

.screen {
    display: none;
    min-height: 100dvh;
}

.screen-active {
    display: flex;
}

.splash-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background:
        radial-gradient(
            circle at 50% 38%,
            rgba(243, 72, 137, 0.17),
            transparent 28%
        ),
        var(--bg);
}

.brand-name {
    margin: 0;
    font-size: 34px;
    letter-spacing: -1.7px;
}

.brand-name span,
.brand-mini strong span {
    color: var(--pink);
}

.splash-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.spinner {
    width: 28px;
    height: 28px;
    margin-top: 18px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.home-placeholder {
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.home-placeholder-card {
    width: min(100%, 420px);
    padding: 34px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.home-placeholder-card h2 {
    margin: 18px 0 8px;
}

.home-placeholder-card p {
    color: var(--text-soft);
}

/* ===== VoiceApp — enquadramento mobile em telas largas ===== */
@media (min-width: 700px) {

    html,
    body {
        background: #000;
    }

    body {
        display: flex;
        justify-content: center;
        min-height: 100dvh;
    }

    #app {
        position: relative;
        width: 100%;
        max-width: 430px;
        min-height: 100dvh;
        overflow-x: hidden;

        background:
            radial-gradient(
                circle at top right,
                rgba(143, 88, 255, 0.10),
                transparent 32%
            ),
            var(--bg);
    }
}

/* ===== VoiceApp — bottom nav dentro da área mobile no desktop ===== */
@media (min-width: 700px) {
    .bottom-nav {
        left: 50% !important;
        right: auto !important;
        width: calc(430px - 24px) !important;
        max-width: calc(100vw - 24px);
        transform: translateX(-50%) !important;
    }
}
