@font-face {
    font-family: Inter;
    src: url('/fonts/Inter/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
  
@font-face {
    font-family: Inter;
    src: url('/fonts/Inter/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
  
@font-face {
    font-family: HalvarBreit;
    src: url('/fonts/HalvarBreit/HalvarBreit-Bd.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
  
@font-face {
    font-family: "SF-Mono";
    src: url('/fonts/SF-Mono/sf-mono-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -ms-overflow-style: none;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

*::-webkit-scrollbar-thumb {
    display: none;
}

button, a, input {
    font-family: Inter;
}

/* === Base === */
html {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color-scheme: light dark;
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    background: #141415;
    overflow: hidden;

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --max-width: 500px;
}

#root {
    width: 100%;
    height: 100%;
    background: #141415;
    overflow: hidden;
}

body {
    overscroll-behavior: none;
    touch-action: pan-x pan-y;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    color: #fff;
    place-items: center;
    margin: 0 auto;
}

@media only screen and (min-width: 500px) {
    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: calc(-50vw + calc(var(--max-width) / 2));
        width: calc(100vw);
        height: calc(100vh);
        height: calc(100svh);
        background: url('/images/backgrounds/desktop-bg.webp')!important;
        filter: blur(13px);
        background-size: cover!important;
        background-position: center!important;
        background-repeat: no-repeat!important;
        z-index: -1;
    }
}

/* === Global elements === */
P,
h1,
h2,
h3 {
    margin: 0;
}

button {
    outline: none;
    border: none;
    background: none;
    font-size: 100%;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    user-select: none;
}

h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    line-height: 28px;
}

.transparent {
    opacity: 0;
}

[dir='rtl'] .rtlFlip {
    transform: scaleX(-1);
}

/* === Preloader === */
#appLoader {
    display: flex !important;
    grid-template-columns: 1fr;
    flex-direction: column;
    grid-template-rows: 48px 93px 16px 40px auto 50vh;
    grid-template-rows: 48px 93px 16px 40px auto 50svh;
    position: fixed;
    inset: 0;
    background: url('/images/preloader/background-main.webp');
    background-size: 100% 100%;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    flex-direction: column;
    z-index: 1000;
    align-items: center;
    overflow: hidden;
    will-change: opacity, transform;
    transition: opacity 0.2s linear;
}

#appLoader.clans {
    background-image: url('/images/preloader/background-main-dark.webp');
}

#appLoader.leagues {
    background: url('/images/preloader/background-leagues.webp');
    background-size: 100% 100%;
}

@media only screen and (max-height: 600px) {
    #appLoader {
        grid-template-rows: 48px 93px 16px 40px auto 40vh;
        grid-template-rows: 48px 93px 16px 40px auto 40svh;
    }
}

@media only screen and (max-height: 500px) {
    #appLoader {
        grid-template-rows: 48px 93px 16px 40px auto 30vh;
        grid-template-rows: 48px 93px 16px 40px auto 30svh;
    }
}

#appLoader .spinner {
    width: 24px;
    height: 24px;
    min-height: 24px;
    border: 3px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: 24px auto 0;
    z-index: 10;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.preloaderHeaderContainer {
    display: flex;
    width: 100%;
    justify-content: center;
    align-self: end;
    margin-top: 20px;
}

.oneWinImage {
    top: 0;
    height: 73px;
}

.brightHr {
    opacity: 0.5;
    width: 213px;
    height: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to left, #ffffff00, #ffffff, #ffffff00);
    margin: 0 auto;
    margin-top: 8px;
}

#appLoader.leagues .brightHr {
    display: none;
}

.hrCenter {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: 149px;
    z-index: 2;
}

#appLoader.leagues .hrCenter {
    display: none;
}
/* display none поставил, вдруг понадобятся еще */
.hrCenter::before {
    display: none;
}

.hrCenter::after {
    display: none;
}

.newAreaGamingLabel {
    font-family: HalvarBreit, sans-serif;
    font-weight: 700;
    font-size: 19.95px;
    letter-spacing: -0.02em;
    line-height: 23.1px;
    text-align: center;
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    margin-top: 8px;
}

#appLoader.leagues .newAreaGamingLabel {
    display: none;
}

.descriptionMain {
    margin-top: 20px;
    flex: 1;
    display: flex;
    align-items: flex-start;
}

#appLoader.leagues .descriptionMain {
    margin-top: 20px;
}


#appLoader.leagues .preloaderDescriptionWrapper {
    background: none;
}

.preloaderDescription {
    display: flex;
    width: 230px;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin: 0 auto;
}

#appLoader.leagues .preloaderDescription {
    height: auto;
    font-weight: 400;
    width: 100%;
}

.preloaderDescriptionHR {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    margin: 0 auto;
    width: 287px;
    height: 1px;
    background: linear-gradient(to left, #ffffff00, #ffffff57, #ffffff00);
}

#appLoader.leagues .preloaderDescriptionHR {
    display: none;
}

.preloaderDescriptionHR:last-child {
    top: auto;
    bottom: 0;
}

.preloaderDownImageContainer {
    display: flex;
    width: 170vw;
    height: 100%;
    max-height: min(60vh, 900px);
    max-height: min(60svh, 900px);
    margin-top: 10px;
    justify-content: center;
    align-items: end;
    position: relative;
}

.preloaderDownImageContainer .preloader-bg {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    z-index: -1;
    transform-origin: bottom center;
    transform: scale(1.2);
}

