.player-page {
    max-width: 1180px;
}

.home-link {
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
}

.home-link:hover {
    text-decoration: underline;
}

.player-setup {
    margin-block: 18px 12px;
}

.player-setup h1 {
    font-size: clamp(24px, 5vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 10px;
}

.player-setup button:disabled {
    cursor: default;
    opacity: 0.55;
}

#player-status:empty {
    display: none;
}

#player-status[data-error] {
    color: #ffb6aa;
}

#game {
    width: 100%;
    height: min(58vw, 70dvh);
    min-height: 270px;
    height: max(270px, min(58vw, 70dvh));
    background-color: #090f18;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

#game[hidden], [hidden] {
    display: none;
}

@media (max-width: 680px) {
    .player-page {
        padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    }
}

@media (max-height: 580px) and (orientation: landscape) {
    .player-page .top {
        padding-bottom: 7px;
    }

    #game {
        min-height: 200px;
        height: 70dvh;
    }
}
