@font-face {
    font-family: 'BestTenDOT';
    src: url('/assets/fonts/BestTen-DOT.otf') format('opentype');
    font-display: swap;
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    background-color: #0f0f0f;
    font-family: 'BestTenDOT', sans-serif;
    width: 100vw;
    height: 100vh;
    min-width: 100dvw;
    min-height: 100dvh;
    overflow: hidden;
}

#app {
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#game-container {
    width: min(100vw, calc(100dvh * 4 / 3));
    height: min(100vh, calc(100dvw * 3 / 4));
    max-width: 100dvw;
    max-height: 100dvh;
    aspect-ratio: 4 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#game-container canvas {
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

#rotate-notice {
    position: absolute;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(8, 10, 12, 0.96);
    z-index: 10;
}

.rotate-notice__panel {
    width: min(80vw, 420px);
    padding: 28px 24px;
    border: 3px solid rgba(244, 241, 216, 0.22);
    background: rgba(23, 29, 35, 0.96);
    text-align: center;
}

.rotate-notice__title {
    font-size: 28px;
    color: #ffe08d;
    margin-bottom: 14px;
}

.rotate-notice__body {
    font-size: 18px;
    color: #f4f1d8;
    line-height: 1.6;
}

body.mobile-portrait #game-container {
    display: none;
}

body.mobile-portrait #rotate-notice {
    display: flex;
}
