/**
 * Ilk boyama / layout shift onleme — main-bundle oncesi yuklenir.
 */
:root {
    --site-header-stack-height: 142px;
    --site-main-below-header-gap: 12px;
    --body-bg: #0b1511;
    --headerBG: #0d1814;
}

html {
    background-color: var(--body-bg);
}

body#bodyId {
    margin: 0;
    min-height: 100vh;
    background-color: var(--body-bg);
    overflow-x: hidden;
}

/* Header: bundle gelmeden once sabit alan */
.headBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 85px;
    z-index: 99;
    background: var(--headerBG);
    box-sizing: border-box;
}

/* Bakiye API geldiginde metin genisligi oynamasin */
.balText .amount {
    display: inline-block;
    min-width: 3.5ch;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.balText .currency {
    display: inline-block;
    min-width: 1.2ch;
}

/* Logo: yukleme sirasinda ziplama azalt */
.headLogo .site-logo-image,
.headLogo .logo-text {
    will-change: auto;
}

/* Sayfa acilisinda animasyon/transition kapali — JS kaldirinca duzgun calisir */
html.bm-loading *,
html.bm-loading *::before,
html.bm-loading *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
}

html.bm-loading .carousel-item.active,
html.bm-loading .gameCol,
html.bm-loading .secTitle .animation-textBar {
    animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
