html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.87);
    background-color: #000000;
}

#app,
#pixi-container {
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
}

#app {
    position: relative;
}

.join-screen {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 12, 0.92);
    z-index: 1000;
}

.join-screen.hidden {
    display: none;
}

.join-panel {
    width: min(360px, calc(100vw - 48px));
    padding: 24px;
    background: #141418;
    border: 1px solid #555566;
    font-family: monospace;
}

.join-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: bold;
    color: #66ccff;
    letter-spacing: 0.08em;
}

.join-notice {
    margin: 0 0 20px;
    padding: 10px 12px;
    border: 1px solid #444455;
    background: #1a1a22;
    font-size: 11px;
    line-height: 1.45;
    color: #9999aa;
}

.join-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    color: #888899;
}

.join-input {
    box-sizing: border-box;
    width: 100%;
    height: 32px;
    margin-bottom: 12px;
    padding: 0 10px;
    border: 1px solid #555566;
    background: #1e1e28;
    color: #dddddd;
    font-family: monospace;
    font-size: 13px;
    outline: none;
}

.join-input:focus {
    border-color: #66ccff;
}

.join-input:disabled {
    opacity: 0.6;
}

.join-button {
    width: 100%;
    height: 32px;
    border: 1px solid #777788;
    background: #333344;
    color: #cccccc;
    font-family: monospace;
    font-size: 12px;
    cursor: pointer;
}

.join-button:hover:not(:disabled) {
    background: #444455;
}

.join-button:disabled {
    opacity: 0.5;
    cursor: default;
}

.join-error {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 11px;
    color: #ff6666;
    visibility: hidden;
}

.join-error.visible {
    visibility: visible;
}
