.quotes-page:has(.footer) {
    padding-bottom: 0;
}

.quotes-page::before {
    inset: 0;
    animation-name: quotes-grain;
}

@keyframes quotes-grain {
    0%, 100% { background-position: 0 0; }
    25% { background-position: -43px 61px; }
    50% { background-position: 79px -37px; }
    75% { background-position: -91px -73px; }
}

.quotes-stage {
    min-height: 100svh;
    display: grid;
    align-items: center;
    padding: 104px 24px calc(80px + env(safe-area-inset-bottom));
}

.quotes-page #quotes {
    width: 100%;
    margin: 0 auto;
    cursor: copy;
}

#next-quote {
    display: grid;
    place-items: center;
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    opacity: .45;
    font-size: 21px;
    cursor: pointer;
    touch-action: manipulation;
}

#next-quote:disabled {
    opacity: .18;
    cursor: wait;
}

#next-quote i {
    display: block;
    line-height: 1;
}

@media (min-width: 1024px) {
    #next-quote {
        top: 40px;
        right: 24px;
        width: 40px;
        height: 40px;
        opacity: .35;
        font-size: 20px;
    }
}

#next-quote:hover,
#next-quote:focus-visible {
    opacity: 1;
    color: #f2a900;
}
