/* ===== Responsive — Only Mouth ===== */

/* Mobile-first, constrained max-width on larger screens */

#app {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
}

/* On desktop, add a subtle border to show the phone boundary */
@media (min-width: 520px) {
    body {
        background: #050508;
    }

    #app {
        border-left: 1px solid rgba(255,255,255,0.04);
        border-right: 1px solid rgba(255,255,255,0.04);
        box-shadow: 0 0 80px rgba(0,0,0,0.8);
    }

    .om-toast-container {
        max-width: 460px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
}

/* Larger phones / tablets — slightly bigger text */
@media (min-width: 390px) {
    .om-ring-cal {
        font-size: 1.5rem;
    }
}

/* Short screens — tighten up spacing */
@media (max-height: 700px) {
    .om-today-hero {
        padding: 0.875rem 1rem 0.5rem;
    }

    .om-macros {
        padding: 0.625rem 1rem;
    }

    .om-water-strip {
        padding: 0.5rem 1rem;
    }

    .om-coach-profile {
        padding: 0.75rem 1rem;
    }

    .om-chat-messages {
        padding: 0.75rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .om-macro-pill-val {
        font-size: 0.875rem;
    }

    .om-water-glasses {
        gap: 2px;
    }

    .om-water-glass {
        width: 14px;
        height: 18px;
    }

    .om-nav-item {
        padding: 0.375rem 0.5rem;
        min-width: 44px;
    }

    .om-nav-item span {
        font-size: 0.625rem;
    }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .om-snap-results-photo {
        height: 45vw;
    }

    .om-snap-photo-preview {
        max-height: 40vh;
    }

    .om-chat-messages {
        padding: 0.5rem 1rem;
    }
}

/* Dark mode preference (already dark, just ensure system overrides don't break things) */
@media (prefers-color-scheme: light) {
    /* Keep dark — this is a dark-only app */
    :root {
        color-scheme: dark;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
