#ghost-startup {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: grid;
    place-items: center;
    background: #020a05;
    padding: 0;
}
#ghost-startup-warning {
    position: absolute;
    inset: 0;
    overflow: auto;
    padding: max(3vh, env(safe-area-inset-top)) max(calc(24px * var(--ui-scale, 1)), env(safe-area-inset-right), calc((100vw - calc(820px * var(--ui-scale, 1) * var(--text-scale, 1))) / 2)) max(3vh, env(safe-area-inset-bottom)) max(calc(24px * var(--ui-scale, 1)), env(safe-area-inset-left), calc((100vw - calc(820px * var(--ui-scale, 1) * var(--text-scale, 1))) / 2));
    background: #020a05;
    font-size: calc(16px * var(--ui-scale, 1) * var(--text-scale, 1));
    overflow-wrap: anywhere;
    text-shadow: 0 0 calc(8px * var(--ui-scale, 1)) #59f48066;
    line-height: 1.5;
}
#ghost-startup-warning::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(transparent 0 calc(3px * var(--ui-scale, 1)), #0002 calc(3px * var(--ui-scale, 1)) calc(4px * var(--ui-scale, 1)));
    box-shadow: inset 0 0 calc(100px * var(--ui-scale, 1)) #0009;
}
#ghost-startup-continue {
    display: block;
    width: 100%;
    margin: calc(24px * var(--ui-scale, 1)) 0;
    min-height: calc(44px * var(--ui-scale, 1));
}
@media (max-width: 600px), (max-height: 500px) {
    #ghost-startup-warning {
        padding: max(calc(8px * var(--ui-scale, 1)), env(safe-area-inset-top)) max(calc(16px * var(--ui-scale, 1)), env(safe-area-inset-right)) max(calc(8px * var(--ui-scale, 1)), env(safe-area-inset-bottom)) max(calc(16px * var(--ui-scale, 1)), env(safe-area-inset-left));
        font-size: calc(clamp(calc(12px * var(--ui-scale, 1)), min(4.4vw, 4vh), calc(16px * var(--ui-scale, 1))) * var(--text-scale, 1));
        line-height: 1.25;
    }
    #ghost-startup-warning > p {margin: calc(8px * var(--ui-scale, 1)) 0;}
    #ghost-startup-warning > p:first-child {display: none;}
    #ghost-startup-warning h1 {font-size: calc(24px * var(--ui-scale, 1) * var(--text-scale, 1)); margin: 0 0 calc(8px * var(--ui-scale, 1));}
    #ghost-startup-warning h2 {font-size: calc(18px * var(--ui-scale, 1) * var(--text-scale, 1)); margin: calc(8px * var(--ui-scale, 1)) 0;}
    #ghost-startup-continue {margin: calc(8px * var(--ui-scale, 1)) 0 0; padding: calc(10px * var(--ui-scale, 1));}
}
@media (max-height: 320px) {
    #ghost-startup-warning {line-height: 1.2;}
    #ghost-startup-warning > p {margin: calc(6px * var(--ui-scale, 1)) 0;}
    #ghost-startup-warning h1 {font-size: calc(20px * var(--ui-scale, 1) * var(--text-scale, 1)); margin-bottom: calc(4px * var(--ui-scale, 1));}
    #ghost-startup-warning h2 {font-size: calc(16px * var(--ui-scale, 1) * var(--text-scale, 1)); margin: calc(6px * var(--ui-scale, 1)) 0;}
    #ghost-startup-continue {margin-top: calc(6px * var(--ui-scale, 1));}
}
#ghost-startup-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    transform: translateZ(0);
    will-change: transform;
}
#ghost-startup-canvas[hidden] {
    display: none;
}
#ghost-startup-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
#ghost-startup [hidden] {
    display: none;
}
body:has(#ghost-startup) #ghost-game {
    visibility: hidden;
}
