/* Bella V1 — mobile-first portrait shell. Emoji/system type only; no external assets. */

:root {
    --color-bg: #fff6ee;
    --color-theme: #e07a5f;
    --color-ink: #3d2c29;
    --color-muted: #7a645f;
    --color-card: #ffffff;
    --touch-min: 44px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow: hidden;
}

html,
body {
    margin: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--color-bg);
    color: var(--color-ink);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    line-height: 1.45;
    overflow: hidden;
    overscroll-behavior: none;
}

#app {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.app-shell {
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding:
        calc(1.25rem + var(--safe-top))
        calc(1.25rem + var(--safe-right))
        0
        calc(1.25rem + var(--safe-left));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-shell > main {
    padding-bottom: calc(1.5rem + var(--safe-bottom));
    overflow-y: auto;
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
}

p {
    color: var(--color-muted);
    font-size: 1.05rem;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.hero-emoji {
    font-size: 3.5rem;
    line-height: 1;
}

.card {
    background: var(--color-card);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 1px 0 rgba(61, 44, 41, 0.06);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    padding: 0.85rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-theme);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
}

.btn:focus-visible {
    outline: 3px solid var(--color-ink);
    outline-offset: 3px;
}

.install-tip {
    font-size: 0.95rem;
}

@media (display-mode: standalone), (display-mode: minimal-ui) {
    .install-tip {
        display: none;
    }
}

@media (max-width: 430px) {
    .app-shell {
        max-width: 100%;
    }
}
