:root {
    --gs-eco-menu-h: 168px;
}

/* Ekonomi üst menü — ozel_saldiri.php ile aynı kutucuklar */
.mt-sticky-wrap {
    position: sticky;
    top: var(--gs-bar-h, 44px);
    z-index: 9000;
    background: var(--bg-card, #0e1c33);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.mt-sticky-wrap .menu-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card, #0e1c33);
}
.mt-sticky-wrap .menu-table td {
    width: 33.33%;
    padding: 10px 5px;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    vertical-align: middle;
}
.mt-sticky-wrap .menu-table td a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-secondary, #8899a6);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    word-break: break-word;
}
.mt-sticky-wrap .menu-table td a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.mt-sticky-wrap .menu-table td.active {
    background: var(--bg-lighter, #14264a);
}
.mt-sticky-wrap .menu-table td.active a {
    color: var(--accent-red, #e74c3c);
    font-weight: 600;
}

/* Sayfa başlığı — ekonomi menüsünün hemen altında sabit */
body:not(.has-gs-chrome) .mt-sticky-wrap ~ .game-sticky-hdr {
    top: var(--gs-eco-menu-h) !important;
    z-index: 8980;
}
body.has-gs-chrome .mt-sticky-wrap ~ .game-sticky-hdr {
    top: calc(var(--gs-bar-h, 44px) + var(--gs-eco-menu-h)) !important;
    z-index: 8980;
}

.mt {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: var(--bg-card, #0e1c33);
}
.mt td {
    width: 33.33%;
    padding: 9px 4px;
    text-align: center;
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    vertical-align: middle;
}
.mt td a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-secondary, #7e92b4);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    word-break: break-word;
    padding: 2px 1px;
    min-height: 38px;
}
.mt td a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}
.mt td.on,
.mt td.active {
    background: var(--bg-lighter, #14264a);
}
.mt td.on a,
.mt td.active a {
    color: var(--accent-red, #ff5269);
}

.mt-sub {
    margin-top: 0;
    border-top: none;
}

@media (min-width: 520px) {
    .mt td a {
        flex-direction: row;
        font-size: 11px;
        gap: 5px;
        min-height: 36px;
    }
}

/* Sayfa başlığı — menünün altında, scroll'da menüyle birlikte üstte kalır */
.game-page-subhdr {
    position: sticky;
    top: calc(var(--gs-bar-h, 44px) + var(--gs-eco-menu-h, 168px));
    z-index: 8990;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(180deg, var(--bg-lighter, #14264a) 0%, var(--bg-card, #0e1c33) 100%);
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.game-page-subhdr-back {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark, #060b14);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    color: var(--text-secondary, #7e92b4);
    flex-shrink: 0;
    text-decoration: none;
}
.game-page-subhdr-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #e8e8e8);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-page-subhdr-title i {
    color: var(--accent-blue, #2f7bff);
    flex-shrink: 0;
}

.game-page-content {
    padding: 12px;
    max-width: 680px;
    margin: 0 auto;
}
