/* =========================================================
   SYSTEM BARS AND SAFE AREAS
========================================================= */

/*
color-scheme is what tells the phone that this page is dark.

Without it Android draws its own surfaces in light mode, which is
where the pale strip along the bottom of the screen comes from.
It is the system navigation bar, not part of the page, so no
amount of page background will darken it on its own.
*/

:root {
    color-scheme: dark;
}

html,
body {
    background-color: #000000;
}

body {
    margin: 0;
    min-height: 100vh;
}


.app {
    min-height: 100vh;

    padding-top:
        env(safe-area-inset-top);

    padding-bottom:
        env(safe-area-inset-bottom);
}


/*
The gesture bar sits over the page when the viewport is set to
viewport-fit=cover. This paints solid black underneath it so the
strip matches the rest of the app instead of showing whatever is
scrolled behind it.
*/

body::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: env(safe-area-inset-bottom);
    background: #000000;
    pointer-events: none;
    z-index: 9999;
}


/* =========================================================
   INSTALL BUTTON
========================================================= */

.installButton {
    width: 100%;
    margin-top: 15px;
    padding: 14px 18px;
    border: 1px solid #1681ad;
    border-radius: 11px;
    background: linear-gradient(
        135deg,
        #123b52,
        #07506f
    );
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.installButton:hover {
    background: linear-gradient(
        135deg,
        #18516d,
        #086b91
    );
}

.installButton:active {
    transform: scale(.98);
}


/* =========================================================
   OPEN IN CHROME BANNER

   Only appears inside in-app browsers, where the microphone
   usually will not work at all.
========================================================= */

.openInChrome {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 13px 15px;
    border: 1px solid #66531a;
    border-radius: 11px;
    background: #2a2210;
    color: #ffd479;
    font-size: 13px;
    line-height: 1.4;
}

.openInChrome button {
    flex: none;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: #f0a81e;
    color: #241900;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}
