/* =========================================================
   PLAY PAGE
========================================================= */

.play-page {
    padding: 26px 0 40px;
}

.play-container {
    max-width: 1180px;
}


/* =========================================================
   PLAY HEADING
========================================================= */

.play-heading {
    margin-bottom: 14px;
}

.play-heading-main {
    min-width: 0;
}

.play-heading h1 {
    margin: 0 0 6px;

    color: var(--text);

    font: 700 28px/1.15 var(--head);
    letter-spacing: -0.4px;
}


/* =========================================================
   PLAY META
========================================================= */

.play-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.4;
}

.play-meta-game {
    color: var(--text2);

    font-weight: 600;
    text-decoration: none;

    transition: color 0.15s ease;
}

.play-meta-game:hover {
    color: var(--red);
}

.play-meta-separator {
    color: var(--line-dark);

    user-select: none;
}

.play-meta-label {
    color: var(--muted);
}


/* =========================================================
   PLAYER
========================================================= */

.game-player {
    width: 100%;

    overflow: hidden;

    border: 1px solid var(--line-dark);
    border-radius: 7px;

    background: #050505;

    box-shadow:
        0 6px 24px
        rgba(0, 0, 0, 0.12);
}


/* =========================================================
   PLAYER BAR
========================================================= */

.player-bar {
    min-height: 48px;

    padding: 7px 9px 7px 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: var(--surface);

    border-bottom: 1px solid var(--line);
}

.player-state {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
    font-weight: 500;
}

.player-state-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #6f9f58;

    box-shadow:
        0 0 0 3px
        rgba(111, 159, 88, 0.12);
}

.player-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 7px;
}

.player-button {
    min-height: 33px;

    padding: 0 12px;

    border: 1px solid var(--line);
    border-radius: 4px;

    background: var(--surface2);
    color: var(--text2);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.player-button:hover {
    border-color: var(--line-dark);

    color: var(--text);
}

.player-button-primary {
    border-color: var(--red);

    background: var(--red);
    color: #fff;
}

.player-button-primary:hover {
    border-color: var(--red);

    color: #fff;

    filter: brightness(1.06);
}


/* =========================================================
   GAME SCREEN
========================================================= */

.game-screen {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #000;
}

.game-frame {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;

    background: #000;
}


/* =========================================================
   START SCREEN
========================================================= */

.game-start {
    position: absolute;
    inset: 0;

    z-index: 5;

    padding: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(45, 41, 34, 0.97) 0,
            rgba(18, 17, 15, 0.98) 52%,
            #090909 100%
        );
}

.game-start.is-hidden {
    display: none;
}

.game-start-inner {
    width: 100%;
    max-width: 540px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;
}

.game-start-cover {
    width: 118px;
    height: 118px;

    flex: 0 0 118px;

    display: block;

    object-fit: cover;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;

    background: #111;

    box-shadow:
        0 8px 22px
        rgba(0, 0, 0, 0.28);
}

.game-start-content {
    min-width: 0;
}

.game-start-platform {
    margin-bottom: 4px;

    color: #aaa295;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.game-start h2 {
    margin: 0 0 17px;

    color: #fff;

    font: 700 24px/1.2 var(--head);
    letter-spacing: -0.3px;
}


/* =========================================================
   PLAY BUTTON
========================================================= */

.game-play-button {
    min-width: 170px;
    min-height: 47px;

    padding: 0 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;
    border-radius: 5px;

    background: var(--red);
    color: #fff;

    font-family: var(--body);
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.25);
}

.game-play-button:hover {
    filter: brightness(1.07);
}

.game-play-button:active {
    transform: translateY(1px);
}

.game-play-icon {
    font-size: 11px;
}

.game-start p {
    max-width: 310px;

    margin: 11px 0 0;

    color: #9d968a;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   BELOW PLAYER
========================================================= */

.play-below {
    padding: 14px 2px 0;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.play-help {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 2px;

    color: var(--muted);

    font-size: 12px;
    line-height: 1.45;
}

.play-help strong {
    color: var(--text2);

    font-weight: 600;
}

.play-links {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--muted);

    font-size: 12px;
}

.play-links a {
    color: var(--text2);

    text-decoration: none;
}

.play-links a:hover {
    color: var(--red);
}


/* =========================================================
   FULLSCREEN
========================================================= */

.game-player:fullscreen {
    width: 100vw;
    height: 100vh;

    max-width: none;

    display: flex;
    flex-direction: column;

    border: 0;
    border-radius: 0;

    background: #000;

    box-shadow: none;
}

.game-player:fullscreen .player-bar {
    flex: 0 0 auto;
}

.game-player:fullscreen .game-screen {
    min-height: 0;

    flex: 1;

    aspect-ratio: auto;
}


/* =========================================================
   SAFARI / WEBKIT FULLSCREEN
========================================================= */

.game-player:-webkit-full-screen {
    width: 100vw;
    height: 100vh;

    display: flex;
    flex-direction: column;

    border: 0;
    border-radius: 0;

    background: #000;

    box-shadow: none;
}

.game-player:-webkit-full-screen .player-bar {
    flex: 0 0 auto;
}

.game-player:-webkit-full-screen .game-screen {
    min-height: 0;

    flex: 1;

    aspect-ratio: auto;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .play-page {
        padding-top: 20px;
    }

    .play-heading h1 {
        font-size: 23px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .play-page {
        padding: 14px 0 28px;
    }


    /* Heading */

    .play-heading {
        margin-bottom: 11px;
        padding: 0 14px;
    }

    .play-heading h1 {
        margin-bottom: 5px;

        font-size: 21px;
        line-height: 1.2;
    }

    .play-meta {
        gap: 5px;

        font-size: 11px;
    }


    /* Player */

    .game-player {
        border-left: 0;
        border-right: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .player-bar {
        min-height: 45px;

        padding: 6px 9px;
    }

    .player-state {
        min-width: 13px;
    }

    .player-state-text {
        display: none;
    }

    .player-button {
        min-height: 32px;

        padding: 0 10px;

        font-size: 11px;
    }


    /* Game screen */

    .game-screen {
        aspect-ratio: 4 / 3;
    }


    /* Start screen */

    .game-start {
        padding: 17px;
    }

    .game-start-inner {
        flex-direction: column;

        gap: 10px;

        text-align: center;
    }

    .game-start-cover {
        width: 72px;
        height: 72px;

        flex-basis: 72px;
    }

    .game-start-platform {
        margin-bottom: 3px;

        font-size: 10px;
    }

    .game-start h2 {
        margin-bottom: 12px;

        font-size: 18px;
    }

    .game-play-button {
        min-width: 165px;
        min-height: 44px;

        padding: 0 18px;

        font-size: 13px;
    }

    .game-start p {
        margin: 9px auto 0;

        font-size: 11px;
    }


    /* Below player */

    .play-below {
        padding: 13px 14px 0;

        flex-direction: column;

        gap: 9px;
    }

    .play-links {
        flex-wrap: wrap;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .game-start-cover {
        width: 62px;
        height: 62px;

        flex-basis: 62px;
    }

    .game-start h2 {
        font-size: 17px;
    }

}