html,
body {
    width: 100%;
    height: 100%;
}

body.platform-itch {
    margin: 0;
    overflow: hidden;
    background: #0f0f1e;
    touch-action: none;
}

.itch-frame {
    position: relative;
    width: 100vw;
    height: 100vh;
    width: 100dvw;
    height: 100dvh;
    overflow: hidden;
    background: #0f0f1e;
}

.itch-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 900px;
    transform: translate(-50%, -50%) scale(var(--itch-scale, 1));
    transform-origin: center center;
}

body.platform-itch #game-container {
    width: 600px;
    height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.platform-itch #gameCanvas {
    width: 600px;
    height: 900px;
    border: none;
    box-shadow: none;
}

body.platform-itch #ui-overlay {
    width: 100%;
    height: 100%;
}

body.platform-itch.itch-fluid .itch-stage {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 100%;
    transform: none;
}

body.platform-itch.itch-fluid #game-container,
body.platform-itch.itch-fluid #gameCanvas {
    width: 100%;
    height: 100%;
}

.itch-fatal {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 107, 107, 0.32);
    background: rgba(44, 13, 18, 0.94);
    color: #ffd1d1;
    z-index: 10002;
}

.itch-fatal h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #fff2f2;
}

.itch-fatal p {
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}