.preloaderDownImageContainer .preloader-bg-leagues {
    background: url('/images/preloader/rays-bg.webp');
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.preloaderDownImageContainer .preloader-bg-web2 {
    width: 120%;
    background-image: url('/images/preloader/web2/web2-cat.webp');
    transform: scale(1.06) translate(0, 3%);
}

.preloaderDownImageContainer .preloader-img {
    display: block;
    max-width: 70vh;
    max-width: 70svh;
    min-width: 70vh;
    min-width: 70svh;
    width: 100%;
    height: calc(100% + 5vh);
    content: '';
    background-size: 100%;
    background-repeat: no-repeat;
    background-position-x: 50%;
    background-position-y: 0;
    bottom: -2vh;
    position: absolute;
}

.preloaderDownImageContainer .preloader-img-leagues {
    bottom: 0;
    background-size: contain;
}

.preloaderDownImageContainer .preloader-img-web2 {
    bottom: -0.3vh;
    transform-origin: bottom center;
}

.clans .preloaderDownImageContainer .preloader-img {
    background-position: calc(50% - 25px) center;
    background-size: 90%;
    height: calc(100% + 40vh);
    height: calc(100% + 40svh);
    bottom: -1vh;
}

@media (max-height: 730px) {
    .clans .preloaderDownImageContainer .preloader-img {
        height: calc(100% + 30vh);
        height: calc(100% + 30svh);
    }
}

@media (max-height: 650px) {
    .clans .preloaderDownImageContainer .preloader-img {
        height: calc(100% + 20vh);
    }
}

@media (max-height: 550px) {
    .clans .preloaderDownImageContainer .preloader-img {
        height: calc(100% + 10vh);
    }
}

.screen {
    left: 0;
    display: flex;
    content: '';
    width: 100%;
    height: calc(100vh - 200px);
    height: calc(100svh - 200px);
    position: absolute;
    opacity: 0.4;
    background: linear-gradient(transparent, lightblue);
    mix-blend-mode: color-burn;
    bottom: 0;
}

.allRightsText {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 0.1px;
    font-weight: 400;
    padding: 25vh 0 24px 0;
    font-family: Inter, sans-serif;
    color: #fffffff5;
    z-index: +1;
    -webkit-text-size-adjust: 100%;
}

.allRightsText::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 9, 43, 0) 0%, #00092b 100%);
    height: 98px;
    z-index: -1;
}

#appLoader.leagues .allRightsText::before {
    background: radial-gradient(242.08% 100% at 50.13% 0%, rgba(0, 5, 49, 0) 22.03%, rgba(0, 13, 58, 0.66) 64.31%, #000516 100%);
    height: 193px;
}

/* Leagues money animation */
#appLoader.leagues .money-item {
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
}

.money .money-item:nth-child(1) {
    width: 36px;
    height: 34px;
    background-image: url('/images/money/web2-1.webp');
    right: 13%;
    bottom: 63%;
}

.money .money-item:nth-child(2) {
    width: 47px;
    height: 46px;
    background-image: url('/images/money/web2-2.webp');
    left: 6%;
    bottom: 38%;
}

.money .money-item:nth-child(3) {
    width: 75px;
    height: 75px;
    background-image: url('/images/money/web2-3.webp');
    right: 11%;
    bottom: 24%;
} 


#appLoader.city {
    background-image: url('/images/preloader/background-city2.webp');
    background-size: cover;
    background-position: bottom center;
}

#appLoader.city .preloader-img {
    background-size: 50%;
    bottom: -8vh;
}

#appLoader.night-city {

    background-image: url('/images/preloader/city-night.webp');
    background-size: cover;
    background-position: bottom center;
}

#appLoader.night-city  .preloader-img{
    display: none;
}

#appLoader.airdrop .preloaderDownImageContainer, #appLoader.airdrop2 .preloaderDownImageContainer {
    position: initial;
}

#appLoader.airdrop #newAreaGamingLabel, #appLoader.airdrop2 #newAreaGamingLabel {
    display: none;
}

#appLoader.airdrop::before, #appLoader.airdrop2::before {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    top: 0;

    width: 100%;
    height: 32%;

    background: linear-gradient(180deg, #000000 0%, rgba(0, 28, 129, 0) 100%);
    z-index: -1;
}

#appLoader.airdrop .preloader-img {
    top: 0;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100svh;
    min-width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    background-size: contain;
    background-position-x: center;
    background-position-y: 0;
    bottom: auto;
    z-index: -2;
    min-width: auto;
    width: 90%;
    max-width: 500px;
}

#appLoader.airdrop2 .preloader-img {
    top: 0;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100svh;
    min-width: 100vw;
    min-height: 100vh;
    min-height: 100svh;
    background-size: contain;
    background-position-x: center;
    background-position-y: 0;
    bottom: auto;
    z-index: -2;
    min-width: auto;
    width: 86%;
    max-width: 500px;
}

#appLoader.airdrop2 .preloader-img {
    background-position-y: bottom;
}

#appLoader.airdrop2 .hrCenter {
    display: none;
}

#appLoader.airdrop2 {
    background: url("/images/preloader/background-main-dark.webp");
    background-size: 100% 100%;
}


#appLoader.newYear2026 .preloaderDownImageContainer {
    background-size: 100% 100%;
    background-position: center;
    max-height: 100%;
    width: 100%;
}

#appLoader.newYear2026 .preloader-img {
    bottom: -6vh;
    background-size: 90%;
}

#orientationOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #141415;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    color: white;
    font-family: 'Inter', sans-serif;
    text-align: center;
}
#orientationOverlay .icon {
    font-size: 50px;
    margin-bottom: 20px;
    animation: rotate 2s ease-in-out infinite;
}
@keyframes rotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    75% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}
#orientationOverlay .text {
    font-size: 16px;
    padding: 0 20px;
    line-height: 1.5;
}

