/* Play shell — the game fills the screen; controls stay one move away. */

.play {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow: hidden;
    background: #0B0D10;
}

.play.is-on {
    display: block;
}

.play iframe {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    background: #090A0C;
}

.play-handle,
.play-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    border: 1px solid rgba(23, 26, 32, 0.16);
    color: #171A20;
    background: rgba(255, 252, 247, 0.96);
}

.play-handle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    opacity: 0.82;
    transition:
        opacity 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play-handle:hover,
.play-handle:focus-visible {
    opacity: 1;
}

.play-bar {
    display: flex;
    width: min(430px, calc(100vw - 28px));
    min-height: 56px;
    align-items: center;
    gap: 3px;
    padding: 6px;
    border-radius: 14px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition:
        opacity 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play.controls-on .play-bar,
.play-bar:hover,
.play-bar:focus-within {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.play.controls-on .play-handle,
.play:has(.play-bar:focus-within) .play-handle {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.play-btn {
    display: grid;
    width: 42px;
    height: 42px;
    flex: none;
    place-items: center;
    border-radius: 9px;
    color: #171A20;
    transition: background-color 140ms ease, transform 140ms ease;
}

.play-btn:hover {
    background: rgba(23, 26, 32, 0.07);
}

.play-btn:disabled {
    opacity: 0.42;
    cursor: wait;
}

.play-btn:active {
    transform: scale(0.94);
}

.play-div {
    width: 1px;
    height: 24px;
    margin: 0 5px 0 2px;
    background: rgba(23, 26, 32, 0.13);
}

.play-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.05;
}

.play-kicker {
    color: #687077;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.play-title {
    overflow: hidden;
    max-width: 170px;
    font-size: 0.88rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.play-spacer {
    min-width: 8px;
    flex: 1;
}

.play-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    gap: 13px;
    align-items: center;
    justify-content: center;
    color: #F7F4EF;
    background: #0B0D10;
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.play-loading-mark {
    display: block;
    width: 24px;
    height: 24px;
    border: 6px solid rgba(255, 255, 255, 0.16);
    border-right-color: #25BF89;
    border-radius: 50%;
}

@media (max-width: 520px) {
    .play-handle,
    .play-bar {
        top: 10px;
        left: 10px;
    }

    .play-bar {
        width: calc(100vw - 20px);
    }

    .play-copy {
        max-width: 34vw;
    }

    .play-title {
        max-width: 100%;
    }
}

@media (pointer: coarse) {
    .play-handle {
        display: none;
    }

    .play-bar {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .play-btn {
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .play-handle,
    .play-bar,
    .play-btn {
        transition: none;
    }
}

.play-recovery {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    padding: 78px 20px 24px;
    color: #F7F4EF;
    background:
        radial-gradient(520px 280px at 50% 42%, rgba(37, 191, 137, 0.08), transparent 72%),
        #0B0D10;
}

.play-recovery-card {
    width: min(100%, 430px);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
}

.play-recovery-mark {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0 auto 17px;
    place-items: center;
    border: 1px solid rgba(37, 191, 137, 0.28);
    border-radius: 12px;
    color: #64DDB3;
    background: rgba(37, 191, 137, 0.08);
    font-size: 1.2rem;
    font-weight: 800;
}

.play-recovery-kicker {
    margin: 0 0 7px;
    color: #64DDB3;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.play-recovery h2 {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.play-recovery-card > p:not(.play-recovery-kicker) {
    margin: 10px auto 0;
    max-width: 34rem;
    color: rgba(247, 244, 239, 0.66);
    font-size: 0.88rem;
    line-height: 1.5;
}

.play-recovery-action {
    width: 100%;
    min-height: 48px;
    margin-top: 21px;
    border: 1px solid #25BF89;
    border-radius: 12px;
    color: #071C15;
    background: #25BF89;
    font-weight: 800;
    transition: background-color 140ms ease, transform 140ms ease;
}

.play-recovery-action:hover { background: #55D6A9; }
.play-recovery-action:active { transform: scale(0.985); }
.play-recovery-action:focus-visible {
    outline: 3px solid rgba(100, 221, 179, 0.42);
    outline-offset: 3px;
}

.play-recovery-details {
    margin-top: 15px;
    color: rgba(247, 244, 239, 0.5);
    font-size: 0.74rem;
    text-align: left;
}

.play-recovery-details summary {
    width: max-content;
    margin: 0 auto;
    padding: 4px;
    color: rgba(247, 244, 239, 0.7);
    font-weight: 700;
    cursor: pointer;
}

.play-recovery-details p {
    margin: 9px 0 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 520px) {
    .play-recovery { padding: 76px 14px 18px; }
    .play-recovery-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .play-recovery-action { transition: none; }
}
