/* Front door only. The launcher is launcher.css. The comic page is style.css. */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #000;
    background: #fff;
    font-family: "Press Start 2P", monospace;
    padding:
        calc(24px + env(safe-area-inset-top))
        calc(20px + env(safe-area-inset-right))
        calc(22vh + env(safe-area-inset-bottom))
        calc(20px + env(safe-area-inset-left));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("images/background.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: scroll;
    filter: grayscale(100%) contrast(1.2);
}

.mark {
    text-align: center;
    transform-origin: center center;
}

.mark h1 {
    font-size: clamp(34px, 7.4vw, 92px);
    font-weight: normal;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

.yuh {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.4;
}

.character {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: auto;
    height: min(40vh, 420px);
    max-width: 46vw;
    object-fit: contain;
    object-position: right bottom;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 1024px) and (orientation: portrait) {
    body {
        padding-bottom: calc(28vh + env(safe-area-inset-bottom));
    }

    .mark h1 {
        font-size: clamp(28px, 8.6vw, 64px);
    }

    .yuh {
        font-size: 8px;
        margin-top: 10px;
    }

    .character {
        height: min(30vh, 280px);
        max-width: 42vw;
    }
}

@media (min-width: 1025px), ((min-width: 769px) and (orientation: landscape)) {
    body::before {
        background-attachment: fixed;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mark {
        transform: none !important;
    }
}
