body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #000;
}

/* Lock scroll only during cutscene; removed by JS after reveal */
body.cutscene-active {
    overflow: hidden;
}

#background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.bg-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
}

.bg-layer img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@font-face {
    font-family: '8bitoperator';
    src: url('/assets/fonts/8bitOperatorPlus-Bold.woff') format('truetype');
}

#text-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75vw;
    height: 75vh;
    z-index: 100;
    pointer-events: none;
}

#text-display {
    font-family: '8bitoperator', monospace;
    font-size: 40px;       /* bigger */
    font-weight: bold;     /* bold */
    color: white;
    text-align: center;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-shadow: 0px 0px 7px #a8a8a8;

    /* Disable font smoothing for pixelated effect */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;

    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.char-wrapper {
    display: inline-block;
}

.char-glow,
.char-main {
    font-family: '8bitoperator', monospace;
    font-weight: bold;           /* make glow bold too */
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: never;
}
