* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none
}

.stage {
    position: fixed;
    bottom: 2px;
    right: 2px;
    width: 100vw;
    height: 100dvh;
    background: #000;
    display: grid;
    place-items: center;
    overflow: hidden;
    touch-action: none
}

.seconds {
    position: absolute;
    right: calc(env(safe-area-inset-right) + 8px);
    bottom: calc(env(safe-area-inset-bottom) + 8px);
    font: 400 9px/1 'SFMono-Regular', Consolas, monospace;
    letter-spacing: .04em;
    color: #fff;
    opacity: 1;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    transition: opacity .18s
}

.stage.revealed .seconds {
    opacity: 0
}

.card {
    display: block;
    width: min(78vw, min(66vh, 390px));
    height: auto;
    aspect-ratio: 420/588;
    object-fit: contain;
    opacity: 0;
    transform: scale(.94);
    pointer-events: none;
    transition: opacity .22s ease, transform .28s cubic-bezier(.2, .75, .2, 1)
}

.stage.revealed .card {
    opacity: 1;
    transform: scale(1)
}

@media (orientation:landscape) {
    .card {
        width: min(48vw, 62vh)
    }
}