@font-face {
    font-family: "Great Vibes";
    font-display: block;
    src: url("great-vibes-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Great Vibes";
    font-display: block;
    src: url("great-vibes-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Gilda Display";
    font-display: swap;
    src: url("gilda-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Gilda Display";
    font-display: swap;
    src: url("gilda-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-weight: 400;
    font-display: swap;
    src: url("nunito-400-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-weight: 400;
    font-display: swap;
    src: url("nunito-400-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Nunito";
    font-weight: 800;
    font-display: swap;
    src: url("nunito-800-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Nunito";
    font-weight: 800;
    font-display: swap;
    src: url("nunito-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue: #004984;
    --pink-deep: #c45d7a;
    --pink-soft: #f6e5eb;
    --white: #fff;
    --radius: 20px;
    --wolf: min(60vw, 260px);
    --card-w: min(52vw, 240px);
    --card-h: calc(var(--card-w) * 1.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    background: #f3f1ee url("papirka.png") center / cover no-repeat fixed;
    font-family: Nunito, sans-serif;
    font-weight: 400;
}

.stage {
    width: min(420px, 100%);
    min-height: min(740px, calc(100dvh - 24px));
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: var(--white);
    border-radius: 26px;
    box-shadow: 0 16px 36px rgba(23, 15, 59, .08);
}

h1 {
    margin: 0;
    text-align: center;
    color: var(--blue);
    font: 400 clamp(1.45rem, 5.8vw, 1.9rem)/1.22 "Gilda Display", Georgia, serif;
    letter-spacing: -.02em;
}

h1 span {
    font-family: "Great Vibes", cursive;
    font-size: 1.45em;
}

.scene {
    position: relative;
    width: calc(var(--wolf) / 2 + var(--card-w));
    height: var(--card-h);
}

.wolf {
    position: absolute;
    top: 50%;
    width: var(--wolf);
    height: var(--wolf);
    transform: translateY(-50%);
    pointer-events: none;
}

.wolf-blue {
    left: 0;
    clip-path: inset(0 50% 0 0);
}

.wolf-pink {
    left: calc(var(--wolf) / -2);
    clip-path: inset(0 0 0 50%);
    z-index: 0;
}

.card-slot {
    position: absolute;
    inset: 0 0 0 auto;
    width: var(--card-w);
    border-radius: var(--radius);
    box-shadow: 8px 11px 13px rgba(0, 73, 132, .28);
}

.card {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
    padding: 22px 18px;
    text-align: center;
    border-radius: inherit;
    overflow: hidden;
    background: var(--pink-soft);
}

.message-category {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--blue);
    font-family: Nunito, sans-serif;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.message {
    position: relative;
    z-index: 1;
    margin: 0;
    align-self: center;
    max-width: 15ch;
    color: var(--pink-deep);
    font: 400 clamp(1.05rem, 4.4vw, 1.35rem)/1.28 "Gilda Display", Georgia, serif;
    letter-spacing: -.015em;
}

@media (min-width: 720px) {
    :root {
        --wolf: 340px;
        --card-w: 300px;
    }

    .stage {
        width: min(760px, 100%);
        padding: 48px 40px;
        gap: 44px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .message-category {
        font-size: .74rem;
    }

    .message {
        font-size: 1.6rem;
    }
}
