#chobotsHostWorld,
#chobotsRelayGuestStatus {
    box-sizing: border-box;
    width: 1182px;
    margin: 12px auto;
    border: 5px solid #fff;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(#268bc5, #08659f);
    box-shadow: 0 2px 8px rgba(0, 35, 70, .35);
    font: 14px Arial, sans-serif;
}

#chobotsHostWorld[hidden] {
    display: none;
}

#chobotsHostDiagnostics[hidden] {
    display: none;
}

#chobotsGameStage {
    position: relative;
    width: 1192px;
    margin: 10px auto;
}

#chobotsGameStage #flashContent {
    margin: 0;
}

#chobotsPlayChooser {
    position: absolute;
    z-index: 20;
    inset: 5px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    padding: 24px;
    color: #fff;
    background: rgba(0, 35, 70, .86);
    border-radius: 7px;
    font: 15px Arial, sans-serif;
}

#chobotsPlayChooser[hidden] {
    display: none;
}

.play-chooser-card {
    width: min(620px, 100%);
    box-sizing: border-box;
    padding: 24px;
    border: 4px solid #fff;
    border-radius: 14px;
    background: linear-gradient(#268bc5, #08659f);
    box-shadow: 0 8px 28px rgba(0, 20, 50, .55);
}

.play-chooser-card h1 {
    margin: 0 0 8px;
    font-size: 26px;
}

.play-chooser-options,
.play-chooser-join {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.play-chooser-options button {
    flex: 1 1 0;
    min-height: 86px;
}

.play-chooser-options button,
.play-chooser-join button {
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 10px 14px;
    color: #064d7b;
    background: #fff;
    cursor: pointer;
}

.play-chooser-options strong,
.play-chooser-options span {
    display: block;
}

.play-chooser-options strong {
    margin-bottom: 5px;
    font-size: 17px;
}

#chobotsJoinForm {
    margin-top: 22px;
}

#chobotsJoinCode {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px;
    border: 2px solid #fff;
    border-radius: 7px;
}

#chobotsJoinError {
    color: #ffe790;
    font-weight: bold;
}

.private-world-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px 12px;
}

#chobotsHostWorld[data-mode="private"] .private-world-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.private-world-section {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 45, 91, .48);
}

.private-world-section h2 {
    margin: 0 0 10px;
    font-size: 16px;
}

.private-world-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.private-world-actions input[type="text"] {
    box-sizing: border-box;
    min-width: 0;
    flex: 1 1 150px;
}

.private-world-actions button,
.private-world-file {
    border: 1px solid #fff;
    border-radius: 5px;
    padding: 6px 9px;
    color: #064d7b;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
}

.private-world-actions button:focus-visible,
.private-world-file:focus-within {
    outline: 3px solid #ffd45c;
    outline-offset: 2px;
}

#chobotsShareLink {
    box-sizing: border-box;
    width: 100%;
    margin: 7px 0 10px;
    padding: 7px;
    border: 1px solid #fff;
    border-radius: 5px;
}

#chobotsPersistenceWarning {
    display: block;
    margin: 0 0 9px;
    color: #ffe790;
}

#chobotsRelayGuestStatus {
    padding: 12px 16px;
}

#chobotsRelayGuestLeave {
    float: right;
}

@media (max-width: 1210px) {
    #flashContent,
    #chobotsGameStage,
    #chobotsHostWorld,
    #chobotsRelayGuestStatus {
        max-width: calc(100vw - 20px);
    }

    #flashContent {
        overflow: auto;
    }

    .play-chooser-options,
    .play-chooser-join {
        flex-direction: column;
    }

    .private-world-body {
        grid-template-columns: 1fr;
    }

    #chobotsHostWorld[data-mode="private"] .private-world-body {
        grid-template-columns: 1fr;
    }
}
