.game-center-widget {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 1038;
}

.game-center-toggle {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7a18, #ffb703 52%, #22c55e);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 36px rgba(249, 115, 22, .34), 0 0 0 8px rgba(255, 255, 255, .7);
    transition: transform .18s ease, box-shadow .18s ease;
}

.game-center-toggle i {
    font-size: 30px;
    line-height: 1;
}

.game-center-toggle:hover,
.game-center-toggle.is-open {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 22px 42px rgba(249, 115, 22, .4), 0 0 0 8px rgba(255, 255, 255, .85);
}

.game-center-menu {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(300px, calc(100vw - 34px));
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(254, 215, 170, .9);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(10px) scale(.96);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.game-center-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.game-center-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 12px;
    color: #0f172a;
    font-weight: 900;
    border-bottom: 1px solid #ffedd5;
}

.game-center-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #f97316;
}

.game-center-link {
    min-height: 62px;
    margin-top: 10px;
    border-radius: 8px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    color: #334155;
    text-decoration: none;
    font-weight: 800;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.game-center-link:hover,
.game-center-link.is-active {
    color: #0f172a;
    background: #fff7ed;
    border-color: #fed7aa;
    transform: translateX(-2px);
}

.game-center-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: inset 0 -4px 10px rgba(15, 23, 42, .16);
}

.game-center-link-icon.match {
    background: linear-gradient(135deg, #06b6d4, #22c55e);
}

.game-center-link-icon.farm {
    background: linear-gradient(135deg, #84cc16, #f97316);
}

@media (max-width: 575.98px) {
    .game-center-widget {
        right: 14px;
        bottom: 18px;
    }

    .game-center-toggle {
        width: 58px;
        height: 58px;
    }

    .game-center-toggle i {
        font-size: 27px;
    }
}
