@font-face {
    font-family: Porch Arcade;
    src: url("bittrip7srb-webfont.woff") format("woff");
    font-display: swap;
}

#porch-opening {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background: #183c4b;
    color: #fff1d8;
    font-family: Porch Arcade, monospace;
}

#porch-opening[hidden], #porch-opening [hidden] { display: none; }

.porch-splash {
    width: min(42vw, 44vh, 330px);
    filter: brightness(0) invert(1);
}

.porch-title-screen {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    width: fit-content;
    max-width: 88vw;
    gap: clamp(4px, 1.6vw, 20px);
    align-items: center;
}

.porch-title-screen h1 {
    font-size: clamp(19px, min(5.8vw, 9vh), 92px);
    line-height: 1.05;
    letter-spacing: -.045em;
    margin: 0 0 .46em;
    transform: rotate(-5deg);
    transform-origin: left center;
}

.porch-title-screen h1 span {
    display: block;
    width: fit-content;
    color: #fff1d8;
    paint-order: stroke fill;
    -webkit-text-stroke: .105em #101f31;
    text-shadow: .075em .10em #101f31;
}

.porch-title-screen h1 .porch-pursuit { color: #ef975e; }

.porch-title-screen nav { display: flex; gap: 12px; flex-wrap: wrap; }

.porch-title-screen button {
    cursor: pointer;
    font: inherit;
    font-size: clamp(10px, 1.6vw, 18px);
    padding: .85em 1em;
    border: 2px solid #fff1d8;
    color: #fff1d8;
    background: #183c4b;
    box-shadow: 3px 3px #102a35;
}

.porch-title-screen button[aria-current="true"],
.porch-title-screen button:hover {
    background: #fff1d8;
    color: #183c4b;
}
.porch-title-screen button:focus-visible { outline: 3px solid #ef975e; outline-offset: 4px; }

.parker-portrait {
    position: relative;
    height: min(62vh, 47vw, 540px);
    width: min(40vh, 30vw, 345px);
}

.parker-portrait img, .parker-portrait canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
}

.parker-portrait canvas { image-rendering: pixelated; }

.parker-portrait img {
    filter: drop-shadow(5px 8px 0 #101f3166);
}

@media (max-width: 620px) and (orientation: portrait) {
    .porch-title-screen {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .porch-title-screen h1 {
        font-size: clamp(30px, 10vw, 58px);
        transform-origin: center;
    }

    .porch-title-screen h1 span { margin-inline: auto; }
    .porch-title-screen nav { justify-content: center; }
    .parker-portrait {
        height: min(42vh, 72vw);
        width: min(27vh, 46vw);
        justify-self: center;
    }
}

.parker-portrait canvas.is-traveling {
    position: fixed;
    inset: auto;
    object-fit: fill;
    pointer-events: none;
}

#latte-progress {
    position: fixed;
    z-index: 2;
    pointer-events: none;
    font: bold 1rem/1 Porch Arcade, monospace;
    letter-spacing: .075em;
    filter: drop-shadow(0 .045em #352919);
}

#latte-progress[hidden] { display: none; }

#latte-progress span {
    color: transparent;
    -webkit-text-stroke: .047em #ffe3a2;
}

#latte-progress .collected {
    color: #ffbe39;
    -webkit-text-stroke-color: #fff0b8;
}

#level-intro {
    position: fixed;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    pointer-events: none;
    color: #fff1d8;
    text-align: center;
    font-family: Porch Arcade, monospace;
}

#level-intro[hidden] { display: none; }

.level-intro-sign {
    background: #183c4bf5;
    border: 2px solid #ef975e;
    box-shadow: 5px 5px #102a35b0;
    padding: clamp(12px, 2.1vw, 30px) clamp(16px, 3.8vw, 64px);
    max-width: 80vw;
}

.level-intro-sign p {
    color: #efb675;
    font-size: clamp(10px, 1.4vw, 20px);
    margin-bottom: .65em;
}

.level-intro-sign h2 {
    font-size: clamp(13px, min(3.6vw, 7vh), 54px);
    line-height: 1.3;
    text-shadow: .075em .09em #102a35;
}

#porch-ending {
    position: fixed;
    z-index: 5;
    transform: translateX(-50%);
    width: max-content;
    max-width: 92vw;
    text-align: center;
    color: #fff1d8;
    font-family: Porch Arcade, monospace;
}

#porch-ending[hidden] { display: none; }

#porch-ending h2 {
    margin: 0 0 .7em;
    font-size: 1.15em;
    line-height: 1.25;
    text-shadow: 2px 3px #12243a;
}

#porch-ending button {
    display: inline-block;
    padding: .8em 1em;
    border: 2px solid #ffe4ac;
    background: #e8925e;
    color: #182b3b;
    font: inherit;
    font-size: .78em;
    opacity: 1;
    box-shadow: 3px 4px #14273c;
}

.ending-currency {
    font-family: system-ui, sans-serif;
    font-weight: 900;
}

.ending-wordmark {
    display: block;
    width: 3.6em;
    height: auto;
    margin: 1em auto 0;
    filter: drop-shadow(1px 2px #14273c);
}
