:root {
    --background: #E7E3DA;
    --ink: #1D1D1F;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background: var(--background);
}

body {
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.download-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
    text-align: center;
}

.mascot-link {
    display: block;
    line-height: 0;
    border-radius: 50%;
}

.mascot {
    width: min(76vw, 390px);
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.12));
}

.app-store-button {
    min-width: 204px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 9px 24px;
    color: #fff;
    text-align: left;
    text-decoration: none;
    background: #000;
    border: 2px solid #000;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
    -webkit-tap-highlight-color: transparent;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.app-store-button:active {
    transform: translateY(1px);
}

.app-store-button:focus-visible,
.mascot-link:focus-visible {
    outline: 3px solid #2767E8;
    outline-offset: 5px;
}

.apple-mark {
    font-size: 2.15rem;
    line-height: 1;
}

.app-store-button span:last-child {
    display: grid;
}

.app-store-button small {
    font-size: 0.68rem;
    line-height: 1;
}

.app-store-button strong {
    margin-top: 3px;
    font-size: 1.38rem;
    line-height: 1;
}

.instagram-hint {
    max-width: 290px;
    margin: -4px 0 0;
    color: rgba(29, 29, 31, 0.65);
    font-size: 0.82rem;
    line-height: 1.4;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-height: 680px) {
    .download-page {
        gap: 14px;
    }

    .mascot {
        width: min(62vh, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-store-button {
        transition: none;
    }
}
