* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overscroll-behavior: none;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

body {
    overflow: hidden;
    background: #1f1f1f;
}

.waiting-page {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    min-height: 100dvh;
    background: #1f1f1f;
    isolation: isolate;
    overflow: hidden;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

.waiting-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #000;
    opacity: 0;
    pointer-events: none;
}

.waiting-page--loading::before {
    opacity: 1;
}

#fish-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.waiting-page__scene-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease;
}

.waiting-page__scene-canvas.is-visible {
    opacity: 1;
}

.waiting-page__canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.waiting-page__logo {
    position: relative;
    z-index: 3;
    display: block;
    width: min(46vw, 320px);
    max-height: 34vh;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    filter: drop-shadow(0 4px 8px rgb(0, 0, 0));
}
