html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    /* The game's own background, so loading never flashes white. */
    background-color: #14121B;
    color: #E8E4F0;
}

#composeTarget {
    flex: 1;
    min-height: 0;
}

#status {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    white-space: pre-wrap;
    text-align: center;
    font-size: 16px;
    line-height: 1.4;
    z-index: 1;
    /* Opaque, so a message shown after the game has drawn stays readable. */
    background-color: #14121B;
}

#status[hidden] {
    display: none;
}

/* The ?debug log, over the bottom half so the game stays visible above it. */
#debug {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 50%;
    margin: 0;
    padding: 8px;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    color: #5EC4B6;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-all;
    z-index: 2;
    user-select: text;
    -webkit-user-select: text;
}

#status.error {
    /* A block, not a centered flex box, so a tall stack trace scrolls from its first line. */
    display: block;
    color: #E07A5F;
    text-align: left;
    font-family: ui-monospace, Menlo, monospace;
    font-size: 13px;
    overflow: auto;
    user-select: text;
    -webkit-user-select: text;
}
