/* Kiosk start screen on the dashboard: "Začať" over the blurred page. */

/* While the start screen waits and the intro plays, the content entrance holds
   at its first frame. The header is not held, so the logo from the intro
   lands in a fixed place. */
html.intro-hold main,
html.intro-hold main *,
html.intro-hold main *::before,
html.intro-hold main *::after,
html.intro-hold .site-footer,
html.intro-hold .site-footer *,
html.intro-hold .site-footer *::before,
html.intro-hold .site-footer *::after { animation-play-state: paused !important; }

/* Under the blurred start screen the backdrop and the header stand still too,
   so the blur is not recomputed every frame on the weak booth laptops. */
html.kiosk-idle .backdrop *,
html.kiosk-idle .site-header,
html.kiosk-idle .site-header *,
html.kiosk-idle .site-header::after { animation-play-state: paused !important; }

.kiosk-start {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(60% 55% at 50% 50%, rgb(255 255 255 / 70%), rgb(255 255 255 / 35%));
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    cursor: pointer;
    opacity: 0;
    transition: opacity .45s ease;
}
.kiosk-start.is-visible { opacity: 1; }
.kiosk-start[hidden] { display: none; }

.kiosk-start-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 14px 14px 14px 40px;
    border: 0;
    border-radius: 100px;
    background: var(--teal);
    color: #fff;
    font: 700 28px/1 "Instrument Sans", system-ui, sans-serif;
    letter-spacing: -.4px;
    box-shadow: 0 26px 50px -26px rgb(0 103 90 / 95%), inset 0 1px 0 rgb(255 255 255 / 18%);
    cursor: pointer;
    transition: background-color .2s ease, scale .5s var(--ease-spring);
}
.kiosk-start-button:hover { background: var(--deep-teal); scale: 1.03; }
.kiosk-start-button:focus-visible { outline: 3px solid rgb(26 175 169 / 60%); outline-offset: 5px; }
.kiosk-start-arrow {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--ink);
    box-shadow: 0 10px 20px -10px rgb(255 152 15 / 90%);
}
.kiosk-start-arrow svg { width: 24px; height: 24px; stroke-width: 2.2; fill: none; transition: translate .5s var(--ease-spring); }
.kiosk-start-button:hover .kiosk-start-arrow svg { translate: 3px 0; }

@media (prefers-reduced-motion: no-preference) {
    .kiosk-start-button::after {
        content: "";
        position: absolute;
        inset: -10px;
        border-radius: inherit;
        border: 2px solid rgb(26 175 169 / 50%);
        animation: kiosk-ring 2.4s var(--ease-out) infinite;
        pointer-events: none;
    }
}
@keyframes kiosk-ring {
    from { opacity: .9; scale: .94; }
    to { opacity: 0; scale: 1.14; }
}
