/* ==========================================================================
   Platform Capability Gating
   Hides or shows interface elements based on active platform capabilities.
   ========================================================================== */

/* Elements disabled on current platform */
html.no-cap-ownAccounts [data-cap~="ownAccounts"],
html.no-cap-externalLinks [data-cap~="externalLinks"],
html.no-cap-chat [data-cap~="chat"],
html.no-cap-purchases [data-cap~="purchases"],
html.no-cap-platformAccounts [data-cap~="platformAccounts"] {
    display: none !important;
}

/* By default, platform accounts buttons are hidden (on web) */
[data-cap~="platformAccounts"] {
    display: none;
}

/* When platformAccounts is supported (Yandex/CrazyGames), display them */
html.has-cap-platformAccounts [data-cap~="platformAccounts"] {
    display: inline-flex;
}
html.has-cap-platformAccounts div[data-cap~="platformAccounts"],
html.has-cap-platformAccounts section[data-cap~="platformAccounts"] {
    display: block;
}

/* Studio Maintenance Overlay */
.game-maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(8, 10, 16, 0.94);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.game-maintenance-card {
    max-width: 440px;
    width: 100%;
    text-align: center;
    background: rgba(20, 24, 36, 0.96);
    border: 1px solid rgba(255, 71, 87, 0.45);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.game-maintenance-icon {
    font-size: 2.6rem;
    margin-bottom: 10px;
}

.game-maintenance-card h2 {
    margin: 0 0 10px;
    font-size: 1.35rem;
    color: #fff;
}

.game-maintenance-card p {
    margin: 0 0 20px;
    color: rgba(220, 226, 240, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
}

.game-maintenance-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
