@font-face {
    font-family: "Hakgyoansim Manito R";
    src: url("./assets/fonts/Hakgyoansim_ManitoR.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: block;
}

/* Paint the snow behind the app, with the full window as its drawing area. */
html:has(#root .ybez-winter-wordmark) body {
    isolation: isolate;
    background: linear-gradient(155deg, #F8FCFF 12%, #EAF4FC) fixed !important;
}

.ybez-winter-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.ybez-winter-snow[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .ybez-winter-snow {
        display: none;
    }
}

/* Tint only the surrounding surfaces and the title's divider. */
html:root body #root:has(.ybez-winter-wordmark),
html:root body #root > .dashboard:has(.ybez-winter-wordmark) {
    background: transparent !important;
}

html:root body #root > .dashboard:has(.ybez-winter-wordmark) > :is(.col-left, .col-right) {
    background: rgb(246 250 253 / 46%) !important;
}

html:root body #root > .dashboard:has(.ybez-winter-wordmark) > .col-center {
    background: transparent !important;
}

html:root body #root .col-center > div:first-child:has(.ybez-winter-wordmark) {
    background: #F4FAFF !important;
    border-bottom-color: #CADDEC !important;
}

#root .ybez-winter-wordmark {
    display: inline-block;
    font: 400 1.75em / .74 "Hakgyoansim Manito R";
    color: #1A365D !important;
    white-space: nowrap;
    -webkit-text-stroke: 0.012em #1A365D;
    paint-order: stroke fill;
    text-shadow: 0 -0.045em 0 #FFFFFF,
                 0 -0.055em 0.024em rgb(26 54 93 / 20%);
}

.ybez-winter-snow[data-season] { overflow: hidden; }
.ybez-winter-snow[data-season] > span {
    position: absolute;
    top: -20px;
    width: var(--size);
    height: var(--size);
    animation: ybez-season-fall var(--fall) linear var(--delay) infinite;
}
.ybez-winter-snow[data-season] svg { display: block; width: 100%; height: 100%; }
.ybez-winter-snow[data-season="snow"] svg {
    animation: ybez-season-sway var(--cycle) ease-in-out var(--delay) infinite alternate;
}
.ybez-winter-snow[data-season="autumn"] svg {
    animation: ybez-season-turn var(--cycle) linear var(--delay) infinite;
}
@keyframes ybez-season-fall {
    to { transform: translate(var(--drift), calc(100vh + 40px)); }
}
@keyframes ybez-season-sway {
    from { transform: translateX(calc(-1 * var(--sway))); }
    to { transform: translateX(var(--sway)); }
}
@keyframes ybez-season-turn {
    to { transform: rotate(1turn); }
}
